Annotation of parser3/src/lib/ltdl/configure, revision 1.13
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.10 moko 3: # Generated by GNU Autoconf 2.72 for libltdl 2.4.3a.
1.5 moko 4: #
5: # Report bugs to <bug-libtool@gnu.org>.
6: #
7: #
1.10 moko 8: # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9: # Inc.
1.5 moko 10: #
1.1 paf 11: #
12: # This configure script is free software; the Free Software Foundation
13: # gives unlimited permission to copy, distribute and modify it.
1.5 moko 14: ## -------------------- ##
15: ## M4sh Initialization. ##
16: ## -------------------- ##
17:
18: # Be more Bourne compatible
19: DUALCASE=1; export DUALCASE # for MKS sh
1.10 moko 20: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21: then :
1.2 paf 22: emulate sh
23: NULLCMD=:
1.5 moko 24: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.2 paf 25: # is contrary to our usage. Disable this feature.
26: alias -g '${1+"$@"}'='"$@"'
1.5 moko 27: setopt NO_GLOB_SUBST
1.10 moko 28: else case e in #(
29: e) case `(set -o) 2>/dev/null` in #(
1.5 moko 30: *posix*) :
31: set -o posix ;; #(
32: *) :
33: ;;
1.10 moko 34: esac ;;
1.5 moko 35: esac
36: fi
37:
38:
1.10 moko 39:
40: # Reset variables that may have inherited troublesome values from
41: # the environment.
42:
43: # IFS needs to be set, to space, tab, and newline, in precisely that order.
44: # (If _AS_PATH_WALK were called with IFS unset, it would have the
45: # side effect of setting IFS to empty, thus disabling word splitting.)
46: # Quoting is to prevent editors from complaining about space-tab.
1.5 moko 47: as_nl='
48: '
49: export as_nl
1.10 moko 50: IFS=" "" $as_nl"
51:
52: PS1='$ '
53: PS2='> '
54: PS4='+ '
55:
56: # Ensure predictable behavior from utilities with locale-dependent output.
57: LC_ALL=C
58: export LC_ALL
59: LANGUAGE=C
60: export LANGUAGE
61:
62: # We cannot yet rely on "unset" to work, but we need these variables
63: # to be unset--not just set to an empty or harmless value--now, to
64: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65: # also avoids known problems related to "unset" and subshell syntax
66: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68: do eval test \${$as_var+y} \
69: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70: done
71:
72: # Ensure that fds 0, 1, and 2 are open.
73: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.2 paf 76:
1.5 moko 77: # The user is always right.
1.10 moko 78: if ${PATH_SEPARATOR+false} :; then
1.5 moko 79: PATH_SEPARATOR=:
80: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82: PATH_SEPARATOR=';'
83: }
1.2 paf 84: fi
85:
86:
1.5 moko 87: # Find who we are. Look in the path if we contain no directory separator.
88: as_myself=
89: case $0 in #((
90: *[\\/]* ) as_myself=$0 ;;
91: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92: for as_dir in $PATH
93: do
94: IFS=$as_save_IFS
1.10 moko 95: case $as_dir in #(((
96: '') as_dir=./ ;;
97: */) ;;
98: *) as_dir=$as_dir/ ;;
99: esac
100: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.5 moko 101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
1.10 moko 106: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.5 moko 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
1.10 moko 112: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.5 moko 113: exit 1
114: fi
115:
116:
1.7 moko 117: # Use a proper internal environment variable to ensure we don't fall
118: # into an infinite loop, continuously re-executing ourselves.
119: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120: _as_can_reexec=no; export _as_can_reexec;
121: # We cannot yet assume a decent shell, so we have to provide a
122: # neutralization value for shells without unset; and this also
123: # works around shells that cannot unset nonexistent variables.
124: # Preserve -v and -x to the replacement shell.
125: BASH_ENV=/dev/null
126: ENV=/dev/null
127: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128: case $- in # ((((
129: *v*x* | *x*v* ) as_opts=-vx ;;
130: *v* ) as_opts=-v ;;
131: *x* ) as_opts=-x ;;
132: * ) as_opts= ;;
133: esac
134: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135: # Admittedly, this is quite paranoid, since all the known shells bail
1.10 moko 136: # out after a failed 'exec'.
137: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138: exit 255
1.7 moko 139: fi
140: # We don't want this to propagate to other subprocesses.
141: { _as_can_reexec=; unset _as_can_reexec;}
1.5 moko 142: if test "x$CONFIG_SHELL" = x; then
1.10 moko 143: as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144: then :
1.5 moko 145: emulate sh
146: NULLCMD=:
147: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148: # is contrary to our usage. Disable this feature.
149: alias -g '\${1+\"\$@\"}'='\"\$@\"'
150: setopt NO_GLOB_SUBST
1.10 moko 151: else case e in #(
152: e) case \`(set -o) 2>/dev/null\` in #(
1.5 moko 153: *posix*) :
154: set -o posix ;; #(
155: *) :
156: ;;
1.10 moko 157: esac ;;
1.5 moko 158: esac
159: fi
160: "
161: as_required="as_fn_return () { (exit \$1); }
162: as_fn_success () { as_fn_return 0; }
163: as_fn_failure () { as_fn_return 1; }
164: as_fn_ret_success () { return 0; }
165: as_fn_ret_failure () { return 1; }
166:
167: exitcode=0
168: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1.10 moko 172: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173: then :
1.5 moko 174:
1.10 moko 175: else case e in #(
176: e) exitcode=1; echo positional parameters were not saved. ;;
177: esac
1.5 moko 178: fi
1.7 moko 179: test x\$exitcode = x0 || exit 1
1.10 moko 180: blah=\$(echo \$(echo blah))
181: test x\"\$blah\" = xblah || exit 1
1.7 moko 182: test -x / || exit 1"
1.5 moko 183: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187:
188: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192: PATH=/empty FPATH=/empty; export PATH FPATH
193: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195: test \$(( 1 + 1 )) = 2 || exit 1"
1.10 moko 196: if (eval "$as_required") 2>/dev/null
197: then :
1.5 moko 198: as_have_required=yes
1.10 moko 199: else case e in #(
200: e) as_have_required=no ;;
201: esac
1.5 moko 202: fi
1.10 moko 203: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204: then :
1.5 moko 205:
1.10 moko 206: else case e in #(
207: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5 moko 208: as_found=false
209: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.2 paf 210: do
1.5 moko 211: IFS=$as_save_IFS
1.10 moko 212: case $as_dir in #(((
213: '') as_dir=./ ;;
214: */) ;;
215: *) as_dir=$as_dir/ ;;
216: esac
1.5 moko 217: as_found=:
218: case $as_dir in #(
219: /*)
220: for as_base in sh bash ksh sh5; do
221: # Try only shells that exist, to save several forks.
1.10 moko 222: as_shell=$as_dir$as_base
1.5 moko 223: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.10 moko 224: as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225: then :
1.5 moko 226: CONFIG_SHELL=$as_shell as_have_required=yes
1.10 moko 227: if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228: then :
1.5 moko 229: break 2
230: fi
231: fi
232: done;;
233: esac
234: as_found=false
235: done
1.10 moko 236: IFS=$as_save_IFS
237: if $as_found
238: then :
239:
240: else case e in #(
241: e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243: then :
1.5 moko 244: CONFIG_SHELL=$SHELL as_have_required=yes
1.10 moko 245: fi ;;
246: esac
247: fi
1.5 moko 248:
249:
1.10 moko 250: if test "x$CONFIG_SHELL" != x
251: then :
1.7 moko 252: export CONFIG_SHELL
253: # We cannot yet assume a decent shell, so we have to provide a
254: # neutralization value for shells without unset; and this also
255: # works around shells that cannot unset nonexistent variables.
256: # Preserve -v and -x to the replacement shell.
257: BASH_ENV=/dev/null
258: ENV=/dev/null
259: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260: case $- in # ((((
261: *v*x* | *x*v* ) as_opts=-vx ;;
262: *v* ) as_opts=-v ;;
263: *x* ) as_opts=-x ;;
264: * ) as_opts= ;;
265: esac
266: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267: # Admittedly, this is quite paranoid, since all the known shells bail
1.10 moko 268: # out after a failed 'exec'.
269: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.7 moko 270: exit 255
1.5 moko 271: fi
272:
1.10 moko 273: if test x$as_have_required = xno
274: then :
275: printf "%s\n" "$0: This script requires a shell more modern than all"
276: printf "%s\n" "$0: the shells that I found on your system."
277: if test ${ZSH_VERSION+y} ; then
278: printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279: printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
1.5 moko 280: else
1.10 moko 281: printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
1.5 moko 282: $0: bug-libtool@gnu.org about your system, including any
283: $0: error possibly output before this message. Then install
284: $0: a modern shell, or manually run the script under such a
285: $0: shell if you do have one."
1.2 paf 286: fi
1.5 moko 287: exit 1
1.10 moko 288: fi ;;
289: esac
1.5 moko 290: fi
291: fi
292: SHELL=${CONFIG_SHELL-/bin/sh}
293: export SHELL
294: # Unset more variables known to interfere with behavior of common tools.
295: CLICOLOR_FORCE= GREP_OPTIONS=
296: unset CLICOLOR_FORCE GREP_OPTIONS
297:
298: ## --------------------- ##
299: ## M4sh Shell Functions. ##
300: ## --------------------- ##
301: # as_fn_unset VAR
302: # ---------------
303: # Portably unset VAR.
304: as_fn_unset ()
305: {
306: { eval $1=; unset $1;}
307: }
308: as_unset=as_fn_unset
309:
1.10 moko 310:
1.5 moko 311: # as_fn_set_status STATUS
312: # -----------------------
313: # Set $? to STATUS, without forking.
314: as_fn_set_status ()
315: {
316: return $1
317: } # as_fn_set_status
318:
319: # as_fn_exit STATUS
320: # -----------------
321: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322: as_fn_exit ()
323: {
324: set +e
325: as_fn_set_status $1
326: exit $1
327: } # as_fn_exit
328:
329: # as_fn_mkdir_p
330: # -------------
331: # Create "$as_dir" as a directory, including parents if necessary.
332: as_fn_mkdir_p ()
333: {
334:
335: case $as_dir in #(
336: -*) as_dir=./$as_dir;;
337: esac
338: test -d "$as_dir" || eval $as_mkdir_p || {
339: as_dirs=
340: while :; do
341: case $as_dir in #(
1.10 moko 342: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.5 moko 343: *) as_qdir=$as_dir;;
344: esac
345: as_dirs="'$as_qdir' $as_dirs"
346: as_dir=`$as_dirname -- "$as_dir" ||
347: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348: X"$as_dir" : 'X\(//\)[^/]' \| \
349: X"$as_dir" : 'X\(//\)$' \| \
350: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.10 moko 351: printf "%s\n" X"$as_dir" |
1.5 moko 352: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353: s//\1/
354: q
355: }
356: /^X\(\/\/\)[^/].*/{
357: s//\1/
358: q
359: }
360: /^X\(\/\/\)$/{
361: s//\1/
362: q
363: }
364: /^X\(\/\).*/{
365: s//\1/
366: q
367: }
368: s/.*/./; q'`
369: test -d "$as_dir" && break
370: done
371: test -z "$as_dirs" || eval "mkdir $as_dirs"
372: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373:
374:
375: } # as_fn_mkdir_p
1.7 moko 376:
377: # as_fn_executable_p FILE
378: # -----------------------
379: # Test if FILE is an executable regular file.
380: as_fn_executable_p ()
381: {
382: test -f "$1" && test -x "$1"
383: } # as_fn_executable_p
1.5 moko 384: # as_fn_append VAR VALUE
385: # ----------------------
386: # Append the text in VALUE to the end of the definition contained in VAR. Take
387: # advantage of any shell optimizations that allow amortized linear growth over
388: # repeated appends, instead of the typical quadratic growth present in naive
389: # implementations.
1.10 moko 390: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391: then :
1.5 moko 392: eval 'as_fn_append ()
393: {
394: eval $1+=\$2
395: }'
1.10 moko 396: else case e in #(
397: e) as_fn_append ()
1.5 moko 398: {
399: eval $1=\$$1\$2
1.10 moko 400: } ;;
401: esac
1.5 moko 402: fi # as_fn_append
403:
404: # as_fn_arith ARG...
405: # ------------------
406: # Perform arithmetic evaluation on the ARGs, and store the result in the
407: # global $as_val. Take advantage of shells that can avoid forks. The arguments
408: # must be portable across $(()) and expr.
1.10 moko 409: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410: then :
1.5 moko 411: eval 'as_fn_arith ()
412: {
413: as_val=$(( $* ))
414: }'
1.10 moko 415: else case e in #(
416: e) as_fn_arith ()
1.5 moko 417: {
418: as_val=`expr "$@" || test $? -eq 1`
1.10 moko 419: } ;;
420: esac
1.5 moko 421: fi # as_fn_arith
422:
423:
424: # as_fn_error STATUS ERROR [LINENO LOG_FD]
425: # ----------------------------------------
426: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428: # script with STATUS, using 1 if that was 0.
429: as_fn_error ()
430: {
431: as_status=$1; test $as_status -eq 0 && as_status=1
432: if test "$4"; then
433: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.10 moko 434: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.5 moko 435: fi
1.10 moko 436: printf "%s\n" "$as_me: error: $2" >&2
1.5 moko 437: as_fn_exit $as_status
438: } # as_fn_error
1.2 paf 439:
1.5 moko 440: if expr a : '\(a\)' >/dev/null 2>&1 &&
441: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.2 paf 442: as_expr=expr
443: else
444: as_expr=false
445: fi
446:
1.5 moko 447: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.2 paf 448: as_basename=basename
449: else
450: as_basename=false
451: fi
452:
1.5 moko 453: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454: as_dirname=dirname
455: else
456: as_dirname=false
457: fi
1.2 paf 458:
1.5 moko 459: as_me=`$as_basename -- "$0" ||
1.2 paf 460: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461: X"$0" : 'X\(//\)$' \| \
1.5 moko 462: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.10 moko 463: printf "%s\n" X/"$0" |
1.5 moko 464: sed '/^.*\/\([^/][^/]*\)\/*$/{
465: s//\1/
466: q
467: }
468: /^X\/\(\/\/\)$/{
469: s//\1/
470: q
471: }
472: /^X\/\(\/\).*/{
473: s//\1/
474: q
475: }
476: s/.*/./; q'`
1.2 paf 477:
478: # Avoid depending upon Character Ranges.
479: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482: as_cr_digits='0123456789'
483: as_cr_alnum=$as_cr_Letters$as_cr_digits
484:
485:
1.5 moko 486: as_lineno_1=$LINENO as_lineno_1a=$LINENO
487: as_lineno_2=$LINENO as_lineno_2a=$LINENO
488: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491: sed -n '
492: p
493: /[$]LINENO/=
494: ' <$as_myself |
1.2 paf 495: sed '
1.10 moko 496: t clear
497: :clear
1.5 moko 498: s/[$]LINENO.*/&-/
499: t lineno
500: b
501: :lineno
1.2 paf 502: N
1.5 moko 503: :loop
504: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.2 paf 505: t loop
1.5 moko 506: s/-\n.*//
1.2 paf 507: ' >$as_me.lineno &&
1.5 moko 508: chmod +x "$as_me.lineno" ||
1.10 moko 509: { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.2 paf 510:
1.7 moko 511: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512: # already done that, so ensure we don't try to do so again and fall
513: # in an infinite loop. This has already happened in practice.
514: _as_can_reexec=no; export _as_can_reexec
1.2 paf 515: # Don't try to exec as it changes $[0], causing all sort of problems
516: # (the dirname of $[0] is not the place where we might find the
1.5 moko 517: # original and so on. Autoconf is especially sensitive to this).
518: . "./$as_me.lineno"
1.2 paf 519: # Exit status is that of the last command.
520: exit
521: }
522:
1.10 moko 523:
524: # Determine whether it's possible to make 'echo' print without a newline.
525: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526: # for compatibility with existing Makefiles.
1.5 moko 527: ECHO_C= ECHO_N= ECHO_T=
528: case `echo -n x` in #(((((
529: -n*)
530: case `echo 'xy\c'` in
531: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532: xy) ECHO_C='\c';;
533: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534: ECHO_T=' ';;
535: esac;;
536: *)
537: ECHO_N='-n';;
1.2 paf 538: esac
539:
1.10 moko 540: # For backward compatibility with old third-party macros, we provide
541: # the shell variables $as_echo and $as_echo_n. New code should use
542: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543: as_echo='printf %s\n'
544: as_echo_n='printf %s'
545:
1.5 moko 546: rm -f conf$$ conf$$.exe conf$$.file
547: if test -d conf$$.dir; then
548: rm -f conf$$.dir/conf$$.file
1.2 paf 549: else
1.5 moko 550: rm -f conf$$.dir
551: mkdir conf$$.dir 2>/dev/null
1.2 paf 552: fi
1.5 moko 553: if (echo >conf$$.file) 2>/dev/null; then
554: if ln -s conf$$.file conf$$ 2>/dev/null; then
555: as_ln_s='ln -s'
556: # ... but there are two gotchas:
1.10 moko 557: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559: # In both cases, we have to default to 'cp -pR'.
1.5 moko 560: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.7 moko 561: as_ln_s='cp -pR'
1.5 moko 562: elif ln conf$$.file conf$$ 2>/dev/null; then
563: as_ln_s=ln
564: else
1.7 moko 565: as_ln_s='cp -pR'
1.2 paf 566: fi
567: else
1.7 moko 568: as_ln_s='cp -pR'
1.2 paf 569: fi
1.5 moko 570: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571: rmdir conf$$.dir 2>/dev/null
1.2 paf 572:
573: if mkdir -p . 2>/dev/null; then
1.5 moko 574: as_mkdir_p='mkdir -p "$as_dir"'
1.2 paf 575: else
1.5 moko 576: test -d ./-p && rmdir ./-p
1.2 paf 577: as_mkdir_p=false
578: fi
579:
1.7 moko 580: as_test_x='test -x'
581: as_executable_p=as_fn_executable_p
1.2 paf 582:
583: # Sed expression to map a string onto a valid CPP name.
1.10 moko 584: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.2 paf 586:
587: # Sed expression to map a string onto a valid variable name.
1.10 moko 588: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.4 paf 590:
591: SHELL=${CONFIG_SHELL-/bin/sh}
592:
593:
1.5 moko 594: test -n "$DJDIR" || exec 7<&0 </dev/null
595: exec 6>&1
1.4 paf 596:
1.2 paf 597: # Name of the host.
1.5 moko 598: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.2 paf 599: # so uname gets run too.
600: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601:
602: #
603: # Initializations.
604: #
1.1 paf 605: ac_default_prefix=/usr/local
1.5 moko 606: ac_clean_files=
1.2 paf 607: ac_config_libobj_dir=.
1.5 moko 608: LIBOBJS=
1.2 paf 609: cross_compiling=no
610: subdirs=
611: MFLAGS=
612: MAKEFLAGS=
613:
614: # Identity of this package.
1.5 moko 615: PACKAGE_NAME='libltdl'
616: PACKAGE_TARNAME='libltdl'
1.10 moko 617: PACKAGE_VERSION='2.4.3a'
618: PACKAGE_STRING='libltdl 2.4.3a'
1.5 moko 619: PACKAGE_BUGREPORT='bug-libtool@gnu.org'
620: PACKAGE_URL=''
1.2 paf 621:
622: ac_unique_file="ltdl.c"
623: # Factoring default headers for most tests.
624: ac_includes_default="\
1.10 moko 625: #include <stddef.h>
626: #ifdef HAVE_STDIO_H
627: # include <stdio.h>
1.2 paf 628: #endif
1.10 moko 629: #ifdef HAVE_STDLIB_H
1.2 paf 630: # include <stdlib.h>
631: #endif
1.5 moko 632: #ifdef HAVE_STRING_H
1.2 paf 633: # include <string.h>
634: #endif
1.5 moko 635: #ifdef HAVE_INTTYPES_H
1.2 paf 636: # include <inttypes.h>
637: #endif
1.5 moko 638: #ifdef HAVE_STDINT_H
639: # include <stdint.h>
640: #endif
1.10 moko 641: #ifdef HAVE_STRINGS_H
642: # include <strings.h>
643: #endif
644: #ifdef HAVE_SYS_TYPES_H
645: # include <sys/types.h>
646: #endif
647: #ifdef HAVE_SYS_STAT_H
648: # include <sys/stat.h>
649: #endif
1.5 moko 650: #ifdef HAVE_UNISTD_H
1.2 paf 651: # include <unistd.h>
652: #endif"
653:
1.10 moko 654: ac_header_c_list=
1.5 moko 655: ac_subst_vars='am__EXEEXT_FALSE
656: am__EXEEXT_TRUE
657: LTLIBOBJS
658: LTDLOPEN
659: LT_CONFIG_H
1.10 moko 660: LTARGZH_EXISTS_FALSE
661: LTARGZH_EXISTS_TRUE
1.5 moko 662: CONVENIENCE_LTDL_FALSE
663: CONVENIENCE_LTDL_TRUE
664: INSTALL_LTDL_FALSE
665: INSTALL_LTDL_TRUE
1.10 moko 666: LT_ARGZ_H
1.5 moko 667: LIBOBJS
668: sys_symbol_underscore
669: LIBADD_DL
670: LT_DLPREOPEN
671: LIBADD_DLD_LINK
672: LIBADD_SHL_LOAD
673: LIBADD_DLOPEN
674: LT_DLLOADERS
1.10 moko 675: LT_SYS_LIBRARY_PATH
1.5 moko 676: OTOOL64
677: OTOOL
678: LIPO
679: NMEDIT
680: DSYMUTIL
681: MANIFEST_TOOL
682: RANLIB
683: ac_ct_AR
684: AR
1.10 moko 685: FILECMD
1.5 moko 686: LN_S
687: NM
688: ac_ct_DUMPBIN
689: DUMPBIN
690: LD
691: FGREP
692: EGREP
693: GREP
694: SED
695: am__fastdepCC_FALSE
696: am__fastdepCC_TRUE
697: CCDEPMODE
1.8 moko 698: am__nodep
1.5 moko 699: AMDEPBACKSLASH
700: AMDEP_FALSE
701: AMDEP_TRUE
702: am__include
703: DEPDIR
704: OBJEXT
705: EXEEXT
706: ac_ct_CC
707: CPPFLAGS
708: LDFLAGS
709: CFLAGS
710: CC
711: host_os
712: host_vendor
713: host_cpu
714: host
715: build_os
716: build_vendor
717: build_cpu
718: build
719: LIBTOOL
720: OBJDUMP
721: DLLTOOL
722: AS
1.10 moko 723: am__xargs_n
724: am__rm_f_notfound
1.8 moko 725: AM_BACKSLASH
726: AM_DEFAULT_VERBOSITY
727: AM_DEFAULT_V
728: AM_V
1.10 moko 729: CSCOPE
730: ETAGS
731: CTAGS
1.5 moko 732: am__untar
733: am__tar
734: AMTAR
735: am__leading_dot
736: SET_MAKE
737: AWK
738: mkdir_p
739: MKDIR_P
740: INSTALL_STRIP_PROGRAM
741: STRIP
742: install_sh
743: MAKEINFO
744: AUTOHEADER
745: AUTOMAKE
746: AUTOCONF
747: ACLOCAL
748: VERSION
749: PACKAGE
750: CYGPATH_W
751: am__isrc
752: INSTALL_DATA
753: INSTALL_SCRIPT
754: INSTALL_PROGRAM
755: target_alias
756: host_alias
757: build_alias
758: LIBS
759: ECHO_T
760: ECHO_N
761: ECHO_C
762: DEFS
763: mandir
764: localedir
765: libdir
766: psdir
767: pdfdir
768: dvidir
769: htmldir
770: infodir
771: docdir
772: oldincludedir
773: includedir
1.7 moko 774: runstatedir
1.5 moko 775: localstatedir
776: sharedstatedir
777: sysconfdir
778: datadir
779: datarootdir
780: libexecdir
781: sbindir
782: bindir
783: program_transform_name
784: prefix
785: exec_prefix
786: PACKAGE_URL
787: PACKAGE_BUGREPORT
788: PACKAGE_STRING
789: PACKAGE_VERSION
790: PACKAGE_TARNAME
791: PACKAGE_NAME
792: PATH_SEPARATOR
1.8 moko 793: SHELL
794: am__quote'
1.2 paf 795: ac_subst_files=''
1.5 moko 796: ac_user_opts='
797: enable_option_checking
1.8 moko 798: enable_silent_rules
1.5 moko 799: enable_shared
800: enable_static
1.10 moko 801: enable_pic
1.5 moko 802: with_pic
803: enable_fast_install
1.10 moko 804: enable_aix_soname
805: with_aix_soname
1.5 moko 806: enable_dependency_tracking
807: with_gnu_ld
808: with_sysroot
809: enable_libtool_lock
810: enable_ltdl_install
1.12 moko 811: with_assertions
1.5 moko 812: '
813: ac_precious_vars='build_alias
814: host_alias
815: target_alias
816: CC
817: CFLAGS
818: LDFLAGS
819: LIBS
820: CPPFLAGS
1.10 moko 821: LT_SYS_LIBRARY_PATH'
1.5 moko 822:
1.1 paf 823:
824: # Initialize some variables set by options.
1.2 paf 825: ac_init_help=
826: ac_init_version=false
1.5 moko 827: ac_unrecognized_opts=
828: ac_unrecognized_sep=
1.1 paf 829: # The variables have the same names as the options, with
830: # dashes changed to underlines.
1.2 paf 831: cache_file=/dev/null
1.1 paf 832: exec_prefix=NONE
833: no_create=
834: no_recursion=
835: prefix=NONE
836: program_prefix=NONE
837: program_suffix=NONE
838: program_transform_name=s,x,x,
839: silent=
840: site=
841: srcdir=
842: verbose=
843: x_includes=NONE
844: x_libraries=NONE
1.2 paf 845:
846: # Installation directory options.
847: # These are left unexpanded so users can "make install exec_prefix=/foo"
848: # and all the variables that are supposed to be based on exec_prefix
849: # by default will actually change.
850: # Use braces instead of parens because sh, perl, etc. also accept them.
1.5 moko 851: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 852: bindir='${exec_prefix}/bin'
853: sbindir='${exec_prefix}/sbin'
854: libexecdir='${exec_prefix}/libexec'
1.5 moko 855: datarootdir='${prefix}/share'
856: datadir='${datarootdir}'
1.1 paf 857: sysconfdir='${prefix}/etc'
858: sharedstatedir='${prefix}/com'
859: localstatedir='${prefix}/var'
1.7 moko 860: runstatedir='${localstatedir}/run'
1.1 paf 861: includedir='${prefix}/include'
862: oldincludedir='/usr/include'
1.5 moko 863: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864: infodir='${datarootdir}/info'
865: htmldir='${docdir}'
866: dvidir='${docdir}'
867: pdfdir='${docdir}'
868: psdir='${docdir}'
869: libdir='${exec_prefix}/lib'
870: localedir='${datarootdir}/locale'
871: mandir='${datarootdir}/man'
1.1 paf 872:
873: ac_prev=
1.5 moko 874: ac_dashdash=
1.1 paf 875: for ac_option
876: do
877: # If the previous option needs an argument, assign it.
878: if test -n "$ac_prev"; then
1.5 moko 879: eval $ac_prev=\$ac_option
1.1 paf 880: ac_prev=
881: continue
882: fi
883:
1.5 moko 884: case $ac_option in
885: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886: *=) ac_optarg= ;;
887: *) ac_optarg=yes ;;
888: esac
1.1 paf 889:
1.5 moko 890: case $ac_dashdash$ac_option in
891: --)
892: ac_dashdash=yes ;;
1.1 paf 893:
894: -bindir | --bindir | --bindi | --bind | --bin | --bi)
895: ac_prev=bindir ;;
896: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.2 paf 897: bindir=$ac_optarg ;;
1.1 paf 898:
899: -build | --build | --buil | --bui | --bu)
1.2 paf 900: ac_prev=build_alias ;;
1.1 paf 901: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.2 paf 902: build_alias=$ac_optarg ;;
1.1 paf 903:
904: -cache-file | --cache-file | --cache-fil | --cache-fi \
905: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906: ac_prev=cache_file ;;
907: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.2 paf 909: cache_file=$ac_optarg ;;
910:
911: --config-cache | -C)
912: cache_file=config.cache ;;
1.1 paf 913:
1.5 moko 914: -datadir | --datadir | --datadi | --datad)
1.1 paf 915: ac_prev=datadir ;;
1.5 moko 916: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.2 paf 917: datadir=$ac_optarg ;;
1.1 paf 918:
1.5 moko 919: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920: | --dataroo | --dataro | --datar)
921: ac_prev=datarootdir ;;
922: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924: datarootdir=$ac_optarg ;;
925:
1.1 paf 926: -disable-* | --disable-*)
1.5 moko 927: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 928: # Reject names that are not valid shell variable names.
1.5 moko 929: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.10 moko 930: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.5 moko 931: ac_useropt_orig=$ac_useropt
1.10 moko 932: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.5 moko 933: case $ac_user_opts in
934: *"
935: "enable_$ac_useropt"
936: "*) ;;
937: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938: ac_unrecognized_sep=', ';;
939: esac
940: eval enable_$ac_useropt=no ;;
941:
942: -docdir | --docdir | --docdi | --doc | --do)
943: ac_prev=docdir ;;
944: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945: docdir=$ac_optarg ;;
946:
947: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948: ac_prev=dvidir ;;
949: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950: dvidir=$ac_optarg ;;
1.1 paf 951:
952: -enable-* | --enable-*)
1.5 moko 953: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 954: # Reject names that are not valid shell variable names.
1.5 moko 955: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.10 moko 956: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.5 moko 957: ac_useropt_orig=$ac_useropt
1.10 moko 958: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.5 moko 959: case $ac_user_opts in
960: *"
961: "enable_$ac_useropt"
962: "*) ;;
963: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964: ac_unrecognized_sep=', ';;
1.1 paf 965: esac
1.5 moko 966: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 967:
968: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970: | --exec | --exe | --ex)
971: ac_prev=exec_prefix ;;
972: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974: | --exec=* | --exe=* | --ex=*)
1.2 paf 975: exec_prefix=$ac_optarg ;;
1.1 paf 976:
977: -gas | --gas | --ga | --g)
978: # Obsolete; use --with-gas.
979: with_gas=yes ;;
980:
1.2 paf 981: -help | --help | --hel | --he | -h)
982: ac_init_help=long ;;
983: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984: ac_init_help=recursive ;;
985: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986: ac_init_help=short ;;
1.1 paf 987:
988: -host | --host | --hos | --ho)
1.2 paf 989: ac_prev=host_alias ;;
1.1 paf 990: -host=* | --host=* | --hos=* | --ho=*)
1.2 paf 991: host_alias=$ac_optarg ;;
1.1 paf 992:
1.5 moko 993: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994: ac_prev=htmldir ;;
995: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996: | --ht=*)
997: htmldir=$ac_optarg ;;
998:
1.1 paf 999: -includedir | --includedir | --includedi | --included | --include \
1000: | --includ | --inclu | --incl | --inc)
1001: ac_prev=includedir ;;
1002: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.2 paf 1004: includedir=$ac_optarg ;;
1.1 paf 1005:
1006: -infodir | --infodir | --infodi | --infod | --info | --inf)
1007: ac_prev=infodir ;;
1008: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.2 paf 1009: infodir=$ac_optarg ;;
1.1 paf 1010:
1011: -libdir | --libdir | --libdi | --libd)
1012: ac_prev=libdir ;;
1013: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.2 paf 1014: libdir=$ac_optarg ;;
1.1 paf 1015:
1016: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017: | --libexe | --libex | --libe)
1018: ac_prev=libexecdir ;;
1019: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020: | --libexe=* | --libex=* | --libe=*)
1.2 paf 1021: libexecdir=$ac_optarg ;;
1.1 paf 1022:
1.5 moko 1023: -localedir | --localedir | --localedi | --localed | --locale)
1024: ac_prev=localedir ;;
1025: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026: localedir=$ac_optarg ;;
1027:
1.1 paf 1028: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.5 moko 1029: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1030: ac_prev=localstatedir ;;
1031: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.5 moko 1032: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.2 paf 1033: localstatedir=$ac_optarg ;;
1.1 paf 1034:
1035: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036: ac_prev=mandir ;;
1037: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.2 paf 1038: mandir=$ac_optarg ;;
1.1 paf 1039:
1040: -nfp | --nfp | --nf)
1041: # Obsolete; use --without-fp.
1042: with_fp=no ;;
1043:
1044: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.2 paf 1045: | --no-cr | --no-c | -n)
1.1 paf 1046: no_create=yes ;;
1047:
1048: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050: no_recursion=yes ;;
1051:
1052: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054: | --oldin | --oldi | --old | --ol | --o)
1055: ac_prev=oldincludedir ;;
1056: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.2 paf 1059: oldincludedir=$ac_optarg ;;
1.1 paf 1060:
1061: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062: ac_prev=prefix ;;
1063: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.2 paf 1064: prefix=$ac_optarg ;;
1.1 paf 1065:
1066: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067: | --program-pre | --program-pr | --program-p)
1068: ac_prev=program_prefix ;;
1069: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.2 paf 1071: program_prefix=$ac_optarg ;;
1.1 paf 1072:
1073: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074: | --program-suf | --program-su | --program-s)
1075: ac_prev=program_suffix ;;
1076: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.2 paf 1078: program_suffix=$ac_optarg ;;
1.1 paf 1079:
1080: -program-transform-name | --program-transform-name \
1081: | --program-transform-nam | --program-transform-na \
1082: | --program-transform-n | --program-transform- \
1083: | --program-transform | --program-transfor \
1084: | --program-transfo | --program-transf \
1085: | --program-trans | --program-tran \
1086: | --progr-tra | --program-tr | --program-t)
1087: ac_prev=program_transform_name ;;
1088: -program-transform-name=* | --program-transform-name=* \
1089: | --program-transform-nam=* | --program-transform-na=* \
1090: | --program-transform-n=* | --program-transform-=* \
1091: | --program-transform=* | --program-transfor=* \
1092: | --program-transfo=* | --program-transf=* \
1093: | --program-trans=* | --program-tran=* \
1094: | --progr-tra=* | --program-tr=* | --program-t=*)
1.2 paf 1095: program_transform_name=$ac_optarg ;;
1.1 paf 1096:
1.5 moko 1097: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098: ac_prev=pdfdir ;;
1099: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100: pdfdir=$ac_optarg ;;
1101:
1102: -psdir | --psdir | --psdi | --psd | --ps)
1103: ac_prev=psdir ;;
1104: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105: psdir=$ac_optarg ;;
1106:
1.1 paf 1107: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108: | -silent | --silent | --silen | --sile | --sil)
1109: silent=yes ;;
1110:
1.7 moko 1111: -runstatedir | --runstatedir | --runstatedi | --runstated \
1112: | --runstate | --runstat | --runsta | --runst | --runs \
1113: | --run | --ru | --r)
1114: ac_prev=runstatedir ;;
1115: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117: | --run=* | --ru=* | --r=*)
1118: runstatedir=$ac_optarg ;;
1119:
1.1 paf 1120: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121: ac_prev=sbindir ;;
1122: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123: | --sbi=* | --sb=*)
1.2 paf 1124: sbindir=$ac_optarg ;;
1.1 paf 1125:
1126: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128: | --sharedst | --shareds | --shared | --share | --shar \
1129: | --sha | --sh)
1130: ac_prev=sharedstatedir ;;
1131: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134: | --sha=* | --sh=*)
1.2 paf 1135: sharedstatedir=$ac_optarg ;;
1.1 paf 1136:
1137: -site | --site | --sit)
1138: ac_prev=site ;;
1139: -site=* | --site=* | --sit=*)
1.2 paf 1140: site=$ac_optarg ;;
1.1 paf 1141:
1142: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143: ac_prev=srcdir ;;
1144: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.2 paf 1145: srcdir=$ac_optarg ;;
1.1 paf 1146:
1147: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148: | --syscon | --sysco | --sysc | --sys | --sy)
1149: ac_prev=sysconfdir ;;
1150: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.2 paf 1152: sysconfdir=$ac_optarg ;;
1.1 paf 1153:
1154: -target | --target | --targe | --targ | --tar | --ta | --t)
1.2 paf 1155: ac_prev=target_alias ;;
1.1 paf 1156: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.2 paf 1157: target_alias=$ac_optarg ;;
1.1 paf 1158:
1159: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160: verbose=yes ;;
1161:
1.2 paf 1162: -version | --version | --versio | --versi | --vers | -V)
1163: ac_init_version=: ;;
1.1 paf 1164:
1165: -with-* | --with-*)
1.5 moko 1166: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1167: # Reject names that are not valid shell variable names.
1.5 moko 1168: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.10 moko 1169: as_fn_error $? "invalid package name: '$ac_useropt'"
1.5 moko 1170: ac_useropt_orig=$ac_useropt
1.10 moko 1171: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.5 moko 1172: case $ac_user_opts in
1173: *"
1174: "with_$ac_useropt"
1175: "*) ;;
1176: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177: ac_unrecognized_sep=', ';;
1.1 paf 1178: esac
1.5 moko 1179: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1180:
1181: -without-* | --without-*)
1.5 moko 1182: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1183: # Reject names that are not valid shell variable names.
1.5 moko 1184: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.10 moko 1185: as_fn_error $? "invalid package name: '$ac_useropt'"
1.5 moko 1186: ac_useropt_orig=$ac_useropt
1.10 moko 1187: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.5 moko 1188: case $ac_user_opts in
1189: *"
1190: "with_$ac_useropt"
1191: "*) ;;
1192: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193: ac_unrecognized_sep=', ';;
1194: esac
1195: eval with_$ac_useropt=no ;;
1.1 paf 1196:
1197: --x)
1198: # Obsolete; use --with-x.
1199: with_x=yes ;;
1200:
1201: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202: | --x-incl | --x-inc | --x-in | --x-i)
1203: ac_prev=x_includes ;;
1204: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.2 paf 1206: x_includes=$ac_optarg ;;
1.1 paf 1207:
1208: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210: ac_prev=x_libraries ;;
1211: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.2 paf 1213: x_libraries=$ac_optarg ;;
1.1 paf 1214:
1.10 moko 1215: -*) as_fn_error $? "unrecognized option: '$ac_option'
1216: Try '$0 --help' for more information"
1.1 paf 1217: ;;
1218:
1.2 paf 1219: *=*)
1220: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221: # Reject names that are not valid shell variable names.
1.5 moko 1222: case $ac_envvar in #(
1223: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.10 moko 1224: as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1.5 moko 1225: esac
1226: eval $ac_envvar=\$ac_optarg
1.2 paf 1227: export $ac_envvar ;;
1228:
1.1 paf 1229: *)
1.2 paf 1230: # FIXME: should be removed in autoconf 3.0.
1.10 moko 1231: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.2 paf 1232: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.10 moko 1233: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.5 moko 1234: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1235: ;;
1236:
1237: esac
1238: done
1239:
1240: if test -n "$ac_prev"; then
1.2 paf 1241: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.5 moko 1242: as_fn_error $? "missing argument to $ac_option"
1243: fi
1244:
1245: if test -n "$ac_unrecognized_opts"; then
1246: case $enable_option_checking in
1247: no) ;;
1248: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.10 moko 1249: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.5 moko 1250: esac
1.1 paf 1251: fi
1252:
1.5 moko 1253: # Check all directory arguments for consistency.
1254: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255: datadir sysconfdir sharedstatedir localstatedir includedir \
1256: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.7 moko 1257: libdir localedir mandir runstatedir
1.2 paf 1258: do
1.5 moko 1259: eval ac_val=\$$ac_var
1260: # Remove trailing slashes.
1.2 paf 1261: case $ac_val in
1.5 moko 1262: */ )
1263: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264: eval $ac_var=\$ac_val;;
1.2 paf 1265: esac
1.5 moko 1266: # Be sure to have absolute directory names.
1.2 paf 1267: case $ac_val in
1.5 moko 1268: [\\/$]* | ?:[\\/]* ) continue;;
1269: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1270: esac
1.5 moko 1271: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1272: done
1273:
1.10 moko 1274: # There might be people who depend on the old broken behavior: '$host'
1.2 paf 1275: # used to hold the argument of --host etc.
1276: # FIXME: To remove some day.
1277: build=$build_alias
1278: host=$host_alias
1279: target=$target_alias
1280:
1281: # FIXME: To remove some day.
1282: if test "x$host_alias" != x; then
1283: if test "x$build_alias" = x; then
1284: cross_compiling=maybe
1285: elif test "x$build_alias" != "x$host_alias"; then
1286: cross_compiling=yes
1287: fi
1288: fi
1289:
1290: ac_tool_prefix=
1291: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1292:
1.2 paf 1293: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1294:
1295:
1.5 moko 1296: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297: ac_ls_di=`ls -di .` &&
1298: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299: as_fn_error $? "working directory cannot be determined"
1300: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301: as_fn_error $? "pwd does not report name of working directory"
1302:
1303:
1.1 paf 1304: # Find the source files, if location was not specified.
1305: if test -z "$srcdir"; then
1306: ac_srcdir_defaulted=yes
1.5 moko 1307: # Try the directory containing this script, then the parent directory.
1308: ac_confdir=`$as_dirname -- "$as_myself" ||
1309: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310: X"$as_myself" : 'X\(//\)[^/]' \| \
1311: X"$as_myself" : 'X\(//\)$' \| \
1312: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.10 moko 1313: printf "%s\n" X"$as_myself" |
1.5 moko 1314: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315: s//\1/
1316: q
1317: }
1318: /^X\(\/\/\)[^/].*/{
1319: s//\1/
1320: q
1321: }
1322: /^X\(\/\/\)$/{
1323: s//\1/
1324: q
1325: }
1326: /^X\(\/\).*/{
1327: s//\1/
1328: q
1329: }
1330: s/.*/./; q'`
1.1 paf 1331: srcdir=$ac_confdir
1.5 moko 1332: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1333: srcdir=..
1334: fi
1335: else
1336: ac_srcdir_defaulted=no
1337: fi
1.5 moko 1338: if test ! -r "$srcdir/$ac_unique_file"; then
1339: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341: fi
1.10 moko 1342: ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1.5 moko 1343: ac_abs_confdir=`(
1344: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345: pwd)`
1346: # When building in place, set srcdir=.
1347: if test "$ac_abs_confdir" = "$ac_pwd"; then
1348: srcdir=.
1349: fi
1350: # Remove unnecessary trailing slashes from srcdir.
1351: # Double slashes in file names in object file debugging info
1352: # mess up M-x gdb in Emacs.
1353: case $srcdir in
1354: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355: esac
1356: for ac_var in $ac_precious_vars; do
1357: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358: eval ac_env_${ac_var}_value=\$${ac_var}
1359: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361: done
1.2 paf 1362:
1363: #
1364: # Report the --help message.
1365: #
1366: if test "$ac_init_help" = "long"; then
1367: # Omit some internal or obsolete options to make the list less imposing.
1368: # This message is too long to be a string in the A/UX 3.1 sh.
1369: cat <<_ACEOF
1.10 moko 1370: 'configure' configures libltdl 2.4.3a to adapt to many kinds of systems.
1.2 paf 1371:
1372: Usage: $0 [OPTION]... [VAR=VALUE]...
1373:
1374: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375: VAR=VALUE. See below for descriptions of some of the useful variables.
1376:
1377: Defaults for the options are specified in brackets.
1378:
1379: Configuration:
1380: -h, --help display this help and exit
1381: --help=short display options specific to this package
1382: --help=recursive display the short help of all the included packages
1383: -V, --version display version information and exit
1.10 moko 1384: -q, --quiet, --silent do not print 'checking ...' messages
1.2 paf 1385: --cache-file=FILE cache test results in FILE [disabled]
1.10 moko 1386: -C, --config-cache alias for '--cache-file=config.cache'
1.2 paf 1387: -n, --no-create do not create output files
1.10 moko 1388: --srcdir=DIR find the sources in DIR [configure dir or '..']
1.2 paf 1389:
1390: Installation directories:
1391: --prefix=PREFIX install architecture-independent files in PREFIX
1392: [$ac_default_prefix]
1393: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394: [PREFIX]
1395:
1.10 moko 1396: By default, 'make install' will install all the files in
1397: '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1398: an installation prefix other than '$ac_default_prefix' using '--prefix',
1399: for instance '--prefix=\$HOME'.
1.2 paf 1400:
1401: For better control, use the options below.
1402:
1403: Fine tuning of the installation directories:
1.5 moko 1404: --bindir=DIR user executables [EPREFIX/bin]
1405: --sbindir=DIR system admin executables [EPREFIX/sbin]
1406: --libexecdir=DIR program executables [EPREFIX/libexec]
1407: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.7 moko 1410: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.5 moko 1411: --libdir=DIR object code libraries [EPREFIX/lib]
1412: --includedir=DIR C header files [PREFIX/include]
1413: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416: --infodir=DIR info documentation [DATAROOTDIR/info]
1417: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418: --mandir=DIR man documentation [DATAROOTDIR/man]
1419: --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1420: --htmldir=DIR html documentation [DOCDIR]
1421: --dvidir=DIR dvi documentation [DOCDIR]
1422: --pdfdir=DIR pdf documentation [DOCDIR]
1423: --psdir=DIR ps documentation [DOCDIR]
1.2 paf 1424: _ACEOF
1425:
1426: cat <<\_ACEOF
1427:
1428: Program names:
1429: --program-prefix=PREFIX prepend PREFIX to installed program names
1430: --program-suffix=SUFFIX append SUFFIX to installed program names
1431: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1.3 paf 1432:
1433: System types:
1434: --build=BUILD configure for building on BUILD [guessed]
1435: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.2 paf 1436: _ACEOF
1437: fi
1438:
1439: if test -n "$ac_init_help"; then
1.5 moko 1440: case $ac_init_help in
1.10 moko 1441: short | recursive ) echo "Configuration of libltdl 2.4.3a:";;
1.5 moko 1442: esac
1.2 paf 1443: cat <<\_ACEOF
1444:
1445: Optional Features:
1.5 moko 1446: --disable-option-checking ignore unrecognized --enable/--with options
1.2 paf 1447: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.8 moko 1449: --enable-silent-rules less verbose build output (undo: "make V=1")
1450: --disable-silent-rules verbose build output (undo: "make V=0")
1.5 moko 1451: --enable-shared[=PKGS] build shared libraries [default=yes]
1452: --enable-static[=PKGS] build static libraries [default=yes]
1.10 moko 1453: --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1454: both]
1.5 moko 1455: --enable-fast-install[=PKGS]
1456: optimize for fast installation [default=yes]
1.10 moko 1457: --enable-aix-soname=aix|svr4|both
1458: shared library versioning (aka "SONAME") variant to
1459: provide on AIX, [default=aix].
1.8 moko 1460: --enable-dependency-tracking
1461: do not reject slow dependency extractors
1462: --disable-dependency-tracking
1463: speeds up one-time build
1.4 paf 1464: --disable-libtool-lock avoid locking (might break parallel builds)
1465: --enable-ltdl-install install libltdl
1466:
1467: Optional Packages:
1468: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.5 moko 1470: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.10 moko 1471: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1472: compiler's sysroot if not specified).
1.12 moko 1473: --with-assertions to enable assertions
1.2 paf 1474:
1475: Some influential environment variables:
1476: CC C compiler command
1477: CFLAGS C compiler flags
1478: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479: nonstandard directory <lib dir>
1.5 moko 1480: LIBS libraries to pass to the linker, e.g. -l<library>
1481: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482: you have headers in a nonstandard directory <include dir>
1.10 moko 1483: LT_SYS_LIBRARY_PATH
1484: User-defined run-time library search path.
1.2 paf 1485:
1.10 moko 1486: Use these variables to override the choices made by 'configure' or to help
1.2 paf 1487: it to find libraries and programs with nonstandard names/locations.
1488:
1.5 moko 1489: Report bugs to <bug-libtool@gnu.org>.
1.2 paf 1490: _ACEOF
1.5 moko 1491: ac_status=$?
1.2 paf 1492: fi
1493:
1494: if test "$ac_init_help" = "recursive"; then
1495: # If there are subdirs, report their specific --help.
1496: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.5 moko 1497: test -d "$ac_dir" ||
1498: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499: continue
1.2 paf 1500: ac_builddir=.
1501:
1.5 moko 1502: case "$ac_dir" in
1503: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504: *)
1.10 moko 1505: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.5 moko 1506: # A ".." for each directory in $ac_dir_suffix.
1.10 moko 1507: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.5 moko 1508: case $ac_top_builddir_sub in
1509: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511: esac ;;
1512: esac
1513: ac_abs_top_builddir=$ac_pwd
1514: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515: # for backward compatibility:
1516: ac_top_builddir=$ac_top_build_prefix
1.2 paf 1517:
1518: case $srcdir in
1.5 moko 1519: .) # We are building in place.
1.2 paf 1520: ac_srcdir=.
1.5 moko 1521: ac_top_srcdir=$ac_top_builddir_sub
1522: ac_abs_top_srcdir=$ac_pwd ;;
1523: [\\/]* | ?:[\\/]* ) # Absolute name.
1.2 paf 1524: ac_srcdir=$srcdir$ac_dir_suffix;
1.5 moko 1525: ac_top_srcdir=$srcdir
1526: ac_abs_top_srcdir=$srcdir ;;
1527: *) # Relative name.
1528: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529: ac_top_srcdir=$ac_top_build_prefix$srcdir
1530: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531: esac
1532: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533:
1534: cd "$ac_dir" || { ac_status=$?; continue; }
1.10 moko 1535: # Check for configure.gnu first; this name is used for a wrapper for
1536: # Metaconfig's "Configure" on case-insensitive file systems.
1.5 moko 1537: if test -f "$ac_srcdir/configure.gnu"; then
1538: echo &&
1539: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540: elif test -f "$ac_srcdir/configure"; then
1541: echo &&
1542: $SHELL "$ac_srcdir/configure" --help=recursive
1.2 paf 1543: else
1.10 moko 1544: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.5 moko 1545: fi || ac_status=$?
1546: cd "$ac_pwd" || { ac_status=$?; break; }
1.2 paf 1547: done
1548: fi
1549:
1.5 moko 1550: test -n "$ac_init_help" && exit $ac_status
1.2 paf 1551: if $ac_init_version; then
1552: cat <<\_ACEOF
1.10 moko 1553: libltdl configure 2.4.3a
1554: generated by GNU Autoconf 2.72
1.2 paf 1555:
1.10 moko 1556: Copyright (C) 2023 Free Software Foundation, Inc.
1.2 paf 1557: This configure script is free software; the Free Software Foundation
1558: gives unlimited permission to copy, distribute and modify it.
1559: _ACEOF
1.5 moko 1560: exit
1.2 paf 1561: fi
1562:
1.5 moko 1563: ## ------------------------ ##
1564: ## Autoconf initialization. ##
1565: ## ------------------------ ##
1566:
1567: # ac_fn_c_try_compile LINENO
1568: # --------------------------
1569: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570: ac_fn_c_try_compile ()
1571: {
1572: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.10 moko 1573: rm -f conftest.$ac_objext conftest.beam
1.5 moko 1574: if { { ac_try="$ac_compile"
1575: case "(($ac_try" in
1576: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577: *) ac_try_echo=$ac_try;;
1578: esac
1579: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.10 moko 1580: printf "%s\n" "$ac_try_echo"; } >&5
1.5 moko 1581: (eval "$ac_compile") 2>conftest.err
1582: ac_status=$?
1583: if test -s conftest.err; then
1584: grep -v '^ *+' conftest.err >conftest.er1
1585: cat conftest.er1 >&5
1586: mv -f conftest.er1 conftest.err
1587: fi
1.10 moko 1588: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 1589: test $ac_status = 0; } && {
1590: test -z "$ac_c_werror_flag" ||
1591: test ! -s conftest.err
1.10 moko 1592: } && test -s conftest.$ac_objext
1593: then :
1.5 moko 1594: ac_retval=0
1.10 moko 1595: else case e in #(
1596: e) printf "%s\n" "$as_me: failed program was:" >&5
1.5 moko 1597: sed 's/^/| /' conftest.$ac_ext >&5
1598:
1.10 moko 1599: ac_retval=1 ;;
1600: esac
1.5 moko 1601: fi
1602: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603: as_fn_set_status $ac_retval
1604:
1605: } # ac_fn_c_try_compile
1606:
1607: # ac_fn_c_try_link LINENO
1608: # -----------------------
1609: # Try to link conftest.$ac_ext, and return whether this succeeded.
1610: ac_fn_c_try_link ()
1611: {
1612: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.10 moko 1613: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.5 moko 1614: if { { ac_try="$ac_link"
1615: case "(($ac_try" in
1616: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617: *) ac_try_echo=$ac_try;;
1618: esac
1619: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.10 moko 1620: printf "%s\n" "$ac_try_echo"; } >&5
1.5 moko 1621: (eval "$ac_link") 2>conftest.err
1622: ac_status=$?
1623: if test -s conftest.err; then
1624: grep -v '^ *+' conftest.err >conftest.er1
1625: cat conftest.er1 >&5
1626: mv -f conftest.er1 conftest.err
1627: fi
1.10 moko 1628: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 1629: test $ac_status = 0; } && {
1630: test -z "$ac_c_werror_flag" ||
1631: test ! -s conftest.err
1632: } && test -s conftest$ac_exeext && {
1633: test "$cross_compiling" = yes ||
1.7 moko 1634: test -x conftest$ac_exeext
1.10 moko 1635: }
1636: then :
1.5 moko 1637: ac_retval=0
1.10 moko 1638: else case e in #(
1639: e) printf "%s\n" "$as_me: failed program was:" >&5
1.5 moko 1640: sed 's/^/| /' conftest.$ac_ext >&5
1641:
1.10 moko 1642: ac_retval=1 ;;
1643: esac
1.5 moko 1644: fi
1645: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1646: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1647: # interfere with the next link command; also delete a directory that is
1648: # left behind by Apple's compiler. We do this before executing the actions.
1649: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651: as_fn_set_status $ac_retval
1652:
1653: } # ac_fn_c_try_link
1654:
1655: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656: # -------------------------------------------------------
1657: # Tests whether HEADER exists and can be compiled using the include files in
1658: # INCLUDES, setting the cache variable VAR accordingly.
1659: ac_fn_c_check_header_compile ()
1660: {
1661: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.10 moko 1662: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663: printf %s "checking for $2... " >&6; }
1664: if eval test \${$3+y}
1665: then :
1666: printf %s "(cached) " >&6
1667: else case e in #(
1668: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 moko 1669: /* end confdefs.h. */
1670: $4
1671: #include <$2>
1672: _ACEOF
1.10 moko 1673: if ac_fn_c_try_compile "$LINENO"
1674: then :
1.5 moko 1675: eval "$3=yes"
1.10 moko 1676: else case e in #(
1677: e) eval "$3=no" ;;
1678: esac
1.5 moko 1679: fi
1.10 moko 1680: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1681: esac
1.5 moko 1682: fi
1683: eval ac_res=\$$3
1.10 moko 1684: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685: printf "%s\n" "$ac_res" >&6; }
1.5 moko 1686: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687:
1688: } # ac_fn_c_check_header_compile
1689:
1690: # ac_fn_c_check_func LINENO FUNC VAR
1691: # ----------------------------------
1692: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1693: ac_fn_c_check_func ()
1694: {
1695: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.10 moko 1696: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697: printf %s "checking for $2... " >&6; }
1698: if eval test \${$3+y}
1699: then :
1700: printf %s "(cached) " >&6
1701: else case e in #(
1702: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 moko 1703: /* end confdefs.h. */
1704: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1705: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1706: #define $2 innocuous_$2
1707:
1708: /* System header to define __stub macros and hopefully few prototypes,
1.10 moko 1709: which can conflict with char $2 (void); below. */
1.5 moko 1710:
1.10 moko 1711: #include <limits.h>
1.5 moko 1712: #undef $2
1713:
1714: /* Override any GCC internal prototype to avoid an error.
1715: Use char because int might match the return type of a GCC
1716: builtin and then its argument prototype would still apply. */
1717: #ifdef __cplusplus
1718: extern "C"
1719: #endif
1.10 moko 1720: char $2 (void);
1.5 moko 1721: /* The GNU C library defines this for functions which it implements
1722: to always fail with ENOSYS. Some functions are actually named
1723: something starting with __ and the normal name is an alias. */
1724: #if defined __stub_$2 || defined __stub___$2
1725: choke me
1726: #endif
1727:
1728: int
1.10 moko 1729: main (void)
1.5 moko 1730: {
1731: return $2 ();
1732: ;
1733: return 0;
1734: }
1735: _ACEOF
1.10 moko 1736: if ac_fn_c_try_link "$LINENO"
1737: then :
1.5 moko 1738: eval "$3=yes"
1.10 moko 1739: else case e in #(
1740: e) eval "$3=no" ;;
1741: esac
1.5 moko 1742: fi
1.10 moko 1743: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1744: conftest$ac_exeext conftest.$ac_ext ;;
1745: esac
1.5 moko 1746: fi
1747: eval ac_res=\$$3
1.10 moko 1748: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749: printf "%s\n" "$ac_res" >&6; }
1.5 moko 1750: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751:
1752: } # ac_fn_c_check_func
1753:
1.10 moko 1754: # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1755: # ------------------------------------------------------------------
1.5 moko 1756: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1.10 moko 1757: # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1758: ac_fn_check_decl ()
1.5 moko 1759: {
1760: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761: as_decl_name=`echo $2|sed 's/ *(.*//'`
1.10 moko 1762: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1763: printf %s "checking whether $as_decl_name is declared... " >&6; }
1764: if eval test \${$3+y}
1765: then :
1766: printf %s "(cached) " >&6
1767: else case e in #(
1768: e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1769: eval ac_save_FLAGS=\$$6
1770: as_fn_append $6 " $5"
1.5 moko 1771: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772: /* end confdefs.h. */
1773: $4
1774: int
1.10 moko 1775: main (void)
1.5 moko 1776: {
1777: #ifndef $as_decl_name
1778: #ifdef __cplusplus
1779: (void) $as_decl_use;
1780: #else
1781: (void) $as_decl_name;
1782: #endif
1783: #endif
1784:
1785: ;
1786: return 0;
1787: }
1788: _ACEOF
1.10 moko 1789: if ac_fn_c_try_compile "$LINENO"
1790: then :
1.5 moko 1791: eval "$3=yes"
1.10 moko 1792: else case e in #(
1793: e) eval "$3=no" ;;
1794: esac
1.5 moko 1795: fi
1.10 moko 1796: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1797: eval $6=\$ac_save_FLAGS
1798: ;;
1799: esac
1.5 moko 1800: fi
1801: eval ac_res=\$$3
1.10 moko 1802: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803: printf "%s\n" "$ac_res" >&6; }
1.5 moko 1804: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805:
1.10 moko 1806: } # ac_fn_check_decl
1.5 moko 1807:
1808: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809: # -------------------------------------------
1810: # Tests whether TYPE exists after having included INCLUDES, setting cache
1811: # variable VAR accordingly.
1812: ac_fn_c_check_type ()
1813: {
1814: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.10 moko 1815: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816: printf %s "checking for $2... " >&6; }
1817: if eval test \${$3+y}
1818: then :
1819: printf %s "(cached) " >&6
1820: else case e in #(
1821: e) eval "$3=no"
1.5 moko 1822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823: /* end confdefs.h. */
1824: $4
1825: int
1.10 moko 1826: main (void)
1.5 moko 1827: {
1828: if (sizeof ($2))
1829: return 0;
1830: ;
1831: return 0;
1832: }
1833: _ACEOF
1.10 moko 1834: if ac_fn_c_try_compile "$LINENO"
1835: then :
1.5 moko 1836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837: /* end confdefs.h. */
1838: $4
1839: int
1.10 moko 1840: main (void)
1.5 moko 1841: {
1842: if (sizeof (($2)))
1843: return 0;
1844: ;
1845: return 0;
1846: }
1847: _ACEOF
1.10 moko 1848: if ac_fn_c_try_compile "$LINENO"
1849: then :
1.5 moko 1850:
1.10 moko 1851: else case e in #(
1852: e) eval "$3=yes" ;;
1853: esac
1.5 moko 1854: fi
1.10 moko 1855: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.5 moko 1856: fi
1.10 moko 1857: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1858: esac
1.5 moko 1859: fi
1860: eval ac_res=\$$3
1.10 moko 1861: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862: printf "%s\n" "$ac_res" >&6; }
1.5 moko 1863: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864:
1865: } # ac_fn_c_check_type
1.10 moko 1866: ac_configure_args_raw=
1867: for ac_arg
1868: do
1869: case $ac_arg in
1870: *\'*)
1871: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1872: esac
1873: as_fn_append ac_configure_args_raw " '$ac_arg'"
1874: done
1875:
1876: case $ac_configure_args_raw in
1877: *$as_nl*)
1878: ac_safe_unquote= ;;
1879: *)
1880: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1881: ac_unsafe_a="$ac_unsafe_z#~"
1882: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1883: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1884: esac
1885:
1.5 moko 1886: cat >config.log <<_ACEOF
1887: This file contains any messages produced by compilers while
1888: running configure, to aid debugging if configure makes a mistake.
1889:
1.10 moko 1890: It was created by libltdl $as_me 2.4.3a, which was
1891: generated by GNU Autoconf 2.72. Invocation command line was
1.5 moko 1892:
1.10 moko 1893: $ $0$ac_configure_args_raw
1.5 moko 1894:
1895: _ACEOF
1896: exec 5>>config.log
1.2 paf 1897: {
1898: cat <<_ASUNAME
1899: ## --------- ##
1900: ## Platform. ##
1901: ## --------- ##
1902:
1903: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908:
1909: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1911:
1912: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1913: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1914: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.5 moko 1915: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.2 paf 1916: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1917: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1918: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1919:
1920: _ASUNAME
1921:
1922: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923: for as_dir in $PATH
1924: do
1925: IFS=$as_save_IFS
1.10 moko 1926: case $as_dir in #(((
1927: '') as_dir=./ ;;
1928: */) ;;
1929: *) as_dir=$as_dir/ ;;
1930: esac
1931: printf "%s\n" "PATH: $as_dir"
1.5 moko 1932: done
1933: IFS=$as_save_IFS
1.2 paf 1934:
1935: } >&5
1936:
1937: cat >&5 <<_ACEOF
1938:
1939:
1940: ## ----------- ##
1941: ## Core tests. ##
1942: ## ----------- ##
1943:
1944: _ACEOF
1945:
1946:
1947: # Keep a trace of the command line.
1948: # Strip out --no-create and --no-recursion so they do not pile up.
1949: # Strip out --silent because we don't want to record it for future runs.
1950: # Also quote any args containing shell meta-characters.
1951: # Make two passes to allow for proper duplicate-argument suppression.
1952: ac_configure_args=
1953: ac_configure_args0=
1954: ac_configure_args1=
1955: ac_must_keep_next=false
1956: for ac_pass in 1 2
1957: do
1958: for ac_arg
1959: do
1960: case $ac_arg in
1961: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963: | -silent | --silent | --silen | --sile | --sil)
1964: continue ;;
1.5 moko 1965: *\'*)
1.10 moko 1966: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.2 paf 1967: esac
1968: case $ac_pass in
1.5 moko 1969: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.2 paf 1970: 2)
1.5 moko 1971: as_fn_append ac_configure_args1 " '$ac_arg'"
1.2 paf 1972: if test $ac_must_keep_next = true; then
1.5 moko 1973: ac_must_keep_next=false # Got value, back to normal.
1.2 paf 1974: else
1.5 moko 1975: case $ac_arg in
1976: *=* | --config-cache | -C | -disable-* | --disable-* \
1977: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979: | -with-* | --with-* | -without-* | --without-* | --x)
1980: case "$ac_configure_args0 " in
1981: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982: esac
1983: ;;
1984: -* ) ac_must_keep_next=true ;;
1985: esac
1.2 paf 1986: fi
1.5 moko 1987: as_fn_append ac_configure_args " '$ac_arg'"
1.2 paf 1988: ;;
1989: esac
1990: done
1991: done
1.5 moko 1992: { ac_configure_args0=; unset ac_configure_args0;}
1993: { ac_configure_args1=; unset ac_configure_args1;}
1.2 paf 1994:
1995: # When interrupted or exit'd, cleanup temporary files, and complete
1996: # config.log. We remove comments because anyway the quotes in there
1997: # would cause problems or look ugly.
1.5 moko 1998: # WARNING: Use '\'' to represent an apostrophe within the trap.
1999: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.2 paf 2000: trap 'exit_status=$?
1.10 moko 2001: # Sanitize IFS.
2002: IFS=" "" $as_nl"
1.2 paf 2003: # Save into config.log some information that might help in debugging.
2004: {
2005: echo
2006:
1.10 moko 2007: printf "%s\n" "## ---------------- ##
1.2 paf 2008: ## Cache variables. ##
1.5 moko 2009: ## ---------------- ##"
1.2 paf 2010: echo
2011: # The following way of writing the cache mishandles newlines in values,
1.5 moko 2012: (
2013: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014: eval ac_val=\$$ac_var
2015: case $ac_val in #(
2016: *${as_nl}*)
2017: case $ac_var in #(
1.10 moko 2018: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.5 moko 2020: esac
2021: case $ac_var in #(
2022: _ | IFS | as_nl) ;; #(
2023: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024: *) { eval $ac_var=; unset $ac_var;} ;;
2025: esac ;;
2026: esac
2027: done
1.2 paf 2028: (set) 2>&1 |
1.5 moko 2029: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030: *${as_nl}ac_space=\ *)
1.2 paf 2031: sed -n \
1.5 moko 2032: "s/'\''/'\''\\\\'\'''\''/g;
2033: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034: ;; #(
1.2 paf 2035: *)
1.5 moko 2036: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.2 paf 2037: ;;
1.5 moko 2038: esac |
2039: sort
2040: )
1.2 paf 2041: echo
2042:
1.10 moko 2043: printf "%s\n" "## ----------------- ##
1.2 paf 2044: ## Output variables. ##
1.5 moko 2045: ## ----------------- ##"
1.2 paf 2046: echo
2047: for ac_var in $ac_subst_vars
2048: do
1.5 moko 2049: eval ac_val=\$$ac_var
2050: case $ac_val in
1.10 moko 2051: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.5 moko 2052: esac
1.10 moko 2053: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.2 paf 2054: done | sort
2055: echo
2056:
2057: if test -n "$ac_subst_files"; then
1.10 moko 2058: printf "%s\n" "## ------------------- ##
1.5 moko 2059: ## File substitutions. ##
2060: ## ------------------- ##"
1.2 paf 2061: echo
2062: for ac_var in $ac_subst_files
2063: do
1.5 moko 2064: eval ac_val=\$$ac_var
2065: case $ac_val in
1.10 moko 2066: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.5 moko 2067: esac
1.10 moko 2068: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.2 paf 2069: done | sort
2070: echo
2071: fi
2072:
2073: if test -s confdefs.h; then
1.10 moko 2074: printf "%s\n" "## ----------- ##
1.2 paf 2075: ## confdefs.h. ##
1.5 moko 2076: ## ----------- ##"
1.2 paf 2077: echo
1.5 moko 2078: cat confdefs.h
1.2 paf 2079: echo
2080: fi
2081: test "$ac_signal" != 0 &&
1.10 moko 2082: printf "%s\n" "$as_me: caught signal $ac_signal"
2083: printf "%s\n" "$as_me: exit $exit_status"
1.2 paf 2084: } >&5
1.5 moko 2085: rm -f core *.core core.conftest.* &&
2086: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.2 paf 2087: exit $exit_status
1.5 moko 2088: ' 0
1.2 paf 2089: for ac_signal in 1 2 13 15; do
1.5 moko 2090: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.2 paf 2091: done
2092: ac_signal=0
2093:
2094: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.5 moko 2095: rm -f -r conftest* confdefs.h
2096:
1.10 moko 2097: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.2 paf 2098:
2099: # Predefined preprocessor variables.
2100:
1.10 moko 2101: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.2 paf 2102:
1.10 moko 2103: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.2 paf 2104:
1.10 moko 2105: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.2 paf 2106:
1.10 moko 2107: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.2 paf 2108:
1.10 moko 2109: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.2 paf 2110:
1.10 moko 2111: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.2 paf 2112:
2113:
2114: # Let the site file select an alternate cache file if it wants to.
1.5 moko 2115: # Prefer an explicitly selected file to automatically selected ones.
2116: if test -n "$CONFIG_SITE"; then
1.10 moko 2117: ac_site_files="$CONFIG_SITE"
1.5 moko 2118: elif test "x$prefix" != xNONE; then
1.10 moko 2119: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.5 moko 2120: else
1.10 moko 2121: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.5 moko 2122: fi
1.10 moko 2123:
2124: for ac_site_file in $ac_site_files
1.5 moko 2125: do
1.10 moko 2126: case $ac_site_file in #(
2127: */*) :
2128: ;; #(
2129: *) :
2130: ac_site_file=./$ac_site_file ;;
2131: esac
2132: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2133: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.2 paf 2135: sed 's/^/| /' "$ac_site_file" >&5
1.5 moko 2136: . "$ac_site_file" \
1.10 moko 2137: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2138: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.5 moko 2139: as_fn_error $? "failed to load site script $ac_site_file
1.10 moko 2140: See 'config.log' for more details" "$LINENO" 5; }
1.1 paf 2141: fi
2142: done
2143:
2144: if test -r "$cache_file"; then
1.5 moko 2145: # Some versions of bash will fail to source /dev/null (special files
2146: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.10 moko 2148: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.2 paf 2150: case $cache_file in
1.5 moko 2151: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152: *) . "./$cache_file";;
1.2 paf 2153: esac
2154: fi
1.1 paf 2155: else
1.10 moko 2156: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.2 paf 2158: >$cache_file
2159: fi
2160:
1.10 moko 2161: # Test code for whether the C compiler supports C89 (global declarations)
2162: ac_c_conftest_c89_globals='
2163: /* Does the compiler advertise C89 conformance?
2164: Do not test the value of __STDC__, because some compilers set it to 0
2165: while being otherwise adequately conformant. */
2166: #if !defined __STDC__
2167: # error "Compiler does not advertise C89 conformance"
2168: #endif
1.1 paf 2169:
1.10 moko 2170: #include <stddef.h>
2171: #include <stdarg.h>
2172: struct stat;
2173: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2174: struct buf { int x; };
2175: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2176: static char *e (char **p, int i)
2177: {
2178: return p[i];
2179: }
2180: static char *f (char * (*g) (char **, int), char **p, ...)
2181: {
2182: char *s;
2183: va_list v;
2184: va_start (v,p);
2185: s = g (p, va_arg (v,int));
2186: va_end (v);
2187: return s;
2188: }
1.2 paf 2189:
1.10 moko 2190: /* C89 style stringification. */
2191: #define noexpand_stringify(a) #a
2192: const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2193:
2194: /* C89 style token pasting. Exercises some of the corner cases that
2195: e.g. old MSVC gets wrong, but not very hard. */
2196: #define noexpand_concat(a,b) a##b
2197: #define expand_concat(a,b) noexpand_concat(a,b)
2198: extern int vA;
2199: extern int vbee;
2200: #define aye A
2201: #define bee B
2202: int *pvA = &expand_concat(v,aye);
2203: int *pvbee = &noexpand_concat(v,bee);
1.2 paf 2204:
1.10 moko 2205: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2206: function prototypes and stuff, but not \xHH hex character constants.
2207: These do not provoke an error unfortunately, instead are silently treated
2208: as an "x". The following induces an error, until -std is added to get
2209: proper ANSI mode. Curiously \x00 != x always comes out true, for an
2210: array size at least. It is necessary to write \x00 == 0 to get something
2211: that is true only with -std. */
2212: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1.1 paf 2213:
1.10 moko 2214: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2215: inside strings and character constants. */
2216: #define FOO(x) '\''x'\''
2217: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2218:
2219: int test (int i, double x);
2220: struct s1 {int (*f) (int a);};
2221: struct s2 {int (*f) (double a);};
2222: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2223: int, int);'
2224:
2225: # Test code for whether the C compiler supports C89 (body of main).
2226: ac_c_conftest_c89_main='
2227: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2228: '
2229:
2230: # Test code for whether the C compiler supports C99 (global declarations)
2231: ac_c_conftest_c99_globals='
2232: /* Does the compiler advertise C99 conformance? */
2233: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2234: # error "Compiler does not advertise C99 conformance"
2235: #endif
2236:
2237: // See if C++-style comments work.
2238:
2239: #include <stdbool.h>
2240: extern int puts (const char *);
2241: extern int printf (const char *, ...);
2242: extern int dprintf (int, const char *, ...);
2243: extern void *malloc (size_t);
2244: extern void free (void *);
2245:
2246: // Check varargs macros. These examples are taken from C99 6.10.3.5.
2247: // dprintf is used instead of fprintf to avoid needing to declare
2248: // FILE and stderr.
2249: #define debug(...) dprintf (2, __VA_ARGS__)
2250: #define showlist(...) puts (#__VA_ARGS__)
2251: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2252: static void
2253: test_varargs_macros (void)
2254: {
2255: int x = 1234;
2256: int y = 5678;
2257: debug ("Flag");
2258: debug ("X = %d\n", x);
2259: showlist (The first, second, and third items.);
2260: report (x>y, "x is %d but y is %d", x, y);
2261: }
2262:
2263: // Check long long types.
2264: #define BIG64 18446744073709551615ull
2265: #define BIG32 4294967295ul
2266: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2267: #if !BIG_OK
2268: #error "your preprocessor is broken"
2269: #endif
2270: #if BIG_OK
2271: #else
2272: #error "your preprocessor is broken"
2273: #endif
2274: static long long int bignum = -9223372036854775807LL;
2275: static unsigned long long int ubignum = BIG64;
2276:
2277: struct incomplete_array
2278: {
2279: int datasize;
2280: double data[];
2281: };
2282:
2283: struct named_init {
2284: int number;
2285: const wchar_t *name;
2286: double average;
2287: };
2288:
2289: typedef const char *ccp;
2290:
2291: static inline int
2292: test_restrict (ccp restrict text)
2293: {
2294: // Iterate through items via the restricted pointer.
2295: // Also check for declarations in for loops.
2296: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2297: continue;
2298: return 0;
2299: }
2300:
2301: // Check varargs and va_copy.
2302: static bool
2303: test_varargs (const char *format, ...)
2304: {
2305: va_list args;
2306: va_start (args, format);
2307: va_list args_copy;
2308: va_copy (args_copy, args);
2309:
2310: const char *str = "";
2311: int number = 0;
2312: float fnumber = 0;
2313:
2314: while (*format)
2315: {
2316: switch (*format++)
2317: {
2318: case '\''s'\'': // string
2319: str = va_arg (args_copy, const char *);
2320: break;
2321: case '\''d'\'': // int
2322: number = va_arg (args_copy, int);
2323: break;
2324: case '\''f'\'': // float
2325: fnumber = va_arg (args_copy, double);
2326: break;
2327: default:
2328: break;
2329: }
2330: }
2331: va_end (args_copy);
2332: va_end (args);
2333:
2334: return *str && number && fnumber;
2335: }
2336: '
2337:
2338: # Test code for whether the C compiler supports C99 (body of main).
2339: ac_c_conftest_c99_main='
2340: // Check bool.
2341: _Bool success = false;
2342: success |= (argc != 0);
2343:
2344: // Check restrict.
2345: if (test_restrict ("String literal") == 0)
2346: success = true;
2347: char *restrict newvar = "Another string";
2348:
2349: // Check varargs.
2350: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2351: test_varargs_macros ();
2352:
2353: // Check flexible array members.
2354: struct incomplete_array *ia =
2355: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2356: ia->datasize = 10;
2357: for (int i = 0; i < ia->datasize; ++i)
2358: ia->data[i] = i * 1.234;
2359: // Work around memory leak warnings.
2360: free (ia);
2361:
2362: // Check named initializers.
2363: struct named_init ni = {
2364: .number = 34,
2365: .name = L"Test wide string",
2366: .average = 543.34343,
2367: };
2368:
2369: ni.number = 58;
2370:
2371: int dynamic_array[ni.number];
2372: dynamic_array[0] = argv[0][0];
2373: dynamic_array[ni.number - 1] = 543;
2374:
2375: // work around unused variable warnings
2376: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2377: || dynamic_array[ni.number - 1] != 543);
2378: '
2379:
2380: # Test code for whether the C compiler supports C11 (global declarations)
2381: ac_c_conftest_c11_globals='
2382: /* Does the compiler advertise C11 conformance? */
2383: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2384: # error "Compiler does not advertise C11 conformance"
2385: #endif
2386:
2387: // Check _Alignas.
2388: char _Alignas (double) aligned_as_double;
2389: char _Alignas (0) no_special_alignment;
2390: extern char aligned_as_int;
2391: char _Alignas (0) _Alignas (int) aligned_as_int;
2392:
2393: // Check _Alignof.
2394: enum
2395: {
2396: int_alignment = _Alignof (int),
2397: int_array_alignment = _Alignof (int[100]),
2398: char_alignment = _Alignof (char)
2399: };
2400: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2401:
2402: // Check _Noreturn.
2403: int _Noreturn does_not_return (void) { for (;;) continue; }
2404:
2405: // Check _Static_assert.
2406: struct test_static_assert
2407: {
2408: int x;
2409: _Static_assert (sizeof (int) <= sizeof (long int),
2410: "_Static_assert does not work in struct");
2411: long int y;
2412: };
2413:
2414: // Check UTF-8 literals.
2415: #define u8 syntax error!
2416: char const utf8_literal[] = u8"happens to be ASCII" "another string";
2417:
2418: // Check duplicate typedefs.
2419: typedef long *long_ptr;
2420: typedef long int *long_ptr;
2421: typedef long_ptr long_ptr;
2422:
2423: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2424: struct anonymous
2425: {
2426: union {
2427: struct { int i; int j; };
2428: struct { int k; long int l; } w;
2429: };
2430: int m;
2431: } v1;
2432: '
2433:
2434: # Test code for whether the C compiler supports C11 (body of main).
2435: ac_c_conftest_c11_main='
2436: _Static_assert ((offsetof (struct anonymous, i)
2437: == offsetof (struct anonymous, w.k)),
2438: "Anonymous union alignment botch");
2439: v1.i = 2;
2440: v1.w.k = 5;
2441: ok |= v1.i != 5;
2442: '
2443:
2444: # Test code for whether the C compiler supports C11 (complete).
2445: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2446: ${ac_c_conftest_c99_globals}
2447: ${ac_c_conftest_c11_globals}
2448:
2449: int
2450: main (int argc, char **argv)
2451: {
2452: int ok = 0;
2453: ${ac_c_conftest_c89_main}
2454: ${ac_c_conftest_c99_main}
2455: ${ac_c_conftest_c11_main}
2456: return ok;
2457: }
2458: "
2459:
2460: # Test code for whether the C compiler supports C99 (complete).
2461: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2462: ${ac_c_conftest_c99_globals}
2463:
2464: int
2465: main (int argc, char **argv)
2466: {
2467: int ok = 0;
2468: ${ac_c_conftest_c89_main}
2469: ${ac_c_conftest_c99_main}
2470: return ok;
2471: }
2472: "
2473:
2474: # Test code for whether the C compiler supports C89 (complete).
2475: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2476:
2477: int
2478: main (int argc, char **argv)
2479: {
2480: int ok = 0;
2481: ${ac_c_conftest_c89_main}
2482: return ok;
2483: }
2484: "
2485:
2486: as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2487: as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2488: as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2489: as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2490: as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2491: as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2492: as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2493: as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2494: as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2495:
2496: # Auxiliary files required by this configure script.
2497: ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2498:
2499: # Locations in which to look for auxiliary files.
2500: ac_aux_dir_candidates="${srcdir}/../../.."
2501:
2502: # Search for a directory containing all of the required auxiliary files,
2503: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2504: # If we don't find one directory that contains all the files we need,
2505: # we report the set of missing files from the *first* directory in
2506: # $ac_aux_dir_candidates and give up.
2507: ac_missing_aux_files=""
2508: ac_first_candidate=:
2509: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2510: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511: as_found=false
2512: for as_dir in $ac_aux_dir_candidates
2513: do
2514: IFS=$as_save_IFS
2515: case $as_dir in #(((
2516: '') as_dir=./ ;;
2517: */) ;;
2518: *) as_dir=$as_dir/ ;;
2519: esac
2520: as_found=:
2521:
2522: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2523: ac_aux_dir_found=yes
2524: ac_install_sh=
2525: for ac_aux in $ac_aux_files
2526: do
2527: # As a special case, if "install-sh" is required, that requirement
2528: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2529: # and $ac_install_sh is set appropriately for whichever one is found.
2530: if test x"$ac_aux" = x"install-sh"
2531: then
2532: if test -f "${as_dir}install-sh"; then
2533: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2534: ac_install_sh="${as_dir}install-sh -c"
2535: elif test -f "${as_dir}install.sh"; then
2536: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2537: ac_install_sh="${as_dir}install.sh -c"
2538: elif test -f "${as_dir}shtool"; then
2539: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2540: ac_install_sh="${as_dir}shtool install -c"
2541: else
2542: ac_aux_dir_found=no
2543: if $ac_first_candidate; then
2544: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2545: else
2546: break
2547: fi
2548: fi
2549: else
2550: if test -f "${as_dir}${ac_aux}"; then
2551: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2552: else
2553: ac_aux_dir_found=no
2554: if $ac_first_candidate; then
2555: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2556: else
2557: break
2558: fi
2559: fi
2560: fi
2561: done
2562: if test "$ac_aux_dir_found" = yes; then
2563: ac_aux_dir="$as_dir"
2564: break
2565: fi
2566: ac_first_candidate=false
2567:
2568: as_found=false
2569: done
2570: IFS=$as_save_IFS
2571: if $as_found
2572: then :
2573:
2574: else case e in #(
2575: e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2576: esac
2577: fi
1.1 paf 2578:
1.5 moko 2579:
2580: # These three variables are undocumented and unsupported,
2581: # and are intended to be withdrawn in a future Autoconf release.
2582: # They can cause serious problems if a builder's source tree is in a directory
2583: # whose full name contains unusual characters.
1.10 moko 2584: if test -f "${ac_aux_dir}config.guess"; then
2585: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2586: fi
2587: if test -f "${ac_aux_dir}config.sub"; then
2588: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2589: fi
2590: if test -f "$ac_aux_dir/configure"; then
2591: ac_configure="$SHELL ${ac_aux_dir}configure"
2592: fi
2593:
2594: # Check that the precious variables saved in the cache have kept the same
2595: # value.
2596: ac_cache_corrupted=false
2597: for ac_var in $ac_precious_vars; do
2598: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599: eval ac_new_set=\$ac_env_${ac_var}_set
2600: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601: eval ac_new_val=\$ac_env_${ac_var}_value
2602: case $ac_old_set,$ac_new_set in
2603: set,)
2604: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2605: printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2606: ac_cache_corrupted=: ;;
2607: ,set)
2608: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2609: printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2610: ac_cache_corrupted=: ;;
2611: ,);;
2612: *)
2613: if test "x$ac_old_val" != "x$ac_new_val"; then
2614: # differences in whitespace do not lead to failure.
2615: ac_old_val_w=`echo x $ac_old_val`
2616: ac_new_val_w=`echo x $ac_new_val`
2617: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2619: printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2620: ac_cache_corrupted=:
2621: else
2622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2623: printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2624: eval $ac_var=\$ac_old_val
2625: fi
2626: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2627: printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2628: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2629: printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2630: fi;;
2631: esac
2632: # Pass precious variables to config.status.
2633: if test "$ac_new_set" = set; then
2634: case $ac_new_val in
2635: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636: *) ac_arg=$ac_var=$ac_new_val ;;
2637: esac
2638: case " $ac_configure_args " in
2639: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2640: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2641: esac
2642: fi
2643: done
2644: if $ac_cache_corrupted; then
2645: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2646: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2647: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2649: as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2650: and start over" "$LINENO" 5
2651: fi
2652: ## -------------------- ##
2653: ## Main body of script. ##
2654: ## -------------------- ##
2655:
2656: ac_ext=c
2657: ac_cpp='$CPP $CPPFLAGS'
2658: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661:
2662:
2663: ac_config_headers="$ac_config_headers config.h:config-h.in"
1.5 moko 2664:
2665:
2666:
2667:
1.1 paf 2668:
1.4 paf 2669:
1.5 moko 2670:
2671:
2672: # I am me!
2673:
2674:
2675: ## ------------------------ ##
2676: ## Automake Initialisation. ##
2677: ## ------------------------ ##
2678:
1.10 moko 2679: am__api_version='1.17'
1.5 moko 2680:
1.10 moko 2681:
2682:
2683: # Find a good install program. We prefer a C program (faster),
1.1 paf 2684: # so one script is as good as another. But avoid the broken or
2685: # incompatible versions:
2686: # SysV /etc/install, /usr/sbin/install
2687: # SunOS /usr/etc/install
2688: # IRIX /sbin/install
2689: # AIX /bin/install
1.2 paf 2690: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2691: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2692: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2693: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.5 moko 2694: # OS/2's system install, which has a completely different semantic
1.1 paf 2695: # ./install, which can be erroneously created by make from ./install.sh.
1.5 moko 2696: # Reject install programs that cannot install multiple files.
1.10 moko 2697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2698: printf %s "checking for a BSD-compatible install... " >&6; }
1.1 paf 2699: if test -z "$INSTALL"; then
1.10 moko 2700: if test ${ac_cv_path_install+y}
2701: then :
2702: printf %s "(cached) " >&6
2703: else case e in #(
2704: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2 paf 2705: for as_dir in $PATH
2706: do
2707: IFS=$as_save_IFS
1.10 moko 2708: case $as_dir in #(((
2709: '') as_dir=./ ;;
2710: */) ;;
2711: *) as_dir=$as_dir/ ;;
2712: esac
2713: # Account for fact that we put trailing slashes in our PATH walk.
2714: case $as_dir in #((
2715: ./ | /[cC]/* | \
1.2 paf 2716: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.5 moko 2717: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.2 paf 2718: /usr/ucb/* ) ;;
2719: *)
2720: # OSF1 and SCO ODT 3.0 have their own names for install.
2721: # Don't use installbsd from OSF since it installs stuff as root
2722: # by default.
2723: for ac_prog in ginstall scoinst install; do
2724: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 2725: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.5 moko 2726: if test $ac_prog = install &&
1.10 moko 2727: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.5 moko 2728: # AIX install. It has an incompatible calling convention.
2729: :
2730: elif test $ac_prog = install &&
1.10 moko 2731: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.5 moko 2732: # program-specific install script used by HP pwplus--don't use.
2733: :
2734: else
2735: rm -rf conftest.one conftest.two conftest.dir
2736: echo one > conftest.one
2737: echo two > conftest.two
2738: mkdir conftest.dir
1.10 moko 2739: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.5 moko 2740: test -s conftest.one && test -s conftest.two &&
2741: test -s conftest.dir/conftest.one &&
2742: test -s conftest.dir/conftest.two
2743: then
1.10 moko 2744: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.5 moko 2745: break 3
2746: fi
2747: fi
2748: fi
1.1 paf 2749: done
1.2 paf 2750: done
2751: ;;
2752: esac
2753:
1.5 moko 2754: done
2755: IFS=$as_save_IFS
2756:
2757: rm -rf conftest.one conftest.two conftest.dir
1.10 moko 2758: ;;
2759: esac
1.1 paf 2760: fi
1.10 moko 2761: if test ${ac_cv_path_install+y}; then
1.2 paf 2762: INSTALL=$ac_cv_path_install
1.1 paf 2763: else
1.5 moko 2764: # As a last resort, use the slow shell script. Don't cache a
2765: # value for INSTALL within a source directory, because that will
1.1 paf 2766: # break other packages using the cache if that directory is
1.5 moko 2767: # removed, or if the value is a relative name.
1.2 paf 2768: INSTALL=$ac_install_sh
1.1 paf 2769: fi
2770: fi
1.10 moko 2771: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2772: printf "%s\n" "$INSTALL" >&6; }
1.1 paf 2773:
2774: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2775: # It thinks the first close brace ends the variable substitution.
2776: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2777:
1.2 paf 2778: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2779:
2780: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2781:
1.10 moko 2782: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2783: printf %s "checking whether sleep supports fractional seconds... " >&6; }
2784: if test ${am_cv_sleep_fractional_seconds+y}
2785: then :
2786: printf %s "(cached) " >&6
2787: else case e in #(
2788: e) if sleep 0.001 2>/dev/null
2789: then :
2790: am_cv_sleep_fractional_seconds=yes
2791: else case e in #(
2792: e) am_cv_sleep_fractional_seconds=no ;;
2793: esac
2794: fi
2795: ;;
2796: esac
2797: fi
2798: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2799: printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2800:
2801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2802: printf %s "checking filesystem timestamp resolution... " >&6; }
2803: if test ${am_cv_filesystem_timestamp_resolution+y}
2804: then :
2805: printf %s "(cached) " >&6
2806: else case e in #(
2807: e) # Default to the worst case.
2808: am_cv_filesystem_timestamp_resolution=2
2809:
2810: # Only try to go finer than 1 sec if sleep can do it.
2811: # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2812: # - 1 sec is not much of a win compared to 2 sec, and
2813: # - it takes 2 seconds to perform the test whether 1 sec works.
2814: #
2815: # Instead, just use the default 2s on platforms that have 1s resolution,
2816: # accept the extra 1s delay when using $sleep in the Automake tests, in
2817: # exchange for not incurring the 2s delay for running the test for all
2818: # packages.
2819: #
2820: am_try_resolutions=
2821: if test "$am_cv_sleep_fractional_seconds" = yes; then
2822: # Even a millisecond often causes a bunch of false positives,
2823: # so just try a hundredth of a second. The time saved between .001 and
2824: # .01 is not terribly consequential.
2825: am_try_resolutions="0.01 0.1 $am_try_resolutions"
2826: fi
2827:
2828: # In order to catch current-generation FAT out, we must *modify* files
2829: # that already exist; the *creation* timestamp is finer. Use names
2830: # that make ls -t sort them differently when they have equal
2831: # timestamps than when they have distinct timestamps, keeping
2832: # in mind that ls -t prints the *newest* file first.
2833: rm -f conftest.ts?
2834: : > conftest.ts1
2835: : > conftest.ts2
2836: : > conftest.ts3
2837:
2838: # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2839: # clobber the current shell's arguments. (Outer-level square brackets
2840: # are removed by m4; they're present so that m4 does not expand
2841: # <dollar><star>; be careful, easy to get confused.)
2842: if (
2843: set X `ls -t conftest.ts[12]` &&
2844: {
2845: test "$*" != "X conftest.ts1 conftest.ts2" ||
2846: test "$*" != "X conftest.ts2 conftest.ts1";
2847: }
2848: ); then :; else
2849: # If neither matched, then we have a broken ls. This can happen
2850: # if, for instance, CONFIG_SHELL is bash and it inherits a
2851: # broken ls alias from the environment. This has actually
2852: # happened. Such a system could not be considered "sane".
2853: printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2854: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2855: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2856: as_fn_error $? "ls -t produces unexpected output.
2857: Make sure there is not a broken ls alias in your environment.
2858: See 'config.log' for more details" "$LINENO" 5; }
2859: fi
2860:
2861: for am_try_res in $am_try_resolutions; do
2862: # Any one fine-grained sleep might happen to cross the boundary
2863: # between two values of a coarser actual resolution, but if we do
2864: # two fine-grained sleeps in a row, at least one of them will fall
2865: # entirely within a coarse interval.
2866: echo alpha > conftest.ts1
2867: sleep $am_try_res
2868: echo beta > conftest.ts2
2869: sleep $am_try_res
2870: echo gamma > conftest.ts3
2871:
2872: # We assume that 'ls -t' will make use of high-resolution
2873: # timestamps if the operating system supports them at all.
2874: if (set X `ls -t conftest.ts?` &&
2875: test "$2" = conftest.ts3 &&
2876: test "$3" = conftest.ts2 &&
2877: test "$4" = conftest.ts1); then
2878: #
2879: # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2880: # because we don't need to test make.
2881: make_ok=true
2882: if test $am_try_res != 1; then
2883: # But if we've succeeded so far with a subsecond resolution, we
2884: # have one more thing to check: make. It can happen that
2885: # everything else supports the subsecond mtimes, but make doesn't;
2886: # notably on macOS, which ships make 3.81 from 2006 (the last one
2887: # released under GPLv2). https://bugs.gnu.org/68808
2888: #
2889: # We test $MAKE if it is defined in the environment, else "make".
2890: # It might get overridden later, but our hope is that in practice
2891: # it does not matter: it is the system "make" which is (by far)
2892: # the most likely to be broken, whereas if the user overrides it,
2893: # probably they did so with a better, or at least not worse, make.
2894: # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2895: #
2896: # Create a Makefile (real tab character here):
2897: rm -f conftest.mk
2898: echo 'conftest.ts1: conftest.ts2' >conftest.mk
2899: echo ' touch conftest.ts2' >>conftest.mk
2900: #
2901: # Now, running
2902: # touch conftest.ts1; touch conftest.ts2; make
2903: # should touch ts1 because ts2 is newer. This could happen by luck,
2904: # but most often, it will fail if make's support is insufficient. So
2905: # test for several consecutive successes.
2906: #
2907: # (We reuse conftest.ts[12] because we still want to modify existing
2908: # files, not create new ones, per above.)
2909: n=0
2910: make=${MAKE-make}
2911: until test $n -eq 3; do
2912: echo one > conftest.ts1
2913: sleep $am_try_res
2914: echo two > conftest.ts2 # ts2 should now be newer than ts1
2915: if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2916: make_ok=false
2917: break # out of $n loop
2918: fi
2919: n=`expr $n + 1`
2920: done
2921: fi
2922: #
2923: if $make_ok; then
2924: # Everything we know to check worked out, so call this resolution good.
2925: am_cv_filesystem_timestamp_resolution=$am_try_res
2926: break # out of $am_try_res loop
2927: fi
2928: # Otherwise, we'll go on to check the next resolution.
2929: fi
2930: done
2931: rm -f conftest.ts?
2932: # (end _am_filesystem_timestamp_resolution)
2933: ;;
2934: esac
2935: fi
2936: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2937: printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2938:
2939: # This check should not be cached, as it may vary across builds of
2940: # different projects.
2941: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2942: printf %s "checking whether build environment is sane... " >&6; }
1.5 moko 2943: # Reject unsafe characters in $srcdir or the absolute working directory
2944: # name. Accept space and tab only in the latter.
2945: am_lf='
2946: '
2947: case `pwd` in
2948: *[\\\"\#\$\&\'\`$am_lf]*)
2949: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2950: esac
2951: case $srcdir in
2952: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.8 moko 2953: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.5 moko 2954: esac
2955:
1.8 moko 2956: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 2957: # arguments. Must try -L first in case configure is actually a
2958: # symlink; some systems play weird games with the mod time of symlinks
2959: # (eg FreeBSD returns the mod time of the symlink's containing
2960: # directory).
1.10 moko 2961: am_build_env_is_sane=no
2962: am_has_slept=no
2963: rm -f conftest.file
2964: for am_try in 1 2; do
2965: echo "timestamp, slept: $am_has_slept" > conftest.file
2966: if (
2967: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2968: if test "$*" = "X"; then
2969: # -L didn't work.
2970: set X `ls -t "$srcdir/configure" conftest.file`
2971: fi
2972: test "$2" = conftest.file
2973: ); then
2974: am_build_env_is_sane=yes
2975: break
2976: fi
2977: # Just in case.
2978: sleep "$am_cv_filesystem_timestamp_resolution"
2979: am_has_slept=yes
2980: done
1.1 paf 2981:
1.10 moko 2982: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2983: printf "%s\n" "$am_build_env_is_sane" >&6; }
2984: if test "$am_build_env_is_sane" = no; then
2985: as_fn_error $? "newly created file is older than distributed files!
1.5 moko 2986: Check your system clock" "$LINENO" 5
1.1 paf 2987: fi
1.10 moko 2988:
1.8 moko 2989: # If we didn't sleep, we still need to ensure time stamps of config.status and
2990: # generated files are strictly newer.
2991: am_sleep_pid=
1.10 moko 2992: if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2993: then :
2994:
2995: else case e in #(
2996: e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
1.8 moko 2997: am_sleep_pid=$!
1.10 moko 2998: ;;
2999: esac
1.8 moko 3000: fi
3001:
3002: rm -f conftest.file
3003:
1.1 paf 3004: test "$program_prefix" != NONE &&
1.5 moko 3005: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 3006: # Use a double $ so make ignores it.
3007: test "$program_suffix" != NONE &&
1.5 moko 3008: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3009: # Double any \ or $.
1.10 moko 3010: # By default was 's,x,x', remove it if useless.
1.5 moko 3011: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1.10 moko 3012: program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3013:
1.2 paf 3014:
1.8 moko 3015: # Expand $ac_aux_dir to an absolute path.
3016: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.2 paf 3017:
1.10 moko 3018:
3019: if test x"${MISSING+set}" != xset; then
1.8 moko 3020: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.5 moko 3021: fi
1.2 paf 3022: # Use eval to expand $SHELL
1.8 moko 3023: if eval "$MISSING --is-lightweight"; then
3024: am_missing_run="$MISSING "
1.2 paf 3025: else
3026: am_missing_run=
1.10 moko 3027: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3028: printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.5 moko 3029: fi
3030:
1.8 moko 3031: if test x"${install_sh+set}" != xset; then
1.5 moko 3032: case $am_aux_dir in
3033: *\ * | *\ *)
3034: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3035: *)
3036: install_sh="\${SHELL} $am_aux_dir/install-sh"
3037: esac
1.2 paf 3038: fi
1.1 paf 3039:
1.8 moko 3040: # Installed binaries are usually stripped using 'strip' when the user
3041: # run "make install-strip". However 'strip' might not be the right
1.5 moko 3042: # tool to use in cross-compilation environments, therefore Automake
1.8 moko 3043: # will honor the 'STRIP' environment variable to overrule this program.
1.5 moko 3044: if test "$cross_compiling" != no; then
3045: if test -n "$ac_tool_prefix"; then
3046: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3047: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.10 moko 3048: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049: printf %s "checking for $ac_word... " >&6; }
3050: if test ${ac_cv_prog_STRIP+y}
3051: then :
3052: printf %s "(cached) " >&6
3053: else case e in #(
3054: e) if test -n "$STRIP"; then
1.5 moko 3055: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.1 paf 3056: else
1.2 paf 3057: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058: for as_dir in $PATH
3059: do
3060: IFS=$as_save_IFS
1.10 moko 3061: case $as_dir in #(((
3062: '') as_dir=./ ;;
3063: */) ;;
3064: *) as_dir=$as_dir/ ;;
3065: esac
1.5 moko 3066: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3067: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 3068: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.10 moko 3069: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 paf 3070: break 2
3071: fi
3072: done
1.5 moko 3073: done
3074: IFS=$as_save_IFS
1.2 paf 3075:
1.10 moko 3076: fi ;;
3077: esac
1.2 paf 3078: fi
1.5 moko 3079: STRIP=$ac_cv_prog_STRIP
3080: if test -n "$STRIP"; then
1.10 moko 3081: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3082: printf "%s\n" "$STRIP" >&6; }
1.2 paf 3083: else
1.10 moko 3084: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085: printf "%s\n" "no" >&6; }
1.2 paf 3086: fi
3087:
3088:
1.5 moko 3089: fi
3090: if test -z "$ac_cv_prog_STRIP"; then
3091: ac_ct_STRIP=$STRIP
3092: # Extract the first word of "strip", so it can be a program name with args.
3093: set dummy strip; ac_word=$2
1.10 moko 3094: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095: printf %s "checking for $ac_word... " >&6; }
3096: if test ${ac_cv_prog_ac_ct_STRIP+y}
3097: then :
3098: printf %s "(cached) " >&6
3099: else case e in #(
3100: e) if test -n "$ac_ct_STRIP"; then
1.5 moko 3101: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 3102: else
1.5 moko 3103: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104: for as_dir in $PATH
3105: do
3106: IFS=$as_save_IFS
1.10 moko 3107: case $as_dir in #(((
3108: '') as_dir=./ ;;
3109: */) ;;
3110: *) as_dir=$as_dir/ ;;
3111: esac
1.5 moko 3112: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3113: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 3114: ac_cv_prog_ac_ct_STRIP="strip"
1.10 moko 3115: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 3116: break 2
3117: fi
3118: done
3119: done
3120: IFS=$as_save_IFS
3121:
1.10 moko 3122: fi ;;
3123: esac
1.1 paf 3124: fi
1.5 moko 3125: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3126: if test -n "$ac_ct_STRIP"; then
1.10 moko 3127: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3128: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.1 paf 3129: else
1.10 moko 3130: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131: printf "%s\n" "no" >&6; }
1.2 paf 3132: fi
3133:
1.5 moko 3134: if test "x$ac_ct_STRIP" = x; then
3135: STRIP=":"
1.2 paf 3136: else
1.5 moko 3137: case $cross_compiling:$ac_tool_warned in
3138: yes:)
1.10 moko 3139: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3140: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 3141: ac_tool_warned=yes ;;
3142: esac
3143: STRIP=$ac_ct_STRIP
1.2 paf 3144: fi
1.5 moko 3145: else
3146: STRIP="$ac_cv_prog_STRIP"
1.2 paf 3147: fi
3148:
1.5 moko 3149: fi
3150: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.2 paf 3151:
1.10 moko 3152:
3153: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3154: printf %s "checking for a race-free mkdir -p... " >&6; }
1.5 moko 3155: if test -z "$MKDIR_P"; then
1.10 moko 3156: if test ${ac_cv_path_mkdir+y}
3157: then :
3158: printf %s "(cached) " >&6
3159: else case e in #(
3160: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5 moko 3161: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3162: do
3163: IFS=$as_save_IFS
1.10 moko 3164: case $as_dir in #(((
3165: '') as_dir=./ ;;
3166: */) ;;
3167: *) as_dir=$as_dir/ ;;
3168: esac
1.5 moko 3169: for ac_prog in mkdir gmkdir; do
3170: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3171: as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3172: case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3173: 'mkdir ('*'coreutils) '* | \
3174: *'BusyBox '* | \
1.5 moko 3175: 'mkdir (fileutils) '4.1*)
1.10 moko 3176: ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
1.5 moko 3177: break 3;;
3178: esac
3179: done
3180: done
3181: done
3182: IFS=$as_save_IFS
1.10 moko 3183: ;;
3184: esac
1.5 moko 3185: fi
1.2 paf 3186:
1.5 moko 3187: test -d ./--version && rmdir ./--version
1.10 moko 3188: if test ${ac_cv_path_mkdir+y}; then
1.5 moko 3189: MKDIR_P="$ac_cv_path_mkdir -p"
3190: else
1.10 moko 3191: # As a last resort, use plain mkdir -p,
3192: # in the hope it doesn't have the bugs of ancient mkdir.
3193: MKDIR_P='mkdir -p'
1.5 moko 3194: fi
3195: fi
1.10 moko 3196: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3197: printf "%s\n" "$MKDIR_P" >&6; }
1.2 paf 3198:
1.5 moko 3199: for ac_prog in gawk mawk nawk awk
3200: do
3201: # Extract the first word of "$ac_prog", so it can be a program name with args.
3202: set dummy $ac_prog; ac_word=$2
1.10 moko 3203: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204: printf %s "checking for $ac_word... " >&6; }
3205: if test ${ac_cv_prog_AWK+y}
3206: then :
3207: printf %s "(cached) " >&6
3208: else case e in #(
3209: e) if test -n "$AWK"; then
1.5 moko 3210: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.2 paf 3211: else
3212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213: for as_dir in $PATH
3214: do
3215: IFS=$as_save_IFS
1.10 moko 3216: case $as_dir in #(((
3217: '') as_dir=./ ;;
3218: */) ;;
3219: *) as_dir=$as_dir/ ;;
3220: esac
1.5 moko 3221: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3222: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 3223: ac_cv_prog_AWK="$ac_prog"
1.10 moko 3224: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 paf 3225: break 2
3226: fi
3227: done
1.5 moko 3228: done
3229: IFS=$as_save_IFS
1.2 paf 3230:
1.10 moko 3231: fi ;;
3232: esac
1.2 paf 3233: fi
1.5 moko 3234: AWK=$ac_cv_prog_AWK
3235: if test -n "$AWK"; then
1.10 moko 3236: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3237: printf "%s\n" "$AWK" >&6; }
1.2 paf 3238: else
1.10 moko 3239: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240: printf "%s\n" "no" >&6; }
1.1 paf 3241: fi
3242:
1.5 moko 3243:
3244: test -n "$AWK" && break
1.2 paf 3245: done
3246:
1.10 moko 3247: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3248: printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1.5 moko 3249: set x ${MAKE-make}
1.10 moko 3250: ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3251: if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3252: then :
3253: printf %s "(cached) " >&6
3254: else case e in #(
3255: e) cat >conftest.make <<\_ACEOF
1.5 moko 3256: SHELL = /bin/sh
3257: all:
3258: @echo '@@@%%%=$(MAKE)=@@@%%%'
3259: _ACEOF
3260: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3261: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3262: *@@@%%%=?*=@@@%%%*)
3263: eval ac_cv_prog_make_${ac_make}_set=yes;;
3264: *)
3265: eval ac_cv_prog_make_${ac_make}_set=no;;
3266: esac
1.10 moko 3267: rm -f conftest.make ;;
3268: esac
1.1 paf 3269: fi
1.5 moko 3270: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.10 moko 3271: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272: printf "%s\n" "yes" >&6; }
1.5 moko 3273: SET_MAKE=
1.1 paf 3274: else
1.10 moko 3275: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276: printf "%s\n" "no" >&6; }
1.5 moko 3277: SET_MAKE="MAKE=${MAKE-make}"
1.1 paf 3278: fi
3279:
1.5 moko 3280: rm -rf .tst 2>/dev/null
3281: mkdir .tst 2>/dev/null
3282: if test -d .tst; then
3283: am__leading_dot=.
3284: else
3285: am__leading_dot=_
3286: fi
3287: rmdir .tst 2>/dev/null
3288:
1.10 moko 3289: AM_DEFAULT_VERBOSITY=1
1.8 moko 3290: # Check whether --enable-silent-rules was given.
1.10 moko 3291: if test ${enable_silent_rules+y}
3292: then :
1.8 moko 3293: enableval=$enable_silent_rules;
3294: fi
3295:
3296: am_make=${MAKE-make}
1.10 moko 3297: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3298: printf %s "checking whether $am_make supports nested variables... " >&6; }
3299: if test ${am_cv_make_support_nested_variables+y}
3300: then :
3301: printf %s "(cached) " >&6
3302: else case e in #(
3303: e) if printf "%s\n" 'TRUE=$(BAR$(V))
1.8 moko 3304: BAR0=false
3305: BAR1=true
3306: V=1
3307: am__doit:
3308: @$(TRUE)
3309: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3310: am_cv_make_support_nested_variables=yes
3311: else
3312: am_cv_make_support_nested_variables=no
1.10 moko 3313: fi ;;
3314: esac
1.8 moko 3315: fi
1.10 moko 3316: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3317: printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3318: AM_BACKSLASH='\'
3319:
3320: am__rm_f_notfound=
3321: if (rm -f && rm -fr && rm -rf) 2>/dev/null
3322: then :
3323:
3324: else case e in #(
3325: e) am__rm_f_notfound='""' ;;
3326: esac
1.8 moko 3327: fi
1.10 moko 3328:
3329:
3330: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3331: printf %s "checking xargs -n works... " >&6; }
3332: if test ${am_cv_xargs_n_works+y}
3333: then :
3334: printf %s "(cached) " >&6
3335: else case e in #(
3336: e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3337: 3"
3338: then :
3339: am_cv_xargs_n_works=yes
3340: else case e in #(
3341: e) am_cv_xargs_n_works=no ;;
3342: esac
3343: fi ;;
3344: esac
3345: fi
3346: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3347: printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3348: if test "$am_cv_xargs_n_works" = yes
3349: then :
3350: am__xargs_n='xargs -n'
3351: else case e in #(
3352: e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3353: ;;
3354: esac
1.8 moko 3355: fi
3356:
1.5 moko 3357: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3358: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3359: # is not polluted with repeated "-I."
3360: am__isrc=' -I$(srcdir)'
3361: # test to see if srcdir already configured
3362: if test -f $srcdir/config.status; then
3363: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3364: fi
1.1 paf 3365: fi
3366:
1.5 moko 3367: # test whether we have cygpath
3368: if test -z "$CYGPATH_W"; then
3369: if (cygpath --version) >/dev/null 2>/dev/null; then
3370: CYGPATH_W='cygpath -w'
3371: else
3372: CYGPATH_W=echo
3373: fi
1.1 paf 3374: fi
1.5 moko 3375:
3376:
3377: # Define the identity of the package.
3378: PACKAGE='libltdl'
1.10 moko 3379: VERSION='2.4.3a'
1.5 moko 3380:
3381:
1.10 moko 3382: printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
1.5 moko 3383:
3384:
1.10 moko 3385: printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
1.5 moko 3386:
3387: # Some tools Automake needs.
3388:
3389: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3390:
3391:
3392: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3393:
3394:
3395: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3396:
3397:
3398: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3399:
3400:
3401: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.2 paf 3402:
1.8 moko 3403: # For better backward compatibility. To be removed once Automake 1.9.x
3404: # dies out for good. For more background, see:
3405: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3406: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3407: mkdir_p='$(MKDIR_P)'
3408:
3409: # We need awk for the "check" target (and possibly the TAP driver). The
3410: # system "awk" is bad on some platforms.
3411: # Always define AMTAR for backward compatibility. Yes, it's still used
3412: # in the wild :-( We should find a proper way to deprecate it ...
3413: AMTAR='$${TAR-tar}'
1.5 moko 3414:
3415:
1.8 moko 3416: # We'll loop over all known methods to create a tar archive until one works.
3417: _am_tools='gnutar pax cpio none'
1.5 moko 3418:
1.8 moko 3419: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1.5 moko 3420:
3421:
3422:
3423:
3424:
1.10 moko 3425: # Variables for tags utilities; see am/tags.am
3426: if test -z "$CTAGS"; then
3427: CTAGS=ctags
3428: fi
3429:
3430: if test -z "$ETAGS"; then
3431: ETAGS=etags
3432: fi
3433:
3434: if test -z "$CSCOPE"; then
3435: CSCOPE=cscope
3436: fi
3437:
3438:
1.5 moko 3439:
1.8 moko 3440:
3441:
3442:
3443:
3444:
1.10 moko 3445: AM_DEFAULT_VERBOSITY=0
1.8 moko 3446:
3447:
1.5 moko 3448: ## ------------------------------- ##
3449: ## Libtool specific configuration. ##
3450: ## ------------------------------- ##
1.10 moko 3451: pkgdatadir='$datadir'"/$PACKAGE"
1.5 moko 3452:
3453:
3454: ## ----------------------- ##
3455: ## Libtool initialisation. ##
3456: ## ----------------------- ##
3457: case `pwd` in
3458: *\ * | *\ *)
1.10 moko 3459: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3460: printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.5 moko 3461: esac
3462:
3463:
3464:
1.10 moko 3465: macro_version='2.5.4'
3466: macro_revision='2.5.4'
3467:
1.5 moko 3468:
3469:
3470:
3471:
3472:
3473:
3474:
3475:
3476:
3477:
3478:
3479:
1.2 paf 3480:
1.10 moko 3481: ltmain=$ac_aux_dir/ltmain.sh
1.5 moko 3482:
3483:
1.10 moko 3484:
3485: # Make sure we can run config.sub.
3486: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3487: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3488:
3489: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3490: printf %s "checking build system type... " >&6; }
3491: if test ${ac_cv_build+y}
3492: then :
3493: printf %s "(cached) " >&6
3494: else case e in #(
3495: e) ac_build_alias=$build_alias
1.5 moko 3496: test "x$ac_build_alias" = x &&
1.10 moko 3497: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
1.5 moko 3498: test "x$ac_build_alias" = x &&
3499: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.10 moko 3500: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3501: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3502: ;;
3503: esac
1.5 moko 3504: fi
1.10 moko 3505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3506: printf "%s\n" "$ac_cv_build" >&6; }
1.5 moko 3507: case $ac_cv_build in
3508: *-*-*) ;;
3509: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3510: esac
3511: build=$ac_cv_build
3512: ac_save_IFS=$IFS; IFS='-'
3513: set x $ac_cv_build
3514: shift
3515: build_cpu=$1
3516: build_vendor=$2
3517: shift; shift
3518: # Remember, the first character of IFS is used to create $*,
3519: # except with old shells:
3520: build_os=$*
3521: IFS=$ac_save_IFS
3522: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3523:
3524:
1.10 moko 3525: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3526: printf %s "checking host system type... " >&6; }
3527: if test ${ac_cv_host+y}
3528: then :
3529: printf %s "(cached) " >&6
3530: else case e in #(
3531: e) if test "x$host_alias" = x; then
1.5 moko 3532: ac_cv_host=$ac_cv_build
3533: else
1.10 moko 3534: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3535: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.5 moko 3536: fi
1.10 moko 3537: ;;
3538: esac
1.5 moko 3539: fi
1.10 moko 3540: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3541: printf "%s\n" "$ac_cv_host" >&6; }
1.5 moko 3542: case $ac_cv_host in
3543: *-*-*) ;;
3544: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3545: esac
3546: host=$ac_cv_host
3547: ac_save_IFS=$IFS; IFS='-'
3548: set x $ac_cv_host
3549: shift
3550: host_cpu=$1
3551: host_vendor=$2
3552: shift; shift
3553: # Remember, the first character of IFS is used to create $*,
3554: # except with old shells:
3555: host_os=$*
3556: IFS=$ac_save_IFS
3557: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3558:
3559:
3560: # Backslashify metacharacters that are still active within
3561: # double-quoted strings.
3562: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3563:
3564: # Same as above, but do not quote variable references.
3565: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3566:
3567: # Sed substitution to delay expansion of an escaped shell variable in a
3568: # double_quote_subst'ed string.
3569: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.2 paf 3570:
1.5 moko 3571: # Sed substitution to delay expansion of an escaped single quote.
3572: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.2 paf 3573:
1.5 moko 3574: # Sed substitution to avoid accidental globbing in evaled expressions
3575: no_glob_subst='s/\*/\\\*/g'
1.2 paf 3576:
1.5 moko 3577: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3578: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3579: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3580:
1.10 moko 3581: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3582: printf %s "checking how to print strings... " >&6; }
1.5 moko 3583: # Test print first, because it will be a builtin if present.
3584: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3585: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3586: ECHO='print -r --'
3587: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3588: ECHO='printf %s\n'
1.1 paf 3589: else
1.5 moko 3590: # Use this function as a fallback that always works.
3591: func_fallback_echo ()
3592: {
3593: eval 'cat <<_LTECHO_EOF
3594: $1
3595: _LTECHO_EOF'
3596: }
3597: ECHO='func_fallback_echo'
3598: fi
3599:
3600: # func_echo_all arg...
3601: # Invoke $ECHO with all args, space-separated.
3602: func_echo_all ()
3603: {
3604: $ECHO ""
3605: }
3606:
1.10 moko 3607: case $ECHO in
3608: printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3609: printf "%s\n" "printf" >&6; } ;;
3610: print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3611: printf "%s\n" "print -r" >&6; } ;;
3612: *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3613: printf "%s\n" "cat" >&6; } ;;
1.5 moko 3614: esac
3615:
3616:
3617:
3618:
3619:
3620:
3621:
1.1 paf 3622:
3623:
1.5 moko 3624:
3625:
3626:
3627:
3628:
1.10 moko 3629:
3630:
3631:
3632:
3633:
3634:
3635:
3636:
3637:
1.5 moko 3638: DEPDIR="${am__leading_dot}deps"
3639:
3640: ac_config_commands="$ac_config_commands depfiles"
3641:
1.10 moko 3642: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3643: printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
1.8 moko 3644: cat > confinc.mk << 'END'
1.5 moko 3645: am__doit:
1.8 moko 3646: @echo this is the am__doit target >confinc.out
1.5 moko 3647: .PHONY: am__doit
3648: END
3649: am__include="#"
3650: am__quote=
1.8 moko 3651: # BSD make does it like this.
3652: echo '.include "confinc.mk" # ignored' > confmf.BSD
3653: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3654: echo 'include confinc.mk # ignored' > confmf.GNU
3655: _am_result=no
3656: for s in GNU BSD; do
3657: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3658: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3659: ac_status=$?
3660: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661: (exit $ac_status); }
3662: case $?:`cat confinc.out 2>/dev/null` in #(
3663: '0:this is the am__doit target') :
3664: case $s in #(
3665: BSD) :
3666: am__include='.include' am__quote='"' ;; #(
3667: *) :
3668: am__include='include' am__quote='' ;;
3669: esac ;; #(
3670: *) :
1.5 moko 3671: ;;
1.8 moko 3672: esac
3673: if test "$am__include" != "#"; then
3674: _am_result="yes ($s style)"
3675: break
3676: fi
3677: done
3678: rm -f confinc.* confmf.*
1.10 moko 3679: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3680: printf "%s\n" "${_am_result}" >&6; }
1.5 moko 3681:
3682: # Check whether --enable-dependency-tracking was given.
1.10 moko 3683: if test ${enable_dependency_tracking+y}
3684: then :
1.5 moko 3685: enableval=$enable_dependency_tracking;
3686: fi
3687:
3688: if test "x$enable_dependency_tracking" != xno; then
3689: am_depcomp="$ac_aux_dir/depcomp"
3690: AMDEPBACKSLASH='\'
1.8 moko 3691: am__nodep='_no'
1.5 moko 3692: fi
3693: if test "x$enable_dependency_tracking" != xno; then
3694: AMDEP_TRUE=
3695: AMDEP_FALSE='#'
3696: else
3697: AMDEP_TRUE='#'
3698: AMDEP_FALSE=
3699: fi
1.1 paf 3700:
1.2 paf 3701:
3702: ac_ext=c
3703: ac_cpp='$CPP $CPPFLAGS'
3704: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707: if test -n "$ac_tool_prefix"; then
3708: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3709: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.10 moko 3710: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711: printf %s "checking for $ac_word... " >&6; }
3712: if test ${ac_cv_prog_CC+y}
3713: then :
3714: printf %s "(cached) " >&6
3715: else case e in #(
3716: e) if test -n "$CC"; then
1.2 paf 3717: ac_cv_prog_CC="$CC" # Let the user override the test.
3718: else
3719: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720: for as_dir in $PATH
3721: do
3722: IFS=$as_save_IFS
1.10 moko 3723: case $as_dir in #(((
3724: '') as_dir=./ ;;
3725: */) ;;
3726: *) as_dir=$as_dir/ ;;
3727: esac
1.5 moko 3728: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3729: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.2 paf 3730: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.10 moko 3731: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 paf 3732: break 2
3733: fi
3734: done
1.5 moko 3735: done
3736: IFS=$as_save_IFS
1.2 paf 3737:
1.10 moko 3738: fi ;;
3739: esac
1.2 paf 3740: fi
3741: CC=$ac_cv_prog_CC
3742: if test -n "$CC"; then
1.10 moko 3743: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744: printf "%s\n" "$CC" >&6; }
1.2 paf 3745: else
1.10 moko 3746: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747: printf "%s\n" "no" >&6; }
1.2 paf 3748: fi
3749:
1.5 moko 3750:
1.2 paf 3751: fi
3752: if test -z "$ac_cv_prog_CC"; then
3753: ac_ct_CC=$CC
3754: # Extract the first word of "gcc", so it can be a program name with args.
1.1 paf 3755: set dummy gcc; ac_word=$2
1.10 moko 3756: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757: printf %s "checking for $ac_word... " >&6; }
3758: if test ${ac_cv_prog_ac_ct_CC+y}
3759: then :
3760: printf %s "(cached) " >&6
3761: else case e in #(
3762: e) if test -n "$ac_ct_CC"; then
1.2 paf 3763: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764: else
3765: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766: for as_dir in $PATH
3767: do
3768: IFS=$as_save_IFS
1.10 moko 3769: case $as_dir in #(((
3770: '') as_dir=./ ;;
3771: */) ;;
3772: *) as_dir=$as_dir/ ;;
3773: esac
1.5 moko 3774: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3775: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.2 paf 3776: ac_cv_prog_ac_ct_CC="gcc"
1.10 moko 3777: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 paf 3778: break 2
3779: fi
3780: done
1.5 moko 3781: done
3782: IFS=$as_save_IFS
1.2 paf 3783:
1.10 moko 3784: fi ;;
3785: esac
1.2 paf 3786: fi
3787: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788: if test -n "$ac_ct_CC"; then
1.10 moko 3789: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790: printf "%s\n" "$ac_ct_CC" >&6; }
1.2 paf 3791: else
1.10 moko 3792: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793: printf "%s\n" "no" >&6; }
1.2 paf 3794: fi
3795:
1.5 moko 3796: if test "x$ac_ct_CC" = x; then
3797: CC=""
3798: else
3799: case $cross_compiling:$ac_tool_warned in
3800: yes:)
1.10 moko 3801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 3803: ac_tool_warned=yes ;;
3804: esac
3805: CC=$ac_ct_CC
3806: fi
1.2 paf 3807: else
3808: CC="$ac_cv_prog_CC"
3809: fi
3810:
3811: if test -z "$CC"; then
1.5 moko 3812: if test -n "$ac_tool_prefix"; then
3813: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.2 paf 3814: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.10 moko 3815: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816: printf %s "checking for $ac_word... " >&6; }
3817: if test ${ac_cv_prog_CC+y}
3818: then :
3819: printf %s "(cached) " >&6
3820: else case e in #(
3821: e) if test -n "$CC"; then
1.1 paf 3822: ac_cv_prog_CC="$CC" # Let the user override the test.
3823: else
1.2 paf 3824: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825: for as_dir in $PATH
3826: do
3827: IFS=$as_save_IFS
1.10 moko 3828: case $as_dir in #(((
3829: '') as_dir=./ ;;
3830: */) ;;
3831: *) as_dir=$as_dir/ ;;
3832: esac
1.5 moko 3833: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3834: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.2 paf 3835: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.10 moko 3836: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 paf 3837: break 2
3838: fi
3839: done
1.5 moko 3840: done
3841: IFS=$as_save_IFS
1.2 paf 3842:
1.10 moko 3843: fi ;;
3844: esac
1.1 paf 3845: fi
1.2 paf 3846: CC=$ac_cv_prog_CC
1.1 paf 3847: if test -n "$CC"; then
1.10 moko 3848: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849: printf "%s\n" "$CC" >&6; }
1.1 paf 3850: else
1.10 moko 3851: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852: printf "%s\n" "no" >&6; }
1.2 paf 3853: fi
3854:
1.5 moko 3855:
3856: fi
1.1 paf 3857: fi
1.5 moko 3858: if test -z "$CC"; then
1.2 paf 3859: # Extract the first word of "cc", so it can be a program name with args.
3860: set dummy cc; ac_word=$2
1.10 moko 3861: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862: printf %s "checking for $ac_word... " >&6; }
3863: if test ${ac_cv_prog_CC+y}
3864: then :
3865: printf %s "(cached) " >&6
3866: else case e in #(
3867: e) if test -n "$CC"; then
1.5 moko 3868: ac_cv_prog_CC="$CC" # Let the user override the test.
1.2 paf 3869: else
1.5 moko 3870: ac_prog_rejected=no
1.2 paf 3871: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872: for as_dir in $PATH
3873: do
3874: IFS=$as_save_IFS
1.10 moko 3875: case $as_dir in #(((
3876: '') as_dir=./ ;;
3877: */) ;;
3878: *) as_dir=$as_dir/ ;;
3879: esac
1.5 moko 3880: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3881: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3882: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.5 moko 3883: ac_prog_rejected=yes
3884: continue
3885: fi
3886: ac_cv_prog_CC="cc"
1.10 moko 3887: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 paf 3888: break 2
3889: fi
3890: done
1.5 moko 3891: done
3892: IFS=$as_save_IFS
1.1 paf 3893:
1.5 moko 3894: if test $ac_prog_rejected = yes; then
3895: # We found a bogon in the path, so make sure we never use it.
3896: set dummy $ac_cv_prog_CC
3897: shift
3898: if test $# != 0; then
3899: # We chose a different compiler from the bogus one.
3900: # However, it has the same basename, so the bogon will be chosen
3901: # first if we set CC to just the basename; use the full file name.
3902: shift
1.10 moko 3903: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.5 moko 3904: fi
1.1 paf 3905: fi
1.10 moko 3906: fi ;;
3907: esac
1.1 paf 3908: fi
1.2 paf 3909: CC=$ac_cv_prog_CC
1.1 paf 3910: if test -n "$CC"; then
1.10 moko 3911: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912: printf "%s\n" "$CC" >&6; }
1.1 paf 3913: else
1.10 moko 3914: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915: printf "%s\n" "no" >&6; }
1.1 paf 3916: fi
3917:
1.5 moko 3918:
1.2 paf 3919: fi
3920: if test -z "$CC"; then
3921: if test -n "$ac_tool_prefix"; then
1.5 moko 3922: for ac_prog in cl.exe
1.2 paf 3923: do
3924: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3925: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.10 moko 3926: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927: printf %s "checking for $ac_word... " >&6; }
3928: if test ${ac_cv_prog_CC+y}
3929: then :
3930: printf %s "(cached) " >&6
3931: else case e in #(
3932: e) if test -n "$CC"; then
1.1 paf 3933: ac_cv_prog_CC="$CC" # Let the user override the test.
3934: else
1.2 paf 3935: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936: for as_dir in $PATH
3937: do
3938: IFS=$as_save_IFS
1.10 moko 3939: case $as_dir in #(((
3940: '') as_dir=./ ;;
3941: */) ;;
3942: *) as_dir=$as_dir/ ;;
3943: esac
1.5 moko 3944: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3945: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.2 paf 3946: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.10 moko 3947: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 paf 3948: break 2
3949: fi
3950: done
1.5 moko 3951: done
3952: IFS=$as_save_IFS
1.2 paf 3953:
1.10 moko 3954: fi ;;
3955: esac
1.1 paf 3956: fi
1.2 paf 3957: CC=$ac_cv_prog_CC
1.1 paf 3958: if test -n "$CC"; then
1.10 moko 3959: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3960: printf "%s\n" "$CC" >&6; }
1.1 paf 3961: else
1.10 moko 3962: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963: printf "%s\n" "no" >&6; }
1.2 paf 3964: fi
3965:
1.5 moko 3966:
1.2 paf 3967: test -n "$CC" && break
3968: done
1.1 paf 3969: fi
1.2 paf 3970: if test -z "$CC"; then
3971: ac_ct_CC=$CC
1.5 moko 3972: for ac_prog in cl.exe
1.2 paf 3973: do
3974: # Extract the first word of "$ac_prog", so it can be a program name with args.
3975: set dummy $ac_prog; ac_word=$2
1.10 moko 3976: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977: printf %s "checking for $ac_word... " >&6; }
3978: if test ${ac_cv_prog_ac_ct_CC+y}
3979: then :
3980: printf %s "(cached) " >&6
3981: else case e in #(
3982: e) if test -n "$ac_ct_CC"; then
1.2 paf 3983: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3984: else
3985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986: for as_dir in $PATH
3987: do
3988: IFS=$as_save_IFS
1.10 moko 3989: case $as_dir in #(((
3990: '') as_dir=./ ;;
3991: */) ;;
3992: *) as_dir=$as_dir/ ;;
3993: esac
1.5 moko 3994: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 3995: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.2 paf 3996: ac_cv_prog_ac_ct_CC="$ac_prog"
1.10 moko 3997: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 paf 3998: break 2
1.1 paf 3999: fi
1.2 paf 4000: done
1.5 moko 4001: done
4002: IFS=$as_save_IFS
1.2 paf 4003:
1.10 moko 4004: fi ;;
4005: esac
1.2 paf 4006: fi
4007: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4008: if test -n "$ac_ct_CC"; then
1.10 moko 4009: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4010: printf "%s\n" "$ac_ct_CC" >&6; }
1.2 paf 4011: else
1.10 moko 4012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013: printf "%s\n" "no" >&6; }
1.2 paf 4014: fi
4015:
1.5 moko 4016:
1.2 paf 4017: test -n "$ac_ct_CC" && break
4018: done
4019:
1.5 moko 4020: if test "x$ac_ct_CC" = x; then
4021: CC=""
4022: else
4023: case $cross_compiling:$ac_tool_warned in
4024: yes:)
1.10 moko 4025: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4026: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4027: ac_tool_warned=yes ;;
4028: esac
4029: CC=$ac_ct_CC
4030: fi
4031: fi
4032:
4033: fi
4034: if test -z "$CC"; then
4035: if test -n "$ac_tool_prefix"; then
4036: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4037: set dummy ${ac_tool_prefix}clang; ac_word=$2
4038: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039: printf %s "checking for $ac_word... " >&6; }
4040: if test ${ac_cv_prog_CC+y}
4041: then :
4042: printf %s "(cached) " >&6
4043: else case e in #(
4044: e) if test -n "$CC"; then
4045: ac_cv_prog_CC="$CC" # Let the user override the test.
4046: else
4047: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048: for as_dir in $PATH
4049: do
4050: IFS=$as_save_IFS
4051: case $as_dir in #(((
4052: '') as_dir=./ ;;
4053: */) ;;
4054: *) as_dir=$as_dir/ ;;
4055: esac
4056: for ac_exec_ext in '' $ac_executable_extensions; do
4057: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4058: ac_cv_prog_CC="${ac_tool_prefix}clang"
4059: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4060: break 2
4061: fi
4062: done
4063: done
4064: IFS=$as_save_IFS
4065:
4066: fi ;;
4067: esac
4068: fi
4069: CC=$ac_cv_prog_CC
4070: if test -n "$CC"; then
4071: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072: printf "%s\n" "$CC" >&6; }
4073: else
4074: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075: printf "%s\n" "no" >&6; }
4076: fi
4077:
4078:
4079: fi
4080: if test -z "$ac_cv_prog_CC"; then
4081: ac_ct_CC=$CC
4082: # Extract the first word of "clang", so it can be a program name with args.
4083: set dummy clang; ac_word=$2
4084: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085: printf %s "checking for $ac_word... " >&6; }
4086: if test ${ac_cv_prog_ac_ct_CC+y}
4087: then :
4088: printf %s "(cached) " >&6
4089: else case e in #(
4090: e) if test -n "$ac_ct_CC"; then
4091: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4092: else
4093: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094: for as_dir in $PATH
4095: do
4096: IFS=$as_save_IFS
4097: case $as_dir in #(((
4098: '') as_dir=./ ;;
4099: */) ;;
4100: *) as_dir=$as_dir/ ;;
4101: esac
4102: for ac_exec_ext in '' $ac_executable_extensions; do
4103: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4104: ac_cv_prog_ac_ct_CC="clang"
4105: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4106: break 2
4107: fi
4108: done
4109: done
4110: IFS=$as_save_IFS
4111:
4112: fi ;;
4113: esac
4114: fi
4115: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4116: if test -n "$ac_ct_CC"; then
4117: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4118: printf "%s\n" "$ac_ct_CC" >&6; }
4119: else
4120: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121: printf "%s\n" "no" >&6; }
4122: fi
4123:
4124: if test "x$ac_ct_CC" = x; then
4125: CC=""
4126: else
4127: case $cross_compiling:$ac_tool_warned in
4128: yes:)
4129: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4130: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 4131: ac_tool_warned=yes ;;
4132: esac
4133: CC=$ac_ct_CC
4134: fi
1.10 moko 4135: else
4136: CC="$ac_cv_prog_CC"
1.2 paf 4137: fi
4138:
1.1 paf 4139: fi
4140:
4141:
1.10 moko 4142: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4143: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.5 moko 4144: as_fn_error $? "no acceptable C compiler found in \$PATH
1.10 moko 4145: See 'config.log' for more details" "$LINENO" 5; }
1.2 paf 4146:
4147: # Provide some information about the compiler.
1.10 moko 4148: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.5 moko 4149: set X $ac_compile
4150: ac_compiler=$2
1.10 moko 4151: for ac_option in --version -v -V -qversion -version; do
1.5 moko 4152: { { ac_try="$ac_compiler $ac_option >&5"
4153: case "(($ac_try" in
4154: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155: *) ac_try_echo=$ac_try;;
4156: esac
4157: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.10 moko 4158: printf "%s\n" "$ac_try_echo"; } >&5
1.5 moko 4159: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.2 paf 4160: ac_status=$?
1.5 moko 4161: if test -s conftest.err; then
4162: sed '10a\
4163: ... rest of stderr output deleted ...
4164: 10q' conftest.err >conftest.er1
4165: cat conftest.er1 >&5
4166: fi
4167: rm -f conftest.er1 conftest.err
1.10 moko 4168: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 4169: test $ac_status = 0; }
4170: done
1.2 paf 4171:
1.5 moko 4172: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 4173: /* end confdefs.h. */
1.1 paf 4174:
1.2 paf 4175: int
1.10 moko 4176: main (void)
1.2 paf 4177: {
1.1 paf 4178:
1.2 paf 4179: ;
4180: return 0;
4181: }
4182: _ACEOF
4183: ac_clean_files_save=$ac_clean_files
1.5 moko 4184: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.2 paf 4185: # Try to create an executable without -o first, disregard a.out.
4186: # It will help us diagnose broken compilers, and finding out an intuition
4187: # of exeext.
1.10 moko 4188: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4189: printf %s "checking whether the C compiler works... " >&6; }
4190: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.5 moko 4191:
4192: # The possible output files:
4193: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4194:
4195: ac_rmfiles=
4196: for ac_file in $ac_files
4197: do
4198: case $ac_file in
4199: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4200: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4201: esac
4202: done
4203: rm -f $ac_rmfiles
4204:
4205: if { { ac_try="$ac_link_default"
4206: case "(($ac_try" in
4207: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208: *) ac_try_echo=$ac_try;;
4209: esac
4210: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.10 moko 4211: printf "%s\n" "$ac_try_echo"; } >&5
1.5 moko 4212: (eval "$ac_link_default") 2>&5
4213: ac_status=$?
1.10 moko 4214: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215: test $ac_status = 0; }
4216: then :
4217: # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4218: # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
1.5 moko 4219: # in a Makefile. We should not override ac_cv_exeext if it was cached,
4220: # so that the user can short-circuit this test for compilers unknown to
4221: # Autoconf.
4222: for ac_file in $ac_files ''
1.2 paf 4223: do
4224: test -f "$ac_file" || continue
4225: case $ac_file in
1.5 moko 4226: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4227: ;;
1.2 paf 4228: [ab].out )
1.5 moko 4229: # We found the default executable, but exeext='' is most
4230: # certainly right.
4231: break;;
1.2 paf 4232: *.* )
1.10 moko 4233: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.5 moko 4234: then :; else
4235: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4236: fi
4237: # We set ac_cv_exeext here because the later test for it is not
1.10 moko 4238: # safe: cross compilers may not add the suffix if given an '-o'
1.5 moko 4239: # argument, so we may need to know it at that point already.
4240: # Even if this section looks crufty: it has the advantage of
4241: # actually working.
4242: break;;
1.2 paf 4243: * )
1.5 moko 4244: break;;
1.2 paf 4245: esac
4246: done
1.5 moko 4247: test "$ac_cv_exeext" = no && ac_cv_exeext=
4248:
1.10 moko 4249: else case e in #(
4250: e) ac_file='' ;;
4251: esac
1.5 moko 4252: fi
1.10 moko 4253: if test -z "$ac_file"
4254: then :
4255: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256: printf "%s\n" "no" >&6; }
4257: printf "%s\n" "$as_me: failed program was:" >&5
1.2 paf 4258: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 4259:
1.10 moko 4260: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4261: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.5 moko 4262: as_fn_error 77 "C compiler cannot create executables
1.10 moko 4263: See 'config.log' for more details" "$LINENO" 5; }
4264: else case e in #(
4265: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4266: printf "%s\n" "yes" >&6; } ;;
4267: esac
1.2 paf 4268: fi
1.10 moko 4269: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4270: printf %s "checking for C compiler default output file name... " >&6; }
4271: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4272: printf "%s\n" "$ac_file" >&6; }
1.2 paf 4273: ac_exeext=$ac_cv_exeext
4274:
1.5 moko 4275: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.2 paf 4276: ac_clean_files=$ac_clean_files_save
1.10 moko 4277: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4278: printf %s "checking for suffix of executables... " >&6; }
1.5 moko 4279: if { { ac_try="$ac_link"
4280: case "(($ac_try" in
4281: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282: *) ac_try_echo=$ac_try;;
4283: esac
4284: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.10 moko 4285: printf "%s\n" "$ac_try_echo"; } >&5
1.5 moko 4286: (eval "$ac_link") 2>&5
1.2 paf 4287: ac_status=$?
1.10 moko 4288: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289: test $ac_status = 0; }
4290: then :
4291: # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4292: # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4293: # work properly (i.e., refer to 'conftest.exe'), while it won't with
4294: # 'rm'.
1.2 paf 4295: for ac_file in conftest.exe conftest conftest.*; do
4296: test -f "$ac_file" || continue
4297: case $ac_file in
1.5 moko 4298: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.2 paf 4299: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.5 moko 4300: break;;
1.2 paf 4301: * ) break;;
4302: esac
4303: done
1.10 moko 4304: else case e in #(
4305: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4306: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.5 moko 4307: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.10 moko 4308: See 'config.log' for more details" "$LINENO" 5; } ;;
4309: esac
1.5 moko 4310: fi
4311: rm -f conftest conftest$ac_cv_exeext
1.10 moko 4312: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4313: printf "%s\n" "$ac_cv_exeext" >&6; }
1.2 paf 4314:
4315: rm -f conftest.$ac_ext
4316: EXEEXT=$ac_cv_exeext
4317: ac_exeext=$EXEEXT
1.5 moko 4318: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319: /* end confdefs.h. */
4320: #include <stdio.h>
4321: int
1.10 moko 4322: main (void)
1.5 moko 4323: {
4324: FILE *f = fopen ("conftest.out", "w");
1.10 moko 4325: if (!f)
4326: return 1;
1.5 moko 4327: return ferror (f) || fclose (f) != 0;
4328:
4329: ;
4330: return 0;
4331: }
4332: _ACEOF
4333: ac_clean_files="$ac_clean_files conftest.out"
4334: # Check that the compiler produces executables we can run. If not, either
4335: # the compiler is broken, or we cross compile.
1.10 moko 4336: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4337: printf %s "checking whether we are cross compiling... " >&6; }
1.5 moko 4338: if test "$cross_compiling" != yes; then
4339: { { ac_try="$ac_link"
4340: case "(($ac_try" in
4341: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342: *) ac_try_echo=$ac_try;;
4343: esac
4344: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.10 moko 4345: printf "%s\n" "$ac_try_echo"; } >&5
1.5 moko 4346: (eval "$ac_link") 2>&5
4347: ac_status=$?
1.10 moko 4348: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 4349: test $ac_status = 0; }
4350: if { ac_try='./conftest$ac_cv_exeext'
4351: { { case "(($ac_try" in
4352: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353: *) ac_try_echo=$ac_try;;
4354: esac
4355: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.10 moko 4356: printf "%s\n" "$ac_try_echo"; } >&5
1.5 moko 4357: (eval "$ac_try") 2>&5
4358: ac_status=$?
1.10 moko 4359: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 4360: test $ac_status = 0; }; }; then
4361: cross_compiling=no
4362: else
4363: if test "$cross_compiling" = maybe; then
4364: cross_compiling=yes
4365: else
1.10 moko 4366: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4367: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4368: as_fn_error 77 "cannot run C compiled programs.
4369: If you meant to cross compile, use '--host'.
4370: See 'config.log' for more details" "$LINENO" 5; }
1.5 moko 4371: fi
4372: fi
4373: fi
1.10 moko 4374: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4375: printf "%s\n" "$cross_compiling" >&6; }
1.5 moko 4376:
1.10 moko 4377: rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4378: conftest.o conftest.obj conftest.out
1.5 moko 4379: ac_clean_files=$ac_clean_files_save
1.10 moko 4380: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4381: printf %s "checking for suffix of object files... " >&6; }
4382: if test ${ac_cv_objext+y}
4383: then :
4384: printf %s "(cached) " >&6
4385: else case e in #(
4386: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 4387: /* end confdefs.h. */
1.1 paf 4388:
1.2 paf 4389: int
1.10 moko 4390: main (void)
1.2 paf 4391: {
1.1 paf 4392:
1.2 paf 4393: ;
4394: return 0;
4395: }
4396: _ACEOF
4397: rm -f conftest.o conftest.obj
1.5 moko 4398: if { { ac_try="$ac_compile"
4399: case "(($ac_try" in
4400: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401: *) ac_try_echo=$ac_try;;
4402: esac
4403: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.10 moko 4404: printf "%s\n" "$ac_try_echo"; } >&5
1.5 moko 4405: (eval "$ac_compile") 2>&5
4406: ac_status=$?
1.10 moko 4407: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408: test $ac_status = 0; }
4409: then :
1.5 moko 4410: for ac_file in conftest.o conftest.obj conftest.*; do
4411: test -f "$ac_file" || continue;
1.2 paf 4412: case $ac_file in
1.5 moko 4413: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.2 paf 4414: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4415: break;;
4416: esac
4417: done
1.10 moko 4418: else case e in #(
4419: e) printf "%s\n" "$as_me: failed program was:" >&5
1.2 paf 4420: sed 's/^/| /' conftest.$ac_ext >&5
4421:
1.10 moko 4422: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4423: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.5 moko 4424: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.10 moko 4425: See 'config.log' for more details" "$LINENO" 5; } ;;
4426: esac
1.2 paf 4427: fi
1.10 moko 4428: rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4429: esac
1.2 paf 4430: fi
1.10 moko 4431: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4432: printf "%s\n" "$ac_cv_objext" >&6; }
1.2 paf 4433: OBJEXT=$ac_cv_objext
4434: ac_objext=$OBJEXT
1.10 moko 4435: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4436: printf %s "checking whether the compiler supports GNU C... " >&6; }
4437: if test ${ac_cv_c_compiler_gnu+y}
4438: then :
4439: printf %s "(cached) " >&6
4440: else case e in #(
4441: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 4442: /* end confdefs.h. */
4443:
4444: int
1.10 moko 4445: main (void)
1.2 paf 4446: {
4447: #ifndef __GNUC__
4448: choke me
4449: #endif
4450:
4451: ;
4452: return 0;
4453: }
4454: _ACEOF
1.10 moko 4455: if ac_fn_c_try_compile "$LINENO"
4456: then :
1.2 paf 4457: ac_compiler_gnu=yes
1.10 moko 4458: else case e in #(
4459: e) ac_compiler_gnu=no ;;
4460: esac
1.2 paf 4461: fi
1.10 moko 4462: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.2 paf 4463: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.10 moko 4464: ;;
4465: esac
4466: fi
4467: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4468: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4469: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2 paf 4470:
1.5 moko 4471: if test $ac_compiler_gnu = yes; then
4472: GCC=yes
4473: else
4474: GCC=
4475: fi
1.10 moko 4476: ac_test_CFLAGS=${CFLAGS+y}
1.2 paf 4477: ac_save_CFLAGS=$CFLAGS
1.10 moko 4478: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4479: printf %s "checking whether $CC accepts -g... " >&6; }
4480: if test ${ac_cv_prog_cc_g+y}
4481: then :
4482: printf %s "(cached) " >&6
4483: else case e in #(
4484: e) ac_save_c_werror_flag=$ac_c_werror_flag
1.5 moko 4485: ac_c_werror_flag=yes
4486: ac_cv_prog_cc_g=no
4487: CFLAGS="-g"
4488: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489: /* end confdefs.h. */
4490:
4491: int
1.10 moko 4492: main (void)
1.5 moko 4493: {
4494:
4495: ;
4496: return 0;
4497: }
4498: _ACEOF
1.10 moko 4499: if ac_fn_c_try_compile "$LINENO"
4500: then :
1.5 moko 4501: ac_cv_prog_cc_g=yes
1.10 moko 4502: else case e in #(
4503: e) CFLAGS=""
1.5 moko 4504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505: /* end confdefs.h. */
4506:
4507: int
1.10 moko 4508: main (void)
1.5 moko 4509: {
4510:
4511: ;
4512: return 0;
4513: }
1.2 paf 4514: _ACEOF
1.10 moko 4515: if ac_fn_c_try_compile "$LINENO"
4516: then :
1.5 moko 4517:
1.10 moko 4518: else case e in #(
4519: e) ac_c_werror_flag=$ac_save_c_werror_flag
1.5 moko 4520: CFLAGS="-g"
4521: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 4522: /* end confdefs.h. */
4523:
4524: int
1.10 moko 4525: main (void)
1.2 paf 4526: {
1.1 paf 4527:
1.2 paf 4528: ;
4529: return 0;
4530: }
4531: _ACEOF
1.10 moko 4532: if ac_fn_c_try_compile "$LINENO"
4533: then :
1.1 paf 4534: ac_cv_prog_cc_g=yes
4535: fi
1.10 moko 4536: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4537: esac
1.5 moko 4538: fi
1.10 moko 4539: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4540: esac
1.5 moko 4541: fi
1.10 moko 4542: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4543: ac_c_werror_flag=$ac_save_c_werror_flag ;;
4544: esac
1.1 paf 4545: fi
1.10 moko 4546: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4547: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4548: if test $ac_test_CFLAGS; then
1.2 paf 4549: CFLAGS=$ac_save_CFLAGS
1.1 paf 4550: elif test $ac_cv_prog_cc_g = yes; then
4551: if test "$GCC" = yes; then
4552: CFLAGS="-g -O2"
4553: else
4554: CFLAGS="-g"
4555: fi
4556: else
4557: if test "$GCC" = yes; then
4558: CFLAGS="-O2"
4559: else
4560: CFLAGS=
4561: fi
4562: fi
1.10 moko 4563: ac_prog_cc_stdc=no
4564: if test x$ac_prog_cc_stdc = xno
4565: then :
4566: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4567: printf %s "checking for $CC option to enable C11 features... " >&6; }
4568: if test ${ac_cv_prog_cc_c11+y}
4569: then :
4570: printf %s "(cached) " >&6
4571: else case e in #(
4572: e) ac_cv_prog_cc_c11=no
1.2 paf 4573: ac_save_CC=$CC
1.5 moko 4574: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 4575: /* end confdefs.h. */
1.10 moko 4576: $ac_c_conftest_c11_program
4577: _ACEOF
4578: for ac_arg in '' -std=gnu11
4579: do
4580: CC="$ac_save_CC $ac_arg"
4581: if ac_fn_c_try_compile "$LINENO"
4582: then :
4583: ac_cv_prog_cc_c11=$ac_arg
4584: fi
4585: rm -f core conftest.err conftest.$ac_objext conftest.beam
4586: test "x$ac_cv_prog_cc_c11" != "xno" && break
4587: done
4588: rm -f conftest.$ac_ext
4589: CC=$ac_save_CC ;;
4590: esac
4591: fi
1.5 moko 4592:
1.10 moko 4593: if test "x$ac_cv_prog_cc_c11" = xno
4594: then :
4595: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4596: printf "%s\n" "unsupported" >&6; }
4597: else case e in #(
4598: e) if test "x$ac_cv_prog_cc_c11" = x
4599: then :
4600: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4601: printf "%s\n" "none needed" >&6; }
4602: else case e in #(
4603: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4604: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4605: CC="$CC $ac_cv_prog_cc_c11" ;;
4606: esac
4607: fi
4608: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4609: ac_prog_cc_stdc=c11 ;;
4610: esac
4611: fi
4612: fi
4613: if test x$ac_prog_cc_stdc = xno
4614: then :
4615: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4616: printf %s "checking for $CC option to enable C99 features... " >&6; }
4617: if test ${ac_cv_prog_cc_c99+y}
4618: then :
4619: printf %s "(cached) " >&6
4620: else case e in #(
4621: e) ac_cv_prog_cc_c99=no
4622: ac_save_CC=$CC
4623: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624: /* end confdefs.h. */
4625: $ac_c_conftest_c99_program
4626: _ACEOF
4627: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4628: do
4629: CC="$ac_save_CC $ac_arg"
4630: if ac_fn_c_try_compile "$LINENO"
4631: then :
4632: ac_cv_prog_cc_c99=$ac_arg
4633: fi
4634: rm -f core conftest.err conftest.$ac_objext conftest.beam
4635: test "x$ac_cv_prog_cc_c99" != "xno" && break
4636: done
4637: rm -f conftest.$ac_ext
4638: CC=$ac_save_CC ;;
4639: esac
4640: fi
1.5 moko 4641:
1.10 moko 4642: if test "x$ac_cv_prog_cc_c99" = xno
4643: then :
4644: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4645: printf "%s\n" "unsupported" >&6; }
4646: else case e in #(
4647: e) if test "x$ac_cv_prog_cc_c99" = x
4648: then :
4649: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4650: printf "%s\n" "none needed" >&6; }
4651: else case e in #(
4652: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4653: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4654: CC="$CC $ac_cv_prog_cc_c99" ;;
4655: esac
4656: fi
4657: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4658: ac_prog_cc_stdc=c99 ;;
4659: esac
4660: fi
4661: fi
4662: if test x$ac_prog_cc_stdc = xno
4663: then :
4664: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4665: printf %s "checking for $CC option to enable C89 features... " >&6; }
4666: if test ${ac_cv_prog_cc_c89+y}
4667: then :
4668: printf %s "(cached) " >&6
4669: else case e in #(
4670: e) ac_cv_prog_cc_c89=no
4671: ac_save_CC=$CC
4672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673: /* end confdefs.h. */
4674: $ac_c_conftest_c89_program
1.2 paf 4675: _ACEOF
1.10 moko 4676: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.2 paf 4677: do
4678: CC="$ac_save_CC $ac_arg"
1.10 moko 4679: if ac_fn_c_try_compile "$LINENO"
4680: then :
1.5 moko 4681: ac_cv_prog_cc_c89=$ac_arg
1.2 paf 4682: fi
1.10 moko 4683: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.5 moko 4684: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.2 paf 4685: done
1.5 moko 4686: rm -f conftest.$ac_ext
1.10 moko 4687: CC=$ac_save_CC ;;
4688: esac
4689: fi
1.1 paf 4690:
1.10 moko 4691: if test "x$ac_cv_prog_cc_c89" = xno
4692: then :
4693: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4694: printf "%s\n" "unsupported" >&6; }
4695: else case e in #(
4696: e) if test "x$ac_cv_prog_cc_c89" = x
4697: then :
4698: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4699: printf "%s\n" "none needed" >&6; }
4700: else case e in #(
4701: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4702: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4703: CC="$CC $ac_cv_prog_cc_c89" ;;
4704: esac
1.2 paf 4705: fi
1.10 moko 4706: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4707: ac_prog_cc_stdc=c89 ;;
1.5 moko 4708: esac
1.10 moko 4709: fi
1.2 paf 4710: fi
4711:
4712: ac_ext=c
4713: ac_cpp='$CPP $CPPFLAGS'
4714: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717:
1.10 moko 4718:
4719: ac_ext=c
1.8 moko 4720: ac_cpp='$CPP $CPPFLAGS'
4721: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 moko 4724: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4725: printf %s "checking whether $CC understands -c and -o together... " >&6; }
4726: if test ${am_cv_prog_cc_c_o+y}
4727: then :
4728: printf %s "(cached) " >&6
4729: else case e in #(
4730: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 4731: /* end confdefs.h. */
4732:
4733: int
1.10 moko 4734: main (void)
1.8 moko 4735: {
4736:
4737: ;
4738: return 0;
4739: }
4740: _ACEOF
4741: # Make sure it works both with $CC and with simple cc.
4742: # Following AC_PROG_CC_C_O, we do the test twice because some
4743: # compilers refuse to overwrite an existing .o file with -o,
4744: # though they will create one.
4745: am_cv_prog_cc_c_o=yes
4746: for am_i in 1 2; do
4747: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4748: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4749: ac_status=$?
4750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751: (exit $ac_status); } \
4752: && test -f conftest2.$ac_objext; then
4753: : OK
4754: else
4755: am_cv_prog_cc_c_o=no
4756: break
4757: fi
4758: done
4759: rm -f core conftest*
1.10 moko 4760: unset am_i ;;
4761: esac
1.8 moko 4762: fi
1.10 moko 4763: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4764: printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1.8 moko 4765: if test "$am_cv_prog_cc_c_o" != yes; then
4766: # Losing compiler, so override with the script.
4767: # FIXME: It is wrong to rewrite CC.
4768: # But if we don't then we get into trouble of one sort or another.
4769: # A longer-term fix would be to have automake use am__CC in this case,
4770: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4771: CC="$am_aux_dir/compile $CC"
4772: fi
4773: ac_ext=c
4774: ac_cpp='$CPP $CPPFLAGS'
4775: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778:
4779:
1.5 moko 4780: depcc="$CC" am_compiler_list=
1.2 paf 4781:
1.10 moko 4782: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4783: printf %s "checking dependency style of $depcc... " >&6; }
4784: if test ${am_cv_CC_dependencies_compiler_type+y}
4785: then :
4786: printf %s "(cached) " >&6
4787: else case e in #(
4788: e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.5 moko 4789: # We make a subdir and do the tests there. Otherwise we can end up
4790: # making bogus files that we don't know about and never remove. For
4791: # instance it was reported that on HP-UX the gcc test will end up
1.8 moko 4792: # making a dummy file named 'D' -- because '-MD' means "put the output
4793: # in D".
4794: rm -rf conftest.dir
1.5 moko 4795: mkdir conftest.dir
4796: # Copy depcomp to subdir because otherwise we won't find it if we're
4797: # using a relative directory.
4798: cp "$am_depcomp" conftest.dir
4799: cd conftest.dir
4800: # We will build objects and dependencies in a subdirectory because
4801: # it helps to detect inapplicable dependency modes. For instance
4802: # both Tru64's cc and ICC support -MD to output dependencies as a
4803: # side effect of compilation, but ICC will put the dependencies in
4804: # the current directory while Tru64 will put them in the object
4805: # directory.
4806: mkdir sub
1.2 paf 4807:
1.5 moko 4808: am_cv_CC_dependencies_compiler_type=none
4809: if test "$am_compiler_list" = ""; then
1.2 paf 4810: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4811: fi
1.5 moko 4812: am__universal=false
4813: case " $depcc " in #(
4814: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4815: esac
4816:
1.2 paf 4817: for depmode in $am_compiler_list; do
1.5 moko 4818: # Setup a source with many dependencies, because some compilers
4819: # like to wrap large dependency lists on column 80 (with \), and
4820: # we should not choose a depcomp mode which is confused by this.
4821: #
1.2 paf 4822: # We need to recreate these files for each test, as the compiler may
4823: # overwrite some of them when testing with obscure command lines.
4824: # This happens at least with the AIX C compiler.
1.5 moko 4825: : > sub/conftest.c
4826: for i in 1 2 3 4 5 6; do
4827: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.8 moko 4828: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4829: # Solaris 10 /bin/sh.
4830: echo '/* dummy */' > sub/conftst$i.h
1.5 moko 4831: done
4832: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.2 paf 4833:
1.8 moko 4834: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.5 moko 4835: # mode. It turns out that the SunPro C++ compiler does not properly
1.8 moko 4836: # handle '-M -o', and we need to detect this. Also, some Intel
4837: # versions had trouble with output in subdirs.
1.5 moko 4838: am__obj=sub/conftest.${OBJEXT-o}
4839: am__minus_obj="-o $am__obj"
1.2 paf 4840: case $depmode in
1.5 moko 4841: gcc)
4842: # This depmode causes a compiler race in universal mode.
4843: test "$am__universal" = false || continue
4844: ;;
1.2 paf 4845: nosideeffect)
1.8 moko 4846: # After this tag, mechanisms are not by side-effect, so they'll
4847: # only be used when explicitly requested.
1.2 paf 4848: if test "x$enable_dependency_tracking" = xyes; then
4849: continue
4850: else
4851: break
4852: fi
4853: ;;
1.8 moko 4854: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4855: # This compiler won't grok '-c -o', but also, the minuso test has
1.5 moko 4856: # not run yet. These depmodes are late enough in the game, and
4857: # so weak that their functioning should not be impacted.
4858: am__obj=conftest.${OBJEXT-o}
4859: am__minus_obj=
4860: ;;
1.2 paf 4861: none) break ;;
4862: esac
4863: if depmode=$depmode \
1.5 moko 4864: source=sub/conftest.c object=$am__obj \
4865: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4866: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4867: >/dev/null 2>conftest.err &&
4868: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4869: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4870: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.2 paf 4871: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.5 moko 4872: # icc doesn't choke on unknown options, it will just issue warnings
4873: # or remarks (even with -Werror). So we grep stderr for any message
4874: # that says an option was ignored or not supported.
1.10 moko 4875: # When given -MP, icc 7.0 and 7.1 complain thus:
1.5 moko 4876: # icc: Command line warning: ignoring option '-M'; no argument required
4877: # The diagnosis changed in icc 8.0:
4878: # icc: Command line remark: option '-MP' not supported
4879: if (grep 'ignoring option' conftest.err ||
4880: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4881: am_cv_CC_dependencies_compiler_type=$depmode
4882: break
4883: fi
1.2 paf 4884: fi
4885: done
4886:
4887: cd ..
4888: rm -rf conftest.dir
4889: else
4890: am_cv_CC_dependencies_compiler_type=none
4891: fi
1.10 moko 4892: ;;
4893: esac
1.2 paf 4894: fi
1.10 moko 4895: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4896: printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1.2 paf 4897: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4898:
1.5 moko 4899: if
1.2 paf 4900: test "x$enable_dependency_tracking" != xno \
4901: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4902: am__fastdepCC_TRUE=
4903: am__fastdepCC_FALSE='#'
4904: else
4905: am__fastdepCC_TRUE='#'
4906: am__fastdepCC_FALSE=
4907: fi
4908:
4909:
1.10 moko 4910: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4911: printf %s "checking for a sed that does not truncate output... " >&6; }
4912: if test ${ac_cv_path_SED+y}
4913: then :
4914: printf %s "(cached) " >&6
4915: else case e in #(
4916: e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1.5 moko 4917: for ac_i in 1 2 3 4 5 6 7; do
4918: ac_script="$ac_script$as_nl$ac_script"
4919: done
4920: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4921: { ac_script=; unset ac_script;}
4922: if test -z "$SED"; then
4923: ac_path_SED_found=false
4924: # Loop through the user's path and test for each of PROGNAME-LIST
4925: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926: for as_dir in $PATH
4927: do
4928: IFS=$as_save_IFS
1.10 moko 4929: case $as_dir in #(((
4930: '') as_dir=./ ;;
4931: */) ;;
4932: *) as_dir=$as_dir/ ;;
4933: esac
4934: for ac_prog in sed gsed
4935: do
1.5 moko 4936: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 4937: ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
1.7 moko 4938: as_fn_executable_p "$ac_path_SED" || continue
1.5 moko 4939: # Check for GNU ac_path_SED and select it if it is found.
4940: # Check for GNU $ac_path_SED
1.10 moko 4941: case `"$ac_path_SED" --version 2>&1` in #(
1.5 moko 4942: *GNU*)
4943: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1.10 moko 4944: #(
1.5 moko 4945: *)
4946: ac_count=0
1.10 moko 4947: printf %s 0123456789 >"conftest.in"
1.5 moko 4948: while :
4949: do
4950: cat "conftest.in" "conftest.in" >"conftest.tmp"
4951: mv "conftest.tmp" "conftest.in"
4952: cp "conftest.in" "conftest.nl"
1.10 moko 4953: printf "%s\n" '' >> "conftest.nl"
1.5 moko 4954: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4955: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4956: as_fn_arith $ac_count + 1 && ac_count=$as_val
4957: if test $ac_count -gt ${ac_path_SED_max-0}; then
4958: # Best one so far, save it but keep looking for a better one
4959: ac_cv_path_SED="$ac_path_SED"
4960: ac_path_SED_max=$ac_count
4961: fi
4962: # 10*(2^10) chars as input seems more than enough
4963: test $ac_count -gt 10 && break
4964: done
4965: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4966: esac
1.2 paf 4967:
1.5 moko 4968: $ac_path_SED_found && break 3
4969: done
4970: done
4971: done
4972: IFS=$as_save_IFS
4973: if test -z "$ac_cv_path_SED"; then
4974: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4975: fi
1.2 paf 4976: else
1.5 moko 4977: ac_cv_path_SED=$SED
4978: fi
1.10 moko 4979: ;;
4980: esac
1.5 moko 4981: fi
1.10 moko 4982: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4983: printf "%s\n" "$ac_cv_path_SED" >&6; }
1.5 moko 4984: SED="$ac_cv_path_SED"
4985: rm -f conftest.sed
4986:
4987: test -z "$SED" && SED=sed
4988: Xsed="$SED -e 1s/^X//"
4989:
4990:
4991:
4992:
1.2 paf 4993:
4994:
4995:
4996:
1.1 paf 4997:
4998:
4999:
1.10 moko 5000: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5001: printf %s "checking for grep that handles long lines and -e... " >&6; }
5002: if test ${ac_cv_path_GREP+y}
5003: then :
5004: printf %s "(cached) " >&6
5005: else case e in #(
5006: e) if test -z "$GREP"; then
1.5 moko 5007: ac_path_GREP_found=false
5008: # Loop through the user's path and test for each of PROGNAME-LIST
5009: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5011: do
5012: IFS=$as_save_IFS
1.10 moko 5013: case $as_dir in #(((
5014: '') as_dir=./ ;;
5015: */) ;;
5016: *) as_dir=$as_dir/ ;;
5017: esac
5018: for ac_prog in grep ggrep
5019: do
1.5 moko 5020: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 5021: ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
1.7 moko 5022: as_fn_executable_p "$ac_path_GREP" || continue
1.5 moko 5023: # Check for GNU ac_path_GREP and select it if it is found.
5024: # Check for GNU $ac_path_GREP
1.10 moko 5025: case `"$ac_path_GREP" --version 2>&1` in #(
1.5 moko 5026: *GNU*)
5027: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
1.10 moko 5028: #(
1.5 moko 5029: *)
5030: ac_count=0
1.10 moko 5031: printf %s 0123456789 >"conftest.in"
1.5 moko 5032: while :
5033: do
5034: cat "conftest.in" "conftest.in" >"conftest.tmp"
5035: mv "conftest.tmp" "conftest.in"
5036: cp "conftest.in" "conftest.nl"
1.10 moko 5037: printf "%s\n" 'GREP' >> "conftest.nl"
1.5 moko 5038: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5039: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5040: as_fn_arith $ac_count + 1 && ac_count=$as_val
5041: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5042: # Best one so far, save it but keep looking for a better one
5043: ac_cv_path_GREP="$ac_path_GREP"
5044: ac_path_GREP_max=$ac_count
5045: fi
5046: # 10*(2^10) chars as input seems more than enough
5047: test $ac_count -gt 10 && break
5048: done
5049: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5050: esac
1.1 paf 5051:
1.5 moko 5052: $ac_path_GREP_found && break 3
5053: done
5054: done
5055: done
5056: IFS=$as_save_IFS
5057: if test -z "$ac_cv_path_GREP"; then
5058: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5059: fi
1.1 paf 5060: else
1.5 moko 5061: ac_cv_path_GREP=$GREP
1.1 paf 5062: fi
1.10 moko 5063: ;;
5064: esac
1.1 paf 5065: fi
1.10 moko 5066: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5067: printf "%s\n" "$ac_cv_path_GREP" >&6; }
1.5 moko 5068: GREP="$ac_cv_path_GREP"
1.1 paf 5069:
5070:
1.10 moko 5071: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5072: printf %s "checking for egrep... " >&6; }
5073: if test ${ac_cv_path_EGREP+y}
5074: then :
5075: printf %s "(cached) " >&6
5076: else case e in #(
5077: e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1.5 moko 5078: then ac_cv_path_EGREP="$GREP -E"
5079: else
5080: if test -z "$EGREP"; then
5081: ac_path_EGREP_found=false
5082: # Loop through the user's path and test for each of PROGNAME-LIST
5083: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5085: do
5086: IFS=$as_save_IFS
1.10 moko 5087: case $as_dir in #(((
5088: '') as_dir=./ ;;
5089: */) ;;
5090: *) as_dir=$as_dir/ ;;
5091: esac
5092: for ac_prog in egrep
5093: do
1.5 moko 5094: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 5095: ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
1.7 moko 5096: as_fn_executable_p "$ac_path_EGREP" || continue
1.5 moko 5097: # Check for GNU ac_path_EGREP and select it if it is found.
5098: # Check for GNU $ac_path_EGREP
1.10 moko 5099: case `"$ac_path_EGREP" --version 2>&1` in #(
1.5 moko 5100: *GNU*)
5101: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
1.10 moko 5102: #(
1.4 paf 5103: *)
1.5 moko 5104: ac_count=0
1.10 moko 5105: printf %s 0123456789 >"conftest.in"
1.5 moko 5106: while :
5107: do
5108: cat "conftest.in" "conftest.in" >"conftest.tmp"
5109: mv "conftest.tmp" "conftest.in"
5110: cp "conftest.in" "conftest.nl"
1.10 moko 5111: printf "%s\n" 'EGREP' >> "conftest.nl"
1.5 moko 5112: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5113: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5114: as_fn_arith $ac_count + 1 && ac_count=$as_val
5115: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5116: # Best one so far, save it but keep looking for a better one
5117: ac_cv_path_EGREP="$ac_path_EGREP"
5118: ac_path_EGREP_max=$ac_count
1.4 paf 5119: fi
1.5 moko 5120: # 10*(2^10) chars as input seems more than enough
5121: test $ac_count -gt 10 && break
1.4 paf 5122: done
1.5 moko 5123: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.4 paf 5124: esac
1.5 moko 5125:
5126: $ac_path_EGREP_found && break 3
5127: done
5128: done
5129: done
5130: IFS=$as_save_IFS
5131: if test -z "$ac_cv_path_EGREP"; then
5132: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5133: fi
1.1 paf 5134: else
1.5 moko 5135: ac_cv_path_EGREP=$EGREP
5136: fi
5137:
1.10 moko 5138: fi ;;
5139: esac
1.5 moko 5140: fi
1.10 moko 5141: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5142: printf "%s\n" "$ac_cv_path_EGREP" >&6; }
1.5 moko 5143: EGREP="$ac_cv_path_EGREP"
5144:
1.10 moko 5145: EGREP_TRADITIONAL=$EGREP
5146: ac_cv_path_EGREP_TRADITIONAL=$EGREP
1.5 moko 5147:
1.10 moko 5148: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5149: printf %s "checking for fgrep... " >&6; }
5150: if test ${ac_cv_path_FGREP+y}
5151: then :
5152: printf %s "(cached) " >&6
5153: else case e in #(
5154: e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1.5 moko 5155: then ac_cv_path_FGREP="$GREP -F"
5156: else
5157: if test -z "$FGREP"; then
5158: ac_path_FGREP_found=false
5159: # Loop through the user's path and test for each of PROGNAME-LIST
5160: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5162: do
5163: IFS=$as_save_IFS
1.10 moko 5164: case $as_dir in #(((
5165: '') as_dir=./ ;;
5166: */) ;;
5167: *) as_dir=$as_dir/ ;;
5168: esac
5169: for ac_prog in fgrep
5170: do
1.5 moko 5171: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 5172: ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
1.7 moko 5173: as_fn_executable_p "$ac_path_FGREP" || continue
1.5 moko 5174: # Check for GNU ac_path_FGREP and select it if it is found.
5175: # Check for GNU $ac_path_FGREP
1.10 moko 5176: case `"$ac_path_FGREP" --version 2>&1` in #(
1.5 moko 5177: *GNU*)
5178: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
1.10 moko 5179: #(
1.4 paf 5180: *)
1.5 moko 5181: ac_count=0
1.10 moko 5182: printf %s 0123456789 >"conftest.in"
1.5 moko 5183: while :
5184: do
5185: cat "conftest.in" "conftest.in" >"conftest.tmp"
5186: mv "conftest.tmp" "conftest.in"
5187: cp "conftest.in" "conftest.nl"
1.10 moko 5188: printf "%s\n" 'FGREP' >> "conftest.nl"
1.5 moko 5189: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5190: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5191: as_fn_arith $ac_count + 1 && ac_count=$as_val
5192: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5193: # Best one so far, save it but keep looking for a better one
5194: ac_cv_path_FGREP="$ac_path_FGREP"
5195: ac_path_FGREP_max=$ac_count
1.4 paf 5196: fi
1.5 moko 5197: # 10*(2^10) chars as input seems more than enough
5198: test $ac_count -gt 10 && break
1.4 paf 5199: done
1.5 moko 5200: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.4 paf 5201: esac
1.5 moko 5202:
5203: $ac_path_FGREP_found && break 3
5204: done
5205: done
5206: done
5207: IFS=$as_save_IFS
5208: if test -z "$ac_cv_path_FGREP"; then
5209: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5210: fi
1.1 paf 5211: else
1.5 moko 5212: ac_cv_path_FGREP=$FGREP
5213: fi
1.4 paf 5214:
1.10 moko 5215: fi ;;
5216: esac
1.1 paf 5217: fi
1.10 moko 5218: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5219: printf "%s\n" "$ac_cv_path_FGREP" >&6; }
1.5 moko 5220: FGREP="$ac_cv_path_FGREP"
5221:
5222:
5223: test -z "$GREP" && GREP=grep
5224:
5225:
5226:
5227:
5228:
5229:
5230:
5231:
5232:
5233:
5234:
5235:
5236:
5237:
1.1 paf 5238:
1.4 paf 5239:
5240:
5241:
5242:
1.5 moko 5243: # Check whether --with-gnu-ld was given.
1.10 moko 5244: if test ${with_gnu_ld+y}
5245: then :
5246: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5247: else case e in #(
5248: e) with_gnu_ld=no ;;
5249: esac
1.5 moko 5250: fi
5251:
1.4 paf 5252: ac_prog=ld
1.10 moko 5253: if test yes = "$GCC"; then
1.4 paf 5254: # Check if gcc -print-prog-name=ld gives a path.
1.10 moko 5255: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5256: printf %s "checking for ld used by $CC... " >&6; }
1.4 paf 5257: case $host in
1.10 moko 5258: *-*-mingw* | *-*-windows*)
5259: # gcc leaves a trailing carriage return, which upsets mingw
1.4 paf 5260: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5261: *)
5262: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5263: esac
5264: case $ac_prog in
5265: # Accept absolute paths.
1.5 moko 5266: [\\/]* | ?:[\\/]*)
1.4 paf 5267: re_direlt='/[^/][^/]*/\.\./'
1.5 moko 5268: # Canonicalize the pathname of ld
5269: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5270: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5271: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.4 paf 5272: done
1.10 moko 5273: test -z "$LD" && LD=$ac_prog
1.4 paf 5274: ;;
5275: "")
5276: # If it fails, then pretend we aren't using GCC.
5277: ac_prog=ld
5278: ;;
5279: *)
5280: # If it is relative, then search for the first ld in PATH.
5281: with_gnu_ld=unknown
5282: ;;
5283: esac
1.10 moko 5284: elif test yes = "$with_gnu_ld"; then
5285: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5286: printf %s "checking for GNU ld... " >&6; }
5287: else
5288: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5289: printf %s "checking for non-GNU ld... " >&6; }
5290: fi
5291: if test ${lt_cv_path_LD+y}
5292: then :
5293: printf %s "(cached) " >&6
5294: else case e in #(
5295: e) if test -z "$LD"; then
5296: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5297: for ac_dir in $PATH; do
5298: IFS=$lt_save_ifs
1.4 paf 5299: test -z "$ac_dir" && ac_dir=.
5300: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.10 moko 5301: lt_cv_path_LD=$ac_dir/$ac_prog
1.4 paf 5302: # Check to see if the program is GNU ld. I'd rather use --version,
1.5 moko 5303: # but apparently some variants of GNU ld only accept -v.
1.4 paf 5304: # Break only if it was the GNU/non-GNU ld that we prefer.
1.5 moko 5305: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5306: *GNU* | *'with BFD'*)
1.10 moko 5307: test no != "$with_gnu_ld" && break
1.5 moko 5308: ;;
5309: *)
1.10 moko 5310: test yes != "$with_gnu_ld" && break
1.5 moko 5311: ;;
5312: esac
1.4 paf 5313: fi
1.1 paf 5314: done
1.10 moko 5315: IFS=$lt_save_ifs
1.4 paf 5316: else
1.10 moko 5317: lt_cv_path_LD=$LD # Let the user override the test with a path.
5318: fi ;;
5319: esac
1.1 paf 5320: fi
1.2 paf 5321:
1.10 moko 5322: LD=$lt_cv_path_LD
1.4 paf 5323: if test -n "$LD"; then
1.10 moko 5324: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5325: printf "%s\n" "$LD" >&6; }
1.4 paf 5326: else
1.10 moko 5327: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328: printf "%s\n" "no" >&6; }
1.2 paf 5329: fi
1.5 moko 5330: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.10 moko 5331: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5332: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5333: if test ${lt_cv_prog_gnu_ld+y}
5334: then :
5335: printf %s "(cached) " >&6
5336: else case e in #(
5337: e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.5 moko 5338: case `$LD -v 2>&1 </dev/null` in
5339: *GNU* | *'with BFD'*)
1.4 paf 5340: lt_cv_prog_gnu_ld=yes
1.5 moko 5341: ;;
5342: *)
1.4 paf 5343: lt_cv_prog_gnu_ld=no
1.5 moko 5344: ;;
1.10 moko 5345: esac ;;
1.5 moko 5346: esac
1.4 paf 5347: fi
1.10 moko 5348: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5349: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1.4 paf 5350: with_gnu_ld=$lt_cv_prog_gnu_ld
1.2 paf 5351:
5352:
5353:
1.5 moko 5354:
5355:
5356:
5357:
5358:
5359:
1.10 moko 5360: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5361: printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5362: if test ${lt_cv_path_NM+y}
5363: then :
5364: printf %s "(cached) " >&6
5365: else case e in #(
5366: e) if test -n "$NM"; then
1.4 paf 5367: # Let the user override the test.
1.10 moko 5368: lt_cv_path_NM=$NM
1.4 paf 5369: else
1.10 moko 5370: lt_nm_to_check=${ac_tool_prefix}nm
1.5 moko 5371: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5372: lt_nm_to_check="$lt_nm_to_check nm"
5373: fi
5374: for lt_tmp_nm in $lt_nm_to_check; do
1.10 moko 5375: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.5 moko 5376: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1.10 moko 5377: IFS=$lt_save_ifs
1.5 moko 5378: test -z "$ac_dir" && ac_dir=.
1.10 moko 5379: tmp_nm=$ac_dir/$lt_tmp_nm
5380: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
1.5 moko 5381: # Check to see if the nm accepts a BSD-compat flag.
1.10 moko 5382: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
1.5 moko 5383: # nm: unknown option "B" ignored
5384: # Tru64's nm complains that /dev/null is an invalid object file
1.10 moko 5385: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5386: case $build_os in
5387: mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5388: *) lt_bad_file=/dev/null ;;
5389: esac
5390: case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5391: *$lt_bad_file* | *'Invalid file or object type'*)
1.5 moko 5392: lt_cv_path_NM="$tmp_nm -B"
1.10 moko 5393: break 2
1.5 moko 5394: ;;
5395: *)
1.10 moko 5396: case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
1.5 moko 5397: */dev/null*)
5398: lt_cv_path_NM="$tmp_nm -p"
1.10 moko 5399: break 2
1.5 moko 5400: ;;
5401: *)
5402: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5403: continue # so that we can try to find one that supports BSD flags
5404: ;;
5405: esac
5406: ;;
5407: esac
1.4 paf 5408: fi
1.5 moko 5409: done
1.10 moko 5410: IFS=$lt_save_ifs
1.4 paf 5411: done
1.5 moko 5412: : ${lt_cv_path_NM=no}
1.10 moko 5413: fi ;;
5414: esac
1.4 paf 5415: fi
1.10 moko 5416: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5417: printf "%s\n" "$lt_cv_path_NM" >&6; }
5418: if test no != "$lt_cv_path_NM"; then
5419: NM=$lt_cv_path_NM
1.5 moko 5420: else
5421: # Didn't find any BSD compatible name lister, look for dumpbin.
5422: if test -n "$DUMPBIN"; then :
5423: # Let the user override the test.
5424: else
5425: if test -n "$ac_tool_prefix"; then
5426: for ac_prog in dumpbin "link -dump"
5427: do
5428: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5429: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.10 moko 5430: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431: printf %s "checking for $ac_word... " >&6; }
5432: if test ${ac_cv_prog_DUMPBIN+y}
5433: then :
5434: printf %s "(cached) " >&6
5435: else case e in #(
5436: e) if test -n "$DUMPBIN"; then
1.5 moko 5437: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
1.4 paf 5438: else
5439: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440: for as_dir in $PATH
5441: do
5442: IFS=$as_save_IFS
1.10 moko 5443: case $as_dir in #(((
5444: '') as_dir=./ ;;
5445: */) ;;
5446: *) as_dir=$as_dir/ ;;
5447: esac
1.4 paf 5448: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 5449: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 5450: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.10 moko 5451: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 5452: break 2
5453: fi
5454: done
1.4 paf 5455: done
1.5 moko 5456: IFS=$as_save_IFS
5457:
1.10 moko 5458: fi ;;
5459: esac
1.5 moko 5460: fi
5461: DUMPBIN=$ac_cv_prog_DUMPBIN
5462: if test -n "$DUMPBIN"; then
1.10 moko 5463: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5464: printf "%s\n" "$DUMPBIN" >&6; }
1.5 moko 5465: else
1.10 moko 5466: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467: printf "%s\n" "no" >&6; }
1.5 moko 5468: fi
1.4 paf 5469:
5470:
1.5 moko 5471: test -n "$DUMPBIN" && break
5472: done
5473: fi
5474: if test -z "$DUMPBIN"; then
5475: ac_ct_DUMPBIN=$DUMPBIN
5476: for ac_prog in dumpbin "link -dump"
5477: do
5478: # Extract the first word of "$ac_prog", so it can be a program name with args.
5479: set dummy $ac_prog; ac_word=$2
1.10 moko 5480: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481: printf %s "checking for $ac_word... " >&6; }
5482: if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5483: then :
5484: printf %s "(cached) " >&6
5485: else case e in #(
5486: e) if test -n "$ac_ct_DUMPBIN"; then
1.5 moko 5487: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5488: else
5489: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490: for as_dir in $PATH
5491: do
5492: IFS=$as_save_IFS
1.10 moko 5493: case $as_dir in #(((
5494: '') as_dir=./ ;;
5495: */) ;;
5496: *) as_dir=$as_dir/ ;;
5497: esac
1.5 moko 5498: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 5499: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 5500: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.10 moko 5501: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 5502: break 2
5503: fi
5504: done
1.4 paf 5505: done
1.5 moko 5506: IFS=$as_save_IFS
5507:
1.10 moko 5508: fi ;;
5509: esac
1.5 moko 5510: fi
5511: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5512: if test -n "$ac_ct_DUMPBIN"; then
1.10 moko 5513: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5514: printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
1.5 moko 5515: else
1.10 moko 5516: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517: printf "%s\n" "no" >&6; }
1.5 moko 5518: fi
5519:
5520:
5521: test -n "$ac_ct_DUMPBIN" && break
5522: done
5523:
5524: if test "x$ac_ct_DUMPBIN" = x; then
5525: DUMPBIN=":"
5526: else
5527: case $cross_compiling:$ac_tool_warned in
5528: yes:)
1.10 moko 5529: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5530: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 5531: ac_tool_warned=yes ;;
5532: esac
5533: DUMPBIN=$ac_ct_DUMPBIN
5534: fi
5535: fi
5536:
1.10 moko 5537: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
1.5 moko 5538: *COFF*)
1.10 moko 5539: DUMPBIN="$DUMPBIN -symbols -headers"
1.5 moko 5540: ;;
5541: *)
5542: DUMPBIN=:
5543: ;;
5544: esac
5545: fi
1.4 paf 5546:
1.10 moko 5547: if test : != "$DUMPBIN"; then
5548: NM=$DUMPBIN
1.5 moko 5549: fi
1.4 paf 5550: fi
1.5 moko 5551: test -z "$NM" && NM=nm
5552:
5553:
1.4 paf 5554:
1.5 moko 5555:
5556:
5557:
1.10 moko 5558: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5559: printf %s "checking the name lister ($NM) interface... " >&6; }
5560: if test ${lt_cv_nm_interface+y}
5561: then :
5562: printf %s "(cached) " >&6
5563: else case e in #(
5564: e) lt_cv_nm_interface="BSD nm"
1.5 moko 5565: echo "int some_variable = 0;" > conftest.$ac_ext
5566: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5567: (eval "$ac_compile" 2>conftest.err)
5568: cat conftest.err >&5
5569: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5570: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5571: cat conftest.err >&5
5572: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5573: cat conftest.out >&5
5574: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5575: lt_cv_nm_interface="MS dumpbin"
5576: fi
1.10 moko 5577: rm -f conftest* ;;
5578: esac
1.4 paf 5579: fi
1.10 moko 5580: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5581: printf "%s\n" "$lt_cv_nm_interface" >&6; }
1.4 paf 5582:
1.10 moko 5583: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5584: printf %s "checking whether ln -s works... " >&6; }
1.4 paf 5585: LN_S=$as_ln_s
5586: if test "$LN_S" = "ln -s"; then
1.10 moko 5587: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5588: printf "%s\n" "yes" >&6; }
1.5 moko 5589: else
1.10 moko 5590: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5591: printf "%s\n" "no, using $LN_S" >&6; }
1.5 moko 5592: fi
5593:
5594: # find the maximum length of command line arguments
1.10 moko 5595: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5596: printf %s "checking the maximum length of command line arguments... " >&6; }
5597: if test ${lt_cv_sys_max_cmd_len+y}
5598: then :
5599: printf %s "(cached) " >&6
5600: else case e in #(
5601: e) i=0
5602: teststring=ABCD
1.5 moko 5603:
5604: case $build_os in
5605: msdosdjgpp*)
5606: # On DJGPP, this test can blow up pretty badly due to problems in libc
5607: # (any single argument exceeding 2000 bytes causes a buffer overrun
5608: # during glob expansion). Even if it were fixed, the result of this
5609: # check would be larger than it should be.
5610: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5611: ;;
5612:
1.10 moko 5613: gnu* | ironclad*)
5614: # Under GNU Hurd and Ironclad, this test is not required because there
5615: # is no limit to the length of command line arguments.
1.5 moko 5616: # Libtool will interpret -1 as no limit whatsoever
5617: lt_cv_sys_max_cmd_len=-1;
5618: ;;
5619:
1.10 moko 5620: cygwin* | mingw* | windows* | cegcc*)
1.5 moko 5621: # On Win9x/ME, this test blows up -- it succeeds, but takes
5622: # about 5 minutes as the teststring grows exponentially.
5623: # Worse, since 9x/ME are not pre-emptively multitasking,
5624: # you end up with a "frozen" computer, even though with patience
5625: # the test eventually succeeds (with a max line length of 256k).
5626: # Instead, let's just punt: use the minimum linelength reported by
5627: # all of the supported platforms: 8192 (on NT/2K/XP).
5628: lt_cv_sys_max_cmd_len=8192;
5629: ;;
5630:
5631: mint*)
5632: # On MiNT this can take a long time and run out of memory.
5633: lt_cv_sys_max_cmd_len=8192;
5634: ;;
5635:
5636: amigaos*)
5637: # On AmigaOS with pdksh, this test takes hours, literally.
5638: # So we just punt and use a minimum line length of 8192.
5639: lt_cv_sys_max_cmd_len=8192;
5640: ;;
5641:
1.10 moko 5642: darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
1.5 moko 5643: # This has been around since 386BSD, at least. Likely further.
5644: if test -x /sbin/sysctl; then
5645: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5646: elif test -x /usr/sbin/sysctl; then
5647: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5648: else
5649: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5650: fi
5651: # And add a safety zone
5652: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5653: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5654: ;;
5655:
5656: interix*)
5657: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5658: lt_cv_sys_max_cmd_len=196608
5659: ;;
5660:
5661: os2*)
5662: # The test takes a long time on OS/2.
5663: lt_cv_sys_max_cmd_len=8192
5664: ;;
5665:
5666: osf*)
5667: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5668: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5669: # nice to cause kernel panics so lets avoid the loop below.
5670: # First set a reasonable default.
5671: lt_cv_sys_max_cmd_len=16384
5672: #
5673: if test -x /sbin/sysconfig; then
5674: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5675: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5676: esac
5677: fi
5678: ;;
5679: sco3.2v5*)
5680: lt_cv_sys_max_cmd_len=102400
5681: ;;
5682: sysv5* | sco5v6* | sysv4.2uw2*)
5683: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5684: if test -n "$kargmax"; then
1.10 moko 5685: lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
1.5 moko 5686: else
5687: lt_cv_sys_max_cmd_len=32768
5688: fi
5689: ;;
5690: *)
5691: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1.10 moko 5692: if test -n "$lt_cv_sys_max_cmd_len" && \
5693: test undefined != "$lt_cv_sys_max_cmd_len"; then
1.5 moko 5694: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5695: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5696: else
5697: # Make teststring a little bigger before we do anything with it.
5698: # a 1K string should be a reasonable start.
1.10 moko 5699: for i in 1 2 3 4 5 6 7 8; do
1.5 moko 5700: teststring=$teststring$teststring
5701: done
5702: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5703: # If test is not a shell built-in, we'll probably end up computing a
5704: # maximum length that is only half of the actual maximum length, but
5705: # we can't tell.
1.10 moko 5706: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1.5 moko 5707: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1.10 moko 5708: test 17 != "$i" # 1/2 MB should be enough
1.5 moko 5709: do
5710: i=`expr $i + 1`
5711: teststring=$teststring$teststring
5712: done
5713: # Only check the string length outside the loop.
5714: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5715: teststring=
5716: # Add a significant safety factor because C++ compilers can tack on
5717: # massive amounts of additional arguments before passing them to the
5718: # linker. It appears as though 1/2 is a usable value.
5719: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5720: fi
5721: ;;
5722: esac
1.10 moko 5723: ;;
5724: esac
1.5 moko 5725: fi
5726:
1.10 moko 5727: if test -n "$lt_cv_sys_max_cmd_len"; then
5728: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5729: printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
1.5 moko 5730: else
1.10 moko 5731: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5732: printf "%s\n" "none" >&6; }
1.5 moko 5733: fi
5734: max_cmd_len=$lt_cv_sys_max_cmd_len
5735:
5736:
5737:
5738:
5739:
5740:
5741: : ${CP="cp -f"}
5742: : ${MV="mv -f"}
5743: : ${RM="rm -f"}
5744:
5745: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5746: lt_unset=unset
5747: else
5748: lt_unset=false
5749: fi
5750:
5751:
5752:
5753:
5754:
5755: # test EBCDIC or ASCII
5756: case `echo X|tr X '\101'` in
5757: A) # ASCII based system
5758: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5759: lt_SP2NL='tr \040 \012'
5760: lt_NL2SP='tr \015\012 \040\040'
5761: ;;
5762: *) # EBCDIC based system
5763: lt_SP2NL='tr \100 \n'
5764: lt_NL2SP='tr \r\n \100\100'
5765: ;;
5766: esac
5767:
5768:
5769:
5770:
5771:
5772:
5773:
5774:
5775:
1.10 moko 5776: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5777: printf %s "checking how to convert $build file names to $host format... " >&6; }
5778: if test ${lt_cv_to_host_file_cmd+y}
5779: then :
5780: printf %s "(cached) " >&6
5781: else case e in #(
5782: e) case $host in
1.5 moko 5783: *-*-mingw* )
5784: case $build in
1.10 moko 5785: *-*-mingw* | *-*-windows* ) # actually msys
1.5 moko 5786: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5787: ;;
5788: *-*-cygwin* )
5789: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5790: ;;
5791: * ) # otherwise, assume *nix
5792: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5793: ;;
5794: esac
5795: ;;
5796: *-*-cygwin* )
5797: case $build in
1.10 moko 5798: *-*-mingw* | *-*-windows* ) # actually msys
1.5 moko 5799: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5800: ;;
5801: *-*-cygwin* )
5802: lt_cv_to_host_file_cmd=func_convert_file_noop
5803: ;;
5804: * ) # otherwise, assume *nix
5805: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5806: ;;
5807: esac
5808: ;;
5809: * ) # unhandled hosts (and "normal" native builds)
5810: lt_cv_to_host_file_cmd=func_convert_file_noop
5811: ;;
5812: esac
1.10 moko 5813: ;;
5814: esac
1.5 moko 5815: fi
5816:
5817: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.10 moko 5818: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5819: printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
1.5 moko 5820:
5821:
5822:
5823:
5824:
1.10 moko 5825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5826: printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5827: if test ${lt_cv_to_tool_file_cmd+y}
5828: then :
5829: printf %s "(cached) " >&6
5830: else case e in #(
5831: e) #assume ordinary cross tools, or native build.
1.5 moko 5832: lt_cv_to_tool_file_cmd=func_convert_file_noop
5833: case $host in
1.10 moko 5834: *-*-mingw* | *-*-windows* )
1.5 moko 5835: case $build in
1.10 moko 5836: *-*-mingw* | *-*-windows* ) # actually msys
1.5 moko 5837: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5838: ;;
5839: esac
5840: ;;
5841: esac
1.10 moko 5842: ;;
5843: esac
1.5 moko 5844: fi
5845:
5846: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.10 moko 5847: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5848: printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
1.5 moko 5849:
5850:
5851:
5852:
5853:
1.10 moko 5854: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5855: printf %s "checking for $LD option to reload object files... " >&6; }
5856: if test ${lt_cv_ld_reload_flag+y}
5857: then :
5858: printf %s "(cached) " >&6
5859: else case e in #(
5860: e) lt_cv_ld_reload_flag='-r' ;;
5861: esac
1.5 moko 5862: fi
1.10 moko 5863: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5864: printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
1.5 moko 5865: reload_flag=$lt_cv_ld_reload_flag
5866: case $reload_flag in
5867: "" | " "*) ;;
5868: *) reload_flag=" $reload_flag" ;;
5869: esac
5870: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5871: case $host_os in
1.10 moko 5872: cygwin* | mingw* | windows* | pw32* | cegcc*)
5873: if test yes != "$GCC"; then
1.5 moko 5874: reload_cmds=false
5875: fi
5876: ;;
5877: darwin*)
1.10 moko 5878: if test yes = "$GCC"; then
5879: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
1.5 moko 5880: else
5881: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5882: fi
5883: ;;
5884: esac
5885:
5886:
5887:
5888:
5889:
5890:
5891:
5892:
5893:
1.10 moko 5894: # Extract the first word of "file", so it can be a program name with args.
5895: set dummy file; ac_word=$2
5896: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897: printf %s "checking for $ac_word... " >&6; }
5898: if test ${ac_cv_prog_FILECMD+y}
5899: then :
5900: printf %s "(cached) " >&6
5901: else case e in #(
5902: e) if test -n "$FILECMD"; then
5903: ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5904: else
5905: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906: for as_dir in $PATH
5907: do
5908: IFS=$as_save_IFS
5909: case $as_dir in #(((
5910: '') as_dir=./ ;;
5911: */) ;;
5912: *) as_dir=$as_dir/ ;;
5913: esac
5914: for ac_exec_ext in '' $ac_executable_extensions; do
5915: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5916: ac_cv_prog_FILECMD="file"
5917: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5918: break 2
5919: fi
5920: done
5921: done
5922: IFS=$as_save_IFS
5923:
5924: test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
5925: fi ;;
5926: esac
5927: fi
5928: FILECMD=$ac_cv_prog_FILECMD
5929: if test -n "$FILECMD"; then
5930: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5931: printf "%s\n" "$FILECMD" >&6; }
5932: else
5933: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934: printf "%s\n" "no" >&6; }
5935: fi
5936:
5937:
5938:
5939:
5940:
5941:
5942:
5943:
1.5 moko 5944: if test -n "$ac_tool_prefix"; then
5945: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5946: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.10 moko 5947: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948: printf %s "checking for $ac_word... " >&6; }
5949: if test ${ac_cv_prog_OBJDUMP+y}
5950: then :
5951: printf %s "(cached) " >&6
5952: else case e in #(
5953: e) if test -n "$OBJDUMP"; then
1.5 moko 5954: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5955: else
5956: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957: for as_dir in $PATH
5958: do
5959: IFS=$as_save_IFS
1.10 moko 5960: case $as_dir in #(((
5961: '') as_dir=./ ;;
5962: */) ;;
5963: *) as_dir=$as_dir/ ;;
5964: esac
1.5 moko 5965: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 5966: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 5967: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.10 moko 5968: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 5969: break 2
5970: fi
5971: done
5972: done
5973: IFS=$as_save_IFS
5974:
1.10 moko 5975: fi ;;
5976: esac
1.5 moko 5977: fi
5978: OBJDUMP=$ac_cv_prog_OBJDUMP
5979: if test -n "$OBJDUMP"; then
1.10 moko 5980: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5981: printf "%s\n" "$OBJDUMP" >&6; }
1.5 moko 5982: else
1.10 moko 5983: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984: printf "%s\n" "no" >&6; }
1.5 moko 5985: fi
5986:
5987:
5988: fi
5989: if test -z "$ac_cv_prog_OBJDUMP"; then
5990: ac_ct_OBJDUMP=$OBJDUMP
5991: # Extract the first word of "objdump", so it can be a program name with args.
5992: set dummy objdump; ac_word=$2
1.10 moko 5993: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994: printf %s "checking for $ac_word... " >&6; }
5995: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5996: then :
5997: printf %s "(cached) " >&6
5998: else case e in #(
5999: e) if test -n "$ac_ct_OBJDUMP"; then
1.5 moko 6000: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6001: else
6002: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003: for as_dir in $PATH
6004: do
6005: IFS=$as_save_IFS
1.10 moko 6006: case $as_dir in #(((
6007: '') as_dir=./ ;;
6008: */) ;;
6009: *) as_dir=$as_dir/ ;;
6010: esac
1.5 moko 6011: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 6012: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 6013: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.10 moko 6014: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 6015: break 2
6016: fi
6017: done
6018: done
6019: IFS=$as_save_IFS
6020:
1.10 moko 6021: fi ;;
6022: esac
1.5 moko 6023: fi
6024: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6025: if test -n "$ac_ct_OBJDUMP"; then
1.10 moko 6026: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6027: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.5 moko 6028: else
1.10 moko 6029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030: printf "%s\n" "no" >&6; }
1.5 moko 6031: fi
6032:
6033: if test "x$ac_ct_OBJDUMP" = x; then
6034: OBJDUMP="false"
6035: else
6036: case $cross_compiling:$ac_tool_warned in
6037: yes:)
1.10 moko 6038: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6039: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 6040: ac_tool_warned=yes ;;
6041: esac
6042: OBJDUMP=$ac_ct_OBJDUMP
6043: fi
6044: else
6045: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.4 paf 6046: fi
6047:
1.5 moko 6048: test -z "$OBJDUMP" && OBJDUMP=objdump
6049:
6050:
6051:
6052:
6053:
6054:
1.10 moko 6055: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6056: printf %s "checking how to recognize dependent libraries... " >&6; }
6057: if test ${lt_cv_deplibs_check_method+y}
6058: then :
6059: printf %s "(cached) " >&6
6060: else case e in #(
6061: e) lt_cv_file_magic_cmd='$MAGIC_CMD'
1.4 paf 6062: lt_cv_file_magic_test_file=
6063: lt_cv_deplibs_check_method='unknown'
6064: # Need to set the preceding variable on all platforms that support
6065: # interlibrary dependencies.
6066: # 'none' -- dependencies not supported.
1.10 moko 6067: # 'unknown' -- same as none, but documents that we really don't know.
1.4 paf 6068: # 'pass_all' -- all dependencies passed with no checks.
6069: # 'file_magic [[regex]]' -- check by looking for files in library path
1.10 moko 6070: # that responds to the $file_magic_cmd with a given extended regex.
6071: # If you have 'file' or equivalent on your system and you're not sure
6072: # whether 'pass_all' will *always* work, you probably want this one.
1.4 paf 6073:
6074: case $host_os in
1.5 moko 6075: aix[4-9]*)
1.4 paf 6076: lt_cv_deplibs_check_method=pass_all
6077: ;;
6078:
6079: beos*)
6080: lt_cv_deplibs_check_method=pass_all
6081: ;;
6082:
1.5 moko 6083: bsdi[45]*)
1.4 paf 6084: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1.10 moko 6085: lt_cv_file_magic_cmd='$FILECMD -L'
1.4 paf 6086: lt_cv_file_magic_test_file=/shlib/libc.so
6087: ;;
6088:
1.5 moko 6089: cygwin*)
6090: # func_win32_libid is a shell function defined in ltmain.sh
6091: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6092: lt_cv_file_magic_cmd='func_win32_libid'
6093: ;;
6094:
1.10 moko 6095: mingw* | windows* | pw32*)
1.5 moko 6096: # Base MSYS/MinGW do not provide the 'file' command needed by
6097: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6098: # unless we find 'file', for example because we are cross-compiling.
1.10 moko 6099: if ( file / ) >/dev/null 2>&1; then
1.5 moko 6100: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6101: lt_cv_file_magic_cmd='func_win32_libid'
6102: else
6103: # Keep this pattern in sync with the one in func_win32_libid.
1.10 moko 6104: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
1.5 moko 6105: lt_cv_file_magic_cmd='$OBJDUMP -f'
6106: fi
6107: ;;
6108:
6109: cegcc*)
6110: # use the weaker test based on 'objdump'. See mingw*.
6111: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.4 paf 6112: lt_cv_file_magic_cmd='$OBJDUMP -f'
6113: ;;
6114:
6115: darwin* | rhapsody*)
1.5 moko 6116: lt_cv_deplibs_check_method=pass_all
1.4 paf 6117: ;;
6118:
1.10 moko 6119: freebsd* | dragonfly* | midnightbsd*)
1.5 moko 6120: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.4 paf 6121: case $host_cpu in
6122: i*86 )
6123: # Not sure whether the presence of OpenBSD here was a mistake.
6124: # Let's accept both of them until this is cleared up.
1.5 moko 6125: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.10 moko 6126: lt_cv_file_magic_cmd=$FILECMD
1.4 paf 6127: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6128: ;;
6129: esac
6130: else
6131: lt_cv_deplibs_check_method=pass_all
6132: fi
6133: ;;
6134:
1.5 moko 6135: haiku*)
6136: lt_cv_deplibs_check_method=pass_all
1.4 paf 6137: ;;
6138:
1.5 moko 6139: hpux10.20* | hpux11*)
1.10 moko 6140: lt_cv_file_magic_cmd=$FILECMD
1.5 moko 6141: case $host_cpu in
6142: ia64*)
6143: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6144: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6145: ;;
6146: hppa*64*)
6147: 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]'
6148: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.4 paf 6149: ;;
6150: *)
1.5 moko 6151: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6152: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.4 paf 6153: ;;
6154: esac
6155: ;;
6156:
1.5 moko 6157: interix[3-9]*)
6158: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6159: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6160: ;;
6161:
6162: irix5* | irix6* | nonstopux*)
6163: case $LD in
6164: *-32|*"-32 ") libmagic=32-bit;;
6165: *-n32|*"-n32 ") libmagic=N32;;
6166: *-64|*"-64 ") libmagic=64-bit;;
6167: *) libmagic=never-match;;
6168: esac
6169: lt_cv_deplibs_check_method=pass_all
6170: ;;
6171:
6172: # This must be glibc/ELF.
1.10 moko 6173: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6174: lt_cv_deplibs_check_method=pass_all
6175: ;;
6176:
6177: *-mlibc)
1.5 moko 6178: lt_cv_deplibs_check_method=pass_all
1.4 paf 6179: ;;
6180:
1.10 moko 6181: netbsd* | netbsdelf*-gnu)
1.5 moko 6182: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6183: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.4 paf 6184: else
1.5 moko 6185: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.4 paf 6186: fi
6187: ;;
6188:
6189: newos6*)
6190: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1.10 moko 6191: lt_cv_file_magic_cmd=$FILECMD
1.4 paf 6192: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6193: ;;
6194:
1.5 moko 6195: *nto* | *qnx*)
6196: lt_cv_deplibs_check_method=pass_all
6197: ;;
6198:
1.4 paf 6199: openbsd*)
1.10 moko 6200: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.5 moko 6201: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.4 paf 6202: else
1.5 moko 6203: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.4 paf 6204: fi
6205: ;;
6206:
6207: osf3* | osf4* | osf5*)
6208: lt_cv_deplibs_check_method=pass_all
6209: ;;
6210:
1.5 moko 6211: rdos*)
1.4 paf 6212: lt_cv_deplibs_check_method=pass_all
6213: ;;
6214:
1.10 moko 6215: serenity*)
6216: lt_cv_deplibs_check_method=pass_all
6217: ;;
6218:
1.4 paf 6219: solaris*)
6220: lt_cv_deplibs_check_method=pass_all
6221: ;;
6222:
1.5 moko 6223: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.4 paf 6224: lt_cv_deplibs_check_method=pass_all
6225: ;;
6226:
1.5 moko 6227: sysv4 | sysv4.3*)
1.4 paf 6228: case $host_vendor in
6229: motorola)
6230: 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]'
6231: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6232: ;;
6233: ncr)
6234: lt_cv_deplibs_check_method=pass_all
6235: ;;
6236: sequent)
6237: lt_cv_file_magic_cmd='/bin/file'
6238: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6239: ;;
6240: sni)
6241: lt_cv_file_magic_cmd='/bin/file'
6242: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6243: lt_cv_file_magic_test_file=/lib/libc.so
6244: ;;
6245: siemens)
6246: lt_cv_deplibs_check_method=pass_all
6247: ;;
1.5 moko 6248: pc)
6249: lt_cv_deplibs_check_method=pass_all
6250: ;;
1.4 paf 6251: esac
6252: ;;
1.5 moko 6253:
6254: tpf*)
6255: lt_cv_deplibs_check_method=pass_all
6256: ;;
1.10 moko 6257: os2*)
6258: lt_cv_deplibs_check_method=pass_all
6259: ;;
6260: esac
6261: ;;
1.4 paf 6262: esac
6263: fi
1.10 moko 6264: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6265: printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
1.5 moko 6266:
6267: file_magic_glob=
6268: want_nocaseglob=no
6269: if test "$build" = "$host"; then
6270: case $host_os in
1.10 moko 6271: mingw* | windows* | pw32*)
1.5 moko 6272: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6273: want_nocaseglob=yes
6274: else
6275: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6276: fi
6277: ;;
6278: esac
6279: fi
6280:
1.4 paf 6281: file_magic_cmd=$lt_cv_file_magic_cmd
6282: deplibs_check_method=$lt_cv_deplibs_check_method
1.5 moko 6283: test -z "$deplibs_check_method" && deplibs_check_method=unknown
1.4 paf 6284:
6285:
6286:
6287:
6288:
6289:
6290:
6291:
6292:
6293:
6294:
6295:
6296:
6297:
6298:
6299:
6300:
6301:
6302:
6303:
6304:
6305:
1.5 moko 6306: if test -n "$ac_tool_prefix"; then
6307: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6308: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.10 moko 6309: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310: printf %s "checking for $ac_word... " >&6; }
6311: if test ${ac_cv_prog_DLLTOOL+y}
6312: then :
6313: printf %s "(cached) " >&6
6314: else case e in #(
6315: e) if test -n "$DLLTOOL"; then
1.5 moko 6316: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6317: else
6318: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319: for as_dir in $PATH
6320: do
6321: IFS=$as_save_IFS
1.10 moko 6322: case $as_dir in #(((
6323: '') as_dir=./ ;;
6324: */) ;;
6325: *) as_dir=$as_dir/ ;;
6326: esac
1.5 moko 6327: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 6328: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 6329: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.10 moko 6330: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 6331: break 2
1.4 paf 6332: fi
6333: done
1.5 moko 6334: done
6335: IFS=$as_save_IFS
1.4 paf 6336:
1.10 moko 6337: fi ;;
6338: esac
1.4 paf 6339: fi
1.5 moko 6340: DLLTOOL=$ac_cv_prog_DLLTOOL
6341: if test -n "$DLLTOOL"; then
1.10 moko 6342: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6343: printf "%s\n" "$DLLTOOL" >&6; }
1.4 paf 6344: else
1.10 moko 6345: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346: printf "%s\n" "no" >&6; }
1.4 paf 6347: fi
6348:
1.5 moko 6349:
1.4 paf 6350: fi
1.5 moko 6351: if test -z "$ac_cv_prog_DLLTOOL"; then
6352: ac_ct_DLLTOOL=$DLLTOOL
6353: # Extract the first word of "dlltool", so it can be a program name with args.
6354: set dummy dlltool; ac_word=$2
1.10 moko 6355: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356: printf %s "checking for $ac_word... " >&6; }
6357: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6358: then :
6359: printf %s "(cached) " >&6
6360: else case e in #(
6361: e) if test -n "$ac_ct_DLLTOOL"; then
1.5 moko 6362: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.4 paf 6363: else
1.5 moko 6364: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365: for as_dir in $PATH
1.4 paf 6366: do
1.5 moko 6367: IFS=$as_save_IFS
1.10 moko 6368: case $as_dir in #(((
6369: '') as_dir=./ ;;
6370: */) ;;
6371: *) as_dir=$as_dir/ ;;
6372: esac
1.5 moko 6373: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 6374: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 6375: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.10 moko 6376: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 6377: break 2
1.4 paf 6378: fi
1.5 moko 6379: done
6380: done
6381: IFS=$as_save_IFS
6382:
1.10 moko 6383: fi ;;
6384: esac
1.4 paf 6385: fi
1.5 moko 6386: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6387: if test -n "$ac_ct_DLLTOOL"; then
1.10 moko 6388: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6389: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.4 paf 6390: else
1.10 moko 6391: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392: printf "%s\n" "no" >&6; }
1.4 paf 6393: fi
6394:
1.5 moko 6395: if test "x$ac_ct_DLLTOOL" = x; then
6396: DLLTOOL="false"
1.4 paf 6397: else
1.5 moko 6398: case $cross_compiling:$ac_tool_warned in
6399: yes:)
1.10 moko 6400: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 6402: ac_tool_warned=yes ;;
6403: esac
6404: DLLTOOL=$ac_ct_DLLTOOL
1.4 paf 6405: fi
6406: else
1.5 moko 6407: DLLTOOL="$ac_cv_prog_DLLTOOL"
1.4 paf 6408: fi
1.5 moko 6409:
6410: test -z "$DLLTOOL" && DLLTOOL=dlltool
6411:
6412:
6413:
6414:
6415:
6416:
6417:
1.10 moko 6418: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6419: printf %s "checking how to associate runtime and link libraries... " >&6; }
6420: if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6421: then :
6422: printf %s "(cached) " >&6
6423: else case e in #(
6424: e) lt_cv_sharedlib_from_linklib_cmd='unknown'
1.5 moko 6425:
6426: case $host_os in
1.10 moko 6427: cygwin* | mingw* | windows* | pw32* | cegcc*)
6428: # two different shell functions defined in ltmain.sh;
6429: # decide which one to use based on capabilities of $DLLTOOL
1.5 moko 6430: case `$DLLTOOL --help 2>&1` in
6431: *--identify-strict*)
6432: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6433: ;;
6434: *)
6435: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6436: ;;
6437: esac
6438: ;;
6439: *)
6440: # fallback: assume linklib IS sharedlib
1.10 moko 6441: lt_cv_sharedlib_from_linklib_cmd=$ECHO
1.5 moko 6442: ;;
6443: esac
1.10 moko 6444: ;;
6445: esac
1.4 paf 6446: fi
1.10 moko 6447: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6448: printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.5 moko 6449: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6450: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6451:
6452:
6453:
6454:
6455:
1.4 paf 6456:
6457:
6458:
1.5 moko 6459: if test -n "$ac_tool_prefix"; then
1.10 moko 6460: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6461: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6462: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463: printf %s "checking for $ac_word... " >&6; }
6464: if test ${ac_cv_prog_RANLIB+y}
6465: then :
6466: printf %s "(cached) " >&6
6467: else case e in #(
6468: e) if test -n "$RANLIB"; then
6469: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6470: else
6471: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472: for as_dir in $PATH
6473: do
6474: IFS=$as_save_IFS
6475: case $as_dir in #(((
6476: '') as_dir=./ ;;
6477: */) ;;
6478: *) as_dir=$as_dir/ ;;
6479: esac
6480: for ac_exec_ext in '' $ac_executable_extensions; do
6481: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6482: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6483: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6484: break 2
6485: fi
6486: done
6487: done
6488: IFS=$as_save_IFS
6489:
6490: fi ;;
6491: esac
6492: fi
6493: RANLIB=$ac_cv_prog_RANLIB
6494: if test -n "$RANLIB"; then
6495: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6496: printf "%s\n" "$RANLIB" >&6; }
6497: else
6498: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499: printf "%s\n" "no" >&6; }
6500: fi
6501:
6502:
6503: fi
6504: if test -z "$ac_cv_prog_RANLIB"; then
6505: ac_ct_RANLIB=$RANLIB
6506: # Extract the first word of "ranlib", so it can be a program name with args.
6507: set dummy ranlib; ac_word=$2
6508: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509: printf %s "checking for $ac_word... " >&6; }
6510: if test ${ac_cv_prog_ac_ct_RANLIB+y}
6511: then :
6512: printf %s "(cached) " >&6
6513: else case e in #(
6514: e) if test -n "$ac_ct_RANLIB"; then
6515: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516: else
6517: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518: for as_dir in $PATH
6519: do
6520: IFS=$as_save_IFS
6521: case $as_dir in #(((
6522: '') as_dir=./ ;;
6523: */) ;;
6524: *) as_dir=$as_dir/ ;;
6525: esac
6526: for ac_exec_ext in '' $ac_executable_extensions; do
6527: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6528: ac_cv_prog_ac_ct_RANLIB="ranlib"
6529: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6530: break 2
6531: fi
6532: done
6533: done
6534: IFS=$as_save_IFS
6535:
6536: fi ;;
6537: esac
6538: fi
6539: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6540: if test -n "$ac_ct_RANLIB"; then
6541: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6542: printf "%s\n" "$ac_ct_RANLIB" >&6; }
6543: else
6544: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545: printf "%s\n" "no" >&6; }
6546: fi
6547:
6548: if test "x$ac_ct_RANLIB" = x; then
6549: RANLIB=":"
6550: else
6551: case $cross_compiling:$ac_tool_warned in
6552: yes:)
6553: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555: ac_tool_warned=yes ;;
6556: esac
6557: RANLIB=$ac_ct_RANLIB
6558: fi
6559: else
6560: RANLIB="$ac_cv_prog_RANLIB"
6561: fi
6562:
6563: if test -n "$ac_tool_prefix"; then
1.5 moko 6564: for ac_prog in ar
6565: do
6566: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6567: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.10 moko 6568: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569: printf %s "checking for $ac_word... " >&6; }
6570: if test ${ac_cv_prog_AR+y}
6571: then :
6572: printf %s "(cached) " >&6
6573: else case e in #(
6574: e) if test -n "$AR"; then
1.5 moko 6575: ac_cv_prog_AR="$AR" # Let the user override the test.
1.4 paf 6576: else
1.5 moko 6577: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578: for as_dir in $PATH
6579: do
6580: IFS=$as_save_IFS
1.10 moko 6581: case $as_dir in #(((
6582: '') as_dir=./ ;;
6583: */) ;;
6584: *) as_dir=$as_dir/ ;;
6585: esac
1.5 moko 6586: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 6587: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 6588: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.10 moko 6589: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 6590: break 2
6591: fi
6592: done
6593: done
6594: IFS=$as_save_IFS
6595:
1.10 moko 6596: fi ;;
6597: esac
1.5 moko 6598: fi
6599: AR=$ac_cv_prog_AR
6600: if test -n "$AR"; then
1.10 moko 6601: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6602: printf "%s\n" "$AR" >&6; }
1.5 moko 6603: else
1.10 moko 6604: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605: printf "%s\n" "no" >&6; }
1.5 moko 6606: fi
6607:
6608:
6609: test -n "$AR" && break
6610: done
1.4 paf 6611: fi
1.5 moko 6612: if test -z "$AR"; then
6613: ac_ct_AR=$AR
6614: for ac_prog in ar
6615: do
6616: # Extract the first word of "$ac_prog", so it can be a program name with args.
6617: set dummy $ac_prog; ac_word=$2
1.10 moko 6618: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619: printf %s "checking for $ac_word... " >&6; }
6620: if test ${ac_cv_prog_ac_ct_AR+y}
6621: then :
6622: printf %s "(cached) " >&6
6623: else case e in #(
6624: e) if test -n "$ac_ct_AR"; then
1.5 moko 6625: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6626: else
6627: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628: for as_dir in $PATH
1.4 paf 6629: do
1.5 moko 6630: IFS=$as_save_IFS
1.10 moko 6631: case $as_dir in #(((
6632: '') as_dir=./ ;;
6633: */) ;;
6634: *) as_dir=$as_dir/ ;;
6635: esac
1.5 moko 6636: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 6637: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 6638: ac_cv_prog_ac_ct_AR="$ac_prog"
1.10 moko 6639: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 6640: break 2
1.4 paf 6641: fi
1.5 moko 6642: done
6643: done
6644: IFS=$as_save_IFS
6645:
1.10 moko 6646: fi ;;
6647: esac
1.5 moko 6648: fi
6649: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6650: if test -n "$ac_ct_AR"; then
1.10 moko 6651: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6652: printf "%s\n" "$ac_ct_AR" >&6; }
1.4 paf 6653: else
1.10 moko 6654: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655: printf "%s\n" "no" >&6; }
1.4 paf 6656: fi
6657:
6658:
1.5 moko 6659: test -n "$ac_ct_AR" && break
6660: done
6661:
6662: if test "x$ac_ct_AR" = x; then
6663: AR="false"
1.4 paf 6664: else
1.5 moko 6665: case $cross_compiling:$ac_tool_warned in
6666: yes:)
1.10 moko 6667: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 6669: ac_tool_warned=yes ;;
6670: esac
6671: AR=$ac_ct_AR
1.4 paf 6672: fi
6673: fi
6674:
1.5 moko 6675: : ${AR=ar}
6676:
6677:
6678:
6679:
6680:
1.4 paf 6681:
1.10 moko 6682: # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6683: # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6684: # higher priority because that's what people were doing historically (setting
6685: # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6686: # variable obsoleted/removed.
6687:
6688: test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6689: lt_ar_flags=$AR_FLAGS
6690:
6691:
6692:
6693:
6694:
1.4 paf 6695:
1.10 moko 6696: # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6697: # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
1.4 paf 6698:
6699:
6700:
6701:
1.10 moko 6702:
6703:
6704: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6705: printf %s "checking for archiver @FILE support... " >&6; }
6706: if test ${lt_cv_ar_at_file+y}
6707: then :
6708: printf %s "(cached) " >&6
6709: else case e in #(
6710: e) lt_cv_ar_at_file=no
1.5 moko 6711: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 6712: /* end confdefs.h. */
6713:
6714: int
1.10 moko 6715: main (void)
1.4 paf 6716: {
6717:
6718: ;
6719: return 0;
6720: }
6721: _ACEOF
1.10 moko 6722: if ac_fn_c_try_compile "$LINENO"
6723: then :
1.5 moko 6724: echo conftest.$ac_objext > conftest.lst
6725: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6726: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6727: (eval $lt_ar_try) 2>&5
6728: ac_status=$?
1.10 moko 6729: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 6730: test $ac_status = 0; }
1.10 moko 6731: if test 0 -eq "$ac_status"; then
1.5 moko 6732: # Ensure the archiver fails upon bogus file names.
6733: rm -f conftest.$ac_objext libconftest.a
6734: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6735: (eval $lt_ar_try) 2>&5
6736: ac_status=$?
1.10 moko 6737: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 6738: test $ac_status = 0; }
1.10 moko 6739: if test 0 -ne "$ac_status"; then
1.5 moko 6740: lt_cv_ar_at_file=@
6741: fi
6742: fi
6743: rm -f conftest.* libconftest.a
1.4 paf 6744:
6745: fi
1.10 moko 6746: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6747: ;;
6748: esac
1.5 moko 6749: fi
1.10 moko 6750: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6751: printf "%s\n" "$lt_cv_ar_at_file" >&6; }
1.4 paf 6752:
1.10 moko 6753: if test no = "$lt_cv_ar_at_file"; then
1.5 moko 6754: archiver_list_spec=
1.4 paf 6755: else
1.5 moko 6756: archiver_list_spec=$lt_cv_ar_at_file
1.4 paf 6757: fi
6758:
6759:
6760:
6761:
6762:
1.5 moko 6763:
6764:
6765: if test -n "$ac_tool_prefix"; then
6766: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6767: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.10 moko 6768: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769: printf %s "checking for $ac_word... " >&6; }
6770: if test ${ac_cv_prog_STRIP+y}
6771: then :
6772: printf %s "(cached) " >&6
6773: else case e in #(
6774: e) if test -n "$STRIP"; then
1.5 moko 6775: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.4 paf 6776: else
1.5 moko 6777: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778: for as_dir in $PATH
6779: do
6780: IFS=$as_save_IFS
1.10 moko 6781: case $as_dir in #(((
6782: '') as_dir=./ ;;
6783: */) ;;
6784: *) as_dir=$as_dir/ ;;
6785: esac
1.5 moko 6786: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 6787: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 6788: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.10 moko 6789: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 6790: break 2
6791: fi
6792: done
6793: done
6794: IFS=$as_save_IFS
1.4 paf 6795:
1.10 moko 6796: fi ;;
6797: esac
1.4 paf 6798: fi
1.5 moko 6799: STRIP=$ac_cv_prog_STRIP
6800: if test -n "$STRIP"; then
1.10 moko 6801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6802: printf "%s\n" "$STRIP" >&6; }
1.5 moko 6803: else
1.10 moko 6804: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805: printf "%s\n" "no" >&6; }
1.4 paf 6806: fi
6807:
6808:
6809: fi
1.5 moko 6810: if test -z "$ac_cv_prog_STRIP"; then
6811: ac_ct_STRIP=$STRIP
6812: # Extract the first word of "strip", so it can be a program name with args.
6813: set dummy strip; ac_word=$2
1.10 moko 6814: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815: printf %s "checking for $ac_word... " >&6; }
6816: if test ${ac_cv_prog_ac_ct_STRIP+y}
6817: then :
6818: printf %s "(cached) " >&6
6819: else case e in #(
6820: e) if test -n "$ac_ct_STRIP"; then
1.5 moko 6821: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6822: else
6823: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824: for as_dir in $PATH
6825: do
6826: IFS=$as_save_IFS
1.10 moko 6827: case $as_dir in #(((
6828: '') as_dir=./ ;;
6829: */) ;;
6830: *) as_dir=$as_dir/ ;;
6831: esac
1.5 moko 6832: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 6833: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 6834: ac_cv_prog_ac_ct_STRIP="strip"
1.10 moko 6835: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 6836: break 2
6837: fi
6838: done
6839: done
6840: IFS=$as_save_IFS
1.4 paf 6841:
1.10 moko 6842: fi ;;
6843: esac
1.5 moko 6844: fi
6845: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6846: if test -n "$ac_ct_STRIP"; then
1.10 moko 6847: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6848: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.5 moko 6849: else
1.10 moko 6850: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851: printf "%s\n" "no" >&6; }
1.5 moko 6852: fi
1.4 paf 6853:
1.5 moko 6854: if test "x$ac_ct_STRIP" = x; then
6855: STRIP=":"
6856: else
6857: case $cross_compiling:$ac_tool_warned in
6858: yes:)
1.10 moko 6859: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 6861: ac_tool_warned=yes ;;
6862: esac
6863: STRIP=$ac_ct_STRIP
6864: fi
6865: else
6866: STRIP="$ac_cv_prog_STRIP"
6867: fi
1.4 paf 6868:
1.5 moko 6869: test -z "$STRIP" && STRIP=:
1.4 paf 6870:
6871:
6872:
6873:
6874:
6875:
6876:
1.10 moko 6877: test -z "$RANLIB" && RANLIB=:
6878:
6879:
6880:
6881:
1.4 paf 6882:
6883:
1.10 moko 6884: # Determine commands to create old-style static archives.
6885: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6886: old_postinstall_cmds='chmod 644 $oldlib'
6887: old_postuninstall_cmds=
1.4 paf 6888:
1.10 moko 6889: if test -n "$RANLIB"; then
6890: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6891: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.4 paf 6892: fi
6893:
1.5 moko 6894: case $host_os in
6895: darwin*)
6896: lock_old_archive_extraction=yes ;;
6897: *)
6898: lock_old_archive_extraction=no ;;
6899: esac
6900:
1.4 paf 6901:
6902:
6903:
6904:
6905:
6906:
6907:
6908:
6909:
6910:
6911:
6912:
6913:
6914:
6915:
6916:
6917:
6918:
6919:
6920:
6921:
6922:
6923:
6924:
6925:
6926:
6927:
6928:
6929:
6930:
6931:
6932:
6933:
6934:
6935:
6936:
6937:
6938:
1.5 moko 6939: # If no C compiler was specified, use CC.
6940: LTCC=${LTCC-"$CC"}
1.4 paf 6941:
1.5 moko 6942: # If no C compiler flags were specified, use CFLAGS.
6943: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.4 paf 6944:
1.5 moko 6945: # Allow CC to be a program name with arguments.
6946: compiler=$CC
1.4 paf 6947:
6948:
1.5 moko 6949: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.10 moko 6950: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6951: printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6952: if test ${lt_cv_sys_global_symbol_pipe+y}
6953: then :
6954: printf %s "(cached) " >&6
6955: else case e in #(
6956: e)
1.5 moko 6957: # These are sane defaults that work on at least a few old systems.
6958: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.4 paf 6959:
1.5 moko 6960: # Character class describing NM global symbol codes.
6961: symcode='[BCDEGRST]'
1.4 paf 6962:
1.5 moko 6963: # Regexp to match symbols that can be accessed directly from C.
6964: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.4 paf 6965:
1.5 moko 6966: # Define system-specific variables.
6967: case $host_os in
6968: aix*)
6969: symcode='[BCDT]'
6970: ;;
1.10 moko 6971: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.5 moko 6972: symcode='[ABCDGISTW]'
6973: ;;
6974: hpux*)
1.10 moko 6975: if test ia64 = "$host_cpu"; then
1.5 moko 6976: symcode='[ABCDEGRST]'
6977: fi
6978: ;;
6979: irix* | nonstopux*)
6980: symcode='[BCDEGRST]'
6981: ;;
6982: osf*)
6983: symcode='[BCDEGQRST]'
6984: ;;
6985: solaris*)
1.10 moko 6986: symcode='[BCDRT]'
1.5 moko 6987: ;;
6988: sco3.2v5*)
6989: symcode='[DT]'
6990: ;;
6991: sysv4.2uw2*)
6992: symcode='[DT]'
6993: ;;
6994: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6995: symcode='[ABDT]'
6996: ;;
6997: sysv4)
6998: symcode='[DFNSTU]'
6999: ;;
7000: esac
1.4 paf 7001:
1.5 moko 7002: # If we're using GNU nm, then use its standard symbol codes.
7003: case `$NM -V 2>&1` in
7004: *GNU* | *'with BFD'*)
7005: symcode='[ABCDGIRSTW]' ;;
7006: esac
1.4 paf 7007:
1.10 moko 7008: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7009: # Gets list of data symbols to import.
7010: lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7011: # Adjust the below global symbol transforms to fixup imported variables.
7012: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7013: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7014: lt_c_name_lib_hook="\
7015: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7016: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7017: else
7018: # Disable hooks by default.
7019: lt_cv_sys_global_symbol_to_import=
7020: lt_cdecl_hook=
7021: lt_c_name_hook=
7022: lt_c_name_lib_hook=
7023: fi
7024:
1.5 moko 7025: # Transform an extracted symbol line into a proper C declaration.
7026: # Some systems (esp. on ia64) link data and code symbols differently,
7027: # so use this general approach.
1.10 moko 7028: lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7029: $lt_cdecl_hook\
7030: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7031: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
1.4 paf 7032:
1.5 moko 7033: # Transform an extracted symbol line into symbol name and symbol address
1.10 moko 7034: lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7035: $lt_c_name_hook\
7036: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7037: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7038:
7039: # Transform an extracted symbol line into symbol name with lib prefix and
7040: # symbol address.
7041: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7042: $lt_c_name_lib_hook\
7043: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7044: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7045: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
1.4 paf 7046:
1.5 moko 7047: # Handle CRLF in mingw tool chain
7048: opt_cr=
7049: case $build_os in
1.10 moko 7050: mingw* | windows*)
1.5 moko 7051: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7052: ;;
7053: esac
1.4 paf 7054:
1.5 moko 7055: # Try without a prefix underscore, then with it.
7056: for ac_symprfx in "" "_"; do
1.4 paf 7057:
1.5 moko 7058: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7059: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.4 paf 7060:
1.5 moko 7061: # Write the raw and C identifiers.
7062: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
1.10 moko 7063: # Fake it for dumpbin and say T for any non-static function,
7064: # D for any global variable and I for any imported variable.
7065: # Also find C++ and __fastcall symbols from MSVC++ or ICC,
1.5 moko 7066: # which start with @ or ?.
7067: lt_cv_sys_global_symbol_pipe="$AWK '"\
7068: " {last_section=section; section=\$ 3};"\
7069: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7070: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
1.10 moko 7071: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7072: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7073: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
1.5 moko 7074: " \$ 0!~/External *\|/{next};"\
7075: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7076: " {if(hide[section]) next};"\
1.10 moko 7077: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7078: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7079: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7080: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
1.5 moko 7081: " ' prfx=^$ac_symprfx"
7082: else
1.10 moko 7083: lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.5 moko 7084: fi
1.10 moko 7085: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
1.4 paf 7086:
1.5 moko 7087: # Check to see that the pipe works correctly.
7088: pipe_works=no
1.4 paf 7089:
1.5 moko 7090: rm -f conftest*
7091: cat > conftest.$ac_ext <<_LT_EOF
7092: #ifdef __cplusplus
7093: extern "C" {
7094: #endif
7095: char nm_test_var;
7096: void nm_test_func(void);
7097: void nm_test_func(void){}
7098: #ifdef __cplusplus
1.4 paf 7099: }
1.5 moko 7100: #endif
1.10 moko 7101: int main(void){nm_test_var='a';nm_test_func();return(0);}
1.5 moko 7102: _LT_EOF
7103:
7104: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.4 paf 7105: (eval $ac_compile) 2>&5
7106: ac_status=$?
1.10 moko 7107: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 7108: test $ac_status = 0; }; then
7109: # Now try to grab the symbols.
7110: nlist=conftest.nm
1.10 moko 7111: $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7112: if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
1.5 moko 7113: # Try sorting and uniquifying the output.
7114: if sort "$nlist" | uniq > "$nlist"T; then
7115: mv -f "$nlist"T "$nlist"
7116: else
7117: rm -f "$nlist"T
7118: fi
7119:
7120: # Make sure that we snagged all the symbols we need.
7121: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7122: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7123: cat <<_LT_EOF > conftest.$ac_ext
7124: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
1.10 moko 7125: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7126: /* DATA imports from DLLs on WIN32 can't be const, because runtime
1.5 moko 7127: relocations are performed -- see ld's documentation on pseudo-relocs. */
7128: # define LT_DLSYM_CONST
1.10 moko 7129: #elif defined __osf__
1.5 moko 7130: /* This system does not cope well with relocations in const data. */
7131: # define LT_DLSYM_CONST
7132: #else
7133: # define LT_DLSYM_CONST const
7134: #endif
1.4 paf 7135:
1.5 moko 7136: #ifdef __cplusplus
7137: extern "C" {
7138: #endif
1.4 paf 7139:
1.5 moko 7140: _LT_EOF
7141: # Now generate the symbol file.
7142: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.4 paf 7143:
1.5 moko 7144: cat <<_LT_EOF >> conftest.$ac_ext
1.4 paf 7145:
1.5 moko 7146: /* The mapping between symbol names and symbols. */
7147: LT_DLSYM_CONST struct {
7148: const char *name;
7149: void *address;
7150: }
7151: lt__PROGRAM__LTX_preloaded_symbols[] =
7152: {
7153: { "@PROGRAM@", (void *) 0 },
7154: _LT_EOF
1.10 moko 7155: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
1.5 moko 7156: cat <<\_LT_EOF >> conftest.$ac_ext
7157: {0, (void *) 0}
7158: };
1.4 paf 7159:
1.5 moko 7160: /* This works around a problem in FreeBSD linker */
7161: #ifdef FREEBSD_WORKAROUND
7162: static const void *lt_preloaded_setup() {
7163: return lt__PROGRAM__LTX_preloaded_symbols;
7164: }
7165: #endif
1.4 paf 7166:
1.5 moko 7167: #ifdef __cplusplus
7168: }
7169: #endif
7170: _LT_EOF
7171: # Now try linking the two files.
7172: mv conftest.$ac_objext conftstm.$ac_objext
7173: lt_globsym_save_LIBS=$LIBS
7174: lt_globsym_save_CFLAGS=$CFLAGS
1.10 moko 7175: LIBS=conftstm.$ac_objext
1.5 moko 7176: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7177: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7178: (eval $ac_link) 2>&5
7179: ac_status=$?
1.10 moko 7180: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181: test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.5 moko 7182: pipe_works=yes
7183: fi
7184: LIBS=$lt_globsym_save_LIBS
7185: CFLAGS=$lt_globsym_save_CFLAGS
7186: else
7187: echo "cannot find nm_test_func in $nlist" >&5
7188: fi
7189: else
7190: echo "cannot find nm_test_var in $nlist" >&5
7191: fi
7192: else
7193: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7194: fi
1.4 paf 7195: else
1.5 moko 7196: echo "$progname: failed program was:" >&5
7197: cat conftest.$ac_ext >&5
1.4 paf 7198: fi
1.5 moko 7199: rm -rf conftest* conftst*
1.4 paf 7200:
1.5 moko 7201: # Do not use the global_symbol_pipe unless it works.
1.10 moko 7202: if test yes = "$pipe_works"; then
1.5 moko 7203: break
1.4 paf 7204: else
1.5 moko 7205: lt_cv_sys_global_symbol_pipe=
1.4 paf 7206: fi
1.5 moko 7207: done
1.10 moko 7208: ;;
7209: esac
1.4 paf 7210: fi
7211:
1.5 moko 7212: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7213: lt_cv_sys_global_symbol_to_cdecl=
7214: fi
7215: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.10 moko 7216: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7217: printf "%s\n" "failed" >&6; }
1.4 paf 7218: else
1.10 moko 7219: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7220: printf "%s\n" "ok" >&6; }
1.5 moko 7221: fi
7222:
7223: # Response file support.
7224: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7225: nm_file_list_spec='@'
7226: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7227: nm_file_list_spec='@'
7228: fi
7229:
7230:
1.4 paf 7231:
7232:
7233:
7234:
7235:
7236:
7237:
7238:
7239:
7240:
7241:
7242:
7243:
7244:
7245:
7246:
7247:
7248:
7249:
7250:
7251:
7252:
7253:
7254:
7255:
1.10 moko 7256:
7257:
7258:
7259:
7260:
7261:
7262:
7263:
7264:
7265:
7266: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7267: printf %s "checking for sysroot... " >&6; }
1.4 paf 7268:
1.5 moko 7269: # Check whether --with-sysroot was given.
1.10 moko 7270: if test ${with_sysroot+y}
7271: then :
1.5 moko 7272: withval=$with_sysroot;
1.10 moko 7273: else case e in #(
7274: e) with_sysroot=no ;;
7275: esac
1.5 moko 7276: fi
1.4 paf 7277:
7278:
1.5 moko 7279: lt_sysroot=
1.10 moko 7280: case $with_sysroot in #(
1.5 moko 7281: yes)
1.10 moko 7282: if test yes = "$GCC"; then
7283: # Trim trailing / since we'll always append absolute paths and we want
7284: # to avoid //, if only for less confusing output for the user.
7285: lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
1.5 moko 7286: fi
7287: ;; #(
7288: /*)
1.10 moko 7289: lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1.5 moko 7290: ;; #(
7291: no|'')
7292: ;; #(
7293: *)
1.10 moko 7294: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7295: printf "%s\n" "$with_sysroot" >&6; }
1.5 moko 7296: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7297: ;;
7298: esac
1.4 paf 7299:
1.10 moko 7300: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7301: printf "%s\n" "${lt_sysroot:-no}" >&6; }
7302:
7303:
7304:
7305:
7306:
7307: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7308: printf %s "checking for a working dd... " >&6; }
7309: if test ${ac_cv_path_lt_DD+y}
7310: then :
7311: printf %s "(cached) " >&6
7312: else case e in #(
7313: e) printf 0123456789abcdef0123456789abcdef >conftest.i
7314: cat conftest.i conftest.i >conftest2.i
7315: : ${lt_DD:=$DD}
7316: if test -z "$lt_DD"; then
7317: ac_path_lt_DD_found=false
7318: # Loop through the user's path and test for each of PROGNAME-LIST
7319: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320: for as_dir in $PATH
7321: do
7322: IFS=$as_save_IFS
7323: case $as_dir in #(((
7324: '') as_dir=./ ;;
7325: */) ;;
7326: *) as_dir=$as_dir/ ;;
7327: esac
7328: for ac_prog in dd
7329: do
7330: for ac_exec_ext in '' $ac_executable_extensions; do
7331: ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7332: as_fn_executable_p "$ac_path_lt_DD" || continue
7333: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7334: cmp -s conftest.i conftest.out \
7335: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7336: fi
7337: $ac_path_lt_DD_found && break 3
7338: done
7339: done
7340: done
7341: IFS=$as_save_IFS
7342: if test -z "$ac_cv_path_lt_DD"; then
7343: :
7344: fi
7345: else
7346: ac_cv_path_lt_DD=$lt_DD
7347: fi
7348:
7349: rm -f conftest.i conftest2.i conftest.out ;;
7350: esac
7351: fi
7352: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7353: printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7354:
7355:
7356: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7357: printf %s "checking how to truncate binary pipes... " >&6; }
7358: if test ${lt_cv_truncate_bin+y}
7359: then :
7360: printf %s "(cached) " >&6
7361: else case e in #(
7362: e) printf 0123456789abcdef0123456789abcdef >conftest.i
7363: cat conftest.i conftest.i >conftest2.i
7364: lt_cv_truncate_bin=
7365: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7366: cmp -s conftest.i conftest.out \
7367: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7368: fi
7369: rm -f conftest.i conftest2.i conftest.out
7370: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7371: esac
7372: fi
7373: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7374: printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7375:
7376:
7377:
1.4 paf 7378:
7379:
7380:
7381:
1.10 moko 7382: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7383: func_cc_basename ()
7384: {
7385: for cc_temp in $*""; do
7386: case $cc_temp in
7387: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7388: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7389: \-*) ;;
7390: *) break;;
7391: esac
7392: done
7393: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7394: }
1.4 paf 7395:
1.5 moko 7396: # Check whether --enable-libtool-lock was given.
1.10 moko 7397: if test ${enable_libtool_lock+y}
7398: then :
1.5 moko 7399: enableval=$enable_libtool_lock;
7400: fi
1.4 paf 7401:
1.10 moko 7402: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1.4 paf 7403:
1.5 moko 7404: # Some flags need to be propagated to the compiler or linker for good
7405: # libtool support.
7406: case $host in
7407: ia64-*-hpux*)
1.10 moko 7408: # Find out what ABI is being produced by ac_compile, and set mode
7409: # options accordingly.
1.5 moko 7410: echo 'int i;' > conftest.$ac_ext
7411: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7412: (eval $ac_compile) 2>&5
7413: ac_status=$?
1.10 moko 7414: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 7415: test $ac_status = 0; }; then
1.10 moko 7416: case `$FILECMD conftest.$ac_objext` in
1.5 moko 7417: *ELF-32*)
1.10 moko 7418: HPUX_IA64_MODE=32
1.5 moko 7419: ;;
7420: *ELF-64*)
1.10 moko 7421: HPUX_IA64_MODE=64
1.5 moko 7422: ;;
1.4 paf 7423: esac
7424: fi
1.5 moko 7425: rm -rf conftest*
7426: ;;
7427: *-*-irix6*)
1.10 moko 7428: # Find out what ABI is being produced by ac_compile, and set linker
7429: # options accordingly.
1.5 moko 7430: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7431: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7432: (eval $ac_compile) 2>&5
7433: ac_status=$?
1.10 moko 7434: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 7435: test $ac_status = 0; }; then
1.10 moko 7436: if test yes = "$lt_cv_prog_gnu_ld"; then
7437: case `$FILECMD conftest.$ac_objext` in
1.5 moko 7438: *32-bit*)
7439: LD="${LD-ld} -melf32bsmip"
7440: ;;
7441: *N32*)
7442: LD="${LD-ld} -melf32bmipn32"
7443: ;;
7444: *64-bit*)
7445: LD="${LD-ld} -melf64bmip"
7446: ;;
7447: esac
1.4 paf 7448: else
1.10 moko 7449: case `$FILECMD conftest.$ac_objext` in
1.5 moko 7450: *32-bit*)
7451: LD="${LD-ld} -32"
7452: ;;
7453: *N32*)
7454: LD="${LD-ld} -n32"
7455: ;;
7456: *64-bit*)
7457: LD="${LD-ld} -64"
1.4 paf 7458: ;;
7459: esac
1.5 moko 7460: fi
7461: fi
7462: rm -rf conftest*
7463: ;;
1.4 paf 7464:
1.10 moko 7465: mips64*-*linux*)
7466: # Find out what ABI is being produced by ac_compile, and set linker
7467: # options accordingly.
7468: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7469: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7470: (eval $ac_compile) 2>&5
7471: ac_status=$?
7472: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473: test $ac_status = 0; }; then
7474: emul=elf
7475: case `$FILECMD conftest.$ac_objext` in
7476: *32-bit*)
7477: emul="${emul}32"
7478: ;;
7479: *64-bit*)
7480: emul="${emul}64"
7481: ;;
7482: esac
7483: case `$FILECMD conftest.$ac_objext` in
7484: *MSB*)
7485: emul="${emul}btsmip"
7486: ;;
7487: *LSB*)
7488: emul="${emul}ltsmip"
7489: ;;
7490: esac
7491: case `$FILECMD conftest.$ac_objext` in
7492: *N32*)
7493: emul="${emul}n32"
7494: ;;
7495: esac
7496: LD="${LD-ld} -m $emul"
7497: fi
7498: rm -rf conftest*
7499: ;;
7500:
7501: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7502: s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7503: # Find out what ABI is being produced by ac_compile, and set linker
7504: # options accordingly. Note that the listed cases only cover the
7505: # situations where additional linker options are needed (such as when
7506: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7507: # vice versa); the common cases where no linker options are needed do
7508: # not appear in the list.
1.5 moko 7509: echo 'int i;' > conftest.$ac_ext
7510: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511: (eval $ac_compile) 2>&5
7512: ac_status=$?
1.10 moko 7513: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 7514: test $ac_status = 0; }; then
1.10 moko 7515: case `$FILECMD conftest.o` in
1.5 moko 7516: *32-bit*)
7517: case $host in
7518: x86_64-*kfreebsd*-gnu)
7519: LD="${LD-ld} -m elf_i386_fbsd"
7520: ;;
1.10 moko 7521: x86_64-*linux*|x86_64-gnu*)
7522: case `$FILECMD conftest.o` in
7523: *x86-64*)
7524: LD="${LD-ld} -m elf32_x86_64"
7525: ;;
7526: *)
7527: LD="${LD-ld} -m elf_i386"
7528: ;;
7529: esac
7530: ;;
7531: powerpc64le-*linux*)
7532: LD="${LD-ld} -m elf32lppclinux"
1.5 moko 7533: ;;
1.10 moko 7534: powerpc64-*linux*)
1.5 moko 7535: LD="${LD-ld} -m elf32ppclinux"
7536: ;;
7537: s390x-*linux*)
7538: LD="${LD-ld} -m elf_s390"
7539: ;;
7540: sparc64-*linux*)
7541: LD="${LD-ld} -m elf32_sparc"
7542: ;;
7543: esac
7544: ;;
7545: *64-bit*)
7546: case $host in
7547: x86_64-*kfreebsd*-gnu)
7548: LD="${LD-ld} -m elf_x86_64_fbsd"
7549: ;;
1.10 moko 7550: x86_64-*linux*|x86_64-gnu*)
1.5 moko 7551: LD="${LD-ld} -m elf_x86_64"
7552: ;;
1.10 moko 7553: powerpcle-*linux*)
7554: LD="${LD-ld} -m elf64lppc"
7555: ;;
7556: powerpc-*linux*)
1.5 moko 7557: LD="${LD-ld} -m elf64ppc"
7558: ;;
7559: s390*-*linux*|s390*-*tpf*)
7560: LD="${LD-ld} -m elf64_s390"
7561: ;;
7562: sparc*-*linux*)
7563: LD="${LD-ld} -m elf64_sparc"
7564: ;;
7565: esac
7566: ;;
7567: esac
7568: fi
7569: rm -rf conftest*
7570: ;;
1.4 paf 7571:
1.5 moko 7572: *-*-sco3.2v5*)
7573: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1.10 moko 7574: SAVE_CFLAGS=$CFLAGS
1.5 moko 7575: CFLAGS="$CFLAGS -belf"
1.10 moko 7576: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7577: printf %s "checking whether the C compiler needs -belf... " >&6; }
7578: if test ${lt_cv_cc_needs_belf+y}
7579: then :
7580: printf %s "(cached) " >&6
7581: else case e in #(
7582: e) ac_ext=c
1.5 moko 7583: ac_cpp='$CPP $CPPFLAGS'
7584: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587:
7588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589: /* end confdefs.h. */
7590:
7591: int
1.10 moko 7592: main (void)
1.5 moko 7593: {
7594:
7595: ;
7596: return 0;
7597: }
7598: _ACEOF
1.10 moko 7599: if ac_fn_c_try_link "$LINENO"
7600: then :
1.5 moko 7601: lt_cv_cc_needs_belf=yes
1.10 moko 7602: else case e in #(
7603: e) lt_cv_cc_needs_belf=no ;;
7604: esac
1.5 moko 7605: fi
1.10 moko 7606: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 7607: conftest$ac_exeext conftest.$ac_ext
7608: ac_ext=c
7609: ac_cpp='$CPP $CPPFLAGS'
7610: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 moko 7613: ;;
7614: esac
1.5 moko 7615: fi
1.10 moko 7616: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7617: printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7618: if test yes != "$lt_cv_cc_needs_belf"; then
1.5 moko 7619: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1.10 moko 7620: CFLAGS=$SAVE_CFLAGS
1.5 moko 7621: fi
7622: ;;
7623: *-*solaris*)
1.10 moko 7624: # Find out what ABI is being produced by ac_compile, and set linker
7625: # options accordingly.
1.5 moko 7626: echo 'int i;' > conftest.$ac_ext
7627: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7628: (eval $ac_compile) 2>&5
7629: ac_status=$?
1.10 moko 7630: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 7631: test $ac_status = 0; }; then
1.10 moko 7632: case `$FILECMD conftest.o` in
1.5 moko 7633: *64-bit*)
7634: case $lt_cv_prog_gnu_ld in
7635: yes*)
7636: case $host in
1.10 moko 7637: i?86-*-solaris*|x86_64-*-solaris*)
1.5 moko 7638: LD="${LD-ld} -m elf_x86_64"
7639: ;;
7640: sparc*-*-solaris*)
7641: LD="${LD-ld} -m elf64_sparc"
7642: ;;
7643: esac
7644: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7645: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1.10 moko 7646: LD=${LD-ld}_sol2
1.5 moko 7647: fi
7648: ;;
7649: *)
7650: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7651: LD="${LD-ld} -64"
7652: fi
7653: ;;
7654: esac
7655: ;;
7656: esac
7657: fi
7658: rm -rf conftest*
7659: ;;
7660: esac
7661:
1.10 moko 7662: need_locks=$enable_libtool_lock
1.5 moko 7663:
7664: if test -n "$ac_tool_prefix"; then
7665: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7666: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.10 moko 7667: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668: printf %s "checking for $ac_word... " >&6; }
7669: if test ${ac_cv_prog_MANIFEST_TOOL+y}
7670: then :
7671: printf %s "(cached) " >&6
7672: else case e in #(
7673: e) if test -n "$MANIFEST_TOOL"; then
1.5 moko 7674: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7675: else
7676: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677: for as_dir in $PATH
7678: do
7679: IFS=$as_save_IFS
1.10 moko 7680: case $as_dir in #(((
7681: '') as_dir=./ ;;
7682: */) ;;
7683: *) as_dir=$as_dir/ ;;
7684: esac
1.5 moko 7685: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 7686: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 7687: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.10 moko 7688: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 7689: break 2
7690: fi
7691: done
7692: done
7693: IFS=$as_save_IFS
7694:
1.10 moko 7695: fi ;;
7696: esac
1.5 moko 7697: fi
7698: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7699: if test -n "$MANIFEST_TOOL"; then
1.10 moko 7700: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7701: printf "%s\n" "$MANIFEST_TOOL" >&6; }
1.5 moko 7702: else
1.10 moko 7703: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704: printf "%s\n" "no" >&6; }
1.5 moko 7705: fi
7706:
7707:
7708: fi
7709: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7710: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7711: # Extract the first word of "mt", so it can be a program name with args.
7712: set dummy mt; ac_word=$2
1.10 moko 7713: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714: printf %s "checking for $ac_word... " >&6; }
7715: if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7716: then :
7717: printf %s "(cached) " >&6
7718: else case e in #(
7719: e) if test -n "$ac_ct_MANIFEST_TOOL"; then
1.5 moko 7720: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7721: else
7722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723: for as_dir in $PATH
7724: do
7725: IFS=$as_save_IFS
1.10 moko 7726: case $as_dir in #(((
7727: '') as_dir=./ ;;
7728: */) ;;
7729: *) as_dir=$as_dir/ ;;
7730: esac
1.5 moko 7731: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 7732: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 7733: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.10 moko 7734: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 7735: break 2
7736: fi
7737: done
7738: done
7739: IFS=$as_save_IFS
7740:
1.10 moko 7741: fi ;;
7742: esac
1.5 moko 7743: fi
7744: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7745: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.10 moko 7746: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7747: printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
1.5 moko 7748: else
1.10 moko 7749: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750: printf "%s\n" "no" >&6; }
1.5 moko 7751: fi
7752:
7753: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7754: MANIFEST_TOOL=":"
7755: else
7756: case $cross_compiling:$ac_tool_warned in
7757: yes:)
1.10 moko 7758: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 7760: ac_tool_warned=yes ;;
7761: esac
7762: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7763: fi
7764: else
7765: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7766: fi
7767:
7768: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.10 moko 7769: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7770: printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7771: if test ${lt_cv_path_manifest_tool+y}
7772: then :
7773: printf %s "(cached) " >&6
7774: else case e in #(
7775: e) lt_cv_path_manifest_tool=no
1.5 moko 7776: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7777: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7778: cat conftest.err >&5
7779: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
1.10 moko 7780: lt_cv_path_manifest_tool=yes
1.5 moko 7781: fi
1.10 moko 7782: rm -f conftest* ;;
7783: esac
1.5 moko 7784: fi
1.10 moko 7785: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7786: printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7787: if test yes != "$lt_cv_path_manifest_tool"; then
1.5 moko 7788: MANIFEST_TOOL=:
7789: fi
7790:
7791:
7792:
7793:
7794:
7795:
7796: case $host_os in
7797: rhapsody* | darwin*)
7798: if test -n "$ac_tool_prefix"; then
7799: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7800: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.10 moko 7801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802: printf %s "checking for $ac_word... " >&6; }
7803: if test ${ac_cv_prog_DSYMUTIL+y}
7804: then :
7805: printf %s "(cached) " >&6
7806: else case e in #(
7807: e) if test -n "$DSYMUTIL"; then
1.5 moko 7808: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7809: else
7810: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811: for as_dir in $PATH
7812: do
7813: IFS=$as_save_IFS
1.10 moko 7814: case $as_dir in #(((
7815: '') as_dir=./ ;;
7816: */) ;;
7817: *) as_dir=$as_dir/ ;;
7818: esac
1.5 moko 7819: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 7820: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 7821: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.10 moko 7822: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 7823: break 2
7824: fi
7825: done
7826: done
7827: IFS=$as_save_IFS
7828:
1.10 moko 7829: fi ;;
7830: esac
1.5 moko 7831: fi
7832: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7833: if test -n "$DSYMUTIL"; then
1.10 moko 7834: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7835: printf "%s\n" "$DSYMUTIL" >&6; }
1.5 moko 7836: else
1.10 moko 7837: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838: printf "%s\n" "no" >&6; }
1.5 moko 7839: fi
7840:
7841:
7842: fi
7843: if test -z "$ac_cv_prog_DSYMUTIL"; then
7844: ac_ct_DSYMUTIL=$DSYMUTIL
7845: # Extract the first word of "dsymutil", so it can be a program name with args.
7846: set dummy dsymutil; ac_word=$2
1.10 moko 7847: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848: printf %s "checking for $ac_word... " >&6; }
7849: if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7850: then :
7851: printf %s "(cached) " >&6
7852: else case e in #(
7853: e) if test -n "$ac_ct_DSYMUTIL"; then
1.5 moko 7854: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7855: else
7856: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857: for as_dir in $PATH
7858: do
7859: IFS=$as_save_IFS
1.10 moko 7860: case $as_dir in #(((
7861: '') as_dir=./ ;;
7862: */) ;;
7863: *) as_dir=$as_dir/ ;;
7864: esac
1.5 moko 7865: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 7866: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 7867: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.10 moko 7868: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 7869: break 2
7870: fi
7871: done
7872: done
7873: IFS=$as_save_IFS
7874:
1.10 moko 7875: fi ;;
7876: esac
1.5 moko 7877: fi
7878: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7879: if test -n "$ac_ct_DSYMUTIL"; then
1.10 moko 7880: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7881: printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
1.5 moko 7882: else
1.10 moko 7883: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884: printf "%s\n" "no" >&6; }
1.5 moko 7885: fi
7886:
7887: if test "x$ac_ct_DSYMUTIL" = x; then
7888: DSYMUTIL=":"
7889: else
7890: case $cross_compiling:$ac_tool_warned in
7891: yes:)
1.10 moko 7892: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7893: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 7894: ac_tool_warned=yes ;;
7895: esac
7896: DSYMUTIL=$ac_ct_DSYMUTIL
7897: fi
7898: else
7899: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7900: fi
7901:
7902: if test -n "$ac_tool_prefix"; then
7903: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7904: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.10 moko 7905: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906: printf %s "checking for $ac_word... " >&6; }
7907: if test ${ac_cv_prog_NMEDIT+y}
7908: then :
7909: printf %s "(cached) " >&6
7910: else case e in #(
7911: e) if test -n "$NMEDIT"; then
1.5 moko 7912: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7913: else
7914: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915: for as_dir in $PATH
7916: do
7917: IFS=$as_save_IFS
1.10 moko 7918: case $as_dir in #(((
7919: '') as_dir=./ ;;
7920: */) ;;
7921: *) as_dir=$as_dir/ ;;
7922: esac
1.5 moko 7923: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 7924: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 7925: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.10 moko 7926: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 7927: break 2
7928: fi
7929: done
7930: done
7931: IFS=$as_save_IFS
7932:
1.10 moko 7933: fi ;;
7934: esac
1.5 moko 7935: fi
7936: NMEDIT=$ac_cv_prog_NMEDIT
7937: if test -n "$NMEDIT"; then
1.10 moko 7938: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7939: printf "%s\n" "$NMEDIT" >&6; }
1.5 moko 7940: else
1.10 moko 7941: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942: printf "%s\n" "no" >&6; }
1.5 moko 7943: fi
7944:
7945:
7946: fi
7947: if test -z "$ac_cv_prog_NMEDIT"; then
7948: ac_ct_NMEDIT=$NMEDIT
7949: # Extract the first word of "nmedit", so it can be a program name with args.
7950: set dummy nmedit; ac_word=$2
1.10 moko 7951: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952: printf %s "checking for $ac_word... " >&6; }
7953: if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7954: then :
7955: printf %s "(cached) " >&6
7956: else case e in #(
7957: e) if test -n "$ac_ct_NMEDIT"; then
1.5 moko 7958: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7959: else
7960: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961: for as_dir in $PATH
7962: do
7963: IFS=$as_save_IFS
1.10 moko 7964: case $as_dir in #(((
7965: '') as_dir=./ ;;
7966: */) ;;
7967: *) as_dir=$as_dir/ ;;
7968: esac
1.5 moko 7969: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 7970: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 7971: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.10 moko 7972: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 7973: break 2
7974: fi
7975: done
7976: done
7977: IFS=$as_save_IFS
7978:
1.10 moko 7979: fi ;;
7980: esac
1.5 moko 7981: fi
7982: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7983: if test -n "$ac_ct_NMEDIT"; then
1.10 moko 7984: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7985: printf "%s\n" "$ac_ct_NMEDIT" >&6; }
1.5 moko 7986: else
1.10 moko 7987: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988: printf "%s\n" "no" >&6; }
1.5 moko 7989: fi
7990:
7991: if test "x$ac_ct_NMEDIT" = x; then
7992: NMEDIT=":"
7993: else
7994: case $cross_compiling:$ac_tool_warned in
7995: yes:)
1.10 moko 7996: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7997: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 7998: ac_tool_warned=yes ;;
7999: esac
8000: NMEDIT=$ac_ct_NMEDIT
8001: fi
8002: else
8003: NMEDIT="$ac_cv_prog_NMEDIT"
8004: fi
8005:
8006: if test -n "$ac_tool_prefix"; then
8007: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8008: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.10 moko 8009: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010: printf %s "checking for $ac_word... " >&6; }
8011: if test ${ac_cv_prog_LIPO+y}
8012: then :
8013: printf %s "(cached) " >&6
8014: else case e in #(
8015: e) if test -n "$LIPO"; then
1.5 moko 8016: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8017: else
8018: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019: for as_dir in $PATH
8020: do
8021: IFS=$as_save_IFS
1.10 moko 8022: case $as_dir in #(((
8023: '') as_dir=./ ;;
8024: */) ;;
8025: *) as_dir=$as_dir/ ;;
8026: esac
1.5 moko 8027: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8028: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8029: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.10 moko 8030: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8031: break 2
8032: fi
8033: done
8034: done
8035: IFS=$as_save_IFS
8036:
1.10 moko 8037: fi ;;
8038: esac
1.5 moko 8039: fi
8040: LIPO=$ac_cv_prog_LIPO
8041: if test -n "$LIPO"; then
1.10 moko 8042: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8043: printf "%s\n" "$LIPO" >&6; }
1.5 moko 8044: else
1.10 moko 8045: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046: printf "%s\n" "no" >&6; }
1.5 moko 8047: fi
8048:
8049:
8050: fi
8051: if test -z "$ac_cv_prog_LIPO"; then
8052: ac_ct_LIPO=$LIPO
8053: # Extract the first word of "lipo", so it can be a program name with args.
8054: set dummy lipo; ac_word=$2
1.10 moko 8055: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056: printf %s "checking for $ac_word... " >&6; }
8057: if test ${ac_cv_prog_ac_ct_LIPO+y}
8058: then :
8059: printf %s "(cached) " >&6
8060: else case e in #(
8061: e) if test -n "$ac_ct_LIPO"; then
1.5 moko 8062: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8063: else
8064: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065: for as_dir in $PATH
8066: do
8067: IFS=$as_save_IFS
1.10 moko 8068: case $as_dir in #(((
8069: '') as_dir=./ ;;
8070: */) ;;
8071: *) as_dir=$as_dir/ ;;
8072: esac
1.5 moko 8073: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8074: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8075: ac_cv_prog_ac_ct_LIPO="lipo"
1.10 moko 8076: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8077: break 2
8078: fi
8079: done
8080: done
8081: IFS=$as_save_IFS
8082:
1.10 moko 8083: fi ;;
8084: esac
1.5 moko 8085: fi
8086: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8087: if test -n "$ac_ct_LIPO"; then
1.10 moko 8088: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8089: printf "%s\n" "$ac_ct_LIPO" >&6; }
1.5 moko 8090: else
1.10 moko 8091: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092: printf "%s\n" "no" >&6; }
1.5 moko 8093: fi
8094:
8095: if test "x$ac_ct_LIPO" = x; then
8096: LIPO=":"
8097: else
8098: case $cross_compiling:$ac_tool_warned in
8099: yes:)
1.10 moko 8100: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 8102: ac_tool_warned=yes ;;
8103: esac
8104: LIPO=$ac_ct_LIPO
8105: fi
8106: else
8107: LIPO="$ac_cv_prog_LIPO"
8108: fi
8109:
8110: if test -n "$ac_tool_prefix"; then
8111: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8112: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.10 moko 8113: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114: printf %s "checking for $ac_word... " >&6; }
8115: if test ${ac_cv_prog_OTOOL+y}
8116: then :
8117: printf %s "(cached) " >&6
8118: else case e in #(
8119: e) if test -n "$OTOOL"; then
1.5 moko 8120: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8121: else
8122: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123: for as_dir in $PATH
8124: do
8125: IFS=$as_save_IFS
1.10 moko 8126: case $as_dir in #(((
8127: '') as_dir=./ ;;
8128: */) ;;
8129: *) as_dir=$as_dir/ ;;
8130: esac
1.5 moko 8131: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8132: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8133: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.10 moko 8134: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8135: break 2
8136: fi
8137: done
8138: done
8139: IFS=$as_save_IFS
8140:
1.10 moko 8141: fi ;;
8142: esac
1.5 moko 8143: fi
8144: OTOOL=$ac_cv_prog_OTOOL
8145: if test -n "$OTOOL"; then
1.10 moko 8146: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8147: printf "%s\n" "$OTOOL" >&6; }
1.5 moko 8148: else
1.10 moko 8149: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150: printf "%s\n" "no" >&6; }
1.5 moko 8151: fi
8152:
8153:
8154: fi
8155: if test -z "$ac_cv_prog_OTOOL"; then
8156: ac_ct_OTOOL=$OTOOL
8157: # Extract the first word of "otool", so it can be a program name with args.
8158: set dummy otool; ac_word=$2
1.10 moko 8159: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160: printf %s "checking for $ac_word... " >&6; }
8161: if test ${ac_cv_prog_ac_ct_OTOOL+y}
8162: then :
8163: printf %s "(cached) " >&6
8164: else case e in #(
8165: e) if test -n "$ac_ct_OTOOL"; then
1.5 moko 8166: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8167: else
8168: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169: for as_dir in $PATH
8170: do
8171: IFS=$as_save_IFS
1.10 moko 8172: case $as_dir in #(((
8173: '') as_dir=./ ;;
8174: */) ;;
8175: *) as_dir=$as_dir/ ;;
8176: esac
1.5 moko 8177: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8178: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8179: ac_cv_prog_ac_ct_OTOOL="otool"
1.10 moko 8180: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8181: break 2
8182: fi
8183: done
8184: done
8185: IFS=$as_save_IFS
8186:
1.10 moko 8187: fi ;;
8188: esac
1.5 moko 8189: fi
8190: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8191: if test -n "$ac_ct_OTOOL"; then
1.10 moko 8192: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8193: printf "%s\n" "$ac_ct_OTOOL" >&6; }
1.5 moko 8194: else
1.10 moko 8195: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196: printf "%s\n" "no" >&6; }
1.5 moko 8197: fi
8198:
8199: if test "x$ac_ct_OTOOL" = x; then
8200: OTOOL=":"
8201: else
8202: case $cross_compiling:$ac_tool_warned in
8203: yes:)
1.10 moko 8204: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 8206: ac_tool_warned=yes ;;
8207: esac
8208: OTOOL=$ac_ct_OTOOL
8209: fi
8210: else
8211: OTOOL="$ac_cv_prog_OTOOL"
8212: fi
8213:
8214: if test -n "$ac_tool_prefix"; then
8215: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8216: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.10 moko 8217: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218: printf %s "checking for $ac_word... " >&6; }
8219: if test ${ac_cv_prog_OTOOL64+y}
8220: then :
8221: printf %s "(cached) " >&6
8222: else case e in #(
8223: e) if test -n "$OTOOL64"; then
1.5 moko 8224: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8225: else
8226: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227: for as_dir in $PATH
8228: do
8229: IFS=$as_save_IFS
1.10 moko 8230: case $as_dir in #(((
8231: '') as_dir=./ ;;
8232: */) ;;
8233: *) as_dir=$as_dir/ ;;
8234: esac
1.5 moko 8235: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8236: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8237: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.10 moko 8238: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8239: break 2
8240: fi
8241: done
8242: done
8243: IFS=$as_save_IFS
8244:
1.10 moko 8245: fi ;;
8246: esac
1.5 moko 8247: fi
8248: OTOOL64=$ac_cv_prog_OTOOL64
8249: if test -n "$OTOOL64"; then
1.10 moko 8250: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8251: printf "%s\n" "$OTOOL64" >&6; }
1.5 moko 8252: else
1.10 moko 8253: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254: printf "%s\n" "no" >&6; }
1.5 moko 8255: fi
8256:
8257:
8258: fi
8259: if test -z "$ac_cv_prog_OTOOL64"; then
8260: ac_ct_OTOOL64=$OTOOL64
8261: # Extract the first word of "otool64", so it can be a program name with args.
8262: set dummy otool64; ac_word=$2
1.10 moko 8263: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264: printf %s "checking for $ac_word... " >&6; }
8265: if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8266: then :
8267: printf %s "(cached) " >&6
8268: else case e in #(
8269: e) if test -n "$ac_ct_OTOOL64"; then
1.5 moko 8270: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8271: else
8272: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273: for as_dir in $PATH
8274: do
8275: IFS=$as_save_IFS
1.10 moko 8276: case $as_dir in #(((
8277: '') as_dir=./ ;;
8278: */) ;;
8279: *) as_dir=$as_dir/ ;;
8280: esac
1.5 moko 8281: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8282: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8283: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.10 moko 8284: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8285: break 2
8286: fi
8287: done
8288: done
8289: IFS=$as_save_IFS
8290:
1.10 moko 8291: fi ;;
8292: esac
1.5 moko 8293: fi
8294: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8295: if test -n "$ac_ct_OTOOL64"; then
1.10 moko 8296: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8297: printf "%s\n" "$ac_ct_OTOOL64" >&6; }
1.5 moko 8298: else
1.10 moko 8299: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300: printf "%s\n" "no" >&6; }
1.5 moko 8301: fi
8302:
8303: if test "x$ac_ct_OTOOL64" = x; then
8304: OTOOL64=":"
8305: else
8306: case $cross_compiling:$ac_tool_warned in
8307: yes:)
1.10 moko 8308: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8309: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 8310: ac_tool_warned=yes ;;
8311: esac
8312: OTOOL64=$ac_ct_OTOOL64
8313: fi
8314: else
8315: OTOOL64="$ac_cv_prog_OTOOL64"
8316: fi
8317:
8318:
8319:
8320:
8321:
8322:
8323:
8324:
8325:
8326:
8327:
8328:
8329:
8330:
8331:
8332:
8333:
8334:
8335:
8336:
8337:
8338:
8339:
8340:
8341:
8342:
8343:
1.10 moko 8344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8345: printf %s "checking for -single_module linker flag... " >&6; }
8346: if test ${lt_cv_apple_cc_single_mod+y}
8347: then :
8348: printf %s "(cached) " >&6
8349: else case e in #(
8350: e) lt_cv_apple_cc_single_mod=no
8351: if test -z "$LT_MULTI_MODULE"; then
1.5 moko 8352: # By default we will add the -single_module flag. You can override
8353: # by either setting the environment variable LT_MULTI_MODULE
8354: # non-empty at configure time, or by adding -multi_module to the
8355: # link flags.
8356: rm -rf libconftest.dylib*
8357: echo "int foo(void){return 1;}" > conftest.c
8358: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8359: -dynamiclib -Wl,-single_module conftest.c" >&5
8360: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8361: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8362: _lt_result=$?
8363: # If there is a non-empty error log, and "single_module"
8364: # appears in it, assume the flag caused a linker warning
8365: if test -s conftest.err && $GREP single_module conftest.err; then
8366: cat conftest.err >&5
8367: # Otherwise, if the output was created with a 0 exit code from
8368: # the compiler, it worked.
1.10 moko 8369: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1.5 moko 8370: lt_cv_apple_cc_single_mod=yes
8371: else
8372: cat conftest.err >&5
8373: fi
8374: rm -rf libconftest.dylib*
8375: rm -f conftest.*
1.10 moko 8376: fi ;;
8377: esac
8378: fi
8379: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8380: printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8381:
8382: # Feature test to disable chained fixups since it is not
8383: # compatible with '-undefined dynamic_lookup'
8384: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8385: printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8386: if test ${lt_cv_support_no_fixup_chains+y}
8387: then :
8388: printf %s "(cached) " >&6
8389: else case e in #(
8390: e) save_LDFLAGS=$LDFLAGS
8391: LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8392: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393: /* end confdefs.h. */
8394:
8395: int
8396: main (void)
8397: {
8398:
8399: ;
8400: return 0;
8401: }
8402: _ACEOF
8403: if ac_fn_c_try_link "$LINENO"
8404: then :
8405: lt_cv_support_no_fixup_chains=yes
8406: else case e in #(
8407: e) lt_cv_support_no_fixup_chains=no
8408: ;;
8409: esac
8410: fi
8411: rm -f core conftest.err conftest.$ac_objext conftest.beam \
8412: conftest$ac_exeext conftest.$ac_ext
8413: LDFLAGS=$save_LDFLAGS
8414:
8415: ;;
8416: esac
1.5 moko 8417: fi
1.10 moko 8418: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8419: printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
1.5 moko 8420:
1.10 moko 8421: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8422: printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8423: if test ${lt_cv_ld_exported_symbols_list+y}
8424: then :
8425: printf %s "(cached) " >&6
8426: else case e in #(
8427: e) lt_cv_ld_exported_symbols_list=no
1.5 moko 8428: save_LDFLAGS=$LDFLAGS
8429: echo "_main" > conftest.sym
8430: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8431: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432: /* end confdefs.h. */
8433:
8434: int
1.10 moko 8435: main (void)
1.5 moko 8436: {
8437:
8438: ;
8439: return 0;
8440: }
8441: _ACEOF
1.10 moko 8442: if ac_fn_c_try_link "$LINENO"
8443: then :
1.5 moko 8444: lt_cv_ld_exported_symbols_list=yes
1.10 moko 8445: else case e in #(
8446: e) lt_cv_ld_exported_symbols_list=no ;;
8447: esac
1.5 moko 8448: fi
1.10 moko 8449: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 8450: conftest$ac_exeext conftest.$ac_ext
1.10 moko 8451: LDFLAGS=$save_LDFLAGS
8452: ;;
8453: esac
1.5 moko 8454: fi
1.10 moko 8455: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8456: printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
1.5 moko 8457:
1.10 moko 8458: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8459: printf %s "checking for -force_load linker flag... " >&6; }
8460: if test ${lt_cv_ld_force_load+y}
8461: then :
8462: printf %s "(cached) " >&6
8463: else case e in #(
8464: e) lt_cv_ld_force_load=no
1.5 moko 8465: cat > conftest.c << _LT_EOF
8466: int forced_loaded() { return 2;}
8467: _LT_EOF
8468: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8469: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
1.10 moko 8470: echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8471: $AR $AR_FLAGS libconftest.a conftest.o 2>&5
1.5 moko 8472: echo "$RANLIB libconftest.a" >&5
8473: $RANLIB libconftest.a 2>&5
8474: cat > conftest.c << _LT_EOF
1.10 moko 8475: int main(void) { return 0;}
1.5 moko 8476: _LT_EOF
8477: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8478: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8479: _lt_result=$?
8480: if test -s conftest.err && $GREP force_load conftest.err; then
8481: cat conftest.err >&5
1.10 moko 8482: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1.5 moko 8483: lt_cv_ld_force_load=yes
8484: else
8485: cat conftest.err >&5
8486: fi
8487: rm -f conftest.err libconftest.a conftest conftest.c
8488: rm -rf conftest.dSYM
1.10 moko 8489: ;;
8490: esac
1.5 moko 8491: fi
1.10 moko 8492: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8493: printf "%s\n" "$lt_cv_ld_force_load" >&6; }
1.5 moko 8494: case $host_os in
8495: rhapsody* | darwin1.[012])
1.10 moko 8496: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1.5 moko 8497: darwin1.*)
1.10 moko 8498: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8499: darwin*)
8500: case $MACOSX_DEPLOYMENT_TARGET,$host in
8501: 10.[012],*|,*powerpc*-darwin[5-8]*)
8502: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8503: *)
8504: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8505: if test yes = "$lt_cv_support_no_fixup_chains"; then
8506: as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8507: fi
8508: ;;
1.5 moko 8509: esac
8510: ;;
8511: esac
1.10 moko 8512: if test yes = "$lt_cv_apple_cc_single_mod"; then
1.5 moko 8513: _lt_dar_single_mod='$single_module'
8514: fi
1.10 moko 8515: _lt_dar_needs_single_mod=no
8516: case $host_os in
8517: rhapsody* | darwin1.*)
8518: _lt_dar_needs_single_mod=yes ;;
8519: darwin*)
8520: # When targeting Mac OS X 10.4 (darwin 8) or later,
8521: # -single_module is the default and -multi_module is unsupported.
8522: # The toolchain on macOS 10.14 (darwin 18) and later cannot
8523: # target any OS version that needs -single_module.
8524: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8525: 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8526: _lt_dar_needs_single_mod=yes ;;
8527: esac
8528: ;;
8529: esac
8530: if test yes = "$lt_cv_ld_exported_symbols_list"; then
8531: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1.5 moko 8532: else
1.10 moko 8533: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1.5 moko 8534: fi
1.10 moko 8535: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1.5 moko 8536: _lt_dsymutil='~$DSYMUTIL $lib || :'
8537: else
8538: _lt_dsymutil=
8539: fi
8540: ;;
8541: esac
8542:
1.10 moko 8543: # func_munge_path_list VARIABLE PATH
8544: # -----------------------------------
8545: # VARIABLE is name of variable containing _space_ separated list of
8546: # directories to be munged by the contents of PATH, which is string
8547: # having a format:
8548: # "DIR[:DIR]:"
8549: # string "DIR[ DIR]" will be prepended to VARIABLE
8550: # ":DIR[:DIR]"
8551: # string "DIR[ DIR]" will be appended to VARIABLE
8552: # "DIRP[:DIRP]::[DIRA:]DIRA"
8553: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8554: # "DIRA[ DIRA]" will be appended to VARIABLE
8555: # "DIR[:DIR]"
8556: # VARIABLE will be replaced by "DIR[ DIR]"
8557: func_munge_path_list ()
8558: {
8559: case x$2 in
8560: x)
8561: ;;
8562: *:)
8563: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8564: ;;
8565: x:*)
8566: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8567: ;;
8568: *::*)
8569: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8570: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8571: ;;
8572: *)
8573: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8574: ;;
8575: esac
8576: }
8577:
8578: ac_header= ac_cache=
8579: for ac_item in $ac_header_c_list
1.5 moko 8580: do
1.10 moko 8581: if test $ac_cache; then
8582: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8583: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8584: printf "%s\n" "#define $ac_item 1" >> confdefs.h
8585: fi
8586: ac_header= ac_cache=
8587: elif test $ac_header; then
8588: ac_cache=$ac_item
8589: else
8590: ac_header=$ac_item
8591: fi
8592: done
8593:
8594:
8595:
8596:
8597:
8598:
8599:
8600:
8601: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8602: then :
8603:
8604: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
1.5 moko 8605:
8606: fi
1.10 moko 8607: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8608: "
8609: if test "x$ac_cv_header_dlfcn_h" = xyes
8610: then :
8611: printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
1.5 moko 8612:
8613: fi
8614:
8615:
8616:
8617:
1.10 moko 8618:
1.5 moko 8619: # Set options
8620: enable_dlopen=yes
8621: enable_win32_dll=yes
8622:
8623: case $host in
1.10 moko 8624: *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
1.5 moko 8625: if test -n "$ac_tool_prefix"; then
8626: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8627: set dummy ${ac_tool_prefix}as; ac_word=$2
1.10 moko 8628: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629: printf %s "checking for $ac_word... " >&6; }
8630: if test ${ac_cv_prog_AS+y}
8631: then :
8632: printf %s "(cached) " >&6
8633: else case e in #(
8634: e) if test -n "$AS"; then
1.5 moko 8635: ac_cv_prog_AS="$AS" # Let the user override the test.
8636: else
8637: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638: for as_dir in $PATH
8639: do
8640: IFS=$as_save_IFS
1.10 moko 8641: case $as_dir in #(((
8642: '') as_dir=./ ;;
8643: */) ;;
8644: *) as_dir=$as_dir/ ;;
8645: esac
1.5 moko 8646: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8647: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8648: ac_cv_prog_AS="${ac_tool_prefix}as"
1.10 moko 8649: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8650: break 2
8651: fi
8652: done
8653: done
8654: IFS=$as_save_IFS
8655:
1.10 moko 8656: fi ;;
8657: esac
1.5 moko 8658: fi
8659: AS=$ac_cv_prog_AS
8660: if test -n "$AS"; then
1.10 moko 8661: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8662: printf "%s\n" "$AS" >&6; }
1.5 moko 8663: else
1.10 moko 8664: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665: printf "%s\n" "no" >&6; }
1.5 moko 8666: fi
8667:
8668:
8669: fi
8670: if test -z "$ac_cv_prog_AS"; then
8671: ac_ct_AS=$AS
8672: # Extract the first word of "as", so it can be a program name with args.
8673: set dummy as; ac_word=$2
1.10 moko 8674: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675: printf %s "checking for $ac_word... " >&6; }
8676: if test ${ac_cv_prog_ac_ct_AS+y}
8677: then :
8678: printf %s "(cached) " >&6
8679: else case e in #(
8680: e) if test -n "$ac_ct_AS"; then
1.5 moko 8681: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8682: else
8683: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684: for as_dir in $PATH
8685: do
8686: IFS=$as_save_IFS
1.10 moko 8687: case $as_dir in #(((
8688: '') as_dir=./ ;;
8689: */) ;;
8690: *) as_dir=$as_dir/ ;;
8691: esac
1.5 moko 8692: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8693: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8694: ac_cv_prog_ac_ct_AS="as"
1.10 moko 8695: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8696: break 2
8697: fi
8698: done
8699: done
8700: IFS=$as_save_IFS
8701:
1.10 moko 8702: fi ;;
8703: esac
1.5 moko 8704: fi
8705: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8706: if test -n "$ac_ct_AS"; then
1.10 moko 8707: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8708: printf "%s\n" "$ac_ct_AS" >&6; }
1.5 moko 8709: else
1.10 moko 8710: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711: printf "%s\n" "no" >&6; }
1.5 moko 8712: fi
8713:
8714: if test "x$ac_ct_AS" = x; then
8715: AS="false"
8716: else
8717: case $cross_compiling:$ac_tool_warned in
8718: yes:)
1.10 moko 8719: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8720: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 8721: ac_tool_warned=yes ;;
8722: esac
8723: AS=$ac_ct_AS
8724: fi
8725: else
8726: AS="$ac_cv_prog_AS"
8727: fi
8728:
8729: if test -n "$ac_tool_prefix"; then
8730: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8731: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.10 moko 8732: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733: printf %s "checking for $ac_word... " >&6; }
8734: if test ${ac_cv_prog_DLLTOOL+y}
8735: then :
8736: printf %s "(cached) " >&6
8737: else case e in #(
8738: e) if test -n "$DLLTOOL"; then
1.5 moko 8739: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8740: else
8741: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742: for as_dir in $PATH
8743: do
8744: IFS=$as_save_IFS
1.10 moko 8745: case $as_dir in #(((
8746: '') as_dir=./ ;;
8747: */) ;;
8748: *) as_dir=$as_dir/ ;;
8749: esac
1.5 moko 8750: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8751: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8752: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.10 moko 8753: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8754: break 2
8755: fi
8756: done
8757: done
8758: IFS=$as_save_IFS
8759:
1.10 moko 8760: fi ;;
8761: esac
1.5 moko 8762: fi
8763: DLLTOOL=$ac_cv_prog_DLLTOOL
8764: if test -n "$DLLTOOL"; then
1.10 moko 8765: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8766: printf "%s\n" "$DLLTOOL" >&6; }
1.5 moko 8767: else
1.10 moko 8768: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769: printf "%s\n" "no" >&6; }
1.5 moko 8770: fi
8771:
8772:
8773: fi
8774: if test -z "$ac_cv_prog_DLLTOOL"; then
8775: ac_ct_DLLTOOL=$DLLTOOL
8776: # Extract the first word of "dlltool", so it can be a program name with args.
8777: set dummy dlltool; ac_word=$2
1.10 moko 8778: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779: printf %s "checking for $ac_word... " >&6; }
8780: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8781: then :
8782: printf %s "(cached) " >&6
8783: else case e in #(
8784: e) if test -n "$ac_ct_DLLTOOL"; then
1.5 moko 8785: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8786: else
8787: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788: for as_dir in $PATH
8789: do
8790: IFS=$as_save_IFS
1.10 moko 8791: case $as_dir in #(((
8792: '') as_dir=./ ;;
8793: */) ;;
8794: *) as_dir=$as_dir/ ;;
8795: esac
1.5 moko 8796: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8797: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8798: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.10 moko 8799: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8800: break 2
8801: fi
8802: done
8803: done
8804: IFS=$as_save_IFS
8805:
1.10 moko 8806: fi ;;
8807: esac
1.5 moko 8808: fi
8809: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8810: if test -n "$ac_ct_DLLTOOL"; then
1.10 moko 8811: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8812: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.5 moko 8813: else
1.10 moko 8814: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815: printf "%s\n" "no" >&6; }
1.5 moko 8816: fi
8817:
8818: if test "x$ac_ct_DLLTOOL" = x; then
8819: DLLTOOL="false"
8820: else
8821: case $cross_compiling:$ac_tool_warned in
8822: yes:)
1.10 moko 8823: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8824: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 8825: ac_tool_warned=yes ;;
8826: esac
8827: DLLTOOL=$ac_ct_DLLTOOL
8828: fi
8829: else
8830: DLLTOOL="$ac_cv_prog_DLLTOOL"
8831: fi
8832:
8833: if test -n "$ac_tool_prefix"; then
8834: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8835: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.10 moko 8836: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837: printf %s "checking for $ac_word... " >&6; }
8838: if test ${ac_cv_prog_OBJDUMP+y}
8839: then :
8840: printf %s "(cached) " >&6
8841: else case e in #(
8842: e) if test -n "$OBJDUMP"; then
1.5 moko 8843: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8844: else
8845: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846: for as_dir in $PATH
8847: do
8848: IFS=$as_save_IFS
1.10 moko 8849: case $as_dir in #(((
8850: '') as_dir=./ ;;
8851: */) ;;
8852: *) as_dir=$as_dir/ ;;
8853: esac
1.5 moko 8854: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8855: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8856: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.10 moko 8857: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8858: break 2
8859: fi
8860: done
8861: done
8862: IFS=$as_save_IFS
8863:
1.10 moko 8864: fi ;;
8865: esac
1.5 moko 8866: fi
8867: OBJDUMP=$ac_cv_prog_OBJDUMP
8868: if test -n "$OBJDUMP"; then
1.10 moko 8869: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8870: printf "%s\n" "$OBJDUMP" >&6; }
1.5 moko 8871: else
1.10 moko 8872: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873: printf "%s\n" "no" >&6; }
1.5 moko 8874: fi
8875:
8876:
8877: fi
8878: if test -z "$ac_cv_prog_OBJDUMP"; then
8879: ac_ct_OBJDUMP=$OBJDUMP
8880: # Extract the first word of "objdump", so it can be a program name with args.
8881: set dummy objdump; ac_word=$2
1.10 moko 8882: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883: printf %s "checking for $ac_word... " >&6; }
8884: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8885: then :
8886: printf %s "(cached) " >&6
8887: else case e in #(
8888: e) if test -n "$ac_ct_OBJDUMP"; then
1.5 moko 8889: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8890: else
8891: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892: for as_dir in $PATH
8893: do
8894: IFS=$as_save_IFS
1.10 moko 8895: case $as_dir in #(((
8896: '') as_dir=./ ;;
8897: */) ;;
8898: *) as_dir=$as_dir/ ;;
8899: esac
1.5 moko 8900: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 moko 8901: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.5 moko 8902: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.10 moko 8903: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.5 moko 8904: break 2
8905: fi
8906: done
8907: done
8908: IFS=$as_save_IFS
8909:
1.10 moko 8910: fi ;;
8911: esac
1.5 moko 8912: fi
8913: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8914: if test -n "$ac_ct_OBJDUMP"; then
1.10 moko 8915: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8916: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.5 moko 8917: else
1.10 moko 8918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919: printf "%s\n" "no" >&6; }
1.5 moko 8920: fi
8921:
8922: if test "x$ac_ct_OBJDUMP" = x; then
8923: OBJDUMP="false"
8924: else
8925: case $cross_compiling:$ac_tool_warned in
8926: yes:)
1.10 moko 8927: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8928: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.5 moko 8929: ac_tool_warned=yes ;;
8930: esac
8931: OBJDUMP=$ac_ct_OBJDUMP
8932: fi
8933: else
8934: OBJDUMP="$ac_cv_prog_OBJDUMP"
8935: fi
8936:
8937: ;;
8938: esac
8939:
8940: test -z "$AS" && AS=as
8941:
8942:
8943:
8944:
8945:
8946: test -z "$DLLTOOL" && DLLTOOL=dlltool
8947:
8948:
8949:
8950:
8951:
8952: test -z "$OBJDUMP" && OBJDUMP=objdump
8953:
8954:
8955:
8956:
8957:
8958:
8959:
8960:
8961:
8962: # Check whether --enable-shared was given.
1.10 moko 8963: if test ${enable_shared+y}
8964: then :
1.5 moko 8965: enableval=$enable_shared; p=${PACKAGE-default}
8966: case $enableval in
8967: yes) enable_shared=yes ;;
8968: no) enable_shared=no ;;
8969: *)
8970: enable_shared=no
8971: # Look at the argument we got. We use all the common list separators.
1.10 moko 8972: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.5 moko 8973: for pkg in $enableval; do
1.10 moko 8974: IFS=$lt_save_ifs
1.5 moko 8975: if test "X$pkg" = "X$p"; then
8976: enable_shared=yes
8977: fi
8978: done
1.10 moko 8979: IFS=$lt_save_ifs
1.5 moko 8980: ;;
8981: esac
1.10 moko 8982: else case e in #(
8983: e) enable_shared=yes ;;
8984: esac
1.5 moko 8985: fi
8986:
8987:
8988:
8989:
8990:
8991:
8992:
8993:
8994:
8995: # Check whether --enable-static was given.
1.10 moko 8996: if test ${enable_static+y}
8997: then :
1.5 moko 8998: enableval=$enable_static; p=${PACKAGE-default}
8999: case $enableval in
9000: yes) enable_static=yes ;;
9001: no) enable_static=no ;;
9002: *)
9003: enable_static=no
9004: # Look at the argument we got. We use all the common list separators.
1.10 moko 9005: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.5 moko 9006: for pkg in $enableval; do
1.10 moko 9007: IFS=$lt_save_ifs
1.5 moko 9008: if test "X$pkg" = "X$p"; then
9009: enable_static=yes
9010: fi
9011: done
1.10 moko 9012: IFS=$lt_save_ifs
1.5 moko 9013: ;;
9014: esac
1.10 moko 9015: else case e in #(
9016: e) enable_static=yes ;;
9017: esac
1.5 moko 9018: fi
9019:
9020:
9021:
9022:
9023:
9024:
9025:
9026:
9027:
1.10 moko 9028: # Check whether --enable-pic was given.
9029: if test ${enable_pic+y}
9030: then :
9031: enableval=$enable_pic; lt_p=${PACKAGE-default}
9032: case $enableval in
9033: yes|no) pic_mode=$enableval ;;
9034: *)
9035: pic_mode=default
9036: # Look at the argument we got. We use all the common list separators.
9037: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9038: for lt_pkg in $enableval; do
9039: IFS=$lt_save_ifs
9040: if test "X$lt_pkg" = "X$lt_p"; then
9041: pic_mode=yes
9042: fi
9043: done
9044: IFS=$lt_save_ifs
9045: ;;
9046: esac
9047: else case e in #(
9048: e) # Check whether --with-pic was given.
9049: if test ${with_pic+y}
9050: then :
1.5 moko 9051: withval=$with_pic; lt_p=${PACKAGE-default}
1.10 moko 9052: case $withval in
9053: yes|no) pic_mode=$withval ;;
9054: *)
9055: pic_mode=default
9056: # Look at the argument we got. We use all the common list separators.
9057: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9058: for lt_pkg in $withval; do
9059: IFS=$lt_save_ifs
9060: if test "X$lt_pkg" = "X$lt_p"; then
9061: pic_mode=yes
9062: fi
9063: done
9064: IFS=$lt_save_ifs
9065: ;;
9066: esac
9067: else case e in #(
9068: e) pic_mode=default ;;
9069: esac
1.5 moko 9070: fi
9071:
1.10 moko 9072: ;;
9073: esac
9074: fi
1.5 moko 9075:
9076:
9077:
9078:
9079:
9080:
9081:
9082:
9083: # Check whether --enable-fast-install was given.
1.10 moko 9084: if test ${enable_fast_install+y}
9085: then :
1.5 moko 9086: enableval=$enable_fast_install; p=${PACKAGE-default}
9087: case $enableval in
9088: yes) enable_fast_install=yes ;;
9089: no) enable_fast_install=no ;;
9090: *)
9091: enable_fast_install=no
9092: # Look at the argument we got. We use all the common list separators.
1.10 moko 9093: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.5 moko 9094: for pkg in $enableval; do
1.10 moko 9095: IFS=$lt_save_ifs
1.5 moko 9096: if test "X$pkg" = "X$p"; then
9097: enable_fast_install=yes
9098: fi
9099: done
1.10 moko 9100: IFS=$lt_save_ifs
1.5 moko 9101: ;;
9102: esac
1.10 moko 9103: else case e in #(
9104: e) enable_fast_install=yes ;;
9105: esac
9106: fi
9107:
9108:
9109:
9110:
9111:
9112:
9113:
9114:
9115: shared_archive_member_spec=
9116: case $host,$enable_shared in
9117: power*-*-aix[5-9]*,yes)
9118: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9119: printf %s "checking which variant of shared library versioning to provide... " >&6; }
9120: # Check whether --enable-aix-soname was given.
9121: if test ${enable_aix_soname+y}
9122: then :
9123: enableval=$enable_aix_soname; case $enableval in
9124: aix|svr4|both)
9125: ;;
9126: *)
9127: as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9128: ;;
9129: esac
9130: lt_cv_with_aix_soname=$enable_aix_soname
9131: else case e in #(
9132: e) # Check whether --with-aix-soname was given.
9133: if test ${with_aix_soname+y}
9134: then :
9135: withval=$with_aix_soname; case $withval in
9136: aix|svr4|both)
9137: ;;
9138: *)
9139: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9140: ;;
9141: esac
9142: lt_cv_with_aix_soname=$with_aix_soname
9143: else case e in #(
9144: e) if test ${lt_cv_with_aix_soname+y}
9145: then :
9146: printf %s "(cached) " >&6
9147: else case e in #(
9148: e) lt_cv_with_aix_soname=aix ;;
9149: esac
9150: fi
9151: ;;
9152: esac
9153: fi
9154:
9155: enable_aix_soname=$lt_cv_with_aix_soname ;;
9156: esac
1.5 moko 9157: fi
9158:
1.10 moko 9159: with_aix_soname=$enable_aix_soname
9160: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9161: printf "%s\n" "$with_aix_soname" >&6; }
9162: if test aix != "$with_aix_soname"; then
9163: # For the AIX way of multilib, we name the shared archive member
9164: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9165: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9166: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9167: # the AIX toolchain works better with OBJECT_MODE set (default 32).
9168: if test 64 = "${OBJECT_MODE-32}"; then
9169: shared_archive_member_spec=shr_64
9170: else
9171: shared_archive_member_spec=shr
9172: fi
9173: fi
9174: ;;
9175: *)
9176: with_aix_soname=aix
9177: ;;
9178: esac
1.5 moko 9179:
9180:
9181:
9182:
9183:
9184:
9185:
9186:
9187:
9188:
9189: # This can be used to rebuild libtool when needed
1.10 moko 9190: LIBTOOL_DEPS=$ltmain
1.5 moko 9191:
9192: # Always use our own libtool.
9193: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9194:
9195:
9196:
9197:
9198:
9199:
9200:
9201:
9202:
9203:
9204:
9205:
9206:
9207:
9208:
9209:
9210:
9211:
9212:
9213:
9214:
9215:
9216:
9217:
9218:
9219:
9220:
9221:
9222:
9223:
9224: test -z "$LN_S" && LN_S="ln -s"
9225:
9226:
9227:
9228:
9229:
9230:
9231:
9232:
9233:
9234:
9235:
9236:
9237:
9238:
1.10 moko 9239: if test -n "${ZSH_VERSION+set}"; then
1.5 moko 9240: setopt NO_GLOB_SUBST
9241: fi
9242:
1.10 moko 9243: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9244: printf %s "checking for objdir... " >&6; }
9245: if test ${lt_cv_objdir+y}
9246: then :
9247: printf %s "(cached) " >&6
9248: else case e in #(
9249: e) rm -f .libs 2>/dev/null
1.5 moko 9250: mkdir .libs 2>/dev/null
9251: if test -d .libs; then
9252: lt_cv_objdir=.libs
9253: else
9254: # MS-DOS does not allow filenames that begin with a dot.
9255: lt_cv_objdir=_libs
9256: fi
1.10 moko 9257: rmdir .libs 2>/dev/null ;;
9258: esac
1.5 moko 9259: fi
1.10 moko 9260: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9261: printf "%s\n" "$lt_cv_objdir" >&6; }
1.5 moko 9262: objdir=$lt_cv_objdir
9263:
9264:
9265:
9266:
9267:
1.10 moko 9268: printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
1.5 moko 9269:
9270:
9271:
9272:
9273: case $host_os in
9274: aix3*)
9275: # AIX sometimes has problems with the GCC collect2 program. For some
9276: # reason, if we set the COLLECT_NAMES environment variable, the problems
9277: # vanish in a puff of smoke.
1.10 moko 9278: if test set != "${COLLECT_NAMES+set}"; then
1.5 moko 9279: COLLECT_NAMES=
9280: export COLLECT_NAMES
9281: fi
9282: ;;
9283: esac
9284:
9285: # Global variables:
9286: ofile=libtool
9287: can_build_shared=yes
9288:
1.10 moko 9289: # All known linkers require a '.a' archive for static linking (except MSVC and
9290: # ICC, which need '.lib').
1.5 moko 9291: libext=a
9292:
1.10 moko 9293: with_gnu_ld=$lt_cv_prog_gnu_ld
1.5 moko 9294:
1.10 moko 9295: old_CC=$CC
9296: old_CFLAGS=$CFLAGS
1.5 moko 9297:
9298: # Set sane defaults for various variables
9299: test -z "$CC" && CC=cc
9300: test -z "$LTCC" && LTCC=$CC
9301: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9302: test -z "$LD" && LD=ld
9303: test -z "$ac_objext" && ac_objext=o
9304:
1.10 moko 9305: func_cc_basename $compiler
9306: cc_basename=$func_cc_basename_result
1.5 moko 9307:
9308:
9309: # Only perform the check for file, if the check method requires it
9310: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9311: case $deplibs_check_method in
9312: file_magic*)
9313: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.10 moko 9314: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9315: printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9316: if test ${lt_cv_path_MAGIC_CMD+y}
9317: then :
9318: printf %s "(cached) " >&6
9319: else case e in #(
9320: e) case $MAGIC_CMD in
1.5 moko 9321: [\\/*] | ?:[\\/]*)
1.10 moko 9322: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.5 moko 9323: ;;
9324: *)
1.10 moko 9325: lt_save_MAGIC_CMD=$MAGIC_CMD
9326: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.5 moko 9327: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9328: for ac_dir in $ac_dummy; do
1.10 moko 9329: IFS=$lt_save_ifs
1.5 moko 9330: test -z "$ac_dir" && ac_dir=.
1.10 moko 9331: if test -f "$ac_dir/${ac_tool_prefix}file"; then
9332: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
1.5 moko 9333: if test -n "$file_magic_test_file"; then
9334: case $deplibs_check_method in
9335: "file_magic "*)
9336: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.10 moko 9337: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.5 moko 9338: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9339: $EGREP "$file_magic_regex" > /dev/null; then
9340: :
9341: else
9342: cat <<_LT_EOF 1>&2
9343:
9344: *** Warning: the command libtool uses to detect shared libraries,
9345: *** $file_magic_cmd, produces output that libtool cannot recognize.
9346: *** The result is that libtool may fail to recognize shared libraries
9347: *** as such. This will affect the creation of libtool libraries that
9348: *** depend on shared libraries, but programs linked with such libtool
9349: *** libraries will work regardless of this problem. Nevertheless, you
9350: *** may want to report the problem to your system manager and/or to
9351: *** bug-libtool@gnu.org
9352:
9353: _LT_EOF
9354: fi ;;
9355: esac
9356: fi
9357: break
9358: fi
9359: done
1.10 moko 9360: IFS=$lt_save_ifs
9361: MAGIC_CMD=$lt_save_MAGIC_CMD
1.5 moko 9362: ;;
1.10 moko 9363: esac ;;
1.5 moko 9364: esac
9365: fi
9366:
1.10 moko 9367: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.5 moko 9368: if test -n "$MAGIC_CMD"; then
1.10 moko 9369: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9370: printf "%s\n" "$MAGIC_CMD" >&6; }
1.5 moko 9371: else
1.10 moko 9372: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373: printf "%s\n" "no" >&6; }
1.5 moko 9374: fi
9375:
9376:
9377:
9378:
9379:
9380: if test -z "$lt_cv_path_MAGIC_CMD"; then
9381: if test -n "$ac_tool_prefix"; then
1.10 moko 9382: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9383: printf %s "checking for file... " >&6; }
9384: if test ${lt_cv_path_MAGIC_CMD+y}
9385: then :
9386: printf %s "(cached) " >&6
9387: else case e in #(
9388: e) case $MAGIC_CMD in
1.5 moko 9389: [\\/*] | ?:[\\/]*)
1.10 moko 9390: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.5 moko 9391: ;;
9392: *)
1.10 moko 9393: lt_save_MAGIC_CMD=$MAGIC_CMD
9394: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.5 moko 9395: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9396: for ac_dir in $ac_dummy; do
1.10 moko 9397: IFS=$lt_save_ifs
1.5 moko 9398: test -z "$ac_dir" && ac_dir=.
1.10 moko 9399: if test -f "$ac_dir/file"; then
9400: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
1.5 moko 9401: if test -n "$file_magic_test_file"; then
9402: case $deplibs_check_method in
9403: "file_magic "*)
9404: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.10 moko 9405: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.5 moko 9406: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9407: $EGREP "$file_magic_regex" > /dev/null; then
9408: :
9409: else
9410: cat <<_LT_EOF 1>&2
9411:
9412: *** Warning: the command libtool uses to detect shared libraries,
9413: *** $file_magic_cmd, produces output that libtool cannot recognize.
9414: *** The result is that libtool may fail to recognize shared libraries
9415: *** as such. This will affect the creation of libtool libraries that
9416: *** depend on shared libraries, but programs linked with such libtool
9417: *** libraries will work regardless of this problem. Nevertheless, you
9418: *** may want to report the problem to your system manager and/or to
9419: *** bug-libtool@gnu.org
9420:
9421: _LT_EOF
9422: fi ;;
9423: esac
9424: fi
9425: break
9426: fi
9427: done
1.10 moko 9428: IFS=$lt_save_ifs
9429: MAGIC_CMD=$lt_save_MAGIC_CMD
1.5 moko 9430: ;;
1.10 moko 9431: esac ;;
1.5 moko 9432: esac
9433: fi
9434:
1.10 moko 9435: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.5 moko 9436: if test -n "$MAGIC_CMD"; then
1.10 moko 9437: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9438: printf "%s\n" "$MAGIC_CMD" >&6; }
1.5 moko 9439: else
1.10 moko 9440: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441: printf "%s\n" "no" >&6; }
1.5 moko 9442: fi
9443:
9444:
9445: else
9446: MAGIC_CMD=:
9447: fi
9448: fi
9449:
9450: fi
9451: ;;
9452: esac
9453:
9454: # Use C for the default configuration in the libtool script
9455:
1.10 moko 9456: lt_save_CC=$CC
1.5 moko 9457: ac_ext=c
9458: ac_cpp='$CPP $CPPFLAGS'
9459: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9460: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9461: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9462:
9463:
9464: # Source file extension for C test sources.
9465: ac_ext=c
9466:
9467: # Object file extension for compiled C test sources.
9468: objext=o
9469: objext=$objext
9470:
9471: # Code to be used in simple compile tests
9472: lt_simple_compile_test_code="int some_variable = 0;"
9473:
9474: # Code to be used in simple link tests
1.10 moko 9475: lt_simple_link_test_code='int main(void){return(0);}'
1.5 moko 9476:
9477:
9478:
9479:
9480:
9481:
9482:
9483: # If no C compiler was specified, use CC.
9484: LTCC=${LTCC-"$CC"}
9485:
9486: # If no C compiler flags were specified, use CFLAGS.
9487: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9488:
9489: # Allow CC to be a program name with arguments.
9490: compiler=$CC
9491:
9492: # Save the default compiler, since it gets overwritten when the other
9493: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9494: compiler_DEFAULT=$CC
9495:
9496: # save warnings/boilerplate of simple test code
9497: ac_outfile=conftest.$ac_objext
9498: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9499: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9500: _lt_compiler_boilerplate=`cat conftest.err`
9501: $RM conftest*
9502:
9503: ac_outfile=conftest.$ac_objext
9504: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9505: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9506: _lt_linker_boilerplate=`cat conftest.err`
9507: $RM -r conftest*
9508:
9509:
9510: ## CAVEAT EMPTOR:
9511: ## There is no encapsulation within the following macros, do not change
9512: ## the running order or otherwise move them around unless you know exactly
9513: ## what you are doing...
9514: if test -n "$compiler"; then
9515:
9516: lt_prog_compiler_no_builtin_flag=
9517:
1.10 moko 9518: if test yes = "$GCC"; then
1.5 moko 9519: case $cc_basename in
9520: nvcc*)
9521: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9522: *)
9523: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9524: esac
9525:
1.10 moko 9526: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9527: printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9528: if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9529: then :
9530: printf %s "(cached) " >&6
9531: else case e in #(
9532: e) lt_cv_prog_compiler_rtti_exceptions=no
1.5 moko 9533: ac_outfile=conftest.$ac_objext
9534: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.10 moko 9535: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
1.5 moko 9536: # Insert the option either (1) after the last *FLAGS variable, or
9537: # (2) before a word containing "conftest.", or (3) at the end.
9538: # Note that $ac_compile itself does not contain backslashes and begins
9539: # with a dollar sign (not a hyphen), so the echo should work correctly.
9540: # The option is referenced via a variable to avoid confusing sed.
9541: lt_compile=`echo "$ac_compile" | $SED \
9542: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9543: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9544: -e 's:$: $lt_compiler_flag:'`
9545: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9546: (eval "$lt_compile" 2>conftest.err)
9547: ac_status=$?
9548: cat conftest.err >&5
9549: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550: if (exit $ac_status) && test -s "$ac_outfile"; then
9551: # The compiler can only warn and ignore the option if not recognized
9552: # So say no if there are warnings other than the usual output.
9553: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9554: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9555: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9556: lt_cv_prog_compiler_rtti_exceptions=yes
9557: fi
9558: fi
9559: $RM conftest*
1.10 moko 9560: ;;
9561: esac
1.5 moko 9562: fi
1.10 moko 9563: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9564: printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.5 moko 9565:
1.10 moko 9566: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
1.5 moko 9567: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9568: else
9569: :
9570: fi
9571:
9572: fi
9573:
9574:
9575:
9576:
9577:
9578:
9579: lt_prog_compiler_wl=
9580: lt_prog_compiler_pic=
9581: lt_prog_compiler_static=
9582:
9583:
1.10 moko 9584: if test yes = "$GCC"; then
1.5 moko 9585: lt_prog_compiler_wl='-Wl,'
9586: lt_prog_compiler_static='-static'
9587:
9588: case $host_os in
9589: aix*)
9590: # All AIX code is PIC.
1.10 moko 9591: if test ia64 = "$host_cpu"; then
1.5 moko 9592: # AIX 5 now supports IA64 processor
9593: lt_prog_compiler_static='-Bstatic'
9594: fi
1.10 moko 9595: lt_prog_compiler_pic='-fPIC'
1.5 moko 9596: ;;
9597:
9598: amigaos*)
9599: case $host_cpu in
9600: powerpc)
9601: # see comment about AmigaOS4 .so support
9602: lt_prog_compiler_pic='-fPIC'
9603: ;;
9604: m68k)
9605: # FIXME: we need at least 68020 code to build shared libraries, but
1.10 moko 9606: # adding the '-m68020' flag to GCC prevents building anything better,
9607: # like '-m68040'.
1.5 moko 9608: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9609: ;;
9610: esac
9611: ;;
9612:
9613: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9614: # PIC is the default for these OSes.
9615: ;;
9616:
1.10 moko 9617: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.5 moko 9618: # This hack is so that the source file can tell whether it is being
9619: # built for inclusion in a dll (and should export symbols for example).
9620: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9621: # (--disable-auto-import) libraries
9622: lt_prog_compiler_pic='-DDLL_EXPORT'
1.10 moko 9623: case $host_os in
9624: os2*)
9625: lt_prog_compiler_static='$wl-static'
9626: ;;
9627: esac
1.5 moko 9628: ;;
9629:
9630: darwin* | rhapsody*)
9631: # PIC is the default on this platform
9632: # Common symbols not allowed in MH_DYLIB files
9633: lt_prog_compiler_pic='-fno-common'
9634: ;;
9635:
9636: haiku*)
9637: # PIC is the default for Haiku.
9638: # The "-static" flag exists, but is broken.
9639: lt_prog_compiler_static=
9640: ;;
9641:
9642: hpux*)
9643: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9644: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9645: # sets the default TLS model and affects inlining.
9646: case $host_cpu in
9647: hppa*64*)
9648: # +Z the default
9649: ;;
9650: *)
9651: lt_prog_compiler_pic='-fPIC'
9652: ;;
9653: esac
9654: ;;
9655:
9656: interix[3-9]*)
9657: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9658: # Instead, we relocate shared libraries at runtime.
9659: ;;
9660:
9661: msdosdjgpp*)
9662: # Just because we use GCC doesn't mean we suddenly get shared libraries
9663: # on systems that don't support them.
9664: lt_prog_compiler_can_build_shared=no
9665: enable_shared=no
9666: ;;
9667:
9668: *nto* | *qnx*)
9669: # QNX uses GNU C++, but need to define -shared option too, otherwise
9670: # it will coredump.
9671: lt_prog_compiler_pic='-fPIC -shared'
9672: ;;
9673:
9674: sysv4*MP*)
9675: if test -d /usr/nec; then
9676: lt_prog_compiler_pic=-Kconform_pic
9677: fi
9678: ;;
9679:
9680: *)
9681: lt_prog_compiler_pic='-fPIC'
9682: ;;
9683: esac
9684:
9685: case $cc_basename in
9686: nvcc*) # Cuda Compiler Driver 2.2
9687: lt_prog_compiler_wl='-Xlinker '
9688: if test -n "$lt_prog_compiler_pic"; then
9689: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9690: fi
9691: ;;
9692: esac
9693: else
9694: # PORTME Check for flag to pass linker flags through the system compiler.
9695: case $host_os in
9696: aix*)
9697: lt_prog_compiler_wl='-Wl,'
1.10 moko 9698: if test ia64 = "$host_cpu"; then
1.5 moko 9699: # AIX 5 now supports IA64 processor
9700: lt_prog_compiler_static='-Bstatic'
9701: else
9702: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9703: fi
9704: ;;
9705:
1.10 moko 9706: darwin* | rhapsody*)
9707: # PIC is the default on this platform
9708: # Common symbols not allowed in MH_DYLIB files
9709: lt_prog_compiler_pic='-fno-common'
9710: case $cc_basename in
9711: nagfor*)
9712: # NAG Fortran compiler
9713: lt_prog_compiler_wl='-Wl,-Wl,,'
9714: lt_prog_compiler_pic='-PIC'
9715: lt_prog_compiler_static='-Bstatic'
9716: ;;
9717: esac
9718: ;;
9719:
9720: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.5 moko 9721: # This hack is so that the source file can tell whether it is being
9722: # built for inclusion in a dll (and should export symbols for example).
9723: lt_prog_compiler_pic='-DDLL_EXPORT'
1.10 moko 9724: case $host_os in
9725: os2*)
9726: lt_prog_compiler_static='$wl-static'
9727: ;;
9728: esac
1.5 moko 9729: ;;
9730:
9731: hpux9* | hpux10* | hpux11*)
9732: lt_prog_compiler_wl='-Wl,'
9733: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9734: # not for PA HP-UX.
9735: case $host_cpu in
9736: hppa*64*|ia64*)
9737: # +Z the default
9738: ;;
9739: *)
9740: lt_prog_compiler_pic='+Z'
9741: ;;
9742: esac
9743: # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.10 moko 9744: lt_prog_compiler_static='$wl-a ${wl}archive'
1.5 moko 9745: ;;
9746:
9747: irix5* | irix6* | nonstopux*)
9748: lt_prog_compiler_wl='-Wl,'
9749: # PIC (with -KPIC) is the default.
9750: lt_prog_compiler_static='-non_shared'
9751: ;;
9752:
1.10 moko 9753: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.5 moko 9754: case $cc_basename in
1.10 moko 9755: # old Intel for x86_64, which still supported -KPIC.
1.5 moko 9756: ecc*)
9757: lt_prog_compiler_wl='-Wl,'
9758: lt_prog_compiler_pic='-KPIC'
9759: lt_prog_compiler_static='-static'
9760: ;;
1.10 moko 9761: *flang* | ftn | f18* | f95*)
9762: # Flang compiler.
9763: lt_prog_compiler_wl='-Wl,'
9764: lt_prog_compiler_pic='-fPIC'
9765: lt_prog_compiler_static='-static'
9766: ;;
9767: # flang / f18. f95 an alias for gfortran or flang on Debian
9768: flang* | f18* | f95*)
9769: lt_prog_compiler_wl='-Wl,'
9770: lt_prog_compiler_pic='-fPIC'
9771: lt_prog_compiler_static='-static'
9772: ;;
1.5 moko 9773: # icc used to be incompatible with GCC.
9774: # ICC 10 doesn't accept -KPIC any more.
9775: icc* | ifort*)
9776: lt_prog_compiler_wl='-Wl,'
9777: lt_prog_compiler_pic='-fPIC'
9778: lt_prog_compiler_static='-static'
9779: ;;
9780: # Lahey Fortran 8.1.
9781: lf95*)
9782: lt_prog_compiler_wl='-Wl,'
9783: lt_prog_compiler_pic='--shared'
9784: lt_prog_compiler_static='--static'
9785: ;;
9786: nagfor*)
9787: # NAG Fortran compiler
9788: lt_prog_compiler_wl='-Wl,-Wl,,'
9789: lt_prog_compiler_pic='-PIC'
9790: lt_prog_compiler_static='-Bstatic'
9791: ;;
1.10 moko 9792: tcc*)
9793: # Fabrice Bellard et al's Tiny C Compiler
9794: lt_prog_compiler_wl='-Wl,'
9795: lt_prog_compiler_pic='-fPIC'
9796: lt_prog_compiler_static='-static'
9797: ;;
1.5 moko 9798: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9799: # Portland Group compilers (*not* the Pentium gcc compiler,
9800: # which looks to be a dead project)
9801: lt_prog_compiler_wl='-Wl,'
9802: lt_prog_compiler_pic='-fpic'
9803: lt_prog_compiler_static='-Bstatic'
9804: ;;
9805: ccc*)
9806: lt_prog_compiler_wl='-Wl,'
9807: # All Alpha code is PIC.
9808: lt_prog_compiler_static='-non_shared'
9809: ;;
9810: xl* | bgxl* | bgf* | mpixl*)
9811: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9812: lt_prog_compiler_wl='-Wl,'
9813: lt_prog_compiler_pic='-qpic'
9814: lt_prog_compiler_static='-qstaticlink'
9815: ;;
9816: *)
1.10 moko 9817: case `$CC -V 2>&1 | $SED 5q` in
1.5 moko 9818: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9819: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9820: lt_prog_compiler_pic='-KPIC'
9821: lt_prog_compiler_static='-Bstatic'
9822: lt_prog_compiler_wl=''
9823: ;;
9824: *Sun\ F* | *Sun*Fortran*)
9825: lt_prog_compiler_pic='-KPIC'
9826: lt_prog_compiler_static='-Bstatic'
9827: lt_prog_compiler_wl='-Qoption ld '
9828: ;;
9829: *Sun\ C*)
9830: # Sun C 5.9
9831: lt_prog_compiler_pic='-KPIC'
9832: lt_prog_compiler_static='-Bstatic'
9833: lt_prog_compiler_wl='-Wl,'
9834: ;;
9835: *Intel*\ [CF]*Compiler*)
9836: lt_prog_compiler_wl='-Wl,'
9837: lt_prog_compiler_pic='-fPIC'
9838: lt_prog_compiler_static='-static'
9839: ;;
9840: *Portland\ Group*)
9841: lt_prog_compiler_wl='-Wl,'
9842: lt_prog_compiler_pic='-fpic'
9843: lt_prog_compiler_static='-Bstatic'
9844: ;;
9845: esac
9846: ;;
9847: esac
9848: ;;
9849:
9850: newsos6)
9851: lt_prog_compiler_pic='-KPIC'
9852: lt_prog_compiler_static='-Bstatic'
9853: ;;
9854:
1.10 moko 9855: *-mlibc)
9856: lt_prog_compiler_wl='-Wl,'
9857: lt_prog_compiler_pic='-fPIC'
9858: lt_prog_compiler_static='-static'
9859: ;;
9860:
1.5 moko 9861: *nto* | *qnx*)
9862: # QNX uses GNU C++, but need to define -shared option too, otherwise
9863: # it will coredump.
9864: lt_prog_compiler_pic='-fPIC -shared'
9865: ;;
9866:
9867: osf3* | osf4* | osf5*)
9868: lt_prog_compiler_wl='-Wl,'
9869: # All OSF/1 code is PIC.
9870: lt_prog_compiler_static='-non_shared'
9871: ;;
9872:
9873: rdos*)
9874: lt_prog_compiler_static='-non_shared'
9875: ;;
9876:
1.10 moko 9877: serenity*)
9878: ;;
9879:
1.5 moko 9880: solaris*)
9881: lt_prog_compiler_pic='-KPIC'
9882: lt_prog_compiler_static='-Bstatic'
9883: case $cc_basename in
9884: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9885: lt_prog_compiler_wl='-Qoption ld ';;
9886: *)
9887: lt_prog_compiler_wl='-Wl,';;
9888: esac
9889: ;;
9890:
9891: sunos4*)
9892: lt_prog_compiler_wl='-Qoption ld '
9893: lt_prog_compiler_pic='-PIC'
9894: lt_prog_compiler_static='-Bstatic'
9895: ;;
9896:
9897: sysv4 | sysv4.2uw2* | sysv4.3*)
9898: lt_prog_compiler_wl='-Wl,'
9899: lt_prog_compiler_pic='-KPIC'
9900: lt_prog_compiler_static='-Bstatic'
9901: ;;
9902:
9903: sysv4*MP*)
1.10 moko 9904: if test -d /usr/nec; then
1.5 moko 9905: lt_prog_compiler_pic='-Kconform_pic'
9906: lt_prog_compiler_static='-Bstatic'
9907: fi
9908: ;;
9909:
9910: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9911: lt_prog_compiler_wl='-Wl,'
9912: lt_prog_compiler_pic='-KPIC'
9913: lt_prog_compiler_static='-Bstatic'
9914: ;;
9915:
9916: unicos*)
9917: lt_prog_compiler_wl='-Wl,'
9918: lt_prog_compiler_can_build_shared=no
9919: ;;
9920:
9921: uts4*)
9922: lt_prog_compiler_pic='-pic'
9923: lt_prog_compiler_static='-Bstatic'
9924: ;;
9925:
9926: *)
9927: lt_prog_compiler_can_build_shared=no
9928: ;;
9929: esac
9930: fi
9931:
9932: case $host_os in
1.10 moko 9933: # For platforms that do not support PIC, -DPIC is meaningless:
1.5 moko 9934: *djgpp*)
9935: lt_prog_compiler_pic=
9936: ;;
9937: *)
9938: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9939: ;;
9940: esac
9941:
1.10 moko 9942: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9943: printf %s "checking for $compiler option to produce PIC... " >&6; }
9944: if test ${lt_cv_prog_compiler_pic+y}
9945: then :
9946: printf %s "(cached) " >&6
9947: else case e in #(
9948: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9949: esac
1.5 moko 9950: fi
1.10 moko 9951: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9952: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
1.5 moko 9953: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9954:
9955: #
9956: # Check to make sure the PIC flag actually works.
9957: #
9958: if test -n "$lt_prog_compiler_pic"; then
1.10 moko 9959: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9960: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9961: if test ${lt_cv_prog_compiler_pic_works+y}
9962: then :
9963: printf %s "(cached) " >&6
9964: else case e in #(
9965: e) lt_cv_prog_compiler_pic_works=no
1.5 moko 9966: ac_outfile=conftest.$ac_objext
9967: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.10 moko 9968: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.5 moko 9969: # Insert the option either (1) after the last *FLAGS variable, or
9970: # (2) before a word containing "conftest.", or (3) at the end.
9971: # Note that $ac_compile itself does not contain backslashes and begins
9972: # with a dollar sign (not a hyphen), so the echo should work correctly.
9973: # The option is referenced via a variable to avoid confusing sed.
9974: lt_compile=`echo "$ac_compile" | $SED \
9975: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9976: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9977: -e 's:$: $lt_compiler_flag:'`
9978: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9979: (eval "$lt_compile" 2>conftest.err)
9980: ac_status=$?
9981: cat conftest.err >&5
9982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983: if (exit $ac_status) && test -s "$ac_outfile"; then
9984: # The compiler can only warn and ignore the option if not recognized
9985: # So say no if there are warnings other than the usual output.
9986: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9987: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9988: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9989: lt_cv_prog_compiler_pic_works=yes
9990: fi
9991: fi
9992: $RM conftest*
1.10 moko 9993: ;;
9994: esac
1.5 moko 9995: fi
1.10 moko 9996: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9997: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
1.5 moko 9998:
1.10 moko 9999: if test yes = "$lt_cv_prog_compiler_pic_works"; then
1.5 moko 10000: case $lt_prog_compiler_pic in
10001: "" | " "*) ;;
10002: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10003: esac
10004: else
10005: lt_prog_compiler_pic=
10006: lt_prog_compiler_can_build_shared=no
10007: fi
10008:
10009: fi
10010:
10011:
10012:
10013:
10014:
10015:
10016:
10017:
10018:
10019:
10020:
10021: #
10022: # Check to make sure the static flag actually works.
10023: #
10024: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.10 moko 10025: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10026: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10027: if test ${lt_cv_prog_compiler_static_works+y}
10028: then :
10029: printf %s "(cached) " >&6
10030: else case e in #(
10031: e) lt_cv_prog_compiler_static_works=no
10032: save_LDFLAGS=$LDFLAGS
1.5 moko 10033: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10034: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10035: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10036: # The linker can only warn and ignore the option if not recognized
10037: # So say no if there are warnings
10038: if test -s conftest.err; then
10039: # Append any errors to the config.log.
10040: cat conftest.err 1>&5
10041: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10042: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10043: if diff conftest.exp conftest.er2 >/dev/null; then
10044: lt_cv_prog_compiler_static_works=yes
10045: fi
10046: else
10047: lt_cv_prog_compiler_static_works=yes
10048: fi
10049: fi
10050: $RM -r conftest*
1.10 moko 10051: LDFLAGS=$save_LDFLAGS
10052: ;;
10053: esac
1.5 moko 10054: fi
1.10 moko 10055: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10056: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
1.5 moko 10057:
1.10 moko 10058: if test yes = "$lt_cv_prog_compiler_static_works"; then
1.5 moko 10059: :
10060: else
10061: lt_prog_compiler_static=
10062: fi
10063:
10064:
10065:
10066:
10067:
10068:
10069:
1.10 moko 10070: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10071: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10072: if test ${lt_cv_prog_compiler_c_o+y}
10073: then :
10074: printf %s "(cached) " >&6
10075: else case e in #(
10076: e) lt_cv_prog_compiler_c_o=no
1.5 moko 10077: $RM -r conftest 2>/dev/null
10078: mkdir conftest
10079: cd conftest
10080: mkdir out
10081: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10082:
10083: lt_compiler_flag="-o out/conftest2.$ac_objext"
10084: # Insert the option either (1) after the last *FLAGS variable, or
10085: # (2) before a word containing "conftest.", or (3) at the end.
10086: # Note that $ac_compile itself does not contain backslashes and begins
10087: # with a dollar sign (not a hyphen), so the echo should work correctly.
10088: lt_compile=`echo "$ac_compile" | $SED \
10089: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10090: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10091: -e 's:$: $lt_compiler_flag:'`
10092: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10093: (eval "$lt_compile" 2>out/conftest.err)
10094: ac_status=$?
10095: cat out/conftest.err >&5
10096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10098: then
10099: # The compiler can only warn and ignore the option if not recognized
10100: # So say no if there are warnings
10101: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10102: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10103: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10104: lt_cv_prog_compiler_c_o=yes
10105: fi
10106: fi
10107: chmod u+w . 2>&5
10108: $RM conftest*
10109: # SGI C++ compiler will create directory out/ii_files/ for
10110: # template instantiation
10111: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10112: $RM out/* && rmdir out
10113: cd ..
10114: $RM -r conftest
10115: $RM conftest*
1.10 moko 10116: ;;
10117: esac
1.5 moko 10118: fi
1.10 moko 10119: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10120: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.5 moko 10121:
10122:
10123:
10124:
10125:
10126:
1.10 moko 10127: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10128: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10129: if test ${lt_cv_prog_compiler_c_o+y}
10130: then :
10131: printf %s "(cached) " >&6
10132: else case e in #(
10133: e) lt_cv_prog_compiler_c_o=no
1.5 moko 10134: $RM -r conftest 2>/dev/null
10135: mkdir conftest
10136: cd conftest
10137: mkdir out
10138: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10139:
10140: lt_compiler_flag="-o out/conftest2.$ac_objext"
10141: # Insert the option either (1) after the last *FLAGS variable, or
10142: # (2) before a word containing "conftest.", or (3) at the end.
10143: # Note that $ac_compile itself does not contain backslashes and begins
10144: # with a dollar sign (not a hyphen), so the echo should work correctly.
10145: lt_compile=`echo "$ac_compile" | $SED \
10146: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10147: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10148: -e 's:$: $lt_compiler_flag:'`
10149: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10150: (eval "$lt_compile" 2>out/conftest.err)
10151: ac_status=$?
10152: cat out/conftest.err >&5
10153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10155: then
10156: # The compiler can only warn and ignore the option if not recognized
10157: # So say no if there are warnings
10158: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10159: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10160: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10161: lt_cv_prog_compiler_c_o=yes
10162: fi
10163: fi
10164: chmod u+w . 2>&5
10165: $RM conftest*
10166: # SGI C++ compiler will create directory out/ii_files/ for
10167: # template instantiation
10168: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10169: $RM out/* && rmdir out
10170: cd ..
10171: $RM -r conftest
10172: $RM conftest*
1.10 moko 10173: ;;
10174: esac
1.5 moko 10175: fi
1.10 moko 10176: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10177: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.5 moko 10178:
10179:
10180:
10181:
1.10 moko 10182: hard_links=nottested
10183: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
1.5 moko 10184: # do not overwrite the value of need_locks provided by the user
1.10 moko 10185: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10186: printf %s "checking if we can lock with hard links... " >&6; }
1.5 moko 10187: hard_links=yes
10188: $RM conftest*
10189: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10190: touch conftest.a
10191: ln conftest.a conftest.b 2>&5 || hard_links=no
10192: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.10 moko 10193: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10194: printf "%s\n" "$hard_links" >&6; }
10195: if test no = "$hard_links"; then
10196: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10197: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.5 moko 10198: need_locks=warn
10199: fi
10200: else
10201: need_locks=no
10202: fi
10203:
10204:
10205:
10206:
10207:
10208:
1.10 moko 10209: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10210: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.5 moko 10211:
10212: runpath_var=
10213: allow_undefined_flag=
10214: always_export_symbols=no
10215: archive_cmds=
10216: archive_expsym_cmds=
10217: compiler_needs_object=no
10218: enable_shared_with_static_runtimes=no
10219: export_dynamic_flag_spec=
10220: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10221: hardcode_automatic=no
10222: hardcode_direct=no
10223: hardcode_direct_absolute=no
10224: hardcode_libdir_flag_spec=
10225: hardcode_libdir_separator=
10226: hardcode_minus_L=no
10227: hardcode_shlibpath_var=unsupported
10228: inherit_rpath=no
10229: link_all_deplibs=unknown
10230: module_cmds=
10231: module_expsym_cmds=
10232: old_archive_from_new_cmds=
10233: old_archive_from_expsyms_cmds=
10234: thread_safe_flag_spec=
10235: whole_archive_flag_spec=
10236: # include_expsyms should be a list of space-separated symbols to be *always*
10237: # included in the symbol list
10238: include_expsyms=
10239: # exclude_expsyms can be an extended regexp of symbols to exclude
1.10 moko 10240: # it will be wrapped by ' (' and ')$', so one must not match beginning or
10241: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10242: # as well as any symbol that contains 'd'.
1.5 moko 10243: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10244: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10245: # platforms (ab)use it in PIC code, but their linkers get confused if
10246: # the symbol is explicitly referenced. Since portable code cannot
10247: # rely on this symbol name, it's probably fine to never include it in
10248: # preloaded symbol tables.
10249: # Exclude shared library initialization/finalization symbols.
10250: extract_expsyms_cmds=
10251:
10252: case $host_os in
1.10 moko 10253: cygwin* | mingw* | windows* | pw32* | cegcc*)
10254: # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1.5 moko 10255: # When not using gcc, we currently assume that we are using
1.10 moko 10256: # Microsoft Visual C++ or Intel C++ Compiler.
10257: if test yes != "$GCC"; then
1.5 moko 10258: with_gnu_ld=no
10259: fi
10260: ;;
10261: interix*)
1.10 moko 10262: # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1.5 moko 10263: with_gnu_ld=yes
10264: ;;
1.10 moko 10265: linux* | k*bsd*-gnu | gnu*)
10266: link_all_deplibs=no
1.5 moko 10267: ;;
10268: esac
10269:
10270: ld_shlibs=yes
10271:
10272: # On some targets, GNU ld is compatible enough with the native linker
10273: # that we're better off using the native interface for both.
10274: lt_use_gnu_ld_interface=no
1.10 moko 10275: if test yes = "$with_gnu_ld"; then
1.5 moko 10276: case $host_os in
10277: aix*)
10278: # The AIX port of GNU ld has always aspired to compatibility
10279: # with the native linker. However, as the warning in the GNU ld
10280: # block says, versions before 2.19.5* couldn't really create working
10281: # shared libraries, regardless of the interface used.
10282: case `$LD -v 2>&1` in
10283: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10284: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10285: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10286: *)
10287: lt_use_gnu_ld_interface=yes
10288: ;;
10289: esac
10290: ;;
10291: *)
10292: lt_use_gnu_ld_interface=yes
10293: ;;
10294: esac
10295: fi
10296:
1.10 moko 10297: if test yes = "$lt_use_gnu_ld_interface"; then
1.5 moko 10298: # If archive_cmds runs LD, not CC, wlarc should be empty
1.10 moko 10299: wlarc='$wl'
1.5 moko 10300:
10301: # Set some defaults for GNU ld with shared library support. These
10302: # are reset later if shared libraries are not supported. Putting them
10303: # here allows them to be overridden if necessary.
10304: runpath_var=LD_RUN_PATH
1.10 moko 10305: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10306: export_dynamic_flag_spec='$wl--export-dynamic'
1.5 moko 10307: # ancient GNU ld didn't support --whole-archive et. al.
10308: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
1.10 moko 10309: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.5 moko 10310: else
10311: whole_archive_flag_spec=
10312: fi
10313: supports_anon_versioning=no
1.10 moko 10314: case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
1.5 moko 10315: *GNU\ gold*) supports_anon_versioning=yes ;;
10316: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10317: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10318: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10319: *\ 2.11.*) ;; # other 2.11 versions
10320: *) supports_anon_versioning=yes ;;
10321: esac
10322:
10323: # See if GNU ld supports shared libraries.
10324: case $host_os in
10325: aix[3-9]*)
10326: # On AIX/PPC, the GNU linker is very broken
1.10 moko 10327: if test ia64 != "$host_cpu"; then
1.5 moko 10328: ld_shlibs=no
10329: cat <<_LT_EOF 1>&2
10330:
10331: *** Warning: the GNU linker, at least up to release 2.19, is reported
10332: *** to be unable to reliably create shared libraries on AIX.
10333: *** Therefore, libtool is disabling shared libraries support. If you
10334: *** really care for shared libraries, you may want to install binutils
10335: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10336: *** You will then need to restart the configuration process.
10337:
10338: _LT_EOF
10339: fi
10340: ;;
10341:
10342: amigaos*)
10343: case $host_cpu in
10344: powerpc)
10345: # see comment about AmigaOS4 .so support
1.10 moko 10346: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.5 moko 10347: archive_expsym_cmds=''
10348: ;;
10349: m68k)
10350: 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)'
10351: hardcode_libdir_flag_spec='-L$libdir'
10352: hardcode_minus_L=yes
10353: ;;
10354: esac
10355: ;;
10356:
10357: beos*)
10358: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10359: allow_undefined_flag=unsupported
10360: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10361: # support --undefined. This deserves some investigation. FIXME
1.10 moko 10362: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.5 moko 10363: else
10364: ld_shlibs=no
10365: fi
10366: ;;
10367:
1.10 moko 10368: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.5 moko 10369: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10370: # as there is no search path for DLLs.
10371: hardcode_libdir_flag_spec='-L$libdir'
1.10 moko 10372: export_dynamic_flag_spec='$wl--export-all-symbols'
1.5 moko 10373: allow_undefined_flag=unsupported
10374: always_export_symbols=no
10375: enable_shared_with_static_runtimes=yes
10376: 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'
10377: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.10 moko 10378: file_list_spec='@'
1.5 moko 10379:
10380: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.10 moko 10381: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10382: # If the export-symbols file already is a .def file, use it as
10383: # is; otherwise, prepend EXPORTS...
10384: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10385: cp $export_symbols $output_objdir/$soname.def;
10386: else
10387: echo EXPORTS > $output_objdir/$soname.def;
10388: cat $export_symbols >> $output_objdir/$soname.def;
10389: fi~
10390: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.5 moko 10391: else
10392: ld_shlibs=no
10393: fi
10394: ;;
10395:
10396: haiku*)
1.10 moko 10397: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10398: link_all_deplibs=no
10399: ;;
10400:
10401: os2*)
10402: hardcode_libdir_flag_spec='-L$libdir'
10403: hardcode_minus_L=yes
10404: allow_undefined_flag=unsupported
10405: shrext_cmds=.dll
10406: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10407: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10408: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10409: $ECHO EXPORTS >> $output_objdir/$libname.def~
10410: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10411: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10412: emximp -o $lib $output_objdir/$libname.def'
10413: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10414: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10415: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10416: $ECHO EXPORTS >> $output_objdir/$libname.def~
10417: prefix_cmds="$SED"~
10418: if test EXPORTS = "`$SED 1q $export_symbols`"; then
10419: prefix_cmds="$prefix_cmds -e 1d";
10420: fi~
10421: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10422: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10423: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10424: emximp -o $lib $output_objdir/$libname.def'
10425: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10426: enable_shared_with_static_runtimes=yes
10427: file_list_spec='@'
1.5 moko 10428: ;;
10429:
10430: interix[3-9]*)
10431: hardcode_direct=no
10432: hardcode_shlibpath_var=no
1.10 moko 10433: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10434: export_dynamic_flag_spec='$wl-E'
1.5 moko 10435: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10436: # Instead, shared libraries are loaded at an image base (0x10000000 by
10437: # default) and relocated if they conflict, which is a slow very memory
10438: # consuming and fragmenting process. To avoid this, we pick a random,
10439: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10440: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.10 moko 10441: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10442: archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.5 moko 10443: ;;
10444:
10445: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10446: tmp_diet=no
1.10 moko 10447: if test linux-dietlibc = "$host_os"; then
1.5 moko 10448: case $cc_basename in
10449: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10450: esac
10451: fi
10452: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
1.10 moko 10453: && test no = "$tmp_diet"
1.5 moko 10454: then
10455: tmp_addflag=' $pic_flag'
10456: tmp_sharedflag='-shared'
10457: case $cc_basename,$host_cpu in
10458: pgcc*) # Portland Group C compiler
1.10 moko 10459: 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.5 moko 10460: tmp_addflag=' $pic_flag'
10461: ;;
10462: pgf77* | pgf90* | pgf95* | pgfortran*)
10463: # Portland Group f77 and f90 compilers
1.10 moko 10464: 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.5 moko 10465: tmp_addflag=' $pic_flag -Mnomain' ;;
10466: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10467: tmp_addflag=' -i_dynamic' ;;
10468: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10469: tmp_addflag=' -i_dynamic -nofor_main' ;;
10470: ifc* | ifort*) # Intel Fortran compiler
10471: tmp_addflag=' -nofor_main' ;;
10472: lf95*) # Lahey Fortran 8.1
10473: whole_archive_flag_spec=
10474: tmp_sharedflag='--shared' ;;
1.10 moko 10475: nagfor*) # NAGFOR 5.3
10476: tmp_sharedflag='-Wl,-shared' ;;
1.5 moko 10477: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10478: tmp_sharedflag='-qmkshrobj'
10479: tmp_addflag= ;;
10480: nvcc*) # Cuda Compiler Driver 2.2
1.10 moko 10481: 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.5 moko 10482: compiler_needs_object=yes
10483: ;;
10484: esac
1.10 moko 10485: case `$CC -V 2>&1 | $SED 5q` in
1.5 moko 10486: *Sun\ C*) # Sun C 5.9
1.10 moko 10487: 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.5 moko 10488: compiler_needs_object=yes
10489: tmp_sharedflag='-G' ;;
10490: *Sun\ F*) # Sun Fortran 8.3
10491: tmp_sharedflag='-G' ;;
10492: esac
1.10 moko 10493: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.5 moko 10494:
1.10 moko 10495: if test yes = "$supports_anon_versioning"; then
1.5 moko 10496: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.10 moko 10497: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10498: echo "local: *; };" >> $output_objdir/$libname.ver~
10499: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.5 moko 10500: fi
10501:
10502: case $cc_basename in
1.10 moko 10503: tcc*)
10504: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10505: export_dynamic_flag_spec='-rdynamic'
10506: ;;
1.5 moko 10507: xlf* | bgf* | bgxlf* | mpixlf*)
10508: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10509: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.10 moko 10510: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.5 moko 10511: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1.10 moko 10512: if test yes = "$supports_anon_versioning"; then
1.5 moko 10513: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.10 moko 10514: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10515: echo "local: *; };" >> $output_objdir/$libname.ver~
10516: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1.5 moko 10517: fi
10518: ;;
10519: esac
10520: else
10521: ld_shlibs=no
10522: fi
10523: ;;
10524:
1.10 moko 10525: *-mlibc)
10526: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10527: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10528: ;;
10529:
10530: netbsd* | netbsdelf*-gnu)
1.5 moko 10531: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10532: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10533: wlarc=
10534: else
1.10 moko 10535: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10536: 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.5 moko 10537: fi
10538: ;;
10539:
10540: solaris*)
10541: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10542: ld_shlibs=no
10543: cat <<_LT_EOF 1>&2
10544:
10545: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10546: *** create shared libraries on Solaris systems. Therefore, libtool
10547: *** is disabling shared libraries support. We urge you to upgrade GNU
10548: *** binutils to release 2.9.1 or newer. Another option is to modify
10549: *** your PATH or compiler configuration so that the native linker is
10550: *** used, and then restart.
10551:
10552: _LT_EOF
10553: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.10 moko 10554: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10555: 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.5 moko 10556: else
10557: ld_shlibs=no
10558: fi
10559: ;;
10560:
10561: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10562: case `$LD -v 2>&1` in
10563: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10564: ld_shlibs=no
10565: cat <<_LT_EOF 1>&2
10566:
1.10 moko 10567: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
1.5 moko 10568: *** reliably create shared libraries on SCO systems. Therefore, libtool
10569: *** is disabling shared libraries support. We urge you to upgrade GNU
10570: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10571: *** your PATH or compiler configuration so that the native linker is
10572: *** used, and then restart.
10573:
10574: _LT_EOF
10575: ;;
10576: *)
10577: # For security reasons, it is highly recommended that you always
10578: # use absolute paths for naming shared libraries, and exclude the
10579: # DT_RUNPATH tag from executables and libraries. But doing so
10580: # requires that you compile everything twice, which is a pain.
10581: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.10 moko 10582: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10583: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10584: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.5 moko 10585: else
10586: ld_shlibs=no
10587: fi
10588: ;;
10589: esac
10590: ;;
10591:
10592: sunos4*)
10593: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10594: wlarc=
10595: hardcode_direct=yes
10596: hardcode_shlibpath_var=no
10597: ;;
10598:
10599: *)
10600: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.10 moko 10601: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10602: 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.5 moko 10603: else
10604: ld_shlibs=no
10605: fi
10606: ;;
10607: esac
10608:
1.10 moko 10609: if test no = "$ld_shlibs"; then
1.5 moko 10610: runpath_var=
10611: hardcode_libdir_flag_spec=
10612: export_dynamic_flag_spec=
10613: whole_archive_flag_spec=
10614: fi
10615: else
10616: # PORTME fill in a description of your system's linker (not GNU ld)
10617: case $host_os in
10618: aix3*)
10619: allow_undefined_flag=unsupported
10620: always_export_symbols=yes
10621: 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'
10622: # Note: this linker hardcodes the directories in LIBPATH if there
10623: # are no directories specified by -L.
10624: hardcode_minus_L=yes
1.10 moko 10625: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
1.5 moko 10626: # Neither direct hardcoding nor static linking is supported with a
10627: # broken collect2.
10628: hardcode_direct=unsupported
10629: fi
10630: ;;
10631:
10632: aix[4-9]*)
1.10 moko 10633: if test ia64 = "$host_cpu"; then
1.5 moko 10634: # On IA64, the linker does run time linking by default, so we don't
10635: # have to do anything special.
10636: aix_use_runtimelinking=no
10637: exp_sym_flag='-Bexport'
1.10 moko 10638: no_entry_flag=
1.5 moko 10639: else
10640: # If we're using GNU nm, then we don't want the "-C" option.
1.10 moko 10641: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10642: # Without the "-l" option, or with the "-B" option, AIX nm treats
10643: # weak defined symbols like other global defined symbols, whereas
10644: # GNU nm marks them as "W".
10645: # While the 'weak' keyword is ignored in the Export File, we need
10646: # it in the Import File for the 'aix-soname' feature, so we have
10647: # to replace the "-B" option with "-P" for AIX nm.
1.5 moko 10648: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.10 moko 10649: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1.5 moko 10650: else
1.10 moko 10651: export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.5 moko 10652: fi
10653: aix_use_runtimelinking=no
10654:
10655: # Test if we are trying to use run time linking or normal
10656: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.10 moko 10657: # have runtime linking enabled, and use it for executables.
10658: # For shared libraries, we enable/disable runtime linking
10659: # depending on the kind of the shared library created -
10660: # when "with_aix_soname,aix_use_runtimelinking" is:
10661: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10662: # "aix,yes" lib.so shared, rtl:yes, for executables
10663: # lib.a static archive
10664: # "both,no" lib.so.V(shr.o) shared, rtl:yes
10665: # lib.a(lib.so.V) shared, rtl:no, for executables
10666: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10667: # lib.a(lib.so.V) shared, rtl:no
10668: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10669: # lib.a static archive
1.5 moko 10670: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10671: for ld_flag in $LDFLAGS; do
1.10 moko 10672: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
1.5 moko 10673: aix_use_runtimelinking=yes
10674: break
10675: fi
10676: done
1.10 moko 10677: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10678: # With aix-soname=svr4, we create the lib.so.V shared archives only,
10679: # so we don't have lib.a shared libs to link our executables.
10680: # We have to force runtime linking in this case.
10681: aix_use_runtimelinking=yes
10682: LDFLAGS="$LDFLAGS -Wl,-brtl"
10683: fi
1.5 moko 10684: ;;
10685: esac
10686:
10687: exp_sym_flag='-bexport'
10688: no_entry_flag='-bnoentry'
10689: fi
10690:
10691: # When large executables or shared objects are built, AIX ld can
10692: # have problems creating the table of contents. If linking a library
10693: # or program results in "error TOC overflow" add -mminimal-toc to
10694: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10695: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10696:
10697: archive_cmds=''
10698: hardcode_direct=yes
10699: hardcode_direct_absolute=yes
10700: hardcode_libdir_separator=':'
10701: link_all_deplibs=yes
1.10 moko 10702: file_list_spec='$wl-f,'
10703: case $with_aix_soname,$aix_use_runtimelinking in
10704: aix,*) ;; # traditional, no import file
10705: svr4,* | *,yes) # use import file
10706: # The Import File defines what to hardcode.
10707: hardcode_direct=no
10708: hardcode_direct_absolute=no
10709: ;;
10710: esac
1.5 moko 10711:
1.10 moko 10712: if test yes = "$GCC"; then
1.5 moko 10713: case $host_os in aix4.[012]|aix4.[012].*)
10714: # We only want to do this on AIX 4.2 and lower, the check
10715: # below for broken collect2 doesn't work under 4.3+
1.10 moko 10716: collect2name=`$CC -print-prog-name=collect2`
1.5 moko 10717: if test -f "$collect2name" &&
10718: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10719: then
10720: # We have reworked collect2
10721: :
10722: else
10723: # We have old collect2
10724: hardcode_direct=unsupported
10725: # It fails to find uninstalled libraries when the uninstalled
10726: # path is not listed in the libpath. Setting hardcode_minus_L
10727: # to unsupported forces relinking
10728: hardcode_minus_L=yes
10729: hardcode_libdir_flag_spec='-L$libdir'
10730: hardcode_libdir_separator=
10731: fi
10732: ;;
10733: esac
10734: shared_flag='-shared'
1.10 moko 10735: if test yes = "$aix_use_runtimelinking"; then
10736: shared_flag="$shared_flag "'$wl-G'
1.5 moko 10737: fi
1.10 moko 10738: # Need to ensure runtime linking is disabled for the traditional
10739: # shared library, or the linker may eventually find shared libraries
10740: # /with/ Import File - we do not want to mix them.
10741: shared_flag_aix='-shared'
10742: shared_flag_svr4='-shared $wl-G'
1.5 moko 10743: else
10744: # not using gcc
1.10 moko 10745: if test ia64 = "$host_cpu"; then
1.5 moko 10746: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10747: # chokes on -Wl,-G. The following line is correct:
10748: shared_flag='-G'
10749: else
1.10 moko 10750: if test yes = "$aix_use_runtimelinking"; then
10751: shared_flag='$wl-G'
1.5 moko 10752: else
1.10 moko 10753: shared_flag='$wl-bM:SRE'
1.5 moko 10754: fi
1.10 moko 10755: shared_flag_aix='$wl-bM:SRE'
10756: shared_flag_svr4='$wl-G'
1.5 moko 10757: fi
10758: fi
10759:
1.10 moko 10760: export_dynamic_flag_spec='$wl-bexpall'
1.5 moko 10761: # It seems that -bexpall does not export symbols beginning with
10762: # underscore (_), so it is better to generate a list of symbols to export.
10763: always_export_symbols=yes
1.10 moko 10764: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.5 moko 10765: # Warning - without using the other runtime loading flags (-brtl),
10766: # -berok will link without error, but may produce a broken library.
10767: allow_undefined_flag='-berok'
10768: # Determine the default libpath from the value encoded in an
10769: # empty executable.
1.10 moko 10770: if test set = "${lt_cv_aix_libpath+set}"; then
1.5 moko 10771: aix_libpath=$lt_cv_aix_libpath
10772: else
1.10 moko 10773: if test ${lt_cv_aix_libpath_+y}
10774: then :
10775: printf %s "(cached) " >&6
10776: else case e in #(
10777: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 moko 10778: /* end confdefs.h. */
10779:
10780: int
1.10 moko 10781: main (void)
1.5 moko 10782: {
10783:
10784: ;
10785: return 0;
10786: }
10787: _ACEOF
1.10 moko 10788: if ac_fn_c_try_link "$LINENO"
10789: then :
1.5 moko 10790:
10791: lt_aix_libpath_sed='
10792: /Import File Strings/,/^$/ {
10793: /^0/ {
10794: s/^0 *\([^ ]*\) *$/\1/
10795: p
10796: }
10797: }'
10798: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10799: # Check for a 64-bit object if we didn't find anything.
10800: if test -z "$lt_cv_aix_libpath_"; then
10801: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10802: fi
10803: fi
1.10 moko 10804: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 10805: conftest$ac_exeext conftest.$ac_ext
10806: if test -z "$lt_cv_aix_libpath_"; then
1.10 moko 10807: lt_cv_aix_libpath_=/usr/lib:/lib
1.5 moko 10808: fi
1.10 moko 10809: ;;
10810: esac
1.5 moko 10811: fi
10812:
10813: aix_libpath=$lt_cv_aix_libpath_
10814: fi
10815:
1.10 moko 10816: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10817: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1.5 moko 10818: else
1.10 moko 10819: if test ia64 = "$host_cpu"; then
10820: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
1.5 moko 10821: allow_undefined_flag="-z nodefs"
1.10 moko 10822: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
1.5 moko 10823: else
10824: # Determine the default libpath from the value encoded in an
10825: # empty executable.
1.10 moko 10826: if test set = "${lt_cv_aix_libpath+set}"; then
1.5 moko 10827: aix_libpath=$lt_cv_aix_libpath
10828: else
1.10 moko 10829: if test ${lt_cv_aix_libpath_+y}
10830: then :
10831: printf %s "(cached) " >&6
10832: else case e in #(
10833: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 moko 10834: /* end confdefs.h. */
10835:
10836: int
1.10 moko 10837: main (void)
1.5 moko 10838: {
10839:
10840: ;
10841: return 0;
10842: }
10843: _ACEOF
1.10 moko 10844: if ac_fn_c_try_link "$LINENO"
10845: then :
1.5 moko 10846:
10847: lt_aix_libpath_sed='
10848: /Import File Strings/,/^$/ {
10849: /^0/ {
10850: s/^0 *\([^ ]*\) *$/\1/
10851: p
10852: }
10853: }'
10854: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10855: # Check for a 64-bit object if we didn't find anything.
10856: if test -z "$lt_cv_aix_libpath_"; then
10857: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10858: fi
10859: fi
1.10 moko 10860: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 10861: conftest$ac_exeext conftest.$ac_ext
10862: if test -z "$lt_cv_aix_libpath_"; then
1.10 moko 10863: lt_cv_aix_libpath_=/usr/lib:/lib
1.5 moko 10864: fi
1.10 moko 10865: ;;
10866: esac
1.5 moko 10867: fi
10868:
10869: aix_libpath=$lt_cv_aix_libpath_
10870: fi
10871:
1.10 moko 10872: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
1.5 moko 10873: # Warning - without using the other run time loading flags,
10874: # -berok will link without error, but may produce a broken library.
1.10 moko 10875: no_undefined_flag=' $wl-bernotok'
10876: allow_undefined_flag=' $wl-berok'
10877: if test yes = "$with_gnu_ld"; then
1.5 moko 10878: # We only use this code for GNU lds that support --whole-archive.
1.10 moko 10879: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
1.5 moko 10880: else
10881: # Exported symbols can be pulled into shared objects from archives
10882: whole_archive_flag_spec='$convenience'
10883: fi
10884: archive_cmds_need_lc=yes
1.10 moko 10885: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10886: # -brtl affects multiple linker settings, -berok does not and is overridden later
10887: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10888: if test svr4 != "$with_aix_soname"; then
10889: # This is similar to how AIX traditionally builds its shared libraries.
10890: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10891: fi
10892: if test aix != "$with_aix_soname"; then
10893: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10894: else
10895: # used by -dlpreopen to get the symbols
10896: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10897: fi
10898: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
1.5 moko 10899: fi
10900: fi
10901: ;;
10902:
10903: amigaos*)
10904: case $host_cpu in
10905: powerpc)
10906: # see comment about AmigaOS4 .so support
1.10 moko 10907: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.5 moko 10908: archive_expsym_cmds=''
10909: ;;
10910: m68k)
10911: 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)'
10912: hardcode_libdir_flag_spec='-L$libdir'
10913: hardcode_minus_L=yes
10914: ;;
10915: esac
10916: ;;
10917:
10918: bsdi[45]*)
10919: export_dynamic_flag_spec=-rdynamic
10920: ;;
10921:
1.10 moko 10922: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.5 moko 10923: # When not using gcc, we currently assume that we are using
1.10 moko 10924: # Microsoft Visual C++ or Intel C++ Compiler.
1.5 moko 10925: # hardcode_libdir_flag_spec is actually meaningless, as there is
10926: # no search path for DLLs.
10927: case $cc_basename in
1.10 moko 10928: cl* | icl*)
10929: # Native MSVC or ICC
1.5 moko 10930: hardcode_libdir_flag_spec=' '
10931: allow_undefined_flag=unsupported
10932: always_export_symbols=yes
10933: file_list_spec='@'
10934: # Tell ltmain to make .lib files, not .a files.
10935: libext=lib
10936: # Tell ltmain to make .dll files, not .so files.
1.10 moko 10937: shrext_cmds=.dll
1.5 moko 10938: # FIXME: Setting linknames here is a bad hack.
1.10 moko 10939: archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10940: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10941: cp "$export_symbols" "$output_objdir/$soname.def";
10942: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10943: else
10944: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10945: fi~
10946: $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10947: linknames='
1.5 moko 10948: # The linker will not automatically build a static lib if we build a DLL.
10949: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10950: enable_shared_with_static_runtimes=yes
10951: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10952: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10953: # Don't use ranlib
10954: old_postinstall_cmds='chmod 644 $oldlib'
10955: postlink_cmds='lt_outputfile="@OUTPUT@"~
1.10 moko 10956: lt_tool_outputfile="@TOOL_OUTPUT@"~
10957: case $lt_outputfile in
10958: *.exe|*.EXE) ;;
10959: *)
10960: lt_outputfile=$lt_outputfile.exe
10961: lt_tool_outputfile=$lt_tool_outputfile.exe
10962: ;;
10963: esac~
10964: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10965: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10966: $RM "$lt_outputfile.manifest";
10967: fi'
1.5 moko 10968: ;;
10969: *)
1.10 moko 10970: # Assume MSVC and ICC wrapper
1.5 moko 10971: hardcode_libdir_flag_spec=' '
10972: allow_undefined_flag=unsupported
10973: # Tell ltmain to make .lib files, not .a files.
10974: libext=lib
10975: # Tell ltmain to make .dll files, not .so files.
1.10 moko 10976: shrext_cmds=.dll
1.5 moko 10977: # FIXME: Setting linknames here is a bad hack.
10978: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10979: # The linker will automatically build a .lib file if we build a DLL.
10980: old_archive_from_new_cmds='true'
10981: # FIXME: Should let the user specify the lib program.
10982: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10983: enable_shared_with_static_runtimes=yes
10984: ;;
10985: esac
10986: ;;
10987:
10988: darwin* | rhapsody*)
10989:
10990:
10991: archive_cmds_need_lc=no
10992: hardcode_direct=no
10993: hardcode_automatic=yes
10994: hardcode_shlibpath_var=unsupported
1.10 moko 10995: if test yes = "$lt_cv_ld_force_load"; then
10996: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.5 moko 10997:
10998: else
10999: whole_archive_flag_spec=''
11000: fi
11001: link_all_deplibs=yes
1.10 moko 11002: allow_undefined_flag=$_lt_dar_allow_undefined
1.5 moko 11003: case $cc_basename in
1.10 moko 11004: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.5 moko 11005: *) _lt_dar_can_shared=$GCC ;;
11006: esac
1.10 moko 11007: if test yes = "$_lt_dar_can_shared"; then
1.5 moko 11008: output_verbose_link_cmd=func_echo_all
1.10 moko 11009: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11010: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11011: 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"
11012: module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1.5 moko 11013:
11014: else
11015: ld_shlibs=no
11016: fi
11017:
11018: ;;
11019:
11020: dgux*)
11021: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11022: hardcode_libdir_flag_spec='-L$libdir'
11023: hardcode_shlibpath_var=no
11024: ;;
11025:
11026: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11027: # support. Future versions do this automatically, but an explicit c++rt0.o
11028: # does not break anything, and helps significantly (at the cost of a little
11029: # extra space).
11030: freebsd2.2*)
11031: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11032: hardcode_libdir_flag_spec='-R$libdir'
11033: hardcode_direct=yes
11034: hardcode_shlibpath_var=no
11035: ;;
11036:
11037: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11038: freebsd2.*)
11039: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11040: hardcode_direct=yes
11041: hardcode_minus_L=yes
11042: hardcode_shlibpath_var=no
11043: ;;
11044:
11045: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.10 moko 11046: freebsd* | dragonfly* | midnightbsd*)
1.5 moko 11047: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11048: hardcode_libdir_flag_spec='-R$libdir'
11049: hardcode_direct=yes
11050: hardcode_shlibpath_var=no
11051: ;;
11052:
11053: hpux9*)
1.10 moko 11054: if test yes = "$GCC"; then
11055: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.5 moko 11056: else
1.10 moko 11057: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.5 moko 11058: fi
1.10 moko 11059: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.5 moko 11060: hardcode_libdir_separator=:
11061: hardcode_direct=yes
11062:
11063: # hardcode_minus_L: Not really in the search PATH,
11064: # but as the default location of the library.
11065: hardcode_minus_L=yes
1.10 moko 11066: export_dynamic_flag_spec='$wl-E'
1.5 moko 11067: ;;
11068:
11069: hpux10*)
1.10 moko 11070: if test yes,no = "$GCC,$with_gnu_ld"; then
11071: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11072: else
11073: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11074: fi
1.10 moko 11075: if test no = "$with_gnu_ld"; then
11076: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.5 moko 11077: hardcode_libdir_separator=:
11078: hardcode_direct=yes
11079: hardcode_direct_absolute=yes
1.10 moko 11080: export_dynamic_flag_spec='$wl-E'
1.5 moko 11081: # hardcode_minus_L: Not really in the search PATH,
11082: # but as the default location of the library.
11083: hardcode_minus_L=yes
11084: fi
11085: ;;
11086:
11087: hpux11*)
1.10 moko 11088: if test yes,no = "$GCC,$with_gnu_ld"; then
1.5 moko 11089: case $host_cpu in
11090: hppa*64*)
1.10 moko 11091: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11092: ;;
11093: ia64*)
1.10 moko 11094: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11095: ;;
11096: *)
1.10 moko 11097: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11098: ;;
11099: esac
11100: else
11101: case $host_cpu in
11102: hppa*64*)
1.10 moko 11103: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11104: ;;
11105: ia64*)
1.10 moko 11106: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11107: ;;
11108: *)
11109:
11110: # Older versions of the 11.00 compiler do not understand -b yet
11111: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.10 moko 11112: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11113: printf %s "checking if $CC understands -b... " >&6; }
11114: if test ${lt_cv_prog_compiler__b+y}
11115: then :
11116: printf %s "(cached) " >&6
11117: else case e in #(
11118: e) lt_cv_prog_compiler__b=no
11119: save_LDFLAGS=$LDFLAGS
1.5 moko 11120: LDFLAGS="$LDFLAGS -b"
11121: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11122: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11123: # The linker can only warn and ignore the option if not recognized
11124: # So say no if there are warnings
11125: if test -s conftest.err; then
11126: # Append any errors to the config.log.
11127: cat conftest.err 1>&5
11128: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11129: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11130: if diff conftest.exp conftest.er2 >/dev/null; then
11131: lt_cv_prog_compiler__b=yes
11132: fi
11133: else
11134: lt_cv_prog_compiler__b=yes
11135: fi
11136: fi
11137: $RM -r conftest*
1.10 moko 11138: LDFLAGS=$save_LDFLAGS
11139: ;;
11140: esac
1.5 moko 11141: fi
1.10 moko 11142: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11143: printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1.5 moko 11144:
1.10 moko 11145: if test yes = "$lt_cv_prog_compiler__b"; then
11146: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11147: else
11148: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11149: fi
11150:
11151: ;;
11152: esac
11153: fi
1.10 moko 11154: if test no = "$with_gnu_ld"; then
11155: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.5 moko 11156: hardcode_libdir_separator=:
11157:
11158: case $host_cpu in
11159: hppa*64*|ia64*)
11160: hardcode_direct=no
11161: hardcode_shlibpath_var=no
11162: ;;
11163: *)
11164: hardcode_direct=yes
11165: hardcode_direct_absolute=yes
1.10 moko 11166: export_dynamic_flag_spec='$wl-E'
1.5 moko 11167:
11168: # hardcode_minus_L: Not really in the search PATH,
11169: # but as the default location of the library.
11170: hardcode_minus_L=yes
11171: ;;
11172: esac
11173: fi
11174: ;;
11175:
11176: irix5* | irix6* | nonstopux*)
1.10 moko 11177: if test yes = "$GCC"; then
11178: 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.5 moko 11179: # Try to use the -exported_symbol ld option, if it does not
11180: # work, assume that -exports_file does not work either and
11181: # implicitly export all symbols.
11182: # This should be the same for all languages, so no per-tag cache variable.
1.10 moko 11183: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11184: printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11185: if test ${lt_cv_irix_exported_symbol+y}
11186: then :
11187: printf %s "(cached) " >&6
11188: else case e in #(
11189: e) save_LDFLAGS=$LDFLAGS
11190: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1.5 moko 11191: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192: /* end confdefs.h. */
11193: int foo (void) { return 0; }
11194: _ACEOF
1.10 moko 11195: if ac_fn_c_try_link "$LINENO"
11196: then :
1.5 moko 11197: lt_cv_irix_exported_symbol=yes
1.10 moko 11198: else case e in #(
11199: e) lt_cv_irix_exported_symbol=no ;;
11200: esac
1.5 moko 11201: fi
1.10 moko 11202: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 11203: conftest$ac_exeext conftest.$ac_ext
1.10 moko 11204: LDFLAGS=$save_LDFLAGS ;;
11205: esac
1.5 moko 11206: fi
1.10 moko 11207: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11208: printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11209: if test yes = "$lt_cv_irix_exported_symbol"; then
11210: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
1.5 moko 11211: fi
1.10 moko 11212: link_all_deplibs=no
1.5 moko 11213: else
1.10 moko 11214: 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'
11215: 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.5 moko 11216: fi
11217: archive_cmds_need_lc='no'
1.10 moko 11218: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.5 moko 11219: hardcode_libdir_separator=:
11220: inherit_rpath=yes
11221: link_all_deplibs=yes
11222: ;;
11223:
1.10 moko 11224: linux*)
11225: case $cc_basename in
11226: tcc*)
11227: # Fabrice Bellard et al's Tiny C Compiler
11228: ld_shlibs=yes
11229: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11230: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11231: ;;
11232: esac
11233: ;;
11234:
11235: *-mlibc)
11236: ;;
11237:
11238: netbsd* | netbsdelf*-gnu)
1.5 moko 11239: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11240: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11241: else
11242: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11243: fi
11244: hardcode_libdir_flag_spec='-R$libdir'
11245: hardcode_direct=yes
11246: hardcode_shlibpath_var=no
11247: ;;
11248:
11249: newsos6)
11250: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11251: hardcode_direct=yes
1.10 moko 11252: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.5 moko 11253: hardcode_libdir_separator=:
11254: hardcode_shlibpath_var=no
11255: ;;
11256:
11257: *nto* | *qnx*)
11258: ;;
11259:
11260: openbsd*)
11261: if test -f /usr/libexec/ld.so; then
11262: hardcode_direct=yes
11263: hardcode_shlibpath_var=no
11264: hardcode_direct_absolute=yes
1.10 moko 11265: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.5 moko 11266: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.10 moko 11267: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11268: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11269: export_dynamic_flag_spec='$wl-E'
1.5 moko 11270: else
1.10 moko 11271: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11272: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1.5 moko 11273: fi
11274: else
11275: ld_shlibs=no
11276: fi
11277: ;;
11278:
11279: os2*)
11280: hardcode_libdir_flag_spec='-L$libdir'
11281: hardcode_minus_L=yes
11282: allow_undefined_flag=unsupported
1.10 moko 11283: shrext_cmds=.dll
11284: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11285: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11286: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11287: $ECHO EXPORTS >> $output_objdir/$libname.def~
11288: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11289: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11290: emximp -o $lib $output_objdir/$libname.def'
11291: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11292: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11293: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11294: $ECHO EXPORTS >> $output_objdir/$libname.def~
11295: prefix_cmds="$SED"~
11296: if test EXPORTS = "`$SED 1q $export_symbols`"; then
11297: prefix_cmds="$prefix_cmds -e 1d";
11298: fi~
11299: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11300: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11301: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11302: emximp -o $lib $output_objdir/$libname.def'
11303: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11304: enable_shared_with_static_runtimes=yes
11305: file_list_spec='@'
1.5 moko 11306: ;;
11307:
11308: osf3*)
1.10 moko 11309: if test yes = "$GCC"; then
11310: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11311: 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.5 moko 11312: else
11313: allow_undefined_flag=' -expect_unresolved \*'
1.10 moko 11314: 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.5 moko 11315: fi
11316: archive_cmds_need_lc='no'
1.10 moko 11317: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.5 moko 11318: hardcode_libdir_separator=:
11319: ;;
11320:
11321: osf4* | osf5*) # as osf3* with the addition of -msym flag
1.10 moko 11322: if test yes = "$GCC"; then
11323: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11324: 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'
11325: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.5 moko 11326: else
11327: allow_undefined_flag=' -expect_unresolved \*'
1.10 moko 11328: 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.5 moko 11329: 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.10 moko 11330: $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.5 moko 11331:
11332: # Both c and cxx compiler support -rpath directly
11333: hardcode_libdir_flag_spec='-rpath $libdir'
11334: fi
11335: archive_cmds_need_lc='no'
11336: hardcode_libdir_separator=:
11337: ;;
11338:
1.10 moko 11339: serenity*)
11340: ;;
11341:
1.5 moko 11342: solaris*)
11343: no_undefined_flag=' -z defs'
1.10 moko 11344: if test yes = "$GCC"; then
11345: wlarc='$wl'
11346: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11347: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.10 moko 11348: $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.5 moko 11349: else
11350: case `$CC -V 2>&1` in
11351: *"Compilers 5.0"*)
11352: wlarc=''
1.10 moko 11353: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.5 moko 11354: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.10 moko 11355: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1.5 moko 11356: ;;
11357: *)
1.10 moko 11358: wlarc='$wl'
11359: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11360: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.10 moko 11361: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.5 moko 11362: ;;
11363: esac
11364: fi
11365: hardcode_libdir_flag_spec='-R$libdir'
11366: hardcode_shlibpath_var=no
11367: case $host_os in
11368: solaris2.[0-5] | solaris2.[0-5].*) ;;
11369: *)
11370: # The compiler driver will combine and reorder linker options,
1.10 moko 11371: # but understands '-z linker_flag'. GCC discards it without '$wl',
1.5 moko 11372: # but is careful enough not to reorder.
11373: # Supported since Solaris 2.6 (maybe 2.5.1?)
1.10 moko 11374: if test yes = "$GCC"; then
11375: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.4 paf 11376: else
1.5 moko 11377: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
1.4 paf 11378: fi
1.5 moko 11379: ;;
11380: esac
11381: link_all_deplibs=yes
11382: ;;
11383:
11384: sunos4*)
1.10 moko 11385: if test sequent = "$host_vendor"; then
1.5 moko 11386: # Use $CC to link under sequent, because it throws in some extra .o
11387: # files that make .init and .fini sections work.
1.10 moko 11388: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.5 moko 11389: else
11390: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11391: fi
11392: hardcode_libdir_flag_spec='-L$libdir'
11393: hardcode_direct=yes
11394: hardcode_minus_L=yes
11395: hardcode_shlibpath_var=no
11396: ;;
11397:
11398: sysv4)
11399: case $host_vendor in
11400: sni)
11401: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11402: hardcode_direct=yes # is this really true???
11403: ;;
11404: siemens)
11405: ## LD is ld it makes a PLAMLIB
11406: ## CC just makes a GrossModule.
11407: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11408: reload_cmds='$CC -r -o $output$reload_objs'
11409: hardcode_direct=no
11410: ;;
11411: motorola)
11412: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11413: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11414: ;;
1.4 paf 11415: esac
1.5 moko 11416: runpath_var='LD_RUN_PATH'
11417: hardcode_shlibpath_var=no
11418: ;;
11419:
11420: sysv4.3*)
11421: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11422: hardcode_shlibpath_var=no
11423: export_dynamic_flag_spec='-Bexport'
11424: ;;
11425:
11426: sysv4*MP*)
11427: if test -d /usr/nec; then
11428: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11429: hardcode_shlibpath_var=no
11430: runpath_var=LD_RUN_PATH
11431: hardcode_runpath_var=yes
11432: ld_shlibs=yes
11433: fi
11434: ;;
11435:
11436: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.10 moko 11437: no_undefined_flag='$wl-z,text'
1.5 moko 11438: archive_cmds_need_lc=no
11439: hardcode_shlibpath_var=no
11440: runpath_var='LD_RUN_PATH'
1.4 paf 11441:
1.10 moko 11442: if test yes = "$GCC"; then
11443: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11444: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 11445: else
1.10 moko 11446: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11447: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 11448: fi
1.5 moko 11449: ;;
1.4 paf 11450:
1.5 moko 11451: sysv5* | sco3.2v5* | sco5v6*)
1.10 moko 11452: # Note: We CANNOT use -z defs as we might desire, because we do not
1.5 moko 11453: # link with -lc, and that would cause any symbols used from libc to
11454: # always be unresolved, which means just about no library would
11455: # ever link correctly. If we're not using GNU ld we use -z text
11456: # though, which does catch some bad symbols but isn't as heavy-handed
11457: # as -z defs.
1.10 moko 11458: no_undefined_flag='$wl-z,text'
11459: allow_undefined_flag='$wl-z,nodefs'
1.5 moko 11460: archive_cmds_need_lc=no
11461: hardcode_shlibpath_var=no
1.10 moko 11462: hardcode_libdir_flag_spec='$wl-R,$libdir'
1.5 moko 11463: hardcode_libdir_separator=':'
11464: link_all_deplibs=yes
1.10 moko 11465: export_dynamic_flag_spec='$wl-Bexport'
1.5 moko 11466: runpath_var='LD_RUN_PATH'
11467:
1.10 moko 11468: if test yes = "$GCC"; then
11469: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11470: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 11471: else
1.10 moko 11472: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11473: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 11474: fi
1.5 moko 11475: ;;
11476:
11477: uts4*)
11478: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11479: hardcode_libdir_flag_spec='-L$libdir'
11480: hardcode_shlibpath_var=no
11481: ;;
11482:
11483: *)
11484: ld_shlibs=no
11485: ;;
11486: esac
11487:
1.10 moko 11488: if test sni = "$host_vendor"; then
1.5 moko 11489: case $host in
11490: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.10 moko 11491: export_dynamic_flag_spec='$wl-Blargedynsym'
1.5 moko 11492: ;;
11493: esac
1.4 paf 11494: fi
1.5 moko 11495: fi
11496:
1.10 moko 11497: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11498: printf "%s\n" "$ld_shlibs" >&6; }
11499: test no = "$ld_shlibs" && can_build_shared=no
1.5 moko 11500:
11501: with_gnu_ld=$with_gnu_ld
11502:
11503:
11504:
11505:
11506:
11507:
11508:
11509:
11510:
11511:
11512:
11513:
11514:
1.4 paf 11515:
11516:
1.5 moko 11517: #
11518: # Do we need to explicitly link libc?
11519: #
11520: case "x$archive_cmds_need_lc" in
11521: x|xyes)
11522: # Assume -lc should be added
11523: archive_cmds_need_lc=yes
1.4 paf 11524:
1.10 moko 11525: if test yes,yes = "$GCC,$enable_shared"; then
1.5 moko 11526: case $archive_cmds in
11527: *'~'*)
11528: # FIXME: we may have to deal with multi-command sequences.
1.4 paf 11529: ;;
1.5 moko 11530: '$CC '*)
11531: # Test whether the compiler implicitly links with -lc since on some
11532: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11533: # to ld, don't add -lc before -lgcc.
1.10 moko 11534: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11535: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11536: if test ${lt_cv_archive_cmds_need_lc+y}
11537: then :
11538: printf %s "(cached) " >&6
11539: else case e in #(
11540: e) $RM conftest*
1.5 moko 11541: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11542:
11543: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11544: (eval $ac_compile) 2>&5
11545: ac_status=$?
1.10 moko 11546: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 11547: test $ac_status = 0; } 2>conftest.err; then
11548: soname=conftest
11549: lib=conftest
11550: libobjs=conftest.$ac_objext
11551: deplibs=
11552: wl=$lt_prog_compiler_wl
11553: pic_flag=$lt_prog_compiler_pic
11554: compiler_flags=-v
11555: linker_flags=-v
11556: verstring=
11557: output_objdir=.
11558: libname=conftest
11559: lt_save_allow_undefined_flag=$allow_undefined_flag
11560: allow_undefined_flag=
11561: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11562: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11563: ac_status=$?
1.10 moko 11564: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 11565: test $ac_status = 0; }
11566: then
11567: lt_cv_archive_cmds_need_lc=no
11568: else
11569: lt_cv_archive_cmds_need_lc=yes
11570: fi
11571: allow_undefined_flag=$lt_save_allow_undefined_flag
11572: else
11573: cat conftest.err 1>&5
11574: fi
11575: $RM conftest*
1.10 moko 11576: ;;
11577: esac
1.5 moko 11578: fi
1.10 moko 11579: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11580: printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1.5 moko 11581: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1.4 paf 11582: ;;
11583: esac
1.5 moko 11584: fi
11585: ;;
11586: esac
11587:
11588:
11589:
11590:
11591:
11592:
11593:
11594:
11595:
11596:
11597:
11598:
11599:
11600:
11601:
11602:
11603:
11604:
11605:
11606:
11607:
11608:
11609:
11610:
11611:
11612:
11613:
11614:
11615:
11616:
11617:
11618:
11619:
11620:
11621:
11622:
11623:
11624:
11625:
11626:
11627:
11628:
11629:
11630:
11631:
11632:
11633:
11634:
11635:
11636:
11637:
11638:
11639:
11640:
11641:
11642:
11643:
11644:
11645:
11646:
11647:
11648:
11649:
11650:
11651:
11652:
11653:
11654:
11655:
11656:
11657:
11658:
11659:
11660:
11661:
11662:
11663:
11664:
11665:
11666:
11667:
11668:
11669:
11670:
11671:
11672:
11673:
11674:
11675:
11676:
11677:
11678:
11679:
11680:
11681:
11682:
11683:
11684:
11685:
11686:
11687:
11688:
11689:
11690:
11691:
11692:
11693:
11694:
11695:
11696:
11697:
11698:
11699:
11700:
11701:
11702:
11703:
11704:
11705:
11706:
11707:
11708:
11709:
11710:
11711:
11712:
11713:
11714:
1.4 paf 11715:
11716:
11717:
11718:
11719:
11720:
11721:
11722:
11723:
11724:
11725:
11726:
11727:
11728:
11729:
11730:
11731:
11732:
11733:
11734:
11735:
11736:
11737:
11738:
1.10 moko 11739: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11740: printf %s "checking dynamic linker characteristics... " >&6; }
1.4 paf 11741:
1.10 moko 11742: if test yes = "$GCC"; then
1.5 moko 11743: case $host_os in
1.10 moko 11744: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11745: *) lt_awk_arg='/^libraries:/' ;;
1.5 moko 11746: esac
11747: case $host_os in
1.10 moko 11748: mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11749: *) lt_sed_strip_eq='s|=/|/|g' ;;
1.5 moko 11750: esac
11751: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11752: case $lt_search_path_spec in
11753: *\;*)
11754: # if the path contains ";" then we assume it to be the separator
11755: # otherwise default to the standard path separator (i.e. ":") - it is
11756: # assumed that no part of a normal pathname contains ";" but that should
11757: # okay in the real world where ";" in dirpaths is itself problematic.
11758: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
1.4 paf 11759: ;;
11760: *)
1.5 moko 11761: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
1.4 paf 11762: ;;
11763: esac
1.5 moko 11764: # Ok, now we have the path, separated by spaces, we can step through it
1.10 moko 11765: # and add multilib dir if necessary...
1.5 moko 11766: lt_tmp_lt_search_path_spec=
1.10 moko 11767: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11768: # ...but if some path component already ends with the multilib dir we assume
11769: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11770: case "$lt_multi_os_dir; $lt_search_path_spec " in
11771: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11772: lt_multi_os_dir=
11773: ;;
11774: esac
1.5 moko 11775: for lt_sys_path in $lt_search_path_spec; do
1.10 moko 11776: if test -d "$lt_sys_path$lt_multi_os_dir"; then
11777: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11778: elif test -n "$lt_multi_os_dir"; then
1.5 moko 11779: test -d "$lt_sys_path" && \
11780: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11781: fi
11782: done
11783: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.10 moko 11784: BEGIN {RS = " "; FS = "/|\n";} {
11785: lt_foo = "";
11786: lt_count = 0;
1.5 moko 11787: for (lt_i = NF; lt_i > 0; lt_i--) {
11788: if ($lt_i != "" && $lt_i != ".") {
11789: if ($lt_i == "..") {
11790: lt_count++;
11791: } else {
11792: if (lt_count == 0) {
1.10 moko 11793: lt_foo = "/" $lt_i lt_foo;
1.5 moko 11794: } else {
11795: lt_count--;
11796: }
11797: }
11798: }
11799: }
11800: if (lt_foo != "") { lt_freq[lt_foo]++; }
11801: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11802: }'`
11803: # AWK program above erroneously prepends '/' to C:/dos/paths
11804: # for these hosts.
11805: case $host_os in
1.10 moko 11806: mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11807: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1.5 moko 11808: esac
11809: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.4 paf 11810: else
1.5 moko 11811: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.4 paf 11812: fi
11813: library_names_spec=
11814: libname_spec='lib$name'
11815: soname_spec=
1.10 moko 11816: shrext_cmds=.so
1.4 paf 11817: postinstall_cmds=
11818: postuninstall_cmds=
11819: finish_cmds=
11820: finish_eval=
11821: shlibpath_var=
11822: shlibpath_overrides_runpath=unknown
11823: version_type=none
11824: dynamic_linker="$host_os ld.so"
11825: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.5 moko 11826: need_lib_prefix=unknown
11827: hardcode_into_libs=no
11828:
11829: # when you set need_version to no, make sure it does not cause -set_version
11830: # flags to be left without arguments
11831: need_version=unknown
1.4 paf 11832:
1.10 moko 11833:
11834:
1.4 paf 11835: case $host_os in
11836: aix3*)
1.5 moko 11837: version_type=linux # correct to gnu/linux during the next big refactor
1.10 moko 11838: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.4 paf 11839: shlibpath_var=LIBPATH
11840:
1.5 moko 11841: # AIX 3 has no versioning support, so we append a major version to the name.
1.10 moko 11842: soname_spec='$libname$release$shared_ext$major'
1.4 paf 11843: ;;
11844:
1.5 moko 11845: aix[4-9]*)
11846: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 11847: need_lib_prefix=no
11848: need_version=no
11849: hardcode_into_libs=yes
1.10 moko 11850: if test ia64 = "$host_cpu"; then
1.4 paf 11851: # AIX 5 supports IA64
1.10 moko 11852: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.4 paf 11853: shlibpath_var=LD_LIBRARY_PATH
11854: else
11855: # With GCC up to 2.95.x, collect2 would create an import file
11856: # for dependence libraries. The import file would start with
1.10 moko 11857: # the line '#! .'. This would cause the generated library to
11858: # depend on '.', always an invalid library. This was fixed in
1.4 paf 11859: # development snapshots of GCC prior to 3.0.
11860: case $host_os in
11861: aix4 | aix4.[01] | aix4.[01].*)
1.5 moko 11862: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11863: echo ' yes '
1.10 moko 11864: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.5 moko 11865: :
11866: else
11867: can_build_shared=no
11868: fi
11869: ;;
1.4 paf 11870: esac
1.10 moko 11871: # Using Import Files as archive members, it is possible to support
11872: # filename-based versioning of shared library archives on AIX. While
11873: # this would work for both with and without runtime linking, it will
11874: # prevent static linking of such archives. So we do filename-based
11875: # shared library versioning with .so extension only, which is used
11876: # when both runtime linking and shared linking is enabled.
11877: # Unfortunately, runtime linking may impact performance, so we do
11878: # not want this to be the default eventually. Also, we use the
11879: # versioned .so libs for executables only if there is the -brtl
11880: # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11881: # To allow for filename-based versioning support, we need to create
11882: # libNAME.so.V as an archive file, containing:
11883: # *) an Import File, referring to the versioned filename of the
11884: # archive as well as the shared archive member, telling the
11885: # bitwidth (32 or 64) of that shared object, and providing the
11886: # list of exported symbols of that shared object, eventually
11887: # decorated with the 'weak' keyword
11888: # *) the shared object with the F_LOADONLY flag set, to really avoid
11889: # it being seen by the linker.
11890: # At run time we better use the real file rather than another symlink,
11891: # but for link time we create the symlink libNAME.so -> libNAME.so.V
11892:
11893: case $with_aix_soname,$aix_use_runtimelinking in
11894: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.5 moko 11895: # soname into executable. Probably we can add versioning support to
11896: # collect2, so additional links can be useful in future.
1.10 moko 11897: aix,yes) # traditional libtool
11898: dynamic_linker='AIX unversionable lib.so'
1.4 paf 11899: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11900: # instead of lib<name>.a to let people know that these are not
11901: # typical AIX shared libraries.
1.10 moko 11902: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903: ;;
11904: aix,no) # traditional AIX only
11905: dynamic_linker='AIX lib.a(lib.so.V)'
1.4 paf 11906: # We preserve .a as extension for shared libraries through AIX4.2
11907: # and later when we are not doing run time linking.
1.10 moko 11908: library_names_spec='$libname$release.a $libname.a'
11909: soname_spec='$libname$release$shared_ext$major'
11910: ;;
11911: svr4,*) # full svr4 only
11912: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11913: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11914: # We do not specify a path in Import Files, so LIBPATH fires.
11915: shlibpath_overrides_runpath=yes
11916: ;;
11917: *,yes) # both, prefer svr4
11918: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11919: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11920: # unpreferred sharedlib libNAME.a needs extra handling
11921: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11922: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11923: # We do not specify a path in Import Files, so LIBPATH fires.
11924: shlibpath_overrides_runpath=yes
11925: ;;
11926: *,no) # both, prefer aix
11927: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11928: library_names_spec='$libname$release.a $libname.a'
11929: soname_spec='$libname$release$shared_ext$major'
11930: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11931: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11932: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11933: ;;
11934: esac
1.4 paf 11935: shlibpath_var=LIBPATH
11936: fi
11937: ;;
11938:
11939: amigaos*)
1.5 moko 11940: case $host_cpu in
11941: powerpc)
11942: # Since July 2007 AmigaOS4 officially supports .so libraries.
11943: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.10 moko 11944: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.5 moko 11945: ;;
11946: m68k)
11947: library_names_spec='$libname.ixlibrary $libname.a'
11948: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.10 moko 11949: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1.5 moko 11950: ;;
11951: esac
1.4 paf 11952: ;;
11953:
11954: beos*)
1.10 moko 11955: library_names_spec='$libname$shared_ext'
1.4 paf 11956: dynamic_linker="$host_os ld.so"
11957: shlibpath_var=LIBRARY_PATH
11958: ;;
11959:
1.5 moko 11960: bsdi[45]*)
11961: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 11962: need_version=no
1.10 moko 11963: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964: soname_spec='$libname$release$shared_ext$major'
1.4 paf 11965: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11966: shlibpath_var=LD_LIBRARY_PATH
11967: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11968: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11969: # the default ld.so.conf also contains /usr/contrib/lib and
11970: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11971: # libtool to hard-code these into programs
11972: ;;
11973:
1.10 moko 11974: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.4 paf 11975: version_type=windows
1.10 moko 11976: shrext_cmds=.dll
1.4 paf 11977: need_version=no
11978: need_lib_prefix=no
1.5 moko 11979:
11980: case $GCC,$cc_basename in
11981: yes,*)
11982: # gcc
1.4 paf 11983: library_names_spec='$libname.dll.a'
1.5 moko 11984: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.10 moko 11985: # If user builds GCC with multilib enabled,
11986: # it should just install on $(libdir)
11987: # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11988: if test xyes = x"$multilib"; then
11989: postinstall_cmds='base_file=`basename \$file`~
11990: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11991: dldir=$destdir/`dirname \$dlpath`~
11992: $install_prog $dir/$dlname $destdir/$dlname~
11993: chmod a+x $destdir/$dlname~
11994: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11995: eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11996: fi'
11997: else
11998: postinstall_cmds='base_file=`basename \$file`~
11999: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12000: dldir=$destdir/`dirname \$dlpath`~
12001: test -d \$dldir || mkdir -p \$dldir~
12002: $install_prog $dir/$dlname \$dldir/$dlname~
12003: chmod a+x \$dldir/$dlname~
12004: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12005: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12006: fi'
12007: fi
1.5 moko 12008: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1.4 paf 12009: dlpath=$dir/\$dldll~
1.5 moko 12010: $RM \$dlpath'
12011: shlibpath_overrides_runpath=yes
12012:
12013: case $host_os in
12014: cygwin*)
12015: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.10 moko 12016: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.5 moko 12017:
12018: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12019: ;;
1.10 moko 12020: mingw* | windows* | cegcc*)
1.5 moko 12021: # MinGW DLLs use traditional 'lib' prefix
1.10 moko 12022: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.5 moko 12023: ;;
12024: pw32*)
12025: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.10 moko 12026: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.5 moko 12027: ;;
12028: esac
12029: dynamic_linker='Win32 ld.exe'
1.4 paf 12030: ;;
1.5 moko 12031:
1.10 moko 12032: *,cl* | *,icl*)
12033: # Native MSVC or ICC
1.5 moko 12034: libname_spec='$name'
1.10 moko 12035: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12036: library_names_spec='$libname.dll.lib'
1.5 moko 12037:
12038: case $build_os in
1.10 moko 12039: mingw* | windows*)
1.5 moko 12040: sys_lib_search_path_spec=
12041: lt_save_ifs=$IFS
12042: IFS=';'
12043: for lt_path in $LIB
12044: do
12045: IFS=$lt_save_ifs
12046: # Let DOS variable expansion print the short 8.3 style file name.
12047: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12048: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12049: done
12050: IFS=$lt_save_ifs
12051: # Convert to MSYS style.
1.10 moko 12052: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1.5 moko 12053: ;;
12054: cygwin*)
12055: # Convert to unix form, then to dos form, then back to unix form
12056: # but this time dos style (no spaces!) so that the unix form looks
12057: # like /cygdrive/c/PROGRA~1:/cygdr...
12058: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12059: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12060: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12061: ;;
12062: *)
1.10 moko 12063: sys_lib_search_path_spec=$LIB
1.5 moko 12064: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12065: # It is most probably a Windows format PATH.
12066: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12067: else
12068: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12069: fi
12070: # FIXME: find the short name or the path components, as spaces are
12071: # common. (e.g. "Program Files" -> "PROGRA~1")
12072: ;;
12073: esac
12074:
12075: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.10 moko 12076: postinstall_cmds='base_file=`basename \$file`~
12077: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.5 moko 12078: dldir=$destdir/`dirname \$dlpath`~
12079: test -d \$dldir || mkdir -p \$dldir~
12080: $install_prog $dir/$dlname \$dldir/$dlname'
12081: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12082: dlpath=$dir/\$dldll~
12083: $RM \$dlpath'
12084: shlibpath_overrides_runpath=yes
12085: dynamic_linker='Win32 link.exe'
1.4 paf 12086: ;;
1.5 moko 12087:
1.4 paf 12088: *)
1.10 moko 12089: # Assume MSVC and ICC wrapper
12090: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.5 moko 12091: dynamic_linker='Win32 ld.exe'
1.4 paf 12092: ;;
12093: esac
12094: # FIXME: first we should search . and the directory the executable is in
12095: shlibpath_var=PATH
12096: ;;
12097:
12098: darwin* | rhapsody*)
12099: dynamic_linker="$host_os dyld"
12100: version_type=darwin
12101: need_lib_prefix=no
12102: need_version=no
1.10 moko 12103: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12104: soname_spec='$libname$release$major$shared_ext'
1.4 paf 12105: shlibpath_overrides_runpath=yes
12106: shlibpath_var=DYLD_LIBRARY_PATH
1.5 moko 12107: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12108:
12109: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12110: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1.4 paf 12111: ;;
12112:
1.5 moko 12113: dgux*)
12114: version_type=linux # correct to gnu/linux during the next big refactor
12115: need_lib_prefix=no
12116: need_version=no
1.10 moko 12117: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118: soname_spec='$libname$release$shared_ext$major'
1.5 moko 12119: shlibpath_var=LD_LIBRARY_PATH
1.4 paf 12120: ;;
12121:
1.10 moko 12122: freebsd* | dragonfly* | midnightbsd*)
1.5 moko 12123: # DragonFly does not have aout. When/if they implement a new
12124: # versioning mechanism, adjust this.
12125: if test -x /usr/bin/objformat; then
12126: objformat=`/usr/bin/objformat`
12127: else
12128: case $host_os in
12129: freebsd[23].*) objformat=aout ;;
12130: *) objformat=elf ;;
12131: esac
12132: fi
1.4 paf 12133: version_type=freebsd-$objformat
12134: case $version_type in
12135: freebsd-elf*)
1.10 moko 12136: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12137: soname_spec='$libname$release$shared_ext$major'
1.4 paf 12138: need_version=no
12139: need_lib_prefix=no
12140: ;;
12141: freebsd-*)
1.10 moko 12142: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.4 paf 12143: need_version=yes
12144: ;;
12145: esac
1.10 moko 12146: case $host_cpu in
12147: powerpc64)
12148: # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12149: # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12150: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151: /* end confdefs.h. */
12152: int test_pointer_size[sizeof (void *) - 5];
12153:
12154: _ACEOF
12155: if ac_fn_c_try_compile "$LINENO"
12156: then :
1.4 paf 12157: shlibpath_var=LD_LIBRARY_PATH
1.10 moko 12158: else case e in #(
12159: e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12160: esac
12161: fi
12162: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12163: ;;
12164: *)
12165: shlibpath_var=LD_LIBRARY_PATH
12166: ;;
12167: esac
1.4 paf 12168: case $host_os in
1.5 moko 12169: freebsd2.*)
12170: shlibpath_overrides_runpath=yes
12171: ;;
12172: freebsd3.[01]* | freebsdelf3.[01]*)
1.4 paf 12173: shlibpath_overrides_runpath=yes
1.5 moko 12174: hardcode_into_libs=yes
1.4 paf 12175: ;;
1.5 moko 12176: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12177: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.4 paf 12178: shlibpath_overrides_runpath=no
12179: hardcode_into_libs=yes
12180: ;;
1.5 moko 12181: *) # from 4.6 on, and DragonFly
12182: shlibpath_overrides_runpath=yes
12183: hardcode_into_libs=yes
12184: ;;
1.4 paf 12185: esac
12186: ;;
12187:
1.5 moko 12188: haiku*)
12189: version_type=linux # correct to gnu/linux during the next big refactor
12190: need_lib_prefix=no
12191: need_version=no
12192: dynamic_linker="$host_os runtime_loader"
1.10 moko 12193: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12194: soname_spec='$libname$release$shared_ext$major'
1.5 moko 12195: shlibpath_var=LIBRARY_PATH
1.10 moko 12196: shlibpath_overrides_runpath=no
12197: sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12198: sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12199: hardcode_into_libs=no
1.4 paf 12200: ;;
12201:
12202: hpux9* | hpux10* | hpux11*)
12203: # Give a soname corresponding to the major version so that dld.sl refuses to
12204: # link against other versions.
12205: version_type=sunos
12206: need_lib_prefix=no
12207: need_version=no
1.5 moko 12208: case $host_cpu in
12209: ia64*)
12210: shrext_cmds='.so'
12211: hardcode_into_libs=yes
12212: dynamic_linker="$host_os dld.so"
12213: shlibpath_var=LD_LIBRARY_PATH
12214: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.10 moko 12215: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12216: soname_spec='$libname$release$shared_ext$major'
12217: if test 32 = "$HPUX_IA64_MODE"; then
1.5 moko 12218: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.10 moko 12219: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.5 moko 12220: else
12221: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.10 moko 12222: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.5 moko 12223: fi
12224: ;;
12225: hppa*64*)
12226: shrext_cmds='.sl'
12227: hardcode_into_libs=yes
12228: dynamic_linker="$host_os dld.sl"
12229: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12230: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.10 moko 12231: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232: soname_spec='$libname$release$shared_ext$major'
1.5 moko 12233: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12234: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12235: ;;
12236: *)
12237: shrext_cmds='.sl'
12238: dynamic_linker="$host_os dld.sl"
12239: shlibpath_var=SHLIB_PATH
12240: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.10 moko 12241: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242: soname_spec='$libname$release$shared_ext$major'
1.5 moko 12243: ;;
12244: esac
12245: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1.4 paf 12246: postinstall_cmds='chmod 555 $lib'
1.5 moko 12247: # or fails outright, so override atomically:
12248: install_override_mode=555
12249: ;;
12250:
12251: interix[3-9]*)
12252: version_type=linux # correct to gnu/linux during the next big refactor
12253: need_lib_prefix=no
12254: need_version=no
1.10 moko 12255: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256: soname_spec='$libname$release$shared_ext$major'
1.5 moko 12257: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12258: shlibpath_var=LD_LIBRARY_PATH
12259: shlibpath_overrides_runpath=no
12260: hardcode_into_libs=yes
1.4 paf 12261: ;;
12262:
12263: irix5* | irix6* | nonstopux*)
12264: case $host_os in
12265: nonstopux*) version_type=nonstopux ;;
1.5 moko 12266: *)
1.10 moko 12267: if test yes = "$lt_cv_prog_gnu_ld"; then
1.5 moko 12268: version_type=linux # correct to gnu/linux during the next big refactor
12269: else
12270: version_type=irix
12271: fi ;;
1.4 paf 12272: esac
12273: need_lib_prefix=no
12274: need_version=no
1.10 moko 12275: soname_spec='$libname$release$shared_ext$major'
12276: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.4 paf 12277: case $host_os in
12278: irix5* | nonstopux*)
12279: libsuff= shlibsuff=
12280: ;;
12281: *)
12282: case $LD in # libtool.m4 will add one of these switches to LD
1.5 moko 12283: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12284: libsuff= shlibsuff= libmagic=32-bit;;
12285: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12286: libsuff=32 shlibsuff=N32 libmagic=N32;;
12287: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12288: libsuff=64 shlibsuff=64 libmagic=64-bit;;
1.4 paf 12289: *) libsuff= shlibsuff= libmagic=never-match;;
12290: esac
12291: ;;
12292: esac
12293: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12294: shlibpath_overrides_runpath=no
1.10 moko 12295: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12296: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.5 moko 12297: hardcode_into_libs=yes
1.4 paf 12298: ;;
12299:
12300: # No shared lib support for Linux oldld, aout, or coff.
1.5 moko 12301: linux*oldld* | linux*aout* | linux*coff*)
1.4 paf 12302: dynamic_linker=no
12303: ;;
12304:
1.10 moko 12305: linux*android*)
12306: version_type=none # Android doesn't support versioned libraries.
12307: need_lib_prefix=no
12308: need_version=no
12309: library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12310: soname_spec='$libname$release$shared_ext'
12311: finish_cmds=
12312: shlibpath_var=LD_LIBRARY_PATH
12313: shlibpath_overrides_runpath=yes
12314:
12315: # This implies no fast_install, which is unacceptable.
12316: # Some rework will be needed to allow for fast_install
12317: # before this can be enabled.
12318: hardcode_into_libs=yes
12319:
12320: dynamic_linker='Android linker'
12321: # -rpath works at least for libraries that are not overridden by
12322: # libraries installed in system locations.
12323: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12324: ;;
12325:
1.5 moko 12326: # This must be glibc/ELF.
1.10 moko 12327: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.5 moko 12328: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 12329: need_lib_prefix=no
12330: need_version=no
1.10 moko 12331: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12332: soname_spec='$libname$release$shared_ext$major'
1.4 paf 12333: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12334: shlibpath_var=LD_LIBRARY_PATH
12335: shlibpath_overrides_runpath=no
1.5 moko 12336:
12337: # Some binutils ld are patched to set DT_RUNPATH
1.10 moko 12338: if test ${lt_cv_shlibpath_overrides_runpath+y}
12339: then :
12340: printf %s "(cached) " >&6
12341: else case e in #(
12342: e) lt_cv_shlibpath_overrides_runpath=no
1.5 moko 12343: save_LDFLAGS=$LDFLAGS
12344: save_libdir=$libdir
12345: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12346: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12347: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348: /* end confdefs.h. */
12349:
12350: int
1.10 moko 12351: main (void)
1.5 moko 12352: {
12353:
12354: ;
12355: return 0;
12356: }
12357: _ACEOF
1.10 moko 12358: if ac_fn_c_try_link "$LINENO"
12359: then :
12360: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12361: then :
1.5 moko 12362: lt_cv_shlibpath_overrides_runpath=yes
12363: fi
12364: fi
1.10 moko 12365: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 12366: conftest$ac_exeext conftest.$ac_ext
12367: LDFLAGS=$save_LDFLAGS
12368: libdir=$save_libdir
1.10 moko 12369: ;;
12370: esac
1.5 moko 12371: fi
12372:
12373: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12374:
1.4 paf 12375: # This implies no fast_install, which is unacceptable.
12376: # Some rework will be needed to allow for fast_install
12377: # before this can be enabled.
12378: hardcode_into_libs=yes
12379:
1.10 moko 12380: # Ideally, we could use ldconfig to report *all* directories which are
12381: # searched for libraries, however this is still not possible. Aside from not
12382: # being certain /sbin/ldconfig is available, command
12383: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12384: # even though it is searched at run-time. Try to do the best guess by
12385: # appending ld.so.conf contents (and includes) to the search path.
1.5 moko 12386: if test -f /etc/ld.so.conf; then
12387: 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' ' '`
12388: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12389: fi
12390:
1.4 paf 12391: # We used to test for /lib/ld.so.1 and disable shared libraries on
12392: # powerpc, because MkLinux only supported shared libraries with the
12393: # GNU dynamic linker. Since this was broken with cross compilers,
12394: # most powerpc-linux boxes support dynamic linking these days and
12395: # people can always --disable-shared, the test was removed, and we
12396: # assume the GNU/Linux dynamic linker is in use.
12397: dynamic_linker='GNU/Linux ld.so'
12398: ;;
12399:
1.10 moko 12400: netbsdelf*-gnu)
12401: version_type=linux
12402: need_lib_prefix=no
12403: need_version=no
12404: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405: soname_spec='$libname$release$shared_ext$major'
12406: shlibpath_var=LD_LIBRARY_PATH
12407: shlibpath_overrides_runpath=no
12408: hardcode_into_libs=yes
12409: dynamic_linker='NetBSD ld.elf_so'
12410: ;;
12411:
12412: netbsdelf*-gnu)
12413: version_type=linux
12414: need_lib_prefix=no
12415: need_version=no
12416: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12417: soname_spec='${libname}${release}${shared_ext}$major'
12418: shlibpath_var=LD_LIBRARY_PATH
12419: shlibpath_overrides_runpath=no
12420: hardcode_into_libs=yes
12421: dynamic_linker='NetBSD ld.elf_so'
12422: ;;
12423:
1.4 paf 12424: netbsd*)
12425: version_type=sunos
12426: need_lib_prefix=no
12427: need_version=no
1.5 moko 12428: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.10 moko 12429: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.4 paf 12430: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12431: dynamic_linker='NetBSD (a.out) ld.so'
12432: else
1.10 moko 12433: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12434: soname_spec='$libname$release$shared_ext$major'
1.4 paf 12435: dynamic_linker='NetBSD ld.elf_so'
12436: fi
12437: shlibpath_var=LD_LIBRARY_PATH
12438: shlibpath_overrides_runpath=yes
12439: hardcode_into_libs=yes
12440: ;;
12441:
1.10 moko 12442: *-mlibc)
12443: version_type=linux # correct to gnu/linux during the next big refactor
12444: need_lib_prefix=no
12445: need_version=no
12446: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12447: soname_spec='$libname$release$shared_ext$major'
12448: dynamic_linker='mlibc ld.so'
12449: shlibpath_var=LD_LIBRARY_PATH
12450: shlibpath_overrides_runpath=no
12451: hardcode_into_libs=yes
12452: ;;
12453:
1.4 paf 12454: newsos6)
1.5 moko 12455: version_type=linux # correct to gnu/linux during the next big refactor
1.10 moko 12456: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.4 paf 12457: shlibpath_var=LD_LIBRARY_PATH
12458: shlibpath_overrides_runpath=yes
12459: ;;
12460:
1.5 moko 12461: *nto* | *qnx*)
12462: version_type=qnx
12463: need_lib_prefix=no
12464: need_version=no
1.10 moko 12465: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12466: soname_spec='$libname$release$shared_ext$major'
1.5 moko 12467: shlibpath_var=LD_LIBRARY_PATH
12468: shlibpath_overrides_runpath=no
12469: hardcode_into_libs=yes
12470: dynamic_linker='ldqnx.so'
12471: ;;
12472:
1.4 paf 12473: openbsd*)
12474: version_type=sunos
1.10 moko 12475: sys_lib_dlsearch_path_spec=/usr/lib
1.4 paf 12476: need_lib_prefix=no
1.10 moko 12477: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12478: need_version=no
12479: else
12480: need_version=yes
12481: fi
12482: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.5 moko 12483: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12484: shlibpath_var=LD_LIBRARY_PATH
1.10 moko 12485: shlibpath_overrides_runpath=yes
1.4 paf 12486: ;;
12487:
12488: os2*)
12489: libname_spec='$name'
1.10 moko 12490: version_type=windows
12491: shrext_cmds=.dll
12492: need_version=no
1.4 paf 12493: need_lib_prefix=no
1.10 moko 12494: # OS/2 can only load a DLL with a base name of 8 characters or less.
12495: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12496: v=$($ECHO $release$versuffix | tr -d .-);
12497: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12498: $ECHO $n$v`$shared_ext'
12499: library_names_spec='${libname}_dll.$libext'
1.4 paf 12500: dynamic_linker='OS/2 ld.exe'
1.10 moko 12501: shlibpath_var=BEGINLIBPATH
12502: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12503: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12504: postinstall_cmds='base_file=`basename \$file`~
12505: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12506: dldir=$destdir/`dirname \$dlpath`~
12507: test -d \$dldir || mkdir -p \$dldir~
12508: $install_prog $dir/$dlname \$dldir/$dlname~
12509: chmod a+x \$dldir/$dlname~
12510: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12511: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12512: fi'
12513: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12514: dlpath=$dir/\$dldll~
12515: $RM \$dlpath'
1.4 paf 12516: ;;
12517:
12518: osf3* | osf4* | osf5*)
12519: version_type=osf
1.5 moko 12520: need_lib_prefix=no
1.4 paf 12521: need_version=no
1.10 moko 12522: soname_spec='$libname$release$shared_ext$major'
12523: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.4 paf 12524: shlibpath_var=LD_LIBRARY_PATH
12525: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.10 moko 12526: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.4 paf 12527: ;;
12528:
1.5 moko 12529: rdos*)
12530: dynamic_linker=no
1.4 paf 12531: ;;
12532:
1.10 moko 12533: serenity*)
12534: version_type=linux # correct to gnu/linux during the next big refactor
12535: need_lib_prefix=no
12536: need_version=no
12537: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12538: soname_spec='$libname$release$shared_ext$major'
12539: shlibpath_var=LD_LIBRARY_PATH
12540: shlibpath_overrides_runpath=no
12541: dynamic_linker='SerenityOS LibELF'
12542: ;;
12543:
12544: solaris*)
12545: version_type=linux # correct to gnu/linux during the next big refactor
12546: need_lib_prefix=no
12547: need_version=no
12548: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12549: soname_spec='$libname$release$shared_ext$major'
12550: shlibpath_var=LD_LIBRARY_PATH
12551: shlibpath_overrides_runpath=yes
12552: hardcode_into_libs=yes
12553: # ldd complains unless libraries are executable
12554: postinstall_cmds='chmod +x $lib'
12555: ;;
12556:
12557: sunos4*)
12558: version_type=sunos
12559: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12560: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12561: shlibpath_var=LD_LIBRARY_PATH
12562: shlibpath_overrides_runpath=yes
12563: if test yes = "$with_gnu_ld"; then
12564: need_lib_prefix=no
12565: fi
12566: need_version=yes
12567: ;;
12568:
12569: sysv4 | sysv4.3*)
12570: version_type=linux # correct to gnu/linux during the next big refactor
12571: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12572: soname_spec='$libname$release$shared_ext$major'
12573: shlibpath_var=LD_LIBRARY_PATH
12574: case $host_vendor in
12575: sni)
12576: shlibpath_overrides_runpath=no
12577: need_lib_prefix=no
12578: runpath_var=LD_RUN_PATH
12579: ;;
12580: siemens)
12581: need_lib_prefix=no
12582: ;;
12583: motorola)
12584: need_lib_prefix=no
12585: need_version=no
12586: shlibpath_overrides_runpath=no
12587: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12588: ;;
12589: esac
12590: ;;
12591:
12592: sysv4*MP*)
12593: if test -d /usr/nec; then
12594: version_type=linux # correct to gnu/linux during the next big refactor
12595: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12596: soname_spec='$libname$shared_ext.$major'
12597: shlibpath_var=LD_LIBRARY_PATH
12598: fi
12599: ;;
12600:
12601: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12602: version_type=sco
12603: need_lib_prefix=no
12604: need_version=no
12605: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12606: soname_spec='$libname$release$shared_ext$major'
12607: shlibpath_var=LD_LIBRARY_PATH
12608: shlibpath_overrides_runpath=yes
12609: hardcode_into_libs=yes
12610: if test yes = "$with_gnu_ld"; then
12611: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12612: else
12613: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12614: case $host_os in
12615: sco3.2v5*)
12616: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12617: ;;
12618: esac
12619: fi
12620: sys_lib_dlsearch_path_spec='/usr/lib'
12621: ;;
12622:
12623: tpf*)
12624: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12625: version_type=linux # correct to gnu/linux during the next big refactor
12626: need_lib_prefix=no
12627: need_version=no
12628: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12629: shlibpath_var=LD_LIBRARY_PATH
12630: shlibpath_overrides_runpath=no
12631: hardcode_into_libs=yes
12632: ;;
12633:
12634: uts4*)
12635: version_type=linux # correct to gnu/linux during the next big refactor
12636: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12637: soname_spec='$libname$release$shared_ext$major'
12638: shlibpath_var=LD_LIBRARY_PATH
12639: ;;
12640:
12641: emscripten*)
12642: version_type=none
12643: need_lib_prefix=no
12644: need_version=no
12645: library_names_spec='$libname$release$shared_ext'
12646: soname_spec='$libname$release$shared_ext'
12647: finish_cmds=
12648: dynamic_linker="Emscripten linker"
12649: lt_prog_compiler_wl=
12650: lt_prog_compiler_pic=
12651: lt_prog_compiler_static=
12652:
12653:
12654: if test yes = "$GCC"; then
12655: lt_prog_compiler_wl='-Wl,'
12656: lt_prog_compiler_static='-static'
12657:
12658: case $host_os in
12659: aix*)
12660: # All AIX code is PIC.
12661: if test ia64 = "$host_cpu"; then
12662: # AIX 5 now supports IA64 processor
12663: lt_prog_compiler_static='-Bstatic'
12664: fi
12665: lt_prog_compiler_pic='-fPIC'
12666: ;;
12667:
12668: amigaos*)
12669: case $host_cpu in
12670: powerpc)
12671: # see comment about AmigaOS4 .so support
12672: lt_prog_compiler_pic='-fPIC'
12673: ;;
12674: m68k)
12675: # FIXME: we need at least 68020 code to build shared libraries, but
12676: # adding the '-m68020' flag to GCC prevents building anything better,
12677: # like '-m68040'.
12678: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12679: ;;
12680: esac
12681: ;;
12682:
12683: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12684: # PIC is the default for these OSes.
12685: ;;
12686:
12687: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12688: # This hack is so that the source file can tell whether it is being
12689: # built for inclusion in a dll (and should export symbols for example).
12690: # Although the cygwin gcc ignores -fPIC, still need this for old-style
12691: # (--disable-auto-import) libraries
12692: lt_prog_compiler_pic='-DDLL_EXPORT'
12693: case $host_os in
12694: os2*)
12695: lt_prog_compiler_static='$wl-static'
12696: ;;
12697: esac
12698: ;;
12699:
12700: darwin* | rhapsody*)
12701: # PIC is the default on this platform
12702: # Common symbols not allowed in MH_DYLIB files
12703: lt_prog_compiler_pic='-fno-common'
12704: ;;
12705:
12706: haiku*)
12707: # PIC is the default for Haiku.
12708: # The "-static" flag exists, but is broken.
12709: lt_prog_compiler_static=
12710: ;;
12711:
12712: hpux*)
12713: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12714: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12715: # sets the default TLS model and affects inlining.
12716: case $host_cpu in
12717: hppa*64*)
12718: # +Z the default
12719: ;;
12720: *)
12721: lt_prog_compiler_pic='-fPIC'
12722: ;;
12723: esac
12724: ;;
12725:
12726: interix[3-9]*)
12727: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12728: # Instead, we relocate shared libraries at runtime.
12729: ;;
12730:
12731: msdosdjgpp*)
12732: # Just because we use GCC doesn't mean we suddenly get shared libraries
12733: # on systems that don't support them.
12734: lt_prog_compiler_can_build_shared=no
12735: enable_shared=no
12736: ;;
12737:
12738: *nto* | *qnx*)
12739: # QNX uses GNU C++, but need to define -shared option too, otherwise
12740: # it will coredump.
12741: lt_prog_compiler_pic='-fPIC -shared'
12742: ;;
12743:
12744: sysv4*MP*)
12745: if test -d /usr/nec; then
12746: lt_prog_compiler_pic=-Kconform_pic
12747: fi
12748: ;;
12749:
12750: *)
12751: lt_prog_compiler_pic='-fPIC'
12752: ;;
12753: esac
12754:
12755: case $cc_basename in
12756: nvcc*) # Cuda Compiler Driver 2.2
12757: lt_prog_compiler_wl='-Xlinker '
12758: if test -n "$lt_prog_compiler_pic"; then
12759: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12760: fi
12761: ;;
12762: esac
12763: else
12764: # PORTME Check for flag to pass linker flags through the system compiler.
12765: case $host_os in
12766: aix*)
12767: lt_prog_compiler_wl='-Wl,'
12768: if test ia64 = "$host_cpu"; then
12769: # AIX 5 now supports IA64 processor
12770: lt_prog_compiler_static='-Bstatic'
12771: else
12772: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12773: fi
12774: ;;
12775:
12776: darwin* | rhapsody*)
12777: # PIC is the default on this platform
12778: # Common symbols not allowed in MH_DYLIB files
12779: lt_prog_compiler_pic='-fno-common'
12780: case $cc_basename in
12781: nagfor*)
12782: # NAG Fortran compiler
12783: lt_prog_compiler_wl='-Wl,-Wl,,'
12784: lt_prog_compiler_pic='-PIC'
12785: lt_prog_compiler_static='-Bstatic'
12786: ;;
12787: esac
12788: ;;
12789:
12790: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12791: # This hack is so that the source file can tell whether it is being
12792: # built for inclusion in a dll (and should export symbols for example).
12793: lt_prog_compiler_pic='-DDLL_EXPORT'
12794: case $host_os in
12795: os2*)
12796: lt_prog_compiler_static='$wl-static'
12797: ;;
12798: esac
12799: ;;
12800:
12801: hpux9* | hpux10* | hpux11*)
12802: lt_prog_compiler_wl='-Wl,'
12803: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12804: # not for PA HP-UX.
12805: case $host_cpu in
12806: hppa*64*|ia64*)
12807: # +Z the default
12808: ;;
12809: *)
12810: lt_prog_compiler_pic='+Z'
12811: ;;
12812: esac
12813: # Is there a better lt_prog_compiler_static that works with the bundled CC?
12814: lt_prog_compiler_static='$wl-a ${wl}archive'
12815: ;;
12816:
12817: irix5* | irix6* | nonstopux*)
12818: lt_prog_compiler_wl='-Wl,'
12819: # PIC (with -KPIC) is the default.
12820: lt_prog_compiler_static='-non_shared'
12821: ;;
12822:
12823: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12824: case $cc_basename in
12825: # old Intel for x86_64, which still supported -KPIC.
12826: ecc*)
12827: lt_prog_compiler_wl='-Wl,'
12828: lt_prog_compiler_pic='-KPIC'
12829: lt_prog_compiler_static='-static'
12830: ;;
12831: *flang* | ftn | f18* | f95*)
12832: # Flang compiler.
12833: lt_prog_compiler_wl='-Wl,'
12834: lt_prog_compiler_pic='-fPIC'
12835: lt_prog_compiler_static='-static'
12836: ;;
12837: # flang / f18. f95 an alias for gfortran or flang on Debian
12838: flang* | f18* | f95*)
12839: lt_prog_compiler_wl='-Wl,'
12840: lt_prog_compiler_pic='-fPIC'
12841: lt_prog_compiler_static='-static'
12842: ;;
12843: # icc used to be incompatible with GCC.
12844: # ICC 10 doesn't accept -KPIC any more.
12845: icc* | ifort*)
12846: lt_prog_compiler_wl='-Wl,'
12847: lt_prog_compiler_pic='-fPIC'
12848: lt_prog_compiler_static='-static'
12849: ;;
12850: # Lahey Fortran 8.1.
12851: lf95*)
12852: lt_prog_compiler_wl='-Wl,'
12853: lt_prog_compiler_pic='--shared'
12854: lt_prog_compiler_static='--static'
12855: ;;
12856: nagfor*)
12857: # NAG Fortran compiler
12858: lt_prog_compiler_wl='-Wl,-Wl,,'
12859: lt_prog_compiler_pic='-PIC'
12860: lt_prog_compiler_static='-Bstatic'
12861: ;;
12862: tcc*)
12863: # Fabrice Bellard et al's Tiny C Compiler
12864: lt_prog_compiler_wl='-Wl,'
12865: lt_prog_compiler_pic='-fPIC'
12866: lt_prog_compiler_static='-static'
12867: ;;
12868: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12869: # Portland Group compilers (*not* the Pentium gcc compiler,
12870: # which looks to be a dead project)
12871: lt_prog_compiler_wl='-Wl,'
12872: lt_prog_compiler_pic='-fpic'
12873: lt_prog_compiler_static='-Bstatic'
12874: ;;
12875: ccc*)
12876: lt_prog_compiler_wl='-Wl,'
12877: # All Alpha code is PIC.
12878: lt_prog_compiler_static='-non_shared'
12879: ;;
12880: xl* | bgxl* | bgf* | mpixl*)
12881: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12882: lt_prog_compiler_wl='-Wl,'
12883: lt_prog_compiler_pic='-qpic'
12884: lt_prog_compiler_static='-qstaticlink'
12885: ;;
12886: *)
12887: case `$CC -V 2>&1 | $SED 5q` in
12888: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12889: # Sun Fortran 8.3 passes all unrecognized flags to the linker
12890: lt_prog_compiler_pic='-KPIC'
12891: lt_prog_compiler_static='-Bstatic'
12892: lt_prog_compiler_wl=''
12893: ;;
12894: *Sun\ F* | *Sun*Fortran*)
12895: lt_prog_compiler_pic='-KPIC'
12896: lt_prog_compiler_static='-Bstatic'
12897: lt_prog_compiler_wl='-Qoption ld '
12898: ;;
12899: *Sun\ C*)
12900: # Sun C 5.9
12901: lt_prog_compiler_pic='-KPIC'
12902: lt_prog_compiler_static='-Bstatic'
12903: lt_prog_compiler_wl='-Wl,'
12904: ;;
12905: *Intel*\ [CF]*Compiler*)
12906: lt_prog_compiler_wl='-Wl,'
12907: lt_prog_compiler_pic='-fPIC'
12908: lt_prog_compiler_static='-static'
12909: ;;
12910: *Portland\ Group*)
12911: lt_prog_compiler_wl='-Wl,'
12912: lt_prog_compiler_pic='-fpic'
12913: lt_prog_compiler_static='-Bstatic'
12914: ;;
12915: esac
12916: ;;
12917: esac
12918: ;;
12919:
12920: newsos6)
12921: lt_prog_compiler_pic='-KPIC'
12922: lt_prog_compiler_static='-Bstatic'
12923: ;;
12924:
12925: *-mlibc)
12926: lt_prog_compiler_wl='-Wl,'
12927: lt_prog_compiler_pic='-fPIC'
12928: lt_prog_compiler_static='-static'
12929: ;;
12930:
12931: *nto* | *qnx*)
12932: # QNX uses GNU C++, but need to define -shared option too, otherwise
12933: # it will coredump.
12934: lt_prog_compiler_pic='-fPIC -shared'
12935: ;;
12936:
12937: osf3* | osf4* | osf5*)
12938: lt_prog_compiler_wl='-Wl,'
12939: # All OSF/1 code is PIC.
12940: lt_prog_compiler_static='-non_shared'
12941: ;;
12942:
12943: rdos*)
12944: lt_prog_compiler_static='-non_shared'
12945: ;;
12946:
12947: serenity*)
12948: ;;
12949:
12950: solaris*)
12951: lt_prog_compiler_pic='-KPIC'
12952: lt_prog_compiler_static='-Bstatic'
12953: case $cc_basename in
12954: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12955: lt_prog_compiler_wl='-Qoption ld ';;
12956: *)
12957: lt_prog_compiler_wl='-Wl,';;
12958: esac
12959: ;;
12960:
12961: sunos4*)
12962: lt_prog_compiler_wl='-Qoption ld '
12963: lt_prog_compiler_pic='-PIC'
12964: lt_prog_compiler_static='-Bstatic'
12965: ;;
12966:
12967: sysv4 | sysv4.2uw2* | sysv4.3*)
12968: lt_prog_compiler_wl='-Wl,'
12969: lt_prog_compiler_pic='-KPIC'
12970: lt_prog_compiler_static='-Bstatic'
12971: ;;
12972:
12973: sysv4*MP*)
12974: if test -d /usr/nec; then
12975: lt_prog_compiler_pic='-Kconform_pic'
12976: lt_prog_compiler_static='-Bstatic'
12977: fi
12978: ;;
12979:
12980: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12981: lt_prog_compiler_wl='-Wl,'
12982: lt_prog_compiler_pic='-KPIC'
12983: lt_prog_compiler_static='-Bstatic'
12984: ;;
12985:
12986: unicos*)
12987: lt_prog_compiler_wl='-Wl,'
12988: lt_prog_compiler_can_build_shared=no
12989: ;;
12990:
12991: uts4*)
12992: lt_prog_compiler_pic='-pic'
12993: lt_prog_compiler_static='-Bstatic'
12994: ;;
12995:
12996: *)
12997: lt_prog_compiler_can_build_shared=no
12998: ;;
12999: esac
13000: fi
13001:
13002: case $host_os in
13003: # For platforms that do not support PIC, -DPIC is meaningless:
13004: *djgpp*)
13005: lt_prog_compiler_pic=
13006: ;;
13007: *)
13008: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13009: ;;
13010: esac
13011:
13012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13013: printf %s "checking for $compiler option to produce PIC... " >&6; }
13014: if test ${lt_cv_prog_compiler_pic+y}
13015: then :
13016: printf %s "(cached) " >&6
13017: else case e in #(
13018: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13019: esac
13020: fi
13021: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13022: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13023: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13024:
13025: #
13026: # Check to make sure the PIC flag actually works.
13027: #
13028: if test -n "$lt_prog_compiler_pic"; then
13029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13030: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13031: if test ${lt_cv_prog_compiler_pic_works+y}
13032: then :
13033: printf %s "(cached) " >&6
13034: else case e in #(
13035: e) lt_cv_prog_compiler_pic_works=no
13036: ac_outfile=conftest.$ac_objext
13037: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13038: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13039: # Insert the option either (1) after the last *FLAGS variable, or
13040: # (2) before a word containing "conftest.", or (3) at the end.
13041: # Note that $ac_compile itself does not contain backslashes and begins
13042: # with a dollar sign (not a hyphen), so the echo should work correctly.
13043: # The option is referenced via a variable to avoid confusing sed.
13044: lt_compile=`echo "$ac_compile" | $SED \
13045: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13046: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13047: -e 's:$: $lt_compiler_flag:'`
13048: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13049: (eval "$lt_compile" 2>conftest.err)
13050: ac_status=$?
13051: cat conftest.err >&5
13052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053: if (exit $ac_status) && test -s "$ac_outfile"; then
13054: # The compiler can only warn and ignore the option if not recognized
13055: # So say no if there are warnings other than the usual output.
13056: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13057: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13058: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13059: lt_cv_prog_compiler_pic_works=yes
13060: fi
13061: fi
13062: $RM conftest*
13063: ;;
13064: esac
13065: fi
13066: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13067: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13068:
13069: if test yes = "$lt_cv_prog_compiler_pic_works"; then
13070: case $lt_prog_compiler_pic in
13071: "" | " "*) ;;
13072: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13073: esac
13074: else
13075: lt_prog_compiler_pic=
13076: lt_prog_compiler_can_build_shared=no
13077: fi
13078:
13079: fi
13080:
13081:
13082:
13083:
13084:
13085: #
13086: # Check to make sure the static flag actually works.
13087: #
13088: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13089: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13090: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13091: if test ${lt_cv_prog_compiler_static_works+y}
13092: then :
13093: printf %s "(cached) " >&6
13094: else case e in #(
13095: e) lt_cv_prog_compiler_static_works=no
13096: save_LDFLAGS=$LDFLAGS
13097: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13098: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13099: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13100: # The linker can only warn and ignore the option if not recognized
13101: # So say no if there are warnings
13102: if test -s conftest.err; then
13103: # Append any errors to the config.log.
13104: cat conftest.err 1>&5
13105: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13106: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13107: if diff conftest.exp conftest.er2 >/dev/null; then
13108: lt_cv_prog_compiler_static_works=yes
13109: fi
13110: else
13111: lt_cv_prog_compiler_static_works=yes
13112: fi
13113: fi
13114: $RM -r conftest*
13115: LDFLAGS=$save_LDFLAGS
13116: ;;
13117: esac
13118: fi
13119: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13120: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
1.4 paf 13121:
1.10 moko 13122: if test yes = "$lt_cv_prog_compiler_static_works"; then
13123: :
13124: else
13125: lt_prog_compiler_static=
13126: fi
1.4 paf 13127:
1.5 moko 13128:
1.4 paf 13129:
1.10 moko 13130: ='-fPIC'
13131: archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13132: archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13133: archive_cmds_need_lc=no
13134: no_undefined_flag=
1.4 paf 13135: ;;
13136:
13137: *)
13138: dynamic_linker=no
13139: ;;
13140: esac
1.10 moko 13141: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13142: printf "%s\n" "$dynamic_linker" >&6; }
13143: test no = "$dynamic_linker" && can_build_shared=no
1.4 paf 13144:
1.5 moko 13145: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.10 moko 13146: if test yes = "$GCC"; then
1.5 moko 13147: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13148: fi
13149:
1.10 moko 13150: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13151: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
1.5 moko 13152: fi
1.10 moko 13153:
13154: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13155: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
1.5 moko 13156: fi
13157:
1.10 moko 13158: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13159: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13160:
13161: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13162: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13163:
13164: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13165: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13166:
1.5 moko 13167:
13168:
13169:
13170:
13171:
13172:
13173:
13174:
13175:
13176:
13177:
13178:
13179:
13180:
13181:
13182:
13183:
13184:
13185:
13186:
13187:
13188:
13189:
13190:
13191:
13192:
13193:
13194:
13195:
13196:
13197:
13198:
13199:
13200:
13201:
13202:
13203:
13204:
13205:
13206:
13207:
13208:
13209:
13210:
13211:
13212:
13213:
13214:
13215:
13216:
13217:
13218:
13219:
13220:
13221:
13222:
13223:
13224:
13225:
13226:
13227:
13228:
13229:
13230:
13231:
13232:
13233:
13234:
13235:
13236:
13237:
13238:
13239:
13240:
13241:
13242:
13243:
13244:
13245:
13246:
13247:
13248:
13249:
13250:
13251:
13252:
13253:
13254:
13255:
13256:
13257:
1.10 moko 13258:
13259:
13260:
13261:
13262:
13263: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13264: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.5 moko 13265: hardcode_action=
13266: if test -n "$hardcode_libdir_flag_spec" ||
13267: test -n "$runpath_var" ||
1.10 moko 13268: test yes = "$hardcode_automatic"; then
1.4 paf 13269:
1.5 moko 13270: # We can hardcode non-existent directories.
1.10 moko 13271: if test no != "$hardcode_direct" &&
1.5 moko 13272: # If the only mechanism to avoid hardcoding is shlibpath_var, we
13273: # have to relink, otherwise we might link with an installed library
13274: # when we should be linking with a yet-to-be-installed one
1.10 moko 13275: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13276: test no != "$hardcode_minus_L"; then
1.5 moko 13277: # Linking always hardcodes the temporary library directory.
13278: hardcode_action=relink
13279: else
13280: # We can link without hardcoding, and we can hardcode nonexisting dirs.
13281: hardcode_action=immediate
1.4 paf 13282: fi
1.5 moko 13283: else
13284: # We cannot hardcode anything, or else we can only hardcode existing
13285: # directories.
13286: hardcode_action=unsupported
13287: fi
1.10 moko 13288: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13289: printf "%s\n" "$hardcode_action" >&6; }
1.4 paf 13290:
1.10 moko 13291: if test relink = "$hardcode_action" ||
13292: test yes = "$inherit_rpath"; then
1.4 paf 13293: # Fast installation is not supported
13294: enable_fast_install=no
1.10 moko 13295: elif test yes = "$shlibpath_overrides_runpath" ||
13296: test no = "$enable_shared"; then
1.4 paf 13297: # Fast installation is not necessary
13298: enable_fast_install=needless
13299: fi
13300:
13301:
1.5 moko 13302:
13303:
13304:
13305:
1.10 moko 13306: if test yes != "$enable_dlopen"; then
1.4 paf 13307: enable_dlopen=unknown
13308: enable_dlopen_self=unknown
13309: enable_dlopen_self_static=unknown
13310: else
13311: lt_cv_dlopen=no
13312: lt_cv_dlopen_libs=
13313:
13314: case $host_os in
13315: beos*)
1.10 moko 13316: lt_cv_dlopen=load_add_on
1.4 paf 13317: lt_cv_dlopen_libs=
13318: lt_cv_dlopen_self=yes
13319: ;;
13320:
1.10 moko 13321: mingw* | windows* | pw32* | cegcc*)
13322: lt_cv_dlopen=LoadLibrary
1.4 paf 13323: lt_cv_dlopen_libs=
1.5 moko 13324: ;;
13325:
13326: cygwin*)
1.10 moko 13327: lt_cv_dlopen=dlopen
1.5 moko 13328: lt_cv_dlopen_libs=
13329: ;;
1.4 paf 13330:
1.5 moko 13331: darwin*)
1.10 moko 13332: # if libdl is installed we need to link against it
13333: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13334: printf %s "checking for dlopen in -ldl... " >&6; }
13335: if test ${ac_cv_lib_dl_dlopen+y}
13336: then :
13337: printf %s "(cached) " >&6
13338: else case e in #(
13339: e) ac_check_lib_save_LIBS=$LIBS
1.5 moko 13340: LIBS="-ldl $LIBS"
13341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 13342: /* end confdefs.h. */
1.5 moko 13343:
13344: /* Override any GCC internal prototype to avoid an error.
13345: Use char because int might match the return type of a GCC
1.10 moko 13346: builtin and then its argument prototype would still apply.
13347: The 'extern "C"' is for builds by C++ compilers;
13348: although this is not generally supported in C code supporting it here
13349: has little cost and some practical benefit (sr 110532). */
1.4 paf 13350: #ifdef __cplusplus
13351: extern "C"
13352: #endif
1.10 moko 13353: char dlopen (void);
1.4 paf 13354: int
1.10 moko 13355: main (void)
1.4 paf 13356: {
1.5 moko 13357: return dlopen ();
1.4 paf 13358: ;
13359: return 0;
13360: }
13361: _ACEOF
1.10 moko 13362: if ac_fn_c_try_link "$LINENO"
13363: then :
1.5 moko 13364: ac_cv_lib_dl_dlopen=yes
1.10 moko 13365: else case e in #(
13366: e) ac_cv_lib_dl_dlopen=no ;;
13367: esac
1.5 moko 13368: fi
1.10 moko 13369: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 13370: conftest$ac_exeext conftest.$ac_ext
1.10 moko 13371: LIBS=$ac_check_lib_save_LIBS ;;
13372: esac
1.5 moko 13373: fi
1.10 moko 13374: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13375: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13376: if test "x$ac_cv_lib_dl_dlopen" = xyes
13377: then :
13378: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13379: else case e in #(
13380: e)
13381: lt_cv_dlopen=dyld
1.5 moko 13382: lt_cv_dlopen_libs=
13383: lt_cv_dlopen_self=yes
1.10 moko 13384: ;;
13385: esac
13386: fi
1.5 moko 13387:
1.10 moko 13388: ;;
1.5 moko 13389:
1.10 moko 13390: tpf*)
13391: # Don't try to run any link tests for TPF. We know it's impossible
13392: # because TPF is a cross-compiler, and we know how we open DSOs.
13393: lt_cv_dlopen=dlopen
13394: lt_cv_dlopen_libs=
13395: lt_cv_dlopen_self=no
1.5 moko 13396: ;;
13397:
13398: *)
13399: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.10 moko 13400: if test "x$ac_cv_func_shl_load" = xyes
13401: then :
13402: lt_cv_dlopen=shl_load
13403: else case e in #(
13404: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13405: printf %s "checking for shl_load in -ldld... " >&6; }
13406: if test ${ac_cv_lib_dld_shl_load+y}
13407: then :
13408: printf %s "(cached) " >&6
13409: else case e in #(
13410: e) ac_check_lib_save_LIBS=$LIBS
1.4 paf 13411: LIBS="-ldld $LIBS"
1.5 moko 13412: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 13413: /* end confdefs.h. */
13414:
1.5 moko 13415: /* Override any GCC internal prototype to avoid an error.
13416: Use char because int might match the return type of a GCC
1.10 moko 13417: builtin and then its argument prototype would still apply.
13418: The 'extern "C"' is for builds by C++ compilers;
13419: although this is not generally supported in C code supporting it here
13420: has little cost and some practical benefit (sr 110532). */
1.4 paf 13421: #ifdef __cplusplus
13422: extern "C"
13423: #endif
1.10 moko 13424: char shl_load (void);
1.4 paf 13425: int
1.10 moko 13426: main (void)
1.4 paf 13427: {
1.5 moko 13428: return shl_load ();
1.4 paf 13429: ;
13430: return 0;
13431: }
13432: _ACEOF
1.10 moko 13433: if ac_fn_c_try_link "$LINENO"
13434: then :
1.5 moko 13435: ac_cv_lib_dld_shl_load=yes
1.10 moko 13436: else case e in #(
13437: e) ac_cv_lib_dld_shl_load=no ;;
13438: esac
1.4 paf 13439: fi
1.10 moko 13440: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 13441: conftest$ac_exeext conftest.$ac_ext
1.10 moko 13442: LIBS=$ac_check_lib_save_LIBS ;;
13443: esac
1.4 paf 13444: fi
1.10 moko 13445: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13446: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13447: if test "x$ac_cv_lib_dld_shl_load" = xyes
13448: then :
13449: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13450: else case e in #(
13451: e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13452: if test "x$ac_cv_func_dlopen" = xyes
13453: then :
13454: lt_cv_dlopen=dlopen
13455: else case e in #(
13456: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13457: printf %s "checking for dlopen in -ldl... " >&6; }
13458: if test ${ac_cv_lib_dl_dlopen+y}
13459: then :
13460: printf %s "(cached) " >&6
13461: else case e in #(
13462: e) ac_check_lib_save_LIBS=$LIBS
1.4 paf 13463: LIBS="-ldl $LIBS"
1.5 moko 13464: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 13465: /* end confdefs.h. */
13466:
1.5 moko 13467: /* Override any GCC internal prototype to avoid an error.
13468: Use char because int might match the return type of a GCC
1.10 moko 13469: builtin and then its argument prototype would still apply.
13470: The 'extern "C"' is for builds by C++ compilers;
13471: although this is not generally supported in C code supporting it here
13472: has little cost and some practical benefit (sr 110532). */
1.4 paf 13473: #ifdef __cplusplus
13474: extern "C"
13475: #endif
1.10 moko 13476: char dlopen (void);
1.4 paf 13477: int
1.10 moko 13478: main (void)
1.4 paf 13479: {
1.5 moko 13480: return dlopen ();
1.4 paf 13481: ;
13482: return 0;
13483: }
13484: _ACEOF
1.10 moko 13485: if ac_fn_c_try_link "$LINENO"
13486: then :
1.4 paf 13487: ac_cv_lib_dl_dlopen=yes
1.10 moko 13488: else case e in #(
13489: e) ac_cv_lib_dl_dlopen=no ;;
13490: esac
1.4 paf 13491: fi
1.10 moko 13492: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 13493: conftest$ac_exeext conftest.$ac_ext
1.10 moko 13494: LIBS=$ac_check_lib_save_LIBS ;;
13495: esac
1.4 paf 13496: fi
1.10 moko 13497: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13498: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13499: if test "x$ac_cv_lib_dl_dlopen" = xyes
13500: then :
13501: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13502: else case e in #(
13503: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13504: printf %s "checking for dlopen in -lsvld... " >&6; }
13505: if test ${ac_cv_lib_svld_dlopen+y}
13506: then :
13507: printf %s "(cached) " >&6
13508: else case e in #(
13509: e) ac_check_lib_save_LIBS=$LIBS
1.4 paf 13510: LIBS="-lsvld $LIBS"
1.5 moko 13511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 13512: /* end confdefs.h. */
13513:
1.5 moko 13514: /* Override any GCC internal prototype to avoid an error.
13515: Use char because int might match the return type of a GCC
1.10 moko 13516: builtin and then its argument prototype would still apply.
13517: The 'extern "C"' is for builds by C++ compilers;
13518: although this is not generally supported in C code supporting it here
13519: has little cost and some practical benefit (sr 110532). */
1.4 paf 13520: #ifdef __cplusplus
13521: extern "C"
13522: #endif
1.10 moko 13523: char dlopen (void);
1.4 paf 13524: int
1.10 moko 13525: main (void)
1.4 paf 13526: {
1.5 moko 13527: return dlopen ();
1.4 paf 13528: ;
13529: return 0;
13530: }
13531: _ACEOF
1.10 moko 13532: if ac_fn_c_try_link "$LINENO"
13533: then :
1.4 paf 13534: ac_cv_lib_svld_dlopen=yes
1.10 moko 13535: else case e in #(
13536: e) ac_cv_lib_svld_dlopen=no ;;
13537: esac
1.4 paf 13538: fi
1.10 moko 13539: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 13540: conftest$ac_exeext conftest.$ac_ext
1.10 moko 13541: LIBS=$ac_check_lib_save_LIBS ;;
13542: esac
1.4 paf 13543: fi
1.10 moko 13544: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13545: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13546: if test "x$ac_cv_lib_svld_dlopen" = xyes
13547: then :
13548: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13549: else case e in #(
13550: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13551: printf %s "checking for dld_link in -ldld... " >&6; }
13552: if test ${ac_cv_lib_dld_dld_link+y}
13553: then :
13554: printf %s "(cached) " >&6
13555: else case e in #(
13556: e) ac_check_lib_save_LIBS=$LIBS
1.4 paf 13557: LIBS="-ldld $LIBS"
1.5 moko 13558: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 13559: /* end confdefs.h. */
13560:
1.5 moko 13561: /* Override any GCC internal prototype to avoid an error.
13562: Use char because int might match the return type of a GCC
1.10 moko 13563: builtin and then its argument prototype would still apply.
13564: The 'extern "C"' is for builds by C++ compilers;
13565: although this is not generally supported in C code supporting it here
13566: has little cost and some practical benefit (sr 110532). */
1.4 paf 13567: #ifdef __cplusplus
13568: extern "C"
13569: #endif
1.10 moko 13570: char dld_link (void);
1.4 paf 13571: int
1.10 moko 13572: main (void)
1.4 paf 13573: {
1.5 moko 13574: return dld_link ();
1.4 paf 13575: ;
13576: return 0;
13577: }
13578: _ACEOF
1.10 moko 13579: if ac_fn_c_try_link "$LINENO"
13580: then :
1.4 paf 13581: ac_cv_lib_dld_dld_link=yes
1.10 moko 13582: else case e in #(
13583: e) ac_cv_lib_dld_dld_link=no ;;
13584: esac
1.4 paf 13585: fi
1.10 moko 13586: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 13587: conftest$ac_exeext conftest.$ac_ext
1.10 moko 13588: LIBS=$ac_check_lib_save_LIBS ;;
13589: esac
1.4 paf 13590: fi
1.10 moko 13591: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13592: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13593: if test "x$ac_cv_lib_dld_dld_link" = xyes
13594: then :
13595: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1.4 paf 13596: fi
13597:
1.10 moko 13598: ;;
13599: esac
1.4 paf 13600: fi
13601:
1.10 moko 13602: ;;
13603: esac
1.4 paf 13604: fi
13605:
1.10 moko 13606: ;;
13607: esac
1.4 paf 13608: fi
13609:
1.10 moko 13610: ;;
13611: esac
1.4 paf 13612: fi
13613:
1.10 moko 13614: ;;
13615: esac
1.4 paf 13616: fi
13617:
13618: ;;
13619: esac
13620:
1.10 moko 13621: if test no = "$lt_cv_dlopen"; then
13622: enable_dlopen=no
13623: else
1.4 paf 13624: enable_dlopen=yes
13625: fi
13626:
13627: case $lt_cv_dlopen in
13628: dlopen)
1.10 moko 13629: save_CPPFLAGS=$CPPFLAGS
13630: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.4 paf 13631:
1.10 moko 13632: save_LDFLAGS=$LDFLAGS
1.5 moko 13633: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.4 paf 13634:
1.10 moko 13635: save_LIBS=$LIBS
1.4 paf 13636: LIBS="$lt_cv_dlopen_libs $LIBS"
13637:
1.10 moko 13638: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13639: printf %s "checking whether a program can dlopen itself... " >&6; }
13640: if test ${lt_cv_dlopen_self+y}
13641: then :
13642: printf %s "(cached) " >&6
13643: else case e in #(
13644: e) if test yes = "$cross_compiling"; then :
1.4 paf 13645: lt_cv_dlopen_self=cross
13646: else
1.5 moko 13647: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.4 paf 13648: lt_status=$lt_dlunknown
1.5 moko 13649: cat > conftest.$ac_ext <<_LT_EOF
13650: #line $LINENO "configure"
1.4 paf 13651: #include "confdefs.h"
13652:
13653: #if HAVE_DLFCN_H
13654: #include <dlfcn.h>
13655: #endif
13656:
13657: #include <stdio.h>
13658:
13659: #ifdef RTLD_GLOBAL
13660: # define LT_DLGLOBAL RTLD_GLOBAL
13661: #else
13662: # ifdef DL_GLOBAL
13663: # define LT_DLGLOBAL DL_GLOBAL
13664: # else
13665: # define LT_DLGLOBAL 0
13666: # endif
13667: #endif
13668:
13669: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13670: find out it does not work in some platform. */
13671: #ifndef LT_DLLAZY_OR_NOW
13672: # ifdef RTLD_LAZY
13673: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13674: # else
13675: # ifdef DL_LAZY
13676: # define LT_DLLAZY_OR_NOW DL_LAZY
13677: # else
13678: # ifdef RTLD_NOW
13679: # define LT_DLLAZY_OR_NOW RTLD_NOW
13680: # else
13681: # ifdef DL_NOW
13682: # define LT_DLLAZY_OR_NOW DL_NOW
13683: # else
13684: # define LT_DLLAZY_OR_NOW 0
13685: # endif
13686: # endif
13687: # endif
13688: # endif
13689: #endif
13690:
1.10 moko 13691: /* When -fvisibility=hidden is used, assume the code has been annotated
1.5 moko 13692: correspondingly for the symbols needed. */
1.10 moko 13693: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13694: int fnord (void) __attribute__((visibility("default")));
1.4 paf 13695: #endif
13696:
1.10 moko 13697: int fnord (void) { return 42; }
13698: int main (void)
1.4 paf 13699: {
13700: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13701: int status = $lt_dlunknown;
13702:
13703: if (self)
13704: {
13705: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.5 moko 13706: else
13707: {
13708: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13709: else puts (dlerror ());
13710: }
1.4 paf 13711: /* dlclose (self); */
13712: }
1.5 moko 13713: else
13714: puts (dlerror ());
1.4 paf 13715:
1.5 moko 13716: return status;
1.4 paf 13717: }
1.5 moko 13718: _LT_EOF
13719: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.4 paf 13720: (eval $ac_link) 2>&5
13721: ac_status=$?
1.10 moko 13722: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13723: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.5 moko 13724: (./conftest; exit; ) >&5 2>/dev/null
1.4 paf 13725: lt_status=$?
13726: case x$lt_status in
13727: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13728: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.5 moko 13729: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.4 paf 13730: esac
13731: else :
13732: # compilation failed
13733: lt_cv_dlopen_self=no
13734: fi
13735: fi
13736: rm -fr conftest*
13737:
1.10 moko 13738: ;;
13739: esac
1.4 paf 13740: fi
1.10 moko 13741: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13742: printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1.4 paf 13743:
1.10 moko 13744: if test yes = "$lt_cv_dlopen_self"; then
1.5 moko 13745: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.10 moko 13746: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13747: printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13748: if test ${lt_cv_dlopen_self_static+y}
13749: then :
13750: printf %s "(cached) " >&6
13751: else case e in #(
13752: e) if test yes = "$cross_compiling"; then :
1.4 paf 13753: lt_cv_dlopen_self_static=cross
13754: else
1.5 moko 13755: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.4 paf 13756: lt_status=$lt_dlunknown
1.5 moko 13757: cat > conftest.$ac_ext <<_LT_EOF
13758: #line $LINENO "configure"
1.4 paf 13759: #include "confdefs.h"
13760:
13761: #if HAVE_DLFCN_H
13762: #include <dlfcn.h>
13763: #endif
13764:
13765: #include <stdio.h>
13766:
13767: #ifdef RTLD_GLOBAL
13768: # define LT_DLGLOBAL RTLD_GLOBAL
13769: #else
13770: # ifdef DL_GLOBAL
13771: # define LT_DLGLOBAL DL_GLOBAL
13772: # else
13773: # define LT_DLGLOBAL 0
13774: # endif
13775: #endif
13776:
13777: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13778: find out it does not work in some platform. */
13779: #ifndef LT_DLLAZY_OR_NOW
13780: # ifdef RTLD_LAZY
13781: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13782: # else
13783: # ifdef DL_LAZY
13784: # define LT_DLLAZY_OR_NOW DL_LAZY
13785: # else
13786: # ifdef RTLD_NOW
13787: # define LT_DLLAZY_OR_NOW RTLD_NOW
13788: # else
13789: # ifdef DL_NOW
13790: # define LT_DLLAZY_OR_NOW DL_NOW
13791: # else
13792: # define LT_DLLAZY_OR_NOW 0
13793: # endif
13794: # endif
13795: # endif
13796: # endif
13797: #endif
13798:
1.10 moko 13799: /* When -fvisibility=hidden is used, assume the code has been annotated
1.5 moko 13800: correspondingly for the symbols needed. */
1.10 moko 13801: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13802: int fnord (void) __attribute__((visibility("default")));
1.4 paf 13803: #endif
13804:
1.10 moko 13805: int fnord (void) { return 42; }
13806: int main (void)
1.4 paf 13807: {
13808: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13809: int status = $lt_dlunknown;
13810:
13811: if (self)
13812: {
13813: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.5 moko 13814: else
13815: {
13816: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13817: else puts (dlerror ());
13818: }
1.4 paf 13819: /* dlclose (self); */
13820: }
1.5 moko 13821: else
13822: puts (dlerror ());
1.4 paf 13823:
1.5 moko 13824: return status;
1.4 paf 13825: }
1.5 moko 13826: _LT_EOF
13827: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.4 paf 13828: (eval $ac_link) 2>&5
13829: ac_status=$?
1.10 moko 13830: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13831: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.5 moko 13832: (./conftest; exit; ) >&5 2>/dev/null
1.4 paf 13833: lt_status=$?
13834: case x$lt_status in
13835: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13836: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.5 moko 13837: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1.4 paf 13838: esac
13839: else :
13840: # compilation failed
13841: lt_cv_dlopen_self_static=no
13842: fi
13843: fi
13844: rm -fr conftest*
13845:
1.10 moko 13846: ;;
13847: esac
1.4 paf 13848: fi
1.10 moko 13849: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13850: printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1.4 paf 13851: fi
13852:
1.10 moko 13853: CPPFLAGS=$save_CPPFLAGS
13854: LDFLAGS=$save_LDFLAGS
13855: LIBS=$save_LIBS
1.4 paf 13856: ;;
13857: esac
13858:
13859: case $lt_cv_dlopen_self in
13860: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13861: *) enable_dlopen_self=unknown ;;
13862: esac
13863:
13864: case $lt_cv_dlopen_self_static in
13865: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13866: *) enable_dlopen_self_static=unknown ;;
13867: esac
13868: fi
13869:
13870:
13871:
13872:
13873:
13874:
13875:
13876:
13877:
13878:
13879:
13880:
13881:
13882:
13883:
13884:
13885:
1.5 moko 13886: striplib=
13887: old_striplib=
1.10 moko 13888: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13889: printf %s "checking whether stripping libraries is possible... " >&6; }
13890: if test -z "$STRIP"; then
13891: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892: printf "%s\n" "no" >&6; }
13893: else
13894: if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13895: old_striplib="$STRIP --strip-debug"
13896: striplib="$STRIP --strip-unneeded"
13897: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13898: printf "%s\n" "yes" >&6; }
13899: else
13900: case $host_os in
13901: darwin*)
13902: # FIXME - insert some real tests, host_os isn't really good enough
1.5 moko 13903: striplib="$STRIP -x"
13904: old_striplib="$STRIP -S"
1.10 moko 13905: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13906: printf "%s\n" "yes" >&6; }
13907: ;;
13908: freebsd*)
13909: if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13910: old_striplib="$STRIP --strip-debug"
13911: striplib="$STRIP --strip-unneeded"
13912: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913: printf "%s\n" "yes" >&6; }
13914: else
13915: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916: printf "%s\n" "no" >&6; }
13917: fi
13918: ;;
13919: *)
13920: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921: printf "%s\n" "no" >&6; }
13922: ;;
13923: esac
13924: fi
1.5 moko 13925: fi
1.4 paf 13926:
13927:
13928:
13929:
13930:
13931:
13932:
13933:
13934:
13935:
13936:
13937:
1.10 moko 13938: # Report what library types will actually be built
13939: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13940: printf %s "checking if libtool supports shared libraries... " >&6; }
13941: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13942: printf "%s\n" "$can_build_shared" >&6; }
13943:
13944: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13945: printf %s "checking whether to build shared libraries... " >&6; }
13946: test no = "$can_build_shared" && enable_shared=no
1.4 paf 13947:
1.5 moko 13948: # On AIX, shared libraries and static libraries use the same namespace, and
13949: # are all built from PIC.
13950: case $host_os in
13951: aix3*)
1.10 moko 13952: test yes = "$enable_shared" && enable_static=no
1.5 moko 13953: if test -n "$RANLIB"; then
13954: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13955: postinstall_cmds='$RANLIB $lib'
13956: fi
13957: ;;
1.4 paf 13958:
1.5 moko 13959: aix[4-9]*)
1.10 moko 13960: if test ia64 != "$host_cpu"; then
13961: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13962: yes,aix,yes) ;; # shared object as lib.so file only
13963: yes,svr4,*) ;; # shared object as lib.so archive member only
13964: yes,*) enable_static=no ;; # shared object in lib.a archive as well
13965: esac
1.5 moko 13966: fi
13967: ;;
13968: esac
1.10 moko 13969: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13970: printf "%s\n" "$enable_shared" >&6; }
1.4 paf 13971:
1.10 moko 13972: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13973: printf %s "checking whether to build static libraries... " >&6; }
1.5 moko 13974: # Make sure either enable_shared or enable_static is yes.
1.10 moko 13975: test yes = "$enable_shared" || enable_static=yes
13976: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13977: printf "%s\n" "$enable_static" >&6; }
1.4 paf 13978:
13979:
13980:
13981:
1.5 moko 13982: fi
13983: ac_ext=c
13984: ac_cpp='$CPP $CPPFLAGS'
13985: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13986: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13987: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.4 paf 13988:
1.10 moko 13989: CC=$lt_save_CC
1.4 paf 13990:
13991:
13992:
13993:
13994:
13995:
13996:
13997:
13998:
13999:
14000:
14001:
14002:
14003:
14004:
1.5 moko 14005: ac_config_commands="$ac_config_commands libtool"
1.4 paf 14006:
14007:
14008:
14009:
1.5 moko 14010: # Only expand once:
1.4 paf 14011:
14012:
1.10 moko 14013: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
14014: printf %s "checking what extension is used for runtime loadable modules... " >&6; }
14015: if test ${libltdl_cv_shlibext+y}
14016: then :
14017: printf %s "(cached) " >&6
14018: else case e in #(
14019: e)
1.5 moko 14020: module=yes
14021: eval libltdl_cv_shlibext=$shrext_cmds
14022: module=no
14023: eval libltdl_cv_shrext=$shrext_cmds
1.10 moko 14024: ;;
14025: esac
1.5 moko 14026: fi
1.10 moko 14027: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
14028: printf "%s\n" "$libltdl_cv_shlibext" >&6; }
1.5 moko 14029: if test -n "$libltdl_cv_shlibext"; then
1.4 paf 14030:
1.10 moko 14031: printf "%s\n" "#define LT_MODULE_EXT \"$libltdl_cv_shlibext\"" >>confdefs.h
1.4 paf 14032:
1.5 moko 14033: fi
14034: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
1.4 paf 14035:
1.10 moko 14036: printf "%s\n" "#define LT_SHARED_EXT \"$libltdl_cv_shrext\"" >>confdefs.h
14037:
14038: fi
14039: if test -n "$shared_archive_member_spec"; then
14040:
14041: printf "%s\n" "#define LT_SHARED_LIB_MEMBER \"($shared_archive_member_spec.o)\"" >>confdefs.h
1.4 paf 14042:
1.5 moko 14043: fi
1.4 paf 14044:
1.10 moko 14045: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
14046: printf %s "checking what variable specifies run-time module search path... " >&6; }
14047: if test ${lt_cv_module_path_var+y}
14048: then :
14049: printf %s "(cached) " >&6
14050: else case e in #(
14051: e) lt_cv_module_path_var=$shlibpath_var ;;
14052: esac
1.5 moko 14053: fi
1.10 moko 14054: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
14055: printf "%s\n" "$lt_cv_module_path_var" >&6; }
1.5 moko 14056: if test -n "$lt_cv_module_path_var"; then
1.4 paf 14057:
1.10 moko 14058: printf "%s\n" "#define LT_MODULE_PATH_VAR \"$lt_cv_module_path_var\"" >>confdefs.h
1.4 paf 14059:
1.5 moko 14060: fi
1.4 paf 14061:
1.10 moko 14062: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
14063: printf %s "checking for the default library search path... " >&6; }
14064: if test ${lt_cv_sys_dlsearch_path+y}
14065: then :
14066: printf %s "(cached) " >&6
14067: else case e in #(
14068: e) lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec ;;
14069: esac
1.5 moko 14070: fi
1.10 moko 14071: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
14072: printf "%s\n" "$lt_cv_sys_dlsearch_path" >&6; }
1.5 moko 14073: if test -n "$lt_cv_sys_dlsearch_path"; then
14074: sys_dlsearch_path=
14075: for dir in $lt_cv_sys_dlsearch_path; do
14076: if test -z "$sys_dlsearch_path"; then
1.10 moko 14077: sys_dlsearch_path=$dir
1.5 moko 14078: else
1.10 moko 14079: sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
1.5 moko 14080: fi
14081: done
1.4 paf 14082:
1.10 moko 14083: printf "%s\n" "#define LT_DLSEARCH_PATH \"$sys_dlsearch_path\"" >>confdefs.h
14084:
14085: fi
14086:
14087: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14088: printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14089: if test ${ac_cv_c_undeclared_builtin_options+y}
14090: then :
14091: printf %s "(cached) " >&6
14092: else case e in #(
14093: e) ac_save_CFLAGS=$CFLAGS
14094: ac_cv_c_undeclared_builtin_options='cannot detect'
14095: for ac_arg in '' -fno-builtin; do
14096: CFLAGS="$ac_save_CFLAGS $ac_arg"
14097: # This test program should *not* compile successfully.
14098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099: /* end confdefs.h. */
14100:
14101: int
14102: main (void)
14103: {
14104: (void) strchr;
14105: ;
14106: return 0;
14107: }
1.5 moko 14108: _ACEOF
1.10 moko 14109: if ac_fn_c_try_compile "$LINENO"
14110: then :
14111:
14112: else case e in #(
14113: e) # This test program should compile successfully.
14114: # No library function is consistently available on
14115: # freestanding implementations, so test against a dummy
14116: # declaration. Include always-available headers on the
14117: # off chance that they somehow elicit warnings.
14118: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119: /* end confdefs.h. */
14120: #include <float.h>
14121: #include <limits.h>
14122: #include <stdarg.h>
14123: #include <stddef.h>
14124: extern void ac_decl (int, char *);
14125:
14126: int
14127: main (void)
14128: {
14129: (void) ac_decl (0, (char *) 0);
14130: (void) ac_decl;
1.4 paf 14131:
1.10 moko 14132: ;
14133: return 0;
14134: }
14135: _ACEOF
14136: if ac_fn_c_try_compile "$LINENO"
14137: then :
14138: if test x"$ac_arg" = x
14139: then :
14140: ac_cv_c_undeclared_builtin_options='none needed'
14141: else case e in #(
14142: e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
14143: esac
14144: fi
14145: break
1.5 moko 14146: fi
1.10 moko 14147: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14148: esac
14149: fi
14150: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14151: done
14152: CFLAGS=$ac_save_CFLAGS
14153: ;;
14154: esac
14155: fi
14156: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14157: printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14158: case $ac_cv_c_undeclared_builtin_options in #(
14159: 'cannot detect') :
14160: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14161: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14162: as_fn_error $? "cannot make $CC report undeclared builtins
14163: See 'config.log' for more details" "$LINENO" 5; } ;; #(
14164: 'none needed') :
14165: ac_c_undeclared_builtin_options='' ;; #(
14166: *) :
14167: ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14168: esac
1.4 paf 14169:
14170:
1.5 moko 14171: LT_DLLOADERS=
1.4 paf 14172:
14173:
1.5 moko 14174: ac_ext=c
14175: ac_cpp='$CPP $CPPFLAGS'
14176: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14177: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14178: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.4 paf 14179:
1.10 moko 14180: lt_dlload_save_LIBS=$LIBS
1.4 paf 14181:
1.5 moko 14182: LIBADD_DLOPEN=
1.10 moko 14183: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14184: printf %s "checking for library containing dlopen... " >&6; }
14185: if test ${ac_cv_search_dlopen+y}
14186: then :
14187: printf %s "(cached) " >&6
14188: else case e in #(
14189: e) ac_func_search_save_LIBS=$LIBS
1.5 moko 14190: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191: /* end confdefs.h. */
1.4 paf 14192:
1.5 moko 14193: /* Override any GCC internal prototype to avoid an error.
14194: Use char because int might match the return type of a GCC
1.10 moko 14195: builtin and then its argument prototype would still apply.
14196: The 'extern "C"' is for builds by C++ compilers;
14197: although this is not generally supported in C code supporting it here
14198: has little cost and some practical benefit (sr 110532). */
1.5 moko 14199: #ifdef __cplusplus
14200: extern "C"
14201: #endif
1.10 moko 14202: char dlopen (void);
1.5 moko 14203: int
1.10 moko 14204: main (void)
1.5 moko 14205: {
14206: return dlopen ();
14207: ;
14208: return 0;
14209: }
14210: _ACEOF
1.10 moko 14211: for ac_lib in '' dl
14212: do
1.5 moko 14213: if test -z "$ac_lib"; then
14214: ac_res="none required"
14215: else
14216: ac_res=-l$ac_lib
14217: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14218: fi
1.10 moko 14219: if ac_fn_c_try_link "$LINENO"
14220: then :
1.5 moko 14221: ac_cv_search_dlopen=$ac_res
14222: fi
1.10 moko 14223: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 14224: conftest$ac_exeext
1.10 moko 14225: if test ${ac_cv_search_dlopen+y}
14226: then :
1.5 moko 14227: break
1.4 paf 14228: fi
1.5 moko 14229: done
1.10 moko 14230: if test ${ac_cv_search_dlopen+y}
14231: then :
1.4 paf 14232:
1.10 moko 14233: else case e in #(
14234: e) ac_cv_search_dlopen=no ;;
14235: esac
1.5 moko 14236: fi
14237: rm conftest.$ac_ext
1.10 moko 14238: LIBS=$ac_func_search_save_LIBS ;;
14239: esac
1.5 moko 14240: fi
1.10 moko 14241: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14242: printf "%s\n" "$ac_cv_search_dlopen" >&6; }
1.5 moko 14243: ac_res=$ac_cv_search_dlopen
1.10 moko 14244: if test "$ac_res" != no
14245: then :
1.5 moko 14246: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.4 paf 14247:
1.10 moko 14248: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.4 paf 14249:
1.10 moko 14250: if test "$ac_cv_search_dlopen" != "none required"; then
14251: LIBADD_DLOPEN=-ldl
1.5 moko 14252: fi
1.10 moko 14253: libltdl_cv_lib_dl_dlopen=yes
1.5 moko 14254: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.10 moko 14255: else case e in #(
14256: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 moko 14257: /* end confdefs.h. */
14258: #if HAVE_DLFCN_H
14259: # include <dlfcn.h>
14260: #endif
1.4 paf 14261:
1.5 moko 14262: int
1.10 moko 14263: main (void)
1.5 moko 14264: {
14265: dlopen(0, 0);
14266: ;
14267: return 0;
14268: }
14269: _ACEOF
1.10 moko 14270: if ac_fn_c_try_link "$LINENO"
14271: then :
1.4 paf 14272:
1.10 moko 14273: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.4 paf 14274:
1.10 moko 14275: libltdl_cv_func_dlopen=yes
1.5 moko 14276: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.10 moko 14277: else case e in #(
14278: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14279: printf %s "checking for dlopen in -lsvld... " >&6; }
14280: if test ${ac_cv_lib_svld_dlopen+y}
14281: then :
14282: printf %s "(cached) " >&6
14283: else case e in #(
14284: e) ac_check_lib_save_LIBS=$LIBS
1.5 moko 14285: LIBS="-lsvld $LIBS"
14286: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287: /* end confdefs.h. */
1.4 paf 14288:
1.5 moko 14289: /* Override any GCC internal prototype to avoid an error.
14290: Use char because int might match the return type of a GCC
1.10 moko 14291: builtin and then its argument prototype would still apply.
14292: The 'extern "C"' is for builds by C++ compilers;
14293: although this is not generally supported in C code supporting it here
14294: has little cost and some practical benefit (sr 110532). */
1.5 moko 14295: #ifdef __cplusplus
14296: extern "C"
14297: #endif
1.10 moko 14298: char dlopen (void);
1.5 moko 14299: int
1.10 moko 14300: main (void)
1.5 moko 14301: {
14302: return dlopen ();
14303: ;
14304: return 0;
14305: }
14306: _ACEOF
1.10 moko 14307: if ac_fn_c_try_link "$LINENO"
14308: then :
1.5 moko 14309: ac_cv_lib_svld_dlopen=yes
1.10 moko 14310: else case e in #(
14311: e) ac_cv_lib_svld_dlopen=no ;;
14312: esac
1.5 moko 14313: fi
1.10 moko 14314: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 14315: conftest$ac_exeext conftest.$ac_ext
1.10 moko 14316: LIBS=$ac_check_lib_save_LIBS ;;
14317: esac
1.5 moko 14318: fi
1.10 moko 14319: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14320: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14321: if test "x$ac_cv_lib_svld_dlopen" = xyes
14322: then :
1.4 paf 14323:
1.10 moko 14324: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.4 paf 14325:
1.10 moko 14326: LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
1.5 moko 14327: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
14328: fi
1.10 moko 14329: ;;
14330: esac
1.5 moko 14331: fi
1.10 moko 14332: rm -f core conftest.err conftest.$ac_objext conftest.beam \
14333: conftest$ac_exeext conftest.$ac_ext ;;
14334: esac
1.5 moko 14335: fi
1.4 paf 14336:
1.10 moko 14337: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
1.5 moko 14338: then
1.10 moko 14339: lt_save_LIBS=$LIBS
1.5 moko 14340: LIBS="$LIBS $LIBADD_DLOPEN"
14341: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
1.10 moko 14342: if test "x$ac_cv_func_dlerror" = xyes
14343: then :
14344: printf "%s\n" "#define HAVE_DLERROR 1" >>confdefs.h
1.4 paf 14345:
1.5 moko 14346: fi
1.4 paf 14347:
1.10 moko 14348: LIBS=$lt_save_LIBS
1.5 moko 14349: fi
1.4 paf 14350:
14351:
1.5 moko 14352: LIBADD_SHL_LOAD=
14353: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.10 moko 14354: if test "x$ac_cv_func_shl_load" = xyes
14355: then :
1.4 paf 14356:
1.10 moko 14357: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.4 paf 14358:
1.5 moko 14359: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.10 moko 14360: else case e in #(
14361: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14362: printf %s "checking for shl_load in -ldld... " >&6; }
14363: if test ${ac_cv_lib_dld_shl_load+y}
14364: then :
14365: printf %s "(cached) " >&6
14366: else case e in #(
14367: e) ac_check_lib_save_LIBS=$LIBS
1.5 moko 14368: LIBS="-ldld $LIBS"
14369: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 14370: /* end confdefs.h. */
14371:
1.5 moko 14372: /* Override any GCC internal prototype to avoid an error.
14373: Use char because int might match the return type of a GCC
1.10 moko 14374: builtin and then its argument prototype would still apply.
14375: The 'extern "C"' is for builds by C++ compilers;
14376: although this is not generally supported in C code supporting it here
14377: has little cost and some practical benefit (sr 110532). */
1.5 moko 14378: #ifdef __cplusplus
14379: extern "C"
14380: #endif
1.10 moko 14381: char shl_load (void);
1.4 paf 14382: int
1.10 moko 14383: main (void)
1.4 paf 14384: {
1.5 moko 14385: return shl_load ();
1.4 paf 14386: ;
14387: return 0;
14388: }
14389: _ACEOF
1.10 moko 14390: if ac_fn_c_try_link "$LINENO"
14391: then :
1.5 moko 14392: ac_cv_lib_dld_shl_load=yes
1.10 moko 14393: else case e in #(
14394: e) ac_cv_lib_dld_shl_load=no ;;
14395: esac
1.5 moko 14396: fi
1.10 moko 14397: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 14398: conftest$ac_exeext conftest.$ac_ext
1.10 moko 14399: LIBS=$ac_check_lib_save_LIBS ;;
14400: esac
1.5 moko 14401: fi
1.10 moko 14402: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14403: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14404: if test "x$ac_cv_lib_dld_shl_load" = xyes
14405: then :
1.5 moko 14406:
1.10 moko 14407: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.4 paf 14408:
1.5 moko 14409: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.10 moko 14410: LIBADD_SHL_LOAD=-ldld
1.4 paf 14411: fi
1.10 moko 14412: ;;
14413: esac
1.4 paf 14414: fi
14415:
1.5 moko 14416:
14417:
14418: case $host_os in
14419: darwin[1567].*)
14420: # We only want this for pre-Mac OS X 10.4.
14421: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
1.10 moko 14422: if test "x$ac_cv_func__dyld_func_lookup" = xyes
14423: then :
1.5 moko 14424:
1.10 moko 14425: printf "%s\n" "#define HAVE_DYLD 1" >>confdefs.h
1.5 moko 14426:
14427: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
1.4 paf 14428: fi
14429:
1.5 moko 14430: ;;
14431: beos*)
14432: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
14433: ;;
1.10 moko 14434: cygwin* | mingw* | windows* | pw32*)
14435: ac_fn_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
14436: " "$ac_c_undeclared_builtin_options" "CFLAGS"
14437: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes
14438: then :
1.5 moko 14439: ac_have_decl=1
1.10 moko 14440: else case e in #(
14441: e) ac_have_decl=0 ;;
14442: esac
1.5 moko 14443: fi
1.10 moko 14444: printf "%s\n" "#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl" >>confdefs.h
1.5 moko 14445:
14446: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
14447: ;;
14448: esac
14449:
1.10 moko 14450: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14451: printf %s "checking for dld_link in -ldld... " >&6; }
14452: if test ${ac_cv_lib_dld_dld_link+y}
14453: then :
14454: printf %s "(cached) " >&6
14455: else case e in #(
14456: e) ac_check_lib_save_LIBS=$LIBS
1.5 moko 14457: LIBS="-ldld $LIBS"
14458: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 14459: /* end confdefs.h. */
14460:
1.5 moko 14461: /* Override any GCC internal prototype to avoid an error.
14462: Use char because int might match the return type of a GCC
1.10 moko 14463: builtin and then its argument prototype would still apply.
14464: The 'extern "C"' is for builds by C++ compilers;
14465: although this is not generally supported in C code supporting it here
14466: has little cost and some practical benefit (sr 110532). */
1.4 paf 14467: #ifdef __cplusplus
14468: extern "C"
14469: #endif
1.10 moko 14470: char dld_link (void);
1.4 paf 14471: int
1.10 moko 14472: main (void)
1.4 paf 14473: {
1.5 moko 14474: return dld_link ();
1.4 paf 14475: ;
14476: return 0;
14477: }
14478: _ACEOF
1.10 moko 14479: if ac_fn_c_try_link "$LINENO"
14480: then :
1.5 moko 14481: ac_cv_lib_dld_dld_link=yes
1.10 moko 14482: else case e in #(
14483: e) ac_cv_lib_dld_dld_link=no ;;
14484: esac
1.5 moko 14485: fi
1.10 moko 14486: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.5 moko 14487: conftest$ac_exeext conftest.$ac_ext
1.10 moko 14488: LIBS=$ac_check_lib_save_LIBS ;;
14489: esac
1.5 moko 14490: fi
1.10 moko 14491: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14492: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14493: if test "x$ac_cv_lib_dld_dld_link" = xyes
14494: then :
1.5 moko 14495:
1.10 moko 14496: printf "%s\n" "#define HAVE_DLD 1" >>confdefs.h
1.5 moko 14497:
14498: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
14499: fi
14500:
14501:
14502:
14503:
14504: LT_DLPREOPEN=
14505: if test -n "$LT_DLLOADERS"
14506: then
14507: for lt_loader in $LT_DLLOADERS; do
14508: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
14509: done
14510:
1.10 moko 14511: printf "%s\n" "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.5 moko 14512:
14513: fi
14514:
14515:
14516: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
14517:
14518:
1.10 moko 14519: LIBS=$lt_dlload_save_LIBS
1.5 moko 14520: ac_ext=c
14521: ac_cpp='$CPP $CPPFLAGS'
14522: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14523: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14524: ac_compiler_gnu=$ac_cv_c_compiler_gnu
14525:
14526:
1.10 moko 14527: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14528: printf %s "checking for _ prefix in compiled symbols... " >&6; }
14529: if test ${lt_cv_sys_symbol_underscore+y}
14530: then :
14531: printf %s "(cached) " >&6
14532: else case e in #(
14533: e) lt_cv_sys_symbol_underscore=no
1.5 moko 14534: cat > conftest.$ac_ext <<_LT_EOF
14535: void nm_test_func(){}
1.10 moko 14536: int main(void){nm_test_func;return 0;}
1.5 moko 14537: _LT_EOF
14538: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14539: (eval $ac_compile) 2>&5
1.4 paf 14540: ac_status=$?
1.10 moko 14541: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 14542: test $ac_status = 0; }; then
14543: # Now try to grab the symbols.
14544: ac_nlist=conftest.nm
14545: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14546: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14547: ac_status=$?
1.10 moko 14548: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.5 moko 14549: test $ac_status = 0; } && test -s "$ac_nlist"; then
14550: # See whether the symbols have a leading underscore.
14551: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14552: lt_cv_sys_symbol_underscore=yes
14553: else
14554: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14555: :
14556: else
14557: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14558: fi
14559: fi
14560: else
14561: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14562: fi
14563: else
14564: echo "configure: failed program was:" >&5
14565: cat conftest.c >&5
14566: fi
14567: rm -rf conftest*
1.10 moko 14568: ;;
14569: esac
1.5 moko 14570: fi
1.10 moko 14571: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14572: printf "%s\n" "$lt_cv_sys_symbol_underscore" >&6; }
1.5 moko 14573: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14574:
14575:
1.10 moko 14576: if test yes = "$lt_cv_sys_symbol_underscore"; then
14577: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
14578: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
14579: printf %s "checking whether we have to add an underscore for dlsym... " >&6; }
14580: if test ${libltdl_cv_need_uscore+y}
14581: then :
14582: printf %s "(cached) " >&6
14583: else case e in #(
14584: e) libltdl_cv_need_uscore=unknown
14585: dlsym_uscore_save_LIBS=$LIBS
14586: LIBS="$LIBS $LIBADD_DLOPEN"
14587: libname=conftmod # stay within 8.3 filename limits!
14588: cat >$libname.$ac_ext <<_LT_EOF
1.5 moko 14589: #line $LINENO "configure"
14590: #include "confdefs.h"
1.10 moko 14591: /* When -fvisibility=hidden is used, assume the code has been annotated
14592: correspondingly for the symbols needed. */
14593: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14594: int fnord () __attribute__((visibility("default")));
14595: #endif
14596: int fnord () { return 42; }
14597: _LT_EOF
1.5 moko 14598:
1.10 moko 14599: # ltfn_module_cmds module_cmds
14600: # Execute tilde-delimited MODULE_CMDS with environment primed for
14601: # $module_cmds or $archive_cmds type content.
14602: ltfn_module_cmds ()
14603: {( # subshell avoids polluting parent global environment
14604: module_cmds_save_ifs=$IFS; IFS='~'
14605: for cmd in $1; do
14606: IFS=$module_cmds_save_ifs
14607: libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
14608: rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
14609: major=; versuffix=; verstring=; deplibs=
14610: ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
14611: eval $cmd
14612: done
14613: IFS=$module_cmds_save_ifs
14614: )}
14615:
14616: # Compile a loadable module using libtool macro expansion results.
14617: $CC $pic_flag -c $libname.$ac_ext
14618: ltfn_module_cmds "${module_cmds:-$archive_cmds}"
14619:
14620: # Try to fetch fnord with dlsym().
14621: libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
14622: cat >conftest.$ac_ext <<_LT_EOF
14623: #line $LINENO "configure"
14624: #include "confdefs.h"
1.5 moko 14625: #if HAVE_DLFCN_H
14626: #include <dlfcn.h>
14627: #endif
14628: #include <stdio.h>
1.10 moko 14629: #ifndef RTLD_GLOBAL
1.5 moko 14630: # ifdef DL_GLOBAL
1.10 moko 14631: # define RTLD_GLOBAL DL_GLOBAL
1.5 moko 14632: # else
1.10 moko 14633: # define RTLD_GLOBAL 0
1.5 moko 14634: # endif
14635: #endif
1.10 moko 14636: #ifndef RTLD_NOW
14637: # ifdef DL_NOW
14638: # define RTLD_NOW DL_NOW
1.5 moko 14639: # else
1.10 moko 14640: # define RTLD_NOW 0
1.5 moko 14641: # endif
14642: #endif
1.10 moko 14643: int main (void) {
14644: void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
14645: int status = $libltdl_dlunknown;
14646: if (handle) {
14647: if (dlsym (handle, "fnord"))
14648: status = $libltdl_dlnouscore;
14649: else {
14650: if (dlsym (handle, "_fnord"))
14651: status = $libltdl_dluscore;
1.5 moko 14652: else
1.10 moko 14653: puts (dlerror ());
1.5 moko 14654: }
1.10 moko 14655: dlclose (handle);
14656: } else
1.5 moko 14657: puts (dlerror ());
14658: return status;
1.4 paf 14659: }
1.5 moko 14660: _LT_EOF
1.10 moko 14661: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.4 paf 14662: (eval $ac_link) 2>&5
14663: ac_status=$?
1.10 moko 14664: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14665: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14666: (./conftest; exit; ) >&5 2>/dev/null
14667: libltdl_status=$?
14668: case x$libltdl_status in
14669: x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
14670: x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
14671: x*) libltdl_cv_need_uscore=unknown ;;
14672: esac
14673: fi
14674: rm -rf conftest* $libname*
14675: LIBS=$dlsym_uscore_save_LIBS
14676: ;;
14677: esac
1.4 paf 14678: fi
1.10 moko 14679: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
14680: printf "%s\n" "$libltdl_cv_need_uscore" >&6; }
1.5 moko 14681: fi
1.4 paf 14682: fi
14683:
1.10 moko 14684: if test yes = "$libltdl_cv_need_uscore"; then
1.5 moko 14685:
1.10 moko 14686: printf "%s\n" "#define NEED_USCORE 1" >>confdefs.h
1.4 paf 14687:
14688: fi
14689:
1.10 moko 14690: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
14691: printf %s "checking whether deplibs are loaded by dlopen... " >&6; }
14692: if test ${lt_cv_sys_dlopen_deplibs+y}
14693: then :
14694: printf %s "(cached) " >&6
14695: else case e in #(
14696: e) # PORTME does your system automatically load deplibs for dlopen?
1.5 moko 14697: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
14698: # For now, we just catch OSes we know something about -- in the
14699: # future, we'll try test this programmatically.
14700: lt_cv_sys_dlopen_deplibs=unknown
14701: case $host_os in
14702: aix3*|aix4.1.*|aix4.2.*)
14703: # Unknown whether this is true for these versions of AIX, but
1.10 moko 14704: # we want this 'case' here to explicitly catch those versions.
1.5 moko 14705: lt_cv_sys_dlopen_deplibs=unknown
14706: ;;
14707: aix[4-9]*)
14708: lt_cv_sys_dlopen_deplibs=yes
14709: ;;
14710: amigaos*)
14711: case $host_cpu in
14712: powerpc)
14713: lt_cv_sys_dlopen_deplibs=no
1.4 paf 14714: ;;
14715: esac
1.5 moko 14716: ;;
14717: darwin*)
14718: # Assuming the user has installed a libdl from somewhere, this is true
14719: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
14720: lt_cv_sys_dlopen_deplibs=yes
14721: ;;
1.10 moko 14722: freebsd* | dragonfly* | midnightbsd*)
1.5 moko 14723: lt_cv_sys_dlopen_deplibs=yes
14724: ;;
14725: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
14726: # GNU and its variants, using gnu ld.so (Glibc)
14727: lt_cv_sys_dlopen_deplibs=yes
14728: ;;
14729: hpux10*|hpux11*)
14730: lt_cv_sys_dlopen_deplibs=yes
14731: ;;
14732: interix*)
14733: lt_cv_sys_dlopen_deplibs=yes
14734: ;;
14735: irix[12345]*|irix6.[01]*)
14736: # Catch all versions of IRIX before 6.2, and indicate that we don't
14737: # know how it worked for any of those versions.
14738: lt_cv_sys_dlopen_deplibs=unknown
14739: ;;
14740: irix*)
14741: # The case above catches anything before 6.2, and it's known that
14742: # at 6.2 and later dlopen does load deplibs.
14743: lt_cv_sys_dlopen_deplibs=yes
14744: ;;
1.10 moko 14745: *-mlibc)
14746: lt_cv_sys_dlopen_deplibs=yes
14747: ;;
14748: netbsd* | netbsdelf*-gnu)
1.5 moko 14749: lt_cv_sys_dlopen_deplibs=yes
14750: ;;
14751: openbsd*)
14752: lt_cv_sys_dlopen_deplibs=yes
14753: ;;
14754: osf[1234]*)
14755: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
14756: # it did *not* use an RPATH in a shared library to find objects the
1.10 moko 14757: # library depends on, so we explicitly say 'no'.
1.5 moko 14758: lt_cv_sys_dlopen_deplibs=no
14759: ;;
14760: osf5.0|osf5.0a|osf5.1)
14761: # dlopen *does* load deplibs and with the right loader patch applied
14762: # it even uses RPATH in a shared library to search for shared objects
14763: # that the library depends on, but there's no easy way to know if that
14764: # patch is installed. Since this is the case, all we can really
14765: # say is unknown -- it depends on the patch being installed. If
1.10 moko 14766: # it is, this changes to 'yes'. Without it, it would be 'no'.
1.5 moko 14767: lt_cv_sys_dlopen_deplibs=unknown
14768: ;;
14769: osf*)
14770: # the two cases above should catch all versions of osf <= 5.1. Read
14771: # the comments above for what we know about them.
14772: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
1.10 moko 14773: # is used to find them so we can finally say 'yes'.
1.5 moko 14774: lt_cv_sys_dlopen_deplibs=yes
14775: ;;
14776: qnx*)
14777: lt_cv_sys_dlopen_deplibs=yes
14778: ;;
14779: solaris*)
14780: lt_cv_sys_dlopen_deplibs=yes
14781: ;;
14782: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14783: libltdl_cv_sys_dlopen_deplibs=yes
14784: ;;
14785: esac
1.10 moko 14786: ;;
14787: esac
1.4 paf 14788: fi
1.10 moko 14789: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
14790: printf "%s\n" "$lt_cv_sys_dlopen_deplibs" >&6; }
14791: if test yes != "$lt_cv_sys_dlopen_deplibs"; then
1.4 paf 14792:
1.10 moko 14793: printf "%s\n" "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.1 paf 14794:
14795: fi
14796:
1.4 paf 14797:
1.10 moko 14798: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
1.5 moko 14799: "
1.10 moko 14800: if test "x$ac_cv_header_argz_h" = xyes
14801: then :
14802: printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
1.4 paf 14803:
14804: fi
1.1 paf 14805:
1.4 paf 14806:
1.5 moko 14807: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
14808: # include <argz.h>
14809: #endif
14810: "
1.10 moko 14811: if test "x$ac_cv_type_error_t" = xyes
14812: then :
1.4 paf 14813:
1.10 moko 14814: printf "%s\n" "#define HAVE_ERROR_T 1" >>confdefs.h
1.4 paf 14815:
14816:
1.10 moko 14817: else case e in #(
14818: e)
14819: printf "%s\n" "#define error_t int" >>confdefs.h
1.4 paf 14820:
14821:
1.10 moko 14822: printf "%s\n" "#define __error_t_defined 1" >>confdefs.h
14823: ;;
14824: esac
14825: fi
1.4 paf 14826:
14827:
1.10 moko 14828: LT_ARGZ_H=
1.4 paf 14829:
1.10 moko 14830: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert argz_next argz_stringify
1.5 moko 14831: do :
1.10 moko 14832: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.5 moko 14833: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.10 moko 14834: if eval test \"x\$"$as_ac_var"\" = x"yes"
14835: then :
1.5 moko 14836: cat >>confdefs.h <<_ACEOF
1.10 moko 14837: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.5 moko 14838: _ACEOF
1.4 paf 14839:
1.10 moko 14840: else case e in #(
14841: e) LT_ARGZ_H=lt__argz.h; case " $LIBOBJS " in
14842: *" lt__argz.$ac_objext "* ) ;;
14843: *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext"
14844: ;;
14845: esac
1.5 moko 14846: ;;
14847: esac
1.10 moko 14848: fi
1.4 paf 14849:
1.5 moko 14850: done
1.4 paf 14851:
1.10 moko 14852: if test -z "$LT_ARGZ_H"
14853: then :
14854: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
14855: printf %s "checking if argz actually works... " >&6; }
14856: if test ${lt_cv_sys_argz_works+y}
14857: then :
14858: printf %s "(cached) " >&6
14859: else case e in #(
14860: e) case $host_os in #(
1.5 moko 14861: *cygwin*)
14862: lt_cv_sys_argz_works=no
1.10 moko 14863: if test no != "$cross_compiling"; then
1.5 moko 14864: lt_cv_sys_argz_works="guessing no"
14865: else
14866: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
14867: save_IFS=$IFS
14868: IFS=-.
1.10 moko 14869: set x `uname -r | $SED -e "$lt_sed_extract_leading_digits"`
1.5 moko 14870: IFS=$save_IFS
14871: lt_os_major=${2-0}
14872: lt_os_minor=${3-0}
14873: lt_os_micro=${4-0}
1.10 moko 14874: if test 1 -lt "$lt_os_major" \
14875: || { test 1 -eq "$lt_os_major" \
14876: && { test 5 -lt "$lt_os_minor" \
14877: || { test 5 -eq "$lt_os_minor" \
14878: && test 24 -lt "$lt_os_micro"; }; }; }; then
1.5 moko 14879: lt_cv_sys_argz_works=yes
14880: fi
14881: fi
14882: ;; #(
14883: *) lt_cv_sys_argz_works=yes ;;
1.10 moko 14884: esac ;;
14885: esac
1.4 paf 14886: fi
1.10 moko 14887: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
14888: printf "%s\n" "$lt_cv_sys_argz_works" >&6; }
14889: if test yes = "$lt_cv_sys_argz_works"
14890: then :
1.4 paf 14891:
1.10 moko 14892: printf "%s\n" "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.4 paf 14893:
1.10 moko 14894: else case e in #(
14895: e) LT_ARGZ_H=lt__argz.h
1.5 moko 14896: case " $LIBOBJS " in
1.10 moko 14897: *" lt__argz.$ac_objext "* ) ;;
14898: *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext"
14899: ;;
14900: esac
1.5 moko 14901: ;;
14902: esac
1.4 paf 14903: fi
1.5 moko 14904: fi
14905:
1.4 paf 14906:
1.5 moko 14907:
1.10 moko 14908: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
14909: printf %s "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
14910: if test ${libltdl_cv_preloaded_symbols+y}
14911: then :
14912: printf %s "(cached) " >&6
14913: else case e in #(
14914: e) if test -n "$lt_cv_sys_global_symbol_pipe"; then
1.5 moko 14915: libltdl_cv_preloaded_symbols=yes
14916: else
14917: libltdl_cv_preloaded_symbols=no
14918: fi
1.10 moko 14919: ;;
14920: esac
1.1 paf 14921: fi
1.10 moko 14922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
14923: printf "%s\n" "$libltdl_cv_preloaded_symbols" >&6; }
14924: if test yes = "$libltdl_cv_preloaded_symbols"; then
1.1 paf 14925:
1.10 moko 14926: printf "%s\n" "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.1 paf 14927:
1.4 paf 14928: fi
14929:
14930:
1.5 moko 14931:
14932: # Check whether --enable-ltdl-install was given.
1.10 moko 14933: if test ${enable_ltdl_install+y}
14934: then :
1.5 moko 14935: enableval=$enable_ltdl_install;
1.4 paf 14936: fi
14937:
1.5 moko 14938:
1.10 moko 14939: case ,$enable_ltdl_install,$enable_ltdl_convenience in
1.5 moko 14940: *yes*) ;;
14941: *) enable_ltdl_convenience=yes ;;
14942: esac
14943:
1.10 moko 14944: if test no != "${enable_ltdl_install-no}"; then
1.5 moko 14945: INSTALL_LTDL_TRUE=
14946: INSTALL_LTDL_FALSE='#'
1.4 paf 14947: else
1.5 moko 14948: INSTALL_LTDL_TRUE='#'
14949: INSTALL_LTDL_FALSE=
14950: fi
14951:
1.10 moko 14952: if test no != "${enable_ltdl_convenience-no}"; then
1.5 moko 14953: CONVENIENCE_LTDL_TRUE=
14954: CONVENIENCE_LTDL_FALSE='#'
1.4 paf 14955: else
1.5 moko 14956: CONVENIENCE_LTDL_TRUE='#'
14957: CONVENIENCE_LTDL_FALSE=
1.1 paf 14958: fi
1.4 paf 14959:
1.10 moko 14960: if test -n "$LT_ARGZ_H"; then
14961: LTARGZH_EXISTS_TRUE=
14962: LTARGZH_EXISTS_FALSE='#'
14963: else
14964: LTARGZH_EXISTS_TRUE='#'
14965: LTARGZH_EXISTS_FALSE=
14966: fi
14967:
1.4 paf 14968:
14969:
14970:
14971:
14972:
1.5 moko 14973: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
14974: # the user used. This is so that ltdl.h can pick up the parent projects
14975: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
14976: # definitions required by ltdl.c.
14977: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
1.4 paf 14978:
14979:
14980:
1.10 moko 14981: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
14982: "
14983: if test "x$ac_cv_header_unistd_h" = xyes
14984: then :
14985: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14986:
14987: fi
14988: ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default
14989: "
14990: if test "x$ac_cv_header_dl_h" = xyes
14991: then :
14992: printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
14993:
14994: fi
14995: ac_fn_c_check_header_compile "$LINENO" "sys/dl.h" "ac_cv_header_sys_dl_h" "$ac_includes_default
14996: "
14997: if test "x$ac_cv_header_sys_dl_h" = xyes
14998: then :
14999: printf "%s\n" "#define HAVE_SYS_DL_H 1" >>confdefs.h
15000:
15001: fi
15002: ac_fn_c_check_header_compile "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default
15003: "
15004: if test "x$ac_cv_header_dld_h" = xyes
15005: then :
15006: printf "%s\n" "#define HAVE_DLD_H 1" >>confdefs.h
15007:
15008: fi
15009: ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default
15010: "
15011: if test "x$ac_cv_header_mach_o_dyld_h" = xyes
15012: then :
15013: printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
15014:
15015: fi
15016: ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default
1.5 moko 15017: "
1.10 moko 15018: if test "x$ac_cv_header_dirent_h" = xyes
15019: then :
15020: printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
1.2 paf 15021:
1.4 paf 15022: fi
15023:
1.5 moko 15024:
15025:
1.10 moko 15026: for ac_func in closedir opendir readdir
1.5 moko 15027: do :
1.10 moko 15028: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.5 moko 15029: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.10 moko 15030: if eval test \"x\$"$as_ac_var"\" = x"yes"
15031: then :
1.5 moko 15032: cat >>confdefs.h <<_ACEOF
1.10 moko 15033: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.4 paf 15034: _ACEOF
1.2 paf 15035:
1.10 moko 15036: else case e in #(
15037: e) case " $LIBOBJS " in
1.5 moko 15038: *" lt__dirent.$ac_objext "* ) ;;
15039: *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
15040: ;;
15041: esac
1.10 moko 15042: ;;
15043: esac
15044: fi
1.5 moko 15045:
15046: done
15047:
1.10 moko 15048: for ac_func in strlcat strlcpy
1.5 moko 15049: do :
1.10 moko 15050: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.5 moko 15051: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.10 moko 15052: if eval test \"x\$"$as_ac_var"\" = x"yes"
15053: then :
1.5 moko 15054: cat >>confdefs.h <<_ACEOF
1.10 moko 15055: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.2 paf 15056: _ACEOF
1.4 paf 15057:
1.10 moko 15058: else case e in #(
15059: e) case " $LIBOBJS " in
1.5 moko 15060: *" lt__strl.$ac_objext "* ) ;;
15061: *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
15062: ;;
15063: esac
1.10 moko 15064: ;;
15065: esac
15066: fi
1.2 paf 15067:
1.5 moko 15068: done
15069:
15070:
1.10 moko 15071: printf "%s\n" "#define LT_LIBEXT \"$libext\"" >>confdefs.h
1.2 paf 15072:
1.5 moko 15073:
15074: name=
15075: eval "lt_libprefix=\"$libname_spec\""
15076:
1.10 moko 15077: printf "%s\n" "#define LT_LIBPREFIX \"$lt_libprefix\"" >>confdefs.h
1.2 paf 15078:
1.5 moko 15079:
15080: name=ltdl
15081: eval "LTDLOPEN=\"$libname_spec\""
15082:
15083:
15084:
15085:
1.12 moko 15086: ## ----------- ##
15087: ## Assertions. ##
15088: ## ----------- ##
15089: # parser3 specific: disable assertions in a release build by default.
15090: # Has to be set here, as ltdl runs its own configure.
15091: # CPPFLAGS, not AC_DEFINE: slist.c includes <assert.h> without any config.h.
15092:
15093: # Check whether --with-assertions was given.
15094: if test ${with_assertions+y}
15095: then :
15096: withval=$with_assertions; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
15097: printf "%s\n" "$as_me: WARNING: enabling assertions" >&2;}
15098:
15099: else case e in #(
15100: e) CPPFLAGS="$CPPFLAGS -DNDEBUG"
15101: ;;
15102: esac
15103: fi
15104:
15105:
15106:
1.5 moko 15107: ## -------- ##
15108: ## Outputs. ##
15109: ## -------- ##
15110: ac_config_files="$ac_config_files Makefile"
15111:
15112: cat >confcache <<\_ACEOF
15113: # This file is a shell script that caches the results of configure
15114: # tests run on this system so they can be shared between configure
15115: # scripts and configure runs, see configure's option --config-cache.
15116: # It is not useful on other systems. If it contains results you don't
15117: # want to keep, you may remove or edit it.
15118: #
15119: # config.status only pays attention to the cache file if you give it
15120: # the --recheck option to rerun configure.
15121: #
1.10 moko 15122: # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15123: # loading this file, other *unset* 'ac_cv_foo' will be assigned the
1.5 moko 15124: # following values.
15125:
1.2 paf 15126: _ACEOF
15127:
1.5 moko 15128: # The following way of writing the cache mishandles newlines in values,
15129: # but we know of no workaround that is simple, portable, and efficient.
15130: # So, we kill variables containing newlines.
15131: # Ultrix sh set writes to stderr and can't be redirected directly,
15132: # and sets the high bit in the cache file unless we assign to the vars.
15133: (
15134: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15135: eval ac_val=\$$ac_var
15136: case $ac_val in #(
15137: *${as_nl}*)
15138: case $ac_var in #(
1.10 moko 15139: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15140: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.5 moko 15141: esac
15142: case $ac_var in #(
15143: _ | IFS | as_nl) ;; #(
15144: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15145: *) { eval $ac_var=; unset $ac_var;} ;;
15146: esac ;;
15147: esac
15148: done
15149:
15150: (set) 2>&1 |
15151: case $as_nl`(ac_space=' '; set) 2>&1` in #(
15152: *${as_nl}ac_space=\ *)
1.10 moko 15153: # 'set' does not quote correctly, so add quotes: double-quote
1.5 moko 15154: # substitution turns \\\\ into \\, and sed turns \\ into \.
15155: sed -n \
15156: "s/'/'\\\\''/g;
15157: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15158: ;; #(
15159: *)
1.10 moko 15160: # 'set' quotes correctly as required by POSIX, so do not add quotes.
1.5 moko 15161: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15162: ;;
15163: esac |
15164: sort
15165: ) |
15166: sed '
15167: /^ac_cv_env_/b end
15168: t clear
15169: :clear
1.10 moko 15170: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.5 moko 15171: t end
15172: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15173: :end' >>confcache
15174: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15175: if test -w "$cache_file"; then
15176: if test "x$cache_file" != "x/dev/null"; then
1.10 moko 15177: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15178: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.5 moko 15179: if test ! -f "$cache_file" || test -h "$cache_file"; then
15180: cat confcache >"$cache_file"
15181: else
15182: case $cache_file in #(
15183: */* | ?:*)
15184: mv -f confcache "$cache_file"$$ &&
15185: mv -f "$cache_file"$$ "$cache_file" ;; #(
15186: *)
15187: mv -f confcache "$cache_file" ;;
15188: esac
15189: fi
15190: fi
15191: else
1.10 moko 15192: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15193: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.5 moko 15194: fi
1.4 paf 15195: fi
1.5 moko 15196: rm -f confcache
15197:
15198: test "x$prefix" = xNONE && prefix=$ac_default_prefix
15199: # Let make expand exec_prefix.
15200: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15201:
15202: DEFS=-DHAVE_CONFIG_H
15203:
15204: ac_libobjs=
15205: ac_ltlibobjs=
15206: U=
15207: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15208: # 1. Remove the extension, and $U if already installed.
15209: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.10 moko 15210: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.5 moko 15211: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15212: # will be set to the directory where LIBOBJS objects are built.
15213: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15214: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15215: done
15216: LIBOBJS=$ac_libobjs
15217:
15218: LTLIBOBJS=$ac_ltlibobjs
1.4 paf 15219:
1.1 paf 15220:
1.10 moko 15221: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15222: printf %s "checking that generated files are newer than configure... " >&6; }
1.8 moko 15223: if test -n "$am_sleep_pid"; then
15224: # Hide warnings about reused PIDs.
15225: wait $am_sleep_pid 2>/dev/null
15226: fi
1.10 moko 15227: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15228: printf "%s\n" "done" >&6; }
15229: case $enable_silent_rules in # (((
15230: yes) AM_DEFAULT_VERBOSITY=0;;
15231: no) AM_DEFAULT_VERBOSITY=1;;
15232: esac
15233: if test $am_cv_make_support_nested_variables = yes; then
15234: AM_V='$(V)'
15235: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15236: else
15237: AM_V=$AM_DEFAULT_VERBOSITY
15238: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15239: fi
15240:
1.5 moko 15241: if test -n "$EXEEXT"; then
15242: am__EXEEXT_TRUE=
15243: am__EXEEXT_FALSE='#'
1.4 paf 15244: else
1.5 moko 15245: am__EXEEXT_TRUE='#'
15246: am__EXEEXT_FALSE=
15247: fi
1.4 paf 15248:
1.5 moko 15249: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15250: as_fn_error $? "conditional \"AMDEP\" was never defined.
15251: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15252: fi
15253: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15254: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15255: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15256: fi
15257: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
15258: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
15259: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15260: fi
15261: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
15262: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
15263: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15264: fi
1.10 moko 15265: if test -z "${LTARGZH_EXISTS_TRUE}" && test -z "${LTARGZH_EXISTS_FALSE}"; then
15266: as_fn_error $? "conditional \"LTARGZH_EXISTS\" was never defined.
15267: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15268: fi
1.5 moko 15269: LT_CONFIG_H=config.h
1.2 paf 15270:
1.5 moko 15271: : "${CONFIG_STATUS=./config.status}"
15272: ac_write_fail=0
15273: ac_clean_files_save=$ac_clean_files
15274: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.10 moko 15275: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15276: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.5 moko 15277: as_write_fail=0
15278: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15279: #! $SHELL
15280: # Generated by $as_me.
15281: # Run this file to recreate the current configuration.
15282: # Compiler output produced by configure, useful for debugging
15283: # configure, is in config.log if it exists.
1.4 paf 15284:
1.5 moko 15285: debug=false
15286: ac_cs_recheck=false
15287: ac_cs_silent=false
1.1 paf 15288:
1.5 moko 15289: SHELL=\${CONFIG_SHELL-$SHELL}
15290: export SHELL
15291: _ASEOF
15292: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15293: ## -------------------- ##
15294: ## M4sh Initialization. ##
15295: ## -------------------- ##
15296:
15297: # Be more Bourne compatible
15298: DUALCASE=1; export DUALCASE # for MKS sh
1.10 moko 15299: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15300: then :
1.5 moko 15301: emulate sh
15302: NULLCMD=:
15303: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15304: # is contrary to our usage. Disable this feature.
15305: alias -g '${1+"$@"}'='"$@"'
15306: setopt NO_GLOB_SUBST
1.10 moko 15307: else case e in #(
15308: e) case `(set -o) 2>/dev/null` in #(
1.5 moko 15309: *posix*) :
15310: set -o posix ;; #(
15311: *) :
15312: ;;
1.10 moko 15313: esac ;;
1.5 moko 15314: esac
15315: fi
1.2 paf 15316:
1.4 paf 15317:
1.10 moko 15318:
15319: # Reset variables that may have inherited troublesome values from
15320: # the environment.
15321:
15322: # IFS needs to be set, to space, tab, and newline, in precisely that order.
15323: # (If _AS_PATH_WALK were called with IFS unset, it would have the
15324: # side effect of setting IFS to empty, thus disabling word splitting.)
15325: # Quoting is to prevent editors from complaining about space-tab.
1.5 moko 15326: as_nl='
15327: '
15328: export as_nl
1.10 moko 15329: IFS=" "" $as_nl"
15330:
15331: PS1='$ '
15332: PS2='> '
15333: PS4='+ '
15334:
15335: # Ensure predictable behavior from utilities with locale-dependent output.
15336: LC_ALL=C
15337: export LC_ALL
15338: LANGUAGE=C
15339: export LANGUAGE
15340:
15341: # We cannot yet rely on "unset" to work, but we need these variables
15342: # to be unset--not just set to an empty or harmless value--now, to
15343: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15344: # also avoids known problems related to "unset" and subshell syntax
15345: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15346: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15347: do eval test \${$as_var+y} \
15348: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15349: done
15350:
15351: # Ensure that fds 0, 1, and 2 are open.
15352: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15353: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15354: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.5 moko 15355:
15356: # The user is always right.
1.10 moko 15357: if ${PATH_SEPARATOR+false} :; then
1.5 moko 15358: PATH_SEPARATOR=:
15359: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15360: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15361: PATH_SEPARATOR=';'
15362: }
1.1 paf 15363: fi
1.4 paf 15364:
1.1 paf 15365:
1.5 moko 15366: # Find who we are. Look in the path if we contain no directory separator.
15367: as_myself=
15368: case $0 in #((
15369: *[\\/]* ) as_myself=$0 ;;
15370: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15371: for as_dir in $PATH
15372: do
15373: IFS=$as_save_IFS
1.10 moko 15374: case $as_dir in #(((
15375: '') as_dir=./ ;;
15376: */) ;;
15377: *) as_dir=$as_dir/ ;;
15378: esac
15379: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.5 moko 15380: done
15381: IFS=$as_save_IFS
15382:
15383: ;;
15384: esac
1.10 moko 15385: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.5 moko 15386: # in which case we are not to be found in the path.
15387: if test "x$as_myself" = x; then
15388: as_myself=$0
15389: fi
15390: if test ! -f "$as_myself"; then
1.10 moko 15391: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.5 moko 15392: exit 1
15393: fi
15394:
1.1 paf 15395:
1.2 paf 15396:
1.5 moko 15397: # as_fn_error STATUS ERROR [LINENO LOG_FD]
15398: # ----------------------------------------
15399: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15400: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15401: # script with STATUS, using 1 if that was 0.
15402: as_fn_error ()
15403: {
15404: as_status=$1; test $as_status -eq 0 && as_status=1
15405: if test "$4"; then
15406: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.10 moko 15407: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.5 moko 15408: fi
1.10 moko 15409: printf "%s\n" "$as_me: error: $2" >&2
1.5 moko 15410: as_fn_exit $as_status
15411: } # as_fn_error
15412:
15413:
15414: # as_fn_set_status STATUS
15415: # -----------------------
15416: # Set $? to STATUS, without forking.
15417: as_fn_set_status ()
15418: {
15419: return $1
15420: } # as_fn_set_status
15421:
15422: # as_fn_exit STATUS
15423: # -----------------
15424: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15425: as_fn_exit ()
15426: {
15427: set +e
15428: as_fn_set_status $1
15429: exit $1
15430: } # as_fn_exit
15431:
15432: # as_fn_unset VAR
15433: # ---------------
15434: # Portably unset VAR.
15435: as_fn_unset ()
15436: {
15437: { eval $1=; unset $1;}
15438: }
15439: as_unset=as_fn_unset
1.10 moko 15440:
1.5 moko 15441: # as_fn_append VAR VALUE
15442: # ----------------------
15443: # Append the text in VALUE to the end of the definition contained in VAR. Take
15444: # advantage of any shell optimizations that allow amortized linear growth over
15445: # repeated appends, instead of the typical quadratic growth present in naive
15446: # implementations.
1.10 moko 15447: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15448: then :
1.5 moko 15449: eval 'as_fn_append ()
15450: {
15451: eval $1+=\$2
15452: }'
1.10 moko 15453: else case e in #(
15454: e) as_fn_append ()
1.5 moko 15455: {
15456: eval $1=\$$1\$2
1.10 moko 15457: } ;;
15458: esac
1.5 moko 15459: fi # as_fn_append
1.4 paf 15460:
1.5 moko 15461: # as_fn_arith ARG...
15462: # ------------------
15463: # Perform arithmetic evaluation on the ARGs, and store the result in the
15464: # global $as_val. Take advantage of shells that can avoid forks. The arguments
15465: # must be portable across $(()) and expr.
1.10 moko 15466: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15467: then :
1.5 moko 15468: eval 'as_fn_arith ()
15469: {
15470: as_val=$(( $* ))
15471: }'
1.10 moko 15472: else case e in #(
15473: e) as_fn_arith ()
1.5 moko 15474: {
15475: as_val=`expr "$@" || test $? -eq 1`
1.10 moko 15476: } ;;
15477: esac
1.5 moko 15478: fi # as_fn_arith
1.4 paf 15479:
15480:
1.5 moko 15481: if expr a : '\(a\)' >/dev/null 2>&1 &&
15482: test "X`expr 00001 : '.*\(...\)'`" = X001; then
15483: as_expr=expr
15484: else
15485: as_expr=false
1.2 paf 15486: fi
15487:
1.5 moko 15488: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15489: as_basename=basename
15490: else
15491: as_basename=false
1.4 paf 15492: fi
1.2 paf 15493:
1.5 moko 15494: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15495: as_dirname=dirname
15496: else
15497: as_dirname=false
1.4 paf 15498: fi
1.2 paf 15499:
1.5 moko 15500: as_me=`$as_basename -- "$0" ||
15501: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15502: X"$0" : 'X\(//\)$' \| \
15503: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.10 moko 15504: printf "%s\n" X/"$0" |
1.5 moko 15505: sed '/^.*\/\([^/][^/]*\)\/*$/{
15506: s//\1/
15507: q
15508: }
15509: /^X\/\(\/\/\)$/{
15510: s//\1/
15511: q
15512: }
15513: /^X\/\(\/\).*/{
15514: s//\1/
15515: q
15516: }
15517: s/.*/./; q'`
1.2 paf 15518:
1.5 moko 15519: # Avoid depending upon Character Ranges.
15520: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15521: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15522: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15523: as_cr_digits='0123456789'
15524: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.2 paf 15525:
1.10 moko 15526:
15527: # Determine whether it's possible to make 'echo' print without a newline.
15528: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15529: # for compatibility with existing Makefiles.
1.5 moko 15530: ECHO_C= ECHO_N= ECHO_T=
15531: case `echo -n x` in #(((((
15532: -n*)
15533: case `echo 'xy\c'` in
15534: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15535: xy) ECHO_C='\c';;
15536: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15537: ECHO_T=' ';;
15538: esac;;
15539: *)
15540: ECHO_N='-n';;
15541: esac
1.2 paf 15542:
1.10 moko 15543: # For backward compatibility with old third-party macros, we provide
15544: # the shell variables $as_echo and $as_echo_n. New code should use
15545: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15546: as_echo='printf %s\n'
15547: as_echo_n='printf %s'
15548:
1.5 moko 15549: rm -f conf$$ conf$$.exe conf$$.file
15550: if test -d conf$$.dir; then
15551: rm -f conf$$.dir/conf$$.file
15552: else
15553: rm -f conf$$.dir
15554: mkdir conf$$.dir 2>/dev/null
15555: fi
15556: if (echo >conf$$.file) 2>/dev/null; then
15557: if ln -s conf$$.file conf$$ 2>/dev/null; then
15558: as_ln_s='ln -s'
15559: # ... but there are two gotchas:
1.10 moko 15560: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15561: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15562: # In both cases, we have to default to 'cp -pR'.
1.5 moko 15563: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.7 moko 15564: as_ln_s='cp -pR'
1.5 moko 15565: elif ln conf$$.file conf$$ 2>/dev/null; then
15566: as_ln_s=ln
15567: else
1.7 moko 15568: as_ln_s='cp -pR'
1.5 moko 15569: fi
15570: else
1.7 moko 15571: as_ln_s='cp -pR'
1.4 paf 15572: fi
1.5 moko 15573: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15574: rmdir conf$$.dir 2>/dev/null
1.2 paf 15575:
15576:
1.5 moko 15577: # as_fn_mkdir_p
15578: # -------------
15579: # Create "$as_dir" as a directory, including parents if necessary.
15580: as_fn_mkdir_p ()
1.4 paf 15581: {
1.2 paf 15582:
1.5 moko 15583: case $as_dir in #(
15584: -*) as_dir=./$as_dir;;
15585: esac
15586: test -d "$as_dir" || eval $as_mkdir_p || {
15587: as_dirs=
15588: while :; do
15589: case $as_dir in #(
1.10 moko 15590: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.5 moko 15591: *) as_qdir=$as_dir;;
15592: esac
15593: as_dirs="'$as_qdir' $as_dirs"
15594: as_dir=`$as_dirname -- "$as_dir" ||
15595: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15596: X"$as_dir" : 'X\(//\)[^/]' \| \
15597: X"$as_dir" : 'X\(//\)$' \| \
15598: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.10 moko 15599: printf "%s\n" X"$as_dir" |
1.5 moko 15600: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15601: s//\1/
15602: q
15603: }
15604: /^X\(\/\/\)[^/].*/{
15605: s//\1/
15606: q
15607: }
15608: /^X\(\/\/\)$/{
15609: s//\1/
15610: q
15611: }
15612: /^X\(\/\).*/{
15613: s//\1/
15614: q
15615: }
15616: s/.*/./; q'`
15617: test -d "$as_dir" && break
15618: done
15619: test -z "$as_dirs" || eval "mkdir $as_dirs"
15620: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 paf 15621:
1.4 paf 15622:
1.5 moko 15623: } # as_fn_mkdir_p
15624: if mkdir -p . 2>/dev/null; then
15625: as_mkdir_p='mkdir -p "$as_dir"'
15626: else
15627: test -d ./-p && rmdir ./-p
15628: as_mkdir_p=false
1.4 paf 15629: fi
15630:
1.7 moko 15631:
15632: # as_fn_executable_p FILE
15633: # -----------------------
15634: # Test if FILE is an executable regular file.
15635: as_fn_executable_p ()
15636: {
15637: test -f "$1" && test -x "$1"
15638: } # as_fn_executable_p
15639: as_test_x='test -x'
15640: as_executable_p=as_fn_executable_p
1.4 paf 15641:
1.5 moko 15642: # Sed expression to map a string onto a valid CPP name.
1.10 moko 15643: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15644: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.4 paf 15645:
1.5 moko 15646: # Sed expression to map a string onto a valid variable name.
1.10 moko 15647: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15648: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.4 paf 15649:
15650:
1.5 moko 15651: exec 6>&1
15652: ## ----------------------------------- ##
15653: ## Main body of $CONFIG_STATUS script. ##
15654: ## ----------------------------------- ##
15655: _ASEOF
15656: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.4 paf 15657:
1.5 moko 15658: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15659: # Save the log message, to keep $0 and so on meaningful, and to
15660: # report actual input values of CONFIG_FILES etc. instead of their
15661: # values after options handling.
15662: ac_log="
1.10 moko 15663: This file was extended by libltdl $as_me 2.4.3a, which was
15664: generated by GNU Autoconf 2.72. Invocation command line was
1.4 paf 15665:
1.5 moko 15666: CONFIG_FILES = $CONFIG_FILES
15667: CONFIG_HEADERS = $CONFIG_HEADERS
15668: CONFIG_LINKS = $CONFIG_LINKS
15669: CONFIG_COMMANDS = $CONFIG_COMMANDS
15670: $ $0 $@
1.4 paf 15671:
1.5 moko 15672: on `(hostname || uname -n) 2>/dev/null | sed 1q`
15673: "
1.4 paf 15674:
1.5 moko 15675: _ACEOF
1.4 paf 15676:
1.5 moko 15677: case $ac_config_files in *"
15678: "*) set x $ac_config_files; shift; ac_config_files=$*;;
15679: esac
1.4 paf 15680:
1.5 moko 15681: case $ac_config_headers in *"
15682: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15683: esac
1.4 paf 15684:
15685:
1.5 moko 15686: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15687: # Files that config.status was made for.
15688: config_files="$ac_config_files"
15689: config_headers="$ac_config_headers"
15690: config_commands="$ac_config_commands"
1.4 paf 15691:
1.5 moko 15692: _ACEOF
1.1 paf 15693:
1.5 moko 15694: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15695: ac_cs_usage="\
1.10 moko 15696: '$as_me' instantiates files and other configuration actions
1.5 moko 15697: from templates according to the current configuration. Unless the files
15698: and actions are specified as TAGs, all are instantiated by default.
1.2 paf 15699:
1.5 moko 15700: Usage: $0 [OPTION]... [TAG]...
1.2 paf 15701:
1.5 moko 15702: -h, --help print this help, then exit
15703: -V, --version print version number and configuration settings, then exit
15704: --config print configuration, then exit
15705: -q, --quiet, --silent
15706: do not print progress messages
15707: -d, --debug don't remove temporary files
15708: --recheck update $as_me by reconfiguring in the same conditions
15709: --file=FILE[:TEMPLATE]
15710: instantiate the configuration file FILE
15711: --header=FILE[:TEMPLATE]
15712: instantiate the configuration header FILE
1.2 paf 15713:
1.5 moko 15714: Configuration files:
15715: $config_files
1.2 paf 15716:
1.5 moko 15717: Configuration headers:
15718: $config_headers
1.2 paf 15719:
1.5 moko 15720: Configuration commands:
15721: $config_commands
1.4 paf 15722:
1.5 moko 15723: Report bugs to <bug-libtool@gnu.org>."
1.2 paf 15724:
1.4 paf 15725: _ACEOF
1.10 moko 15726: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15727: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.5 moko 15728: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.10 moko 15729: ac_cs_config='$ac_cs_config_escaped'
1.5 moko 15730: ac_cs_version="\\
1.10 moko 15731: libltdl config.status 2.4.3a
15732: configured by $0, generated by GNU Autoconf 2.72,
1.5 moko 15733: with options \\"\$ac_cs_config\\"
1.2 paf 15734:
1.10 moko 15735: Copyright (C) 2023 Free Software Foundation, Inc.
1.5 moko 15736: This config.status script is free software; the Free Software Foundation
15737: gives unlimited permission to copy, distribute and modify it."
1.2 paf 15738:
1.5 moko 15739: ac_pwd='$ac_pwd'
15740: srcdir='$srcdir'
15741: INSTALL='$INSTALL'
15742: MKDIR_P='$MKDIR_P'
15743: AWK='$AWK'
15744: test -n "\$AWK" || AWK=awk
15745: _ACEOF
1.2 paf 15746:
1.5 moko 15747: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748: # The default lists apply if the user does not specify any file.
15749: ac_need_defaults=:
15750: while test $# != 0
1.1 paf 15751: do
1.5 moko 15752: case $1 in
15753: --*=?*)
15754: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15755: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15756: ac_shift=:
15757: ;;
15758: --*=)
15759: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15760: ac_optarg=
15761: ac_shift=:
1.2 paf 15762: ;;
1.5 moko 15763: *)
15764: ac_option=$1
15765: ac_optarg=$2
15766: ac_shift=shift
1.2 paf 15767: ;;
1.5 moko 15768: esac
15769:
15770: case $ac_option in
15771: # Handling of the options.
15772: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15773: ac_cs_recheck=: ;;
15774: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.10 moko 15775: printf "%s\n" "$ac_cs_version"; exit ;;
1.5 moko 15776: --config | --confi | --conf | --con | --co | --c )
1.10 moko 15777: printf "%s\n" "$ac_cs_config"; exit ;;
1.5 moko 15778: --debug | --debu | --deb | --de | --d | -d )
15779: debug=: ;;
15780: --file | --fil | --fi | --f )
15781: $ac_shift
15782: case $ac_optarg in
1.10 moko 15783: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.5 moko 15784: '') as_fn_error $? "missing file argument" ;;
15785: esac
15786: as_fn_append CONFIG_FILES " '$ac_optarg'"
15787: ac_need_defaults=false;;
15788: --header | --heade | --head | --hea )
15789: $ac_shift
15790: case $ac_optarg in
1.10 moko 15791: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.5 moko 15792: esac
15793: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15794: ac_need_defaults=false;;
15795: --he | --h)
15796: # Conflict between --help and --header
1.10 moko 15797: as_fn_error $? "ambiguous option: '$1'
15798: Try '$0 --help' for more information.";;
1.5 moko 15799: --help | --hel | -h )
1.10 moko 15800: printf "%s\n" "$ac_cs_usage"; exit ;;
1.5 moko 15801: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15802: | -silent | --silent | --silen | --sile | --sil | --si | --s)
15803: ac_cs_silent=: ;;
1.2 paf 15804:
1.5 moko 15805: # This is an error.
1.10 moko 15806: -*) as_fn_error $? "unrecognized option: '$1'
15807: Try '$0 --help' for more information." ;;
1.2 paf 15808:
1.5 moko 15809: *) as_fn_append ac_config_targets " $1"
15810: ac_need_defaults=false ;;
1.2 paf 15811:
1.5 moko 15812: esac
15813: shift
1.1 paf 15814: done
15815:
1.5 moko 15816: ac_configure_extra_args=
15817:
15818: if $ac_cs_silent; then
15819: exec 6>/dev/null
15820: ac_configure_extra_args="$ac_configure_extra_args --silent"
15821: fi
1.2 paf 15822:
1.4 paf 15823: _ACEOF
1.5 moko 15824: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15825: if \$ac_cs_recheck; then
1.7 moko 15826: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.5 moko 15827: shift
1.10 moko 15828: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.5 moko 15829: CONFIG_SHELL='$SHELL'
15830: export CONFIG_SHELL
15831: exec "\$@"
15832: fi
1.4 paf 15833:
1.5 moko 15834: _ACEOF
15835: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15836: exec 5>>config.log
1.4 paf 15837: {
1.5 moko 15838: echo
15839: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15840: ## Running $as_me. ##
15841: _ASBOX
1.10 moko 15842: printf "%s\n" "$ac_log"
1.5 moko 15843: } >&5
15844:
1.4 paf 15845: _ACEOF
1.5 moko 15846: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15847: #
15848: # INIT-COMMANDS
15849: #
1.8 moko 15850: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.4 paf 15851:
15852:
1.5 moko 15853: # The HP-UX ksh and POSIX shell print the target directory to stdout
15854: # if CDPATH is set.
15855: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.4 paf 15856:
1.5 moko 15857: sed_quote_subst='$sed_quote_subst'
15858: double_quote_subst='$double_quote_subst'
15859: delay_variable_subst='$delay_variable_subst'
15860: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15861: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15862: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15863: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15864: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15865: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15866: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15867: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15868: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1.10 moko 15869: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1.5 moko 15870: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15871: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15872: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15873: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15874: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15875: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15876: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15877: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15878: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15879: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15880: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15881: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15882: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15883: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15884: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15885: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15886: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15887: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15888: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15889: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15890: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15891: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15892: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15893: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15894: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15895: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15896: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1.10 moko 15897: FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1.5 moko 15898: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15899: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15900: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15901: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15902: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15903: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1.10 moko 15904: lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1.5 moko 15905: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15906: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15907: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15908: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15909: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15910: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15911: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15912: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15913: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15914: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15915: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15916: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15917: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15918: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1.10 moko 15919: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1.5 moko 15920: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15921: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
1.10 moko 15922: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1.5 moko 15923: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15924: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1.10 moko 15925: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1.5 moko 15926: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15927: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15928: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15929: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15930: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15931: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15932: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15933: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15934: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15935: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15936: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15937: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15938: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15939: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15940: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15941: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15942: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15943: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15944: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15945: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15946: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15947: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15948: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15949: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15950: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15951: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15952: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15953: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15954: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15955: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15956: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15957: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15958: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15959: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15960: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15961: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15962: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15963: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15964: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15965: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15966: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15967: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15968: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15969: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15970: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15971: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15972: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15973: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15974: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15975: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15976: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15977: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15978: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15979: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15980: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15981: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15982: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15983: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15984: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15985: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15986: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15987: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15988: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15989: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1.10 moko 15990: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15991: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1.5 moko 15992: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15993: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15994: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15995: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15996: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15997: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15998:
15999: LTCC='$LTCC'
16000: LTCFLAGS='$LTCFLAGS'
16001: compiler='$compiler_DEFAULT'
16002:
16003: # A function that is used when there is no print builtin or printf.
16004: func_fallback_echo ()
16005: {
16006: eval 'cat <<_LTECHO_EOF
16007: \$1
16008: _LTECHO_EOF'
16009: }
16010:
16011: # Quote evaled strings.
16012: for var in AS \
16013: DLLTOOL \
16014: OBJDUMP \
16015: SHELL \
16016: ECHO \
16017: PATH_SEPARATOR \
16018: SED \
16019: GREP \
16020: EGREP \
16021: FGREP \
16022: LD \
16023: NM \
16024: LN_S \
16025: lt_SP2NL \
16026: lt_NL2SP \
16027: reload_flag \
1.10 moko 16028: FILECMD \
1.5 moko 16029: deplibs_check_method \
16030: file_magic_cmd \
16031: file_magic_glob \
16032: want_nocaseglob \
16033: sharedlib_from_linklib_cmd \
16034: AR \
16035: archiver_list_spec \
16036: STRIP \
16037: RANLIB \
16038: CC \
16039: CFLAGS \
16040: compiler \
16041: lt_cv_sys_global_symbol_pipe \
16042: lt_cv_sys_global_symbol_to_cdecl \
1.10 moko 16043: lt_cv_sys_global_symbol_to_import \
1.5 moko 16044: lt_cv_sys_global_symbol_to_c_name_address \
16045: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.10 moko 16046: lt_cv_nm_interface \
1.5 moko 16047: nm_file_list_spec \
1.10 moko 16048: lt_cv_truncate_bin \
1.5 moko 16049: lt_prog_compiler_no_builtin_flag \
16050: lt_prog_compiler_pic \
16051: lt_prog_compiler_wl \
16052: lt_prog_compiler_static \
16053: lt_cv_prog_compiler_c_o \
16054: need_locks \
16055: MANIFEST_TOOL \
16056: DSYMUTIL \
16057: NMEDIT \
16058: LIPO \
16059: OTOOL \
16060: OTOOL64 \
16061: shrext_cmds \
16062: export_dynamic_flag_spec \
16063: whole_archive_flag_spec \
16064: compiler_needs_object \
16065: with_gnu_ld \
16066: allow_undefined_flag \
16067: no_undefined_flag \
16068: hardcode_libdir_flag_spec \
16069: hardcode_libdir_separator \
16070: exclude_expsyms \
16071: include_expsyms \
16072: file_list_spec \
16073: variables_saved_for_relink \
16074: libname_spec \
16075: library_names_spec \
16076: soname_spec \
16077: install_override_mode \
16078: finish_eval \
16079: old_striplib \
16080: striplib; do
16081: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16082: *[\\\\\\\`\\"\\\$]*)
1.10 moko 16083: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.5 moko 16084: ;;
16085: *)
16086: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16087: ;;
16088: esac
16089: done
1.4 paf 16090:
1.5 moko 16091: # Double-quote double-evaled strings.
16092: for var in reload_cmds \
16093: old_postinstall_cmds \
16094: old_postuninstall_cmds \
16095: old_archive_cmds \
16096: extract_expsyms_cmds \
16097: old_archive_from_new_cmds \
16098: old_archive_from_expsyms_cmds \
16099: archive_cmds \
16100: archive_expsym_cmds \
16101: module_cmds \
16102: module_expsym_cmds \
16103: export_symbols_cmds \
16104: prelink_cmds \
16105: postlink_cmds \
16106: postinstall_cmds \
16107: postuninstall_cmds \
16108: finish_cmds \
16109: sys_lib_search_path_spec \
1.10 moko 16110: configure_time_dlsearch_path \
16111: configure_time_lt_sys_library_path; do
1.5 moko 16112: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16113: *[\\\\\\\`\\"\\\$]*)
1.10 moko 16114: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.5 moko 16115: ;;
16116: *)
16117: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16118: ;;
16119: esac
16120: done
1.4 paf 16121:
1.5 moko 16122: ac_aux_dir='$ac_aux_dir'
1.4 paf 16123:
1.10 moko 16124: # See if we are running on zsh, and set the options that allow our
1.5 moko 16125: # commands through without removal of \ escapes INIT.
1.10 moko 16126: if test -n "\${ZSH_VERSION+set}"; then
1.5 moko 16127: setopt NO_GLOB_SUBST
1.4 paf 16128: fi
16129:
16130:
1.5 moko 16131: PACKAGE='$PACKAGE'
16132: VERSION='$VERSION'
16133: RM='$RM'
16134: ofile='$ofile'
1.4 paf 16135:
16136:
16137:
16138:
16139: _ACEOF
16140:
1.5 moko 16141: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.4 paf 16142:
1.5 moko 16143: # Handling of arguments.
16144: for ac_config_target in $ac_config_targets
16145: do
16146: case $ac_config_target in
16147: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
16148: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16149: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16150: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.4 paf 16151:
1.10 moko 16152: *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1.5 moko 16153: esac
1.4 paf 16154: done
16155:
16156:
1.5 moko 16157: # If the user did not use the arguments to specify the items to instantiate,
16158: # then the envvar interface is used. Set only those that are not.
16159: # We use the long form for the default assignment because of an extremely
16160: # bizarre bug on SunOS 4.1.3.
16161: if $ac_need_defaults; then
1.10 moko 16162: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16163: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16164: test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1.5 moko 16165: fi
1.4 paf 16166:
1.5 moko 16167: # Have a temporary directory for convenience. Make it in the build tree
16168: # simply because there is no reason against having it here, and in addition,
16169: # creating and moving files from /tmp can sometimes cause problems.
16170: # Hook for its removal unless debugging.
16171: # Note that there is a small window in which the directory will not be cleaned:
1.10 moko 16172: # after its creation but before its name has been assigned to '$tmp'.
1.5 moko 16173: $debug ||
16174: {
16175: tmp= ac_tmp=
16176: trap 'exit_status=$?
16177: : "${ac_tmp:=$tmp}"
16178: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16179: ' 0
16180: trap 'as_fn_exit 1' 1 2 13 15
16181: }
16182: # Create a (secure) tmp directory for tmp files.
1.4 paf 16183:
1.5 moko 16184: {
16185: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16186: test -d "$tmp"
16187: } ||
16188: {
16189: tmp=./conf$$-$RANDOM
16190: (umask 077 && mkdir "$tmp")
16191: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16192: ac_tmp=$tmp
1.4 paf 16193:
1.5 moko 16194: # Set up the scripts for CONFIG_FILES section.
16195: # No need to generate them if there are no CONFIG_FILES.
1.10 moko 16196: # This happens for instance with './config.status config.h'.
1.5 moko 16197: if test -n "$CONFIG_FILES"; then
1.4 paf 16198:
16199:
1.5 moko 16200: ac_cr=`echo X | tr X '\015'`
16201: # On cygwin, bash can eat \r inside `` if the user requested igncr.
16202: # But we know of no other shell where ac_cr would be empty at this
16203: # point, so we can use a bashism as a fallback.
16204: if test "x$ac_cr" = x; then
16205: eval ac_cr=\$\'\\r\'
16206: fi
16207: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16208: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16209: ac_cs_awk_cr='\\r'
16210: else
16211: ac_cs_awk_cr=$ac_cr
16212: fi
1.4 paf 16213:
1.5 moko 16214: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16215: _ACEOF
1.4 paf 16216:
16217:
1.5 moko 16218: {
16219: echo "cat >conf$$subs.awk <<_ACEOF" &&
16220: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16221: echo "_ACEOF"
16222: } >conf$$subs.sh ||
16223: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16224: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16225: ac_delim='%!_!# '
16226: for ac_last_try in false false false false false :; do
16227: . ./conf$$subs.sh ||
16228: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.4 paf 16229:
1.5 moko 16230: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16231: if test $ac_delim_n = $ac_delim_num; then
16232: break
16233: elif $ac_last_try; then
16234: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16235: else
16236: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16237: fi
16238: done
16239: rm -f conf$$subs.sh
1.4 paf 16240:
1.5 moko 16241: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16242: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16243: _ACEOF
16244: sed -n '
16245: h
16246: s/^/S["/; s/!.*/"]=/
16247: p
16248: g
16249: s/^[^!]*!//
16250: :repl
16251: t repl
16252: s/'"$ac_delim"'$//
16253: t delim
16254: :nl
16255: h
16256: s/\(.\{148\}\)..*/\1/
16257: t more1
16258: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16259: p
16260: n
16261: b repl
16262: :more1
16263: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16264: p
16265: g
16266: s/.\{148\}//
16267: t nl
16268: :delim
16269: h
16270: s/\(.\{148\}\)..*/\1/
16271: t more2
16272: s/["\\]/\\&/g; s/^/"/; s/$/"/
16273: p
16274: b
16275: :more2
16276: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16277: p
16278: g
16279: s/.\{148\}//
16280: t delim
16281: ' <conf$$subs.awk | sed '
16282: /^[^""]/{
16283: N
16284: s/\n//
16285: }
16286: ' >>$CONFIG_STATUS || ac_write_fail=1
16287: rm -f conf$$subs.awk
16288: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16289: _ACAWK
16290: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16291: for (key in S) S_is_set[key] = 1
16292: FS = ""
16293:
16294: }
16295: {
16296: line = $ 0
16297: nfields = split(line, field, "@")
16298: substed = 0
16299: len = length(field[1])
16300: for (i = 2; i < nfields; i++) {
16301: key = field[i]
16302: keylen = length(key)
16303: if (S_is_set[key]) {
16304: value = S[key]
16305: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16306: len += length(value) + length(field[++i])
16307: substed = 1
16308: } else
16309: len += 1 + keylen
16310: }
1.4 paf 16311:
1.5 moko 16312: print line
16313: }
1.4 paf 16314:
1.5 moko 16315: _ACAWK
16316: _ACEOF
16317: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16318: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16319: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16320: else
16321: cat
16322: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16323: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16324: _ACEOF
1.4 paf 16325:
1.5 moko 16326: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16327: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16328: # trailing colons and then remove the whole line if VPATH becomes empty
16329: # (actually we leave an empty line to preserve line numbers).
16330: if test "x$srcdir" = x.; then
16331: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16332: h
16333: s///
16334: s/^/:/
16335: s/[ ]*$/:/
16336: s/:\$(srcdir):/:/g
16337: s/:\${srcdir}:/:/g
16338: s/:@srcdir@:/:/g
16339: s/^:*//
16340: s/:*$//
16341: x
16342: s/\(=[ ]*\).*/\1/
16343: G
16344: s/\n//
16345: s/^[^=]*=[ ]*$//
16346: }'
16347: fi
1.4 paf 16348:
1.5 moko 16349: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16350: fi # test -n "$CONFIG_FILES"
1.4 paf 16351:
1.5 moko 16352: # Set up the scripts for CONFIG_HEADERS section.
16353: # No need to generate them if there are no CONFIG_HEADERS.
1.10 moko 16354: # This happens for instance with './config.status Makefile'.
1.5 moko 16355: if test -n "$CONFIG_HEADERS"; then
16356: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16357: BEGIN {
16358: _ACEOF
16359:
1.10 moko 16360: # Transform confdefs.h into an awk script 'defines.awk', embedded as
1.5 moko 16361: # here-document in config.status, that substitutes the proper values into
16362: # config.h.in to produce config.h.
16363:
16364: # Create a delimiter string that does not exist in confdefs.h, to ease
16365: # handling of long lines.
16366: ac_delim='%!_!# '
16367: for ac_last_try in false false :; do
16368: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16369: if test -z "$ac_tt"; then
16370: break
16371: elif $ac_last_try; then
16372: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16373: else
16374: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16375: fi
16376: done
1.2 paf 16377:
1.5 moko 16378: # For the awk script, D is an array of macro values keyed by name,
16379: # likewise P contains macro parameters if any. Preserve backslash
16380: # newline sequences.
16381:
16382: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16383: sed -n '
16384: s/.\{148\}/&'"$ac_delim"'/g
16385: t rset
16386: :rset
16387: s/^[ ]*#[ ]*define[ ][ ]*/ /
16388: t def
16389: d
16390: :def
16391: s/\\$//
16392: t bsnl
16393: s/["\\]/\\&/g
16394: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16395: D["\1"]=" \3"/p
16396: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16397: d
16398: :bsnl
16399: s/["\\]/\\&/g
16400: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16401: D["\1"]=" \3\\\\\\n"\\/p
16402: t cont
16403: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16404: t cont
16405: d
16406: :cont
16407: n
16408: s/.\{148\}/&'"$ac_delim"'/g
16409: t clear
16410: :clear
16411: s/\\$//
16412: t bsnlc
16413: s/["\\]/\\&/g; s/^/"/; s/$/"/p
16414: d
16415: :bsnlc
16416: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16417: b cont
16418: ' <confdefs.h | sed '
16419: s/'"$ac_delim"'/"\\\
16420: "/g' >>$CONFIG_STATUS || ac_write_fail=1
16421:
16422: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16423: for (key in D) D_is_set[key] = 1
16424: FS = ""
16425: }
16426: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16427: line = \$ 0
16428: split(line, arg, " ")
16429: if (arg[1] == "#") {
16430: defundef = arg[2]
16431: mac1 = arg[3]
16432: } else {
16433: defundef = substr(arg[1], 2)
16434: mac1 = arg[2]
16435: }
16436: split(mac1, mac2, "(") #)
16437: macro = mac2[1]
16438: prefix = substr(line, 1, index(line, defundef) - 1)
16439: if (D_is_set[macro]) {
16440: # Preserve the white space surrounding the "#".
16441: print prefix "define", macro P[macro] D[macro]
16442: next
16443: } else {
16444: # Replace #undef with comments. This is necessary, for example,
16445: # in the case of _POSIX_SOURCE, which is predefined and required
16446: # on some systems where configure will not decide to define it.
16447: if (defundef == "undef") {
16448: print "/*", prefix defundef, macro, "*/"
16449: next
16450: }
16451: }
16452: }
16453: { print }
16454: _ACAWK
16455: _ACEOF
16456: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16457: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16458: fi # test -n "$CONFIG_HEADERS"
16459:
16460:
16461: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16462: shift
16463: for ac_tag
16464: do
16465: case $ac_tag in
16466: :[FHLC]) ac_mode=$ac_tag; continue;;
16467: esac
16468: case $ac_mode$ac_tag in
16469: :[FHL]*:*);;
1.10 moko 16470: :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
1.5 moko 16471: :[FH]-) ac_tag=-:-;;
16472: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16473: esac
16474: ac_save_IFS=$IFS
16475: IFS=:
16476: set x $ac_tag
16477: IFS=$ac_save_IFS
16478: shift
16479: ac_file=$1
16480: shift
1.4 paf 16481:
1.5 moko 16482: case $ac_mode in
16483: :L) ac_source=$1;;
16484: :[FH])
16485: ac_file_inputs=
16486: for ac_f
16487: do
16488: case $ac_f in
16489: -) ac_f="$ac_tmp/stdin";;
16490: *) # Look for the file first in the build tree, then in the source tree
16491: # (if the path is not absolute). The absolute path cannot be DOS-style,
1.10 moko 16492: # because $ac_f cannot contain ':'.
1.5 moko 16493: test -f "$ac_f" ||
16494: case $ac_f in
16495: [\\/$]*) false;;
16496: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16497: esac ||
1.10 moko 16498: as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
1.5 moko 16499: esac
1.10 moko 16500: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.5 moko 16501: as_fn_append ac_file_inputs " '$ac_f'"
16502: done
1.4 paf 16503:
1.10 moko 16504: # Let's still pretend it is 'configure' which instantiates (i.e., don't
1.5 moko 16505: # use $as_me), people would be surprised to read:
16506: # /* config.h. Generated by config.status. */
16507: configure_input='Generated from '`
1.10 moko 16508: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.5 moko 16509: `' by configure.'
16510: if test x"$ac_file" != x-; then
16511: configure_input="$ac_file. $configure_input"
1.10 moko 16512: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16513: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.5 moko 16514: fi
16515: # Neutralize special characters interpreted by sed in replacement strings.
16516: case $configure_input in #(
16517: *\&* | *\|* | *\\* )
1.10 moko 16518: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.5 moko 16519: sed 's/[\\\\&|]/\\\\&/g'`;; #(
16520: *) ac_sed_conf_input=$configure_input;;
16521: esac
1.4 paf 16522:
1.5 moko 16523: case $ac_tag in
16524: *:-:* | *:-) cat >"$ac_tmp/stdin" \
16525: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16526: esac
16527: ;;
16528: esac
1.4 paf 16529:
1.5 moko 16530: ac_dir=`$as_dirname -- "$ac_file" ||
16531: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16532: X"$ac_file" : 'X\(//\)[^/]' \| \
16533: X"$ac_file" : 'X\(//\)$' \| \
16534: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.10 moko 16535: printf "%s\n" X"$ac_file" |
1.5 moko 16536: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16537: s//\1/
16538: q
16539: }
16540: /^X\(\/\/\)[^/].*/{
16541: s//\1/
16542: q
16543: }
16544: /^X\(\/\/\)$/{
16545: s//\1/
16546: q
16547: }
16548: /^X\(\/\).*/{
16549: s//\1/
16550: q
16551: }
16552: s/.*/./; q'`
16553: as_dir="$ac_dir"; as_fn_mkdir_p
16554: ac_builddir=.
1.4 paf 16555:
1.5 moko 16556: case "$ac_dir" in
16557: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16558: *)
1.10 moko 16559: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.5 moko 16560: # A ".." for each directory in $ac_dir_suffix.
1.10 moko 16561: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.5 moko 16562: case $ac_top_builddir_sub in
16563: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16564: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16565: esac ;;
16566: esac
16567: ac_abs_top_builddir=$ac_pwd
16568: ac_abs_builddir=$ac_pwd$ac_dir_suffix
16569: # for backward compatibility:
16570: ac_top_builddir=$ac_top_build_prefix
1.4 paf 16571:
1.5 moko 16572: case $srcdir in
16573: .) # We are building in place.
16574: ac_srcdir=.
16575: ac_top_srcdir=$ac_top_builddir_sub
16576: ac_abs_top_srcdir=$ac_pwd ;;
16577: [\\/]* | ?:[\\/]* ) # Absolute name.
16578: ac_srcdir=$srcdir$ac_dir_suffix;
16579: ac_top_srcdir=$srcdir
16580: ac_abs_top_srcdir=$srcdir ;;
16581: *) # Relative name.
16582: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16583: ac_top_srcdir=$ac_top_build_prefix$srcdir
16584: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16585: esac
16586: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.4 paf 16587:
16588:
1.5 moko 16589: case $ac_mode in
16590: :F)
16591: #
16592: # CONFIG_FILE
16593: #
1.4 paf 16594:
1.5 moko 16595: case $INSTALL in
16596: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16597: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16598: esac
16599: ac_MKDIR_P=$MKDIR_P
16600: case $MKDIR_P in
16601: [\\/$]* | ?:[\\/]* ) ;;
16602: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16603: esac
1.2 paf 16604: _ACEOF
16605:
1.5 moko 16606: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16607: # If the template does not know about datarootdir, expand it.
16608: # FIXME: This hack should be removed a few years after 2.60.
16609: ac_datarootdir_hack=; ac_datarootdir_seen=
16610: ac_sed_dataroot='
16611: /datarootdir/ {
16612: p
16613: q
16614: }
16615: /@datadir@/p
16616: /@docdir@/p
16617: /@infodir@/p
16618: /@localedir@/p
16619: /@mandir@/p'
16620: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16621: *datarootdir*) ac_datarootdir_seen=yes;;
16622: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.10 moko 16623: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16624: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.5 moko 16625: _ACEOF
16626: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16627: ac_datarootdir_hack='
16628: s&@datadir@&$datadir&g
16629: s&@docdir@&$docdir&g
16630: s&@infodir@&$infodir&g
16631: s&@localedir@&$localedir&g
16632: s&@mandir@&$mandir&g
16633: s&\\\${datarootdir}&$datarootdir&g' ;;
16634: esac
1.2 paf 16635: _ACEOF
16636:
1.10 moko 16637: # Neutralize VPATH when '$srcdir' = '.'.
1.5 moko 16638: # Shell code in configure.ac might set extrasub.
16639: # FIXME: do we really want to maintain this feature?
16640: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16641: ac_sed_extra="$ac_vpsub
16642: $extrasub
1.2 paf 16643: _ACEOF
1.5 moko 16644: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16645: :t
16646: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16647: s|@configure_input@|$ac_sed_conf_input|;t t
16648: s&@top_builddir@&$ac_top_builddir_sub&;t t
16649: s&@top_build_prefix@&$ac_top_build_prefix&;t t
16650: s&@srcdir@&$ac_srcdir&;t t
16651: s&@abs_srcdir@&$ac_abs_srcdir&;t t
16652: s&@top_srcdir@&$ac_top_srcdir&;t t
16653: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16654: s&@builddir@&$ac_builddir&;t t
16655: s&@abs_builddir@&$ac_abs_builddir&;t t
16656: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16657: s&@INSTALL@&$ac_INSTALL&;t t
16658: s&@MKDIR_P@&$ac_MKDIR_P&;t t
16659: $ac_datarootdir_hack
16660: "
16661: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16662: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16663:
16664: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16665: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16666: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16667: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.10 moko 16668: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.5 moko 16669: which seems to be undefined. Please make sure it is defined" >&5
1.10 moko 16670: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.5 moko 16671: which seems to be undefined. Please make sure it is defined" >&2;}
1.4 paf 16672:
1.5 moko 16673: rm -f "$ac_tmp/stdin"
16674: case $ac_file in
16675: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16676: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16677: esac \
16678: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16679: ;;
16680: :H)
16681: #
16682: # CONFIG_HEADER
16683: #
16684: if test x"$ac_file" != x-; then
16685: {
1.10 moko 16686: printf "%s\n" "/* $configure_input */" >&1 \
1.5 moko 16687: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16688: } >"$ac_tmp/config.h" \
16689: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16690: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.10 moko 16691: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16692: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.5 moko 16693: else
16694: rm -f "$ac_file"
16695: mv "$ac_tmp/config.h" "$ac_file" \
16696: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16697: fi
16698: else
1.10 moko 16699: printf "%s\n" "/* $configure_input */" >&1 \
1.5 moko 16700: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16701: || as_fn_error $? "could not create -" "$LINENO" 5
16702: fi
16703: # Compute "$ac_file"'s index in $config_headers.
16704: _am_arg="$ac_file"
16705: _am_stamp_count=1
16706: for _am_header in $config_headers :; do
16707: case $_am_header in
16708: $_am_arg | $_am_arg:* )
16709: break ;;
16710: * )
16711: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16712: esac
1.1 paf 16713: done
1.5 moko 16714: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16715: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16716: X"$_am_arg" : 'X\(//\)[^/]' \| \
16717: X"$_am_arg" : 'X\(//\)$' \| \
16718: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.10 moko 16719: printf "%s\n" X"$_am_arg" |
1.5 moko 16720: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16721: s//\1/
16722: q
16723: }
16724: /^X\(\/\/\)[^/].*/{
16725: s//\1/
16726: q
16727: }
16728: /^X\(\/\/\)$/{
16729: s//\1/
16730: q
16731: }
16732: /^X\(\/\).*/{
16733: s//\1/
16734: q
16735: }
16736: s/.*/./; q'`/stamp-h$_am_stamp_count
16737: ;;
1.1 paf 16738:
1.10 moko 16739: :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16740: printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1.5 moko 16741: ;;
16742: esac
1.2 paf 16743:
16744:
1.5 moko 16745: case $ac_file$ac_mode in
16746: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.8 moko 16747: # Older Autoconf quotes --file arguments for eval, but not when files
1.5 moko 16748: # are listed without --file. Let's play safe and only enable the eval
16749: # if we detect the quoting.
1.8 moko 16750: # TODO: see whether this extra hack can be removed once we start
16751: # requiring Autoconf 2.70 or later.
16752: case $CONFIG_FILES in #(
16753: *\'*) :
16754: eval set x "$CONFIG_FILES" ;; #(
16755: *) :
16756: set x $CONFIG_FILES ;; #(
16757: *) :
16758: ;;
16759: esac
1.5 moko 16760: shift
1.8 moko 16761: # Used to flag and report bootstrapping failures.
16762: am_rc=0
16763: for am_mf
1.5 moko 16764: do
16765: # Strip MF so we end up with the name of the file.
1.10 moko 16766: am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1.8 moko 16767: # Check whether this is an Automake generated Makefile which includes
16768: # dependency-tracking related rules and includes.
16769: # Grep'ing the whole file directly is not great: AIX grep has a line
1.5 moko 16770: # limit of 2048, but all sed's we know have understand at least 4000.
1.8 moko 16771: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16772: || continue
16773: am_dirpart=`$as_dirname -- "$am_mf" ||
16774: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16775: X"$am_mf" : 'X\(//\)[^/]' \| \
16776: X"$am_mf" : 'X\(//\)$' \| \
16777: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.10 moko 16778: printf "%s\n" X"$am_mf" |
1.5 moko 16779: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16780: s//\1/
16781: q
16782: }
16783: /^X\(\/\/\)[^/].*/{
16784: s//\1/
16785: q
16786: }
16787: /^X\(\/\/\)$/{
16788: s//\1/
16789: q
16790: }
16791: /^X\(\/\).*/{
16792: s//\1/
16793: q
16794: }
16795: s/.*/./; q'`
1.8 moko 16796: am_filepart=`$as_basename -- "$am_mf" ||
16797: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16798: X"$am_mf" : 'X\(//\)$' \| \
16799: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.10 moko 16800: printf "%s\n" X/"$am_mf" |
1.8 moko 16801: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.5 moko 16802: s//\1/
16803: q
16804: }
1.8 moko 16805: /^X\/\(\/\/\)$/{
1.5 moko 16806: s//\1/
16807: q
16808: }
1.8 moko 16809: /^X\/\(\/\).*/{
1.5 moko 16810: s//\1/
16811: q
16812: }
16813: s/.*/./; q'`
1.8 moko 16814: { echo "$as_me:$LINENO: cd "$am_dirpart" \
16815: && sed -e '/# am--include-marker/d' "$am_filepart" \
16816: | $MAKE -f - am--depfiles" >&5
16817: (cd "$am_dirpart" \
16818: && sed -e '/# am--include-marker/d' "$am_filepart" \
16819: | $MAKE -f - am--depfiles) >&5 2>&5
16820: ac_status=$?
16821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822: (exit $ac_status); } || am_rc=$?
1.5 moko 16823: done
1.8 moko 16824: if test $am_rc -ne 0; then
1.10 moko 16825: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16826: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.8 moko 16827: as_fn_error $? "Something went wrong bootstrapping makefile fragments
16828: for automatic dependency tracking. If GNU make was not used, consider
16829: re-running the configure script with MAKE=\"gmake\" (or whatever is
16830: necessary). You can also try re-running configure with the
16831: '--disable-dependency-tracking' option to at least be able to build
16832: the package (albeit without support for automatic dependency tracking).
1.10 moko 16833: See 'config.log' for more details" "$LINENO" 5; }
1.8 moko 16834: fi
16835: { am_dirpart=; unset am_dirpart;}
16836: { am_filepart=; unset am_filepart;}
16837: { am_mf=; unset am_mf;}
16838: { am_rc=; unset am_rc;}
16839: rm -f conftest-deps.mk
1.5 moko 16840: }
16841: ;;
16842: "libtool":C)
1.4 paf 16843:
1.10 moko 16844: # See if we are running on zsh, and set the options that allow our
1.5 moko 16845: # commands through without removal of \ escapes.
1.10 moko 16846: if test -n "${ZSH_VERSION+set}"; then
1.5 moko 16847: setopt NO_GLOB_SUBST
16848: fi
1.2 paf 16849:
1.10 moko 16850: cfgfile=${ofile}T
1.5 moko 16851: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16852: $RM "$cfgfile"
1.2 paf 16853:
1.5 moko 16854: cat <<_LT_EOF >> "$cfgfile"
16855: #! $SHELL
1.10 moko 16856: # Generated automatically by $as_me ($PACKAGE) $VERSION
16857: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1.1 paf 16858:
1.10 moko 16859: # Provide generalized library-building support services.
16860: # Written by Gordon Matzigkeit, 1996
16861:
16862: # Copyright (C) 2024 Free Software Foundation, Inc.
16863: # This is free software; see the source for copying conditions. There is NO
16864: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16865:
16866: # GNU Libtool is free software; you can redistribute it and/or modify
16867: # it under the terms of the GNU General Public License as published by
16868: # the Free Software Foundation; either version 2 of the License, or
16869: # (at your option) any later version.
1.5 moko 16870: #
1.10 moko 16871: # As a special exception to the GNU General Public License, if you
16872: # distribute this file as part of a program or library that is built
16873: # using GNU Libtool, you may include this file under the same
16874: # distribution terms that you use for the rest of that program.
1.5 moko 16875: #
1.10 moko 16876: # GNU Libtool is distributed in the hope that it will be useful, but
16877: # WITHOUT ANY WARRANTY; without even the implied warranty of
1.5 moko 16878: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16879: # GNU General Public License for more details.
16880: #
16881: # You should have received a copy of the GNU General Public License
1.10 moko 16882: # along with this program. If not, see <http://www.gnu.org/licenses/>.
1.1 paf 16883:
1.4 paf 16884:
1.5 moko 16885: # The names of the tagged configurations supported by this script.
1.10 moko 16886: available_tags=''
16887:
16888: # Configured defaults for sys_lib_dlsearch_path munging.
16889: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1.4 paf 16890:
1.5 moko 16891: # ### BEGIN LIBTOOL CONFIG
1.1 paf 16892:
1.5 moko 16893: # Which release of libtool.m4 was used?
16894: macro_version=$macro_version
16895: macro_revision=$macro_revision
1.2 paf 16896:
1.5 moko 16897: # Assembler program.
16898: AS=$lt_AS
1.2 paf 16899:
1.5 moko 16900: # DLL creation program.
16901: DLLTOOL=$lt_DLLTOOL
1.4 paf 16902:
1.5 moko 16903: # Object dumper program.
16904: OBJDUMP=$lt_OBJDUMP
1.1 paf 16905:
1.5 moko 16906: # Whether or not to build shared libraries.
16907: build_libtool_libs=$enable_shared
1.4 paf 16908:
1.5 moko 16909: # Whether or not to build static libraries.
16910: build_old_libs=$enable_static
1.4 paf 16911:
1.5 moko 16912: # What type of objects to build.
16913: pic_mode=$pic_mode
1.4 paf 16914:
1.5 moko 16915: # Whether or not to optimize for fast installation.
16916: fast_install=$enable_fast_install
1.1 paf 16917:
1.10 moko 16918: # Shared archive member basename,for filename based shared library versioning on AIX.
16919: shared_archive_member_spec=$shared_archive_member_spec
16920:
1.5 moko 16921: # Shell to use when invoking shell scripts.
16922: SHELL=$lt_SHELL
1.4 paf 16923:
1.5 moko 16924: # An echo program that protects backslashes.
16925: ECHO=$lt_ECHO
1.2 paf 16926:
1.5 moko 16927: # The PATH separator for the build system.
16928: PATH_SEPARATOR=$lt_PATH_SEPARATOR
1.1 paf 16929:
1.5 moko 16930: # The host system.
16931: host_alias=$host_alias
16932: host=$host
16933: host_os=$host_os
1.1 paf 16934:
1.5 moko 16935: # The build system.
16936: build_alias=$build_alias
16937: build=$build
16938: build_os=$build_os
1.1 paf 16939:
1.5 moko 16940: # A sed program that does not truncate output.
16941: SED=$lt_SED
1.1 paf 16942:
1.5 moko 16943: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16944: Xsed="\$SED -e 1s/^X//"
1.2 paf 16945:
1.5 moko 16946: # A grep program that handles long lines.
16947: GREP=$lt_GREP
1.1 paf 16948:
1.5 moko 16949: # An ERE matcher.
16950: EGREP=$lt_EGREP
1.3 paf 16951:
1.5 moko 16952: # A literal string matcher.
16953: FGREP=$lt_FGREP
1.3 paf 16954:
1.5 moko 16955: # A BSD- or MS-compatible name lister.
16956: NM=$lt_NM
1.1 paf 16957:
1.5 moko 16958: # Whether we need soft or hard links.
16959: LN_S=$lt_LN_S
1.1 paf 16960:
1.5 moko 16961: # What is the maximum length of a command?
16962: max_cmd_len=$max_cmd_len
1.1 paf 16963:
1.5 moko 16964: # Object file suffix (normally "o").
16965: objext=$ac_objext
1.1 paf 16966:
1.5 moko 16967: # Executable file suffix (normally "").
16968: exeext=$exeext
1.1 paf 16969:
1.5 moko 16970: # whether the shell understands "unset".
16971: lt_unset=$lt_unset
1.2 paf 16972:
1.5 moko 16973: # turn spaces into newlines.
16974: SP2NL=$lt_lt_SP2NL
1.4 paf 16975:
1.5 moko 16976: # turn newlines into spaces.
16977: NL2SP=$lt_lt_NL2SP
1.1 paf 16978:
1.5 moko 16979: # convert \$build file names to \$host format.
16980: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.2 paf 16981:
1.5 moko 16982: # convert \$build files to toolchain format.
16983: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.1 paf 16984:
1.10 moko 16985: # A file(cmd) program that detects file types.
16986: FILECMD=$lt_FILECMD
16987:
1.5 moko 16988: # Method to check whether dependent libraries are shared objects.
16989: deplibs_check_method=$lt_deplibs_check_method
1.1 paf 16990:
1.5 moko 16991: # Command to use when deplibs_check_method = "file_magic".
16992: file_magic_cmd=$lt_file_magic_cmd
1.2 paf 16993:
1.5 moko 16994: # How to find potential files when deplibs_check_method = "file_magic".
16995: file_magic_glob=$lt_file_magic_glob
1.2 paf 16996:
1.5 moko 16997: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16998: want_nocaseglob=$lt_want_nocaseglob
1.1 paf 16999:
1.5 moko 17000: # Command to associate shared and link libraries.
17001: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1.1 paf 17002:
1.5 moko 17003: # The archiver.
17004: AR=$lt_AR
1.1 paf 17005:
1.10 moko 17006: # Flags to create an archive (by configure).
17007: lt_ar_flags=$lt_ar_flags
17008:
1.5 moko 17009: # Flags to create an archive.
1.10 moko 17010: AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1.2 paf 17011:
1.5 moko 17012: # How to feed a file listing to the archiver.
17013: archiver_list_spec=$lt_archiver_list_spec
1.2 paf 17014:
1.5 moko 17015: # A symbol stripping program.
17016: STRIP=$lt_STRIP
1.2 paf 17017:
1.5 moko 17018: # Commands used to install an old-style archive.
17019: RANLIB=$lt_RANLIB
17020: old_postinstall_cmds=$lt_old_postinstall_cmds
17021: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.1 paf 17022:
1.5 moko 17023: # Whether to use a lock for old archive extraction.
17024: lock_old_archive_extraction=$lock_old_archive_extraction
1.1 paf 17025:
1.5 moko 17026: # A C compiler.
17027: LTCC=$lt_CC
1.2 paf 17028:
1.5 moko 17029: # LTCC compiler flags.
17030: LTCFLAGS=$lt_CFLAGS
1.2 paf 17031:
1.5 moko 17032: # Take the output of nm and produce a listing of raw symbols and C names.
17033: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.2 paf 17034:
1.5 moko 17035: # Transform the output of nm in a proper C declaration.
17036: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.2 paf 17037:
1.10 moko 17038: # Transform the output of nm into a list of symbols to manually relocate.
17039: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17040:
1.5 moko 17041: # Transform the output of nm in a C name address pair.
17042: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.2 paf 17043:
1.5 moko 17044: # Transform the output of nm in a C name address pair when lib prefix is needed.
17045: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1.2 paf 17046:
1.10 moko 17047: # The name lister interface.
17048: nm_interface=$lt_lt_cv_nm_interface
17049:
1.5 moko 17050: # Specify filename containing input files for \$NM.
17051: nm_file_list_spec=$lt_nm_file_list_spec
1.2 paf 17052:
1.10 moko 17053: # The root where to search for dependent libraries,and where our libraries should be installed.
1.5 moko 17054: lt_sysroot=$lt_sysroot
1.2 paf 17055:
1.10 moko 17056: # Command to truncate a binary pipe.
17057: lt_truncate_bin=$lt_lt_cv_truncate_bin
17058:
1.5 moko 17059: # The name of the directory that contains temporary libtool files.
17060: objdir=$objdir
1.2 paf 17061:
1.5 moko 17062: # Used to examine libraries when file_magic_cmd begins with "file".
17063: MAGIC_CMD=$MAGIC_CMD
1.2 paf 17064:
1.5 moko 17065: # Must we lock files when doing compilation?
17066: need_locks=$lt_need_locks
1.1 paf 17067:
1.5 moko 17068: # Manifest tool.
17069: MANIFEST_TOOL=$lt_MANIFEST_TOOL
1.2 paf 17070:
1.5 moko 17071: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17072: DSYMUTIL=$lt_DSYMUTIL
1.2 paf 17073:
1.5 moko 17074: # Tool to change global to local symbols on Mac OS X.
17075: NMEDIT=$lt_NMEDIT
1.2 paf 17076:
1.5 moko 17077: # Tool to manipulate fat objects and archives on Mac OS X.
17078: LIPO=$lt_LIPO
1.2 paf 17079:
1.5 moko 17080: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17081: OTOOL=$lt_OTOOL
1.2 paf 17082:
1.5 moko 17083: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17084: OTOOL64=$lt_OTOOL64
1.2 paf 17085:
1.5 moko 17086: # Old archive suffix (normally "a").
17087: libext=$libext
1.1 paf 17088:
1.5 moko 17089: # Shared library suffix (normally ".so").
17090: shrext_cmds=$lt_shrext_cmds
1.2 paf 17091:
1.5 moko 17092: # The commands to extract the exported symbol list from a shared archive.
17093: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.1 paf 17094:
1.5 moko 17095: # Variables whose values should be saved in libtool wrapper scripts and
17096: # restored at link time.
17097: variables_saved_for_relink=$lt_variables_saved_for_relink
1.1 paf 17098:
1.5 moko 17099: # Do we need the "lib" prefix for modules?
17100: need_lib_prefix=$need_lib_prefix
1.1 paf 17101:
1.5 moko 17102: # Do we need a version for libraries?
17103: need_version=$need_version
1.1 paf 17104:
1.5 moko 17105: # Library versioning type.
17106: version_type=$version_type
1.2 paf 17107:
1.5 moko 17108: # Shared library runtime path variable.
17109: runpath_var=$runpath_var
1.2 paf 17110:
1.5 moko 17111: # Shared library path variable.
17112: shlibpath_var=$shlibpath_var
1.2 paf 17113:
1.5 moko 17114: # Is shlibpath searched before the hard-coded library search path?
17115: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.2 paf 17116:
1.5 moko 17117: # Format of library name prefix.
17118: libname_spec=$lt_libname_spec
1.2 paf 17119:
1.5 moko 17120: # List of archive names. First name is the real one, the rest are links.
17121: # The last name is the one that the linker finds with -lNAME
17122: library_names_spec=$lt_library_names_spec
1.2 paf 17123:
1.5 moko 17124: # The coded name of the library, if different from the real name.
17125: soname_spec=$lt_soname_spec
1.2 paf 17126:
1.5 moko 17127: # Permission mode override for installation of shared libraries.
17128: install_override_mode=$lt_install_override_mode
1.2 paf 17129:
1.5 moko 17130: # Command to use after installation of a shared archive.
17131: postinstall_cmds=$lt_postinstall_cmds
1.2 paf 17132:
1.5 moko 17133: # Command to use after uninstallation of a shared archive.
17134: postuninstall_cmds=$lt_postuninstall_cmds
1.2 paf 17135:
1.5 moko 17136: # Commands used to finish a libtool library installation in a directory.
17137: finish_cmds=$lt_finish_cmds
1.2 paf 17138:
1.5 moko 17139: # As "finish_cmds", except a single script fragment to be evaled but
17140: # not shown.
17141: finish_eval=$lt_finish_eval
1.2 paf 17142:
1.5 moko 17143: # Whether we should hardcode library paths into libraries.
17144: hardcode_into_libs=$hardcode_into_libs
1.2 paf 17145:
1.5 moko 17146: # Compile-time system search path for libraries.
17147: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.2 paf 17148:
1.10 moko 17149: # Detected run-time system search path for libraries.
17150: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17151:
17152: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17153: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1.2 paf 17154:
1.5 moko 17155: # Whether dlopen is supported.
17156: dlopen_support=$enable_dlopen
1.2 paf 17157:
1.5 moko 17158: # Whether dlopen of programs is supported.
17159: dlopen_self=$enable_dlopen_self
1.1 paf 17160:
1.5 moko 17161: # Whether dlopen of statically linked programs is supported.
17162: dlopen_self_static=$enable_dlopen_self_static
1.2 paf 17163:
1.5 moko 17164: # Commands to strip libraries.
17165: old_striplib=$lt_old_striplib
17166: striplib=$lt_striplib
1.2 paf 17167:
17168:
1.5 moko 17169: # The linker used to build libraries.
17170: LD=$lt_LD
1.2 paf 17171:
1.5 moko 17172: # How to create reloadable object files.
17173: reload_flag=$lt_reload_flag
17174: reload_cmds=$lt_reload_cmds
1.4 paf 17175:
1.5 moko 17176: # Commands used to build an old-style archive.
17177: old_archive_cmds=$lt_old_archive_cmds
1.2 paf 17178:
1.5 moko 17179: # A language specific compiler.
17180: CC=$lt_compiler
1.2 paf 17181:
1.5 moko 17182: # Is the compiler the GNU compiler?
17183: with_gcc=$GCC
1.2 paf 17184:
1.5 moko 17185: # Compiler flag to turn off builtin functions.
17186: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.2 paf 17187:
1.5 moko 17188: # Additional compiler flags for building library objects.
17189: pic_flag=$lt_lt_prog_compiler_pic
1.1 paf 17190:
1.5 moko 17191: # How to pass a linker flag through the compiler.
17192: wl=$lt_lt_prog_compiler_wl
1.1 paf 17193:
1.5 moko 17194: # Compiler flag to prevent dynamic linking.
17195: link_static_flag=$lt_lt_prog_compiler_static
1.2 paf 17196:
1.5 moko 17197: # Does compiler simultaneously support -c and -o options?
17198: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.2 paf 17199:
1.5 moko 17200: # Whether or not to add -lc for building shared libraries.
17201: build_libtool_need_lc=$archive_cmds_need_lc
1.1 paf 17202:
1.5 moko 17203: # Whether or not to disallow shared libs when runtime libs are static.
17204: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.2 paf 17205:
1.5 moko 17206: # Compiler flag to allow reflexive dlopens.
17207: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.2 paf 17208:
1.5 moko 17209: # Compiler flag to generate shared objects directly from archives.
17210: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.2 paf 17211:
1.5 moko 17212: # Whether the compiler copes with passing no objects directly.
17213: compiler_needs_object=$lt_compiler_needs_object
1.2 paf 17214:
1.5 moko 17215: # Create an old-style archive from a shared archive.
17216: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.2 paf 17217:
1.5 moko 17218: # Create a temporary old-style archive to link instead of a shared archive.
17219: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.2 paf 17220:
1.5 moko 17221: # Commands used to build a shared archive.
17222: archive_cmds=$lt_archive_cmds
17223: archive_expsym_cmds=$lt_archive_expsym_cmds
1.2 paf 17224:
1.5 moko 17225: # Commands used to build a loadable module if different from building
17226: # a shared archive.
17227: module_cmds=$lt_module_cmds
17228: module_expsym_cmds=$lt_module_expsym_cmds
1.1 paf 17229:
1.5 moko 17230: # Whether we are building with GNU ld or not.
17231: with_gnu_ld=$lt_with_gnu_ld
1.2 paf 17232:
1.5 moko 17233: # Flag that allows shared libraries with undefined symbols to be built.
17234: allow_undefined_flag=$lt_allow_undefined_flag
1.2 paf 17235:
1.5 moko 17236: # Flag that enforces no undefined symbols.
17237: no_undefined_flag=$lt_no_undefined_flag
1.2 paf 17238:
1.5 moko 17239: # Flag to hardcode \$libdir into a binary during linking.
17240: # This must work even if \$libdir does not exist
17241: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.2 paf 17242:
1.5 moko 17243: # Whether we need a single "-rpath" flag with a separated argument.
17244: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.2 paf 17245:
1.10 moko 17246: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.5 moko 17247: # DIR into the resulting binary.
17248: hardcode_direct=$hardcode_direct
1.2 paf 17249:
1.10 moko 17250: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.5 moko 17251: # DIR into the resulting binary and the resulting library dependency is
1.10 moko 17252: # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
1.5 moko 17253: # library is relocated.
17254: hardcode_direct_absolute=$hardcode_direct_absolute
1.2 paf 17255:
1.5 moko 17256: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17257: # into the resulting binary.
17258: hardcode_minus_L=$hardcode_minus_L
1.1 paf 17259:
1.5 moko 17260: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17261: # into the resulting binary.
17262: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.4 paf 17263:
1.5 moko 17264: # Set to "yes" if building a shared library automatically hardcodes DIR
17265: # into the library and all subsequent libraries and executables linked
17266: # against it.
17267: hardcode_automatic=$hardcode_automatic
17268:
17269: # Set to yes if linker adds runtime paths of dependent libraries
17270: # to runtime path list.
17271: inherit_rpath=$inherit_rpath
1.4 paf 17272:
1.5 moko 17273: # Whether libtool must link a program against all its dependency libraries.
17274: link_all_deplibs=$link_all_deplibs
1.4 paf 17275:
1.5 moko 17276: # Set to "yes" if exported symbols are required.
17277: always_export_symbols=$always_export_symbols
1.4 paf 17278:
1.5 moko 17279: # The commands to list exported symbols.
17280: export_symbols_cmds=$lt_export_symbols_cmds
1.4 paf 17281:
1.5 moko 17282: # Symbols that should not be listed in the preloaded symbols.
17283: exclude_expsyms=$lt_exclude_expsyms
1.4 paf 17284:
1.5 moko 17285: # Symbols that must always be exported.
17286: include_expsyms=$lt_include_expsyms
1.4 paf 17287:
1.5 moko 17288: # Commands necessary for linking programs (against libraries) with templates.
17289: prelink_cmds=$lt_prelink_cmds
1.4 paf 17290:
1.5 moko 17291: # Commands necessary for finishing linking programs.
17292: postlink_cmds=$lt_postlink_cmds
1.4 paf 17293:
1.5 moko 17294: # Specify filename containing input files.
17295: file_list_spec=$lt_file_list_spec
1.4 paf 17296:
1.5 moko 17297: # How to hardcode a shared library path into an executable.
17298: hardcode_action=$hardcode_action
1.4 paf 17299:
1.5 moko 17300: # ### END LIBTOOL CONFIG
1.1 paf 17301:
1.5 moko 17302: _LT_EOF
1.1 paf 17303:
1.10 moko 17304: cat <<'_LT_EOF' >> "$cfgfile"
17305:
17306: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17307:
17308: # func_munge_path_list VARIABLE PATH
17309: # -----------------------------------
17310: # VARIABLE is name of variable containing _space_ separated list of
17311: # directories to be munged by the contents of PATH, which is string
17312: # having a format:
17313: # "DIR[:DIR]:"
17314: # string "DIR[ DIR]" will be prepended to VARIABLE
17315: # ":DIR[:DIR]"
17316: # string "DIR[ DIR]" will be appended to VARIABLE
17317: # "DIRP[:DIRP]::[DIRA:]DIRA"
17318: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17319: # "DIRA[ DIRA]" will be appended to VARIABLE
17320: # "DIR[:DIR]"
17321: # VARIABLE will be replaced by "DIR[ DIR]"
17322: func_munge_path_list ()
17323: {
17324: case x$2 in
17325: x)
17326: ;;
17327: *:)
17328: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17329: ;;
17330: x:*)
17331: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17332: ;;
17333: *::*)
17334: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17335: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17336: ;;
17337: *)
17338: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17339: ;;
17340: esac
17341: }
17342:
17343:
17344: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17345: func_cc_basename ()
17346: {
17347: for cc_temp in $*""; do
17348: case $cc_temp in
17349: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17350: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17351: \-*) ;;
17352: *) break;;
17353: esac
17354: done
17355: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17356: }
17357:
17358:
17359: # ### END FUNCTIONS SHARED WITH CONFIGURE
17360:
17361: _LT_EOF
17362:
1.5 moko 17363: case $host_os in
17364: aix3*)
17365: cat <<\_LT_EOF >> "$cfgfile"
17366: # AIX sometimes has problems with the GCC collect2 program. For some
17367: # reason, if we set the COLLECT_NAMES environment variable, the problems
17368: # vanish in a puff of smoke.
1.10 moko 17369: if test set != "${COLLECT_NAMES+set}"; then
1.5 moko 17370: COLLECT_NAMES=
17371: export COLLECT_NAMES
17372: fi
17373: _LT_EOF
17374: ;;
17375: esac
1.1 paf 17376:
1.2 paf 17377:
1.10 moko 17378:
17379: ltmain=$ac_aux_dir/ltmain.sh
1.2 paf 17380:
1.1 paf 17381:
1.5 moko 17382: # We use sed instead of cat because bash on DJGPP gets confused if
17383: # if finds mixed CR/LF and LF-only lines. Since sed operates in
17384: # text mode, it properly converts lines to CR/LF. This bash problem
17385: # is reportedly fixed, but why not run on old versions too?
1.10 moko 17386: $SED '$q' "$ltmain" >> "$cfgfile" \
1.5 moko 17387: || (rm -f "$cfgfile"; exit 1)
1.2 paf 17388:
1.5 moko 17389: mv -f "$cfgfile" "$ofile" ||
17390: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17391: chmod +x "$ofile"
17392:
1.2 paf 17393: ;;
1.5 moko 17394:
1.2 paf 17395: esac
1.5 moko 17396: done # for ac_tag
1.1 paf 17397:
17398:
1.5 moko 17399: as_fn_exit 0
1.2 paf 17400: _ACEOF
17401: ac_clean_files=$ac_clean_files_save
17402:
1.5 moko 17403: test $ac_write_fail = 0 ||
17404: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17405:
1.2 paf 17406:
17407: # configure is writing to config.log, and then calls config.status.
17408: # config.status does its own redirection, appending to config.log.
17409: # Unfortunately, on DOS this fails, as config.log is still kept open
17410: # by configure, so config.status won't be able to write to it; its
17411: # output is simply discarded. So we exec the FD to /dev/null,
17412: # effectively closing config.log, so it can be properly (re)opened and
17413: # appended to by config.status. When coming back to configure, we
17414: # need to make the FD available again.
17415: if test "$no_create" != yes; then
17416: ac_cs_success=:
17417: ac_config_status_args=
17418: test "$silent" = yes &&
17419: ac_config_status_args="$ac_config_status_args --quiet"
17420: exec 5>/dev/null
17421: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17422: exec 5>>config.log
17423: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17424: # would make configure fail if this is the last instruction.
1.5 moko 17425: $ac_cs_success || as_fn_exit 1
17426: fi
17427: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.10 moko 17428: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17429: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.2 paf 17430: fi
1.1 paf 17431:
1.10 moko 17432:
E-mail: