Annotation of parser3/src/lib/ltdl/configure, revision 1.9
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.7 moko 3: # Generated by GNU Autoconf 2.69 for libltdl 2.4.2.
1.5 moko 4: #
5: # Report bugs to <bug-libtool@gnu.org>.
6: #
7: #
1.7 moko 8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.5 moko 9: #
1.1 paf 10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.5 moko 13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.2 paf 20: emulate sh
21: NULLCMD=:
1.5 moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.2 paf 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.5 moko 25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
1.2 paf 72: fi
73:
1.5 moko 74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
1.2 paf 81: fi
82:
83:
1.5 moko 84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
1.2 paf 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.5 moko 129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
1.7 moko 137: # Use a proper internal environment variable to ensure we don't fall
138: # into an infinite loop, continuously re-executing ourselves.
139: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140: _as_can_reexec=no; export _as_can_reexec;
141: # We cannot yet assume a decent shell, so we have to provide a
142: # neutralization value for shells without unset; and this also
143: # works around shells that cannot unset nonexistent variables.
144: # Preserve -v and -x to the replacement shell.
145: BASH_ENV=/dev/null
146: ENV=/dev/null
147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148: case $- in # ((((
149: *v*x* | *x*v* ) as_opts=-vx ;;
150: *v* ) as_opts=-v ;;
151: *x* ) as_opts=-x ;;
152: * ) as_opts= ;;
153: esac
154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155: # Admittedly, this is quite paranoid, since all the known shells bail
156: # out after a failed `exec'.
157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158: as_fn_exit 255
159: fi
160: # We don't want this to propagate to other subprocesses.
161: { _as_can_reexec=; unset _as_can_reexec;}
1.5 moko 162: if test "x$CONFIG_SHELL" = x; then
163: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164: emulate sh
165: NULLCMD=:
166: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167: # is contrary to our usage. Disable this feature.
168: alias -g '\${1+\"\$@\"}'='\"\$@\"'
169: setopt NO_GLOB_SUBST
170: else
171: case \`(set -o) 2>/dev/null\` in #(
172: *posix*) :
173: set -o posix ;; #(
174: *) :
175: ;;
176: esac
177: fi
178: "
179: as_required="as_fn_return () { (exit \$1); }
180: as_fn_success () { as_fn_return 0; }
181: as_fn_failure () { as_fn_return 1; }
182: as_fn_ret_success () { return 0; }
183: as_fn_ret_failure () { return 1; }
184:
185: exitcode=0
186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191:
192: else
193: exitcode=1; echo positional parameters were not saved.
194: fi
1.7 moko 195: test x\$exitcode = x0 || exit 1
196: test -x / || exit 1"
1.5 moko 197: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201:
202: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206: PATH=/empty FPATH=/empty; export PATH FPATH
207: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209: test \$(( 1 + 1 )) = 2 || exit 1"
210: if (eval "$as_required") 2>/dev/null; then :
211: as_have_required=yes
212: else
213: as_have_required=no
214: fi
215: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216:
217: else
218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219: as_found=false
220: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.2 paf 221: do
1.5 moko 222: IFS=$as_save_IFS
223: test -z "$as_dir" && as_dir=.
224: as_found=:
225: case $as_dir in #(
226: /*)
227: for as_base in sh bash ksh sh5; do
228: # Try only shells that exist, to save several forks.
229: as_shell=$as_dir/$as_base
230: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: CONFIG_SHELL=$as_shell as_have_required=yes
233: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234: break 2
235: fi
236: fi
237: done;;
238: esac
239: as_found=false
240: done
241: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243: CONFIG_SHELL=$SHELL as_have_required=yes
244: fi; }
245: IFS=$as_save_IFS
246:
247:
248: if test "x$CONFIG_SHELL" != x; then :
1.7 moko 249: export CONFIG_SHELL
250: # We cannot yet assume a decent shell, so we have to provide a
251: # neutralization value for shells without unset; and this also
252: # works around shells that cannot unset nonexistent variables.
253: # Preserve -v and -x to the replacement shell.
254: BASH_ENV=/dev/null
255: ENV=/dev/null
256: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257: case $- in # ((((
258: *v*x* | *x*v* ) as_opts=-vx ;;
259: *v* ) as_opts=-v ;;
260: *x* ) as_opts=-x ;;
261: * ) as_opts= ;;
262: esac
263: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264: # Admittedly, this is quite paranoid, since all the known shells bail
265: # out after a failed `exec'.
266: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267: exit 255
1.5 moko 268: fi
269:
270: if test x$as_have_required = xno; then :
271: $as_echo "$0: This script requires a shell more modern than all"
272: $as_echo "$0: the shells that I found on your system."
273: if test x${ZSH_VERSION+set} = xset ; then
274: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276: else
277: $as_echo "$0: Please tell bug-autoconf@gnu.org and
278: $0: bug-libtool@gnu.org about your system, including any
279: $0: error possibly output before this message. Then install
280: $0: a modern shell, or manually run the script under such a
281: $0: shell if you do have one."
1.2 paf 282: fi
1.5 moko 283: exit 1
284: fi
285: fi
286: fi
287: SHELL=${CONFIG_SHELL-/bin/sh}
288: export SHELL
289: # Unset more variables known to interfere with behavior of common tools.
290: CLICOLOR_FORCE= GREP_OPTIONS=
291: unset CLICOLOR_FORCE GREP_OPTIONS
292:
293: ## --------------------- ##
294: ## M4sh Shell Functions. ##
295: ## --------------------- ##
296: # as_fn_unset VAR
297: # ---------------
298: # Portably unset VAR.
299: as_fn_unset ()
300: {
301: { eval $1=; unset $1;}
302: }
303: as_unset=as_fn_unset
304:
305: # as_fn_set_status STATUS
306: # -----------------------
307: # Set $? to STATUS, without forking.
308: as_fn_set_status ()
309: {
310: return $1
311: } # as_fn_set_status
312:
313: # as_fn_exit STATUS
314: # -----------------
315: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316: as_fn_exit ()
317: {
318: set +e
319: as_fn_set_status $1
320: exit $1
321: } # as_fn_exit
322:
323: # as_fn_mkdir_p
324: # -------------
325: # Create "$as_dir" as a directory, including parents if necessary.
326: as_fn_mkdir_p ()
327: {
328:
329: case $as_dir in #(
330: -*) as_dir=./$as_dir;;
331: esac
332: test -d "$as_dir" || eval $as_mkdir_p || {
333: as_dirs=
334: while :; do
335: case $as_dir in #(
336: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337: *) as_qdir=$as_dir;;
338: esac
339: as_dirs="'$as_qdir' $as_dirs"
340: as_dir=`$as_dirname -- "$as_dir" ||
341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342: X"$as_dir" : 'X\(//\)[^/]' \| \
343: X"$as_dir" : 'X\(//\)$' \| \
344: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345: $as_echo X"$as_dir" |
346: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347: s//\1/
348: q
349: }
350: /^X\(\/\/\)[^/].*/{
351: s//\1/
352: q
353: }
354: /^X\(\/\/\)$/{
355: s//\1/
356: q
357: }
358: /^X\(\/\).*/{
359: s//\1/
360: q
361: }
362: s/.*/./; q'`
363: test -d "$as_dir" && break
364: done
365: test -z "$as_dirs" || eval "mkdir $as_dirs"
366: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367:
368:
369: } # as_fn_mkdir_p
1.7 moko 370:
371: # as_fn_executable_p FILE
372: # -----------------------
373: # Test if FILE is an executable regular file.
374: as_fn_executable_p ()
375: {
376: test -f "$1" && test -x "$1"
377: } # as_fn_executable_p
1.5 moko 378: # as_fn_append VAR VALUE
379: # ----------------------
380: # Append the text in VALUE to the end of the definition contained in VAR. Take
381: # advantage of any shell optimizations that allow amortized linear growth over
382: # repeated appends, instead of the typical quadratic growth present in naive
383: # implementations.
384: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385: eval 'as_fn_append ()
386: {
387: eval $1+=\$2
388: }'
389: else
390: as_fn_append ()
391: {
392: eval $1=\$$1\$2
393: }
394: fi # as_fn_append
395:
396: # as_fn_arith ARG...
397: # ------------------
398: # Perform arithmetic evaluation on the ARGs, and store the result in the
399: # global $as_val. Take advantage of shells that can avoid forks. The arguments
400: # must be portable across $(()) and expr.
401: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402: eval 'as_fn_arith ()
403: {
404: as_val=$(( $* ))
405: }'
406: else
407: as_fn_arith ()
408: {
409: as_val=`expr "$@" || test $? -eq 1`
410: }
411: fi # as_fn_arith
412:
413:
414: # as_fn_error STATUS ERROR [LINENO LOG_FD]
415: # ----------------------------------------
416: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418: # script with STATUS, using 1 if that was 0.
419: as_fn_error ()
420: {
421: as_status=$1; test $as_status -eq 0 && as_status=1
422: if test "$4"; then
423: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425: fi
426: $as_echo "$as_me: error: $2" >&2
427: as_fn_exit $as_status
428: } # as_fn_error
1.2 paf 429:
1.5 moko 430: if expr a : '\(a\)' >/dev/null 2>&1 &&
431: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.2 paf 432: as_expr=expr
433: else
434: as_expr=false
435: fi
436:
1.5 moko 437: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.2 paf 438: as_basename=basename
439: else
440: as_basename=false
441: fi
442:
1.5 moko 443: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444: as_dirname=dirname
445: else
446: as_dirname=false
447: fi
1.2 paf 448:
1.5 moko 449: as_me=`$as_basename -- "$0" ||
1.2 paf 450: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451: X"$0" : 'X\(//\)$' \| \
1.5 moko 452: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453: $as_echo X/"$0" |
454: sed '/^.*\/\([^/][^/]*\)\/*$/{
455: s//\1/
456: q
457: }
458: /^X\/\(\/\/\)$/{
459: s//\1/
460: q
461: }
462: /^X\/\(\/\).*/{
463: s//\1/
464: q
465: }
466: s/.*/./; q'`
1.2 paf 467:
468: # Avoid depending upon Character Ranges.
469: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472: as_cr_digits='0123456789'
473: as_cr_alnum=$as_cr_Letters$as_cr_digits
474:
475:
1.5 moko 476: as_lineno_1=$LINENO as_lineno_1a=$LINENO
477: as_lineno_2=$LINENO as_lineno_2a=$LINENO
478: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481: sed -n '
482: p
483: /[$]LINENO/=
484: ' <$as_myself |
1.2 paf 485: sed '
1.5 moko 486: s/[$]LINENO.*/&-/
487: t lineno
488: b
489: :lineno
1.2 paf 490: N
1.5 moko 491: :loop
492: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.2 paf 493: t loop
1.5 moko 494: s/-\n.*//
1.2 paf 495: ' >$as_me.lineno &&
1.5 moko 496: chmod +x "$as_me.lineno" ||
497: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.2 paf 498:
1.7 moko 499: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500: # already done that, so ensure we don't try to do so again and fall
501: # in an infinite loop. This has already happened in practice.
502: _as_can_reexec=no; export _as_can_reexec
1.2 paf 503: # Don't try to exec as it changes $[0], causing all sort of problems
504: # (the dirname of $[0] is not the place where we might find the
1.5 moko 505: # original and so on. Autoconf is especially sensitive to this).
506: . "./$as_me.lineno"
1.2 paf 507: # Exit status is that of the last command.
508: exit
509: }
510:
1.5 moko 511: ECHO_C= ECHO_N= ECHO_T=
512: case `echo -n x` in #(((((
513: -n*)
514: case `echo 'xy\c'` in
515: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516: xy) ECHO_C='\c';;
517: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518: ECHO_T=' ';;
519: esac;;
520: *)
521: ECHO_N='-n';;
1.2 paf 522: esac
523:
1.5 moko 524: rm -f conf$$ conf$$.exe conf$$.file
525: if test -d conf$$.dir; then
526: rm -f conf$$.dir/conf$$.file
1.2 paf 527: else
1.5 moko 528: rm -f conf$$.dir
529: mkdir conf$$.dir 2>/dev/null
1.2 paf 530: fi
1.5 moko 531: if (echo >conf$$.file) 2>/dev/null; then
532: if ln -s conf$$.file conf$$ 2>/dev/null; then
533: as_ln_s='ln -s'
534: # ... but there are two gotchas:
535: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.7 moko 537: # In both cases, we have to default to `cp -pR'.
1.5 moko 538: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.7 moko 539: as_ln_s='cp -pR'
1.5 moko 540: elif ln conf$$.file conf$$ 2>/dev/null; then
541: as_ln_s=ln
542: else
1.7 moko 543: as_ln_s='cp -pR'
1.2 paf 544: fi
545: else
1.7 moko 546: as_ln_s='cp -pR'
1.2 paf 547: fi
1.5 moko 548: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549: rmdir conf$$.dir 2>/dev/null
1.2 paf 550:
551: if mkdir -p . 2>/dev/null; then
1.5 moko 552: as_mkdir_p='mkdir -p "$as_dir"'
1.2 paf 553: else
1.5 moko 554: test -d ./-p && rmdir ./-p
1.2 paf 555: as_mkdir_p=false
556: fi
557:
1.7 moko 558: as_test_x='test -x'
559: as_executable_p=as_fn_executable_p
1.2 paf 560:
561: # Sed expression to map a string onto a valid CPP name.
1.5 moko 562: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.2 paf 563:
564: # Sed expression to map a string onto a valid variable name.
1.5 moko 565: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.4 paf 566:
567: SHELL=${CONFIG_SHELL-/bin/sh}
568:
569:
1.5 moko 570: test -n "$DJDIR" || exec 7<&0 </dev/null
571: exec 6>&1
1.4 paf 572:
1.2 paf 573: # Name of the host.
1.5 moko 574: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.2 paf 575: # so uname gets run too.
576: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577:
578: #
579: # Initializations.
580: #
1.1 paf 581: ac_default_prefix=/usr/local
1.5 moko 582: ac_clean_files=
1.2 paf 583: ac_config_libobj_dir=.
1.5 moko 584: LIBOBJS=
1.2 paf 585: cross_compiling=no
586: subdirs=
587: MFLAGS=
588: MAKEFLAGS=
589:
590: # Identity of this package.
1.5 moko 591: PACKAGE_NAME='libltdl'
592: PACKAGE_TARNAME='libltdl'
593: PACKAGE_VERSION='2.4.2'
594: PACKAGE_STRING='libltdl 2.4.2'
595: PACKAGE_BUGREPORT='bug-libtool@gnu.org'
596: PACKAGE_URL=''
1.2 paf 597:
598: ac_unique_file="ltdl.c"
599: # Factoring default headers for most tests.
600: ac_includes_default="\
601: #include <stdio.h>
1.5 moko 602: #ifdef HAVE_SYS_TYPES_H
1.2 paf 603: # include <sys/types.h>
604: #endif
1.5 moko 605: #ifdef HAVE_SYS_STAT_H
1.2 paf 606: # include <sys/stat.h>
607: #endif
1.5 moko 608: #ifdef STDC_HEADERS
1.2 paf 609: # include <stdlib.h>
610: # include <stddef.h>
611: #else
1.5 moko 612: # ifdef HAVE_STDLIB_H
1.2 paf 613: # include <stdlib.h>
614: # endif
615: #endif
1.5 moko 616: #ifdef HAVE_STRING_H
617: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.2 paf 618: # include <memory.h>
619: # endif
620: # include <string.h>
621: #endif
1.5 moko 622: #ifdef HAVE_STRINGS_H
1.2 paf 623: # include <strings.h>
624: #endif
1.5 moko 625: #ifdef HAVE_INTTYPES_H
1.2 paf 626: # include <inttypes.h>
627: #endif
1.5 moko 628: #ifdef HAVE_STDINT_H
629: # include <stdint.h>
630: #endif
631: #ifdef HAVE_UNISTD_H
1.2 paf 632: # include <unistd.h>
633: #endif"
634:
1.5 moko 635: ac_subst_vars='am__EXEEXT_FALSE
636: am__EXEEXT_TRUE
637: LTLIBOBJS
638: LTDLOPEN
639: LT_CONFIG_H
640: CONVENIENCE_LTDL_FALSE
641: CONVENIENCE_LTDL_TRUE
642: INSTALL_LTDL_FALSE
643: INSTALL_LTDL_TRUE
644: ARGZ_H
645: LIBOBJS
646: sys_symbol_underscore
647: LIBADD_DL
648: LT_DLPREOPEN
649: LIBADD_DLD_LINK
650: LIBADD_SHL_LOAD
651: LIBADD_DLOPEN
652: LT_DLLOADERS
653: CPP
654: OTOOL64
655: OTOOL
656: LIPO
657: NMEDIT
658: DSYMUTIL
659: MANIFEST_TOOL
660: RANLIB
661: ac_ct_AR
662: AR
663: LN_S
664: NM
665: ac_ct_DUMPBIN
666: DUMPBIN
667: LD
668: FGREP
669: EGREP
670: GREP
671: SED
672: am__fastdepCC_FALSE
673: am__fastdepCC_TRUE
674: CCDEPMODE
1.8 moko 675: am__nodep
1.5 moko 676: AMDEPBACKSLASH
677: AMDEP_FALSE
678: AMDEP_TRUE
679: am__include
680: DEPDIR
681: OBJEXT
682: EXEEXT
683: ac_ct_CC
684: CPPFLAGS
685: LDFLAGS
686: CFLAGS
687: CC
688: host_os
689: host_vendor
690: host_cpu
691: host
692: build_os
693: build_vendor
694: build_cpu
695: build
696: LIBTOOL
697: OBJDUMP
698: DLLTOOL
699: AS
1.8 moko 700: AM_BACKSLASH
701: AM_DEFAULT_VERBOSITY
702: AM_DEFAULT_V
703: AM_V
1.5 moko 704: am__untar
705: am__tar
706: AMTAR
707: am__leading_dot
708: SET_MAKE
709: AWK
710: mkdir_p
711: MKDIR_P
712: INSTALL_STRIP_PROGRAM
713: STRIP
714: install_sh
715: MAKEINFO
716: AUTOHEADER
717: AUTOMAKE
718: AUTOCONF
719: ACLOCAL
720: VERSION
721: PACKAGE
722: CYGPATH_W
723: am__isrc
724: INSTALL_DATA
725: INSTALL_SCRIPT
726: INSTALL_PROGRAM
727: target_alias
728: host_alias
729: build_alias
730: LIBS
731: ECHO_T
732: ECHO_N
733: ECHO_C
734: DEFS
735: mandir
736: localedir
737: libdir
738: psdir
739: pdfdir
740: dvidir
741: htmldir
742: infodir
743: docdir
744: oldincludedir
745: includedir
1.7 moko 746: runstatedir
1.5 moko 747: localstatedir
748: sharedstatedir
749: sysconfdir
750: datadir
751: datarootdir
752: libexecdir
753: sbindir
754: bindir
755: program_transform_name
756: prefix
757: exec_prefix
758: PACKAGE_URL
759: PACKAGE_BUGREPORT
760: PACKAGE_STRING
761: PACKAGE_VERSION
762: PACKAGE_TARNAME
763: PACKAGE_NAME
764: PATH_SEPARATOR
1.8 moko 765: SHELL
766: am__quote'
1.2 paf 767: ac_subst_files=''
1.5 moko 768: ac_user_opts='
769: enable_option_checking
1.8 moko 770: enable_silent_rules
1.5 moko 771: enable_shared
772: enable_static
773: with_pic
774: enable_fast_install
775: enable_dependency_tracking
776: with_gnu_ld
777: with_sysroot
778: enable_libtool_lock
779: enable_ltdl_install
780: '
781: ac_precious_vars='build_alias
782: host_alias
783: target_alias
784: CC
785: CFLAGS
786: LDFLAGS
787: LIBS
788: CPPFLAGS
789: CPP'
790:
1.1 paf 791:
792: # Initialize some variables set by options.
1.2 paf 793: ac_init_help=
794: ac_init_version=false
1.5 moko 795: ac_unrecognized_opts=
796: ac_unrecognized_sep=
1.1 paf 797: # The variables have the same names as the options, with
798: # dashes changed to underlines.
1.2 paf 799: cache_file=/dev/null
1.1 paf 800: exec_prefix=NONE
801: no_create=
802: no_recursion=
803: prefix=NONE
804: program_prefix=NONE
805: program_suffix=NONE
806: program_transform_name=s,x,x,
807: silent=
808: site=
809: srcdir=
810: verbose=
811: x_includes=NONE
812: x_libraries=NONE
1.2 paf 813:
814: # Installation directory options.
815: # These are left unexpanded so users can "make install exec_prefix=/foo"
816: # and all the variables that are supposed to be based on exec_prefix
817: # by default will actually change.
818: # Use braces instead of parens because sh, perl, etc. also accept them.
1.5 moko 819: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 820: bindir='${exec_prefix}/bin'
821: sbindir='${exec_prefix}/sbin'
822: libexecdir='${exec_prefix}/libexec'
1.5 moko 823: datarootdir='${prefix}/share'
824: datadir='${datarootdir}'
1.1 paf 825: sysconfdir='${prefix}/etc'
826: sharedstatedir='${prefix}/com'
827: localstatedir='${prefix}/var'
1.7 moko 828: runstatedir='${localstatedir}/run'
1.1 paf 829: includedir='${prefix}/include'
830: oldincludedir='/usr/include'
1.5 moko 831: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832: infodir='${datarootdir}/info'
833: htmldir='${docdir}'
834: dvidir='${docdir}'
835: pdfdir='${docdir}'
836: psdir='${docdir}'
837: libdir='${exec_prefix}/lib'
838: localedir='${datarootdir}/locale'
839: mandir='${datarootdir}/man'
1.1 paf 840:
841: ac_prev=
1.5 moko 842: ac_dashdash=
1.1 paf 843: for ac_option
844: do
845: # If the previous option needs an argument, assign it.
846: if test -n "$ac_prev"; then
1.5 moko 847: eval $ac_prev=\$ac_option
1.1 paf 848: ac_prev=
849: continue
850: fi
851:
1.5 moko 852: case $ac_option in
853: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854: *=) ac_optarg= ;;
855: *) ac_optarg=yes ;;
856: esac
1.1 paf 857:
858: # Accept the important Cygnus configure options, so we can diagnose typos.
859:
1.5 moko 860: case $ac_dashdash$ac_option in
861: --)
862: ac_dashdash=yes ;;
1.1 paf 863:
864: -bindir | --bindir | --bindi | --bind | --bin | --bi)
865: ac_prev=bindir ;;
866: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.2 paf 867: bindir=$ac_optarg ;;
1.1 paf 868:
869: -build | --build | --buil | --bui | --bu)
1.2 paf 870: ac_prev=build_alias ;;
1.1 paf 871: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.2 paf 872: build_alias=$ac_optarg ;;
1.1 paf 873:
874: -cache-file | --cache-file | --cache-fil | --cache-fi \
875: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876: ac_prev=cache_file ;;
877: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.2 paf 879: cache_file=$ac_optarg ;;
880:
881: --config-cache | -C)
882: cache_file=config.cache ;;
1.1 paf 883:
1.5 moko 884: -datadir | --datadir | --datadi | --datad)
1.1 paf 885: ac_prev=datadir ;;
1.5 moko 886: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.2 paf 887: datadir=$ac_optarg ;;
1.1 paf 888:
1.5 moko 889: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890: | --dataroo | --dataro | --datar)
891: ac_prev=datarootdir ;;
892: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894: datarootdir=$ac_optarg ;;
895:
1.1 paf 896: -disable-* | --disable-*)
1.5 moko 897: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 898: # Reject names that are not valid shell variable names.
1.5 moko 899: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900: as_fn_error $? "invalid feature name: $ac_useropt"
901: ac_useropt_orig=$ac_useropt
902: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903: case $ac_user_opts in
904: *"
905: "enable_$ac_useropt"
906: "*) ;;
907: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908: ac_unrecognized_sep=', ';;
909: esac
910: eval enable_$ac_useropt=no ;;
911:
912: -docdir | --docdir | --docdi | --doc | --do)
913: ac_prev=docdir ;;
914: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915: docdir=$ac_optarg ;;
916:
917: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918: ac_prev=dvidir ;;
919: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920: dvidir=$ac_optarg ;;
1.1 paf 921:
922: -enable-* | --enable-*)
1.5 moko 923: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 924: # Reject names that are not valid shell variable names.
1.5 moko 925: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926: as_fn_error $? "invalid feature name: $ac_useropt"
927: ac_useropt_orig=$ac_useropt
928: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929: case $ac_user_opts in
930: *"
931: "enable_$ac_useropt"
932: "*) ;;
933: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934: ac_unrecognized_sep=', ';;
1.1 paf 935: esac
1.5 moko 936: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 937:
938: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940: | --exec | --exe | --ex)
941: ac_prev=exec_prefix ;;
942: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944: | --exec=* | --exe=* | --ex=*)
1.2 paf 945: exec_prefix=$ac_optarg ;;
1.1 paf 946:
947: -gas | --gas | --ga | --g)
948: # Obsolete; use --with-gas.
949: with_gas=yes ;;
950:
1.2 paf 951: -help | --help | --hel | --he | -h)
952: ac_init_help=long ;;
953: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954: ac_init_help=recursive ;;
955: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956: ac_init_help=short ;;
1.1 paf 957:
958: -host | --host | --hos | --ho)
1.2 paf 959: ac_prev=host_alias ;;
1.1 paf 960: -host=* | --host=* | --hos=* | --ho=*)
1.2 paf 961: host_alias=$ac_optarg ;;
1.1 paf 962:
1.5 moko 963: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964: ac_prev=htmldir ;;
965: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966: | --ht=*)
967: htmldir=$ac_optarg ;;
968:
1.1 paf 969: -includedir | --includedir | --includedi | --included | --include \
970: | --includ | --inclu | --incl | --inc)
971: ac_prev=includedir ;;
972: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.2 paf 974: includedir=$ac_optarg ;;
1.1 paf 975:
976: -infodir | --infodir | --infodi | --infod | --info | --inf)
977: ac_prev=infodir ;;
978: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.2 paf 979: infodir=$ac_optarg ;;
1.1 paf 980:
981: -libdir | --libdir | --libdi | --libd)
982: ac_prev=libdir ;;
983: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.2 paf 984: libdir=$ac_optarg ;;
1.1 paf 985:
986: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987: | --libexe | --libex | --libe)
988: ac_prev=libexecdir ;;
989: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990: | --libexe=* | --libex=* | --libe=*)
1.2 paf 991: libexecdir=$ac_optarg ;;
1.1 paf 992:
1.5 moko 993: -localedir | --localedir | --localedi | --localed | --locale)
994: ac_prev=localedir ;;
995: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996: localedir=$ac_optarg ;;
997:
1.1 paf 998: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.5 moko 999: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1000: ac_prev=localstatedir ;;
1001: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.5 moko 1002: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.2 paf 1003: localstatedir=$ac_optarg ;;
1.1 paf 1004:
1005: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006: ac_prev=mandir ;;
1007: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.2 paf 1008: mandir=$ac_optarg ;;
1.1 paf 1009:
1010: -nfp | --nfp | --nf)
1011: # Obsolete; use --without-fp.
1012: with_fp=no ;;
1013:
1014: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.2 paf 1015: | --no-cr | --no-c | -n)
1.1 paf 1016: no_create=yes ;;
1017:
1018: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020: no_recursion=yes ;;
1021:
1022: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024: | --oldin | --oldi | --old | --ol | --o)
1025: ac_prev=oldincludedir ;;
1026: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.2 paf 1029: oldincludedir=$ac_optarg ;;
1.1 paf 1030:
1031: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032: ac_prev=prefix ;;
1033: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.2 paf 1034: prefix=$ac_optarg ;;
1.1 paf 1035:
1036: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037: | --program-pre | --program-pr | --program-p)
1038: ac_prev=program_prefix ;;
1039: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.2 paf 1041: program_prefix=$ac_optarg ;;
1.1 paf 1042:
1043: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044: | --program-suf | --program-su | --program-s)
1045: ac_prev=program_suffix ;;
1046: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.2 paf 1048: program_suffix=$ac_optarg ;;
1.1 paf 1049:
1050: -program-transform-name | --program-transform-name \
1051: | --program-transform-nam | --program-transform-na \
1052: | --program-transform-n | --program-transform- \
1053: | --program-transform | --program-transfor \
1054: | --program-transfo | --program-transf \
1055: | --program-trans | --program-tran \
1056: | --progr-tra | --program-tr | --program-t)
1057: ac_prev=program_transform_name ;;
1058: -program-transform-name=* | --program-transform-name=* \
1059: | --program-transform-nam=* | --program-transform-na=* \
1060: | --program-transform-n=* | --program-transform-=* \
1061: | --program-transform=* | --program-transfor=* \
1062: | --program-transfo=* | --program-transf=* \
1063: | --program-trans=* | --program-tran=* \
1064: | --progr-tra=* | --program-tr=* | --program-t=*)
1.2 paf 1065: program_transform_name=$ac_optarg ;;
1.1 paf 1066:
1.5 moko 1067: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068: ac_prev=pdfdir ;;
1069: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070: pdfdir=$ac_optarg ;;
1071:
1072: -psdir | --psdir | --psdi | --psd | --ps)
1073: ac_prev=psdir ;;
1074: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075: psdir=$ac_optarg ;;
1076:
1.1 paf 1077: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078: | -silent | --silent | --silen | --sile | --sil)
1079: silent=yes ;;
1080:
1.7 moko 1081: -runstatedir | --runstatedir | --runstatedi | --runstated \
1082: | --runstate | --runstat | --runsta | --runst | --runs \
1083: | --run | --ru | --r)
1084: ac_prev=runstatedir ;;
1085: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087: | --run=* | --ru=* | --r=*)
1088: runstatedir=$ac_optarg ;;
1089:
1.1 paf 1090: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091: ac_prev=sbindir ;;
1092: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093: | --sbi=* | --sb=*)
1.2 paf 1094: sbindir=$ac_optarg ;;
1.1 paf 1095:
1096: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098: | --sharedst | --shareds | --shared | --share | --shar \
1099: | --sha | --sh)
1100: ac_prev=sharedstatedir ;;
1101: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104: | --sha=* | --sh=*)
1.2 paf 1105: sharedstatedir=$ac_optarg ;;
1.1 paf 1106:
1107: -site | --site | --sit)
1108: ac_prev=site ;;
1109: -site=* | --site=* | --sit=*)
1.2 paf 1110: site=$ac_optarg ;;
1.1 paf 1111:
1112: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113: ac_prev=srcdir ;;
1114: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.2 paf 1115: srcdir=$ac_optarg ;;
1.1 paf 1116:
1117: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118: | --syscon | --sysco | --sysc | --sys | --sy)
1119: ac_prev=sysconfdir ;;
1120: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.2 paf 1122: sysconfdir=$ac_optarg ;;
1.1 paf 1123:
1124: -target | --target | --targe | --targ | --tar | --ta | --t)
1.2 paf 1125: ac_prev=target_alias ;;
1.1 paf 1126: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.2 paf 1127: target_alias=$ac_optarg ;;
1.1 paf 1128:
1129: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130: verbose=yes ;;
1131:
1.2 paf 1132: -version | --version | --versio | --versi | --vers | -V)
1133: ac_init_version=: ;;
1.1 paf 1134:
1135: -with-* | --with-*)
1.5 moko 1136: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1137: # Reject names that are not valid shell variable names.
1.5 moko 1138: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139: as_fn_error $? "invalid package name: $ac_useropt"
1140: ac_useropt_orig=$ac_useropt
1141: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142: case $ac_user_opts in
1143: *"
1144: "with_$ac_useropt"
1145: "*) ;;
1146: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147: ac_unrecognized_sep=', ';;
1.1 paf 1148: esac
1.5 moko 1149: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1150:
1151: -without-* | --without-*)
1.5 moko 1152: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1153: # Reject names that are not valid shell variable names.
1.5 moko 1154: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155: as_fn_error $? "invalid package name: $ac_useropt"
1156: ac_useropt_orig=$ac_useropt
1157: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158: case $ac_user_opts in
1159: *"
1160: "with_$ac_useropt"
1161: "*) ;;
1162: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163: ac_unrecognized_sep=', ';;
1164: esac
1165: eval with_$ac_useropt=no ;;
1.1 paf 1166:
1167: --x)
1168: # Obsolete; use --with-x.
1169: with_x=yes ;;
1170:
1171: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172: | --x-incl | --x-inc | --x-in | --x-i)
1173: ac_prev=x_includes ;;
1174: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.2 paf 1176: x_includes=$ac_optarg ;;
1.1 paf 1177:
1178: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180: ac_prev=x_libraries ;;
1181: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.2 paf 1183: x_libraries=$ac_optarg ;;
1.1 paf 1184:
1.5 moko 1185: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186: Try \`$0 --help' for more information"
1.1 paf 1187: ;;
1188:
1.2 paf 1189: *=*)
1190: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191: # Reject names that are not valid shell variable names.
1.5 moko 1192: case $ac_envvar in #(
1193: '' | [0-9]* | *[!_$as_cr_alnum]* )
1194: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195: esac
1196: eval $ac_envvar=\$ac_optarg
1.2 paf 1197: export $ac_envvar ;;
1198:
1.1 paf 1199: *)
1.2 paf 1200: # FIXME: should be removed in autoconf 3.0.
1.5 moko 1201: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.2 paf 1202: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.5 moko 1203: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1205: ;;
1206:
1207: esac
1208: done
1209:
1210: if test -n "$ac_prev"; then
1.2 paf 1211: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.5 moko 1212: as_fn_error $? "missing argument to $ac_option"
1213: fi
1214:
1215: if test -n "$ac_unrecognized_opts"; then
1216: case $enable_option_checking in
1217: no) ;;
1218: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220: esac
1.1 paf 1221: fi
1222:
1.5 moko 1223: # Check all directory arguments for consistency.
1224: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225: datadir sysconfdir sharedstatedir localstatedir includedir \
1226: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.7 moko 1227: libdir localedir mandir runstatedir
1.2 paf 1228: do
1.5 moko 1229: eval ac_val=\$$ac_var
1230: # Remove trailing slashes.
1.2 paf 1231: case $ac_val in
1.5 moko 1232: */ )
1233: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234: eval $ac_var=\$ac_val;;
1.2 paf 1235: esac
1.5 moko 1236: # Be sure to have absolute directory names.
1.2 paf 1237: case $ac_val in
1.5 moko 1238: [\\/$]* | ?:[\\/]* ) continue;;
1239: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1240: esac
1.5 moko 1241: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1242: done
1243:
1.2 paf 1244: # There might be people who depend on the old broken behavior: `$host'
1245: # used to hold the argument of --host etc.
1246: # FIXME: To remove some day.
1247: build=$build_alias
1248: host=$host_alias
1249: target=$target_alias
1250:
1251: # FIXME: To remove some day.
1252: if test "x$host_alias" != x; then
1253: if test "x$build_alias" = x; then
1254: cross_compiling=maybe
1255: elif test "x$build_alias" != "x$host_alias"; then
1256: cross_compiling=yes
1257: fi
1258: fi
1259:
1260: ac_tool_prefix=
1261: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1262:
1.2 paf 1263: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1264:
1265:
1.5 moko 1266: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267: ac_ls_di=`ls -di .` &&
1268: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269: as_fn_error $? "working directory cannot be determined"
1270: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271: as_fn_error $? "pwd does not report name of working directory"
1272:
1273:
1.1 paf 1274: # Find the source files, if location was not specified.
1275: if test -z "$srcdir"; then
1276: ac_srcdir_defaulted=yes
1.5 moko 1277: # Try the directory containing this script, then the parent directory.
1278: ac_confdir=`$as_dirname -- "$as_myself" ||
1279: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280: X"$as_myself" : 'X\(//\)[^/]' \| \
1281: X"$as_myself" : 'X\(//\)$' \| \
1282: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283: $as_echo X"$as_myself" |
1284: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285: s//\1/
1286: q
1287: }
1288: /^X\(\/\/\)[^/].*/{
1289: s//\1/
1290: q
1291: }
1292: /^X\(\/\/\)$/{
1293: s//\1/
1294: q
1295: }
1296: /^X\(\/\).*/{
1297: s//\1/
1298: q
1299: }
1300: s/.*/./; q'`
1.1 paf 1301: srcdir=$ac_confdir
1.5 moko 1302: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1303: srcdir=..
1304: fi
1305: else
1306: ac_srcdir_defaulted=no
1307: fi
1.5 moko 1308: if test ! -r "$srcdir/$ac_unique_file"; then
1309: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311: fi
1312: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313: ac_abs_confdir=`(
1314: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315: pwd)`
1316: # When building in place, set srcdir=.
1317: if test "$ac_abs_confdir" = "$ac_pwd"; then
1318: srcdir=.
1319: fi
1320: # Remove unnecessary trailing slashes from srcdir.
1321: # Double slashes in file names in object file debugging info
1322: # mess up M-x gdb in Emacs.
1323: case $srcdir in
1324: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325: esac
1326: for ac_var in $ac_precious_vars; do
1327: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328: eval ac_env_${ac_var}_value=\$${ac_var}
1329: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331: done
1.2 paf 1332:
1333: #
1334: # Report the --help message.
1335: #
1336: if test "$ac_init_help" = "long"; then
1337: # Omit some internal or obsolete options to make the list less imposing.
1338: # This message is too long to be a string in the A/UX 3.1 sh.
1339: cat <<_ACEOF
1.5 moko 1340: \`configure' configures libltdl 2.4.2 to adapt to many kinds of systems.
1.2 paf 1341:
1342: Usage: $0 [OPTION]... [VAR=VALUE]...
1343:
1344: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345: VAR=VALUE. See below for descriptions of some of the useful variables.
1346:
1347: Defaults for the options are specified in brackets.
1348:
1349: Configuration:
1350: -h, --help display this help and exit
1351: --help=short display options specific to this package
1352: --help=recursive display the short help of all the included packages
1353: -V, --version display version information and exit
1.5 moko 1354: -q, --quiet, --silent do not print \`checking ...' messages
1.2 paf 1355: --cache-file=FILE cache test results in FILE [disabled]
1356: -C, --config-cache alias for \`--cache-file=config.cache'
1357: -n, --no-create do not create output files
1358: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359:
1360: Installation directories:
1361: --prefix=PREFIX install architecture-independent files in PREFIX
1362: [$ac_default_prefix]
1363: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364: [PREFIX]
1365:
1366: By default, \`make install' will install all the files in
1367: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369: for instance \`--prefix=\$HOME'.
1370:
1371: For better control, use the options below.
1372:
1373: Fine tuning of the installation directories:
1.5 moko 1374: --bindir=DIR user executables [EPREFIX/bin]
1375: --sbindir=DIR system admin executables [EPREFIX/sbin]
1376: --libexecdir=DIR program executables [EPREFIX/libexec]
1377: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.7 moko 1380: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.5 moko 1381: --libdir=DIR object code libraries [EPREFIX/lib]
1382: --includedir=DIR C header files [PREFIX/include]
1383: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386: --infodir=DIR info documentation [DATAROOTDIR/info]
1387: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388: --mandir=DIR man documentation [DATAROOTDIR/man]
1389: --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1390: --htmldir=DIR html documentation [DOCDIR]
1391: --dvidir=DIR dvi documentation [DOCDIR]
1392: --pdfdir=DIR pdf documentation [DOCDIR]
1393: --psdir=DIR ps documentation [DOCDIR]
1.2 paf 1394: _ACEOF
1395:
1396: cat <<\_ACEOF
1397:
1398: Program names:
1399: --program-prefix=PREFIX prepend PREFIX to installed program names
1400: --program-suffix=SUFFIX append SUFFIX to installed program names
1401: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1.3 paf 1402:
1403: System types:
1404: --build=BUILD configure for building on BUILD [guessed]
1405: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.2 paf 1406: _ACEOF
1407: fi
1408:
1409: if test -n "$ac_init_help"; then
1.5 moko 1410: case $ac_init_help in
1411: short | recursive ) echo "Configuration of libltdl 2.4.2:";;
1412: esac
1.2 paf 1413: cat <<\_ACEOF
1414:
1415: Optional Features:
1.5 moko 1416: --disable-option-checking ignore unrecognized --enable/--with options
1.2 paf 1417: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.8 moko 1419: --enable-silent-rules less verbose build output (undo: "make V=1")
1420: --disable-silent-rules verbose build output (undo: "make V=0")
1.5 moko 1421: --enable-shared[=PKGS] build shared libraries [default=yes]
1422: --enable-static[=PKGS] build static libraries [default=yes]
1423: --enable-fast-install[=PKGS]
1424: optimize for fast installation [default=yes]
1.8 moko 1425: --enable-dependency-tracking
1426: do not reject slow dependency extractors
1427: --disable-dependency-tracking
1428: speeds up one-time build
1.4 paf 1429: --disable-libtool-lock avoid locking (might break parallel builds)
1430: --enable-ltdl-install install libltdl
1431:
1432: Optional Packages:
1433: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.5 moko 1435: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1436: both]
1437: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438: --with-sysroot=DIR Search for dependent libraries within DIR
1439: (or the compiler's sysroot if not specified).
1.2 paf 1440:
1441: Some influential environment variables:
1442: CC C compiler command
1443: CFLAGS C compiler flags
1444: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445: nonstandard directory <lib dir>
1.5 moko 1446: LIBS libraries to pass to the linker, e.g. -l<library>
1447: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448: you have headers in a nonstandard directory <include dir>
1.2 paf 1449: CPP C preprocessor
1450:
1451: Use these variables to override the choices made by `configure' or to help
1452: it to find libraries and programs with nonstandard names/locations.
1453:
1.5 moko 1454: Report bugs to <bug-libtool@gnu.org>.
1.2 paf 1455: _ACEOF
1.5 moko 1456: ac_status=$?
1.2 paf 1457: fi
1458:
1459: if test "$ac_init_help" = "recursive"; then
1460: # If there are subdirs, report their specific --help.
1461: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.5 moko 1462: test -d "$ac_dir" ||
1463: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464: continue
1.2 paf 1465: ac_builddir=.
1466:
1.5 moko 1467: case "$ac_dir" in
1468: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469: *)
1470: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471: # A ".." for each directory in $ac_dir_suffix.
1472: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473: case $ac_top_builddir_sub in
1474: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476: esac ;;
1477: esac
1478: ac_abs_top_builddir=$ac_pwd
1479: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480: # for backward compatibility:
1481: ac_top_builddir=$ac_top_build_prefix
1.2 paf 1482:
1483: case $srcdir in
1.5 moko 1484: .) # We are building in place.
1.2 paf 1485: ac_srcdir=.
1.5 moko 1486: ac_top_srcdir=$ac_top_builddir_sub
1487: ac_abs_top_srcdir=$ac_pwd ;;
1488: [\\/]* | ?:[\\/]* ) # Absolute name.
1.2 paf 1489: ac_srcdir=$srcdir$ac_dir_suffix;
1.5 moko 1490: ac_top_srcdir=$srcdir
1491: ac_abs_top_srcdir=$srcdir ;;
1492: *) # Relative name.
1493: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494: ac_top_srcdir=$ac_top_build_prefix$srcdir
1495: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496: esac
1497: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498:
1499: cd "$ac_dir" || { ac_status=$?; continue; }
1500: # Check for guested configure.
1501: if test -f "$ac_srcdir/configure.gnu"; then
1502: echo &&
1503: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504: elif test -f "$ac_srcdir/configure"; then
1505: echo &&
1506: $SHELL "$ac_srcdir/configure" --help=recursive
1.2 paf 1507: else
1.5 moko 1508: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509: fi || ac_status=$?
1510: cd "$ac_pwd" || { ac_status=$?; break; }
1.2 paf 1511: done
1512: fi
1513:
1.5 moko 1514: test -n "$ac_init_help" && exit $ac_status
1.2 paf 1515: if $ac_init_version; then
1516: cat <<\_ACEOF
1.5 moko 1517: libltdl configure 2.4.2
1.7 moko 1518: generated by GNU Autoconf 2.69
1.2 paf 1519:
1.7 moko 1520: Copyright (C) 2012 Free Software Foundation, Inc.
1.2 paf 1521: This configure script is free software; the Free Software Foundation
1522: gives unlimited permission to copy, distribute and modify it.
1523: _ACEOF
1.5 moko 1524: exit
1.2 paf 1525: fi
1526:
1.5 moko 1527: ## ------------------------ ##
1528: ## Autoconf initialization. ##
1529: ## ------------------------ ##
1530:
1531: # ac_fn_c_try_compile LINENO
1532: # --------------------------
1533: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534: ac_fn_c_try_compile ()
1535: {
1536: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537: rm -f conftest.$ac_objext
1538: if { { ac_try="$ac_compile"
1539: case "(($ac_try" in
1540: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541: *) ac_try_echo=$ac_try;;
1542: esac
1543: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544: $as_echo "$ac_try_echo"; } >&5
1545: (eval "$ac_compile") 2>conftest.err
1546: ac_status=$?
1547: if test -s conftest.err; then
1548: grep -v '^ *+' conftest.err >conftest.er1
1549: cat conftest.er1 >&5
1550: mv -f conftest.er1 conftest.err
1551: fi
1552: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553: test $ac_status = 0; } && {
1554: test -z "$ac_c_werror_flag" ||
1555: test ! -s conftest.err
1556: } && test -s conftest.$ac_objext; then :
1557: ac_retval=0
1558: else
1559: $as_echo "$as_me: failed program was:" >&5
1560: sed 's/^/| /' conftest.$ac_ext >&5
1561:
1562: ac_retval=1
1563: fi
1564: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565: as_fn_set_status $ac_retval
1566:
1567: } # ac_fn_c_try_compile
1568:
1569: # ac_fn_c_try_link LINENO
1570: # -----------------------
1571: # Try to link conftest.$ac_ext, and return whether this succeeded.
1572: ac_fn_c_try_link ()
1573: {
1574: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575: rm -f conftest.$ac_objext conftest$ac_exeext
1576: if { { ac_try="$ac_link"
1577: case "(($ac_try" in
1578: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579: *) ac_try_echo=$ac_try;;
1580: esac
1581: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582: $as_echo "$ac_try_echo"; } >&5
1583: (eval "$ac_link") 2>conftest.err
1584: ac_status=$?
1585: if test -s conftest.err; then
1586: grep -v '^ *+' conftest.err >conftest.er1
1587: cat conftest.er1 >&5
1588: mv -f conftest.er1 conftest.err
1589: fi
1590: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591: test $ac_status = 0; } && {
1592: test -z "$ac_c_werror_flag" ||
1593: test ! -s conftest.err
1594: } && test -s conftest$ac_exeext && {
1595: test "$cross_compiling" = yes ||
1.7 moko 1596: test -x conftest$ac_exeext
1.5 moko 1597: }; then :
1598: ac_retval=0
1599: else
1600: $as_echo "$as_me: failed program was:" >&5
1601: sed 's/^/| /' conftest.$ac_ext >&5
1602:
1603: ac_retval=1
1604: fi
1605: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607: # interfere with the next link command; also delete a directory that is
1608: # left behind by Apple's compiler. We do this before executing the actions.
1609: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611: as_fn_set_status $ac_retval
1612:
1613: } # ac_fn_c_try_link
1614:
1615: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616: # -------------------------------------------------------
1617: # Tests whether HEADER exists and can be compiled using the include files in
1618: # INCLUDES, setting the cache variable VAR accordingly.
1619: ac_fn_c_check_header_compile ()
1620: {
1621: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623: $as_echo_n "checking for $2... " >&6; }
1624: if eval \${$3+:} false; then :
1625: $as_echo_n "(cached) " >&6
1626: else
1627: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628: /* end confdefs.h. */
1629: $4
1630: #include <$2>
1631: _ACEOF
1632: if ac_fn_c_try_compile "$LINENO"; then :
1633: eval "$3=yes"
1634: else
1635: eval "$3=no"
1636: fi
1637: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638: fi
1639: eval ac_res=\$$3
1640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641: $as_echo "$ac_res" >&6; }
1642: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643:
1644: } # ac_fn_c_check_header_compile
1645:
1646: # ac_fn_c_try_cpp LINENO
1647: # ----------------------
1648: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649: ac_fn_c_try_cpp ()
1650: {
1651: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652: if { { ac_try="$ac_cpp conftest.$ac_ext"
1653: case "(($ac_try" in
1654: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655: *) ac_try_echo=$ac_try;;
1656: esac
1657: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658: $as_echo "$ac_try_echo"; } >&5
1659: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660: ac_status=$?
1661: if test -s conftest.err; then
1662: grep -v '^ *+' conftest.err >conftest.er1
1663: cat conftest.er1 >&5
1664: mv -f conftest.er1 conftest.err
1665: fi
1666: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667: test $ac_status = 0; } > conftest.i && {
1668: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669: test ! -s conftest.err
1670: }; then :
1671: ac_retval=0
1672: else
1673: $as_echo "$as_me: failed program was:" >&5
1674: sed 's/^/| /' conftest.$ac_ext >&5
1675:
1676: ac_retval=1
1677: fi
1678: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679: as_fn_set_status $ac_retval
1680:
1681: } # ac_fn_c_try_cpp
1682:
1683: # ac_fn_c_try_run LINENO
1684: # ----------------------
1685: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686: # that executables *can* be run.
1687: ac_fn_c_try_run ()
1688: {
1689: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690: if { { ac_try="$ac_link"
1691: case "(($ac_try" in
1692: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693: *) ac_try_echo=$ac_try;;
1694: esac
1695: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696: $as_echo "$ac_try_echo"; } >&5
1697: (eval "$ac_link") 2>&5
1698: ac_status=$?
1699: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701: { { case "(($ac_try" in
1702: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703: *) ac_try_echo=$ac_try;;
1704: esac
1705: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706: $as_echo "$ac_try_echo"; } >&5
1707: (eval "$ac_try") 2>&5
1708: ac_status=$?
1709: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710: test $ac_status = 0; }; }; then :
1711: ac_retval=0
1712: else
1713: $as_echo "$as_me: program exited with status $ac_status" >&5
1714: $as_echo "$as_me: failed program was:" >&5
1715: sed 's/^/| /' conftest.$ac_ext >&5
1716:
1717: ac_retval=$ac_status
1718: fi
1719: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721: as_fn_set_status $ac_retval
1722:
1723: } # ac_fn_c_try_run
1724:
1725: # ac_fn_c_check_func LINENO FUNC VAR
1726: # ----------------------------------
1727: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728: ac_fn_c_check_func ()
1729: {
1730: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732: $as_echo_n "checking for $2... " >&6; }
1733: if eval \${$3+:} false; then :
1734: $as_echo_n "(cached) " >&6
1735: else
1736: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737: /* end confdefs.h. */
1738: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740: #define $2 innocuous_$2
1741:
1742: /* System header to define __stub macros and hopefully few prototypes,
1743: which can conflict with char $2 (); below.
1744: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745: <limits.h> exists even on freestanding compilers. */
1746:
1747: #ifdef __STDC__
1748: # include <limits.h>
1749: #else
1750: # include <assert.h>
1751: #endif
1752:
1753: #undef $2
1754:
1755: /* Override any GCC internal prototype to avoid an error.
1756: Use char because int might match the return type of a GCC
1757: builtin and then its argument prototype would still apply. */
1758: #ifdef __cplusplus
1759: extern "C"
1760: #endif
1761: char $2 ();
1762: /* The GNU C library defines this for functions which it implements
1763: to always fail with ENOSYS. Some functions are actually named
1764: something starting with __ and the normal name is an alias. */
1765: #if defined __stub_$2 || defined __stub___$2
1766: choke me
1767: #endif
1768:
1769: int
1770: main ()
1771: {
1772: return $2 ();
1773: ;
1774: return 0;
1775: }
1776: _ACEOF
1777: if ac_fn_c_try_link "$LINENO"; then :
1778: eval "$3=yes"
1779: else
1780: eval "$3=no"
1781: fi
1782: rm -f core conftest.err conftest.$ac_objext \
1783: conftest$ac_exeext conftest.$ac_ext
1784: fi
1785: eval ac_res=\$$3
1786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787: $as_echo "$ac_res" >&6; }
1788: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789:
1790: } # ac_fn_c_check_func
1791:
1792: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1793: # ---------------------------------------------
1794: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1795: # accordingly.
1796: ac_fn_c_check_decl ()
1797: {
1798: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799: as_decl_name=`echo $2|sed 's/ *(.*//'`
1800: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1802: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1803: if eval \${$3+:} false; then :
1804: $as_echo_n "(cached) " >&6
1805: else
1806: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807: /* end confdefs.h. */
1808: $4
1809: int
1810: main ()
1811: {
1812: #ifndef $as_decl_name
1813: #ifdef __cplusplus
1814: (void) $as_decl_use;
1815: #else
1816: (void) $as_decl_name;
1817: #endif
1818: #endif
1819:
1820: ;
1821: return 0;
1822: }
1823: _ACEOF
1824: if ac_fn_c_try_compile "$LINENO"; then :
1825: eval "$3=yes"
1826: else
1827: eval "$3=no"
1828: fi
1829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830: fi
1831: eval ac_res=\$$3
1832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833: $as_echo "$ac_res" >&6; }
1834: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835:
1836: } # ac_fn_c_check_decl
1837:
1838: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1839: # -------------------------------------------
1840: # Tests whether TYPE exists after having included INCLUDES, setting cache
1841: # variable VAR accordingly.
1842: ac_fn_c_check_type ()
1843: {
1844: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846: $as_echo_n "checking for $2... " >&6; }
1847: if eval \${$3+:} false; then :
1848: $as_echo_n "(cached) " >&6
1849: else
1850: eval "$3=no"
1851: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852: /* end confdefs.h. */
1853: $4
1854: int
1855: main ()
1856: {
1857: if (sizeof ($2))
1858: return 0;
1859: ;
1860: return 0;
1861: }
1862: _ACEOF
1863: if ac_fn_c_try_compile "$LINENO"; then :
1864: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865: /* end confdefs.h. */
1866: $4
1867: int
1868: main ()
1869: {
1870: if (sizeof (($2)))
1871: return 0;
1872: ;
1873: return 0;
1874: }
1875: _ACEOF
1876: if ac_fn_c_try_compile "$LINENO"; then :
1877:
1878: else
1879: eval "$3=yes"
1880: fi
1881: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882: fi
1883: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884: fi
1885: eval ac_res=\$$3
1886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887: $as_echo "$ac_res" >&6; }
1888: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889:
1890: } # ac_fn_c_check_type
1891: cat >config.log <<_ACEOF
1892: This file contains any messages produced by compilers while
1893: running configure, to aid debugging if configure makes a mistake.
1894:
1895: It was created by libltdl $as_me 2.4.2, which was
1.7 moko 1896: generated by GNU Autoconf 2.69. Invocation command line was
1.5 moko 1897:
1898: $ $0 $@
1899:
1900: _ACEOF
1901: exec 5>>config.log
1.2 paf 1902: {
1903: cat <<_ASUNAME
1904: ## --------- ##
1905: ## Platform. ##
1906: ## --------- ##
1907:
1908: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913:
1914: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916:
1917: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1918: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1919: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.5 moko 1920: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.2 paf 1921: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1922: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1923: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924:
1925: _ASUNAME
1926:
1927: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928: for as_dir in $PATH
1929: do
1930: IFS=$as_save_IFS
1931: test -z "$as_dir" && as_dir=.
1.5 moko 1932: $as_echo "PATH: $as_dir"
1933: done
1934: IFS=$as_save_IFS
1.2 paf 1935:
1936: } >&5
1937:
1938: cat >&5 <<_ACEOF
1939:
1940:
1941: ## ----------- ##
1942: ## Core tests. ##
1943: ## ----------- ##
1944:
1945: _ACEOF
1946:
1947:
1948: # Keep a trace of the command line.
1949: # Strip out --no-create and --no-recursion so they do not pile up.
1950: # Strip out --silent because we don't want to record it for future runs.
1951: # Also quote any args containing shell meta-characters.
1952: # Make two passes to allow for proper duplicate-argument suppression.
1953: ac_configure_args=
1954: ac_configure_args0=
1955: ac_configure_args1=
1956: ac_must_keep_next=false
1957: for ac_pass in 1 2
1958: do
1959: for ac_arg
1960: do
1961: case $ac_arg in
1962: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964: | -silent | --silent | --silen | --sile | --sil)
1965: continue ;;
1.5 moko 1966: *\'*)
1967: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.2 paf 1968: esac
1969: case $ac_pass in
1.5 moko 1970: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.2 paf 1971: 2)
1.5 moko 1972: as_fn_append ac_configure_args1 " '$ac_arg'"
1.2 paf 1973: if test $ac_must_keep_next = true; then
1.5 moko 1974: ac_must_keep_next=false # Got value, back to normal.
1.2 paf 1975: else
1.5 moko 1976: case $ac_arg in
1977: *=* | --config-cache | -C | -disable-* | --disable-* \
1978: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980: | -with-* | --with-* | -without-* | --without-* | --x)
1981: case "$ac_configure_args0 " in
1982: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983: esac
1984: ;;
1985: -* ) ac_must_keep_next=true ;;
1986: esac
1.2 paf 1987: fi
1.5 moko 1988: as_fn_append ac_configure_args " '$ac_arg'"
1.2 paf 1989: ;;
1990: esac
1991: done
1992: done
1.5 moko 1993: { ac_configure_args0=; unset ac_configure_args0;}
1994: { ac_configure_args1=; unset ac_configure_args1;}
1.2 paf 1995:
1996: # When interrupted or exit'd, cleanup temporary files, and complete
1997: # config.log. We remove comments because anyway the quotes in there
1998: # would cause problems or look ugly.
1.5 moko 1999: # WARNING: Use '\'' to represent an apostrophe within the trap.
2000: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.2 paf 2001: trap 'exit_status=$?
2002: # Save into config.log some information that might help in debugging.
2003: {
2004: echo
2005:
1.5 moko 2006: $as_echo "## ---------------- ##
1.2 paf 2007: ## Cache variables. ##
1.5 moko 2008: ## ---------------- ##"
1.2 paf 2009: echo
2010: # The following way of writing the cache mishandles newlines in values,
1.5 moko 2011: (
2012: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2013: eval ac_val=\$$ac_var
2014: case $ac_val in #(
2015: *${as_nl}*)
2016: case $ac_var in #(
2017: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2018: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2019: esac
2020: case $ac_var in #(
2021: _ | IFS | as_nl) ;; #(
2022: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2023: *) { eval $ac_var=; unset $ac_var;} ;;
2024: esac ;;
2025: esac
2026: done
1.2 paf 2027: (set) 2>&1 |
1.5 moko 2028: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2029: *${as_nl}ac_space=\ *)
1.2 paf 2030: sed -n \
1.5 moko 2031: "s/'\''/'\''\\\\'\'''\''/g;
2032: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2033: ;; #(
1.2 paf 2034: *)
1.5 moko 2035: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.2 paf 2036: ;;
1.5 moko 2037: esac |
2038: sort
2039: )
1.2 paf 2040: echo
2041:
1.5 moko 2042: $as_echo "## ----------------- ##
1.2 paf 2043: ## Output variables. ##
1.5 moko 2044: ## ----------------- ##"
1.2 paf 2045: echo
2046: for ac_var in $ac_subst_vars
2047: do
1.5 moko 2048: eval ac_val=\$$ac_var
2049: case $ac_val in
2050: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051: esac
2052: $as_echo "$ac_var='\''$ac_val'\''"
1.2 paf 2053: done | sort
2054: echo
2055:
2056: if test -n "$ac_subst_files"; then
1.5 moko 2057: $as_echo "## ------------------- ##
2058: ## File substitutions. ##
2059: ## ------------------- ##"
1.2 paf 2060: echo
2061: for ac_var in $ac_subst_files
2062: do
1.5 moko 2063: eval ac_val=\$$ac_var
2064: case $ac_val in
2065: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066: esac
2067: $as_echo "$ac_var='\''$ac_val'\''"
1.2 paf 2068: done | sort
2069: echo
2070: fi
2071:
2072: if test -s confdefs.h; then
1.5 moko 2073: $as_echo "## ----------- ##
1.2 paf 2074: ## confdefs.h. ##
1.5 moko 2075: ## ----------- ##"
1.2 paf 2076: echo
1.5 moko 2077: cat confdefs.h
1.2 paf 2078: echo
2079: fi
2080: test "$ac_signal" != 0 &&
1.5 moko 2081: $as_echo "$as_me: caught signal $ac_signal"
2082: $as_echo "$as_me: exit $exit_status"
1.2 paf 2083: } >&5
1.5 moko 2084: rm -f core *.core core.conftest.* &&
2085: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.2 paf 2086: exit $exit_status
1.5 moko 2087: ' 0
1.2 paf 2088: for ac_signal in 1 2 13 15; do
1.5 moko 2089: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.2 paf 2090: done
2091: ac_signal=0
2092:
2093: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.5 moko 2094: rm -f -r conftest* confdefs.h
2095:
2096: $as_echo "/* confdefs.h */" > confdefs.h
1.2 paf 2097:
2098: # Predefined preprocessor variables.
2099:
2100: cat >>confdefs.h <<_ACEOF
2101: #define PACKAGE_NAME "$PACKAGE_NAME"
2102: _ACEOF
2103:
2104: cat >>confdefs.h <<_ACEOF
2105: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106: _ACEOF
2107:
2108: cat >>confdefs.h <<_ACEOF
2109: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110: _ACEOF
2111:
2112: cat >>confdefs.h <<_ACEOF
2113: #define PACKAGE_STRING "$PACKAGE_STRING"
2114: _ACEOF
2115:
1.5 moko 2116: cat >>confdefs.h <<_ACEOF
2117: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118: _ACEOF
1.2 paf 2119:
2120: cat >>confdefs.h <<_ACEOF
1.5 moko 2121: #define PACKAGE_URL "$PACKAGE_URL"
1.2 paf 2122: _ACEOF
2123:
2124:
2125: # Let the site file select an alternate cache file if it wants to.
1.5 moko 2126: # Prefer an explicitly selected file to automatically selected ones.
2127: ac_site_file1=NONE
2128: ac_site_file2=NONE
2129: if test -n "$CONFIG_SITE"; then
2130: # We do not want a PATH search for config.site.
2131: case $CONFIG_SITE in #((
2132: -*) ac_site_file1=./$CONFIG_SITE;;
2133: */*) ac_site_file1=$CONFIG_SITE;;
2134: *) ac_site_file1=./$CONFIG_SITE;;
2135: esac
2136: elif test "x$prefix" != xNONE; then
2137: ac_site_file1=$prefix/share/config.site
2138: ac_site_file2=$prefix/etc/config.site
2139: else
2140: ac_site_file1=$ac_default_prefix/share/config.site
2141: ac_site_file2=$ac_default_prefix/etc/config.site
2142: fi
2143: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144: do
2145: test "x$ac_site_file" = xNONE && continue
2146: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2147: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2148: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.2 paf 2149: sed 's/^/| /' "$ac_site_file" >&5
1.5 moko 2150: . "$ac_site_file" \
2151: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2152: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2153: as_fn_error $? "failed to load site script $ac_site_file
2154: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2155: fi
2156: done
2157:
2158: if test -r "$cache_file"; then
1.5 moko 2159: # Some versions of bash will fail to source /dev/null (special files
2160: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2161: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2162: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2163: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.2 paf 2164: case $cache_file in
1.5 moko 2165: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2166: *) . "./$cache_file";;
1.2 paf 2167: esac
2168: fi
1.1 paf 2169: else
1.5 moko 2170: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2171: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.2 paf 2172: >$cache_file
2173: fi
2174:
2175: # Check that the precious variables saved in the cache have kept the same
2176: # value.
2177: ac_cache_corrupted=false
1.5 moko 2178: for ac_var in $ac_precious_vars; do
1.2 paf 2179: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2180: eval ac_new_set=\$ac_env_${ac_var}_set
1.5 moko 2181: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2182: eval ac_new_val=\$ac_env_${ac_var}_value
1.2 paf 2183: case $ac_old_set,$ac_new_set in
2184: set,)
1.5 moko 2185: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2186: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.2 paf 2187: ac_cache_corrupted=: ;;
2188: ,set)
1.5 moko 2189: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2190: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.2 paf 2191: ac_cache_corrupted=: ;;
2192: ,);;
2193: *)
2194: if test "x$ac_old_val" != "x$ac_new_val"; then
1.5 moko 2195: # differences in whitespace do not lead to failure.
2196: ac_old_val_w=`echo x $ac_old_val`
2197: ac_new_val_w=`echo x $ac_new_val`
2198: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2199: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2200: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2201: ac_cache_corrupted=:
2202: else
2203: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2204: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2205: eval $ac_var=\$ac_old_val
2206: fi
2207: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2208: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2209: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2210: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.2 paf 2211: fi;;
2212: esac
2213: # Pass precious variables to config.status.
2214: if test "$ac_new_set" = set; then
2215: case $ac_new_val in
1.5 moko 2216: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.2 paf 2217: *) ac_arg=$ac_var=$ac_new_val ;;
2218: esac
2219: case " $ac_configure_args " in
2220: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.5 moko 2221: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.2 paf 2222: esac
2223: fi
2224: done
2225: if $ac_cache_corrupted; then
1.5 moko 2226: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2229: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2230: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2231: fi
2232: ## -------------------- ##
2233: ## Main body of script. ##
2234: ## -------------------- ##
1.1 paf 2235:
2236: ac_ext=c
2237: ac_cpp='$CPP $CPPFLAGS'
1.2 paf 2238: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241:
2242:
1.5 moko 2243: ac_config_headers="$ac_config_headers config.h:config-h.in"
1.1 paf 2244:
2245:
2246: ac_aux_dir=
1.8 moko 2247: for ac_dir in ../../.. "$srcdir"/../../..; do
1.5 moko 2248: if test -f "$ac_dir/install-sh"; then
1.1 paf 2249: ac_aux_dir=$ac_dir
2250: ac_install_sh="$ac_aux_dir/install-sh -c"
2251: break
1.5 moko 2252: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2253: ac_aux_dir=$ac_dir
2254: ac_install_sh="$ac_aux_dir/install.sh -c"
2255: break
1.5 moko 2256: elif test -f "$ac_dir/shtool"; then
1.2 paf 2257: ac_aux_dir=$ac_dir
2258: ac_install_sh="$ac_aux_dir/shtool install -c"
2259: break
1.1 paf 2260: fi
2261: done
2262: if test -z "$ac_aux_dir"; then
1.8 moko 2263: as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../.. \"$srcdir\"/../../.." "$LINENO" 5
1.2 paf 2264: fi
1.5 moko 2265:
2266: # These three variables are undocumented and unsupported,
2267: # and are intended to be withdrawn in a future Autoconf release.
2268: # They can cause serious problems if a builder's source tree is in a directory
2269: # whose full name contains unusual characters.
2270: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2271: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2272: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2273:
2274:
2275:
2276:
1.1 paf 2277:
1.4 paf 2278:
1.5 moko 2279:
2280:
2281: # I am me!
2282:
2283:
2284: ## ------------------------ ##
2285: ## Automake Initialisation. ##
2286: ## ------------------------ ##
2287:
1.8 moko 2288: am__api_version='1.16'
1.5 moko 2289:
1.1 paf 2290: # Find a good install program. We prefer a C program (faster),
2291: # so one script is as good as another. But avoid the broken or
2292: # incompatible versions:
2293: # SysV /etc/install, /usr/sbin/install
2294: # SunOS /usr/etc/install
2295: # IRIX /sbin/install
2296: # AIX /bin/install
1.2 paf 2297: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2298: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2299: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2300: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.5 moko 2301: # OS/2's system install, which has a completely different semantic
1.1 paf 2302: # ./install, which can be erroneously created by make from ./install.sh.
1.5 moko 2303: # Reject install programs that cannot install multiple files.
2304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2305: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2306: if test -z "$INSTALL"; then
1.5 moko 2307: if ${ac_cv_path_install+:} false; then :
2308: $as_echo_n "(cached) " >&6
1.1 paf 2309: else
1.2 paf 2310: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311: for as_dir in $PATH
2312: do
2313: IFS=$as_save_IFS
2314: test -z "$as_dir" && as_dir=.
1.5 moko 2315: # Account for people who put trailing slashes in PATH elements.
2316: case $as_dir/ in #((
2317: ./ | .// | /[cC]/* | \
1.2 paf 2318: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.5 moko 2319: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.2 paf 2320: /usr/ucb/* ) ;;
2321: *)
2322: # OSF1 and SCO ODT 3.0 have their own names for install.
2323: # Don't use installbsd from OSF since it installs stuff as root
2324: # by default.
2325: for ac_prog in ginstall scoinst install; do
2326: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 2327: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.5 moko 2328: if test $ac_prog = install &&
2329: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330: # AIX install. It has an incompatible calling convention.
2331: :
2332: elif test $ac_prog = install &&
2333: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2334: # program-specific install script used by HP pwplus--don't use.
2335: :
2336: else
2337: rm -rf conftest.one conftest.two conftest.dir
2338: echo one > conftest.one
2339: echo two > conftest.two
2340: mkdir conftest.dir
2341: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2342: test -s conftest.one && test -s conftest.two &&
2343: test -s conftest.dir/conftest.one &&
2344: test -s conftest.dir/conftest.two
2345: then
2346: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2347: break 3
2348: fi
2349: fi
2350: fi
1.1 paf 2351: done
1.2 paf 2352: done
2353: ;;
2354: esac
2355:
1.5 moko 2356: done
2357: IFS=$as_save_IFS
2358:
2359: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2360:
2361: fi
2362: if test "${ac_cv_path_install+set}" = set; then
1.2 paf 2363: INSTALL=$ac_cv_path_install
1.1 paf 2364: else
1.5 moko 2365: # As a last resort, use the slow shell script. Don't cache a
2366: # value for INSTALL within a source directory, because that will
1.1 paf 2367: # break other packages using the cache if that directory is
1.5 moko 2368: # removed, or if the value is a relative name.
1.2 paf 2369: INSTALL=$ac_install_sh
1.1 paf 2370: fi
2371: fi
1.5 moko 2372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2373: $as_echo "$INSTALL" >&6; }
1.1 paf 2374:
2375: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2376: # It thinks the first close brace ends the variable substitution.
2377: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2378:
1.2 paf 2379: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2380:
2381: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2382:
1.5 moko 2383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2384: $as_echo_n "checking whether build environment is sane... " >&6; }
2385: # Reject unsafe characters in $srcdir or the absolute working directory
2386: # name. Accept space and tab only in the latter.
2387: am_lf='
2388: '
2389: case `pwd` in
2390: *[\\\"\#\$\&\'\`$am_lf]*)
2391: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2392: esac
2393: case $srcdir in
2394: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.8 moko 2395: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.5 moko 2396: esac
2397:
1.8 moko 2398: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 2399: # arguments. Must try -L first in case configure is actually a
2400: # symlink; some systems play weird games with the mod time of symlinks
2401: # (eg FreeBSD returns the mod time of the symlink's containing
2402: # directory).
2403: if (
1.8 moko 2404: am_has_slept=no
2405: for am_try in 1 2; do
2406: echo "timestamp, slept: $am_has_slept" > conftest.file
2407: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2408: if test "$*" = "X"; then
2409: # -L didn't work.
2410: set X `ls -t "$srcdir/configure" conftest.file`
2411: fi
2412: if test "$*" != "X $srcdir/configure conftest.file" \
2413: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2414:
1.8 moko 2415: # If neither matched, then we have a broken ls. This can happen
2416: # if, for instance, CONFIG_SHELL is bash and it inherits a
2417: # broken ls alias from the environment. This has actually
2418: # happened. Such a system could not be considered "sane".
2419: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2420: alias in your environment" "$LINENO" 5
2421: fi
2422: if test "$2" = conftest.file || test $am_try -eq 2; then
2423: break
2424: fi
2425: # Just in case.
2426: sleep 1
2427: am_has_slept=yes
2428: done
1.2 paf 2429: test "$2" = conftest.file
1.1 paf 2430: )
2431: then
2432: # Ok.
2433: :
2434: else
1.5 moko 2435: as_fn_error $? "newly created file is older than distributed files!
2436: Check your system clock" "$LINENO" 5
1.1 paf 2437: fi
1.5 moko 2438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2439: $as_echo "yes" >&6; }
1.8 moko 2440: # If we didn't sleep, we still need to ensure time stamps of config.status and
2441: # generated files are strictly newer.
2442: am_sleep_pid=
2443: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2444: ( sleep 1 ) &
2445: am_sleep_pid=$!
2446: fi
2447:
2448: rm -f conftest.file
2449:
1.1 paf 2450: test "$program_prefix" != NONE &&
1.5 moko 2451: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2452: # Use a double $ so make ignores it.
2453: test "$program_suffix" != NONE &&
1.5 moko 2454: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2455: # Double any \ or $.
1.2 paf 2456: # By default was `s,x,x', remove it if useless.
1.5 moko 2457: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2458: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.2 paf 2459:
1.8 moko 2460: # Expand $ac_aux_dir to an absolute path.
2461: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.2 paf 2462:
1.5 moko 2463: if test x"${MISSING+set}" != xset; then
1.8 moko 2464: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.5 moko 2465: fi
1.2 paf 2466: # Use eval to expand $SHELL
1.8 moko 2467: if eval "$MISSING --is-lightweight"; then
2468: am_missing_run="$MISSING "
1.2 paf 2469: else
2470: am_missing_run=
1.8 moko 2471: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2472: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.5 moko 2473: fi
2474:
1.8 moko 2475: if test x"${install_sh+set}" != xset; then
1.5 moko 2476: case $am_aux_dir in
2477: *\ * | *\ *)
2478: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2479: *)
2480: install_sh="\${SHELL} $am_aux_dir/install-sh"
2481: esac
1.2 paf 2482: fi
1.1 paf 2483:
1.8 moko 2484: # Installed binaries are usually stripped using 'strip' when the user
2485: # run "make install-strip". However 'strip' might not be the right
1.5 moko 2486: # tool to use in cross-compilation environments, therefore Automake
1.8 moko 2487: # will honor the 'STRIP' environment variable to overrule this program.
1.5 moko 2488: if test "$cross_compiling" != no; then
2489: if test -n "$ac_tool_prefix"; then
2490: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2491: set dummy ${ac_tool_prefix}strip; ac_word=$2
2492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493: $as_echo_n "checking for $ac_word... " >&6; }
2494: if ${ac_cv_prog_STRIP+:} false; then :
2495: $as_echo_n "(cached) " >&6
1.2 paf 2496: else
1.5 moko 2497: if test -n "$STRIP"; then
2498: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.1 paf 2499: else
1.2 paf 2500: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501: for as_dir in $PATH
2502: do
2503: IFS=$as_save_IFS
2504: test -z "$as_dir" && as_dir=.
1.5 moko 2505: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 2506: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 2507: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2508: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 2509: break 2
2510: fi
2511: done
1.5 moko 2512: done
2513: IFS=$as_save_IFS
1.2 paf 2514:
2515: fi
2516: fi
1.5 moko 2517: STRIP=$ac_cv_prog_STRIP
2518: if test -n "$STRIP"; then
2519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2520: $as_echo "$STRIP" >&6; }
1.2 paf 2521: else
1.5 moko 2522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523: $as_echo "no" >&6; }
1.2 paf 2524: fi
2525:
2526:
1.5 moko 2527: fi
2528: if test -z "$ac_cv_prog_STRIP"; then
2529: ac_ct_STRIP=$STRIP
2530: # Extract the first word of "strip", so it can be a program name with args.
2531: set dummy strip; ac_word=$2
2532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533: $as_echo_n "checking for $ac_word... " >&6; }
2534: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2535: $as_echo_n "(cached) " >&6
1.2 paf 2536: else
1.5 moko 2537: if test -n "$ac_ct_STRIP"; then
2538: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 2539: else
1.5 moko 2540: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541: for as_dir in $PATH
2542: do
2543: IFS=$as_save_IFS
2544: test -z "$as_dir" && as_dir=.
2545: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 2546: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 2547: ac_cv_prog_ac_ct_STRIP="strip"
2548: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549: break 2
2550: fi
2551: done
2552: done
2553: IFS=$as_save_IFS
2554:
1.1 paf 2555: fi
2556: fi
1.5 moko 2557: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2558: if test -n "$ac_ct_STRIP"; then
2559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2560: $as_echo "$ac_ct_STRIP" >&6; }
1.1 paf 2561: else
1.5 moko 2562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563: $as_echo "no" >&6; }
1.2 paf 2564: fi
2565:
1.5 moko 2566: if test "x$ac_ct_STRIP" = x; then
2567: STRIP=":"
1.2 paf 2568: else
1.5 moko 2569: case $cross_compiling:$ac_tool_warned in
2570: yes:)
2571: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2572: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2573: ac_tool_warned=yes ;;
2574: esac
2575: STRIP=$ac_ct_STRIP
1.2 paf 2576: fi
1.5 moko 2577: else
2578: STRIP="$ac_cv_prog_STRIP"
1.2 paf 2579: fi
2580:
1.5 moko 2581: fi
2582: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.2 paf 2583:
1.5 moko 2584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2585: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2586: if test -z "$MKDIR_P"; then
2587: if ${ac_cv_path_mkdir+:} false; then :
2588: $as_echo_n "(cached) " >&6
2589: else
2590: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2592: do
2593: IFS=$as_save_IFS
2594: test -z "$as_dir" && as_dir=.
2595: for ac_prog in mkdir gmkdir; do
2596: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 2597: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.5 moko 2598: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2599: 'mkdir (GNU coreutils) '* | \
2600: 'mkdir (coreutils) '* | \
2601: 'mkdir (fileutils) '4.1*)
2602: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2603: break 3;;
2604: esac
2605: done
2606: done
2607: done
2608: IFS=$as_save_IFS
1.2 paf 2609:
1.5 moko 2610: fi
1.2 paf 2611:
1.5 moko 2612: test -d ./--version && rmdir ./--version
2613: if test "${ac_cv_path_mkdir+set}" = set; then
2614: MKDIR_P="$ac_cv_path_mkdir -p"
2615: else
2616: # As a last resort, use the slow shell script. Don't cache a
2617: # value for MKDIR_P within a source directory, because that will
2618: # break other packages using the cache if that directory is
2619: # removed, or if the value is a relative name.
2620: MKDIR_P="$ac_install_sh -d"
2621: fi
2622: fi
2623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2624: $as_echo "$MKDIR_P" >&6; }
1.2 paf 2625:
1.5 moko 2626: for ac_prog in gawk mawk nawk awk
2627: do
2628: # Extract the first word of "$ac_prog", so it can be a program name with args.
2629: set dummy $ac_prog; ac_word=$2
2630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631: $as_echo_n "checking for $ac_word... " >&6; }
2632: if ${ac_cv_prog_AWK+:} false; then :
2633: $as_echo_n "(cached) " >&6
1.1 paf 2634: else
1.5 moko 2635: if test -n "$AWK"; then
2636: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.2 paf 2637: else
2638: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639: for as_dir in $PATH
2640: do
2641: IFS=$as_save_IFS
2642: test -z "$as_dir" && as_dir=.
1.5 moko 2643: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 2644: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 2645: ac_cv_prog_AWK="$ac_prog"
2646: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 2647: break 2
2648: fi
2649: done
1.5 moko 2650: done
2651: IFS=$as_save_IFS
1.2 paf 2652:
2653: fi
2654: fi
1.5 moko 2655: AWK=$ac_cv_prog_AWK
2656: if test -n "$AWK"; then
2657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2658: $as_echo "$AWK" >&6; }
1.2 paf 2659: else
1.5 moko 2660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661: $as_echo "no" >&6; }
1.1 paf 2662: fi
2663:
1.5 moko 2664:
2665: test -n "$AWK" && break
1.2 paf 2666: done
2667:
1.5 moko 2668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2669: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2670: set x ${MAKE-make}
2671: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2672: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2673: $as_echo_n "(cached) " >&6
2674: else
2675: cat >conftest.make <<\_ACEOF
2676: SHELL = /bin/sh
2677: all:
2678: @echo '@@@%%%=$(MAKE)=@@@%%%'
2679: _ACEOF
2680: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2681: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2682: *@@@%%%=?*=@@@%%%*)
2683: eval ac_cv_prog_make_${ac_make}_set=yes;;
2684: *)
2685: eval ac_cv_prog_make_${ac_make}_set=no;;
2686: esac
2687: rm -f conftest.make
1.1 paf 2688: fi
1.5 moko 2689: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2691: $as_echo "yes" >&6; }
2692: SET_MAKE=
1.1 paf 2693: else
1.5 moko 2694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695: $as_echo "no" >&6; }
2696: SET_MAKE="MAKE=${MAKE-make}"
1.1 paf 2697: fi
2698:
1.5 moko 2699: rm -rf .tst 2>/dev/null
2700: mkdir .tst 2>/dev/null
2701: if test -d .tst; then
2702: am__leading_dot=.
2703: else
2704: am__leading_dot=_
2705: fi
2706: rmdir .tst 2>/dev/null
2707:
1.8 moko 2708: # Check whether --enable-silent-rules was given.
2709: if test "${enable_silent_rules+set}" = set; then :
2710: enableval=$enable_silent_rules;
2711: fi
2712:
2713: case $enable_silent_rules in # (((
2714: yes) AM_DEFAULT_VERBOSITY=0;;
2715: no) AM_DEFAULT_VERBOSITY=1;;
2716: *) AM_DEFAULT_VERBOSITY=1;;
2717: esac
2718: am_make=${MAKE-make}
2719: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2720: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2721: if ${am_cv_make_support_nested_variables+:} false; then :
2722: $as_echo_n "(cached) " >&6
2723: else
2724: if $as_echo 'TRUE=$(BAR$(V))
2725: BAR0=false
2726: BAR1=true
2727: V=1
2728: am__doit:
2729: @$(TRUE)
2730: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2731: am_cv_make_support_nested_variables=yes
2732: else
2733: am_cv_make_support_nested_variables=no
2734: fi
2735: fi
2736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2737: $as_echo "$am_cv_make_support_nested_variables" >&6; }
2738: if test $am_cv_make_support_nested_variables = yes; then
2739: AM_V='$(V)'
2740: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2741: else
2742: AM_V=$AM_DEFAULT_VERBOSITY
2743: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2744: fi
2745: AM_BACKSLASH='\'
2746:
1.5 moko 2747: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2748: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2749: # is not polluted with repeated "-I."
2750: am__isrc=' -I$(srcdir)'
2751: # test to see if srcdir already configured
2752: if test -f $srcdir/config.status; then
2753: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2754: fi
1.1 paf 2755: fi
2756:
1.5 moko 2757: # test whether we have cygpath
2758: if test -z "$CYGPATH_W"; then
2759: if (cygpath --version) >/dev/null 2>/dev/null; then
2760: CYGPATH_W='cygpath -w'
2761: else
2762: CYGPATH_W=echo
2763: fi
1.1 paf 2764: fi
1.5 moko 2765:
2766:
2767: # Define the identity of the package.
2768: PACKAGE='libltdl'
2769: VERSION='2.4.2'
2770:
2771:
2772: cat >>confdefs.h <<_ACEOF
2773: #define PACKAGE "$PACKAGE"
2774: _ACEOF
2775:
2776:
2777: cat >>confdefs.h <<_ACEOF
2778: #define VERSION "$VERSION"
2779: _ACEOF
2780:
2781: # Some tools Automake needs.
2782:
2783: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2784:
2785:
2786: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2787:
2788:
2789: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2790:
2791:
2792: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2793:
2794:
2795: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.2 paf 2796:
1.8 moko 2797: # For better backward compatibility. To be removed once Automake 1.9.x
2798: # dies out for good. For more background, see:
2799: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2800: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2801: mkdir_p='$(MKDIR_P)'
2802:
2803: # We need awk for the "check" target (and possibly the TAP driver). The
2804: # system "awk" is bad on some platforms.
2805: # Always define AMTAR for backward compatibility. Yes, it's still used
2806: # in the wild :-( We should find a proper way to deprecate it ...
2807: AMTAR='$${TAR-tar}'
1.5 moko 2808:
2809:
1.8 moko 2810: # We'll loop over all known methods to create a tar archive until one works.
2811: _am_tools='gnutar pax cpio none'
1.5 moko 2812:
1.8 moko 2813: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1.5 moko 2814:
2815:
2816:
2817:
2818:
2819:
1.8 moko 2820: # POSIX will say in a future version that running "rm -f" with no argument
2821: # is OK; and we want to be able to make that assumption in our Makefile
2822: # recipes. So use an aggressive probe to check that the usage we want is
2823: # actually supported "in the wild" to an acceptable degree.
2824: # See automake bug#10828.
2825: # To make any issue more visible, cause the running configure to be aborted
2826: # by default if the 'rm' program in use doesn't match our expectations; the
2827: # user can still override this though.
2828: if rm -f && rm -fr && rm -rf; then : OK; else
2829: cat >&2 <<'END'
2830: Oops!
2831:
2832: Your 'rm' program seems unable to run without file operands specified
2833: on the command line, even when the '-f' option is present. This is contrary
2834: to the behaviour of most rm programs out there, and not conforming with
2835: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2836:
2837: Please tell bug-automake@gnu.org about your system, including the value
2838: of your $PATH and any error possibly output before this message. This
2839: can help us improve future automake versions.
2840:
2841: END
2842: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2843: echo 'Configuration will proceed anyway, since you have set the' >&2
2844: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2845: echo >&2
2846: else
2847: cat >&2 <<'END'
2848: Aborting the configuration process, to ensure you take notice of the issue.
2849:
2850: You can download and install GNU coreutils to get an 'rm' implementation
2851: that behaves properly: <https://www.gnu.org/software/coreutils/>.
2852:
2853: If you want to complete the configuration process using your problematic
2854: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2855: to "yes", and re-run configure.
2856:
2857: END
2858: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2859: fi
2860: fi
2861:
2862: # Check whether --enable-silent-rules was given.
2863: if test "${enable_silent_rules+set}" = set; then :
2864: enableval=$enable_silent_rules;
2865: fi
2866:
2867: case $enable_silent_rules in # (((
2868: yes) AM_DEFAULT_VERBOSITY=0;;
2869: no) AM_DEFAULT_VERBOSITY=1;;
2870: *) AM_DEFAULT_VERBOSITY=0;;
2871: esac
2872: am_make=${MAKE-make}
2873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2874: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2875: if ${am_cv_make_support_nested_variables+:} false; then :
2876: $as_echo_n "(cached) " >&6
2877: else
2878: if $as_echo 'TRUE=$(BAR$(V))
2879: BAR0=false
2880: BAR1=true
2881: V=1
2882: am__doit:
2883: @$(TRUE)
2884: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2885: am_cv_make_support_nested_variables=yes
2886: else
2887: am_cv_make_support_nested_variables=no
2888: fi
2889: fi
2890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2891: $as_echo "$am_cv_make_support_nested_variables" >&6; }
2892: if test $am_cv_make_support_nested_variables = yes; then
2893: AM_V='$(V)'
2894: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2895: else
2896: AM_V=$AM_DEFAULT_VERBOSITY
2897: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2898: fi
2899: AM_BACKSLASH='\'
2900:
2901:
2902:
1.5 moko 2903: ## ------------------------------- ##
2904: ## Libtool specific configuration. ##
2905: ## ------------------------------- ##
2906: pkgdatadir='${datadir}'"/${PACKAGE}"
2907:
2908:
2909: ## ----------------------- ##
2910: ## Libtool initialisation. ##
2911: ## ----------------------- ##
2912: case `pwd` in
2913: *\ * | *\ *)
2914: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2915: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2916: esac
2917:
2918:
2919:
2920: macro_version='2.4.2'
2921: macro_revision='1.3337'
2922:
2923:
2924:
2925:
2926:
2927:
2928:
2929:
2930:
2931:
2932:
2933:
1.2 paf 2934:
1.5 moko 2935: ltmain="$ac_aux_dir/ltmain.sh"
2936:
2937: # Make sure we can run config.sub.
2938: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2939: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2940:
2941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2942: $as_echo_n "checking build system type... " >&6; }
2943: if ${ac_cv_build+:} false; then :
2944: $as_echo_n "(cached) " >&6
2945: else
2946: ac_build_alias=$build_alias
2947: test "x$ac_build_alias" = x &&
2948: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2949: test "x$ac_build_alias" = x &&
2950: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2951: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2952: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2953:
2954: fi
2955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2956: $as_echo "$ac_cv_build" >&6; }
2957: case $ac_cv_build in
2958: *-*-*) ;;
2959: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2960: esac
2961: build=$ac_cv_build
2962: ac_save_IFS=$IFS; IFS='-'
2963: set x $ac_cv_build
2964: shift
2965: build_cpu=$1
2966: build_vendor=$2
2967: shift; shift
2968: # Remember, the first character of IFS is used to create $*,
2969: # except with old shells:
2970: build_os=$*
2971: IFS=$ac_save_IFS
2972: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2973:
2974:
2975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2976: $as_echo_n "checking host system type... " >&6; }
2977: if ${ac_cv_host+:} false; then :
2978: $as_echo_n "(cached) " >&6
2979: else
2980: if test "x$host_alias" = x; then
2981: ac_cv_host=$ac_cv_build
2982: else
2983: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2984: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2985: fi
2986:
2987: fi
2988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2989: $as_echo "$ac_cv_host" >&6; }
2990: case $ac_cv_host in
2991: *-*-*) ;;
2992: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2993: esac
2994: host=$ac_cv_host
2995: ac_save_IFS=$IFS; IFS='-'
2996: set x $ac_cv_host
2997: shift
2998: host_cpu=$1
2999: host_vendor=$2
3000: shift; shift
3001: # Remember, the first character of IFS is used to create $*,
3002: # except with old shells:
3003: host_os=$*
3004: IFS=$ac_save_IFS
3005: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3006:
3007:
3008: # Backslashify metacharacters that are still active within
3009: # double-quoted strings.
3010: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3011:
3012: # Same as above, but do not quote variable references.
3013: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3014:
3015: # Sed substitution to delay expansion of an escaped shell variable in a
3016: # double_quote_subst'ed string.
3017: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.2 paf 3018:
1.5 moko 3019: # Sed substitution to delay expansion of an escaped single quote.
3020: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.2 paf 3021:
1.5 moko 3022: # Sed substitution to avoid accidental globbing in evaled expressions
3023: no_glob_subst='s/\*/\\\*/g'
1.2 paf 3024:
1.5 moko 3025: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3026: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3027: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3028:
3029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3030: $as_echo_n "checking how to print strings... " >&6; }
3031: # Test print first, because it will be a builtin if present.
3032: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3033: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3034: ECHO='print -r --'
3035: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3036: ECHO='printf %s\n'
1.1 paf 3037: else
1.5 moko 3038: # Use this function as a fallback that always works.
3039: func_fallback_echo ()
3040: {
3041: eval 'cat <<_LTECHO_EOF
3042: $1
3043: _LTECHO_EOF'
3044: }
3045: ECHO='func_fallback_echo'
3046: fi
3047:
3048: # func_echo_all arg...
3049: # Invoke $ECHO with all args, space-separated.
3050: func_echo_all ()
3051: {
3052: $ECHO ""
3053: }
3054:
3055: case "$ECHO" in
3056: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3057: $as_echo "printf" >&6; } ;;
3058: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3059: $as_echo "print -r" >&6; } ;;
3060: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3061: $as_echo "cat" >&6; } ;;
3062: esac
3063:
3064:
3065:
3066:
3067:
3068:
3069:
1.1 paf 3070:
3071:
1.5 moko 3072:
3073:
3074:
3075:
3076:
3077: DEPDIR="${am__leading_dot}deps"
3078:
3079: ac_config_commands="$ac_config_commands depfiles"
3080:
1.8 moko 3081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3082: $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3083: cat > confinc.mk << 'END'
1.5 moko 3084: am__doit:
1.8 moko 3085: @echo this is the am__doit target >confinc.out
1.5 moko 3086: .PHONY: am__doit
3087: END
3088: am__include="#"
3089: am__quote=
1.8 moko 3090: # BSD make does it like this.
3091: echo '.include "confinc.mk" # ignored' > confmf.BSD
3092: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3093: echo 'include confinc.mk # ignored' > confmf.GNU
3094: _am_result=no
3095: for s in GNU BSD; do
3096: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3097: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3098: ac_status=$?
3099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100: (exit $ac_status); }
3101: case $?:`cat confinc.out 2>/dev/null` in #(
3102: '0:this is the am__doit target') :
3103: case $s in #(
3104: BSD) :
3105: am__include='.include' am__quote='"' ;; #(
3106: *) :
3107: am__include='include' am__quote='' ;;
3108: esac ;; #(
3109: *) :
1.5 moko 3110: ;;
1.8 moko 3111: esac
3112: if test "$am__include" != "#"; then
3113: _am_result="yes ($s style)"
3114: break
3115: fi
3116: done
3117: rm -f confinc.* confmf.*
3118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3119: $as_echo "${_am_result}" >&6; }
1.5 moko 3120:
3121: # Check whether --enable-dependency-tracking was given.
3122: if test "${enable_dependency_tracking+set}" = set; then :
3123: enableval=$enable_dependency_tracking;
3124: fi
3125:
3126: if test "x$enable_dependency_tracking" != xno; then
3127: am_depcomp="$ac_aux_dir/depcomp"
3128: AMDEPBACKSLASH='\'
1.8 moko 3129: am__nodep='_no'
1.5 moko 3130: fi
3131: if test "x$enable_dependency_tracking" != xno; then
3132: AMDEP_TRUE=
3133: AMDEP_FALSE='#'
3134: else
3135: AMDEP_TRUE='#'
3136: AMDEP_FALSE=
3137: fi
1.1 paf 3138:
1.2 paf 3139:
3140: ac_ext=c
3141: ac_cpp='$CPP $CPPFLAGS'
3142: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145: if test -n "$ac_tool_prefix"; then
3146: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3147: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.5 moko 3148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149: $as_echo_n "checking for $ac_word... " >&6; }
3150: if ${ac_cv_prog_CC+:} false; then :
3151: $as_echo_n "(cached) " >&6
1.2 paf 3152: else
3153: if test -n "$CC"; then
3154: ac_cv_prog_CC="$CC" # Let the user override the test.
3155: else
3156: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157: for as_dir in $PATH
3158: do
3159: IFS=$as_save_IFS
3160: test -z "$as_dir" && as_dir=.
1.5 moko 3161: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 3162: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3163: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.5 moko 3164: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3165: break 2
3166: fi
3167: done
1.5 moko 3168: done
3169: IFS=$as_save_IFS
1.2 paf 3170:
3171: fi
3172: fi
3173: CC=$ac_cv_prog_CC
3174: if test -n "$CC"; then
1.5 moko 3175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176: $as_echo "$CC" >&6; }
1.2 paf 3177: else
1.5 moko 3178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179: $as_echo "no" >&6; }
1.2 paf 3180: fi
3181:
1.5 moko 3182:
1.2 paf 3183: fi
3184: if test -z "$ac_cv_prog_CC"; then
3185: ac_ct_CC=$CC
3186: # Extract the first word of "gcc", so it can be a program name with args.
1.1 paf 3187: set dummy gcc; ac_word=$2
1.5 moko 3188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189: $as_echo_n "checking for $ac_word... " >&6; }
3190: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3191: $as_echo_n "(cached) " >&6
1.2 paf 3192: else
3193: if test -n "$ac_ct_CC"; then
3194: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195: else
3196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197: for as_dir in $PATH
3198: do
3199: IFS=$as_save_IFS
3200: test -z "$as_dir" && as_dir=.
1.5 moko 3201: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 3202: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3203: ac_cv_prog_ac_ct_CC="gcc"
1.5 moko 3204: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3205: break 2
3206: fi
3207: done
1.5 moko 3208: done
3209: IFS=$as_save_IFS
1.2 paf 3210:
3211: fi
3212: fi
3213: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214: if test -n "$ac_ct_CC"; then
1.5 moko 3215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216: $as_echo "$ac_ct_CC" >&6; }
1.2 paf 3217: else
1.5 moko 3218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219: $as_echo "no" >&6; }
1.2 paf 3220: fi
3221:
1.5 moko 3222: if test "x$ac_ct_CC" = x; then
3223: CC=""
3224: else
3225: case $cross_compiling:$ac_tool_warned in
3226: yes:)
3227: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229: ac_tool_warned=yes ;;
3230: esac
3231: CC=$ac_ct_CC
3232: fi
1.2 paf 3233: else
3234: CC="$ac_cv_prog_CC"
3235: fi
3236:
3237: if test -z "$CC"; then
1.5 moko 3238: if test -n "$ac_tool_prefix"; then
3239: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.2 paf 3240: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.5 moko 3241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242: $as_echo_n "checking for $ac_word... " >&6; }
3243: if ${ac_cv_prog_CC+:} false; then :
3244: $as_echo_n "(cached) " >&6
1.1 paf 3245: else
3246: if test -n "$CC"; then
3247: ac_cv_prog_CC="$CC" # Let the user override the test.
3248: else
1.2 paf 3249: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250: for as_dir in $PATH
3251: do
3252: IFS=$as_save_IFS
3253: test -z "$as_dir" && as_dir=.
1.5 moko 3254: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 3255: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3256: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.5 moko 3257: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3258: break 2
3259: fi
3260: done
1.5 moko 3261: done
3262: IFS=$as_save_IFS
1.2 paf 3263:
1.1 paf 3264: fi
3265: fi
1.2 paf 3266: CC=$ac_cv_prog_CC
1.1 paf 3267: if test -n "$CC"; then
1.5 moko 3268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269: $as_echo "$CC" >&6; }
1.1 paf 3270: else
1.5 moko 3271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272: $as_echo "no" >&6; }
1.2 paf 3273: fi
3274:
1.5 moko 3275:
3276: fi
1.1 paf 3277: fi
1.5 moko 3278: if test -z "$CC"; then
1.2 paf 3279: # Extract the first word of "cc", so it can be a program name with args.
3280: set dummy cc; ac_word=$2
1.5 moko 3281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282: $as_echo_n "checking for $ac_word... " >&6; }
3283: if ${ac_cv_prog_CC+:} false; then :
3284: $as_echo_n "(cached) " >&6
1.2 paf 3285: else
1.5 moko 3286: if test -n "$CC"; then
3287: ac_cv_prog_CC="$CC" # Let the user override the test.
1.2 paf 3288: else
1.5 moko 3289: ac_prog_rejected=no
1.2 paf 3290: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291: for as_dir in $PATH
3292: do
3293: IFS=$as_save_IFS
3294: test -z "$as_dir" && as_dir=.
1.5 moko 3295: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 3296: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 3297: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3298: ac_prog_rejected=yes
3299: continue
3300: fi
3301: ac_cv_prog_CC="cc"
3302: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3303: break 2
3304: fi
3305: done
1.5 moko 3306: done
3307: IFS=$as_save_IFS
1.1 paf 3308:
1.5 moko 3309: if test $ac_prog_rejected = yes; then
3310: # We found a bogon in the path, so make sure we never use it.
3311: set dummy $ac_cv_prog_CC
3312: shift
3313: if test $# != 0; then
3314: # We chose a different compiler from the bogus one.
3315: # However, it has the same basename, so the bogon will be chosen
3316: # first if we set CC to just the basename; use the full file name.
3317: shift
3318: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3319: fi
1.1 paf 3320: fi
3321: fi
3322: fi
1.2 paf 3323: CC=$ac_cv_prog_CC
1.1 paf 3324: if test -n "$CC"; then
1.5 moko 3325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326: $as_echo "$CC" >&6; }
1.1 paf 3327: else
1.5 moko 3328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329: $as_echo "no" >&6; }
1.1 paf 3330: fi
3331:
1.5 moko 3332:
1.2 paf 3333: fi
3334: if test -z "$CC"; then
3335: if test -n "$ac_tool_prefix"; then
1.5 moko 3336: for ac_prog in cl.exe
1.2 paf 3337: do
3338: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.5 moko 3340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341: $as_echo_n "checking for $ac_word... " >&6; }
3342: if ${ac_cv_prog_CC+:} false; then :
3343: $as_echo_n "(cached) " >&6
1.1 paf 3344: else
3345: if test -n "$CC"; then
3346: ac_cv_prog_CC="$CC" # Let the user override the test.
3347: else
1.2 paf 3348: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349: for as_dir in $PATH
3350: do
3351: IFS=$as_save_IFS
3352: test -z "$as_dir" && as_dir=.
1.5 moko 3353: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 3354: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3355: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.5 moko 3356: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3357: break 2
3358: fi
3359: done
1.5 moko 3360: done
3361: IFS=$as_save_IFS
1.2 paf 3362:
1.1 paf 3363: fi
3364: fi
1.2 paf 3365: CC=$ac_cv_prog_CC
1.1 paf 3366: if test -n "$CC"; then
1.5 moko 3367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368: $as_echo "$CC" >&6; }
1.1 paf 3369: else
1.5 moko 3370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371: $as_echo "no" >&6; }
1.2 paf 3372: fi
3373:
1.5 moko 3374:
1.2 paf 3375: test -n "$CC" && break
3376: done
1.1 paf 3377: fi
1.2 paf 3378: if test -z "$CC"; then
3379: ac_ct_CC=$CC
1.5 moko 3380: for ac_prog in cl.exe
1.2 paf 3381: do
3382: # Extract the first word of "$ac_prog", so it can be a program name with args.
3383: set dummy $ac_prog; ac_word=$2
1.5 moko 3384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385: $as_echo_n "checking for $ac_word... " >&6; }
3386: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3387: $as_echo_n "(cached) " >&6
1.2 paf 3388: else
3389: if test -n "$ac_ct_CC"; then
3390: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391: else
3392: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393: for as_dir in $PATH
3394: do
3395: IFS=$as_save_IFS
3396: test -z "$as_dir" && as_dir=.
1.5 moko 3397: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 3398: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3399: ac_cv_prog_ac_ct_CC="$ac_prog"
1.5 moko 3400: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3401: break 2
1.1 paf 3402: fi
1.2 paf 3403: done
1.5 moko 3404: done
3405: IFS=$as_save_IFS
1.2 paf 3406:
3407: fi
3408: fi
3409: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410: if test -n "$ac_ct_CC"; then
1.5 moko 3411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412: $as_echo "$ac_ct_CC" >&6; }
1.2 paf 3413: else
1.5 moko 3414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415: $as_echo "no" >&6; }
1.2 paf 3416: fi
3417:
1.5 moko 3418:
1.2 paf 3419: test -n "$ac_ct_CC" && break
3420: done
3421:
1.5 moko 3422: if test "x$ac_ct_CC" = x; then
3423: CC=""
3424: else
3425: case $cross_compiling:$ac_tool_warned in
3426: yes:)
3427: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3428: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3429: ac_tool_warned=yes ;;
3430: esac
3431: CC=$ac_ct_CC
3432: fi
1.2 paf 3433: fi
3434:
1.1 paf 3435: fi
3436:
3437:
1.5 moko 3438: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440: as_fn_error $? "no acceptable C compiler found in \$PATH
3441: See \`config.log' for more details" "$LINENO" 5; }
1.2 paf 3442:
3443: # Provide some information about the compiler.
1.5 moko 3444: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3445: set X $ac_compile
3446: ac_compiler=$2
3447: for ac_option in --version -v -V -qversion; do
3448: { { ac_try="$ac_compiler $ac_option >&5"
3449: case "(($ac_try" in
3450: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451: *) ac_try_echo=$ac_try;;
3452: esac
3453: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454: $as_echo "$ac_try_echo"; } >&5
3455: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.2 paf 3456: ac_status=$?
1.5 moko 3457: if test -s conftest.err; then
3458: sed '10a\
3459: ... rest of stderr output deleted ...
3460: 10q' conftest.err >conftest.er1
3461: cat conftest.er1 >&5
3462: fi
3463: rm -f conftest.er1 conftest.err
3464: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465: test $ac_status = 0; }
3466: done
1.2 paf 3467:
1.5 moko 3468: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3469: /* end confdefs.h. */
1.1 paf 3470:
1.2 paf 3471: int
3472: main ()
3473: {
1.1 paf 3474:
1.2 paf 3475: ;
3476: return 0;
3477: }
3478: _ACEOF
3479: ac_clean_files_save=$ac_clean_files
1.5 moko 3480: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.2 paf 3481: # Try to create an executable without -o first, disregard a.out.
3482: # It will help us diagnose broken compilers, and finding out an intuition
3483: # of exeext.
1.5 moko 3484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3485: $as_echo_n "checking whether the C compiler works... " >&6; }
3486: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3487:
3488: # The possible output files:
3489: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3490:
3491: ac_rmfiles=
3492: for ac_file in $ac_files
3493: do
3494: case $ac_file in
3495: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3496: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3497: esac
3498: done
3499: rm -f $ac_rmfiles
3500:
3501: if { { ac_try="$ac_link_default"
3502: case "(($ac_try" in
3503: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504: *) ac_try_echo=$ac_try;;
3505: esac
3506: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507: $as_echo "$ac_try_echo"; } >&5
3508: (eval "$ac_link_default") 2>&5
3509: ac_status=$?
3510: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511: test $ac_status = 0; }; then :
3512: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3513: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3514: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3515: # so that the user can short-circuit this test for compilers unknown to
3516: # Autoconf.
3517: for ac_file in $ac_files ''
1.2 paf 3518: do
3519: test -f "$ac_file" || continue
3520: case $ac_file in
1.5 moko 3521: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3522: ;;
1.2 paf 3523: [ab].out )
1.5 moko 3524: # We found the default executable, but exeext='' is most
3525: # certainly right.
3526: break;;
1.2 paf 3527: *.* )
1.5 moko 3528: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3529: then :; else
3530: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531: fi
3532: # We set ac_cv_exeext here because the later test for it is not
3533: # safe: cross compilers may not add the suffix if given an `-o'
3534: # argument, so we may need to know it at that point already.
3535: # Even if this section looks crufty: it has the advantage of
3536: # actually working.
3537: break;;
1.2 paf 3538: * )
1.5 moko 3539: break;;
1.2 paf 3540: esac
3541: done
1.5 moko 3542: test "$ac_cv_exeext" = no && ac_cv_exeext=
3543:
1.2 paf 3544: else
1.5 moko 3545: ac_file=''
3546: fi
3547: if test -z "$ac_file"; then :
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549: $as_echo "no" >&6; }
3550: $as_echo "$as_me: failed program was:" >&5
1.2 paf 3551: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 3552:
1.5 moko 3553: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555: as_fn_error 77 "C compiler cannot create executables
3556: See \`config.log' for more details" "$LINENO" 5; }
3557: else
3558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559: $as_echo "yes" >&6; }
1.2 paf 3560: fi
1.5 moko 3561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3562: $as_echo_n "checking for C compiler default output file name... " >&6; }
3563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3564: $as_echo "$ac_file" >&6; }
1.2 paf 3565: ac_exeext=$ac_cv_exeext
3566:
1.5 moko 3567: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.2 paf 3568: ac_clean_files=$ac_clean_files_save
1.5 moko 3569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3570: $as_echo_n "checking for suffix of executables... " >&6; }
3571: if { { ac_try="$ac_link"
3572: case "(($ac_try" in
3573: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574: *) ac_try_echo=$ac_try;;
3575: esac
3576: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577: $as_echo "$ac_try_echo"; } >&5
3578: (eval "$ac_link") 2>&5
1.2 paf 3579: ac_status=$?
1.5 moko 3580: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581: test $ac_status = 0; }; then :
1.2 paf 3582: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3583: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3584: # work properly (i.e., refer to `conftest.exe'), while it won't with
3585: # `rm'.
3586: for ac_file in conftest.exe conftest conftest.*; do
3587: test -f "$ac_file" || continue
3588: case $ac_file in
1.5 moko 3589: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.2 paf 3590: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.5 moko 3591: break;;
1.2 paf 3592: * ) break;;
3593: esac
3594: done
1.1 paf 3595: else
1.5 moko 3596: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3599: See \`config.log' for more details" "$LINENO" 5; }
3600: fi
3601: rm -f conftest conftest$ac_cv_exeext
3602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3603: $as_echo "$ac_cv_exeext" >&6; }
1.2 paf 3604:
3605: rm -f conftest.$ac_ext
3606: EXEEXT=$ac_cv_exeext
3607: ac_exeext=$EXEEXT
1.5 moko 3608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609: /* end confdefs.h. */
3610: #include <stdio.h>
3611: int
3612: main ()
3613: {
3614: FILE *f = fopen ("conftest.out", "w");
3615: return ferror (f) || fclose (f) != 0;
3616:
3617: ;
3618: return 0;
3619: }
3620: _ACEOF
3621: ac_clean_files="$ac_clean_files conftest.out"
3622: # Check that the compiler produces executables we can run. If not, either
3623: # the compiler is broken, or we cross compile.
3624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625: $as_echo_n "checking whether we are cross compiling... " >&6; }
3626: if test "$cross_compiling" != yes; then
3627: { { ac_try="$ac_link"
3628: case "(($ac_try" in
3629: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630: *) ac_try_echo=$ac_try;;
3631: esac
3632: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633: $as_echo "$ac_try_echo"; } >&5
3634: (eval "$ac_link") 2>&5
3635: ac_status=$?
3636: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637: test $ac_status = 0; }
3638: if { ac_try='./conftest$ac_cv_exeext'
3639: { { case "(($ac_try" in
3640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641: *) ac_try_echo=$ac_try;;
3642: esac
3643: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644: $as_echo "$ac_try_echo"; } >&5
3645: (eval "$ac_try") 2>&5
3646: ac_status=$?
3647: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648: test $ac_status = 0; }; }; then
3649: cross_compiling=no
3650: else
3651: if test "$cross_compiling" = maybe; then
3652: cross_compiling=yes
3653: else
3654: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656: as_fn_error $? "cannot run C compiled programs.
3657: If you meant to cross compile, use \`--host'.
3658: See \`config.log' for more details" "$LINENO" 5; }
3659: fi
3660: fi
3661: fi
3662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3663: $as_echo "$cross_compiling" >&6; }
3664:
3665: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3666: ac_clean_files=$ac_clean_files_save
3667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3668: $as_echo_n "checking for suffix of object files... " >&6; }
3669: if ${ac_cv_objext+:} false; then :
3670: $as_echo_n "(cached) " >&6
1.2 paf 3671: else
1.5 moko 3672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3673: /* end confdefs.h. */
1.1 paf 3674:
1.2 paf 3675: int
3676: main ()
3677: {
1.1 paf 3678:
1.2 paf 3679: ;
3680: return 0;
3681: }
3682: _ACEOF
3683: rm -f conftest.o conftest.obj
1.5 moko 3684: if { { ac_try="$ac_compile"
3685: case "(($ac_try" in
3686: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687: *) ac_try_echo=$ac_try;;
3688: esac
3689: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690: $as_echo "$ac_try_echo"; } >&5
3691: (eval "$ac_compile") 2>&5
3692: ac_status=$?
3693: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694: test $ac_status = 0; }; then :
3695: for ac_file in conftest.o conftest.obj conftest.*; do
3696: test -f "$ac_file" || continue;
1.2 paf 3697: case $ac_file in
1.5 moko 3698: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.2 paf 3699: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700: break;;
3701: esac
3702: done
1.1 paf 3703: else
1.5 moko 3704: $as_echo "$as_me: failed program was:" >&5
1.2 paf 3705: sed 's/^/| /' conftest.$ac_ext >&5
3706:
1.5 moko 3707: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709: as_fn_error $? "cannot compute suffix of object files: cannot compile
3710: See \`config.log' for more details" "$LINENO" 5; }
1.2 paf 3711: fi
3712: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713: fi
1.5 moko 3714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715: $as_echo "$ac_cv_objext" >&6; }
1.2 paf 3716: OBJEXT=$ac_cv_objext
3717: ac_objext=$OBJEXT
1.5 moko 3718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3719: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3720: if ${ac_cv_c_compiler_gnu+:} false; then :
3721: $as_echo_n "(cached) " >&6
1.2 paf 3722: else
1.5 moko 3723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3724: /* end confdefs.h. */
3725:
3726: int
3727: main ()
3728: {
3729: #ifndef __GNUC__
3730: choke me
3731: #endif
3732:
3733: ;
3734: return 0;
3735: }
3736: _ACEOF
1.5 moko 3737: if ac_fn_c_try_compile "$LINENO"; then :
1.2 paf 3738: ac_compiler_gnu=yes
3739: else
1.5 moko 3740: ac_compiler_gnu=no
1.2 paf 3741: fi
1.5 moko 3742: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2 paf 3743: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3744:
3745: fi
1.5 moko 3746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3747: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3748: if test $ac_compiler_gnu = yes; then
3749: GCC=yes
3750: else
3751: GCC=
3752: fi
1.2 paf 3753: ac_test_CFLAGS=${CFLAGS+set}
3754: ac_save_CFLAGS=$CFLAGS
1.5 moko 3755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3756: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3757: if ${ac_cv_prog_cc_g+:} false; then :
3758: $as_echo_n "(cached) " >&6
3759: else
3760: ac_save_c_werror_flag=$ac_c_werror_flag
3761: ac_c_werror_flag=yes
3762: ac_cv_prog_cc_g=no
3763: CFLAGS="-g"
3764: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765: /* end confdefs.h. */
3766:
3767: int
3768: main ()
3769: {
3770:
3771: ;
3772: return 0;
3773: }
3774: _ACEOF
3775: if ac_fn_c_try_compile "$LINENO"; then :
3776: ac_cv_prog_cc_g=yes
1.2 paf 3777: else
1.5 moko 3778: CFLAGS=""
3779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780: /* end confdefs.h. */
3781:
3782: int
3783: main ()
3784: {
3785:
3786: ;
3787: return 0;
3788: }
1.2 paf 3789: _ACEOF
1.5 moko 3790: if ac_fn_c_try_compile "$LINENO"; then :
3791:
3792: else
3793: ac_c_werror_flag=$ac_save_c_werror_flag
3794: CFLAGS="-g"
3795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3796: /* end confdefs.h. */
3797:
3798: int
3799: main ()
3800: {
1.1 paf 3801:
1.2 paf 3802: ;
3803: return 0;
3804: }
3805: _ACEOF
1.5 moko 3806: if ac_fn_c_try_compile "$LINENO"; then :
1.1 paf 3807: ac_cv_prog_cc_g=yes
3808: fi
1.5 moko 3809: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810: fi
3811: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812: fi
3813: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 paf 3815: fi
1.5 moko 3816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3817: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 paf 3818: if test "$ac_test_CFLAGS" = set; then
1.2 paf 3819: CFLAGS=$ac_save_CFLAGS
1.1 paf 3820: elif test $ac_cv_prog_cc_g = yes; then
3821: if test "$GCC" = yes; then
3822: CFLAGS="-g -O2"
3823: else
3824: CFLAGS="-g"
3825: fi
3826: else
3827: if test "$GCC" = yes; then
3828: CFLAGS="-O2"
3829: else
3830: CFLAGS=
3831: fi
3832: fi
1.5 moko 3833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3834: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835: if ${ac_cv_prog_cc_c89+:} false; then :
3836: $as_echo_n "(cached) " >&6
1.2 paf 3837: else
1.5 moko 3838: ac_cv_prog_cc_c89=no
1.2 paf 3839: ac_save_CC=$CC
1.5 moko 3840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3841: /* end confdefs.h. */
3842: #include <stdarg.h>
3843: #include <stdio.h>
1.7 moko 3844: struct stat;
1.2 paf 3845: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846: struct buf { int x; };
3847: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848: static char *e (p, i)
3849: char **p;
3850: int i;
3851: {
3852: return p[i];
3853: }
3854: static char *f (char * (*g) (char **, int), char **p, ...)
3855: {
3856: char *s;
3857: va_list v;
3858: va_start (v,p);
3859: s = g (p, va_arg (v,int));
3860: va_end (v);
3861: return s;
3862: }
1.5 moko 3863:
3864: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865: function prototypes and stuff, but not '\xHH' hex character constants.
3866: These don't provoke an error unfortunately, instead are silently treated
3867: as 'x'. The following induces an error, until -std is added to get
3868: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869: array size at least. It's necessary to write '\x00'==0 to get something
3870: that's true only with -std. */
3871: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3872:
3873: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874: inside strings and character constants. */
3875: #define FOO(x) 'x'
3876: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3877:
1.2 paf 3878: int test (int i, double x);
3879: struct s1 {int (*f) (int a);};
3880: struct s2 {int (*f) (double a);};
3881: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882: int argc;
3883: char **argv;
3884: int
3885: main ()
3886: {
3887: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3888: ;
3889: return 0;
3890: }
3891: _ACEOF
1.5 moko 3892: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.2 paf 3894: do
3895: CC="$ac_save_CC $ac_arg"
1.5 moko 3896: if ac_fn_c_try_compile "$LINENO"; then :
3897: ac_cv_prog_cc_c89=$ac_arg
1.2 paf 3898: fi
1.5 moko 3899: rm -f core conftest.err conftest.$ac_objext
3900: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.2 paf 3901: done
1.5 moko 3902: rm -f conftest.$ac_ext
1.2 paf 3903: CC=$ac_save_CC
1.1 paf 3904:
1.2 paf 3905: fi
1.5 moko 3906: # AC_CACHE_VAL
3907: case "x$ac_cv_prog_cc_c89" in
3908: x)
3909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3910: $as_echo "none needed" >&6; } ;;
3911: xno)
3912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3913: $as_echo "unsupported" >&6; } ;;
1.2 paf 3914: *)
1.5 moko 3915: CC="$CC $ac_cv_prog_cc_c89"
3916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3917: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3918: esac
3919: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.2 paf 3920:
3921: fi
3922:
3923: ac_ext=c
3924: ac_cpp='$CPP $CPPFLAGS'
3925: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928:
1.8 moko 3929: ac_ext=c
3930: ac_cpp='$CPP $CPPFLAGS'
3931: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3935: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3936: if ${am_cv_prog_cc_c_o+:} false; then :
3937: $as_echo_n "(cached) " >&6
3938: else
3939: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940: /* end confdefs.h. */
3941:
3942: int
3943: main ()
3944: {
3945:
3946: ;
3947: return 0;
3948: }
3949: _ACEOF
3950: # Make sure it works both with $CC and with simple cc.
3951: # Following AC_PROG_CC_C_O, we do the test twice because some
3952: # compilers refuse to overwrite an existing .o file with -o,
3953: # though they will create one.
3954: am_cv_prog_cc_c_o=yes
3955: for am_i in 1 2; do
3956: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3957: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3958: ac_status=$?
3959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960: (exit $ac_status); } \
3961: && test -f conftest2.$ac_objext; then
3962: : OK
3963: else
3964: am_cv_prog_cc_c_o=no
3965: break
3966: fi
3967: done
3968: rm -f core conftest*
3969: unset am_i
3970: fi
3971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3972: $as_echo "$am_cv_prog_cc_c_o" >&6; }
3973: if test "$am_cv_prog_cc_c_o" != yes; then
3974: # Losing compiler, so override with the script.
3975: # FIXME: It is wrong to rewrite CC.
3976: # But if we don't then we get into trouble of one sort or another.
3977: # A longer-term fix would be to have automake use am__CC in this case,
3978: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3979: CC="$am_aux_dir/compile $CC"
3980: fi
3981: ac_ext=c
3982: ac_cpp='$CPP $CPPFLAGS'
3983: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986:
3987:
1.5 moko 3988: depcc="$CC" am_compiler_list=
1.2 paf 3989:
1.5 moko 3990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3991: $as_echo_n "checking dependency style of $depcc... " >&6; }
3992: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3993: $as_echo_n "(cached) " >&6
3994: else
3995: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3996: # We make a subdir and do the tests there. Otherwise we can end up
3997: # making bogus files that we don't know about and never remove. For
3998: # instance it was reported that on HP-UX the gcc test will end up
1.8 moko 3999: # making a dummy file named 'D' -- because '-MD' means "put the output
4000: # in D".
4001: rm -rf conftest.dir
1.5 moko 4002: mkdir conftest.dir
4003: # Copy depcomp to subdir because otherwise we won't find it if we're
4004: # using a relative directory.
4005: cp "$am_depcomp" conftest.dir
4006: cd conftest.dir
4007: # We will build objects and dependencies in a subdirectory because
4008: # it helps to detect inapplicable dependency modes. For instance
4009: # both Tru64's cc and ICC support -MD to output dependencies as a
4010: # side effect of compilation, but ICC will put the dependencies in
4011: # the current directory while Tru64 will put them in the object
4012: # directory.
4013: mkdir sub
1.2 paf 4014:
1.5 moko 4015: am_cv_CC_dependencies_compiler_type=none
4016: if test "$am_compiler_list" = ""; then
1.2 paf 4017: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4018: fi
1.5 moko 4019: am__universal=false
4020: case " $depcc " in #(
4021: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4022: esac
4023:
1.2 paf 4024: for depmode in $am_compiler_list; do
1.5 moko 4025: # Setup a source with many dependencies, because some compilers
4026: # like to wrap large dependency lists on column 80 (with \), and
4027: # we should not choose a depcomp mode which is confused by this.
4028: #
1.2 paf 4029: # We need to recreate these files for each test, as the compiler may
4030: # overwrite some of them when testing with obscure command lines.
4031: # This happens at least with the AIX C compiler.
1.5 moko 4032: : > sub/conftest.c
4033: for i in 1 2 3 4 5 6; do
4034: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.8 moko 4035: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4036: # Solaris 10 /bin/sh.
4037: echo '/* dummy */' > sub/conftst$i.h
1.5 moko 4038: done
4039: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.2 paf 4040:
1.8 moko 4041: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.5 moko 4042: # mode. It turns out that the SunPro C++ compiler does not properly
1.8 moko 4043: # handle '-M -o', and we need to detect this. Also, some Intel
4044: # versions had trouble with output in subdirs.
1.5 moko 4045: am__obj=sub/conftest.${OBJEXT-o}
4046: am__minus_obj="-o $am__obj"
1.2 paf 4047: case $depmode in
1.5 moko 4048: gcc)
4049: # This depmode causes a compiler race in universal mode.
4050: test "$am__universal" = false || continue
4051: ;;
1.2 paf 4052: nosideeffect)
1.8 moko 4053: # After this tag, mechanisms are not by side-effect, so they'll
4054: # only be used when explicitly requested.
1.2 paf 4055: if test "x$enable_dependency_tracking" = xyes; then
4056: continue
4057: else
4058: break
4059: fi
4060: ;;
1.8 moko 4061: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4062: # This compiler won't grok '-c -o', but also, the minuso test has
1.5 moko 4063: # not run yet. These depmodes are late enough in the game, and
4064: # so weak that their functioning should not be impacted.
4065: am__obj=conftest.${OBJEXT-o}
4066: am__minus_obj=
4067: ;;
1.2 paf 4068: none) break ;;
4069: esac
4070: if depmode=$depmode \
1.5 moko 4071: source=sub/conftest.c object=$am__obj \
4072: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4073: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4074: >/dev/null 2>conftest.err &&
4075: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4076: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4077: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.2 paf 4078: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.5 moko 4079: # icc doesn't choke on unknown options, it will just issue warnings
4080: # or remarks (even with -Werror). So we grep stderr for any message
4081: # that says an option was ignored or not supported.
4082: # When given -MP, icc 7.0 and 7.1 complain thusly:
4083: # icc: Command line warning: ignoring option '-M'; no argument required
4084: # The diagnosis changed in icc 8.0:
4085: # icc: Command line remark: option '-MP' not supported
4086: if (grep 'ignoring option' conftest.err ||
4087: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4088: am_cv_CC_dependencies_compiler_type=$depmode
4089: break
4090: fi
1.2 paf 4091: fi
4092: done
4093:
4094: cd ..
4095: rm -rf conftest.dir
4096: else
4097: am_cv_CC_dependencies_compiler_type=none
4098: fi
4099:
4100: fi
1.5 moko 4101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4102: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.2 paf 4103: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4104:
1.5 moko 4105: if
1.2 paf 4106: test "x$enable_dependency_tracking" != xno \
4107: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4108: am__fastdepCC_TRUE=
4109: am__fastdepCC_FALSE='#'
4110: else
4111: am__fastdepCC_TRUE='#'
4112: am__fastdepCC_FALSE=
4113: fi
4114:
4115:
1.5 moko 4116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4117: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4118: if ${ac_cv_path_SED+:} false; then :
4119: $as_echo_n "(cached) " >&6
4120: else
4121: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4122: for ac_i in 1 2 3 4 5 6 7; do
4123: ac_script="$ac_script$as_nl$ac_script"
4124: done
4125: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4126: { ac_script=; unset ac_script;}
4127: if test -z "$SED"; then
4128: ac_path_SED_found=false
4129: # Loop through the user's path and test for each of PROGNAME-LIST
4130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131: for as_dir in $PATH
4132: do
4133: IFS=$as_save_IFS
4134: test -z "$as_dir" && as_dir=.
4135: for ac_prog in sed gsed; do
4136: for ac_exec_ext in '' $ac_executable_extensions; do
4137: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.7 moko 4138: as_fn_executable_p "$ac_path_SED" || continue
1.5 moko 4139: # Check for GNU ac_path_SED and select it if it is found.
4140: # Check for GNU $ac_path_SED
4141: case `"$ac_path_SED" --version 2>&1` in
4142: *GNU*)
4143: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4144: *)
4145: ac_count=0
4146: $as_echo_n 0123456789 >"conftest.in"
4147: while :
4148: do
4149: cat "conftest.in" "conftest.in" >"conftest.tmp"
4150: mv "conftest.tmp" "conftest.in"
4151: cp "conftest.in" "conftest.nl"
4152: $as_echo '' >> "conftest.nl"
4153: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155: as_fn_arith $ac_count + 1 && ac_count=$as_val
4156: if test $ac_count -gt ${ac_path_SED_max-0}; then
4157: # Best one so far, save it but keep looking for a better one
4158: ac_cv_path_SED="$ac_path_SED"
4159: ac_path_SED_max=$ac_count
4160: fi
4161: # 10*(2^10) chars as input seems more than enough
4162: test $ac_count -gt 10 && break
4163: done
4164: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165: esac
1.2 paf 4166:
1.5 moko 4167: $ac_path_SED_found && break 3
4168: done
4169: done
4170: done
4171: IFS=$as_save_IFS
4172: if test -z "$ac_cv_path_SED"; then
4173: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4174: fi
1.2 paf 4175: else
1.5 moko 4176: ac_cv_path_SED=$SED
4177: fi
4178:
4179: fi
4180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4181: $as_echo "$ac_cv_path_SED" >&6; }
4182: SED="$ac_cv_path_SED"
4183: rm -f conftest.sed
4184:
4185: test -z "$SED" && SED=sed
4186: Xsed="$SED -e 1s/^X//"
4187:
4188:
4189:
4190:
1.2 paf 4191:
4192:
4193:
4194:
1.1 paf 4195:
4196:
4197:
1.5 moko 4198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4199: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4200: if ${ac_cv_path_GREP+:} false; then :
4201: $as_echo_n "(cached) " >&6
1.1 paf 4202: else
1.5 moko 4203: if test -z "$GREP"; then
4204: ac_path_GREP_found=false
4205: # Loop through the user's path and test for each of PROGNAME-LIST
4206: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4208: do
4209: IFS=$as_save_IFS
4210: test -z "$as_dir" && as_dir=.
4211: for ac_prog in grep ggrep; do
4212: for ac_exec_ext in '' $ac_executable_extensions; do
4213: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.7 moko 4214: as_fn_executable_p "$ac_path_GREP" || continue
1.5 moko 4215: # Check for GNU ac_path_GREP and select it if it is found.
4216: # Check for GNU $ac_path_GREP
4217: case `"$ac_path_GREP" --version 2>&1` in
4218: *GNU*)
4219: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4220: *)
4221: ac_count=0
4222: $as_echo_n 0123456789 >"conftest.in"
4223: while :
4224: do
4225: cat "conftest.in" "conftest.in" >"conftest.tmp"
4226: mv "conftest.tmp" "conftest.in"
4227: cp "conftest.in" "conftest.nl"
4228: $as_echo 'GREP' >> "conftest.nl"
4229: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231: as_fn_arith $ac_count + 1 && ac_count=$as_val
4232: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4233: # Best one so far, save it but keep looking for a better one
4234: ac_cv_path_GREP="$ac_path_GREP"
4235: ac_path_GREP_max=$ac_count
4236: fi
4237: # 10*(2^10) chars as input seems more than enough
4238: test $ac_count -gt 10 && break
4239: done
4240: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241: esac
1.1 paf 4242:
1.5 moko 4243: $ac_path_GREP_found && break 3
4244: done
4245: done
4246: done
4247: IFS=$as_save_IFS
4248: if test -z "$ac_cv_path_GREP"; then
4249: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4250: fi
1.1 paf 4251: else
1.5 moko 4252: ac_cv_path_GREP=$GREP
1.1 paf 4253: fi
4254:
4255: fi
1.5 moko 4256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4257: $as_echo "$ac_cv_path_GREP" >&6; }
4258: GREP="$ac_cv_path_GREP"
1.1 paf 4259:
4260:
1.5 moko 4261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4262: $as_echo_n "checking for egrep... " >&6; }
4263: if ${ac_cv_path_EGREP+:} false; then :
4264: $as_echo_n "(cached) " >&6
1.4 paf 4265: else
1.5 moko 4266: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4267: then ac_cv_path_EGREP="$GREP -E"
4268: else
4269: if test -z "$EGREP"; then
4270: ac_path_EGREP_found=false
4271: # Loop through the user's path and test for each of PROGNAME-LIST
4272: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4274: do
4275: IFS=$as_save_IFS
4276: test -z "$as_dir" && as_dir=.
4277: for ac_prog in egrep; do
4278: for ac_exec_ext in '' $ac_executable_extensions; do
4279: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.7 moko 4280: as_fn_executable_p "$ac_path_EGREP" || continue
1.5 moko 4281: # Check for GNU ac_path_EGREP and select it if it is found.
4282: # Check for GNU $ac_path_EGREP
4283: case `"$ac_path_EGREP" --version 2>&1` in
4284: *GNU*)
4285: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
1.4 paf 4286: *)
1.5 moko 4287: ac_count=0
4288: $as_echo_n 0123456789 >"conftest.in"
4289: while :
4290: do
4291: cat "conftest.in" "conftest.in" >"conftest.tmp"
4292: mv "conftest.tmp" "conftest.in"
4293: cp "conftest.in" "conftest.nl"
4294: $as_echo 'EGREP' >> "conftest.nl"
4295: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297: as_fn_arith $ac_count + 1 && ac_count=$as_val
4298: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4299: # Best one so far, save it but keep looking for a better one
4300: ac_cv_path_EGREP="$ac_path_EGREP"
4301: ac_path_EGREP_max=$ac_count
1.4 paf 4302: fi
1.5 moko 4303: # 10*(2^10) chars as input seems more than enough
4304: test $ac_count -gt 10 && break
1.4 paf 4305: done
1.5 moko 4306: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.4 paf 4307: esac
1.5 moko 4308:
4309: $ac_path_EGREP_found && break 3
4310: done
4311: done
4312: done
4313: IFS=$as_save_IFS
4314: if test -z "$ac_cv_path_EGREP"; then
4315: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4316: fi
1.1 paf 4317: else
1.5 moko 4318: ac_cv_path_EGREP=$EGREP
4319: fi
4320:
4321: fi
4322: fi
4323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4324: $as_echo "$ac_cv_path_EGREP" >&6; }
4325: EGREP="$ac_cv_path_EGREP"
4326:
4327:
4328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4329: $as_echo_n "checking for fgrep... " >&6; }
4330: if ${ac_cv_path_FGREP+:} false; then :
4331: $as_echo_n "(cached) " >&6
4332: else
4333: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4334: then ac_cv_path_FGREP="$GREP -F"
4335: else
4336: if test -z "$FGREP"; then
4337: ac_path_FGREP_found=false
4338: # Loop through the user's path and test for each of PROGNAME-LIST
4339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341: do
4342: IFS=$as_save_IFS
4343: test -z "$as_dir" && as_dir=.
4344: for ac_prog in fgrep; do
4345: for ac_exec_ext in '' $ac_executable_extensions; do
4346: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.7 moko 4347: as_fn_executable_p "$ac_path_FGREP" || continue
1.5 moko 4348: # Check for GNU ac_path_FGREP and select it if it is found.
4349: # Check for GNU $ac_path_FGREP
4350: case `"$ac_path_FGREP" --version 2>&1` in
4351: *GNU*)
4352: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
1.4 paf 4353: *)
1.5 moko 4354: ac_count=0
4355: $as_echo_n 0123456789 >"conftest.in"
4356: while :
4357: do
4358: cat "conftest.in" "conftest.in" >"conftest.tmp"
4359: mv "conftest.tmp" "conftest.in"
4360: cp "conftest.in" "conftest.nl"
4361: $as_echo 'FGREP' >> "conftest.nl"
4362: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364: as_fn_arith $ac_count + 1 && ac_count=$as_val
4365: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4366: # Best one so far, save it but keep looking for a better one
4367: ac_cv_path_FGREP="$ac_path_FGREP"
4368: ac_path_FGREP_max=$ac_count
1.4 paf 4369: fi
1.5 moko 4370: # 10*(2^10) chars as input seems more than enough
4371: test $ac_count -gt 10 && break
1.4 paf 4372: done
1.5 moko 4373: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.4 paf 4374: esac
1.5 moko 4375:
4376: $ac_path_FGREP_found && break 3
4377: done
4378: done
4379: done
4380: IFS=$as_save_IFS
4381: if test -z "$ac_cv_path_FGREP"; then
4382: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4383: fi
1.1 paf 4384: else
1.5 moko 4385: ac_cv_path_FGREP=$FGREP
4386: fi
1.4 paf 4387:
1.5 moko 4388: fi
1.1 paf 4389: fi
1.5 moko 4390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4391: $as_echo "$ac_cv_path_FGREP" >&6; }
4392: FGREP="$ac_cv_path_FGREP"
4393:
4394:
4395: test -z "$GREP" && GREP=grep
4396:
4397:
4398:
4399:
4400:
4401:
4402:
4403:
4404:
4405:
4406:
4407:
4408:
4409:
1.1 paf 4410:
1.4 paf 4411:
4412:
4413:
4414:
1.5 moko 4415: # Check whether --with-gnu-ld was given.
4416: if test "${with_gnu_ld+set}" = set; then :
4417: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.2 paf 4418: else
1.4 paf 4419: with_gnu_ld=no
1.5 moko 4420: fi
4421:
1.4 paf 4422: ac_prog=ld
4423: if test "$GCC" = yes; then
4424: # Check if gcc -print-prog-name=ld gives a path.
1.5 moko 4425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4426: $as_echo_n "checking for ld used by $CC... " >&6; }
1.4 paf 4427: case $host in
4428: *-*-mingw*)
4429: # gcc leaves a trailing carriage return which upsets mingw
4430: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4431: *)
4432: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4433: esac
4434: case $ac_prog in
4435: # Accept absolute paths.
1.5 moko 4436: [\\/]* | ?:[\\/]*)
1.4 paf 4437: re_direlt='/[^/][^/]*/\.\./'
1.5 moko 4438: # Canonicalize the pathname of ld
4439: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4440: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4441: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.4 paf 4442: done
4443: test -z "$LD" && LD="$ac_prog"
4444: ;;
4445: "")
4446: # If it fails, then pretend we aren't using GCC.
4447: ac_prog=ld
4448: ;;
4449: *)
4450: # If it is relative, then search for the first ld in PATH.
4451: with_gnu_ld=unknown
4452: ;;
4453: esac
4454: elif test "$with_gnu_ld" = yes; then
1.5 moko 4455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4456: $as_echo_n "checking for GNU ld... " >&6; }
1.2 paf 4457: else
1.5 moko 4458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4459: $as_echo_n "checking for non-GNU ld... " >&6; }
1.2 paf 4460: fi
1.5 moko 4461: if ${lt_cv_path_LD+:} false; then :
4462: $as_echo_n "(cached) " >&6
1.1 paf 4463: else
1.4 paf 4464: if test -z "$LD"; then
1.5 moko 4465: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.4 paf 4466: for ac_dir in $PATH; do
1.5 moko 4467: IFS="$lt_save_ifs"
1.4 paf 4468: test -z "$ac_dir" && ac_dir=.
4469: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4470: lt_cv_path_LD="$ac_dir/$ac_prog"
4471: # Check to see if the program is GNU ld. I'd rather use --version,
1.5 moko 4472: # but apparently some variants of GNU ld only accept -v.
1.4 paf 4473: # Break only if it was the GNU/non-GNU ld that we prefer.
1.5 moko 4474: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4475: *GNU* | *'with BFD'*)
1.4 paf 4476: test "$with_gnu_ld" != no && break
1.5 moko 4477: ;;
4478: *)
1.4 paf 4479: test "$with_gnu_ld" != yes && break
1.5 moko 4480: ;;
4481: esac
1.4 paf 4482: fi
1.1 paf 4483: done
1.5 moko 4484: IFS="$lt_save_ifs"
1.4 paf 4485: else
4486: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4487: fi
1.1 paf 4488: fi
1.2 paf 4489:
1.4 paf 4490: LD="$lt_cv_path_LD"
4491: if test -n "$LD"; then
1.5 moko 4492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4493: $as_echo "$LD" >&6; }
1.4 paf 4494: else
1.5 moko 4495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496: $as_echo "no" >&6; }
1.2 paf 4497: fi
1.5 moko 4498: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4500: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4501: if ${lt_cv_prog_gnu_ld+:} false; then :
4502: $as_echo_n "(cached) " >&6
4503: else
4504: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4505: case `$LD -v 2>&1 </dev/null` in
4506: *GNU* | *'with BFD'*)
1.4 paf 4507: lt_cv_prog_gnu_ld=yes
1.5 moko 4508: ;;
4509: *)
1.4 paf 4510: lt_cv_prog_gnu_ld=no
1.5 moko 4511: ;;
4512: esac
1.4 paf 4513: fi
1.5 moko 4514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4515: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.4 paf 4516: with_gnu_ld=$lt_cv_prog_gnu_ld
1.2 paf 4517:
4518:
4519:
1.5 moko 4520:
4521:
4522:
4523:
4524:
4525:
4526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4527: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4528: if ${lt_cv_path_NM+:} false; then :
4529: $as_echo_n "(cached) " >&6
1.2 paf 4530: else
1.4 paf 4531: if test -n "$NM"; then
4532: # Let the user override the test.
4533: lt_cv_path_NM="$NM"
4534: else
1.5 moko 4535: lt_nm_to_check="${ac_tool_prefix}nm"
4536: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4537: lt_nm_to_check="$lt_nm_to_check nm"
4538: fi
4539: for lt_tmp_nm in $lt_nm_to_check; do
4540: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4541: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4542: IFS="$lt_save_ifs"
4543: test -z "$ac_dir" && ac_dir=.
4544: tmp_nm="$ac_dir/$lt_tmp_nm"
4545: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4546: # Check to see if the nm accepts a BSD-compat flag.
4547: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4548: # nm: unknown option "B" ignored
4549: # Tru64's nm complains that /dev/null is an invalid object file
4550: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4551: */dev/null* | *'Invalid file or object type'*)
4552: lt_cv_path_NM="$tmp_nm -B"
4553: break
4554: ;;
4555: *)
4556: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4557: */dev/null*)
4558: lt_cv_path_NM="$tmp_nm -p"
4559: break
4560: ;;
4561: *)
4562: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4563: continue # so that we can try to find one that supports BSD flags
4564: ;;
4565: esac
4566: ;;
4567: esac
1.4 paf 4568: fi
1.5 moko 4569: done
4570: IFS="$lt_save_ifs"
1.4 paf 4571: done
1.5 moko 4572: : ${lt_cv_path_NM=no}
1.4 paf 4573: fi
4574: fi
1.5 moko 4575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4576: $as_echo "$lt_cv_path_NM" >&6; }
4577: if test "$lt_cv_path_NM" != "no"; then
4578: NM="$lt_cv_path_NM"
4579: else
4580: # Didn't find any BSD compatible name lister, look for dumpbin.
4581: if test -n "$DUMPBIN"; then :
4582: # Let the user override the test.
4583: else
4584: if test -n "$ac_tool_prefix"; then
4585: for ac_prog in dumpbin "link -dump"
4586: do
4587: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4588: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590: $as_echo_n "checking for $ac_word... " >&6; }
4591: if ${ac_cv_prog_DUMPBIN+:} false; then :
4592: $as_echo_n "(cached) " >&6
4593: else
4594: if test -n "$DUMPBIN"; then
4595: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
1.4 paf 4596: else
4597: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598: for as_dir in $PATH
4599: do
4600: IFS=$as_save_IFS
4601: test -z "$as_dir" && as_dir=.
4602: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 4603: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 4604: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4605: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606: break 2
4607: fi
4608: done
1.4 paf 4609: done
1.5 moko 4610: IFS=$as_save_IFS
4611:
4612: fi
4613: fi
4614: DUMPBIN=$ac_cv_prog_DUMPBIN
4615: if test -n "$DUMPBIN"; then
4616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4617: $as_echo "$DUMPBIN" >&6; }
4618: else
4619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620: $as_echo "no" >&6; }
4621: fi
1.4 paf 4622:
4623:
1.5 moko 4624: test -n "$DUMPBIN" && break
4625: done
4626: fi
4627: if test -z "$DUMPBIN"; then
4628: ac_ct_DUMPBIN=$DUMPBIN
4629: for ac_prog in dumpbin "link -dump"
4630: do
4631: # Extract the first word of "$ac_prog", so it can be a program name with args.
4632: set dummy $ac_prog; ac_word=$2
4633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634: $as_echo_n "checking for $ac_word... " >&6; }
4635: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4636: $as_echo_n "(cached) " >&6
4637: else
4638: if test -n "$ac_ct_DUMPBIN"; then
4639: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4640: else
4641: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642: for as_dir in $PATH
4643: do
4644: IFS=$as_save_IFS
4645: test -z "$as_dir" && as_dir=.
4646: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 4647: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 4648: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4649: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650: break 2
4651: fi
4652: done
1.4 paf 4653: done
1.5 moko 4654: IFS=$as_save_IFS
4655:
4656: fi
4657: fi
4658: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4659: if test -n "$ac_ct_DUMPBIN"; then
4660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4661: $as_echo "$ac_ct_DUMPBIN" >&6; }
4662: else
4663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664: $as_echo "no" >&6; }
4665: fi
4666:
4667:
4668: test -n "$ac_ct_DUMPBIN" && break
4669: done
4670:
4671: if test "x$ac_ct_DUMPBIN" = x; then
4672: DUMPBIN=":"
4673: else
4674: case $cross_compiling:$ac_tool_warned in
4675: yes:)
4676: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678: ac_tool_warned=yes ;;
4679: esac
4680: DUMPBIN=$ac_ct_DUMPBIN
4681: fi
4682: fi
4683:
4684: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4685: *COFF*)
4686: DUMPBIN="$DUMPBIN -symbols"
4687: ;;
4688: *)
4689: DUMPBIN=:
4690: ;;
4691: esac
4692: fi
1.4 paf 4693:
1.5 moko 4694: if test "$DUMPBIN" != ":"; then
4695: NM="$DUMPBIN"
4696: fi
1.4 paf 4697: fi
1.5 moko 4698: test -z "$NM" && NM=nm
4699:
4700:
1.4 paf 4701:
1.5 moko 4702:
4703:
4704:
4705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4706: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4707: if ${lt_cv_nm_interface+:} false; then :
4708: $as_echo_n "(cached) " >&6
1.4 paf 4709: else
1.5 moko 4710: lt_cv_nm_interface="BSD nm"
4711: echo "int some_variable = 0;" > conftest.$ac_ext
4712: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4713: (eval "$ac_compile" 2>conftest.err)
4714: cat conftest.err >&5
4715: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4716: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4717: cat conftest.err >&5
4718: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4719: cat conftest.out >&5
4720: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4721: lt_cv_nm_interface="MS dumpbin"
4722: fi
4723: rm -f conftest*
1.4 paf 4724: fi
1.5 moko 4725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4726: $as_echo "$lt_cv_nm_interface" >&6; }
1.4 paf 4727:
1.5 moko 4728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4729: $as_echo_n "checking whether ln -s works... " >&6; }
1.4 paf 4730: LN_S=$as_ln_s
4731: if test "$LN_S" = "ln -s"; then
1.5 moko 4732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4733: $as_echo "yes" >&6; }
4734: else
4735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4736: $as_echo "no, using $LN_S" >&6; }
4737: fi
4738:
4739: # find the maximum length of command line arguments
4740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4741: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4742: if ${lt_cv_sys_max_cmd_len+:} false; then :
4743: $as_echo_n "(cached) " >&6
4744: else
4745: i=0
4746: teststring="ABCD"
4747:
4748: case $build_os in
4749: msdosdjgpp*)
4750: # On DJGPP, this test can blow up pretty badly due to problems in libc
4751: # (any single argument exceeding 2000 bytes causes a buffer overrun
4752: # during glob expansion). Even if it were fixed, the result of this
4753: # check would be larger than it should be.
4754: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4755: ;;
4756:
4757: gnu*)
4758: # Under GNU Hurd, this test is not required because there is
4759: # no limit to the length of command line arguments.
4760: # Libtool will interpret -1 as no limit whatsoever
4761: lt_cv_sys_max_cmd_len=-1;
4762: ;;
4763:
4764: cygwin* | mingw* | cegcc*)
4765: # On Win9x/ME, this test blows up -- it succeeds, but takes
4766: # about 5 minutes as the teststring grows exponentially.
4767: # Worse, since 9x/ME are not pre-emptively multitasking,
4768: # you end up with a "frozen" computer, even though with patience
4769: # the test eventually succeeds (with a max line length of 256k).
4770: # Instead, let's just punt: use the minimum linelength reported by
4771: # all of the supported platforms: 8192 (on NT/2K/XP).
4772: lt_cv_sys_max_cmd_len=8192;
4773: ;;
4774:
4775: mint*)
4776: # On MiNT this can take a long time and run out of memory.
4777: lt_cv_sys_max_cmd_len=8192;
4778: ;;
4779:
4780: amigaos*)
4781: # On AmigaOS with pdksh, this test takes hours, literally.
4782: # So we just punt and use a minimum line length of 8192.
4783: lt_cv_sys_max_cmd_len=8192;
4784: ;;
4785:
4786: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4787: # This has been around since 386BSD, at least. Likely further.
4788: if test -x /sbin/sysctl; then
4789: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4790: elif test -x /usr/sbin/sysctl; then
4791: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4792: else
4793: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4794: fi
4795: # And add a safety zone
4796: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4797: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4798: ;;
4799:
4800: interix*)
4801: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4802: lt_cv_sys_max_cmd_len=196608
4803: ;;
4804:
4805: os2*)
4806: # The test takes a long time on OS/2.
4807: lt_cv_sys_max_cmd_len=8192
4808: ;;
4809:
4810: osf*)
4811: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4812: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4813: # nice to cause kernel panics so lets avoid the loop below.
4814: # First set a reasonable default.
4815: lt_cv_sys_max_cmd_len=16384
4816: #
4817: if test -x /sbin/sysconfig; then
4818: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4819: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4820: esac
4821: fi
4822: ;;
4823: sco3.2v5*)
4824: lt_cv_sys_max_cmd_len=102400
4825: ;;
4826: sysv5* | sco5v6* | sysv4.2uw2*)
4827: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4828: if test -n "$kargmax"; then
4829: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4830: else
4831: lt_cv_sys_max_cmd_len=32768
4832: fi
4833: ;;
4834: *)
4835: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4836: if test -n "$lt_cv_sys_max_cmd_len"; then
4837: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4838: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4839: else
4840: # Make teststring a little bigger before we do anything with it.
4841: # a 1K string should be a reasonable start.
4842: for i in 1 2 3 4 5 6 7 8 ; do
4843: teststring=$teststring$teststring
4844: done
4845: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4846: # If test is not a shell built-in, we'll probably end up computing a
4847: # maximum length that is only half of the actual maximum length, but
4848: # we can't tell.
4849: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4850: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4851: test $i != 17 # 1/2 MB should be enough
4852: do
4853: i=`expr $i + 1`
4854: teststring=$teststring$teststring
4855: done
4856: # Only check the string length outside the loop.
4857: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4858: teststring=
4859: # Add a significant safety factor because C++ compilers can tack on
4860: # massive amounts of additional arguments before passing them to the
4861: # linker. It appears as though 1/2 is a usable value.
4862: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4863: fi
4864: ;;
4865: esac
4866:
4867: fi
4868:
4869: if test -n $lt_cv_sys_max_cmd_len ; then
4870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4871: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4872: else
4873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4874: $as_echo "none" >&6; }
4875: fi
4876: max_cmd_len=$lt_cv_sys_max_cmd_len
4877:
4878:
4879:
4880:
4881:
4882:
4883: : ${CP="cp -f"}
4884: : ${MV="mv -f"}
4885: : ${RM="rm -f"}
4886:
4887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4888: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4889: # Try some XSI features
4890: xsi_shell=no
4891: ( _lt_dummy="a/b/c"
4892: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4893: = c,a/b,b/c, \
4894: && eval 'test $(( 1 + 1 )) -eq 2 \
4895: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4896: && xsi_shell=yes
4897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4898: $as_echo "$xsi_shell" >&6; }
4899:
4900:
4901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4902: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4903: lt_shell_append=no
4904: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4905: >/dev/null 2>&1 \
4906: && lt_shell_append=yes
4907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4908: $as_echo "$lt_shell_append" >&6; }
4909:
4910:
4911: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4912: lt_unset=unset
4913: else
4914: lt_unset=false
4915: fi
4916:
4917:
4918:
4919:
4920:
4921: # test EBCDIC or ASCII
4922: case `echo X|tr X '\101'` in
4923: A) # ASCII based system
4924: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4925: lt_SP2NL='tr \040 \012'
4926: lt_NL2SP='tr \015\012 \040\040'
4927: ;;
4928: *) # EBCDIC based system
4929: lt_SP2NL='tr \100 \n'
4930: lt_NL2SP='tr \r\n \100\100'
4931: ;;
4932: esac
4933:
4934:
4935:
4936:
4937:
4938:
4939:
4940:
4941:
4942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4943: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4944: if ${lt_cv_to_host_file_cmd+:} false; then :
4945: $as_echo_n "(cached) " >&6
1.4 paf 4946: else
1.5 moko 4947: case $host in
4948: *-*-mingw* )
4949: case $build in
4950: *-*-mingw* ) # actually msys
4951: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4952: ;;
4953: *-*-cygwin* )
4954: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4955: ;;
4956: * ) # otherwise, assume *nix
4957: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4958: ;;
4959: esac
4960: ;;
4961: *-*-cygwin* )
4962: case $build in
4963: *-*-mingw* ) # actually msys
4964: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4965: ;;
4966: *-*-cygwin* )
4967: lt_cv_to_host_file_cmd=func_convert_file_noop
4968: ;;
4969: * ) # otherwise, assume *nix
4970: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4971: ;;
4972: esac
4973: ;;
4974: * ) # unhandled hosts (and "normal" native builds)
4975: lt_cv_to_host_file_cmd=func_convert_file_noop
4976: ;;
4977: esac
4978:
4979: fi
4980:
4981: to_host_file_cmd=$lt_cv_to_host_file_cmd
4982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4983: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4984:
4985:
4986:
4987:
4988:
4989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4990: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4991: if ${lt_cv_to_tool_file_cmd+:} false; then :
4992: $as_echo_n "(cached) " >&6
4993: else
4994: #assume ordinary cross tools, or native build.
4995: lt_cv_to_tool_file_cmd=func_convert_file_noop
4996: case $host in
4997: *-*-mingw* )
4998: case $build in
4999: *-*-mingw* ) # actually msys
5000: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5001: ;;
5002: esac
5003: ;;
5004: esac
5005:
5006: fi
5007:
5008: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5010: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5011:
5012:
5013:
5014:
5015:
5016: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5017: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5018: if ${lt_cv_ld_reload_flag+:} false; then :
5019: $as_echo_n "(cached) " >&6
5020: else
5021: lt_cv_ld_reload_flag='-r'
5022: fi
5023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5024: $as_echo "$lt_cv_ld_reload_flag" >&6; }
5025: reload_flag=$lt_cv_ld_reload_flag
5026: case $reload_flag in
5027: "" | " "*) ;;
5028: *) reload_flag=" $reload_flag" ;;
5029: esac
5030: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5031: case $host_os in
5032: cygwin* | mingw* | pw32* | cegcc*)
5033: if test "$GCC" != yes; then
5034: reload_cmds=false
5035: fi
5036: ;;
5037: darwin*)
5038: if test "$GCC" = yes; then
5039: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5040: else
5041: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5042: fi
5043: ;;
5044: esac
5045:
5046:
5047:
5048:
5049:
5050:
5051:
5052:
5053:
5054: if test -n "$ac_tool_prefix"; then
5055: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5056: set dummy ${ac_tool_prefix}objdump; ac_word=$2
5057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058: $as_echo_n "checking for $ac_word... " >&6; }
5059: if ${ac_cv_prog_OBJDUMP+:} false; then :
5060: $as_echo_n "(cached) " >&6
5061: else
5062: if test -n "$OBJDUMP"; then
5063: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5064: else
5065: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066: for as_dir in $PATH
5067: do
5068: IFS=$as_save_IFS
5069: test -z "$as_dir" && as_dir=.
5070: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5071: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5072: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5073: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074: break 2
5075: fi
5076: done
5077: done
5078: IFS=$as_save_IFS
5079:
5080: fi
5081: fi
5082: OBJDUMP=$ac_cv_prog_OBJDUMP
5083: if test -n "$OBJDUMP"; then
5084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5085: $as_echo "$OBJDUMP" >&6; }
5086: else
5087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088: $as_echo "no" >&6; }
5089: fi
5090:
5091:
5092: fi
5093: if test -z "$ac_cv_prog_OBJDUMP"; then
5094: ac_ct_OBJDUMP=$OBJDUMP
5095: # Extract the first word of "objdump", so it can be a program name with args.
5096: set dummy objdump; ac_word=$2
5097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098: $as_echo_n "checking for $ac_word... " >&6; }
5099: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5100: $as_echo_n "(cached) " >&6
5101: else
5102: if test -n "$ac_ct_OBJDUMP"; then
5103: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5104: else
5105: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106: for as_dir in $PATH
5107: do
5108: IFS=$as_save_IFS
5109: test -z "$as_dir" && as_dir=.
5110: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5111: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5112: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5113: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114: break 2
5115: fi
5116: done
5117: done
5118: IFS=$as_save_IFS
5119:
5120: fi
5121: fi
5122: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5123: if test -n "$ac_ct_OBJDUMP"; then
5124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5125: $as_echo "$ac_ct_OBJDUMP" >&6; }
5126: else
5127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128: $as_echo "no" >&6; }
5129: fi
5130:
5131: if test "x$ac_ct_OBJDUMP" = x; then
5132: OBJDUMP="false"
5133: else
5134: case $cross_compiling:$ac_tool_warned in
5135: yes:)
5136: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5137: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138: ac_tool_warned=yes ;;
5139: esac
5140: OBJDUMP=$ac_ct_OBJDUMP
5141: fi
5142: else
5143: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.4 paf 5144: fi
5145:
1.5 moko 5146: test -z "$OBJDUMP" && OBJDUMP=objdump
5147:
5148:
5149:
5150:
5151:
5152:
5153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5154: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5155: if ${lt_cv_deplibs_check_method+:} false; then :
5156: $as_echo_n "(cached) " >&6
1.4 paf 5157: else
5158: lt_cv_file_magic_cmd='$MAGIC_CMD'
5159: lt_cv_file_magic_test_file=
5160: lt_cv_deplibs_check_method='unknown'
5161: # Need to set the preceding variable on all platforms that support
5162: # interlibrary dependencies.
5163: # 'none' -- dependencies not supported.
5164: # `unknown' -- same as none, but documents that we really don't know.
5165: # 'pass_all' -- all dependencies passed with no checks.
5166: # 'test_compile' -- check by making test program.
5167: # 'file_magic [[regex]]' -- check by looking for files in library path
1.5 moko 5168: # which responds to the $file_magic_cmd with a given extended regex.
1.4 paf 5169: # If you have `file' or equivalent on your system and you're not sure
5170: # whether `pass_all' will *always* work, you probably want this one.
5171:
5172: case $host_os in
1.5 moko 5173: aix[4-9]*)
1.4 paf 5174: lt_cv_deplibs_check_method=pass_all
5175: ;;
5176:
5177: beos*)
5178: lt_cv_deplibs_check_method=pass_all
5179: ;;
5180:
1.5 moko 5181: bsdi[45]*)
1.4 paf 5182: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5183: lt_cv_file_magic_cmd='/usr/bin/file -L'
5184: lt_cv_file_magic_test_file=/shlib/libc.so
5185: ;;
5186:
1.5 moko 5187: cygwin*)
5188: # func_win32_libid is a shell function defined in ltmain.sh
5189: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190: lt_cv_file_magic_cmd='func_win32_libid'
5191: ;;
5192:
5193: mingw* | pw32*)
5194: # Base MSYS/MinGW do not provide the 'file' command needed by
5195: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5196: # unless we find 'file', for example because we are cross-compiling.
5197: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5198: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5199: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5200: lt_cv_file_magic_cmd='func_win32_libid'
5201: else
5202: # Keep this pattern in sync with the one in func_win32_libid.
5203: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5204: lt_cv_file_magic_cmd='$OBJDUMP -f'
5205: fi
5206: ;;
5207:
5208: cegcc*)
5209: # use the weaker test based on 'objdump'. See mingw*.
5210: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.4 paf 5211: lt_cv_file_magic_cmd='$OBJDUMP -f'
5212: ;;
5213:
5214: darwin* | rhapsody*)
1.5 moko 5215: lt_cv_deplibs_check_method=pass_all
1.4 paf 5216: ;;
5217:
1.5 moko 5218: freebsd* | dragonfly*)
5219: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.4 paf 5220: case $host_cpu in
5221: i*86 )
5222: # Not sure whether the presence of OpenBSD here was a mistake.
5223: # Let's accept both of them until this is cleared up.
1.5 moko 5224: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.4 paf 5225: lt_cv_file_magic_cmd=/usr/bin/file
5226: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5227: ;;
5228: esac
5229: else
5230: lt_cv_deplibs_check_method=pass_all
5231: fi
5232: ;;
5233:
5234: gnu*)
5235: lt_cv_deplibs_check_method=pass_all
5236: ;;
5237:
1.5 moko 5238: haiku*)
5239: lt_cv_deplibs_check_method=pass_all
1.4 paf 5240: ;;
5241:
1.5 moko 5242: hpux10.20* | hpux11*)
5243: lt_cv_file_magic_cmd=/usr/bin/file
5244: case $host_cpu in
5245: ia64*)
5246: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5247: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5248: ;;
5249: hppa*64*)
5250: 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]'
5251: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.4 paf 5252: ;;
5253: *)
1.5 moko 5254: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5255: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.4 paf 5256: ;;
5257: esac
5258: ;;
5259:
1.5 moko 5260: interix[3-9]*)
5261: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5262: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5263: ;;
5264:
5265: irix5* | irix6* | nonstopux*)
5266: case $LD in
5267: *-32|*"-32 ") libmagic=32-bit;;
5268: *-n32|*"-n32 ") libmagic=N32;;
5269: *-64|*"-64 ") libmagic=64-bit;;
5270: *) libmagic=never-match;;
5271: esac
5272: lt_cv_deplibs_check_method=pass_all
5273: ;;
5274:
5275: # This must be glibc/ELF.
5276: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5277: lt_cv_deplibs_check_method=pass_all
1.4 paf 5278: ;;
5279:
5280: netbsd*)
1.5 moko 5281: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5282: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.4 paf 5283: else
1.5 moko 5284: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.4 paf 5285: fi
5286: ;;
5287:
5288: newos6*)
5289: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5290: lt_cv_file_magic_cmd=/usr/bin/file
5291: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5292: ;;
5293:
1.5 moko 5294: *nto* | *qnx*)
5295: lt_cv_deplibs_check_method=pass_all
5296: ;;
5297:
1.4 paf 5298: openbsd*)
1.5 moko 5299: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5300: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.4 paf 5301: else
1.5 moko 5302: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.4 paf 5303: fi
5304: ;;
5305:
5306: osf3* | osf4* | osf5*)
5307: lt_cv_deplibs_check_method=pass_all
5308: ;;
5309:
1.5 moko 5310: rdos*)
1.4 paf 5311: lt_cv_deplibs_check_method=pass_all
5312: ;;
5313:
5314: solaris*)
5315: lt_cv_deplibs_check_method=pass_all
5316: ;;
5317:
1.5 moko 5318: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.4 paf 5319: lt_cv_deplibs_check_method=pass_all
5320: ;;
5321:
1.5 moko 5322: sysv4 | sysv4.3*)
1.4 paf 5323: case $host_vendor in
5324: motorola)
5325: 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]'
5326: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5327: ;;
5328: ncr)
5329: lt_cv_deplibs_check_method=pass_all
5330: ;;
5331: sequent)
5332: lt_cv_file_magic_cmd='/bin/file'
5333: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5334: ;;
5335: sni)
5336: lt_cv_file_magic_cmd='/bin/file'
5337: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5338: lt_cv_file_magic_test_file=/lib/libc.so
5339: ;;
5340: siemens)
5341: lt_cv_deplibs_check_method=pass_all
5342: ;;
1.5 moko 5343: pc)
5344: lt_cv_deplibs_check_method=pass_all
5345: ;;
1.4 paf 5346: esac
5347: ;;
1.5 moko 5348:
5349: tpf*)
5350: lt_cv_deplibs_check_method=pass_all
5351: ;;
1.4 paf 5352: esac
5353:
5354: fi
1.5 moko 5355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5356: $as_echo "$lt_cv_deplibs_check_method" >&6; }
5357:
5358: file_magic_glob=
5359: want_nocaseglob=no
5360: if test "$build" = "$host"; then
5361: case $host_os in
5362: mingw* | pw32*)
5363: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5364: want_nocaseglob=yes
5365: else
5366: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5367: fi
5368: ;;
5369: esac
5370: fi
5371:
1.4 paf 5372: file_magic_cmd=$lt_cv_file_magic_cmd
5373: deplibs_check_method=$lt_cv_deplibs_check_method
1.5 moko 5374: test -z "$deplibs_check_method" && deplibs_check_method=unknown
1.4 paf 5375:
5376:
5377:
5378:
5379:
5380:
5381:
5382:
5383:
5384:
5385:
5386:
5387:
5388:
5389:
5390:
5391:
5392:
5393:
5394:
5395:
5396:
1.5 moko 5397: if test -n "$ac_tool_prefix"; then
5398: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5399: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401: $as_echo_n "checking for $ac_word... " >&6; }
5402: if ${ac_cv_prog_DLLTOOL+:} false; then :
5403: $as_echo_n "(cached) " >&6
5404: else
5405: if test -n "$DLLTOOL"; then
5406: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5407: else
5408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409: for as_dir in $PATH
5410: do
5411: IFS=$as_save_IFS
5412: test -z "$as_dir" && as_dir=.
5413: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5414: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5415: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5416: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417: break 2
1.4 paf 5418: fi
5419: done
1.5 moko 5420: done
5421: IFS=$as_save_IFS
1.4 paf 5422:
5423: fi
5424: fi
1.5 moko 5425: DLLTOOL=$ac_cv_prog_DLLTOOL
5426: if test -n "$DLLTOOL"; then
5427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5428: $as_echo "$DLLTOOL" >&6; }
1.4 paf 5429: else
1.5 moko 5430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431: $as_echo "no" >&6; }
1.4 paf 5432: fi
5433:
1.5 moko 5434:
1.4 paf 5435: fi
1.5 moko 5436: if test -z "$ac_cv_prog_DLLTOOL"; then
5437: ac_ct_DLLTOOL=$DLLTOOL
5438: # Extract the first word of "dlltool", so it can be a program name with args.
5439: set dummy dlltool; ac_word=$2
5440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441: $as_echo_n "checking for $ac_word... " >&6; }
5442: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5443: $as_echo_n "(cached) " >&6
5444: else
5445: if test -n "$ac_ct_DLLTOOL"; then
5446: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.4 paf 5447: else
1.5 moko 5448: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449: for as_dir in $PATH
1.4 paf 5450: do
1.5 moko 5451: IFS=$as_save_IFS
5452: test -z "$as_dir" && as_dir=.
5453: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5454: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5455: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5456: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457: break 2
1.4 paf 5458: fi
1.5 moko 5459: done
5460: done
5461: IFS=$as_save_IFS
5462:
5463: fi
1.4 paf 5464: fi
1.5 moko 5465: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5466: if test -n "$ac_ct_DLLTOOL"; then
5467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5468: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.4 paf 5469: else
1.5 moko 5470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471: $as_echo "no" >&6; }
1.4 paf 5472: fi
5473:
1.5 moko 5474: if test "x$ac_ct_DLLTOOL" = x; then
5475: DLLTOOL="false"
1.4 paf 5476: else
1.5 moko 5477: case $cross_compiling:$ac_tool_warned in
5478: yes:)
5479: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481: ac_tool_warned=yes ;;
5482: esac
5483: DLLTOOL=$ac_ct_DLLTOOL
1.4 paf 5484: fi
5485: else
1.5 moko 5486: DLLTOOL="$ac_cv_prog_DLLTOOL"
1.4 paf 5487: fi
1.5 moko 5488:
5489: test -z "$DLLTOOL" && DLLTOOL=dlltool
5490:
5491:
5492:
5493:
5494:
5495:
5496:
5497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5498: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5499: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5500: $as_echo_n "(cached) " >&6
1.4 paf 5501: else
1.5 moko 5502: lt_cv_sharedlib_from_linklib_cmd='unknown'
5503:
5504: case $host_os in
5505: cygwin* | mingw* | pw32* | cegcc*)
5506: # two different shell functions defined in ltmain.sh
5507: # decide which to use based on capabilities of $DLLTOOL
5508: case `$DLLTOOL --help 2>&1` in
5509: *--identify-strict*)
5510: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5511: ;;
5512: *)
5513: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5514: ;;
5515: esac
5516: ;;
5517: *)
5518: # fallback: assume linklib IS sharedlib
5519: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5520: ;;
5521: esac
1.4 paf 5522:
5523: fi
1.5 moko 5524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5525: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5526: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5527: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5528:
5529:
5530:
5531:
5532:
1.4 paf 5533:
5534:
5535:
1.5 moko 5536: if test -n "$ac_tool_prefix"; then
5537: for ac_prog in ar
5538: do
5539: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5540: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542: $as_echo_n "checking for $ac_word... " >&6; }
5543: if ${ac_cv_prog_AR+:} false; then :
5544: $as_echo_n "(cached) " >&6
5545: else
5546: if test -n "$AR"; then
5547: ac_cv_prog_AR="$AR" # Let the user override the test.
1.4 paf 5548: else
1.5 moko 5549: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550: for as_dir in $PATH
5551: do
5552: IFS=$as_save_IFS
5553: test -z "$as_dir" && as_dir=.
5554: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5555: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5556: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5557: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558: break 2
5559: fi
5560: done
5561: done
5562: IFS=$as_save_IFS
5563:
5564: fi
5565: fi
5566: AR=$ac_cv_prog_AR
5567: if test -n "$AR"; then
5568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5569: $as_echo "$AR" >&6; }
5570: else
5571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572: $as_echo "no" >&6; }
5573: fi
5574:
5575:
5576: test -n "$AR" && break
5577: done
1.4 paf 5578: fi
1.5 moko 5579: if test -z "$AR"; then
5580: ac_ct_AR=$AR
5581: for ac_prog in ar
5582: do
5583: # Extract the first word of "$ac_prog", so it can be a program name with args.
5584: set dummy $ac_prog; ac_word=$2
5585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586: $as_echo_n "checking for $ac_word... " >&6; }
5587: if ${ac_cv_prog_ac_ct_AR+:} false; then :
5588: $as_echo_n "(cached) " >&6
5589: else
5590: if test -n "$ac_ct_AR"; then
5591: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5592: else
5593: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594: for as_dir in $PATH
1.4 paf 5595: do
1.5 moko 5596: IFS=$as_save_IFS
5597: test -z "$as_dir" && as_dir=.
5598: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5599: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5600: ac_cv_prog_ac_ct_AR="$ac_prog"
5601: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602: break 2
1.4 paf 5603: fi
1.5 moko 5604: done
5605: done
5606: IFS=$as_save_IFS
5607:
5608: fi
5609: fi
5610: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5611: if test -n "$ac_ct_AR"; then
5612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5613: $as_echo "$ac_ct_AR" >&6; }
1.4 paf 5614: else
1.5 moko 5615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616: $as_echo "no" >&6; }
1.4 paf 5617: fi
5618:
5619:
1.5 moko 5620: test -n "$ac_ct_AR" && break
5621: done
5622:
5623: if test "x$ac_ct_AR" = x; then
5624: AR="false"
1.4 paf 5625: else
1.5 moko 5626: case $cross_compiling:$ac_tool_warned in
5627: yes:)
5628: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630: ac_tool_warned=yes ;;
5631: esac
5632: AR=$ac_ct_AR
1.4 paf 5633: fi
5634: fi
5635:
1.5 moko 5636: : ${AR=ar}
5637: : ${AR_FLAGS=cru}
5638:
5639:
5640:
5641:
5642:
1.4 paf 5643:
5644:
5645:
5646:
5647:
5648:
1.5 moko 5649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5650: $as_echo_n "checking for archiver @FILE support... " >&6; }
5651: if ${lt_cv_ar_at_file+:} false; then :
5652: $as_echo_n "(cached) " >&6
1.4 paf 5653: else
1.5 moko 5654: lt_cv_ar_at_file=no
5655: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 5656: /* end confdefs.h. */
5657:
5658: int
5659: main ()
5660: {
5661:
5662: ;
5663: return 0;
5664: }
5665: _ACEOF
1.5 moko 5666: if ac_fn_c_try_compile "$LINENO"; then :
5667: echo conftest.$ac_objext > conftest.lst
5668: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5669: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5670: (eval $lt_ar_try) 2>&5
5671: ac_status=$?
5672: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673: test $ac_status = 0; }
5674: if test "$ac_status" -eq 0; then
5675: # Ensure the archiver fails upon bogus file names.
5676: rm -f conftest.$ac_objext libconftest.a
5677: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5678: (eval $lt_ar_try) 2>&5
5679: ac_status=$?
5680: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681: test $ac_status = 0; }
5682: if test "$ac_status" -ne 0; then
5683: lt_cv_ar_at_file=@
5684: fi
5685: fi
5686: rm -f conftest.* libconftest.a
1.4 paf 5687:
5688: fi
1.5 moko 5689: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4 paf 5690:
1.5 moko 5691: fi
5692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5693: $as_echo "$lt_cv_ar_at_file" >&6; }
1.4 paf 5694:
1.5 moko 5695: if test "x$lt_cv_ar_at_file" = xno; then
5696: archiver_list_spec=
1.4 paf 5697: else
1.5 moko 5698: archiver_list_spec=$lt_cv_ar_at_file
1.4 paf 5699: fi
5700:
5701:
5702:
5703:
5704:
1.5 moko 5705:
5706:
5707: if test -n "$ac_tool_prefix"; then
5708: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5709: set dummy ${ac_tool_prefix}strip; ac_word=$2
5710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711: $as_echo_n "checking for $ac_word... " >&6; }
5712: if ${ac_cv_prog_STRIP+:} false; then :
5713: $as_echo_n "(cached) " >&6
1.4 paf 5714: else
1.5 moko 5715: if test -n "$STRIP"; then
5716: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.4 paf 5717: else
1.5 moko 5718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719: for as_dir in $PATH
5720: do
5721: IFS=$as_save_IFS
5722: test -z "$as_dir" && as_dir=.
5723: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5724: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5725: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5726: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727: break 2
5728: fi
5729: done
5730: done
5731: IFS=$as_save_IFS
1.4 paf 5732:
5733: fi
5734: fi
1.5 moko 5735: STRIP=$ac_cv_prog_STRIP
5736: if test -n "$STRIP"; then
5737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5738: $as_echo "$STRIP" >&6; }
5739: else
5740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741: $as_echo "no" >&6; }
1.4 paf 5742: fi
5743:
5744:
5745: fi
1.5 moko 5746: if test -z "$ac_cv_prog_STRIP"; then
5747: ac_ct_STRIP=$STRIP
5748: # Extract the first word of "strip", so it can be a program name with args.
5749: set dummy strip; ac_word=$2
5750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751: $as_echo_n "checking for $ac_word... " >&6; }
5752: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5753: $as_echo_n "(cached) " >&6
5754: else
5755: if test -n "$ac_ct_STRIP"; then
5756: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5757: else
5758: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759: for as_dir in $PATH
5760: do
5761: IFS=$as_save_IFS
5762: test -z "$as_dir" && as_dir=.
5763: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5764: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5765: ac_cv_prog_ac_ct_STRIP="strip"
5766: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767: break 2
5768: fi
5769: done
5770: done
5771: IFS=$as_save_IFS
1.4 paf 5772:
1.5 moko 5773: fi
5774: fi
5775: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5776: if test -n "$ac_ct_STRIP"; then
5777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5778: $as_echo "$ac_ct_STRIP" >&6; }
5779: else
5780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781: $as_echo "no" >&6; }
5782: fi
1.4 paf 5783:
1.5 moko 5784: if test "x$ac_ct_STRIP" = x; then
5785: STRIP=":"
5786: else
5787: case $cross_compiling:$ac_tool_warned in
5788: yes:)
5789: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791: ac_tool_warned=yes ;;
5792: esac
5793: STRIP=$ac_ct_STRIP
5794: fi
5795: else
5796: STRIP="$ac_cv_prog_STRIP"
5797: fi
1.4 paf 5798:
1.5 moko 5799: test -z "$STRIP" && STRIP=:
1.4 paf 5800:
5801:
5802:
5803:
5804:
5805:
1.5 moko 5806: if test -n "$ac_tool_prefix"; then
5807: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810: $as_echo_n "checking for $ac_word... " >&6; }
5811: if ${ac_cv_prog_RANLIB+:} false; then :
5812: $as_echo_n "(cached) " >&6
1.4 paf 5813: else
1.5 moko 5814: if test -n "$RANLIB"; then
5815: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.4 paf 5816: else
1.5 moko 5817: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818: for as_dir in $PATH
5819: do
5820: IFS=$as_save_IFS
5821: test -z "$as_dir" && as_dir=.
5822: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5823: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5824: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5825: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826: break 2
5827: fi
5828: done
5829: done
5830: IFS=$as_save_IFS
1.4 paf 5831:
5832: fi
5833: fi
1.5 moko 5834: RANLIB=$ac_cv_prog_RANLIB
5835: if test -n "$RANLIB"; then
5836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5837: $as_echo "$RANLIB" >&6; }
5838: else
5839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840: $as_echo "no" >&6; }
1.4 paf 5841: fi
5842:
5843:
5844: fi
5845: if test -z "$ac_cv_prog_RANLIB"; then
5846: ac_ct_RANLIB=$RANLIB
5847: # Extract the first word of "ranlib", so it can be a program name with args.
5848: set dummy ranlib; ac_word=$2
1.5 moko 5849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850: $as_echo_n "checking for $ac_word... " >&6; }
5851: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5852: $as_echo_n "(cached) " >&6
1.4 paf 5853: else
5854: if test -n "$ac_ct_RANLIB"; then
5855: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5856: else
5857: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858: for as_dir in $PATH
5859: do
5860: IFS=$as_save_IFS
5861: test -z "$as_dir" && as_dir=.
1.5 moko 5862: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 5863: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.4 paf 5864: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.5 moko 5865: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4 paf 5866: break 2
5867: fi
5868: done
1.5 moko 5869: done
5870: IFS=$as_save_IFS
1.4 paf 5871:
5872: fi
5873: fi
5874: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5875: if test -n "$ac_ct_RANLIB"; then
1.5 moko 5876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5877: $as_echo "$ac_ct_RANLIB" >&6; }
1.4 paf 5878: else
1.5 moko 5879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880: $as_echo "no" >&6; }
1.4 paf 5881: fi
5882:
1.5 moko 5883: if test "x$ac_ct_RANLIB" = x; then
5884: RANLIB=":"
5885: else
5886: case $cross_compiling:$ac_tool_warned in
5887: yes:)
5888: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890: ac_tool_warned=yes ;;
5891: esac
5892: RANLIB=$ac_ct_RANLIB
5893: fi
1.4 paf 5894: else
5895: RANLIB="$ac_cv_prog_RANLIB"
5896: fi
5897:
1.5 moko 5898: test -z "$RANLIB" && RANLIB=:
5899:
5900:
5901:
5902:
5903:
5904:
5905: # Determine commands to create old-style static archives.
5906: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5907: old_postinstall_cmds='chmod 644 $oldlib'
5908: old_postuninstall_cmds=
1.4 paf 5909:
1.5 moko 5910: if test -n "$RANLIB"; then
5911: case $host_os in
5912: openbsd*)
5913: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5914: ;;
5915: *)
5916: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5917: ;;
5918: esac
5919: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.4 paf 5920: fi
5921:
1.5 moko 5922: case $host_os in
5923: darwin*)
5924: lock_old_archive_extraction=yes ;;
5925: *)
5926: lock_old_archive_extraction=no ;;
5927: esac
5928:
1.4 paf 5929:
5930:
5931:
5932:
5933:
5934:
5935:
5936:
5937:
5938:
5939:
5940:
5941:
5942:
5943:
5944:
5945:
5946:
5947:
5948:
5949:
5950:
5951:
5952:
5953:
5954:
5955:
5956:
5957:
5958:
5959:
5960:
5961:
5962:
5963:
5964:
5965:
5966:
1.5 moko 5967: # If no C compiler was specified, use CC.
5968: LTCC=${LTCC-"$CC"}
1.4 paf 5969:
1.5 moko 5970: # If no C compiler flags were specified, use CFLAGS.
5971: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.4 paf 5972:
1.5 moko 5973: # Allow CC to be a program name with arguments.
5974: compiler=$CC
1.4 paf 5975:
5976:
1.5 moko 5977: # Check for command to grab the raw symbol name followed by C symbol from nm.
5978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5979: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5980: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5981: $as_echo_n "(cached) " >&6
5982: else
1.4 paf 5983:
1.5 moko 5984: # These are sane defaults that work on at least a few old systems.
5985: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.4 paf 5986:
1.5 moko 5987: # Character class describing NM global symbol codes.
5988: symcode='[BCDEGRST]'
1.4 paf 5989:
1.5 moko 5990: # Regexp to match symbols that can be accessed directly from C.
5991: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.4 paf 5992:
1.5 moko 5993: # Define system-specific variables.
5994: case $host_os in
5995: aix*)
5996: symcode='[BCDT]'
5997: ;;
5998: cygwin* | mingw* | pw32* | cegcc*)
5999: symcode='[ABCDGISTW]'
6000: ;;
6001: hpux*)
6002: if test "$host_cpu" = ia64; then
6003: symcode='[ABCDEGRST]'
6004: fi
6005: ;;
6006: irix* | nonstopux*)
6007: symcode='[BCDEGRST]'
6008: ;;
6009: osf*)
6010: symcode='[BCDEGQRST]'
6011: ;;
6012: solaris*)
6013: symcode='[BDRT]'
6014: ;;
6015: sco3.2v5*)
6016: symcode='[DT]'
6017: ;;
6018: sysv4.2uw2*)
6019: symcode='[DT]'
6020: ;;
6021: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6022: symcode='[ABDT]'
6023: ;;
6024: sysv4)
6025: symcode='[DFNSTU]'
6026: ;;
6027: esac
1.4 paf 6028:
1.5 moko 6029: # If we're using GNU nm, then use its standard symbol codes.
6030: case `$NM -V 2>&1` in
6031: *GNU* | *'with BFD'*)
6032: symcode='[ABCDGIRSTW]' ;;
6033: esac
1.4 paf 6034:
1.5 moko 6035: # Transform an extracted symbol line into a proper C declaration.
6036: # Some systems (esp. on ia64) link data and code symbols differently,
6037: # so use this general approach.
6038: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.4 paf 6039:
1.5 moko 6040: # Transform an extracted symbol line into symbol name and symbol address
6041: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6042: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1.4 paf 6043:
1.5 moko 6044: # Handle CRLF in mingw tool chain
6045: opt_cr=
6046: case $build_os in
6047: mingw*)
6048: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6049: ;;
6050: esac
1.4 paf 6051:
1.5 moko 6052: # Try without a prefix underscore, then with it.
6053: for ac_symprfx in "" "_"; do
1.4 paf 6054:
1.5 moko 6055: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6056: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.4 paf 6057:
1.5 moko 6058: # Write the raw and C identifiers.
6059: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6060: # Fake it for dumpbin and say T for any non-static function
6061: # and D for any global variable.
6062: # Also find C++ and __fastcall symbols from MSVC++,
6063: # which start with @ or ?.
6064: lt_cv_sys_global_symbol_pipe="$AWK '"\
6065: " {last_section=section; section=\$ 3};"\
6066: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6067: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6068: " \$ 0!~/External *\|/{next};"\
6069: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6070: " {if(hide[section]) next};"\
6071: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6072: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6073: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6074: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6075: " ' prfx=^$ac_symprfx"
6076: else
6077: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6078: fi
6079: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.4 paf 6080:
1.5 moko 6081: # Check to see that the pipe works correctly.
6082: pipe_works=no
1.4 paf 6083:
1.5 moko 6084: rm -f conftest*
6085: cat > conftest.$ac_ext <<_LT_EOF
6086: #ifdef __cplusplus
6087: extern "C" {
6088: #endif
6089: char nm_test_var;
6090: void nm_test_func(void);
6091: void nm_test_func(void){}
6092: #ifdef __cplusplus
1.4 paf 6093: }
1.5 moko 6094: #endif
6095: int main(){nm_test_var='a';nm_test_func();return(0);}
6096: _LT_EOF
6097:
6098: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.4 paf 6099: (eval $ac_compile) 2>&5
6100: ac_status=$?
1.5 moko 6101: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102: test $ac_status = 0; }; then
6103: # Now try to grab the symbols.
6104: nlist=conftest.nm
6105: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6106: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.4 paf 6107: ac_status=$?
1.5 moko 6108: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109: test $ac_status = 0; } && test -s "$nlist"; then
6110: # Try sorting and uniquifying the output.
6111: if sort "$nlist" | uniq > "$nlist"T; then
6112: mv -f "$nlist"T "$nlist"
6113: else
6114: rm -f "$nlist"T
6115: fi
6116:
6117: # Make sure that we snagged all the symbols we need.
6118: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6119: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6120: cat <<_LT_EOF > conftest.$ac_ext
6121: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6122: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6123: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6124: relocations are performed -- see ld's documentation on pseudo-relocs. */
6125: # define LT_DLSYM_CONST
6126: #elif defined(__osf__)
6127: /* This system does not cope well with relocations in const data. */
6128: # define LT_DLSYM_CONST
6129: #else
6130: # define LT_DLSYM_CONST const
6131: #endif
1.4 paf 6132:
1.5 moko 6133: #ifdef __cplusplus
6134: extern "C" {
6135: #endif
1.4 paf 6136:
1.5 moko 6137: _LT_EOF
6138: # Now generate the symbol file.
6139: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.4 paf 6140:
1.5 moko 6141: cat <<_LT_EOF >> conftest.$ac_ext
1.4 paf 6142:
1.5 moko 6143: /* The mapping between symbol names and symbols. */
6144: LT_DLSYM_CONST struct {
6145: const char *name;
6146: void *address;
6147: }
6148: lt__PROGRAM__LTX_preloaded_symbols[] =
6149: {
6150: { "@PROGRAM@", (void *) 0 },
6151: _LT_EOF
6152: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6153: cat <<\_LT_EOF >> conftest.$ac_ext
6154: {0, (void *) 0}
6155: };
1.4 paf 6156:
1.5 moko 6157: /* This works around a problem in FreeBSD linker */
6158: #ifdef FREEBSD_WORKAROUND
6159: static const void *lt_preloaded_setup() {
6160: return lt__PROGRAM__LTX_preloaded_symbols;
6161: }
6162: #endif
1.4 paf 6163:
1.5 moko 6164: #ifdef __cplusplus
6165: }
6166: #endif
6167: _LT_EOF
6168: # Now try linking the two files.
6169: mv conftest.$ac_objext conftstm.$ac_objext
6170: lt_globsym_save_LIBS=$LIBS
6171: lt_globsym_save_CFLAGS=$CFLAGS
6172: LIBS="conftstm.$ac_objext"
6173: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6174: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6175: (eval $ac_link) 2>&5
6176: ac_status=$?
6177: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6178: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6179: pipe_works=yes
6180: fi
6181: LIBS=$lt_globsym_save_LIBS
6182: CFLAGS=$lt_globsym_save_CFLAGS
6183: else
6184: echo "cannot find nm_test_func in $nlist" >&5
6185: fi
6186: else
6187: echo "cannot find nm_test_var in $nlist" >&5
6188: fi
6189: else
6190: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6191: fi
1.4 paf 6192: else
1.5 moko 6193: echo "$progname: failed program was:" >&5
6194: cat conftest.$ac_ext >&5
1.4 paf 6195: fi
1.5 moko 6196: rm -rf conftest* conftst*
1.4 paf 6197:
1.5 moko 6198: # Do not use the global_symbol_pipe unless it works.
6199: if test "$pipe_works" = yes; then
6200: break
1.4 paf 6201: else
1.5 moko 6202: lt_cv_sys_global_symbol_pipe=
1.4 paf 6203: fi
1.5 moko 6204: done
6205:
1.4 paf 6206: fi
6207:
1.5 moko 6208: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6209: lt_cv_sys_global_symbol_to_cdecl=
6210: fi
6211: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6213: $as_echo "failed" >&6; }
1.4 paf 6214: else
1.5 moko 6215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6216: $as_echo "ok" >&6; }
6217: fi
6218:
6219: # Response file support.
6220: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6221: nm_file_list_spec='@'
6222: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6223: nm_file_list_spec='@'
6224: fi
6225:
6226:
1.4 paf 6227:
6228:
6229:
6230:
6231:
6232:
6233:
6234:
6235:
6236:
6237:
6238:
6239:
6240:
6241:
6242:
6243:
6244:
6245:
6246:
6247:
6248:
6249:
6250:
6251:
1.5 moko 6252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6253: $as_echo_n "checking for sysroot... " >&6; }
1.4 paf 6254:
1.5 moko 6255: # Check whether --with-sysroot was given.
6256: if test "${with_sysroot+set}" = set; then :
6257: withval=$with_sysroot;
6258: else
6259: with_sysroot=no
6260: fi
1.4 paf 6261:
6262:
1.5 moko 6263: lt_sysroot=
6264: case ${with_sysroot} in #(
6265: yes)
6266: if test "$GCC" = yes; then
6267: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6268: fi
6269: ;; #(
6270: /*)
6271: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6272: ;; #(
6273: no|'')
6274: ;; #(
6275: *)
6276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6277: $as_echo "${with_sysroot}" >&6; }
6278: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6279: ;;
6280: esac
1.4 paf 6281:
1.5 moko 6282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6283: $as_echo "${lt_sysroot:-no}" >&6; }
1.4 paf 6284:
6285:
6286:
6287:
6288:
1.5 moko 6289: # Check whether --enable-libtool-lock was given.
6290: if test "${enable_libtool_lock+set}" = set; then :
6291: enableval=$enable_libtool_lock;
6292: fi
1.4 paf 6293:
1.5 moko 6294: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.4 paf 6295:
1.5 moko 6296: # Some flags need to be propagated to the compiler or linker for good
6297: # libtool support.
6298: case $host in
6299: ia64-*-hpux*)
6300: # Find out which ABI we are using.
6301: echo 'int i;' > conftest.$ac_ext
6302: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303: (eval $ac_compile) 2>&5
6304: ac_status=$?
6305: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306: test $ac_status = 0; }; then
6307: case `/usr/bin/file conftest.$ac_objext` in
6308: *ELF-32*)
6309: HPUX_IA64_MODE="32"
6310: ;;
6311: *ELF-64*)
6312: HPUX_IA64_MODE="64"
6313: ;;
1.4 paf 6314: esac
6315: fi
1.5 moko 6316: rm -rf conftest*
6317: ;;
6318: *-*-irix6*)
6319: # Find out which ABI we are using.
6320: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6321: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6322: (eval $ac_compile) 2>&5
6323: ac_status=$?
6324: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325: test $ac_status = 0; }; then
6326: if test "$lt_cv_prog_gnu_ld" = yes; then
6327: case `/usr/bin/file conftest.$ac_objext` in
6328: *32-bit*)
6329: LD="${LD-ld} -melf32bsmip"
6330: ;;
6331: *N32*)
6332: LD="${LD-ld} -melf32bmipn32"
6333: ;;
6334: *64-bit*)
6335: LD="${LD-ld} -melf64bmip"
6336: ;;
6337: esac
1.4 paf 6338: else
1.5 moko 6339: case `/usr/bin/file conftest.$ac_objext` in
6340: *32-bit*)
6341: LD="${LD-ld} -32"
6342: ;;
6343: *N32*)
6344: LD="${LD-ld} -n32"
6345: ;;
6346: *64-bit*)
6347: LD="${LD-ld} -64"
1.4 paf 6348: ;;
6349: esac
1.5 moko 6350: fi
6351: fi
6352: rm -rf conftest*
6353: ;;
1.4 paf 6354:
1.5 moko 6355: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6356: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6357: # Find out which ABI we are using.
6358: echo 'int i;' > conftest.$ac_ext
6359: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6360: (eval $ac_compile) 2>&5
6361: ac_status=$?
6362: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6363: test $ac_status = 0; }; then
6364: case `/usr/bin/file conftest.o` in
6365: *32-bit*)
6366: case $host in
6367: x86_64-*kfreebsd*-gnu)
6368: LD="${LD-ld} -m elf_i386_fbsd"
6369: ;;
6370: x86_64-*linux*)
6371: LD="${LD-ld} -m elf_i386"
6372: ;;
6373: ppc64-*linux*|powerpc64-*linux*)
6374: LD="${LD-ld} -m elf32ppclinux"
6375: ;;
6376: s390x-*linux*)
6377: LD="${LD-ld} -m elf_s390"
6378: ;;
6379: sparc64-*linux*)
6380: LD="${LD-ld} -m elf32_sparc"
6381: ;;
6382: esac
6383: ;;
6384: *64-bit*)
6385: case $host in
6386: x86_64-*kfreebsd*-gnu)
6387: LD="${LD-ld} -m elf_x86_64_fbsd"
6388: ;;
6389: x86_64-*linux*)
6390: LD="${LD-ld} -m elf_x86_64"
6391: ;;
6392: ppc*-*linux*|powerpc*-*linux*)
6393: LD="${LD-ld} -m elf64ppc"
6394: ;;
6395: s390*-*linux*|s390*-*tpf*)
6396: LD="${LD-ld} -m elf64_s390"
6397: ;;
6398: sparc*-*linux*)
6399: LD="${LD-ld} -m elf64_sparc"
6400: ;;
6401: esac
6402: ;;
6403: esac
6404: fi
6405: rm -rf conftest*
6406: ;;
1.4 paf 6407:
1.5 moko 6408: *-*-sco3.2v5*)
6409: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6410: SAVE_CFLAGS="$CFLAGS"
6411: CFLAGS="$CFLAGS -belf"
6412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6413: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6414: if ${lt_cv_cc_needs_belf+:} false; then :
6415: $as_echo_n "(cached) " >&6
6416: else
6417: ac_ext=c
6418: ac_cpp='$CPP $CPPFLAGS'
6419: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422:
6423: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424: /* end confdefs.h. */
6425:
6426: int
6427: main ()
6428: {
6429:
6430: ;
6431: return 0;
6432: }
6433: _ACEOF
6434: if ac_fn_c_try_link "$LINENO"; then :
6435: lt_cv_cc_needs_belf=yes
6436: else
6437: lt_cv_cc_needs_belf=no
6438: fi
6439: rm -f core conftest.err conftest.$ac_objext \
6440: conftest$ac_exeext conftest.$ac_ext
6441: ac_ext=c
6442: ac_cpp='$CPP $CPPFLAGS'
6443: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6444: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446:
6447: fi
6448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6449: $as_echo "$lt_cv_cc_needs_belf" >&6; }
6450: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6451: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6452: CFLAGS="$SAVE_CFLAGS"
6453: fi
6454: ;;
6455: *-*solaris*)
6456: # Find out which ABI we are using.
6457: echo 'int i;' > conftest.$ac_ext
6458: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6459: (eval $ac_compile) 2>&5
6460: ac_status=$?
6461: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462: test $ac_status = 0; }; then
6463: case `/usr/bin/file conftest.o` in
6464: *64-bit*)
6465: case $lt_cv_prog_gnu_ld in
6466: yes*)
6467: case $host in
6468: i?86-*-solaris*)
6469: LD="${LD-ld} -m elf_x86_64"
6470: ;;
6471: sparc*-*-solaris*)
6472: LD="${LD-ld} -m elf64_sparc"
6473: ;;
6474: esac
6475: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6476: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6477: LD="${LD-ld}_sol2"
6478: fi
6479: ;;
6480: *)
6481: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6482: LD="${LD-ld} -64"
6483: fi
6484: ;;
6485: esac
6486: ;;
6487: esac
6488: fi
6489: rm -rf conftest*
6490: ;;
6491: esac
6492:
6493: need_locks="$enable_libtool_lock"
6494:
6495: if test -n "$ac_tool_prefix"; then
6496: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6497: set dummy ${ac_tool_prefix}mt; ac_word=$2
6498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499: $as_echo_n "checking for $ac_word... " >&6; }
6500: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6501: $as_echo_n "(cached) " >&6
6502: else
6503: if test -n "$MANIFEST_TOOL"; then
6504: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6505: else
6506: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507: for as_dir in $PATH
6508: do
6509: IFS=$as_save_IFS
6510: test -z "$as_dir" && as_dir=.
6511: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6512: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6513: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6514: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515: break 2
6516: fi
6517: done
6518: done
6519: IFS=$as_save_IFS
6520:
6521: fi
6522: fi
6523: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6524: if test -n "$MANIFEST_TOOL"; then
6525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6526: $as_echo "$MANIFEST_TOOL" >&6; }
6527: else
6528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529: $as_echo "no" >&6; }
6530: fi
6531:
6532:
6533: fi
6534: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6535: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6536: # Extract the first word of "mt", so it can be a program name with args.
6537: set dummy mt; ac_word=$2
6538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539: $as_echo_n "checking for $ac_word... " >&6; }
6540: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6541: $as_echo_n "(cached) " >&6
6542: else
6543: if test -n "$ac_ct_MANIFEST_TOOL"; then
6544: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6545: else
6546: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547: for as_dir in $PATH
6548: do
6549: IFS=$as_save_IFS
6550: test -z "$as_dir" && as_dir=.
6551: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6552: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6553: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6554: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555: break 2
6556: fi
6557: done
6558: done
6559: IFS=$as_save_IFS
6560:
6561: fi
6562: fi
6563: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6564: if test -n "$ac_ct_MANIFEST_TOOL"; then
6565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6566: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6567: else
6568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569: $as_echo "no" >&6; }
6570: fi
6571:
6572: if test "x$ac_ct_MANIFEST_TOOL" = x; then
6573: MANIFEST_TOOL=":"
6574: else
6575: case $cross_compiling:$ac_tool_warned in
6576: yes:)
6577: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579: ac_tool_warned=yes ;;
6580: esac
6581: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6582: fi
6583: else
6584: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6585: fi
6586:
6587: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6589: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6590: if ${lt_cv_path_mainfest_tool+:} false; then :
6591: $as_echo_n "(cached) " >&6
6592: else
6593: lt_cv_path_mainfest_tool=no
6594: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6595: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6596: cat conftest.err >&5
6597: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6598: lt_cv_path_mainfest_tool=yes
6599: fi
6600: rm -f conftest*
6601: fi
6602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6603: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6604: if test "x$lt_cv_path_mainfest_tool" != xyes; then
6605: MANIFEST_TOOL=:
6606: fi
6607:
6608:
6609:
6610:
6611:
6612:
6613: case $host_os in
6614: rhapsody* | darwin*)
6615: if test -n "$ac_tool_prefix"; then
6616: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6617: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619: $as_echo_n "checking for $ac_word... " >&6; }
6620: if ${ac_cv_prog_DSYMUTIL+:} false; then :
6621: $as_echo_n "(cached) " >&6
6622: else
6623: if test -n "$DSYMUTIL"; then
6624: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6625: else
6626: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627: for as_dir in $PATH
6628: do
6629: IFS=$as_save_IFS
6630: test -z "$as_dir" && as_dir=.
6631: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6632: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6633: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6634: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635: break 2
6636: fi
6637: done
6638: done
6639: IFS=$as_save_IFS
6640:
6641: fi
6642: fi
6643: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6644: if test -n "$DSYMUTIL"; then
6645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6646: $as_echo "$DSYMUTIL" >&6; }
6647: else
6648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649: $as_echo "no" >&6; }
6650: fi
6651:
6652:
6653: fi
6654: if test -z "$ac_cv_prog_DSYMUTIL"; then
6655: ac_ct_DSYMUTIL=$DSYMUTIL
6656: # Extract the first word of "dsymutil", so it can be a program name with args.
6657: set dummy dsymutil; ac_word=$2
6658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659: $as_echo_n "checking for $ac_word... " >&6; }
6660: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6661: $as_echo_n "(cached) " >&6
6662: else
6663: if test -n "$ac_ct_DSYMUTIL"; then
6664: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6665: else
6666: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667: for as_dir in $PATH
6668: do
6669: IFS=$as_save_IFS
6670: test -z "$as_dir" && as_dir=.
6671: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6672: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6673: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6674: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675: break 2
6676: fi
6677: done
6678: done
6679: IFS=$as_save_IFS
6680:
6681: fi
6682: fi
6683: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6684: if test -n "$ac_ct_DSYMUTIL"; then
6685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6686: $as_echo "$ac_ct_DSYMUTIL" >&6; }
6687: else
6688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689: $as_echo "no" >&6; }
6690: fi
6691:
6692: if test "x$ac_ct_DSYMUTIL" = x; then
6693: DSYMUTIL=":"
6694: else
6695: case $cross_compiling:$ac_tool_warned in
6696: yes:)
6697: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699: ac_tool_warned=yes ;;
6700: esac
6701: DSYMUTIL=$ac_ct_DSYMUTIL
6702: fi
6703: else
6704: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6705: fi
6706:
6707: if test -n "$ac_tool_prefix"; then
6708: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6709: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711: $as_echo_n "checking for $ac_word... " >&6; }
6712: if ${ac_cv_prog_NMEDIT+:} false; then :
6713: $as_echo_n "(cached) " >&6
6714: else
6715: if test -n "$NMEDIT"; then
6716: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6717: else
6718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719: for as_dir in $PATH
6720: do
6721: IFS=$as_save_IFS
6722: test -z "$as_dir" && as_dir=.
6723: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6724: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6725: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6726: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727: break 2
6728: fi
6729: done
6730: done
6731: IFS=$as_save_IFS
6732:
6733: fi
6734: fi
6735: NMEDIT=$ac_cv_prog_NMEDIT
6736: if test -n "$NMEDIT"; then
6737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6738: $as_echo "$NMEDIT" >&6; }
6739: else
6740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741: $as_echo "no" >&6; }
6742: fi
6743:
6744:
6745: fi
6746: if test -z "$ac_cv_prog_NMEDIT"; then
6747: ac_ct_NMEDIT=$NMEDIT
6748: # Extract the first word of "nmedit", so it can be a program name with args.
6749: set dummy nmedit; ac_word=$2
6750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751: $as_echo_n "checking for $ac_word... " >&6; }
6752: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6753: $as_echo_n "(cached) " >&6
6754: else
6755: if test -n "$ac_ct_NMEDIT"; then
6756: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6757: else
6758: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759: for as_dir in $PATH
6760: do
6761: IFS=$as_save_IFS
6762: test -z "$as_dir" && as_dir=.
6763: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6764: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6765: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6766: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767: break 2
6768: fi
6769: done
6770: done
6771: IFS=$as_save_IFS
6772:
6773: fi
6774: fi
6775: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6776: if test -n "$ac_ct_NMEDIT"; then
6777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6778: $as_echo "$ac_ct_NMEDIT" >&6; }
6779: else
6780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781: $as_echo "no" >&6; }
6782: fi
6783:
6784: if test "x$ac_ct_NMEDIT" = x; then
6785: NMEDIT=":"
6786: else
6787: case $cross_compiling:$ac_tool_warned in
6788: yes:)
6789: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791: ac_tool_warned=yes ;;
6792: esac
6793: NMEDIT=$ac_ct_NMEDIT
6794: fi
6795: else
6796: NMEDIT="$ac_cv_prog_NMEDIT"
6797: fi
6798:
6799: if test -n "$ac_tool_prefix"; then
6800: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6801: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803: $as_echo_n "checking for $ac_word... " >&6; }
6804: if ${ac_cv_prog_LIPO+:} false; then :
6805: $as_echo_n "(cached) " >&6
6806: else
6807: if test -n "$LIPO"; then
6808: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6809: else
6810: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811: for as_dir in $PATH
6812: do
6813: IFS=$as_save_IFS
6814: test -z "$as_dir" && as_dir=.
6815: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6816: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6817: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6818: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819: break 2
6820: fi
6821: done
6822: done
6823: IFS=$as_save_IFS
6824:
6825: fi
6826: fi
6827: LIPO=$ac_cv_prog_LIPO
6828: if test -n "$LIPO"; then
6829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6830: $as_echo "$LIPO" >&6; }
6831: else
6832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833: $as_echo "no" >&6; }
6834: fi
6835:
6836:
6837: fi
6838: if test -z "$ac_cv_prog_LIPO"; then
6839: ac_ct_LIPO=$LIPO
6840: # Extract the first word of "lipo", so it can be a program name with args.
6841: set dummy lipo; ac_word=$2
6842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843: $as_echo_n "checking for $ac_word... " >&6; }
6844: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6845: $as_echo_n "(cached) " >&6
6846: else
6847: if test -n "$ac_ct_LIPO"; then
6848: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6849: else
6850: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851: for as_dir in $PATH
6852: do
6853: IFS=$as_save_IFS
6854: test -z "$as_dir" && as_dir=.
6855: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6856: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6857: ac_cv_prog_ac_ct_LIPO="lipo"
6858: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859: break 2
6860: fi
6861: done
6862: done
6863: IFS=$as_save_IFS
6864:
6865: fi
6866: fi
6867: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6868: if test -n "$ac_ct_LIPO"; then
6869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6870: $as_echo "$ac_ct_LIPO" >&6; }
6871: else
6872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873: $as_echo "no" >&6; }
6874: fi
6875:
6876: if test "x$ac_ct_LIPO" = x; then
6877: LIPO=":"
6878: else
6879: case $cross_compiling:$ac_tool_warned in
6880: yes:)
6881: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883: ac_tool_warned=yes ;;
6884: esac
6885: LIPO=$ac_ct_LIPO
6886: fi
6887: else
6888: LIPO="$ac_cv_prog_LIPO"
6889: fi
6890:
6891: if test -n "$ac_tool_prefix"; then
6892: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6893: set dummy ${ac_tool_prefix}otool; ac_word=$2
6894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895: $as_echo_n "checking for $ac_word... " >&6; }
6896: if ${ac_cv_prog_OTOOL+:} false; then :
6897: $as_echo_n "(cached) " >&6
6898: else
6899: if test -n "$OTOOL"; then
6900: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6901: else
6902: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903: for as_dir in $PATH
6904: do
6905: IFS=$as_save_IFS
6906: test -z "$as_dir" && as_dir=.
6907: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6908: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6909: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6910: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911: break 2
6912: fi
6913: done
6914: done
6915: IFS=$as_save_IFS
6916:
6917: fi
6918: fi
6919: OTOOL=$ac_cv_prog_OTOOL
6920: if test -n "$OTOOL"; then
6921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6922: $as_echo "$OTOOL" >&6; }
6923: else
6924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925: $as_echo "no" >&6; }
6926: fi
6927:
6928:
6929: fi
6930: if test -z "$ac_cv_prog_OTOOL"; then
6931: ac_ct_OTOOL=$OTOOL
6932: # Extract the first word of "otool", so it can be a program name with args.
6933: set dummy otool; ac_word=$2
6934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935: $as_echo_n "checking for $ac_word... " >&6; }
6936: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6937: $as_echo_n "(cached) " >&6
6938: else
6939: if test -n "$ac_ct_OTOOL"; then
6940: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6941: else
6942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943: for as_dir in $PATH
6944: do
6945: IFS=$as_save_IFS
6946: test -z "$as_dir" && as_dir=.
6947: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 6948: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6949: ac_cv_prog_ac_ct_OTOOL="otool"
6950: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951: break 2
6952: fi
6953: done
6954: done
6955: IFS=$as_save_IFS
6956:
6957: fi
6958: fi
6959: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6960: if test -n "$ac_ct_OTOOL"; then
6961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6962: $as_echo "$ac_ct_OTOOL" >&6; }
6963: else
6964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965: $as_echo "no" >&6; }
6966: fi
6967:
6968: if test "x$ac_ct_OTOOL" = x; then
6969: OTOOL=":"
6970: else
6971: case $cross_compiling:$ac_tool_warned in
6972: yes:)
6973: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975: ac_tool_warned=yes ;;
6976: esac
6977: OTOOL=$ac_ct_OTOOL
6978: fi
6979: else
6980: OTOOL="$ac_cv_prog_OTOOL"
6981: fi
6982:
6983: if test -n "$ac_tool_prefix"; then
6984: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6985: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987: $as_echo_n "checking for $ac_word... " >&6; }
6988: if ${ac_cv_prog_OTOOL64+:} false; then :
6989: $as_echo_n "(cached) " >&6
6990: else
6991: if test -n "$OTOOL64"; then
6992: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6993: else
6994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995: for as_dir in $PATH
6996: do
6997: IFS=$as_save_IFS
6998: test -z "$as_dir" && as_dir=.
6999: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 7000: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7001: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7002: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003: break 2
7004: fi
7005: done
7006: done
7007: IFS=$as_save_IFS
7008:
7009: fi
7010: fi
7011: OTOOL64=$ac_cv_prog_OTOOL64
7012: if test -n "$OTOOL64"; then
7013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7014: $as_echo "$OTOOL64" >&6; }
7015: else
7016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017: $as_echo "no" >&6; }
7018: fi
7019:
7020:
7021: fi
7022: if test -z "$ac_cv_prog_OTOOL64"; then
7023: ac_ct_OTOOL64=$OTOOL64
7024: # Extract the first word of "otool64", so it can be a program name with args.
7025: set dummy otool64; ac_word=$2
7026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027: $as_echo_n "checking for $ac_word... " >&6; }
7028: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7029: $as_echo_n "(cached) " >&6
7030: else
7031: if test -n "$ac_ct_OTOOL64"; then
7032: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7033: else
7034: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035: for as_dir in $PATH
7036: do
7037: IFS=$as_save_IFS
7038: test -z "$as_dir" && as_dir=.
7039: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 7040: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7041: ac_cv_prog_ac_ct_OTOOL64="otool64"
7042: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043: break 2
7044: fi
7045: done
7046: done
7047: IFS=$as_save_IFS
7048:
7049: fi
7050: fi
7051: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7052: if test -n "$ac_ct_OTOOL64"; then
7053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7054: $as_echo "$ac_ct_OTOOL64" >&6; }
7055: else
7056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057: $as_echo "no" >&6; }
7058: fi
7059:
7060: if test "x$ac_ct_OTOOL64" = x; then
7061: OTOOL64=":"
7062: else
7063: case $cross_compiling:$ac_tool_warned in
7064: yes:)
7065: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067: ac_tool_warned=yes ;;
7068: esac
7069: OTOOL64=$ac_ct_OTOOL64
7070: fi
7071: else
7072: OTOOL64="$ac_cv_prog_OTOOL64"
7073: fi
7074:
7075:
7076:
7077:
7078:
7079:
7080:
7081:
7082:
7083:
7084:
7085:
7086:
7087:
7088:
7089:
7090:
7091:
7092:
7093:
7094:
7095:
7096:
7097:
7098:
7099:
7100:
7101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7102: $as_echo_n "checking for -single_module linker flag... " >&6; }
7103: if ${lt_cv_apple_cc_single_mod+:} false; then :
7104: $as_echo_n "(cached) " >&6
7105: else
7106: lt_cv_apple_cc_single_mod=no
7107: if test -z "${LT_MULTI_MODULE}"; then
7108: # By default we will add the -single_module flag. You can override
7109: # by either setting the environment variable LT_MULTI_MODULE
7110: # non-empty at configure time, or by adding -multi_module to the
7111: # link flags.
7112: rm -rf libconftest.dylib*
7113: echo "int foo(void){return 1;}" > conftest.c
7114: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7115: -dynamiclib -Wl,-single_module conftest.c" >&5
7116: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7117: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7118: _lt_result=$?
7119: # If there is a non-empty error log, and "single_module"
7120: # appears in it, assume the flag caused a linker warning
7121: if test -s conftest.err && $GREP single_module conftest.err; then
7122: cat conftest.err >&5
7123: # Otherwise, if the output was created with a 0 exit code from
7124: # the compiler, it worked.
7125: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7126: lt_cv_apple_cc_single_mod=yes
7127: else
7128: cat conftest.err >&5
7129: fi
7130: rm -rf libconftest.dylib*
7131: rm -f conftest.*
7132: fi
7133: fi
7134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7135: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7136:
7137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7138: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7139: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7140: $as_echo_n "(cached) " >&6
7141: else
7142: lt_cv_ld_exported_symbols_list=no
7143: save_LDFLAGS=$LDFLAGS
7144: echo "_main" > conftest.sym
7145: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7146: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147: /* end confdefs.h. */
7148:
7149: int
7150: main ()
7151: {
7152:
7153: ;
7154: return 0;
7155: }
7156: _ACEOF
7157: if ac_fn_c_try_link "$LINENO"; then :
7158: lt_cv_ld_exported_symbols_list=yes
7159: else
7160: lt_cv_ld_exported_symbols_list=no
7161: fi
7162: rm -f core conftest.err conftest.$ac_objext \
7163: conftest$ac_exeext conftest.$ac_ext
7164: LDFLAGS="$save_LDFLAGS"
7165:
7166: fi
7167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7168: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7169:
7170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7171: $as_echo_n "checking for -force_load linker flag... " >&6; }
7172: if ${lt_cv_ld_force_load+:} false; then :
7173: $as_echo_n "(cached) " >&6
7174: else
7175: lt_cv_ld_force_load=no
7176: cat > conftest.c << _LT_EOF
7177: int forced_loaded() { return 2;}
7178: _LT_EOF
7179: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7180: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7181: echo "$AR cru libconftest.a conftest.o" >&5
7182: $AR cru libconftest.a conftest.o 2>&5
7183: echo "$RANLIB libconftest.a" >&5
7184: $RANLIB libconftest.a 2>&5
7185: cat > conftest.c << _LT_EOF
7186: int main() { return 0;}
7187: _LT_EOF
7188: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7189: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7190: _lt_result=$?
7191: if test -s conftest.err && $GREP force_load conftest.err; then
7192: cat conftest.err >&5
7193: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7194: lt_cv_ld_force_load=yes
7195: else
7196: cat conftest.err >&5
7197: fi
7198: rm -f conftest.err libconftest.a conftest conftest.c
7199: rm -rf conftest.dSYM
7200:
7201: fi
7202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7203: $as_echo "$lt_cv_ld_force_load" >&6; }
7204: case $host_os in
7205: rhapsody* | darwin1.[012])
7206: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7207: darwin1.*)
7208: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7209: darwin*) # darwin 5.x on
7210: # if running on 10.5 or later, the deployment target defaults
7211: # to the OS version, if on x86, and 10.4, the deployment
7212: # target defaults to 10.4. Don't you love it?
7213: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7214: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7215: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7216: 10.[012]*)
7217: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7218: 10.*)
7219: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7220: esac
7221: ;;
7222: esac
7223: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7224: _lt_dar_single_mod='$single_module'
7225: fi
7226: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7227: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7228: else
7229: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7230: fi
7231: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7232: _lt_dsymutil='~$DSYMUTIL $lib || :'
7233: else
7234: _lt_dsymutil=
7235: fi
7236: ;;
7237: esac
7238:
7239: ac_ext=c
7240: ac_cpp='$CPP $CPPFLAGS'
7241: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7242: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7243: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7244: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7245: $as_echo_n "checking how to run the C preprocessor... " >&6; }
7246: # On Suns, sometimes $CPP names a directory.
7247: if test -n "$CPP" && test -d "$CPP"; then
7248: CPP=
7249: fi
7250: if test -z "$CPP"; then
7251: if ${ac_cv_prog_CPP+:} false; then :
7252: $as_echo_n "(cached) " >&6
7253: else
7254: # Double quotes because CPP needs to be expanded
7255: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7256: do
7257: ac_preproc_ok=false
7258: for ac_c_preproc_warn_flag in '' yes
7259: do
7260: # Use a header file that comes with gcc, so configuring glibc
7261: # with a fresh cross-compiler works.
7262: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263: # <limits.h> exists even on freestanding compilers.
7264: # On the NeXT, cc -E runs the code through the compiler's parser,
7265: # not just through cpp. "Syntax error" is here to catch this case.
7266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267: /* end confdefs.h. */
7268: #ifdef __STDC__
7269: # include <limits.h>
7270: #else
7271: # include <assert.h>
7272: #endif
7273: Syntax error
7274: _ACEOF
7275: if ac_fn_c_try_cpp "$LINENO"; then :
7276:
7277: else
7278: # Broken: fails on valid input.
7279: continue
7280: fi
7281: rm -f conftest.err conftest.i conftest.$ac_ext
7282:
7283: # OK, works on sane cases. Now check whether nonexistent headers
7284: # can be detected and how.
7285: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286: /* end confdefs.h. */
7287: #include <ac_nonexistent.h>
7288: _ACEOF
7289: if ac_fn_c_try_cpp "$LINENO"; then :
7290: # Broken: success on invalid input.
7291: continue
7292: else
7293: # Passes both tests.
7294: ac_preproc_ok=:
7295: break
7296: fi
7297: rm -f conftest.err conftest.i conftest.$ac_ext
7298:
7299: done
7300: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7301: rm -f conftest.i conftest.err conftest.$ac_ext
7302: if $ac_preproc_ok; then :
7303: break
7304: fi
7305:
7306: done
7307: ac_cv_prog_CPP=$CPP
7308:
7309: fi
7310: CPP=$ac_cv_prog_CPP
7311: else
7312: ac_cv_prog_CPP=$CPP
7313: fi
7314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7315: $as_echo "$CPP" >&6; }
7316: ac_preproc_ok=false
7317: for ac_c_preproc_warn_flag in '' yes
7318: do
7319: # Use a header file that comes with gcc, so configuring glibc
7320: # with a fresh cross-compiler works.
7321: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7322: # <limits.h> exists even on freestanding compilers.
7323: # On the NeXT, cc -E runs the code through the compiler's parser,
7324: # not just through cpp. "Syntax error" is here to catch this case.
7325: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326: /* end confdefs.h. */
7327: #ifdef __STDC__
7328: # include <limits.h>
7329: #else
7330: # include <assert.h>
7331: #endif
7332: Syntax error
7333: _ACEOF
7334: if ac_fn_c_try_cpp "$LINENO"; then :
7335:
7336: else
7337: # Broken: fails on valid input.
7338: continue
7339: fi
7340: rm -f conftest.err conftest.i conftest.$ac_ext
7341:
7342: # OK, works on sane cases. Now check whether nonexistent headers
7343: # can be detected and how.
7344: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345: /* end confdefs.h. */
7346: #include <ac_nonexistent.h>
7347: _ACEOF
7348: if ac_fn_c_try_cpp "$LINENO"; then :
7349: # Broken: success on invalid input.
7350: continue
7351: else
7352: # Passes both tests.
7353: ac_preproc_ok=:
7354: break
7355: fi
7356: rm -f conftest.err conftest.i conftest.$ac_ext
7357:
7358: done
7359: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7360: rm -f conftest.i conftest.err conftest.$ac_ext
7361: if $ac_preproc_ok; then :
7362:
7363: else
7364: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7365: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7366: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7367: See \`config.log' for more details" "$LINENO" 5; }
7368: fi
7369:
7370: ac_ext=c
7371: ac_cpp='$CPP $CPPFLAGS'
7372: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375:
7376:
7377: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7378: $as_echo_n "checking for ANSI C header files... " >&6; }
7379: if ${ac_cv_header_stdc+:} false; then :
7380: $as_echo_n "(cached) " >&6
7381: else
7382: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383: /* end confdefs.h. */
7384: #include <stdlib.h>
7385: #include <stdarg.h>
7386: #include <string.h>
7387: #include <float.h>
7388:
7389: int
7390: main ()
7391: {
7392:
7393: ;
7394: return 0;
7395: }
7396: _ACEOF
7397: if ac_fn_c_try_compile "$LINENO"; then :
7398: ac_cv_header_stdc=yes
7399: else
7400: ac_cv_header_stdc=no
7401: fi
7402: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7403:
7404: if test $ac_cv_header_stdc = yes; then
7405: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7406: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407: /* end confdefs.h. */
7408: #include <string.h>
7409:
7410: _ACEOF
7411: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7412: $EGREP "memchr" >/dev/null 2>&1; then :
7413:
7414: else
7415: ac_cv_header_stdc=no
7416: fi
7417: rm -f conftest*
7418:
7419: fi
7420:
7421: if test $ac_cv_header_stdc = yes; then
7422: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7423: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424: /* end confdefs.h. */
7425: #include <stdlib.h>
7426:
7427: _ACEOF
7428: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429: $EGREP "free" >/dev/null 2>&1; then :
7430:
7431: else
7432: ac_cv_header_stdc=no
7433: fi
7434: rm -f conftest*
7435:
7436: fi
7437:
7438: if test $ac_cv_header_stdc = yes; then
7439: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7440: if test "$cross_compiling" = yes; then :
7441: :
7442: else
7443: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444: /* end confdefs.h. */
7445: #include <ctype.h>
7446: #include <stdlib.h>
7447: #if ((' ' & 0x0FF) == 0x020)
7448: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7449: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7450: #else
7451: # define ISLOWER(c) \
7452: (('a' <= (c) && (c) <= 'i') \
7453: || ('j' <= (c) && (c) <= 'r') \
7454: || ('s' <= (c) && (c) <= 'z'))
7455: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7456: #endif
7457:
7458: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7459: int
7460: main ()
7461: {
7462: int i;
7463: for (i = 0; i < 256; i++)
7464: if (XOR (islower (i), ISLOWER (i))
7465: || toupper (i) != TOUPPER (i))
7466: return 2;
7467: return 0;
7468: }
7469: _ACEOF
7470: if ac_fn_c_try_run "$LINENO"; then :
7471:
7472: else
7473: ac_cv_header_stdc=no
7474: fi
7475: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7476: conftest.$ac_objext conftest.beam conftest.$ac_ext
7477: fi
7478:
7479: fi
7480: fi
7481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7482: $as_echo "$ac_cv_header_stdc" >&6; }
7483: if test $ac_cv_header_stdc = yes; then
7484:
7485: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7486:
7487: fi
7488:
7489: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7490: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7491: inttypes.h stdint.h unistd.h
7492: do :
7493: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7494: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7495: "
7496: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7497: cat >>confdefs.h <<_ACEOF
7498: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7499: _ACEOF
7500:
7501: fi
7502:
7503: done
7504:
7505:
7506: for ac_header in dlfcn.h
7507: do :
7508: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7509: "
7510: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7511: cat >>confdefs.h <<_ACEOF
7512: #define HAVE_DLFCN_H 1
7513: _ACEOF
7514:
7515: fi
7516:
7517: done
7518:
7519:
7520:
7521:
7522:
7523: # Set options
7524: enable_dlopen=yes
7525: enable_win32_dll=yes
7526:
7527: case $host in
7528: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7529: if test -n "$ac_tool_prefix"; then
7530: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7531: set dummy ${ac_tool_prefix}as; ac_word=$2
7532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533: $as_echo_n "checking for $ac_word... " >&6; }
7534: if ${ac_cv_prog_AS+:} false; then :
7535: $as_echo_n "(cached) " >&6
7536: else
7537: if test -n "$AS"; then
7538: ac_cv_prog_AS="$AS" # Let the user override the test.
7539: else
7540: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541: for as_dir in $PATH
7542: do
7543: IFS=$as_save_IFS
7544: test -z "$as_dir" && as_dir=.
7545: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 7546: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7547: ac_cv_prog_AS="${ac_tool_prefix}as"
7548: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549: break 2
7550: fi
7551: done
7552: done
7553: IFS=$as_save_IFS
7554:
7555: fi
7556: fi
7557: AS=$ac_cv_prog_AS
7558: if test -n "$AS"; then
7559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7560: $as_echo "$AS" >&6; }
7561: else
7562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563: $as_echo "no" >&6; }
7564: fi
7565:
7566:
7567: fi
7568: if test -z "$ac_cv_prog_AS"; then
7569: ac_ct_AS=$AS
7570: # Extract the first word of "as", so it can be a program name with args.
7571: set dummy as; ac_word=$2
7572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573: $as_echo_n "checking for $ac_word... " >&6; }
7574: if ${ac_cv_prog_ac_ct_AS+:} false; then :
7575: $as_echo_n "(cached) " >&6
7576: else
7577: if test -n "$ac_ct_AS"; then
7578: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7579: else
7580: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581: for as_dir in $PATH
7582: do
7583: IFS=$as_save_IFS
7584: test -z "$as_dir" && as_dir=.
7585: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 7586: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7587: ac_cv_prog_ac_ct_AS="as"
7588: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589: break 2
7590: fi
7591: done
7592: done
7593: IFS=$as_save_IFS
7594:
7595: fi
7596: fi
7597: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7598: if test -n "$ac_ct_AS"; then
7599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7600: $as_echo "$ac_ct_AS" >&6; }
7601: else
7602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603: $as_echo "no" >&6; }
7604: fi
7605:
7606: if test "x$ac_ct_AS" = x; then
7607: AS="false"
7608: else
7609: case $cross_compiling:$ac_tool_warned in
7610: yes:)
7611: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7612: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7613: ac_tool_warned=yes ;;
7614: esac
7615: AS=$ac_ct_AS
7616: fi
7617: else
7618: AS="$ac_cv_prog_AS"
7619: fi
7620:
7621: if test -n "$ac_tool_prefix"; then
7622: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7623: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625: $as_echo_n "checking for $ac_word... " >&6; }
7626: if ${ac_cv_prog_DLLTOOL+:} false; then :
7627: $as_echo_n "(cached) " >&6
7628: else
7629: if test -n "$DLLTOOL"; then
7630: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7631: else
7632: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633: for as_dir in $PATH
7634: do
7635: IFS=$as_save_IFS
7636: test -z "$as_dir" && as_dir=.
7637: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 7638: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7639: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7640: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641: break 2
7642: fi
7643: done
7644: done
7645: IFS=$as_save_IFS
7646:
7647: fi
7648: fi
7649: DLLTOOL=$ac_cv_prog_DLLTOOL
7650: if test -n "$DLLTOOL"; then
7651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7652: $as_echo "$DLLTOOL" >&6; }
7653: else
7654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655: $as_echo "no" >&6; }
7656: fi
7657:
7658:
7659: fi
7660: if test -z "$ac_cv_prog_DLLTOOL"; then
7661: ac_ct_DLLTOOL=$DLLTOOL
7662: # Extract the first word of "dlltool", so it can be a program name with args.
7663: set dummy dlltool; ac_word=$2
7664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665: $as_echo_n "checking for $ac_word... " >&6; }
7666: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7667: $as_echo_n "(cached) " >&6
7668: else
7669: if test -n "$ac_ct_DLLTOOL"; then
7670: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7671: else
7672: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673: for as_dir in $PATH
7674: do
7675: IFS=$as_save_IFS
7676: test -z "$as_dir" && as_dir=.
7677: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 7678: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7679: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7680: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681: break 2
7682: fi
7683: done
7684: done
7685: IFS=$as_save_IFS
7686:
7687: fi
7688: fi
7689: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7690: if test -n "$ac_ct_DLLTOOL"; then
7691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7692: $as_echo "$ac_ct_DLLTOOL" >&6; }
7693: else
7694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695: $as_echo "no" >&6; }
7696: fi
7697:
7698: if test "x$ac_ct_DLLTOOL" = x; then
7699: DLLTOOL="false"
7700: else
7701: case $cross_compiling:$ac_tool_warned in
7702: yes:)
7703: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7704: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7705: ac_tool_warned=yes ;;
7706: esac
7707: DLLTOOL=$ac_ct_DLLTOOL
7708: fi
7709: else
7710: DLLTOOL="$ac_cv_prog_DLLTOOL"
7711: fi
7712:
7713: if test -n "$ac_tool_prefix"; then
7714: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7715: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717: $as_echo_n "checking for $ac_word... " >&6; }
7718: if ${ac_cv_prog_OBJDUMP+:} false; then :
7719: $as_echo_n "(cached) " >&6
7720: else
7721: if test -n "$OBJDUMP"; then
7722: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7723: else
7724: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725: for as_dir in $PATH
7726: do
7727: IFS=$as_save_IFS
7728: test -z "$as_dir" && as_dir=.
7729: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 7730: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7731: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7732: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733: break 2
7734: fi
7735: done
7736: done
7737: IFS=$as_save_IFS
7738:
7739: fi
7740: fi
7741: OBJDUMP=$ac_cv_prog_OBJDUMP
7742: if test -n "$OBJDUMP"; then
7743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7744: $as_echo "$OBJDUMP" >&6; }
7745: else
7746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747: $as_echo "no" >&6; }
7748: fi
7749:
7750:
7751: fi
7752: if test -z "$ac_cv_prog_OBJDUMP"; then
7753: ac_ct_OBJDUMP=$OBJDUMP
7754: # Extract the first word of "objdump", so it can be a program name with args.
7755: set dummy objdump; ac_word=$2
7756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757: $as_echo_n "checking for $ac_word... " >&6; }
7758: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7759: $as_echo_n "(cached) " >&6
7760: else
7761: if test -n "$ac_ct_OBJDUMP"; then
7762: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7763: else
7764: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765: for as_dir in $PATH
7766: do
7767: IFS=$as_save_IFS
7768: test -z "$as_dir" && as_dir=.
7769: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 moko 7770: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7771: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7772: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773: break 2
7774: fi
7775: done
7776: done
7777: IFS=$as_save_IFS
7778:
7779: fi
7780: fi
7781: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7782: if test -n "$ac_ct_OBJDUMP"; then
7783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7784: $as_echo "$ac_ct_OBJDUMP" >&6; }
7785: else
7786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787: $as_echo "no" >&6; }
7788: fi
7789:
7790: if test "x$ac_ct_OBJDUMP" = x; then
7791: OBJDUMP="false"
7792: else
7793: case $cross_compiling:$ac_tool_warned in
7794: yes:)
7795: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7796: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797: ac_tool_warned=yes ;;
7798: esac
7799: OBJDUMP=$ac_ct_OBJDUMP
7800: fi
7801: else
7802: OBJDUMP="$ac_cv_prog_OBJDUMP"
7803: fi
7804:
7805: ;;
7806: esac
7807:
7808: test -z "$AS" && AS=as
7809:
7810:
7811:
7812:
7813:
7814: test -z "$DLLTOOL" && DLLTOOL=dlltool
7815:
7816:
7817:
7818:
7819:
7820: test -z "$OBJDUMP" && OBJDUMP=objdump
7821:
7822:
7823:
7824:
7825:
7826:
7827:
7828:
7829:
7830: # Check whether --enable-shared was given.
7831: if test "${enable_shared+set}" = set; then :
7832: enableval=$enable_shared; p=${PACKAGE-default}
7833: case $enableval in
7834: yes) enable_shared=yes ;;
7835: no) enable_shared=no ;;
7836: *)
7837: enable_shared=no
7838: # Look at the argument we got. We use all the common list separators.
7839: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7840: for pkg in $enableval; do
7841: IFS="$lt_save_ifs"
7842: if test "X$pkg" = "X$p"; then
7843: enable_shared=yes
7844: fi
7845: done
7846: IFS="$lt_save_ifs"
7847: ;;
7848: esac
7849: else
7850: enable_shared=yes
7851: fi
7852:
7853:
7854:
7855:
7856:
7857:
7858:
7859:
7860:
7861: # Check whether --enable-static was given.
7862: if test "${enable_static+set}" = set; then :
7863: enableval=$enable_static; p=${PACKAGE-default}
7864: case $enableval in
7865: yes) enable_static=yes ;;
7866: no) enable_static=no ;;
7867: *)
7868: enable_static=no
7869: # Look at the argument we got. We use all the common list separators.
7870: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7871: for pkg in $enableval; do
7872: IFS="$lt_save_ifs"
7873: if test "X$pkg" = "X$p"; then
7874: enable_static=yes
7875: fi
7876: done
7877: IFS="$lt_save_ifs"
7878: ;;
7879: esac
7880: else
7881: enable_static=yes
7882: fi
7883:
7884:
7885:
7886:
7887:
7888:
7889:
7890:
7891:
7892:
7893: # Check whether --with-pic was given.
7894: if test "${with_pic+set}" = set; then :
7895: withval=$with_pic; lt_p=${PACKAGE-default}
7896: case $withval in
7897: yes|no) pic_mode=$withval ;;
7898: *)
7899: pic_mode=default
7900: # Look at the argument we got. We use all the common list separators.
7901: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7902: for lt_pkg in $withval; do
7903: IFS="$lt_save_ifs"
7904: if test "X$lt_pkg" = "X$lt_p"; then
7905: pic_mode=yes
7906: fi
7907: done
7908: IFS="$lt_save_ifs"
7909: ;;
7910: esac
7911: else
7912: pic_mode=default
7913: fi
7914:
7915:
7916: test -z "$pic_mode" && pic_mode=default
7917:
7918:
7919:
7920:
7921:
7922:
7923:
7924: # Check whether --enable-fast-install was given.
7925: if test "${enable_fast_install+set}" = set; then :
7926: enableval=$enable_fast_install; p=${PACKAGE-default}
7927: case $enableval in
7928: yes) enable_fast_install=yes ;;
7929: no) enable_fast_install=no ;;
7930: *)
7931: enable_fast_install=no
7932: # Look at the argument we got. We use all the common list separators.
7933: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7934: for pkg in $enableval; do
7935: IFS="$lt_save_ifs"
7936: if test "X$pkg" = "X$p"; then
7937: enable_fast_install=yes
7938: fi
7939: done
7940: IFS="$lt_save_ifs"
7941: ;;
7942: esac
7943: else
7944: enable_fast_install=yes
7945: fi
7946:
7947:
7948:
7949:
7950:
7951:
7952:
7953:
7954:
7955:
7956:
7957: # This can be used to rebuild libtool when needed
7958: LIBTOOL_DEPS="$ltmain"
7959:
7960: # Always use our own libtool.
7961: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7962:
7963:
7964:
7965:
7966:
7967:
7968:
7969:
7970:
7971:
7972:
7973:
7974:
7975:
7976:
7977:
7978:
7979:
7980:
7981:
7982:
7983:
7984:
7985:
7986:
7987:
7988:
7989:
7990:
7991:
7992: test -z "$LN_S" && LN_S="ln -s"
7993:
7994:
7995:
7996:
7997:
7998:
7999:
8000:
8001:
8002:
8003:
8004:
8005:
8006:
8007: if test -n "${ZSH_VERSION+set}" ; then
8008: setopt NO_GLOB_SUBST
8009: fi
8010:
8011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8012: $as_echo_n "checking for objdir... " >&6; }
8013: if ${lt_cv_objdir+:} false; then :
8014: $as_echo_n "(cached) " >&6
8015: else
8016: rm -f .libs 2>/dev/null
8017: mkdir .libs 2>/dev/null
8018: if test -d .libs; then
8019: lt_cv_objdir=.libs
8020: else
8021: # MS-DOS does not allow filenames that begin with a dot.
8022: lt_cv_objdir=_libs
8023: fi
8024: rmdir .libs 2>/dev/null
8025: fi
8026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8027: $as_echo "$lt_cv_objdir" >&6; }
8028: objdir=$lt_cv_objdir
8029:
8030:
8031:
8032:
8033:
8034: cat >>confdefs.h <<_ACEOF
8035: #define LT_OBJDIR "$lt_cv_objdir/"
8036: _ACEOF
8037:
8038:
8039:
8040:
8041: case $host_os in
8042: aix3*)
8043: # AIX sometimes has problems with the GCC collect2 program. For some
8044: # reason, if we set the COLLECT_NAMES environment variable, the problems
8045: # vanish in a puff of smoke.
8046: if test "X${COLLECT_NAMES+set}" != Xset; then
8047: COLLECT_NAMES=
8048: export COLLECT_NAMES
8049: fi
8050: ;;
8051: esac
8052:
8053: # Global variables:
8054: ofile=libtool
8055: can_build_shared=yes
8056:
8057: # All known linkers require a `.a' archive for static linking (except MSVC,
8058: # which needs '.lib').
8059: libext=a
8060:
8061: with_gnu_ld="$lt_cv_prog_gnu_ld"
8062:
8063: old_CC="$CC"
8064: old_CFLAGS="$CFLAGS"
8065:
8066: # Set sane defaults for various variables
8067: test -z "$CC" && CC=cc
8068: test -z "$LTCC" && LTCC=$CC
8069: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8070: test -z "$LD" && LD=ld
8071: test -z "$ac_objext" && ac_objext=o
8072:
8073: for cc_temp in $compiler""; do
8074: case $cc_temp in
8075: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8076: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8077: \-*) ;;
8078: *) break;;
8079: esac
8080: done
8081: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8082:
8083:
8084: # Only perform the check for file, if the check method requires it
8085: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8086: case $deplibs_check_method in
8087: file_magic*)
8088: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8090: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8091: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8092: $as_echo_n "(cached) " >&6
8093: else
8094: case $MAGIC_CMD in
8095: [\\/*] | ?:[\\/]*)
8096: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8097: ;;
8098: *)
8099: lt_save_MAGIC_CMD="$MAGIC_CMD"
8100: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8101: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8102: for ac_dir in $ac_dummy; do
8103: IFS="$lt_save_ifs"
8104: test -z "$ac_dir" && ac_dir=.
8105: if test -f $ac_dir/${ac_tool_prefix}file; then
8106: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8107: if test -n "$file_magic_test_file"; then
8108: case $deplibs_check_method in
8109: "file_magic "*)
8110: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8111: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8112: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8113: $EGREP "$file_magic_regex" > /dev/null; then
8114: :
8115: else
8116: cat <<_LT_EOF 1>&2
8117:
8118: *** Warning: the command libtool uses to detect shared libraries,
8119: *** $file_magic_cmd, produces output that libtool cannot recognize.
8120: *** The result is that libtool may fail to recognize shared libraries
8121: *** as such. This will affect the creation of libtool libraries that
8122: *** depend on shared libraries, but programs linked with such libtool
8123: *** libraries will work regardless of this problem. Nevertheless, you
8124: *** may want to report the problem to your system manager and/or to
8125: *** bug-libtool@gnu.org
8126:
8127: _LT_EOF
8128: fi ;;
8129: esac
8130: fi
8131: break
8132: fi
8133: done
8134: IFS="$lt_save_ifs"
8135: MAGIC_CMD="$lt_save_MAGIC_CMD"
8136: ;;
8137: esac
8138: fi
8139:
8140: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8141: if test -n "$MAGIC_CMD"; then
8142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8143: $as_echo "$MAGIC_CMD" >&6; }
8144: else
8145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146: $as_echo "no" >&6; }
8147: fi
8148:
8149:
8150:
8151:
8152:
8153: if test -z "$lt_cv_path_MAGIC_CMD"; then
8154: if test -n "$ac_tool_prefix"; then
8155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8156: $as_echo_n "checking for file... " >&6; }
8157: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8158: $as_echo_n "(cached) " >&6
8159: else
8160: case $MAGIC_CMD in
8161: [\\/*] | ?:[\\/]*)
8162: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8163: ;;
8164: *)
8165: lt_save_MAGIC_CMD="$MAGIC_CMD"
8166: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8167: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8168: for ac_dir in $ac_dummy; do
8169: IFS="$lt_save_ifs"
8170: test -z "$ac_dir" && ac_dir=.
8171: if test -f $ac_dir/file; then
8172: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8173: if test -n "$file_magic_test_file"; then
8174: case $deplibs_check_method in
8175: "file_magic "*)
8176: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8177: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8178: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8179: $EGREP "$file_magic_regex" > /dev/null; then
8180: :
8181: else
8182: cat <<_LT_EOF 1>&2
8183:
8184: *** Warning: the command libtool uses to detect shared libraries,
8185: *** $file_magic_cmd, produces output that libtool cannot recognize.
8186: *** The result is that libtool may fail to recognize shared libraries
8187: *** as such. This will affect the creation of libtool libraries that
8188: *** depend on shared libraries, but programs linked with such libtool
8189: *** libraries will work regardless of this problem. Nevertheless, you
8190: *** may want to report the problem to your system manager and/or to
8191: *** bug-libtool@gnu.org
8192:
8193: _LT_EOF
8194: fi ;;
8195: esac
8196: fi
8197: break
8198: fi
8199: done
8200: IFS="$lt_save_ifs"
8201: MAGIC_CMD="$lt_save_MAGIC_CMD"
8202: ;;
8203: esac
8204: fi
8205:
8206: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8207: if test -n "$MAGIC_CMD"; then
8208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8209: $as_echo "$MAGIC_CMD" >&6; }
8210: else
8211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212: $as_echo "no" >&6; }
8213: fi
8214:
8215:
8216: else
8217: MAGIC_CMD=:
8218: fi
8219: fi
8220:
8221: fi
8222: ;;
8223: esac
8224:
8225: # Use C for the default configuration in the libtool script
8226:
8227: lt_save_CC="$CC"
8228: ac_ext=c
8229: ac_cpp='$CPP $CPPFLAGS'
8230: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8231: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8232: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8233:
8234:
8235: # Source file extension for C test sources.
8236: ac_ext=c
8237:
8238: # Object file extension for compiled C test sources.
8239: objext=o
8240: objext=$objext
8241:
8242: # Code to be used in simple compile tests
8243: lt_simple_compile_test_code="int some_variable = 0;"
8244:
8245: # Code to be used in simple link tests
8246: lt_simple_link_test_code='int main(){return(0);}'
8247:
8248:
8249:
8250:
8251:
8252:
8253:
8254: # If no C compiler was specified, use CC.
8255: LTCC=${LTCC-"$CC"}
8256:
8257: # If no C compiler flags were specified, use CFLAGS.
8258: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8259:
8260: # Allow CC to be a program name with arguments.
8261: compiler=$CC
8262:
8263: # Save the default compiler, since it gets overwritten when the other
8264: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8265: compiler_DEFAULT=$CC
8266:
8267: # save warnings/boilerplate of simple test code
8268: ac_outfile=conftest.$ac_objext
8269: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8270: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8271: _lt_compiler_boilerplate=`cat conftest.err`
8272: $RM conftest*
8273:
8274: ac_outfile=conftest.$ac_objext
8275: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8276: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8277: _lt_linker_boilerplate=`cat conftest.err`
8278: $RM -r conftest*
8279:
8280:
8281: ## CAVEAT EMPTOR:
8282: ## There is no encapsulation within the following macros, do not change
8283: ## the running order or otherwise move them around unless you know exactly
8284: ## what you are doing...
8285: if test -n "$compiler"; then
8286:
8287: lt_prog_compiler_no_builtin_flag=
8288:
8289: if test "$GCC" = yes; then
8290: case $cc_basename in
8291: nvcc*)
8292: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8293: *)
8294: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8295: esac
8296:
8297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8298: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8299: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8300: $as_echo_n "(cached) " >&6
8301: else
8302: lt_cv_prog_compiler_rtti_exceptions=no
8303: ac_outfile=conftest.$ac_objext
8304: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8305: lt_compiler_flag="-fno-rtti -fno-exceptions"
8306: # Insert the option either (1) after the last *FLAGS variable, or
8307: # (2) before a word containing "conftest.", or (3) at the end.
8308: # Note that $ac_compile itself does not contain backslashes and begins
8309: # with a dollar sign (not a hyphen), so the echo should work correctly.
8310: # The option is referenced via a variable to avoid confusing sed.
8311: lt_compile=`echo "$ac_compile" | $SED \
8312: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8313: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8314: -e 's:$: $lt_compiler_flag:'`
8315: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8316: (eval "$lt_compile" 2>conftest.err)
8317: ac_status=$?
8318: cat conftest.err >&5
8319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320: if (exit $ac_status) && test -s "$ac_outfile"; then
8321: # The compiler can only warn and ignore the option if not recognized
8322: # So say no if there are warnings other than the usual output.
8323: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8324: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8325: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8326: lt_cv_prog_compiler_rtti_exceptions=yes
8327: fi
8328: fi
8329: $RM conftest*
8330:
8331: fi
8332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8333: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8334:
8335: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8336: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8337: else
8338: :
8339: fi
8340:
8341: fi
8342:
8343:
8344:
8345:
8346:
8347:
8348: lt_prog_compiler_wl=
8349: lt_prog_compiler_pic=
8350: lt_prog_compiler_static=
8351:
8352:
8353: if test "$GCC" = yes; then
8354: lt_prog_compiler_wl='-Wl,'
8355: lt_prog_compiler_static='-static'
8356:
8357: case $host_os in
8358: aix*)
8359: # All AIX code is PIC.
8360: if test "$host_cpu" = ia64; then
8361: # AIX 5 now supports IA64 processor
8362: lt_prog_compiler_static='-Bstatic'
8363: fi
8364: ;;
8365:
8366: amigaos*)
8367: case $host_cpu in
8368: powerpc)
8369: # see comment about AmigaOS4 .so support
8370: lt_prog_compiler_pic='-fPIC'
8371: ;;
8372: m68k)
8373: # FIXME: we need at least 68020 code to build shared libraries, but
8374: # adding the `-m68020' flag to GCC prevents building anything better,
8375: # like `-m68040'.
8376: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8377: ;;
8378: esac
8379: ;;
8380:
8381: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8382: # PIC is the default for these OSes.
8383: ;;
8384:
8385: mingw* | cygwin* | pw32* | os2* | cegcc*)
8386: # This hack is so that the source file can tell whether it is being
8387: # built for inclusion in a dll (and should export symbols for example).
8388: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8389: # (--disable-auto-import) libraries
8390: lt_prog_compiler_pic='-DDLL_EXPORT'
8391: ;;
8392:
8393: darwin* | rhapsody*)
8394: # PIC is the default on this platform
8395: # Common symbols not allowed in MH_DYLIB files
8396: lt_prog_compiler_pic='-fno-common'
8397: ;;
8398:
8399: haiku*)
8400: # PIC is the default for Haiku.
8401: # The "-static" flag exists, but is broken.
8402: lt_prog_compiler_static=
8403: ;;
8404:
8405: hpux*)
8406: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8407: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8408: # sets the default TLS model and affects inlining.
8409: case $host_cpu in
8410: hppa*64*)
8411: # +Z the default
8412: ;;
8413: *)
8414: lt_prog_compiler_pic='-fPIC'
8415: ;;
8416: esac
8417: ;;
8418:
8419: interix[3-9]*)
8420: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8421: # Instead, we relocate shared libraries at runtime.
8422: ;;
8423:
8424: msdosdjgpp*)
8425: # Just because we use GCC doesn't mean we suddenly get shared libraries
8426: # on systems that don't support them.
8427: lt_prog_compiler_can_build_shared=no
8428: enable_shared=no
8429: ;;
8430:
8431: *nto* | *qnx*)
8432: # QNX uses GNU C++, but need to define -shared option too, otherwise
8433: # it will coredump.
8434: lt_prog_compiler_pic='-fPIC -shared'
8435: ;;
8436:
8437: sysv4*MP*)
8438: if test -d /usr/nec; then
8439: lt_prog_compiler_pic=-Kconform_pic
8440: fi
8441: ;;
8442:
8443: *)
8444: lt_prog_compiler_pic='-fPIC'
8445: ;;
8446: esac
8447:
8448: case $cc_basename in
8449: nvcc*) # Cuda Compiler Driver 2.2
8450: lt_prog_compiler_wl='-Xlinker '
8451: if test -n "$lt_prog_compiler_pic"; then
8452: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8453: fi
8454: ;;
8455: esac
8456: else
8457: # PORTME Check for flag to pass linker flags through the system compiler.
8458: case $host_os in
8459: aix*)
8460: lt_prog_compiler_wl='-Wl,'
8461: if test "$host_cpu" = ia64; then
8462: # AIX 5 now supports IA64 processor
8463: lt_prog_compiler_static='-Bstatic'
8464: else
8465: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8466: fi
8467: ;;
8468:
8469: mingw* | cygwin* | pw32* | os2* | cegcc*)
8470: # This hack is so that the source file can tell whether it is being
8471: # built for inclusion in a dll (and should export symbols for example).
8472: lt_prog_compiler_pic='-DDLL_EXPORT'
8473: ;;
8474:
8475: hpux9* | hpux10* | hpux11*)
8476: lt_prog_compiler_wl='-Wl,'
8477: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8478: # not for PA HP-UX.
8479: case $host_cpu in
8480: hppa*64*|ia64*)
8481: # +Z the default
8482: ;;
8483: *)
8484: lt_prog_compiler_pic='+Z'
8485: ;;
8486: esac
8487: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8488: lt_prog_compiler_static='${wl}-a ${wl}archive'
8489: ;;
8490:
8491: irix5* | irix6* | nonstopux*)
8492: lt_prog_compiler_wl='-Wl,'
8493: # PIC (with -KPIC) is the default.
8494: lt_prog_compiler_static='-non_shared'
8495: ;;
8496:
8497: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8498: case $cc_basename in
8499: # old Intel for x86_64 which still supported -KPIC.
8500: ecc*)
8501: lt_prog_compiler_wl='-Wl,'
8502: lt_prog_compiler_pic='-KPIC'
8503: lt_prog_compiler_static='-static'
8504: ;;
8505: # icc used to be incompatible with GCC.
8506: # ICC 10 doesn't accept -KPIC any more.
8507: icc* | ifort*)
8508: lt_prog_compiler_wl='-Wl,'
8509: lt_prog_compiler_pic='-fPIC'
8510: lt_prog_compiler_static='-static'
8511: ;;
8512: # Lahey Fortran 8.1.
8513: lf95*)
8514: lt_prog_compiler_wl='-Wl,'
8515: lt_prog_compiler_pic='--shared'
8516: lt_prog_compiler_static='--static'
8517: ;;
8518: nagfor*)
8519: # NAG Fortran compiler
8520: lt_prog_compiler_wl='-Wl,-Wl,,'
8521: lt_prog_compiler_pic='-PIC'
8522: lt_prog_compiler_static='-Bstatic'
8523: ;;
8524: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8525: # Portland Group compilers (*not* the Pentium gcc compiler,
8526: # which looks to be a dead project)
8527: lt_prog_compiler_wl='-Wl,'
8528: lt_prog_compiler_pic='-fpic'
8529: lt_prog_compiler_static='-Bstatic'
8530: ;;
8531: ccc*)
8532: lt_prog_compiler_wl='-Wl,'
8533: # All Alpha code is PIC.
8534: lt_prog_compiler_static='-non_shared'
8535: ;;
8536: xl* | bgxl* | bgf* | mpixl*)
8537: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8538: lt_prog_compiler_wl='-Wl,'
8539: lt_prog_compiler_pic='-qpic'
8540: lt_prog_compiler_static='-qstaticlink'
8541: ;;
8542: *)
8543: case `$CC -V 2>&1 | sed 5q` in
8544: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8545: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8546: lt_prog_compiler_pic='-KPIC'
8547: lt_prog_compiler_static='-Bstatic'
8548: lt_prog_compiler_wl=''
8549: ;;
8550: *Sun\ F* | *Sun*Fortran*)
8551: lt_prog_compiler_pic='-KPIC'
8552: lt_prog_compiler_static='-Bstatic'
8553: lt_prog_compiler_wl='-Qoption ld '
8554: ;;
8555: *Sun\ C*)
8556: # Sun C 5.9
8557: lt_prog_compiler_pic='-KPIC'
8558: lt_prog_compiler_static='-Bstatic'
8559: lt_prog_compiler_wl='-Wl,'
8560: ;;
8561: *Intel*\ [CF]*Compiler*)
8562: lt_prog_compiler_wl='-Wl,'
8563: lt_prog_compiler_pic='-fPIC'
8564: lt_prog_compiler_static='-static'
8565: ;;
8566: *Portland\ Group*)
8567: lt_prog_compiler_wl='-Wl,'
8568: lt_prog_compiler_pic='-fpic'
8569: lt_prog_compiler_static='-Bstatic'
8570: ;;
8571: esac
8572: ;;
8573: esac
8574: ;;
8575:
8576: newsos6)
8577: lt_prog_compiler_pic='-KPIC'
8578: lt_prog_compiler_static='-Bstatic'
8579: ;;
8580:
8581: *nto* | *qnx*)
8582: # QNX uses GNU C++, but need to define -shared option too, otherwise
8583: # it will coredump.
8584: lt_prog_compiler_pic='-fPIC -shared'
8585: ;;
8586:
8587: osf3* | osf4* | osf5*)
8588: lt_prog_compiler_wl='-Wl,'
8589: # All OSF/1 code is PIC.
8590: lt_prog_compiler_static='-non_shared'
8591: ;;
8592:
8593: rdos*)
8594: lt_prog_compiler_static='-non_shared'
8595: ;;
8596:
8597: solaris*)
8598: lt_prog_compiler_pic='-KPIC'
8599: lt_prog_compiler_static='-Bstatic'
8600: case $cc_basename in
8601: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8602: lt_prog_compiler_wl='-Qoption ld ';;
8603: *)
8604: lt_prog_compiler_wl='-Wl,';;
8605: esac
8606: ;;
8607:
8608: sunos4*)
8609: lt_prog_compiler_wl='-Qoption ld '
8610: lt_prog_compiler_pic='-PIC'
8611: lt_prog_compiler_static='-Bstatic'
8612: ;;
8613:
8614: sysv4 | sysv4.2uw2* | sysv4.3*)
8615: lt_prog_compiler_wl='-Wl,'
8616: lt_prog_compiler_pic='-KPIC'
8617: lt_prog_compiler_static='-Bstatic'
8618: ;;
8619:
8620: sysv4*MP*)
8621: if test -d /usr/nec ;then
8622: lt_prog_compiler_pic='-Kconform_pic'
8623: lt_prog_compiler_static='-Bstatic'
8624: fi
8625: ;;
8626:
8627: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8628: lt_prog_compiler_wl='-Wl,'
8629: lt_prog_compiler_pic='-KPIC'
8630: lt_prog_compiler_static='-Bstatic'
8631: ;;
8632:
8633: unicos*)
8634: lt_prog_compiler_wl='-Wl,'
8635: lt_prog_compiler_can_build_shared=no
8636: ;;
8637:
8638: uts4*)
8639: lt_prog_compiler_pic='-pic'
8640: lt_prog_compiler_static='-Bstatic'
8641: ;;
8642:
8643: *)
8644: lt_prog_compiler_can_build_shared=no
8645: ;;
8646: esac
8647: fi
8648:
8649: case $host_os in
8650: # For platforms which do not support PIC, -DPIC is meaningless:
8651: *djgpp*)
8652: lt_prog_compiler_pic=
8653: ;;
8654: *)
8655: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8656: ;;
8657: esac
8658:
8659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8660: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8661: if ${lt_cv_prog_compiler_pic+:} false; then :
8662: $as_echo_n "(cached) " >&6
8663: else
8664: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8665: fi
8666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8667: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8668: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8669:
8670: #
8671: # Check to make sure the PIC flag actually works.
8672: #
8673: if test -n "$lt_prog_compiler_pic"; then
8674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8675: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8676: if ${lt_cv_prog_compiler_pic_works+:} false; then :
8677: $as_echo_n "(cached) " >&6
8678: else
8679: lt_cv_prog_compiler_pic_works=no
8680: ac_outfile=conftest.$ac_objext
8681: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8682: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8683: # Insert the option either (1) after the last *FLAGS variable, or
8684: # (2) before a word containing "conftest.", or (3) at the end.
8685: # Note that $ac_compile itself does not contain backslashes and begins
8686: # with a dollar sign (not a hyphen), so the echo should work correctly.
8687: # The option is referenced via a variable to avoid confusing sed.
8688: lt_compile=`echo "$ac_compile" | $SED \
8689: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691: -e 's:$: $lt_compiler_flag:'`
8692: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8693: (eval "$lt_compile" 2>conftest.err)
8694: ac_status=$?
8695: cat conftest.err >&5
8696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697: if (exit $ac_status) && test -s "$ac_outfile"; then
8698: # The compiler can only warn and ignore the option if not recognized
8699: # So say no if there are warnings other than the usual output.
8700: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8701: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8702: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8703: lt_cv_prog_compiler_pic_works=yes
8704: fi
8705: fi
8706: $RM conftest*
8707:
8708: fi
8709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8710: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8711:
8712: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8713: case $lt_prog_compiler_pic in
8714: "" | " "*) ;;
8715: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8716: esac
8717: else
8718: lt_prog_compiler_pic=
8719: lt_prog_compiler_can_build_shared=no
8720: fi
8721:
8722: fi
8723:
8724:
8725:
8726:
8727:
8728:
8729:
8730:
8731:
8732:
8733:
8734: #
8735: # Check to make sure the static flag actually works.
8736: #
8737: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8739: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8740: if ${lt_cv_prog_compiler_static_works+:} false; then :
8741: $as_echo_n "(cached) " >&6
8742: else
8743: lt_cv_prog_compiler_static_works=no
8744: save_LDFLAGS="$LDFLAGS"
8745: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8746: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8747: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8748: # The linker can only warn and ignore the option if not recognized
8749: # So say no if there are warnings
8750: if test -s conftest.err; then
8751: # Append any errors to the config.log.
8752: cat conftest.err 1>&5
8753: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8754: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8755: if diff conftest.exp conftest.er2 >/dev/null; then
8756: lt_cv_prog_compiler_static_works=yes
8757: fi
8758: else
8759: lt_cv_prog_compiler_static_works=yes
8760: fi
8761: fi
8762: $RM -r conftest*
8763: LDFLAGS="$save_LDFLAGS"
8764:
8765: fi
8766: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8767: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8768:
8769: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8770: :
8771: else
8772: lt_prog_compiler_static=
8773: fi
8774:
8775:
8776:
8777:
8778:
8779:
8780:
8781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8782: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8783: if ${lt_cv_prog_compiler_c_o+:} false; then :
8784: $as_echo_n "(cached) " >&6
8785: else
8786: lt_cv_prog_compiler_c_o=no
8787: $RM -r conftest 2>/dev/null
8788: mkdir conftest
8789: cd conftest
8790: mkdir out
8791: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8792:
8793: lt_compiler_flag="-o out/conftest2.$ac_objext"
8794: # Insert the option either (1) after the last *FLAGS variable, or
8795: # (2) before a word containing "conftest.", or (3) at the end.
8796: # Note that $ac_compile itself does not contain backslashes and begins
8797: # with a dollar sign (not a hyphen), so the echo should work correctly.
8798: lt_compile=`echo "$ac_compile" | $SED \
8799: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8800: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8801: -e 's:$: $lt_compiler_flag:'`
8802: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8803: (eval "$lt_compile" 2>out/conftest.err)
8804: ac_status=$?
8805: cat out/conftest.err >&5
8806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8808: then
8809: # The compiler can only warn and ignore the option if not recognized
8810: # So say no if there are warnings
8811: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8812: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8813: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8814: lt_cv_prog_compiler_c_o=yes
8815: fi
8816: fi
8817: chmod u+w . 2>&5
8818: $RM conftest*
8819: # SGI C++ compiler will create directory out/ii_files/ for
8820: # template instantiation
8821: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8822: $RM out/* && rmdir out
8823: cd ..
8824: $RM -r conftest
8825: $RM conftest*
8826:
8827: fi
8828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8829: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8830:
8831:
8832:
8833:
8834:
8835:
8836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8837: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8838: if ${lt_cv_prog_compiler_c_o+:} false; then :
8839: $as_echo_n "(cached) " >&6
8840: else
8841: lt_cv_prog_compiler_c_o=no
8842: $RM -r conftest 2>/dev/null
8843: mkdir conftest
8844: cd conftest
8845: mkdir out
8846: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847:
8848: lt_compiler_flag="-o out/conftest2.$ac_objext"
8849: # Insert the option either (1) after the last *FLAGS variable, or
8850: # (2) before a word containing "conftest.", or (3) at the end.
8851: # Note that $ac_compile itself does not contain backslashes and begins
8852: # with a dollar sign (not a hyphen), so the echo should work correctly.
8853: lt_compile=`echo "$ac_compile" | $SED \
8854: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856: -e 's:$: $lt_compiler_flag:'`
8857: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858: (eval "$lt_compile" 2>out/conftest.err)
8859: ac_status=$?
8860: cat out/conftest.err >&5
8861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8863: then
8864: # The compiler can only warn and ignore the option if not recognized
8865: # So say no if there are warnings
8866: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8867: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8868: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8869: lt_cv_prog_compiler_c_o=yes
8870: fi
8871: fi
8872: chmod u+w . 2>&5
8873: $RM conftest*
8874: # SGI C++ compiler will create directory out/ii_files/ for
8875: # template instantiation
8876: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8877: $RM out/* && rmdir out
8878: cd ..
8879: $RM -r conftest
8880: $RM conftest*
8881:
8882: fi
8883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8884: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8885:
8886:
8887:
8888:
8889: hard_links="nottested"
8890: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8891: # do not overwrite the value of need_locks provided by the user
8892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8893: $as_echo_n "checking if we can lock with hard links... " >&6; }
8894: hard_links=yes
8895: $RM conftest*
8896: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8897: touch conftest.a
8898: ln conftest.a conftest.b 2>&5 || hard_links=no
8899: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8901: $as_echo "$hard_links" >&6; }
8902: if test "$hard_links" = no; then
8903: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8904: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8905: need_locks=warn
8906: fi
8907: else
8908: need_locks=no
8909: fi
8910:
8911:
8912:
8913:
8914:
8915:
8916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8917: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8918:
8919: runpath_var=
8920: allow_undefined_flag=
8921: always_export_symbols=no
8922: archive_cmds=
8923: archive_expsym_cmds=
8924: compiler_needs_object=no
8925: enable_shared_with_static_runtimes=no
8926: export_dynamic_flag_spec=
8927: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8928: hardcode_automatic=no
8929: hardcode_direct=no
8930: hardcode_direct_absolute=no
8931: hardcode_libdir_flag_spec=
8932: hardcode_libdir_separator=
8933: hardcode_minus_L=no
8934: hardcode_shlibpath_var=unsupported
8935: inherit_rpath=no
8936: link_all_deplibs=unknown
8937: module_cmds=
8938: module_expsym_cmds=
8939: old_archive_from_new_cmds=
8940: old_archive_from_expsyms_cmds=
8941: thread_safe_flag_spec=
8942: whole_archive_flag_spec=
8943: # include_expsyms should be a list of space-separated symbols to be *always*
8944: # included in the symbol list
8945: include_expsyms=
8946: # exclude_expsyms can be an extended regexp of symbols to exclude
8947: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8948: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8949: # as well as any symbol that contains `d'.
8950: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8951: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8952: # platforms (ab)use it in PIC code, but their linkers get confused if
8953: # the symbol is explicitly referenced. Since portable code cannot
8954: # rely on this symbol name, it's probably fine to never include it in
8955: # preloaded symbol tables.
8956: # Exclude shared library initialization/finalization symbols.
8957: extract_expsyms_cmds=
8958:
8959: case $host_os in
8960: cygwin* | mingw* | pw32* | cegcc*)
8961: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8962: # When not using gcc, we currently assume that we are using
8963: # Microsoft Visual C++.
8964: if test "$GCC" != yes; then
8965: with_gnu_ld=no
8966: fi
8967: ;;
8968: interix*)
8969: # we just hope/assume this is gcc and not c89 (= MSVC++)
8970: with_gnu_ld=yes
8971: ;;
8972: openbsd*)
8973: with_gnu_ld=no
8974: ;;
8975: esac
8976:
8977: ld_shlibs=yes
8978:
8979: # On some targets, GNU ld is compatible enough with the native linker
8980: # that we're better off using the native interface for both.
8981: lt_use_gnu_ld_interface=no
8982: if test "$with_gnu_ld" = yes; then
8983: case $host_os in
8984: aix*)
8985: # The AIX port of GNU ld has always aspired to compatibility
8986: # with the native linker. However, as the warning in the GNU ld
8987: # block says, versions before 2.19.5* couldn't really create working
8988: # shared libraries, regardless of the interface used.
8989: case `$LD -v 2>&1` in
8990: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8991: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8992: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8993: *)
8994: lt_use_gnu_ld_interface=yes
8995: ;;
8996: esac
8997: ;;
8998: *)
8999: lt_use_gnu_ld_interface=yes
9000: ;;
9001: esac
9002: fi
9003:
9004: if test "$lt_use_gnu_ld_interface" = yes; then
9005: # If archive_cmds runs LD, not CC, wlarc should be empty
9006: wlarc='${wl}'
9007:
9008: # Set some defaults for GNU ld with shared library support. These
9009: # are reset later if shared libraries are not supported. Putting them
9010: # here allows them to be overridden if necessary.
9011: runpath_var=LD_RUN_PATH
9012: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9013: export_dynamic_flag_spec='${wl}--export-dynamic'
9014: # ancient GNU ld didn't support --whole-archive et. al.
9015: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9016: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9017: else
9018: whole_archive_flag_spec=
9019: fi
9020: supports_anon_versioning=no
9021: case `$LD -v 2>&1` in
9022: *GNU\ gold*) supports_anon_versioning=yes ;;
9023: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9024: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9025: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9026: *\ 2.11.*) ;; # other 2.11 versions
9027: *) supports_anon_versioning=yes ;;
9028: esac
9029:
9030: # See if GNU ld supports shared libraries.
9031: case $host_os in
9032: aix[3-9]*)
9033: # On AIX/PPC, the GNU linker is very broken
9034: if test "$host_cpu" != ia64; then
9035: ld_shlibs=no
9036: cat <<_LT_EOF 1>&2
9037:
9038: *** Warning: the GNU linker, at least up to release 2.19, is reported
9039: *** to be unable to reliably create shared libraries on AIX.
9040: *** Therefore, libtool is disabling shared libraries support. If you
9041: *** really care for shared libraries, you may want to install binutils
9042: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9043: *** You will then need to restart the configuration process.
9044:
9045: _LT_EOF
9046: fi
9047: ;;
9048:
9049: amigaos*)
9050: case $host_cpu in
9051: powerpc)
9052: # see comment about AmigaOS4 .so support
9053: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054: archive_expsym_cmds=''
9055: ;;
9056: m68k)
9057: 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)'
9058: hardcode_libdir_flag_spec='-L$libdir'
9059: hardcode_minus_L=yes
9060: ;;
9061: esac
9062: ;;
9063:
9064: beos*)
9065: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9066: allow_undefined_flag=unsupported
9067: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9068: # support --undefined. This deserves some investigation. FIXME
9069: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070: else
9071: ld_shlibs=no
9072: fi
9073: ;;
9074:
9075: cygwin* | mingw* | pw32* | cegcc*)
9076: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9077: # as there is no search path for DLLs.
9078: hardcode_libdir_flag_spec='-L$libdir'
9079: export_dynamic_flag_spec='${wl}--export-all-symbols'
9080: allow_undefined_flag=unsupported
9081: always_export_symbols=no
9082: enable_shared_with_static_runtimes=yes
9083: 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'
9084: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9085:
9086: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9087: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9088: # If the export-symbols file already is a .def file (1st line
9089: # is EXPORTS), use it as is; otherwise, prepend...
9090: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9091: cp $export_symbols $output_objdir/$soname.def;
9092: else
9093: echo EXPORTS > $output_objdir/$soname.def;
9094: cat $export_symbols >> $output_objdir/$soname.def;
9095: fi~
9096: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9097: else
9098: ld_shlibs=no
9099: fi
9100: ;;
9101:
9102: haiku*)
9103: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104: link_all_deplibs=yes
9105: ;;
9106:
9107: interix[3-9]*)
9108: hardcode_direct=no
9109: hardcode_shlibpath_var=no
9110: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9111: export_dynamic_flag_spec='${wl}-E'
9112: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9113: # Instead, shared libraries are loaded at an image base (0x10000000 by
9114: # default) and relocated if they conflict, which is a slow very memory
9115: # consuming and fragmenting process. To avoid this, we pick a random,
9116: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9117: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9118: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9119: 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'
9120: ;;
9121:
9122: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9123: tmp_diet=no
9124: if test "$host_os" = linux-dietlibc; then
9125: case $cc_basename in
9126: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9127: esac
9128: fi
9129: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9130: && test "$tmp_diet" = no
9131: then
9132: tmp_addflag=' $pic_flag'
9133: tmp_sharedflag='-shared'
9134: case $cc_basename,$host_cpu in
9135: pgcc*) # Portland Group C compiler
9136: 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'
9137: tmp_addflag=' $pic_flag'
9138: ;;
9139: pgf77* | pgf90* | pgf95* | pgfortran*)
9140: # Portland Group f77 and f90 compilers
9141: 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'
9142: tmp_addflag=' $pic_flag -Mnomain' ;;
9143: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9144: tmp_addflag=' -i_dynamic' ;;
9145: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9146: tmp_addflag=' -i_dynamic -nofor_main' ;;
9147: ifc* | ifort*) # Intel Fortran compiler
9148: tmp_addflag=' -nofor_main' ;;
9149: lf95*) # Lahey Fortran 8.1
9150: whole_archive_flag_spec=
9151: tmp_sharedflag='--shared' ;;
9152: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9153: tmp_sharedflag='-qmkshrobj'
9154: tmp_addflag= ;;
9155: nvcc*) # Cuda Compiler Driver 2.2
9156: 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'
9157: compiler_needs_object=yes
9158: ;;
9159: esac
9160: case `$CC -V 2>&1 | sed 5q` in
9161: *Sun\ C*) # Sun C 5.9
9162: 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'
9163: compiler_needs_object=yes
9164: tmp_sharedflag='-G' ;;
9165: *Sun\ F*) # Sun Fortran 8.3
9166: tmp_sharedflag='-G' ;;
9167: esac
9168: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169:
9170: if test "x$supports_anon_versioning" = xyes; then
9171: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9172: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9173: echo "local: *; };" >> $output_objdir/$libname.ver~
9174: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9175: fi
9176:
9177: case $cc_basename in
9178: xlf* | bgf* | bgxlf* | mpixlf*)
9179: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9180: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9181: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9182: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9183: if test "x$supports_anon_versioning" = xyes; then
9184: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9185: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9186: echo "local: *; };" >> $output_objdir/$libname.ver~
9187: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9188: fi
9189: ;;
9190: esac
9191: else
9192: ld_shlibs=no
9193: fi
9194: ;;
9195:
9196: netbsd*)
9197: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9198: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9199: wlarc=
9200: else
9201: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9203: fi
9204: ;;
9205:
9206: solaris*)
9207: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9208: ld_shlibs=no
9209: cat <<_LT_EOF 1>&2
9210:
9211: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9212: *** create shared libraries on Solaris systems. Therefore, libtool
9213: *** is disabling shared libraries support. We urge you to upgrade GNU
9214: *** binutils to release 2.9.1 or newer. Another option is to modify
9215: *** your PATH or compiler configuration so that the native linker is
9216: *** used, and then restart.
9217:
9218: _LT_EOF
9219: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9220: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9222: else
9223: ld_shlibs=no
9224: fi
9225: ;;
9226:
9227: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9228: case `$LD -v 2>&1` in
9229: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9230: ld_shlibs=no
9231: cat <<_LT_EOF 1>&2
9232:
9233: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9234: *** reliably create shared libraries on SCO systems. Therefore, libtool
9235: *** is disabling shared libraries support. We urge you to upgrade GNU
9236: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9237: *** your PATH or compiler configuration so that the native linker is
9238: *** used, and then restart.
9239:
9240: _LT_EOF
9241: ;;
9242: *)
9243: # For security reasons, it is highly recommended that you always
9244: # use absolute paths for naming shared libraries, and exclude the
9245: # DT_RUNPATH tag from executables and libraries. But doing so
9246: # requires that you compile everything twice, which is a pain.
9247: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9248: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9251: else
9252: ld_shlibs=no
9253: fi
9254: ;;
9255: esac
9256: ;;
9257:
9258: sunos4*)
9259: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9260: wlarc=
9261: hardcode_direct=yes
9262: hardcode_shlibpath_var=no
9263: ;;
9264:
9265: *)
9266: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9267: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9269: else
9270: ld_shlibs=no
9271: fi
9272: ;;
9273: esac
9274:
9275: if test "$ld_shlibs" = no; then
9276: runpath_var=
9277: hardcode_libdir_flag_spec=
9278: export_dynamic_flag_spec=
9279: whole_archive_flag_spec=
9280: fi
9281: else
9282: # PORTME fill in a description of your system's linker (not GNU ld)
9283: case $host_os in
9284: aix3*)
9285: allow_undefined_flag=unsupported
9286: always_export_symbols=yes
9287: 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'
9288: # Note: this linker hardcodes the directories in LIBPATH if there
9289: # are no directories specified by -L.
9290: hardcode_minus_L=yes
9291: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9292: # Neither direct hardcoding nor static linking is supported with a
9293: # broken collect2.
9294: hardcode_direct=unsupported
9295: fi
9296: ;;
9297:
9298: aix[4-9]*)
9299: if test "$host_cpu" = ia64; then
9300: # On IA64, the linker does run time linking by default, so we don't
9301: # have to do anything special.
9302: aix_use_runtimelinking=no
9303: exp_sym_flag='-Bexport'
9304: no_entry_flag=""
9305: else
9306: # If we're using GNU nm, then we don't want the "-C" option.
9307: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9308: # Also, AIX nm treats weak defined symbols like other global
9309: # defined symbols, whereas GNU nm marks them as "W".
9310: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9311: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9312: else
9313: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9314: fi
9315: aix_use_runtimelinking=no
9316:
9317: # Test if we are trying to use run time linking or normal
9318: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9319: # need to do runtime linking.
9320: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9321: for ld_flag in $LDFLAGS; do
9322: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9323: aix_use_runtimelinking=yes
9324: break
9325: fi
9326: done
9327: ;;
9328: esac
9329:
9330: exp_sym_flag='-bexport'
9331: no_entry_flag='-bnoentry'
9332: fi
9333:
9334: # When large executables or shared objects are built, AIX ld can
9335: # have problems creating the table of contents. If linking a library
9336: # or program results in "error TOC overflow" add -mminimal-toc to
9337: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9338: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9339:
9340: archive_cmds=''
9341: hardcode_direct=yes
9342: hardcode_direct_absolute=yes
9343: hardcode_libdir_separator=':'
9344: link_all_deplibs=yes
9345: file_list_spec='${wl}-f,'
9346:
9347: if test "$GCC" = yes; then
9348: case $host_os in aix4.[012]|aix4.[012].*)
9349: # We only want to do this on AIX 4.2 and lower, the check
9350: # below for broken collect2 doesn't work under 4.3+
9351: collect2name=`${CC} -print-prog-name=collect2`
9352: if test -f "$collect2name" &&
9353: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9354: then
9355: # We have reworked collect2
9356: :
9357: else
9358: # We have old collect2
9359: hardcode_direct=unsupported
9360: # It fails to find uninstalled libraries when the uninstalled
9361: # path is not listed in the libpath. Setting hardcode_minus_L
9362: # to unsupported forces relinking
9363: hardcode_minus_L=yes
9364: hardcode_libdir_flag_spec='-L$libdir'
9365: hardcode_libdir_separator=
9366: fi
9367: ;;
9368: esac
9369: shared_flag='-shared'
9370: if test "$aix_use_runtimelinking" = yes; then
9371: shared_flag="$shared_flag "'${wl}-G'
9372: fi
9373: else
9374: # not using gcc
9375: if test "$host_cpu" = ia64; then
9376: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9377: # chokes on -Wl,-G. The following line is correct:
9378: shared_flag='-G'
9379: else
9380: if test "$aix_use_runtimelinking" = yes; then
9381: shared_flag='${wl}-G'
9382: else
9383: shared_flag='${wl}-bM:SRE'
9384: fi
9385: fi
9386: fi
9387:
9388: export_dynamic_flag_spec='${wl}-bexpall'
9389: # It seems that -bexpall does not export symbols beginning with
9390: # underscore (_), so it is better to generate a list of symbols to export.
9391: always_export_symbols=yes
9392: if test "$aix_use_runtimelinking" = yes; then
9393: # Warning - without using the other runtime loading flags (-brtl),
9394: # -berok will link without error, but may produce a broken library.
9395: allow_undefined_flag='-berok'
9396: # Determine the default libpath from the value encoded in an
9397: # empty executable.
9398: if test "${lt_cv_aix_libpath+set}" = set; then
9399: aix_libpath=$lt_cv_aix_libpath
9400: else
9401: if ${lt_cv_aix_libpath_+:} false; then :
9402: $as_echo_n "(cached) " >&6
9403: else
9404: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405: /* end confdefs.h. */
9406:
9407: int
9408: main ()
9409: {
9410:
9411: ;
9412: return 0;
9413: }
9414: _ACEOF
9415: if ac_fn_c_try_link "$LINENO"; then :
9416:
9417: lt_aix_libpath_sed='
9418: /Import File Strings/,/^$/ {
9419: /^0/ {
9420: s/^0 *\([^ ]*\) *$/\1/
9421: p
9422: }
9423: }'
9424: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9425: # Check for a 64-bit object if we didn't find anything.
9426: if test -z "$lt_cv_aix_libpath_"; then
9427: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9428: fi
9429: fi
9430: rm -f core conftest.err conftest.$ac_objext \
9431: conftest$ac_exeext conftest.$ac_ext
9432: if test -z "$lt_cv_aix_libpath_"; then
9433: lt_cv_aix_libpath_="/usr/lib:/lib"
9434: fi
9435:
9436: fi
9437:
9438: aix_libpath=$lt_cv_aix_libpath_
9439: fi
9440:
9441: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9442: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9443: else
9444: if test "$host_cpu" = ia64; then
9445: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9446: allow_undefined_flag="-z nodefs"
9447: 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"
9448: else
9449: # Determine the default libpath from the value encoded in an
9450: # empty executable.
9451: if test "${lt_cv_aix_libpath+set}" = set; then
9452: aix_libpath=$lt_cv_aix_libpath
9453: else
9454: if ${lt_cv_aix_libpath_+:} false; then :
9455: $as_echo_n "(cached) " >&6
9456: else
9457: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458: /* end confdefs.h. */
9459:
9460: int
9461: main ()
9462: {
9463:
9464: ;
9465: return 0;
9466: }
9467: _ACEOF
9468: if ac_fn_c_try_link "$LINENO"; then :
9469:
9470: lt_aix_libpath_sed='
9471: /Import File Strings/,/^$/ {
9472: /^0/ {
9473: s/^0 *\([^ ]*\) *$/\1/
9474: p
9475: }
9476: }'
9477: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9478: # Check for a 64-bit object if we didn't find anything.
9479: if test -z "$lt_cv_aix_libpath_"; then
9480: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9481: fi
9482: fi
9483: rm -f core conftest.err conftest.$ac_objext \
9484: conftest$ac_exeext conftest.$ac_ext
9485: if test -z "$lt_cv_aix_libpath_"; then
9486: lt_cv_aix_libpath_="/usr/lib:/lib"
9487: fi
9488:
9489: fi
9490:
9491: aix_libpath=$lt_cv_aix_libpath_
9492: fi
9493:
9494: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9495: # Warning - without using the other run time loading flags,
9496: # -berok will link without error, but may produce a broken library.
9497: no_undefined_flag=' ${wl}-bernotok'
9498: allow_undefined_flag=' ${wl}-berok'
9499: if test "$with_gnu_ld" = yes; then
9500: # We only use this code for GNU lds that support --whole-archive.
9501: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9502: else
9503: # Exported symbols can be pulled into shared objects from archives
9504: whole_archive_flag_spec='$convenience'
9505: fi
9506: archive_cmds_need_lc=yes
9507: # This is similar to how AIX traditionally builds its shared libraries.
9508: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9509: fi
9510: fi
9511: ;;
9512:
9513: amigaos*)
9514: case $host_cpu in
9515: powerpc)
9516: # see comment about AmigaOS4 .so support
9517: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518: archive_expsym_cmds=''
9519: ;;
9520: m68k)
9521: 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)'
9522: hardcode_libdir_flag_spec='-L$libdir'
9523: hardcode_minus_L=yes
9524: ;;
9525: esac
9526: ;;
9527:
9528: bsdi[45]*)
9529: export_dynamic_flag_spec=-rdynamic
9530: ;;
9531:
9532: cygwin* | mingw* | pw32* | cegcc*)
9533: # When not using gcc, we currently assume that we are using
9534: # Microsoft Visual C++.
9535: # hardcode_libdir_flag_spec is actually meaningless, as there is
9536: # no search path for DLLs.
9537: case $cc_basename in
9538: cl*)
9539: # Native MSVC
9540: hardcode_libdir_flag_spec=' '
9541: allow_undefined_flag=unsupported
9542: always_export_symbols=yes
9543: file_list_spec='@'
9544: # Tell ltmain to make .lib files, not .a files.
9545: libext=lib
9546: # Tell ltmain to make .dll files, not .so files.
9547: shrext_cmds=".dll"
9548: # FIXME: Setting linknames here is a bad hack.
9549: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9550: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9551: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9552: else
9553: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9554: fi~
9555: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9556: linknames='
9557: # The linker will not automatically build a static lib if we build a DLL.
9558: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9559: enable_shared_with_static_runtimes=yes
9560: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9561: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9562: # Don't use ranlib
9563: old_postinstall_cmds='chmod 644 $oldlib'
9564: postlink_cmds='lt_outputfile="@OUTPUT@"~
9565: lt_tool_outputfile="@TOOL_OUTPUT@"~
9566: case $lt_outputfile in
9567: *.exe|*.EXE) ;;
9568: *)
9569: lt_outputfile="$lt_outputfile.exe"
9570: lt_tool_outputfile="$lt_tool_outputfile.exe"
9571: ;;
9572: esac~
9573: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9574: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9575: $RM "$lt_outputfile.manifest";
9576: fi'
9577: ;;
9578: *)
9579: # Assume MSVC wrapper
9580: hardcode_libdir_flag_spec=' '
9581: allow_undefined_flag=unsupported
9582: # Tell ltmain to make .lib files, not .a files.
9583: libext=lib
9584: # Tell ltmain to make .dll files, not .so files.
9585: shrext_cmds=".dll"
9586: # FIXME: Setting linknames here is a bad hack.
9587: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9588: # The linker will automatically build a .lib file if we build a DLL.
9589: old_archive_from_new_cmds='true'
9590: # FIXME: Should let the user specify the lib program.
9591: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9592: enable_shared_with_static_runtimes=yes
9593: ;;
9594: esac
9595: ;;
9596:
9597: darwin* | rhapsody*)
9598:
9599:
9600: archive_cmds_need_lc=no
9601: hardcode_direct=no
9602: hardcode_automatic=yes
9603: hardcode_shlibpath_var=unsupported
9604: if test "$lt_cv_ld_force_load" = "yes"; then
9605: 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\"`'
9606:
9607: else
9608: whole_archive_flag_spec=''
9609: fi
9610: link_all_deplibs=yes
9611: allow_undefined_flag="$_lt_dar_allow_undefined"
9612: case $cc_basename in
9613: ifort*) _lt_dar_can_shared=yes ;;
9614: *) _lt_dar_can_shared=$GCC ;;
9615: esac
9616: if test "$_lt_dar_can_shared" = "yes"; then
9617: output_verbose_link_cmd=func_echo_all
9618: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9619: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9620: 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}"
9621: 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}"
9622:
9623: else
9624: ld_shlibs=no
9625: fi
9626:
9627: ;;
9628:
9629: dgux*)
9630: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631: hardcode_libdir_flag_spec='-L$libdir'
9632: hardcode_shlibpath_var=no
9633: ;;
9634:
9635: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9636: # support. Future versions do this automatically, but an explicit c++rt0.o
9637: # does not break anything, and helps significantly (at the cost of a little
9638: # extra space).
9639: freebsd2.2*)
9640: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9641: hardcode_libdir_flag_spec='-R$libdir'
9642: hardcode_direct=yes
9643: hardcode_shlibpath_var=no
9644: ;;
9645:
9646: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9647: freebsd2.*)
9648: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9649: hardcode_direct=yes
9650: hardcode_minus_L=yes
9651: hardcode_shlibpath_var=no
9652: ;;
9653:
9654: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9655: freebsd* | dragonfly*)
9656: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9657: hardcode_libdir_flag_spec='-R$libdir'
9658: hardcode_direct=yes
9659: hardcode_shlibpath_var=no
9660: ;;
9661:
9662: hpux9*)
9663: if test "$GCC" = yes; then
9664: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9665: else
9666: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9667: fi
9668: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9669: hardcode_libdir_separator=:
9670: hardcode_direct=yes
9671:
9672: # hardcode_minus_L: Not really in the search PATH,
9673: # but as the default location of the library.
9674: hardcode_minus_L=yes
9675: export_dynamic_flag_spec='${wl}-E'
9676: ;;
9677:
9678: hpux10*)
9679: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9680: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9681: else
9682: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9683: fi
9684: if test "$with_gnu_ld" = no; then
9685: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9686: hardcode_libdir_separator=:
9687: hardcode_direct=yes
9688: hardcode_direct_absolute=yes
9689: export_dynamic_flag_spec='${wl}-E'
9690: # hardcode_minus_L: Not really in the search PATH,
9691: # but as the default location of the library.
9692: hardcode_minus_L=yes
9693: fi
9694: ;;
9695:
9696: hpux11*)
9697: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9698: case $host_cpu in
9699: hppa*64*)
9700: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9701: ;;
9702: ia64*)
9703: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9704: ;;
9705: *)
9706: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9707: ;;
9708: esac
9709: else
9710: case $host_cpu in
9711: hppa*64*)
9712: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9713: ;;
9714: ia64*)
9715: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9716: ;;
9717: *)
9718:
9719: # Older versions of the 11.00 compiler do not understand -b yet
9720: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9721: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9722: $as_echo_n "checking if $CC understands -b... " >&6; }
9723: if ${lt_cv_prog_compiler__b+:} false; then :
9724: $as_echo_n "(cached) " >&6
9725: else
9726: lt_cv_prog_compiler__b=no
9727: save_LDFLAGS="$LDFLAGS"
9728: LDFLAGS="$LDFLAGS -b"
9729: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9730: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9731: # The linker can only warn and ignore the option if not recognized
9732: # So say no if there are warnings
9733: if test -s conftest.err; then
9734: # Append any errors to the config.log.
9735: cat conftest.err 1>&5
9736: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9737: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9738: if diff conftest.exp conftest.er2 >/dev/null; then
9739: lt_cv_prog_compiler__b=yes
9740: fi
9741: else
9742: lt_cv_prog_compiler__b=yes
9743: fi
9744: fi
9745: $RM -r conftest*
9746: LDFLAGS="$save_LDFLAGS"
9747:
9748: fi
9749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9750: $as_echo "$lt_cv_prog_compiler__b" >&6; }
9751:
9752: if test x"$lt_cv_prog_compiler__b" = xyes; then
9753: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9754: else
9755: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9756: fi
9757:
9758: ;;
9759: esac
9760: fi
9761: if test "$with_gnu_ld" = no; then
9762: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9763: hardcode_libdir_separator=:
9764:
9765: case $host_cpu in
9766: hppa*64*|ia64*)
9767: hardcode_direct=no
9768: hardcode_shlibpath_var=no
9769: ;;
9770: *)
9771: hardcode_direct=yes
9772: hardcode_direct_absolute=yes
9773: export_dynamic_flag_spec='${wl}-E'
9774:
9775: # hardcode_minus_L: Not really in the search PATH,
9776: # but as the default location of the library.
9777: hardcode_minus_L=yes
9778: ;;
9779: esac
9780: fi
9781: ;;
9782:
9783: irix5* | irix6* | nonstopux*)
9784: if test "$GCC" = yes; then
9785: 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'
9786: # Try to use the -exported_symbol ld option, if it does not
9787: # work, assume that -exports_file does not work either and
9788: # implicitly export all symbols.
9789: # This should be the same for all languages, so no per-tag cache variable.
9790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9791: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9792: if ${lt_cv_irix_exported_symbol+:} false; then :
9793: $as_echo_n "(cached) " >&6
9794: else
9795: save_LDFLAGS="$LDFLAGS"
9796: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9797: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798: /* end confdefs.h. */
9799: int foo (void) { return 0; }
9800: _ACEOF
9801: if ac_fn_c_try_link "$LINENO"; then :
9802: lt_cv_irix_exported_symbol=yes
9803: else
9804: lt_cv_irix_exported_symbol=no
9805: fi
9806: rm -f core conftest.err conftest.$ac_objext \
9807: conftest$ac_exeext conftest.$ac_ext
9808: LDFLAGS="$save_LDFLAGS"
9809: fi
9810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9811: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9812: if test "$lt_cv_irix_exported_symbol" = yes; then
9813: 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'
9814: fi
9815: else
9816: 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'
9817: 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'
9818: fi
9819: archive_cmds_need_lc='no'
9820: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821: hardcode_libdir_separator=:
9822: inherit_rpath=yes
9823: link_all_deplibs=yes
9824: ;;
9825:
9826: netbsd*)
9827: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9828: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9829: else
9830: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9831: fi
9832: hardcode_libdir_flag_spec='-R$libdir'
9833: hardcode_direct=yes
9834: hardcode_shlibpath_var=no
9835: ;;
9836:
9837: newsos6)
9838: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839: hardcode_direct=yes
9840: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9841: hardcode_libdir_separator=:
9842: hardcode_shlibpath_var=no
9843: ;;
9844:
9845: *nto* | *qnx*)
9846: ;;
9847:
9848: openbsd*)
9849: if test -f /usr/libexec/ld.so; then
9850: hardcode_direct=yes
9851: hardcode_shlibpath_var=no
9852: hardcode_direct_absolute=yes
9853: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9854: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9855: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9856: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9857: export_dynamic_flag_spec='${wl}-E'
9858: else
9859: case $host_os in
9860: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9861: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9862: hardcode_libdir_flag_spec='-R$libdir'
9863: ;;
9864: *)
9865: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9866: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9867: ;;
9868: esac
9869: fi
9870: else
9871: ld_shlibs=no
9872: fi
9873: ;;
9874:
9875: os2*)
9876: hardcode_libdir_flag_spec='-L$libdir'
9877: hardcode_minus_L=yes
9878: allow_undefined_flag=unsupported
9879: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9880: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9881: ;;
9882:
9883: osf3*)
9884: if test "$GCC" = yes; then
9885: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9886: 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'
9887: else
9888: allow_undefined_flag=' -expect_unresolved \*'
9889: 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'
9890: fi
9891: archive_cmds_need_lc='no'
9892: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9893: hardcode_libdir_separator=:
9894: ;;
9895:
9896: osf4* | osf5*) # as osf3* with the addition of -msym flag
9897: if test "$GCC" = yes; then
9898: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9899: 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'
9900: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9901: else
9902: allow_undefined_flag=' -expect_unresolved \*'
9903: 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'
9904: 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~
9905: $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'
9906:
9907: # Both c and cxx compiler support -rpath directly
9908: hardcode_libdir_flag_spec='-rpath $libdir'
9909: fi
9910: archive_cmds_need_lc='no'
9911: hardcode_libdir_separator=:
9912: ;;
9913:
9914: solaris*)
9915: no_undefined_flag=' -z defs'
9916: if test "$GCC" = yes; then
9917: wlarc='${wl}'
9918: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9919: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9920: $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'
9921: else
9922: case `$CC -V 2>&1` in
9923: *"Compilers 5.0"*)
9924: wlarc=''
9925: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9926: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9927: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9928: ;;
9929: *)
9930: wlarc='${wl}'
9931: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9932: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9933: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9934: ;;
9935: esac
9936: fi
9937: hardcode_libdir_flag_spec='-R$libdir'
9938: hardcode_shlibpath_var=no
9939: case $host_os in
9940: solaris2.[0-5] | solaris2.[0-5].*) ;;
9941: *)
9942: # The compiler driver will combine and reorder linker options,
9943: # but understands `-z linker_flag'. GCC discards it without `$wl',
9944: # but is careful enough not to reorder.
9945: # Supported since Solaris 2.6 (maybe 2.5.1?)
9946: if test "$GCC" = yes; then
9947: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
1.4 paf 9948: else
1.5 moko 9949: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
1.4 paf 9950: fi
1.5 moko 9951: ;;
9952: esac
9953: link_all_deplibs=yes
9954: ;;
9955:
9956: sunos4*)
9957: if test "x$host_vendor" = xsequent; then
9958: # Use $CC to link under sequent, because it throws in some extra .o
9959: # files that make .init and .fini sections work.
9960: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9961: else
9962: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9963: fi
9964: hardcode_libdir_flag_spec='-L$libdir'
9965: hardcode_direct=yes
9966: hardcode_minus_L=yes
9967: hardcode_shlibpath_var=no
9968: ;;
9969:
9970: sysv4)
9971: case $host_vendor in
9972: sni)
9973: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974: hardcode_direct=yes # is this really true???
9975: ;;
9976: siemens)
9977: ## LD is ld it makes a PLAMLIB
9978: ## CC just makes a GrossModule.
9979: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9980: reload_cmds='$CC -r -o $output$reload_objs'
9981: hardcode_direct=no
9982: ;;
9983: motorola)
9984: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9986: ;;
1.4 paf 9987: esac
1.5 moko 9988: runpath_var='LD_RUN_PATH'
9989: hardcode_shlibpath_var=no
9990: ;;
9991:
9992: sysv4.3*)
9993: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994: hardcode_shlibpath_var=no
9995: export_dynamic_flag_spec='-Bexport'
9996: ;;
9997:
9998: sysv4*MP*)
9999: if test -d /usr/nec; then
10000: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001: hardcode_shlibpath_var=no
10002: runpath_var=LD_RUN_PATH
10003: hardcode_runpath_var=yes
10004: ld_shlibs=yes
10005: fi
10006: ;;
10007:
10008: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10009: no_undefined_flag='${wl}-z,text'
10010: archive_cmds_need_lc=no
10011: hardcode_shlibpath_var=no
10012: runpath_var='LD_RUN_PATH'
1.4 paf 10013:
1.5 moko 10014: if test "$GCC" = yes; then
10015: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 10017: else
1.5 moko 10018: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 10020: fi
1.5 moko 10021: ;;
1.4 paf 10022:
1.5 moko 10023: sysv5* | sco3.2v5* | sco5v6*)
10024: # Note: We can NOT use -z defs as we might desire, because we do not
10025: # link with -lc, and that would cause any symbols used from libc to
10026: # always be unresolved, which means just about no library would
10027: # ever link correctly. If we're not using GNU ld we use -z text
10028: # though, which does catch some bad symbols but isn't as heavy-handed
10029: # as -z defs.
10030: no_undefined_flag='${wl}-z,text'
10031: allow_undefined_flag='${wl}-z,nodefs'
10032: archive_cmds_need_lc=no
10033: hardcode_shlibpath_var=no
10034: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10035: hardcode_libdir_separator=':'
10036: link_all_deplibs=yes
10037: export_dynamic_flag_spec='${wl}-Bexport'
10038: runpath_var='LD_RUN_PATH'
10039:
10040: if test "$GCC" = yes; then
10041: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 10043: else
1.5 moko 10044: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 10046: fi
1.5 moko 10047: ;;
10048:
10049: uts4*)
10050: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10051: hardcode_libdir_flag_spec='-L$libdir'
10052: hardcode_shlibpath_var=no
10053: ;;
10054:
10055: *)
10056: ld_shlibs=no
10057: ;;
10058: esac
10059:
10060: if test x$host_vendor = xsni; then
10061: case $host in
10062: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10063: export_dynamic_flag_spec='${wl}-Blargedynsym'
10064: ;;
10065: esac
1.4 paf 10066: fi
1.5 moko 10067: fi
10068:
10069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10070: $as_echo "$ld_shlibs" >&6; }
10071: test "$ld_shlibs" = no && can_build_shared=no
10072:
10073: with_gnu_ld=$with_gnu_ld
10074:
10075:
10076:
10077:
10078:
10079:
10080:
10081:
10082:
10083:
10084:
10085:
10086:
1.4 paf 10087:
10088:
1.5 moko 10089: #
10090: # Do we need to explicitly link libc?
10091: #
10092: case "x$archive_cmds_need_lc" in
10093: x|xyes)
10094: # Assume -lc should be added
10095: archive_cmds_need_lc=yes
1.4 paf 10096:
1.5 moko 10097: if test "$enable_shared" = yes && test "$GCC" = yes; then
10098: case $archive_cmds in
10099: *'~'*)
10100: # FIXME: we may have to deal with multi-command sequences.
1.4 paf 10101: ;;
1.5 moko 10102: '$CC '*)
10103: # Test whether the compiler implicitly links with -lc since on some
10104: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10105: # to ld, don't add -lc before -lgcc.
10106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10107: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10108: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10109: $as_echo_n "(cached) " >&6
10110: else
10111: $RM conftest*
10112: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10113:
10114: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10115: (eval $ac_compile) 2>&5
10116: ac_status=$?
10117: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10118: test $ac_status = 0; } 2>conftest.err; then
10119: soname=conftest
10120: lib=conftest
10121: libobjs=conftest.$ac_objext
10122: deplibs=
10123: wl=$lt_prog_compiler_wl
10124: pic_flag=$lt_prog_compiler_pic
10125: compiler_flags=-v
10126: linker_flags=-v
10127: verstring=
10128: output_objdir=.
10129: libname=conftest
10130: lt_save_allow_undefined_flag=$allow_undefined_flag
10131: allow_undefined_flag=
10132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10133: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10134: ac_status=$?
10135: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10136: test $ac_status = 0; }
10137: then
10138: lt_cv_archive_cmds_need_lc=no
10139: else
10140: lt_cv_archive_cmds_need_lc=yes
10141: fi
10142: allow_undefined_flag=$lt_save_allow_undefined_flag
10143: else
10144: cat conftest.err 1>&5
10145: fi
10146: $RM conftest*
10147:
10148: fi
10149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10150: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10151: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1.4 paf 10152: ;;
10153: esac
1.5 moko 10154: fi
10155: ;;
10156: esac
10157:
10158:
10159:
10160:
10161:
10162:
10163:
10164:
10165:
10166:
10167:
10168:
10169:
10170:
10171:
10172:
10173:
10174:
10175:
10176:
10177:
10178:
10179:
10180:
10181:
10182:
10183:
10184:
10185:
10186:
10187:
10188:
10189:
10190:
10191:
10192:
10193:
10194:
10195:
10196:
10197:
10198:
10199:
10200:
10201:
10202:
10203:
10204:
10205:
10206:
10207:
10208:
10209:
10210:
10211:
10212:
10213:
10214:
10215:
10216:
10217:
10218:
10219:
10220:
10221:
10222:
10223:
10224:
10225:
10226:
10227:
10228:
10229:
10230:
10231:
10232:
10233:
10234:
10235:
10236:
10237:
10238:
10239:
10240:
10241:
10242:
10243:
10244:
10245:
10246:
10247:
10248:
10249:
10250:
10251:
10252:
10253:
10254:
10255:
10256:
10257:
10258:
10259:
10260:
10261:
10262:
10263:
10264:
10265:
10266:
10267:
10268:
10269:
10270:
10271:
10272:
10273:
10274:
10275:
10276:
10277:
10278:
10279:
10280:
10281:
10282:
10283:
10284:
1.4 paf 10285:
10286:
10287:
10288:
10289:
10290:
10291:
10292:
10293:
10294:
10295:
10296:
10297:
10298:
10299:
10300:
10301:
10302:
10303:
10304:
10305:
10306:
10307:
10308:
1.5 moko 10309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10310: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.4 paf 10311:
1.5 moko 10312: if test "$GCC" = yes; then
10313: case $host_os in
10314: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10315: *) lt_awk_arg="/^libraries:/" ;;
10316: esac
10317: case $host_os in
10318: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10319: *) lt_sed_strip_eq="s,=/,/,g" ;;
10320: esac
10321: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10322: case $lt_search_path_spec in
10323: *\;*)
10324: # if the path contains ";" then we assume it to be the separator
10325: # otherwise default to the standard path separator (i.e. ":") - it is
10326: # assumed that no part of a normal pathname contains ";" but that should
10327: # okay in the real world where ";" in dirpaths is itself problematic.
10328: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
1.4 paf 10329: ;;
10330: *)
1.5 moko 10331: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
1.4 paf 10332: ;;
10333: esac
1.5 moko 10334: # Ok, now we have the path, separated by spaces, we can step through it
10335: # and add multilib dir if necessary.
10336: lt_tmp_lt_search_path_spec=
10337: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10338: for lt_sys_path in $lt_search_path_spec; do
10339: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10340: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10341: else
10342: test -d "$lt_sys_path" && \
10343: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10344: fi
10345: done
10346: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10347: BEGIN {RS=" "; FS="/|\n";} {
10348: lt_foo="";
10349: lt_count=0;
10350: for (lt_i = NF; lt_i > 0; lt_i--) {
10351: if ($lt_i != "" && $lt_i != ".") {
10352: if ($lt_i == "..") {
10353: lt_count++;
10354: } else {
10355: if (lt_count == 0) {
10356: lt_foo="/" $lt_i lt_foo;
10357: } else {
10358: lt_count--;
10359: }
10360: }
10361: }
10362: }
10363: if (lt_foo != "") { lt_freq[lt_foo]++; }
10364: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10365: }'`
10366: # AWK program above erroneously prepends '/' to C:/dos/paths
10367: # for these hosts.
10368: case $host_os in
10369: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10370: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10371: esac
10372: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.4 paf 10373: else
1.5 moko 10374: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.4 paf 10375: fi
10376: library_names_spec=
10377: libname_spec='lib$name'
10378: soname_spec=
1.5 moko 10379: shrext_cmds=".so"
1.4 paf 10380: postinstall_cmds=
10381: postuninstall_cmds=
10382: finish_cmds=
10383: finish_eval=
10384: shlibpath_var=
10385: shlibpath_overrides_runpath=unknown
10386: version_type=none
10387: dynamic_linker="$host_os ld.so"
10388: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.5 moko 10389: need_lib_prefix=unknown
10390: hardcode_into_libs=no
10391:
10392: # when you set need_version to no, make sure it does not cause -set_version
10393: # flags to be left without arguments
10394: need_version=unknown
1.4 paf 10395:
10396: case $host_os in
10397: aix3*)
1.5 moko 10398: version_type=linux # correct to gnu/linux during the next big refactor
10399: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1.4 paf 10400: shlibpath_var=LIBPATH
10401:
1.5 moko 10402: # AIX 3 has no versioning support, so we append a major version to the name.
10403: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10404: ;;
10405:
1.5 moko 10406: aix[4-9]*)
10407: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10408: need_lib_prefix=no
10409: need_version=no
10410: hardcode_into_libs=yes
10411: if test "$host_cpu" = ia64; then
10412: # AIX 5 supports IA64
1.5 moko 10413: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1.4 paf 10414: shlibpath_var=LD_LIBRARY_PATH
10415: else
10416: # With GCC up to 2.95.x, collect2 would create an import file
10417: # for dependence libraries. The import file would start with
10418: # the line `#! .'. This would cause the generated library to
10419: # depend on `.', always an invalid library. This was fixed in
10420: # development snapshots of GCC prior to 3.0.
10421: case $host_os in
10422: aix4 | aix4.[01] | aix4.[01].*)
1.5 moko 10423: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10424: echo ' yes '
10425: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10426: :
10427: else
10428: can_build_shared=no
10429: fi
10430: ;;
1.4 paf 10431: esac
1.5 moko 10432: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10433: # soname into executable. Probably we can add versioning support to
10434: # collect2, so additional links can be useful in future.
1.4 paf 10435: if test "$aix_use_runtimelinking" = yes; then
10436: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10437: # instead of lib<name>.a to let people know that these are not
10438: # typical AIX shared libraries.
1.5 moko 10439: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.4 paf 10440: else
10441: # We preserve .a as extension for shared libraries through AIX4.2
10442: # and later when we are not doing run time linking.
10443: library_names_spec='${libname}${release}.a $libname.a'
1.5 moko 10444: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10445: fi
10446: shlibpath_var=LIBPATH
10447: fi
10448: ;;
10449:
10450: amigaos*)
1.5 moko 10451: case $host_cpu in
10452: powerpc)
10453: # Since July 2007 AmigaOS4 officially supports .so libraries.
10454: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10455: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456: ;;
10457: m68k)
10458: library_names_spec='$libname.ixlibrary $libname.a'
10459: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10460: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10461: ;;
10462: esac
1.4 paf 10463: ;;
10464:
10465: beos*)
1.5 moko 10466: library_names_spec='${libname}${shared_ext}'
1.4 paf 10467: dynamic_linker="$host_os ld.so"
10468: shlibpath_var=LIBRARY_PATH
10469: ;;
10470:
1.5 moko 10471: bsdi[45]*)
10472: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10473: need_version=no
1.5 moko 10474: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10476: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10477: shlibpath_var=LD_LIBRARY_PATH
10478: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10479: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10480: # the default ld.so.conf also contains /usr/contrib/lib and
10481: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10482: # libtool to hard-code these into programs
10483: ;;
10484:
1.5 moko 10485: cygwin* | mingw* | pw32* | cegcc*)
1.4 paf 10486: version_type=windows
1.5 moko 10487: shrext_cmds=".dll"
1.4 paf 10488: need_version=no
10489: need_lib_prefix=no
1.5 moko 10490:
10491: case $GCC,$cc_basename in
10492: yes,*)
10493: # gcc
1.4 paf 10494: library_names_spec='$libname.dll.a'
1.5 moko 10495: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10496: postinstall_cmds='base_file=`basename \${file}`~
10497: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1.4 paf 10498: dldir=$destdir/`dirname \$dlpath`~
10499: test -d \$dldir || mkdir -p \$dldir~
1.5 moko 10500: $install_prog $dir/$dlname \$dldir/$dlname~
10501: chmod a+x \$dldir/$dlname~
10502: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10503: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10504: fi'
10505: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1.4 paf 10506: dlpath=$dir/\$dldll~
1.5 moko 10507: $RM \$dlpath'
10508: shlibpath_overrides_runpath=yes
10509:
10510: case $host_os in
10511: cygwin*)
10512: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10513: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10514:
10515: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10516: ;;
10517: mingw* | cegcc*)
10518: # MinGW DLLs use traditional 'lib' prefix
10519: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10520: ;;
10521: pw32*)
10522: # pw32 DLLs use 'pw' prefix rather than 'lib'
10523: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524: ;;
10525: esac
10526: dynamic_linker='Win32 ld.exe'
1.4 paf 10527: ;;
1.5 moko 10528:
10529: *,cl*)
10530: # Native MSVC
10531: libname_spec='$name'
10532: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10533: library_names_spec='${libname}.dll.lib'
10534:
10535: case $build_os in
10536: mingw*)
10537: sys_lib_search_path_spec=
10538: lt_save_ifs=$IFS
10539: IFS=';'
10540: for lt_path in $LIB
10541: do
10542: IFS=$lt_save_ifs
10543: # Let DOS variable expansion print the short 8.3 style file name.
10544: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10545: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10546: done
10547: IFS=$lt_save_ifs
10548: # Convert to MSYS style.
10549: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10550: ;;
10551: cygwin*)
10552: # Convert to unix form, then to dos form, then back to unix form
10553: # but this time dos style (no spaces!) so that the unix form looks
10554: # like /cygdrive/c/PROGRA~1:/cygdr...
10555: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10556: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10557: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10558: ;;
10559: *)
10560: sys_lib_search_path_spec="$LIB"
10561: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10562: # It is most probably a Windows format PATH.
10563: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10564: else
10565: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10566: fi
10567: # FIXME: find the short name or the path components, as spaces are
10568: # common. (e.g. "Program Files" -> "PROGRA~1")
10569: ;;
10570: esac
10571:
10572: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10573: postinstall_cmds='base_file=`basename \${file}`~
10574: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10575: dldir=$destdir/`dirname \$dlpath`~
10576: test -d \$dldir || mkdir -p \$dldir~
10577: $install_prog $dir/$dlname \$dldir/$dlname'
10578: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10579: dlpath=$dir/\$dldll~
10580: $RM \$dlpath'
10581: shlibpath_overrides_runpath=yes
10582: dynamic_linker='Win32 link.exe'
1.4 paf 10583: ;;
1.5 moko 10584:
1.4 paf 10585: *)
1.5 moko 10586: # Assume MSVC wrapper
10587: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10588: dynamic_linker='Win32 ld.exe'
1.4 paf 10589: ;;
10590: esac
10591: # FIXME: first we should search . and the directory the executable is in
10592: shlibpath_var=PATH
10593: ;;
10594:
10595: darwin* | rhapsody*)
10596: dynamic_linker="$host_os dyld"
10597: version_type=darwin
10598: need_lib_prefix=no
10599: need_version=no
1.5 moko 10600: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10601: soname_spec='${libname}${release}${major}$shared_ext'
1.4 paf 10602: shlibpath_overrides_runpath=yes
10603: shlibpath_var=DYLD_LIBRARY_PATH
1.5 moko 10604: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10605:
10606: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10607: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1.4 paf 10608: ;;
10609:
1.5 moko 10610: dgux*)
10611: version_type=linux # correct to gnu/linux during the next big refactor
10612: need_lib_prefix=no
10613: need_version=no
10614: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10615: soname_spec='${libname}${release}${shared_ext}$major'
10616: shlibpath_var=LD_LIBRARY_PATH
1.4 paf 10617: ;;
10618:
1.5 moko 10619: freebsd* | dragonfly*)
10620: # DragonFly does not have aout. When/if they implement a new
10621: # versioning mechanism, adjust this.
10622: if test -x /usr/bin/objformat; then
10623: objformat=`/usr/bin/objformat`
10624: else
10625: case $host_os in
10626: freebsd[23].*) objformat=aout ;;
10627: *) objformat=elf ;;
10628: esac
10629: fi
1.4 paf 10630: version_type=freebsd-$objformat
10631: case $version_type in
10632: freebsd-elf*)
1.5 moko 10633: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.4 paf 10634: need_version=no
10635: need_lib_prefix=no
10636: ;;
10637: freebsd-*)
1.5 moko 10638: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1.4 paf 10639: need_version=yes
10640: ;;
10641: esac
10642: shlibpath_var=LD_LIBRARY_PATH
10643: case $host_os in
1.5 moko 10644: freebsd2.*)
10645: shlibpath_overrides_runpath=yes
10646: ;;
10647: freebsd3.[01]* | freebsdelf3.[01]*)
1.4 paf 10648: shlibpath_overrides_runpath=yes
1.5 moko 10649: hardcode_into_libs=yes
1.4 paf 10650: ;;
1.5 moko 10651: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10652: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.4 paf 10653: shlibpath_overrides_runpath=no
10654: hardcode_into_libs=yes
10655: ;;
1.5 moko 10656: *) # from 4.6 on, and DragonFly
10657: shlibpath_overrides_runpath=yes
10658: hardcode_into_libs=yes
10659: ;;
1.4 paf 10660: esac
10661: ;;
10662:
10663: gnu*)
1.5 moko 10664: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10665: need_lib_prefix=no
10666: need_version=no
1.5 moko 10667: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10668: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10669: shlibpath_var=LD_LIBRARY_PATH
1.5 moko 10670: shlibpath_overrides_runpath=no
10671: hardcode_into_libs=yes
10672: ;;
10673:
10674: haiku*)
10675: version_type=linux # correct to gnu/linux during the next big refactor
10676: need_lib_prefix=no
10677: need_version=no
10678: dynamic_linker="$host_os runtime_loader"
10679: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10680: soname_spec='${libname}${release}${shared_ext}$major'
10681: shlibpath_var=LIBRARY_PATH
10682: shlibpath_overrides_runpath=yes
10683: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1.4 paf 10684: hardcode_into_libs=yes
10685: ;;
10686:
10687: hpux9* | hpux10* | hpux11*)
10688: # Give a soname corresponding to the major version so that dld.sl refuses to
10689: # link against other versions.
10690: version_type=sunos
10691: need_lib_prefix=no
10692: need_version=no
1.5 moko 10693: case $host_cpu in
10694: ia64*)
10695: shrext_cmds='.so'
10696: hardcode_into_libs=yes
10697: dynamic_linker="$host_os dld.so"
10698: shlibpath_var=LD_LIBRARY_PATH
10699: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10700: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701: soname_spec='${libname}${release}${shared_ext}$major'
10702: if test "X$HPUX_IA64_MODE" = X32; then
10703: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10704: else
10705: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10706: fi
10707: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10708: ;;
10709: hppa*64*)
10710: shrext_cmds='.sl'
10711: hardcode_into_libs=yes
10712: dynamic_linker="$host_os dld.sl"
10713: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10714: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10715: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716: soname_spec='${libname}${release}${shared_ext}$major'
10717: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10718: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10719: ;;
10720: *)
10721: shrext_cmds='.sl'
10722: dynamic_linker="$host_os dld.sl"
10723: shlibpath_var=SHLIB_PATH
10724: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10725: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726: soname_spec='${libname}${release}${shared_ext}$major'
10727: ;;
10728: esac
10729: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1.4 paf 10730: postinstall_cmds='chmod 555 $lib'
1.5 moko 10731: # or fails outright, so override atomically:
10732: install_override_mode=555
10733: ;;
10734:
10735: interix[3-9]*)
10736: version_type=linux # correct to gnu/linux during the next big refactor
10737: need_lib_prefix=no
10738: need_version=no
10739: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10740: soname_spec='${libname}${release}${shared_ext}$major'
10741: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10742: shlibpath_var=LD_LIBRARY_PATH
10743: shlibpath_overrides_runpath=no
10744: hardcode_into_libs=yes
1.4 paf 10745: ;;
10746:
10747: irix5* | irix6* | nonstopux*)
10748: case $host_os in
10749: nonstopux*) version_type=nonstopux ;;
1.5 moko 10750: *)
10751: if test "$lt_cv_prog_gnu_ld" = yes; then
10752: version_type=linux # correct to gnu/linux during the next big refactor
10753: else
10754: version_type=irix
10755: fi ;;
1.4 paf 10756: esac
10757: need_lib_prefix=no
10758: need_version=no
1.5 moko 10759: soname_spec='${libname}${release}${shared_ext}$major'
10760: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1.4 paf 10761: case $host_os in
10762: irix5* | nonstopux*)
10763: libsuff= shlibsuff=
10764: ;;
10765: *)
10766: case $LD in # libtool.m4 will add one of these switches to LD
1.5 moko 10767: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10768: libsuff= shlibsuff= libmagic=32-bit;;
10769: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10770: libsuff=32 shlibsuff=N32 libmagic=N32;;
10771: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10772: libsuff=64 shlibsuff=64 libmagic=64-bit;;
1.4 paf 10773: *) libsuff= shlibsuff= libmagic=never-match;;
10774: esac
10775: ;;
10776: esac
10777: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10778: shlibpath_overrides_runpath=no
10779: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10780: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.5 moko 10781: hardcode_into_libs=yes
1.4 paf 10782: ;;
10783:
10784: # No shared lib support for Linux oldld, aout, or coff.
1.5 moko 10785: linux*oldld* | linux*aout* | linux*coff*)
1.4 paf 10786: dynamic_linker=no
10787: ;;
10788:
1.5 moko 10789: # This must be glibc/ELF.
10790: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10791: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10792: need_lib_prefix=no
10793: need_version=no
1.5 moko 10794: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10796: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10797: shlibpath_var=LD_LIBRARY_PATH
10798: shlibpath_overrides_runpath=no
1.5 moko 10799:
10800: # Some binutils ld are patched to set DT_RUNPATH
10801: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10802: $as_echo_n "(cached) " >&6
10803: else
10804: lt_cv_shlibpath_overrides_runpath=no
10805: save_LDFLAGS=$LDFLAGS
10806: save_libdir=$libdir
10807: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10808: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10809: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810: /* end confdefs.h. */
10811:
10812: int
10813: main ()
10814: {
10815:
10816: ;
10817: return 0;
10818: }
10819: _ACEOF
10820: if ac_fn_c_try_link "$LINENO"; then :
10821: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10822: lt_cv_shlibpath_overrides_runpath=yes
10823: fi
10824: fi
10825: rm -f core conftest.err conftest.$ac_objext \
10826: conftest$ac_exeext conftest.$ac_ext
10827: LDFLAGS=$save_LDFLAGS
10828: libdir=$save_libdir
10829:
10830: fi
10831:
10832: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10833:
1.4 paf 10834: # This implies no fast_install, which is unacceptable.
10835: # Some rework will be needed to allow for fast_install
10836: # before this can be enabled.
10837: hardcode_into_libs=yes
10838:
1.5 moko 10839: # Append ld.so.conf contents to the search path
10840: if test -f /etc/ld.so.conf; then
10841: 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' ' '`
10842: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10843: fi
10844:
1.4 paf 10845: # We used to test for /lib/ld.so.1 and disable shared libraries on
10846: # powerpc, because MkLinux only supported shared libraries with the
10847: # GNU dynamic linker. Since this was broken with cross compilers,
10848: # most powerpc-linux boxes support dynamic linking these days and
10849: # people can always --disable-shared, the test was removed, and we
10850: # assume the GNU/Linux dynamic linker is in use.
10851: dynamic_linker='GNU/Linux ld.so'
10852: ;;
10853:
10854: netbsd*)
10855: version_type=sunos
10856: need_lib_prefix=no
10857: need_version=no
1.5 moko 10858: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10859: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.4 paf 10860: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10861: dynamic_linker='NetBSD (a.out) ld.so'
10862: else
1.5 moko 10863: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10864: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10865: dynamic_linker='NetBSD ld.elf_so'
10866: fi
10867: shlibpath_var=LD_LIBRARY_PATH
10868: shlibpath_overrides_runpath=yes
10869: hardcode_into_libs=yes
10870: ;;
10871:
10872: newsos6)
1.5 moko 10873: version_type=linux # correct to gnu/linux during the next big refactor
10874: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.4 paf 10875: shlibpath_var=LD_LIBRARY_PATH
10876: shlibpath_overrides_runpath=yes
10877: ;;
10878:
1.5 moko 10879: *nto* | *qnx*)
10880: version_type=qnx
10881: need_lib_prefix=no
10882: need_version=no
10883: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884: soname_spec='${libname}${release}${shared_ext}$major'
10885: shlibpath_var=LD_LIBRARY_PATH
10886: shlibpath_overrides_runpath=no
10887: hardcode_into_libs=yes
10888: dynamic_linker='ldqnx.so'
10889: ;;
10890:
1.4 paf 10891: openbsd*)
10892: version_type=sunos
1.5 moko 10893: sys_lib_dlsearch_path_spec="/usr/lib"
1.4 paf 10894: need_lib_prefix=no
1.5 moko 10895: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10896: case $host_os in
10897: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10898: *) need_version=no ;;
10899: esac
10900: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10901: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10902: shlibpath_var=LD_LIBRARY_PATH
10903: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10904: case $host_os in
10905: openbsd2.[89] | openbsd2.[89].*)
10906: shlibpath_overrides_runpath=no
10907: ;;
10908: *)
10909: shlibpath_overrides_runpath=yes
10910: ;;
10911: esac
1.4 paf 10912: else
10913: shlibpath_overrides_runpath=yes
10914: fi
10915: ;;
10916:
10917: os2*)
10918: libname_spec='$name'
1.5 moko 10919: shrext_cmds=".dll"
1.4 paf 10920: need_lib_prefix=no
1.5 moko 10921: library_names_spec='$libname${shared_ext} $libname.a'
1.4 paf 10922: dynamic_linker='OS/2 ld.exe'
10923: shlibpath_var=LIBPATH
10924: ;;
10925:
10926: osf3* | osf4* | osf5*)
10927: version_type=osf
1.5 moko 10928: need_lib_prefix=no
1.4 paf 10929: need_version=no
1.5 moko 10930: soname_spec='${libname}${release}${shared_ext}$major'
10931: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.4 paf 10932: shlibpath_var=LD_LIBRARY_PATH
10933: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10934: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10935: ;;
10936:
1.5 moko 10937: rdos*)
10938: dynamic_linker=no
1.4 paf 10939: ;;
10940:
10941: solaris*)
1.5 moko 10942: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10943: need_lib_prefix=no
10944: need_version=no
1.5 moko 10945: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10947: shlibpath_var=LD_LIBRARY_PATH
10948: shlibpath_overrides_runpath=yes
10949: hardcode_into_libs=yes
10950: # ldd complains unless libraries are executable
10951: postinstall_cmds='chmod +x $lib'
10952: ;;
10953:
10954: sunos4*)
10955: version_type=sunos
1.5 moko 10956: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.4 paf 10957: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10958: shlibpath_var=LD_LIBRARY_PATH
10959: shlibpath_overrides_runpath=yes
10960: if test "$with_gnu_ld" = yes; then
10961: need_lib_prefix=no
10962: fi
10963: need_version=yes
10964: ;;
10965:
1.5 moko 10966: sysv4 | sysv4.3*)
10967: version_type=linux # correct to gnu/linux during the next big refactor
10968: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10970: shlibpath_var=LD_LIBRARY_PATH
10971: case $host_vendor in
10972: sni)
10973: shlibpath_overrides_runpath=no
10974: need_lib_prefix=no
10975: runpath_var=LD_RUN_PATH
10976: ;;
10977: siemens)
10978: need_lib_prefix=no
10979: ;;
10980: motorola)
10981: need_lib_prefix=no
10982: need_version=no
1.5 moko 10983: shlibpath_overrides_runpath=no
10984: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10985: ;;
10986: esac
10987: ;;
10988:
10989: sysv4*MP*)
10990: if test -d /usr/nec ;then
10991: version_type=linux # correct to gnu/linux during the next big refactor
10992: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10993: soname_spec='$libname${shared_ext}.$major'
10994: shlibpath_var=LD_LIBRARY_PATH
10995: fi
1.4 paf 10996: ;;
10997:
1.5 moko 10998: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10999: version_type=freebsd-elf
11000: need_lib_prefix=no
11001: need_version=no
11002: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11003: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 11004: shlibpath_var=LD_LIBRARY_PATH
1.5 moko 11005: shlibpath_overrides_runpath=yes
11006: hardcode_into_libs=yes
11007: if test "$with_gnu_ld" = yes; then
11008: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11009: else
11010: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11011: case $host_os in
11012: sco3.2v5*)
11013: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11014: ;;
11015: esac
11016: fi
11017: sys_lib_dlsearch_path_spec='/usr/lib'
1.4 paf 11018: ;;
11019:
1.5 moko 11020: tpf*)
11021: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11022: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 11023: need_lib_prefix=no
11024: need_version=no
1.5 moko 11025: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.4 paf 11026: shlibpath_var=LD_LIBRARY_PATH
1.5 moko 11027: shlibpath_overrides_runpath=no
11028: hardcode_into_libs=yes
1.4 paf 11029: ;;
11030:
1.5 moko 11031: uts4*)
11032: version_type=linux # correct to gnu/linux during the next big refactor
11033: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034: soname_spec='${libname}${release}${shared_ext}$major'
11035: shlibpath_var=LD_LIBRARY_PATH
1.4 paf 11036: ;;
11037:
11038: *)
11039: dynamic_linker=no
11040: ;;
11041: esac
1.5 moko 11042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11043: $as_echo "$dynamic_linker" >&6; }
1.4 paf 11044: test "$dynamic_linker" = no && can_build_shared=no
11045:
1.5 moko 11046: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11047: if test "$GCC" = yes; then
11048: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11049: fi
11050:
11051: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11052: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11053: fi
11054: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11055: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11056: fi
11057:
11058:
11059:
11060:
11061:
11062:
11063:
11064:
11065:
11066:
11067:
11068:
11069:
11070:
11071:
11072:
11073:
11074:
11075:
11076:
11077:
11078:
11079:
11080:
11081:
11082:
11083:
11084:
11085:
11086:
11087:
11088:
11089:
11090:
11091:
11092:
11093:
11094:
11095:
11096:
11097:
11098:
11099:
11100:
11101:
11102:
11103:
11104:
11105:
11106:
11107:
11108:
11109:
11110:
11111:
11112:
11113:
11114:
11115:
11116:
11117:
11118:
11119:
11120:
11121:
11122:
11123:
11124:
11125:
11126:
11127:
11128:
11129:
11130:
11131:
11132:
11133:
11134:
11135:
11136:
11137:
11138:
11139:
11140:
11141:
11142:
11143:
11144:
11145:
11146:
11147:
11148:
11149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11150: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11151: hardcode_action=
11152: if test -n "$hardcode_libdir_flag_spec" ||
11153: test -n "$runpath_var" ||
11154: test "X$hardcode_automatic" = "Xyes" ; then
1.4 paf 11155:
1.5 moko 11156: # We can hardcode non-existent directories.
11157: if test "$hardcode_direct" != no &&
11158: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11159: # have to relink, otherwise we might link with an installed library
11160: # when we should be linking with a yet-to-be-installed one
11161: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11162: test "$hardcode_minus_L" != no; then
11163: # Linking always hardcodes the temporary library directory.
11164: hardcode_action=relink
11165: else
11166: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11167: hardcode_action=immediate
1.4 paf 11168: fi
1.5 moko 11169: else
11170: # We cannot hardcode anything, or else we can only hardcode existing
11171: # directories.
11172: hardcode_action=unsupported
11173: fi
11174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11175: $as_echo "$hardcode_action" >&6; }
1.4 paf 11176:
1.5 moko 11177: if test "$hardcode_action" = relink ||
11178: test "$inherit_rpath" = yes; then
1.4 paf 11179: # Fast installation is not supported
11180: enable_fast_install=no
11181: elif test "$shlibpath_overrides_runpath" = yes ||
11182: test "$enable_shared" = no; then
11183: # Fast installation is not necessary
11184: enable_fast_install=needless
11185: fi
11186:
11187:
1.5 moko 11188:
11189:
11190:
11191:
11192: if test "x$enable_dlopen" != xyes; then
1.4 paf 11193: enable_dlopen=unknown
11194: enable_dlopen_self=unknown
11195: enable_dlopen_self_static=unknown
11196: else
11197: lt_cv_dlopen=no
11198: lt_cv_dlopen_libs=
11199:
11200: case $host_os in
11201: beos*)
11202: lt_cv_dlopen="load_add_on"
11203: lt_cv_dlopen_libs=
11204: lt_cv_dlopen_self=yes
11205: ;;
11206:
1.5 moko 11207: mingw* | pw32* | cegcc*)
1.4 paf 11208: lt_cv_dlopen="LoadLibrary"
11209: lt_cv_dlopen_libs=
1.5 moko 11210: ;;
11211:
11212: cygwin*)
11213: lt_cv_dlopen="dlopen"
11214: lt_cv_dlopen_libs=
11215: ;;
1.4 paf 11216:
1.5 moko 11217: darwin*)
11218: # if libdl is installed we need to link against it
11219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11220: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11221: if ${ac_cv_lib_dl_dlopen+:} false; then :
11222: $as_echo_n "(cached) " >&6
1.4 paf 11223: else
1.5 moko 11224: ac_check_lib_save_LIBS=$LIBS
11225: LIBS="-ldl $LIBS"
11226: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11227: /* end confdefs.h. */
1.5 moko 11228:
11229: /* Override any GCC internal prototype to avoid an error.
11230: Use char because int might match the return type of a GCC
11231: builtin and then its argument prototype would still apply. */
1.4 paf 11232: #ifdef __cplusplus
11233: extern "C"
11234: #endif
1.5 moko 11235: char dlopen ();
1.4 paf 11236: int
11237: main ()
11238: {
1.5 moko 11239: return dlopen ();
1.4 paf 11240: ;
11241: return 0;
11242: }
11243: _ACEOF
1.5 moko 11244: if ac_fn_c_try_link "$LINENO"; then :
11245: ac_cv_lib_dl_dlopen=yes
11246: else
11247: ac_cv_lib_dl_dlopen=no
11248: fi
11249: rm -f core conftest.err conftest.$ac_objext \
11250: conftest$ac_exeext conftest.$ac_ext
11251: LIBS=$ac_check_lib_save_LIBS
11252: fi
11253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11254: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11255: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11256: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.4 paf 11257: else
11258:
1.5 moko 11259: lt_cv_dlopen="dyld"
11260: lt_cv_dlopen_libs=
11261: lt_cv_dlopen_self=yes
11262:
1.4 paf 11263: fi
1.5 moko 11264:
11265: ;;
11266:
11267: *)
11268: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11269: if test "x$ac_cv_func_shl_load" = xyes; then :
1.4 paf 11270: lt_cv_dlopen="shl_load"
11271: else
1.5 moko 11272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11273: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11274: if ${ac_cv_lib_dld_shl_load+:} false; then :
11275: $as_echo_n "(cached) " >&6
1.4 paf 11276: else
11277: ac_check_lib_save_LIBS=$LIBS
11278: LIBS="-ldld $LIBS"
1.5 moko 11279: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11280: /* end confdefs.h. */
11281:
1.5 moko 11282: /* Override any GCC internal prototype to avoid an error.
11283: Use char because int might match the return type of a GCC
11284: builtin and then its argument prototype would still apply. */
1.4 paf 11285: #ifdef __cplusplus
11286: extern "C"
11287: #endif
11288: char shl_load ();
11289: int
11290: main ()
11291: {
1.5 moko 11292: return shl_load ();
1.4 paf 11293: ;
11294: return 0;
11295: }
11296: _ACEOF
1.5 moko 11297: if ac_fn_c_try_link "$LINENO"; then :
11298: ac_cv_lib_dld_shl_load=yes
1.4 paf 11299: else
1.5 moko 11300: ac_cv_lib_dld_shl_load=no
1.4 paf 11301: fi
1.5 moko 11302: rm -f core conftest.err conftest.$ac_objext \
11303: conftest$ac_exeext conftest.$ac_ext
11304: LIBS=$ac_check_lib_save_LIBS
1.4 paf 11305: fi
1.5 moko 11306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11307: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11308: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11309: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11310: else
11311: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11312: if test "x$ac_cv_func_dlopen" = xyes; then :
1.4 paf 11313: lt_cv_dlopen="dlopen"
11314: else
1.5 moko 11315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11316: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11317: if ${ac_cv_lib_dl_dlopen+:} false; then :
11318: $as_echo_n "(cached) " >&6
1.4 paf 11319: else
11320: ac_check_lib_save_LIBS=$LIBS
11321: LIBS="-ldl $LIBS"
1.5 moko 11322: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11323: /* end confdefs.h. */
11324:
1.5 moko 11325: /* Override any GCC internal prototype to avoid an error.
11326: Use char because int might match the return type of a GCC
11327: builtin and then its argument prototype would still apply. */
1.4 paf 11328: #ifdef __cplusplus
11329: extern "C"
11330: #endif
11331: char dlopen ();
11332: int
11333: main ()
11334: {
1.5 moko 11335: return dlopen ();
1.4 paf 11336: ;
11337: return 0;
11338: }
11339: _ACEOF
1.5 moko 11340: if ac_fn_c_try_link "$LINENO"; then :
1.4 paf 11341: ac_cv_lib_dl_dlopen=yes
11342: else
1.5 moko 11343: ac_cv_lib_dl_dlopen=no
1.4 paf 11344: fi
1.5 moko 11345: rm -f core conftest.err conftest.$ac_objext \
11346: conftest$ac_exeext conftest.$ac_ext
1.4 paf 11347: LIBS=$ac_check_lib_save_LIBS
11348: fi
1.5 moko 11349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11350: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11351: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.4 paf 11352: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11353: else
1.5 moko 11354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11355: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11356: if ${ac_cv_lib_svld_dlopen+:} false; then :
11357: $as_echo_n "(cached) " >&6
1.4 paf 11358: else
11359: ac_check_lib_save_LIBS=$LIBS
11360: LIBS="-lsvld $LIBS"
1.5 moko 11361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11362: /* end confdefs.h. */
11363:
1.5 moko 11364: /* Override any GCC internal prototype to avoid an error.
11365: Use char because int might match the return type of a GCC
11366: builtin and then its argument prototype would still apply. */
1.4 paf 11367: #ifdef __cplusplus
11368: extern "C"
11369: #endif
11370: char dlopen ();
11371: int
11372: main ()
11373: {
1.5 moko 11374: return dlopen ();
1.4 paf 11375: ;
11376: return 0;
11377: }
11378: _ACEOF
1.5 moko 11379: if ac_fn_c_try_link "$LINENO"; then :
1.4 paf 11380: ac_cv_lib_svld_dlopen=yes
11381: else
1.5 moko 11382: ac_cv_lib_svld_dlopen=no
1.4 paf 11383: fi
1.5 moko 11384: rm -f core conftest.err conftest.$ac_objext \
11385: conftest$ac_exeext conftest.$ac_ext
1.4 paf 11386: LIBS=$ac_check_lib_save_LIBS
11387: fi
1.5 moko 11388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11389: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11390: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.4 paf 11391: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11392: else
1.5 moko 11393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11394: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11395: if ${ac_cv_lib_dld_dld_link+:} false; then :
11396: $as_echo_n "(cached) " >&6
1.4 paf 11397: else
11398: ac_check_lib_save_LIBS=$LIBS
11399: LIBS="-ldld $LIBS"
1.5 moko 11400: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11401: /* end confdefs.h. */
11402:
1.5 moko 11403: /* Override any GCC internal prototype to avoid an error.
11404: Use char because int might match the return type of a GCC
11405: builtin and then its argument prototype would still apply. */
1.4 paf 11406: #ifdef __cplusplus
11407: extern "C"
11408: #endif
11409: char dld_link ();
11410: int
11411: main ()
11412: {
1.5 moko 11413: return dld_link ();
1.4 paf 11414: ;
11415: return 0;
11416: }
11417: _ACEOF
1.5 moko 11418: if ac_fn_c_try_link "$LINENO"; then :
1.4 paf 11419: ac_cv_lib_dld_dld_link=yes
11420: else
1.5 moko 11421: ac_cv_lib_dld_dld_link=no
1.4 paf 11422: fi
1.5 moko 11423: rm -f core conftest.err conftest.$ac_objext \
11424: conftest$ac_exeext conftest.$ac_ext
1.4 paf 11425: LIBS=$ac_check_lib_save_LIBS
11426: fi
1.5 moko 11427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11428: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11429: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11430: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1.4 paf 11431: fi
11432:
11433:
11434: fi
11435:
11436:
11437: fi
11438:
11439:
11440: fi
11441:
11442:
11443: fi
11444:
11445:
11446: fi
11447:
11448: ;;
11449: esac
11450:
11451: if test "x$lt_cv_dlopen" != xno; then
11452: enable_dlopen=yes
11453: else
11454: enable_dlopen=no
11455: fi
11456:
11457: case $lt_cv_dlopen in
11458: dlopen)
11459: save_CPPFLAGS="$CPPFLAGS"
1.5 moko 11460: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.4 paf 11461:
11462: save_LDFLAGS="$LDFLAGS"
1.5 moko 11463: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.4 paf 11464:
11465: save_LIBS="$LIBS"
11466: LIBS="$lt_cv_dlopen_libs $LIBS"
11467:
1.5 moko 11468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11469: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11470: if ${lt_cv_dlopen_self+:} false; then :
11471: $as_echo_n "(cached) " >&6
1.4 paf 11472: else
11473: if test "$cross_compiling" = yes; then :
11474: lt_cv_dlopen_self=cross
11475: else
1.5 moko 11476: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.4 paf 11477: lt_status=$lt_dlunknown
1.5 moko 11478: cat > conftest.$ac_ext <<_LT_EOF
11479: #line $LINENO "configure"
1.4 paf 11480: #include "confdefs.h"
11481:
11482: #if HAVE_DLFCN_H
11483: #include <dlfcn.h>
11484: #endif
11485:
11486: #include <stdio.h>
11487:
11488: #ifdef RTLD_GLOBAL
11489: # define LT_DLGLOBAL RTLD_GLOBAL
11490: #else
11491: # ifdef DL_GLOBAL
11492: # define LT_DLGLOBAL DL_GLOBAL
11493: # else
11494: # define LT_DLGLOBAL 0
11495: # endif
11496: #endif
11497:
11498: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11499: find out it does not work in some platform. */
11500: #ifndef LT_DLLAZY_OR_NOW
11501: # ifdef RTLD_LAZY
11502: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11503: # else
11504: # ifdef DL_LAZY
11505: # define LT_DLLAZY_OR_NOW DL_LAZY
11506: # else
11507: # ifdef RTLD_NOW
11508: # define LT_DLLAZY_OR_NOW RTLD_NOW
11509: # else
11510: # ifdef DL_NOW
11511: # define LT_DLLAZY_OR_NOW DL_NOW
11512: # else
11513: # define LT_DLLAZY_OR_NOW 0
11514: # endif
11515: # endif
11516: # endif
11517: # endif
11518: #endif
11519:
1.5 moko 11520: /* When -fvisbility=hidden is used, assume the code has been annotated
11521: correspondingly for the symbols needed. */
11522: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11523: int fnord () __attribute__((visibility("default")));
1.4 paf 11524: #endif
11525:
1.5 moko 11526: int fnord () { return 42; }
1.4 paf 11527: int main ()
11528: {
11529: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530: int status = $lt_dlunknown;
11531:
11532: if (self)
11533: {
11534: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.5 moko 11535: else
11536: {
11537: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11538: else puts (dlerror ());
11539: }
1.4 paf 11540: /* dlclose (self); */
11541: }
1.5 moko 11542: else
11543: puts (dlerror ());
1.4 paf 11544:
1.5 moko 11545: return status;
1.4 paf 11546: }
1.5 moko 11547: _LT_EOF
11548: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.4 paf 11549: (eval $ac_link) 2>&5
11550: ac_status=$?
1.5 moko 11551: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11553: (./conftest; exit; ) >&5 2>/dev/null
1.4 paf 11554: lt_status=$?
11555: case x$lt_status in
11556: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11557: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.5 moko 11558: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.4 paf 11559: esac
11560: else :
11561: # compilation failed
11562: lt_cv_dlopen_self=no
11563: fi
11564: fi
11565: rm -fr conftest*
11566:
11567:
11568: fi
1.5 moko 11569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11570: $as_echo "$lt_cv_dlopen_self" >&6; }
1.4 paf 11571:
11572: if test "x$lt_cv_dlopen_self" = xyes; then
1.5 moko 11573: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11575: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11576: if ${lt_cv_dlopen_self_static+:} false; then :
11577: $as_echo_n "(cached) " >&6
1.4 paf 11578: else
11579: if test "$cross_compiling" = yes; then :
11580: lt_cv_dlopen_self_static=cross
11581: else
1.5 moko 11582: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.4 paf 11583: lt_status=$lt_dlunknown
1.5 moko 11584: cat > conftest.$ac_ext <<_LT_EOF
11585: #line $LINENO "configure"
1.4 paf 11586: #include "confdefs.h"
11587:
11588: #if HAVE_DLFCN_H
11589: #include <dlfcn.h>
11590: #endif
11591:
11592: #include <stdio.h>
11593:
11594: #ifdef RTLD_GLOBAL
11595: # define LT_DLGLOBAL RTLD_GLOBAL
11596: #else
11597: # ifdef DL_GLOBAL
11598: # define LT_DLGLOBAL DL_GLOBAL
11599: # else
11600: # define LT_DLGLOBAL 0
11601: # endif
11602: #endif
11603:
11604: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11605: find out it does not work in some platform. */
11606: #ifndef LT_DLLAZY_OR_NOW
11607: # ifdef RTLD_LAZY
11608: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11609: # else
11610: # ifdef DL_LAZY
11611: # define LT_DLLAZY_OR_NOW DL_LAZY
11612: # else
11613: # ifdef RTLD_NOW
11614: # define LT_DLLAZY_OR_NOW RTLD_NOW
11615: # else
11616: # ifdef DL_NOW
11617: # define LT_DLLAZY_OR_NOW DL_NOW
11618: # else
11619: # define LT_DLLAZY_OR_NOW 0
11620: # endif
11621: # endif
11622: # endif
11623: # endif
11624: #endif
11625:
1.5 moko 11626: /* When -fvisbility=hidden is used, assume the code has been annotated
11627: correspondingly for the symbols needed. */
11628: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11629: int fnord () __attribute__((visibility("default")));
1.4 paf 11630: #endif
11631:
1.5 moko 11632: int fnord () { return 42; }
1.4 paf 11633: int main ()
11634: {
11635: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11636: int status = $lt_dlunknown;
11637:
11638: if (self)
11639: {
11640: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.5 moko 11641: else
11642: {
11643: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11644: else puts (dlerror ());
11645: }
1.4 paf 11646: /* dlclose (self); */
11647: }
1.5 moko 11648: else
11649: puts (dlerror ());
1.4 paf 11650:
1.5 moko 11651: return status;
1.4 paf 11652: }
1.5 moko 11653: _LT_EOF
11654: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.4 paf 11655: (eval $ac_link) 2>&5
11656: ac_status=$?
1.5 moko 11657: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11659: (./conftest; exit; ) >&5 2>/dev/null
1.4 paf 11660: lt_status=$?
11661: case x$lt_status in
11662: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11663: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.5 moko 11664: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1.4 paf 11665: esac
11666: else :
11667: # compilation failed
11668: lt_cv_dlopen_self_static=no
11669: fi
11670: fi
11671: rm -fr conftest*
11672:
11673:
11674: fi
1.5 moko 11675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11676: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.4 paf 11677: fi
11678:
11679: CPPFLAGS="$save_CPPFLAGS"
11680: LDFLAGS="$save_LDFLAGS"
11681: LIBS="$save_LIBS"
11682: ;;
11683: esac
11684:
11685: case $lt_cv_dlopen_self in
11686: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11687: *) enable_dlopen_self=unknown ;;
11688: esac
11689:
11690: case $lt_cv_dlopen_self_static in
11691: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11692: *) enable_dlopen_self_static=unknown ;;
11693: esac
11694: fi
11695:
11696:
11697:
11698:
11699:
11700:
11701:
11702:
11703:
11704:
11705:
11706:
11707:
11708:
11709:
11710:
11711:
1.5 moko 11712: striplib=
11713: old_striplib=
11714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11715: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11716: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11717: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11718: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720: $as_echo "yes" >&6; }
11721: else
11722: # FIXME - insert some real tests, host_os isn't really good enough
11723: case $host_os in
11724: darwin*)
11725: if test -n "$STRIP" ; then
11726: striplib="$STRIP -x"
11727: old_striplib="$STRIP -S"
11728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729: $as_echo "yes" >&6; }
11730: else
11731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732: $as_echo "no" >&6; }
11733: fi
11734: ;;
11735: *)
11736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737: $as_echo "no" >&6; }
11738: ;;
11739: esac
11740: fi
1.4 paf 11741:
11742:
11743:
11744:
11745:
11746:
11747:
11748:
11749:
11750:
11751:
11752:
1.5 moko 11753: # Report which library types will actually be built
11754: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11755: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11757: $as_echo "$can_build_shared" >&6; }
1.4 paf 11758:
1.5 moko 11759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11760: $as_echo_n "checking whether to build shared libraries... " >&6; }
11761: test "$can_build_shared" = "no" && enable_shared=no
1.4 paf 11762:
1.5 moko 11763: # On AIX, shared libraries and static libraries use the same namespace, and
11764: # are all built from PIC.
11765: case $host_os in
11766: aix3*)
11767: test "$enable_shared" = yes && enable_static=no
11768: if test -n "$RANLIB"; then
11769: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11770: postinstall_cmds='$RANLIB $lib'
11771: fi
11772: ;;
1.4 paf 11773:
1.5 moko 11774: aix[4-9]*)
11775: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11776: test "$enable_shared" = yes && enable_static=no
11777: fi
11778: ;;
11779: esac
11780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11781: $as_echo "$enable_shared" >&6; }
1.4 paf 11782:
1.5 moko 11783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11784: $as_echo_n "checking whether to build static libraries... " >&6; }
11785: # Make sure either enable_shared or enable_static is yes.
11786: test "$enable_shared" = yes || enable_static=yes
11787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11788: $as_echo "$enable_static" >&6; }
1.4 paf 11789:
11790:
11791:
11792:
1.5 moko 11793: fi
11794: ac_ext=c
11795: ac_cpp='$CPP $CPPFLAGS'
11796: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11797: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11798: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.4 paf 11799:
1.5 moko 11800: CC="$lt_save_CC"
1.4 paf 11801:
11802:
11803:
11804:
11805:
11806:
11807:
11808:
11809:
11810:
11811:
11812:
11813:
11814:
11815:
1.5 moko 11816: ac_config_commands="$ac_config_commands libtool"
1.4 paf 11817:
11818:
11819:
11820:
1.5 moko 11821: # Only expand once:
1.4 paf 11822:
11823:
1.5 moko 11824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11825: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11826: if ${libltdl_cv_shlibext+:} false; then :
11827: $as_echo_n "(cached) " >&6
11828: else
1.4 paf 11829:
1.5 moko 11830: module=yes
11831: eval libltdl_cv_shlibext=$shrext_cmds
11832: module=no
11833: eval libltdl_cv_shrext=$shrext_cmds
1.4 paf 11834:
1.5 moko 11835: fi
11836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11837: $as_echo "$libltdl_cv_shlibext" >&6; }
11838: if test -n "$libltdl_cv_shlibext"; then
1.4 paf 11839:
1.5 moko 11840: cat >>confdefs.h <<_ACEOF
11841: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11842: _ACEOF
1.4 paf 11843:
1.5 moko 11844: fi
11845: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
1.4 paf 11846:
1.5 moko 11847: cat >>confdefs.h <<_ACEOF
11848: #define LT_SHARED_EXT "$libltdl_cv_shrext"
11849: _ACEOF
1.4 paf 11850:
1.5 moko 11851: fi
1.4 paf 11852:
1.5 moko 11853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11854: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11855: if ${lt_cv_module_path_var+:} false; then :
11856: $as_echo_n "(cached) " >&6
11857: else
11858: lt_cv_module_path_var="$shlibpath_var"
11859: fi
11860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11861: $as_echo "$lt_cv_module_path_var" >&6; }
11862: if test -n "$lt_cv_module_path_var"; then
1.4 paf 11863:
1.5 moko 11864: cat >>confdefs.h <<_ACEOF
11865: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11866: _ACEOF
1.4 paf 11867:
1.5 moko 11868: fi
1.4 paf 11869:
1.5 moko 11870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11871: $as_echo_n "checking for the default library search path... " >&6; }
11872: if ${lt_cv_sys_dlsearch_path+:} false; then :
11873: $as_echo_n "(cached) " >&6
11874: else
11875: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11876: fi
11877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11878: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11879: if test -n "$lt_cv_sys_dlsearch_path"; then
11880: sys_dlsearch_path=
11881: for dir in $lt_cv_sys_dlsearch_path; do
11882: if test -z "$sys_dlsearch_path"; then
11883: sys_dlsearch_path="$dir"
11884: else
11885: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11886: fi
11887: done
1.4 paf 11888:
1.5 moko 11889: cat >>confdefs.h <<_ACEOF
11890: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11891: _ACEOF
1.4 paf 11892:
1.5 moko 11893: fi
1.4 paf 11894:
11895:
1.5 moko 11896: LT_DLLOADERS=
1.4 paf 11897:
11898:
1.5 moko 11899: ac_ext=c
11900: ac_cpp='$CPP $CPPFLAGS'
11901: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11902: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11903: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.4 paf 11904:
11905:
1.5 moko 11906: LIBADD_DLOPEN=
11907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11908: $as_echo_n "checking for library containing dlopen... " >&6; }
11909: if ${ac_cv_search_dlopen+:} false; then :
11910: $as_echo_n "(cached) " >&6
11911: else
11912: ac_func_search_save_LIBS=$LIBS
11913: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914: /* end confdefs.h. */
1.4 paf 11915:
1.5 moko 11916: /* Override any GCC internal prototype to avoid an error.
11917: Use char because int might match the return type of a GCC
11918: builtin and then its argument prototype would still apply. */
11919: #ifdef __cplusplus
11920: extern "C"
11921: #endif
11922: char dlopen ();
11923: int
11924: main ()
11925: {
11926: return dlopen ();
11927: ;
11928: return 0;
11929: }
11930: _ACEOF
11931: for ac_lib in '' dl; do
11932: if test -z "$ac_lib"; then
11933: ac_res="none required"
11934: else
11935: ac_res=-l$ac_lib
11936: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11937: fi
11938: if ac_fn_c_try_link "$LINENO"; then :
11939: ac_cv_search_dlopen=$ac_res
11940: fi
11941: rm -f core conftest.err conftest.$ac_objext \
11942: conftest$ac_exeext
11943: if ${ac_cv_search_dlopen+:} false; then :
11944: break
1.4 paf 11945: fi
1.5 moko 11946: done
11947: if ${ac_cv_search_dlopen+:} false; then :
1.4 paf 11948:
1.5 moko 11949: else
11950: ac_cv_search_dlopen=no
11951: fi
11952: rm conftest.$ac_ext
11953: LIBS=$ac_func_search_save_LIBS
11954: fi
11955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11956: $as_echo "$ac_cv_search_dlopen" >&6; }
11957: ac_res=$ac_cv_search_dlopen
11958: if test "$ac_res" != no; then :
11959: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.4 paf 11960:
1.5 moko 11961: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.4 paf 11962:
1.5 moko 11963: if test "$ac_cv_search_dlopen" != "none required" ; then
11964: LIBADD_DLOPEN="-ldl"
11965: fi
11966: libltdl_cv_lib_dl_dlopen="yes"
11967: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11968: else
11969: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970: /* end confdefs.h. */
11971: #if HAVE_DLFCN_H
11972: # include <dlfcn.h>
11973: #endif
1.4 paf 11974:
1.5 moko 11975: int
11976: main ()
11977: {
11978: dlopen(0, 0);
11979: ;
11980: return 0;
11981: }
11982: _ACEOF
11983: if ac_fn_c_try_link "$LINENO"; then :
1.4 paf 11984:
1.5 moko 11985: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.4 paf 11986:
1.5 moko 11987: libltdl_cv_func_dlopen="yes"
11988: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11989: else
11990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11991: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11992: if ${ac_cv_lib_svld_dlopen+:} false; then :
11993: $as_echo_n "(cached) " >&6
11994: else
11995: ac_check_lib_save_LIBS=$LIBS
11996: LIBS="-lsvld $LIBS"
11997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998: /* end confdefs.h. */
1.4 paf 11999:
1.5 moko 12000: /* Override any GCC internal prototype to avoid an error.
12001: Use char because int might match the return type of a GCC
12002: builtin and then its argument prototype would still apply. */
12003: #ifdef __cplusplus
12004: extern "C"
12005: #endif
12006: char dlopen ();
12007: int
12008: main ()
12009: {
12010: return dlopen ();
12011: ;
12012: return 0;
12013: }
12014: _ACEOF
12015: if ac_fn_c_try_link "$LINENO"; then :
12016: ac_cv_lib_svld_dlopen=yes
12017: else
12018: ac_cv_lib_svld_dlopen=no
12019: fi
12020: rm -f core conftest.err conftest.$ac_objext \
12021: conftest$ac_exeext conftest.$ac_ext
12022: LIBS=$ac_check_lib_save_LIBS
12023: fi
12024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12025: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12026: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.4 paf 12027:
1.5 moko 12028: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.4 paf 12029:
1.5 moko 12030: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12031: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12032: fi
1.4 paf 12033:
1.5 moko 12034: fi
12035: rm -f core conftest.err conftest.$ac_objext \
12036: conftest$ac_exeext conftest.$ac_ext
12037: fi
1.4 paf 12038:
1.5 moko 12039: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12040: then
12041: lt_save_LIBS="$LIBS"
12042: LIBS="$LIBS $LIBADD_DLOPEN"
12043: for ac_func in dlerror
12044: do :
12045: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12046: if test "x$ac_cv_func_dlerror" = xyes; then :
12047: cat >>confdefs.h <<_ACEOF
12048: #define HAVE_DLERROR 1
12049: _ACEOF
1.4 paf 12050:
1.5 moko 12051: fi
12052: done
1.4 paf 12053:
1.5 moko 12054: LIBS="$lt_save_LIBS"
12055: fi
1.4 paf 12056:
12057:
1.5 moko 12058: LIBADD_SHL_LOAD=
12059: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12060: if test "x$ac_cv_func_shl_load" = xyes; then :
1.4 paf 12061:
1.5 moko 12062: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.4 paf 12063:
1.5 moko 12064: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12065: else
12066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12067: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12068: if ${ac_cv_lib_dld_shl_load+:} false; then :
12069: $as_echo_n "(cached) " >&6
1.4 paf 12070: else
1.5 moko 12071: ac_check_lib_save_LIBS=$LIBS
12072: LIBS="-ldld $LIBS"
12073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 12074: /* end confdefs.h. */
12075:
1.5 moko 12076: /* Override any GCC internal prototype to avoid an error.
12077: Use char because int might match the return type of a GCC
12078: builtin and then its argument prototype would still apply. */
12079: #ifdef __cplusplus
12080: extern "C"
12081: #endif
12082: char shl_load ();
1.4 paf 12083: int
12084: main ()
12085: {
1.5 moko 12086: return shl_load ();
1.4 paf 12087: ;
12088: return 0;
12089: }
12090: _ACEOF
1.5 moko 12091: if ac_fn_c_try_link "$LINENO"; then :
12092: ac_cv_lib_dld_shl_load=yes
1.4 paf 12093: else
1.5 moko 12094: ac_cv_lib_dld_shl_load=no
12095: fi
12096: rm -f core conftest.err conftest.$ac_objext \
12097: conftest$ac_exeext conftest.$ac_ext
12098: LIBS=$ac_check_lib_save_LIBS
12099: fi
12100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12101: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12102: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12103:
12104: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.4 paf 12105:
1.5 moko 12106: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12107: LIBADD_SHL_LOAD="-ldld"
1.4 paf 12108: fi
1.5 moko 12109:
1.4 paf 12110: fi
12111:
1.5 moko 12112:
12113:
12114: case $host_os in
12115: darwin[1567].*)
12116: # We only want this for pre-Mac OS X 10.4.
12117: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12118: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12119:
12120: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12121:
12122: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
1.4 paf 12123: fi
12124:
1.5 moko 12125: ;;
12126: beos*)
12127: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12128: ;;
12129: cygwin* | mingw* | os2* | pw32*)
12130: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12131: "
12132: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12133: ac_have_decl=1
1.4 paf 12134: else
1.5 moko 12135: ac_have_decl=0
12136: fi
12137:
12138: cat >>confdefs.h <<_ACEOF
12139: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.4 paf 12140: _ACEOF
1.5 moko 12141:
12142: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12143: ;;
12144: esac
12145:
12146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12147: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12148: if ${ac_cv_lib_dld_dld_link+:} false; then :
12149: $as_echo_n "(cached) " >&6
12150: else
12151: ac_check_lib_save_LIBS=$LIBS
12152: LIBS="-ldld $LIBS"
12153: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 12154: /* end confdefs.h. */
12155:
1.5 moko 12156: /* Override any GCC internal prototype to avoid an error.
12157: Use char because int might match the return type of a GCC
12158: builtin and then its argument prototype would still apply. */
1.4 paf 12159: #ifdef __cplusplus
12160: extern "C"
12161: #endif
1.5 moko 12162: char dld_link ();
1.4 paf 12163: int
12164: main ()
12165: {
1.5 moko 12166: return dld_link ();
1.4 paf 12167: ;
12168: return 0;
12169: }
12170: _ACEOF
1.5 moko 12171: if ac_fn_c_try_link "$LINENO"; then :
12172: ac_cv_lib_dld_dld_link=yes
12173: else
12174: ac_cv_lib_dld_dld_link=no
12175: fi
12176: rm -f core conftest.err conftest.$ac_objext \
12177: conftest$ac_exeext conftest.$ac_ext
12178: LIBS=$ac_check_lib_save_LIBS
12179: fi
12180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12181: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12182: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12183:
12184: $as_echo "#define HAVE_DLD 1" >>confdefs.h
12185:
12186: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12187: fi
12188:
12189:
12190:
12191:
12192: LT_DLPREOPEN=
12193: if test -n "$LT_DLLOADERS"
12194: then
12195: for lt_loader in $LT_DLLOADERS; do
12196: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12197: done
12198:
12199: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12200:
12201: fi
12202:
12203:
12204: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12205:
12206:
12207: ac_ext=c
12208: ac_cpp='$CPP $CPPFLAGS'
12209: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12212:
12213:
12214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12215: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12216: if ${lt_cv_sys_symbol_underscore+:} false; then :
12217: $as_echo_n "(cached) " >&6
12218: else
12219: lt_cv_sys_symbol_underscore=no
12220: cat > conftest.$ac_ext <<_LT_EOF
12221: void nm_test_func(){}
12222: int main(){nm_test_func;return 0;}
12223: _LT_EOF
12224: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12225: (eval $ac_compile) 2>&5
1.4 paf 12226: ac_status=$?
1.5 moko 12227: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12228: test $ac_status = 0; }; then
12229: # Now try to grab the symbols.
12230: ac_nlist=conftest.nm
12231: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12232: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12233: ac_status=$?
12234: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12235: test $ac_status = 0; } && test -s "$ac_nlist"; then
12236: # See whether the symbols have a leading underscore.
12237: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12238: lt_cv_sys_symbol_underscore=yes
12239: else
12240: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12241: :
12242: else
12243: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12244: fi
12245: fi
12246: else
12247: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12248: fi
12249: else
12250: echo "configure: failed program was:" >&5
12251: cat conftest.c >&5
12252: fi
12253: rm -rf conftest*
12254:
12255: fi
12256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12257: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12258: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12259:
12260:
12261: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12262: if test x"$libltdl_cv_func_dlopen" = xyes ||
12263: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12264: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12265: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12266: if ${libltdl_cv_need_uscore+:} false; then :
12267: $as_echo_n "(cached) " >&6
12268: else
12269: libltdl_cv_need_uscore=unknown
12270: save_LIBS="$LIBS"
12271: LIBS="$LIBS $LIBADD_DLOPEN"
12272: if test "$cross_compiling" = yes; then :
12273: libltdl_cv_need_uscore=cross
1.4 paf 12274: else
1.5 moko 12275: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12276: lt_status=$lt_dlunknown
12277: cat > conftest.$ac_ext <<_LT_EOF
12278: #line $LINENO "configure"
12279: #include "confdefs.h"
12280:
12281: #if HAVE_DLFCN_H
12282: #include <dlfcn.h>
12283: #endif
12284:
12285: #include <stdio.h>
12286:
12287: #ifdef RTLD_GLOBAL
12288: # define LT_DLGLOBAL RTLD_GLOBAL
12289: #else
12290: # ifdef DL_GLOBAL
12291: # define LT_DLGLOBAL DL_GLOBAL
12292: # else
12293: # define LT_DLGLOBAL 0
12294: # endif
12295: #endif
1.4 paf 12296:
1.5 moko 12297: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12298: find out it does not work in some platform. */
12299: #ifndef LT_DLLAZY_OR_NOW
12300: # ifdef RTLD_LAZY
12301: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12302: # else
12303: # ifdef DL_LAZY
12304: # define LT_DLLAZY_OR_NOW DL_LAZY
12305: # else
12306: # ifdef RTLD_NOW
12307: # define LT_DLLAZY_OR_NOW RTLD_NOW
12308: # else
12309: # ifdef DL_NOW
12310: # define LT_DLLAZY_OR_NOW DL_NOW
12311: # else
12312: # define LT_DLLAZY_OR_NOW 0
12313: # endif
12314: # endif
12315: # endif
12316: # endif
12317: #endif
1.2 paf 12318:
1.5 moko 12319: /* When -fvisbility=hidden is used, assume the code has been annotated
12320: correspondingly for the symbols needed. */
12321: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12322: int fnord () __attribute__((visibility("default")));
1.4 paf 12323: #endif
1.5 moko 12324:
12325: int fnord () { return 42; }
12326: int main ()
1.4 paf 12327: {
1.5 moko 12328: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12329: int status = $lt_dlunknown;
1.2 paf 12330:
1.5 moko 12331: if (self)
12332: {
12333: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12334: else
12335: {
12336: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12337: else puts (dlerror ());
12338: }
12339: /* dlclose (self); */
12340: }
12341: else
12342: puts (dlerror ());
1.4 paf 12343:
1.5 moko 12344: return status;
1.4 paf 12345: }
1.5 moko 12346: _LT_EOF
12347: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.4 paf 12348: (eval $ac_link) 2>&5
12349: ac_status=$?
1.5 moko 12350: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12351: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12352: (./conftest; exit; ) >&5 2>/dev/null
12353: lt_status=$?
12354: case x$lt_status in
12355: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12356: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12357: x$lt_dlunknown|x*) ;;
12358: esac
12359: else :
12360: # compilation failed
1.4 paf 12361:
1.5 moko 12362: fi
1.4 paf 12363: fi
1.5 moko 12364: rm -fr conftest*
1.4 paf 12365:
1.5 moko 12366: LIBS="$save_LIBS"
1.4 paf 12367:
12368: fi
1.5 moko 12369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12370: $as_echo "$libltdl_cv_need_uscore" >&6; }
12371: fi
1.4 paf 12372: fi
12373:
1.5 moko 12374: if test x"$libltdl_cv_need_uscore" = xyes; then
12375:
12376: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.4 paf 12377:
12378: fi
12379:
1.5 moko 12380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12381: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12382: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12383: $as_echo_n "(cached) " >&6
1.2 paf 12384: else
1.5 moko 12385: # PORTME does your system automatically load deplibs for dlopen?
12386: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12387: # For now, we just catch OSes we know something about -- in the
12388: # future, we'll try test this programmatically.
12389: lt_cv_sys_dlopen_deplibs=unknown
12390: case $host_os in
12391: aix3*|aix4.1.*|aix4.2.*)
12392: # Unknown whether this is true for these versions of AIX, but
12393: # we want this `case' here to explicitly catch those versions.
12394: lt_cv_sys_dlopen_deplibs=unknown
12395: ;;
12396: aix[4-9]*)
12397: lt_cv_sys_dlopen_deplibs=yes
12398: ;;
12399: amigaos*)
12400: case $host_cpu in
12401: powerpc)
12402: lt_cv_sys_dlopen_deplibs=no
1.4 paf 12403: ;;
12404: esac
1.5 moko 12405: ;;
12406: darwin*)
12407: # Assuming the user has installed a libdl from somewhere, this is true
12408: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12409: lt_cv_sys_dlopen_deplibs=yes
12410: ;;
12411: freebsd* | dragonfly*)
12412: lt_cv_sys_dlopen_deplibs=yes
12413: ;;
12414: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12415: # GNU and its variants, using gnu ld.so (Glibc)
12416: lt_cv_sys_dlopen_deplibs=yes
12417: ;;
12418: hpux10*|hpux11*)
12419: lt_cv_sys_dlopen_deplibs=yes
12420: ;;
12421: interix*)
12422: lt_cv_sys_dlopen_deplibs=yes
12423: ;;
12424: irix[12345]*|irix6.[01]*)
12425: # Catch all versions of IRIX before 6.2, and indicate that we don't
12426: # know how it worked for any of those versions.
12427: lt_cv_sys_dlopen_deplibs=unknown
12428: ;;
12429: irix*)
12430: # The case above catches anything before 6.2, and it's known that
12431: # at 6.2 and later dlopen does load deplibs.
12432: lt_cv_sys_dlopen_deplibs=yes
12433: ;;
12434: netbsd*)
12435: lt_cv_sys_dlopen_deplibs=yes
12436: ;;
12437: openbsd*)
12438: lt_cv_sys_dlopen_deplibs=yes
12439: ;;
12440: osf[1234]*)
12441: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12442: # it did *not* use an RPATH in a shared library to find objects the
12443: # library depends on, so we explicitly say `no'.
12444: lt_cv_sys_dlopen_deplibs=no
12445: ;;
12446: osf5.0|osf5.0a|osf5.1)
12447: # dlopen *does* load deplibs and with the right loader patch applied
12448: # it even uses RPATH in a shared library to search for shared objects
12449: # that the library depends on, but there's no easy way to know if that
12450: # patch is installed. Since this is the case, all we can really
12451: # say is unknown -- it depends on the patch being installed. If
12452: # it is, this changes to `yes'. Without it, it would be `no'.
12453: lt_cv_sys_dlopen_deplibs=unknown
12454: ;;
12455: osf*)
12456: # the two cases above should catch all versions of osf <= 5.1. Read
12457: # the comments above for what we know about them.
12458: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12459: # is used to find them so we can finally say `yes'.
12460: lt_cv_sys_dlopen_deplibs=yes
12461: ;;
12462: qnx*)
12463: lt_cv_sys_dlopen_deplibs=yes
12464: ;;
12465: solaris*)
12466: lt_cv_sys_dlopen_deplibs=yes
12467: ;;
12468: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12469: libltdl_cv_sys_dlopen_deplibs=yes
12470: ;;
12471: esac
12472:
1.4 paf 12473: fi
1.5 moko 12474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12475: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12476: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
1.4 paf 12477:
1.5 moko 12478: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.1 paf 12479:
12480: fi
12481:
1.5 moko 12482: :
1.4 paf 12483:
1.5 moko 12484: for ac_header in argz.h
12485: do :
12486: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12487: "
12488: if test "x$ac_cv_header_argz_h" = xyes; then :
1.4 paf 12489: cat >>confdefs.h <<_ACEOF
1.5 moko 12490: #define HAVE_ARGZ_H 1
1.4 paf 12491: _ACEOF
12492:
12493: fi
1.1 paf 12494:
1.2 paf 12495: done
1.4 paf 12496:
12497:
1.5 moko 12498: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12499: # include <argz.h>
12500: #endif
12501: "
12502: if test "x$ac_cv_type_error_t" = xyes; then :
1.4 paf 12503:
1.5 moko 12504: cat >>confdefs.h <<_ACEOF
12505: #define HAVE_ERROR_T 1
12506: _ACEOF
1.4 paf 12507:
12508:
1.5 moko 12509: else
1.4 paf 12510:
1.5 moko 12511: $as_echo "#define error_t int" >>confdefs.h
1.4 paf 12512:
12513:
1.5 moko 12514: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.4 paf 12515:
12516: fi
12517:
12518:
1.5 moko 12519: ARGZ_H=
12520: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12521: argz_next argz_stringify
12522: do :
12523: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12524: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12525: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12526: cat >>confdefs.h <<_ACEOF
12527: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12528: _ACEOF
1.4 paf 12529:
1.5 moko 12530: else
12531: ARGZ_H=argz.h; case " $LIBOBJS " in
12532: *" argz.$ac_objext "* ) ;;
12533: *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12534: ;;
12535: esac
1.4 paf 12536:
12537: fi
1.5 moko 12538: done
1.4 paf 12539:
12540:
1.5 moko 12541: if test -z "$ARGZ_H"; then :
12542: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12543: $as_echo_n "checking if argz actually works... " >&6; }
12544: if ${lt_cv_sys_argz_works+:} false; then :
12545: $as_echo_n "(cached) " >&6
12546: else
12547: case $host_os in #(
12548: *cygwin*)
12549: lt_cv_sys_argz_works=no
12550: if test "$cross_compiling" != no; then
12551: lt_cv_sys_argz_works="guessing no"
12552: else
12553: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12554: save_IFS=$IFS
12555: IFS=-.
12556: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12557: IFS=$save_IFS
12558: lt_os_major=${2-0}
12559: lt_os_minor=${3-0}
12560: lt_os_micro=${4-0}
12561: if test "$lt_os_major" -gt 1 \
12562: || { test "$lt_os_major" -eq 1 \
12563: && { test "$lt_os_minor" -gt 5 \
12564: || { test "$lt_os_minor" -eq 5 \
12565: && test "$lt_os_micro" -gt 24; }; }; }; then
12566: lt_cv_sys_argz_works=yes
12567: fi
12568: fi
12569: ;; #(
12570: *) lt_cv_sys_argz_works=yes ;;
12571: esac
1.4 paf 12572: fi
1.5 moko 12573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12574: $as_echo "$lt_cv_sys_argz_works" >&6; }
12575: if test "$lt_cv_sys_argz_works" = yes; then :
1.4 paf 12576:
1.5 moko 12577: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.4 paf 12578:
12579: else
1.5 moko 12580: ARGZ_H=argz.h
12581: case " $LIBOBJS " in
12582: *" argz.$ac_objext "* ) ;;
12583: *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12584: ;;
12585: esac
12586:
1.4 paf 12587: fi
1.5 moko 12588: fi
12589:
1.4 paf 12590:
1.5 moko 12591:
12592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12593: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12594: if ${libltdl_cv_preloaded_symbols+:} false; then :
12595: $as_echo_n "(cached) " >&6
12596: else
12597: if test -n "$lt_cv_sys_global_symbol_pipe"; then
12598: libltdl_cv_preloaded_symbols=yes
12599: else
12600: libltdl_cv_preloaded_symbols=no
12601: fi
1.4 paf 12602:
1.1 paf 12603: fi
1.5 moko 12604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12605: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12606: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
1.1 paf 12607:
1.5 moko 12608: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.1 paf 12609:
1.4 paf 12610: fi
12611:
12612:
1.5 moko 12613:
12614: # Check whether --enable-ltdl-install was given.
12615: if test "${enable_ltdl_install+set}" = set; then :
12616: enableval=$enable_ltdl_install;
1.4 paf 12617: fi
12618:
1.5 moko 12619:
12620: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12621: *yes*) ;;
12622: *) enable_ltdl_convenience=yes ;;
12623: esac
12624:
12625: if test x"${enable_ltdl_install-no}" != xno; then
12626: INSTALL_LTDL_TRUE=
12627: INSTALL_LTDL_FALSE='#'
1.4 paf 12628: else
1.5 moko 12629: INSTALL_LTDL_TRUE='#'
12630: INSTALL_LTDL_FALSE=
12631: fi
12632:
12633: if test x"${enable_ltdl_convenience-no}" != xno; then
12634: CONVENIENCE_LTDL_TRUE=
12635: CONVENIENCE_LTDL_FALSE='#'
1.4 paf 12636: else
1.5 moko 12637: CONVENIENCE_LTDL_TRUE='#'
12638: CONVENIENCE_LTDL_FALSE=
1.1 paf 12639: fi
1.4 paf 12640:
12641:
12642:
12643:
12644:
12645:
1.5 moko 12646: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12647: # the user used. This is so that ltdl.h can pick up the parent projects
12648: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12649: # definitions required by ltdl.c.
12650: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
1.4 paf 12651:
12652:
12653:
1.5 moko 12654: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12655: do :
12656: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12657: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12658: "
12659: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12660: cat >>confdefs.h <<_ACEOF
12661: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.2 paf 12662: _ACEOF
12663:
1.4 paf 12664: fi
12665:
1.5 moko 12666: done
12667:
12668:
12669: for ac_func in closedir opendir readdir
12670: do :
12671: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12673: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12674: cat >>confdefs.h <<_ACEOF
12675: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.4 paf 12676: _ACEOF
1.2 paf 12677:
1.4 paf 12678: else
1.5 moko 12679: case " $LIBOBJS " in
12680: *" lt__dirent.$ac_objext "* ) ;;
12681: *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
12682: ;;
12683: esac
12684:
12685: fi
12686: done
12687:
12688: for ac_func in strlcat strlcpy
12689: do :
12690: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12691: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12692: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12693: cat >>confdefs.h <<_ACEOF
12694: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.2 paf 12695: _ACEOF
1.4 paf 12696:
1.2 paf 12697: else
1.5 moko 12698: case " $LIBOBJS " in
12699: *" lt__strl.$ac_objext "* ) ;;
12700: *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
12701: ;;
12702: esac
1.2 paf 12703:
1.1 paf 12704: fi
1.5 moko 12705: done
12706:
12707:
1.1 paf 12708:
1.5 moko 12709: cat >>confdefs.h <<_ACEOF
12710: #define LT_LIBEXT "$libext"
1.4 paf 12711: _ACEOF
1.2 paf 12712:
1.5 moko 12713:
12714: name=
12715: eval "lt_libprefix=\"$libname_spec\""
12716:
12717: cat >>confdefs.h <<_ACEOF
12718: #define LT_LIBPREFIX "$lt_libprefix"
1.2 paf 12719: _ACEOF
12720:
1.5 moko 12721:
12722: name=ltdl
12723: eval "LTDLOPEN=\"$libname_spec\""
12724:
12725:
12726:
12727:
12728: ## -------- ##
12729: ## Outputs. ##
12730: ## -------- ##
12731: ac_config_files="$ac_config_files Makefile"
12732:
12733: cat >confcache <<\_ACEOF
12734: # This file is a shell script that caches the results of configure
12735: # tests run on this system so they can be shared between configure
12736: # scripts and configure runs, see configure's option --config-cache.
12737: # It is not useful on other systems. If it contains results you don't
12738: # want to keep, you may remove or edit it.
12739: #
12740: # config.status only pays attention to the cache file if you give it
12741: # the --recheck option to rerun configure.
12742: #
12743: # `ac_cv_env_foo' variables (set or unset) will be overridden when
12744: # loading this file, other *unset* `ac_cv_foo' will be assigned the
12745: # following values.
12746:
1.2 paf 12747: _ACEOF
12748:
1.5 moko 12749: # The following way of writing the cache mishandles newlines in values,
12750: # but we know of no workaround that is simple, portable, and efficient.
12751: # So, we kill variables containing newlines.
12752: # Ultrix sh set writes to stderr and can't be redirected directly,
12753: # and sets the high bit in the cache file unless we assign to the vars.
12754: (
12755: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12756: eval ac_val=\$$ac_var
12757: case $ac_val in #(
12758: *${as_nl}*)
12759: case $ac_var in #(
12760: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12761: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12762: esac
12763: case $ac_var in #(
12764: _ | IFS | as_nl) ;; #(
12765: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12766: *) { eval $ac_var=; unset $ac_var;} ;;
12767: esac ;;
12768: esac
12769: done
12770:
12771: (set) 2>&1 |
12772: case $as_nl`(ac_space=' '; set) 2>&1` in #(
12773: *${as_nl}ac_space=\ *)
12774: # `set' does not quote correctly, so add quotes: double-quote
12775: # substitution turns \\\\ into \\, and sed turns \\ into \.
12776: sed -n \
12777: "s/'/'\\\\''/g;
12778: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12779: ;; #(
12780: *)
12781: # `set' quotes correctly as required by POSIX, so do not add quotes.
12782: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12783: ;;
12784: esac |
12785: sort
12786: ) |
12787: sed '
12788: /^ac_cv_env_/b end
12789: t clear
12790: :clear
12791: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12792: t end
12793: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12794: :end' >>confcache
12795: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12796: if test -w "$cache_file"; then
12797: if test "x$cache_file" != "x/dev/null"; then
12798: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12799: $as_echo "$as_me: updating cache $cache_file" >&6;}
12800: if test ! -f "$cache_file" || test -h "$cache_file"; then
12801: cat confcache >"$cache_file"
12802: else
12803: case $cache_file in #(
12804: */* | ?:*)
12805: mv -f confcache "$cache_file"$$ &&
12806: mv -f "$cache_file"$$ "$cache_file" ;; #(
12807: *)
12808: mv -f confcache "$cache_file" ;;
12809: esac
12810: fi
12811: fi
12812: else
12813: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12814: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12815: fi
1.4 paf 12816: fi
1.5 moko 12817: rm -f confcache
12818:
12819: test "x$prefix" = xNONE && prefix=$ac_default_prefix
12820: # Let make expand exec_prefix.
12821: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12822:
12823: DEFS=-DHAVE_CONFIG_H
12824:
12825: ac_libobjs=
12826: ac_ltlibobjs=
12827: U=
12828: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12829: # 1. Remove the extension, and $U if already installed.
12830: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12831: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12832: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12833: # will be set to the directory where LIBOBJS objects are built.
12834: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12835: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12836: done
12837: LIBOBJS=$ac_libobjs
12838:
12839: LTLIBOBJS=$ac_ltlibobjs
1.4 paf 12840:
1.1 paf 12841:
1.8 moko 12842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12843: $as_echo_n "checking that generated files are newer than configure... " >&6; }
12844: if test -n "$am_sleep_pid"; then
12845: # Hide warnings about reused PIDs.
12846: wait $am_sleep_pid 2>/dev/null
12847: fi
12848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12849: $as_echo "done" >&6; }
1.5 moko 12850: if test -n "$EXEEXT"; then
12851: am__EXEEXT_TRUE=
12852: am__EXEEXT_FALSE='#'
1.4 paf 12853: else
1.5 moko 12854: am__EXEEXT_TRUE='#'
12855: am__EXEEXT_FALSE=
12856: fi
1.4 paf 12857:
1.5 moko 12858: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12859: as_fn_error $? "conditional \"AMDEP\" was never defined.
12860: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12861: fi
12862: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12863: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12864: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12865: fi
12866: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12867: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
12868: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12869: fi
12870: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12871: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
12872: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12873: fi
12874: LT_CONFIG_H=config.h
1.2 paf 12875:
1.5 moko 12876: : "${CONFIG_STATUS=./config.status}"
12877: ac_write_fail=0
12878: ac_clean_files_save=$ac_clean_files
12879: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12880: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12881: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12882: as_write_fail=0
12883: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12884: #! $SHELL
12885: # Generated by $as_me.
12886: # Run this file to recreate the current configuration.
12887: # Compiler output produced by configure, useful for debugging
12888: # configure, is in config.log if it exists.
1.4 paf 12889:
1.5 moko 12890: debug=false
12891: ac_cs_recheck=false
12892: ac_cs_silent=false
1.1 paf 12893:
1.5 moko 12894: SHELL=\${CONFIG_SHELL-$SHELL}
12895: export SHELL
12896: _ASEOF
12897: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12898: ## -------------------- ##
12899: ## M4sh Initialization. ##
12900: ## -------------------- ##
12901:
12902: # Be more Bourne compatible
12903: DUALCASE=1; export DUALCASE # for MKS sh
12904: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12905: emulate sh
12906: NULLCMD=:
12907: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12908: # is contrary to our usage. Disable this feature.
12909: alias -g '${1+"$@"}'='"$@"'
12910: setopt NO_GLOB_SUBST
1.4 paf 12911: else
1.5 moko 12912: case `(set -o) 2>/dev/null` in #(
12913: *posix*) :
12914: set -o posix ;; #(
12915: *) :
12916: ;;
12917: esac
12918: fi
1.2 paf 12919:
1.4 paf 12920:
1.5 moko 12921: as_nl='
12922: '
12923: export as_nl
12924: # Printing a long string crashes Solaris 7 /usr/bin/printf.
12925: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12926: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12927: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12928: # Prefer a ksh shell builtin over an external printf program on Solaris,
12929: # but without wasting forks for bash or zsh.
12930: if test -z "$BASH_VERSION$ZSH_VERSION" \
12931: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12932: as_echo='print -r --'
12933: as_echo_n='print -rn --'
12934: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12935: as_echo='printf %s\n'
12936: as_echo_n='printf %s'
12937: else
12938: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12939: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12940: as_echo_n='/usr/ucb/echo -n'
12941: else
12942: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12943: as_echo_n_body='eval
12944: arg=$1;
12945: case $arg in #(
12946: *"$as_nl"*)
12947: expr "X$arg" : "X\\(.*\\)$as_nl";
12948: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12949: esac;
12950: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12951: '
12952: export as_echo_n_body
12953: as_echo_n='sh -c $as_echo_n_body as_echo'
12954: fi
12955: export as_echo_body
12956: as_echo='sh -c $as_echo_body as_echo'
1.4 paf 12957: fi
1.5 moko 12958:
12959: # The user is always right.
12960: if test "${PATH_SEPARATOR+set}" != set; then
12961: PATH_SEPARATOR=:
12962: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12963: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12964: PATH_SEPARATOR=';'
12965: }
1.1 paf 12966: fi
1.4 paf 12967:
1.1 paf 12968:
1.5 moko 12969: # IFS
12970: # We need space, tab and new line, in precisely that order. Quoting is
12971: # there to prevent editors from complaining about space-tab.
12972: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12973: # splitting by setting IFS to empty value.)
12974: IFS=" "" $as_nl"
12975:
12976: # Find who we are. Look in the path if we contain no directory separator.
12977: as_myself=
12978: case $0 in #((
12979: *[\\/]* ) as_myself=$0 ;;
12980: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981: for as_dir in $PATH
12982: do
12983: IFS=$as_save_IFS
12984: test -z "$as_dir" && as_dir=.
12985: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12986: done
12987: IFS=$as_save_IFS
12988:
12989: ;;
12990: esac
12991: # We did not find ourselves, most probably we were run as `sh COMMAND'
12992: # in which case we are not to be found in the path.
12993: if test "x$as_myself" = x; then
12994: as_myself=$0
12995: fi
12996: if test ! -f "$as_myself"; then
12997: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12998: exit 1
12999: fi
13000:
13001: # Unset variables that we do not need and which cause bugs (e.g. in
13002: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13003: # suppresses any "Segmentation fault" message there. '((' could
13004: # trigger a bug in pdksh 5.2.14.
13005: for as_var in BASH_ENV ENV MAIL MAILPATH
13006: do eval test x\${$as_var+set} = xset \
13007: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13008: done
13009: PS1='$ '
13010: PS2='> '
13011: PS4='+ '
1.4 paf 13012:
1.5 moko 13013: # NLS nuisances.
13014: LC_ALL=C
13015: export LC_ALL
13016: LANGUAGE=C
13017: export LANGUAGE
1.2 paf 13018:
1.5 moko 13019: # CDPATH.
13020: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 paf 13021:
1.2 paf 13022:
1.5 moko 13023: # as_fn_error STATUS ERROR [LINENO LOG_FD]
13024: # ----------------------------------------
13025: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13026: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13027: # script with STATUS, using 1 if that was 0.
13028: as_fn_error ()
13029: {
13030: as_status=$1; test $as_status -eq 0 && as_status=1
13031: if test "$4"; then
13032: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13033: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13034: fi
13035: $as_echo "$as_me: error: $2" >&2
13036: as_fn_exit $as_status
13037: } # as_fn_error
13038:
13039:
13040: # as_fn_set_status STATUS
13041: # -----------------------
13042: # Set $? to STATUS, without forking.
13043: as_fn_set_status ()
13044: {
13045: return $1
13046: } # as_fn_set_status
13047:
13048: # as_fn_exit STATUS
13049: # -----------------
13050: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13051: as_fn_exit ()
13052: {
13053: set +e
13054: as_fn_set_status $1
13055: exit $1
13056: } # as_fn_exit
13057:
13058: # as_fn_unset VAR
13059: # ---------------
13060: # Portably unset VAR.
13061: as_fn_unset ()
13062: {
13063: { eval $1=; unset $1;}
13064: }
13065: as_unset=as_fn_unset
13066: # as_fn_append VAR VALUE
13067: # ----------------------
13068: # Append the text in VALUE to the end of the definition contained in VAR. Take
13069: # advantage of any shell optimizations that allow amortized linear growth over
13070: # repeated appends, instead of the typical quadratic growth present in naive
13071: # implementations.
13072: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13073: eval 'as_fn_append ()
13074: {
13075: eval $1+=\$2
13076: }'
13077: else
13078: as_fn_append ()
13079: {
13080: eval $1=\$$1\$2
13081: }
13082: fi # as_fn_append
1.4 paf 13083:
1.5 moko 13084: # as_fn_arith ARG...
13085: # ------------------
13086: # Perform arithmetic evaluation on the ARGs, and store the result in the
13087: # global $as_val. Take advantage of shells that can avoid forks. The arguments
13088: # must be portable across $(()) and expr.
13089: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13090: eval 'as_fn_arith ()
13091: {
13092: as_val=$(( $* ))
13093: }'
13094: else
13095: as_fn_arith ()
13096: {
13097: as_val=`expr "$@" || test $? -eq 1`
13098: }
13099: fi # as_fn_arith
1.4 paf 13100:
13101:
1.5 moko 13102: if expr a : '\(a\)' >/dev/null 2>&1 &&
13103: test "X`expr 00001 : '.*\(...\)'`" = X001; then
13104: as_expr=expr
13105: else
13106: as_expr=false
1.2 paf 13107: fi
13108:
1.5 moko 13109: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13110: as_basename=basename
13111: else
13112: as_basename=false
1.4 paf 13113: fi
1.2 paf 13114:
1.5 moko 13115: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13116: as_dirname=dirname
13117: else
13118: as_dirname=false
1.4 paf 13119: fi
1.2 paf 13120:
1.5 moko 13121: as_me=`$as_basename -- "$0" ||
13122: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13123: X"$0" : 'X\(//\)$' \| \
13124: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13125: $as_echo X/"$0" |
13126: sed '/^.*\/\([^/][^/]*\)\/*$/{
13127: s//\1/
13128: q
13129: }
13130: /^X\/\(\/\/\)$/{
13131: s//\1/
13132: q
13133: }
13134: /^X\/\(\/\).*/{
13135: s//\1/
13136: q
13137: }
13138: s/.*/./; q'`
1.2 paf 13139:
1.5 moko 13140: # Avoid depending upon Character Ranges.
13141: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13142: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13143: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13144: as_cr_digits='0123456789'
13145: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.2 paf 13146:
1.5 moko 13147: ECHO_C= ECHO_N= ECHO_T=
13148: case `echo -n x` in #(((((
13149: -n*)
13150: case `echo 'xy\c'` in
13151: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13152: xy) ECHO_C='\c';;
13153: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13154: ECHO_T=' ';;
13155: esac;;
13156: *)
13157: ECHO_N='-n';;
13158: esac
1.2 paf 13159:
1.5 moko 13160: rm -f conf$$ conf$$.exe conf$$.file
13161: if test -d conf$$.dir; then
13162: rm -f conf$$.dir/conf$$.file
13163: else
13164: rm -f conf$$.dir
13165: mkdir conf$$.dir 2>/dev/null
13166: fi
13167: if (echo >conf$$.file) 2>/dev/null; then
13168: if ln -s conf$$.file conf$$ 2>/dev/null; then
13169: as_ln_s='ln -s'
13170: # ... but there are two gotchas:
13171: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13172: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.7 moko 13173: # In both cases, we have to default to `cp -pR'.
1.5 moko 13174: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.7 moko 13175: as_ln_s='cp -pR'
1.5 moko 13176: elif ln conf$$.file conf$$ 2>/dev/null; then
13177: as_ln_s=ln
13178: else
1.7 moko 13179: as_ln_s='cp -pR'
1.5 moko 13180: fi
13181: else
1.7 moko 13182: as_ln_s='cp -pR'
1.4 paf 13183: fi
1.5 moko 13184: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13185: rmdir conf$$.dir 2>/dev/null
1.2 paf 13186:
13187:
1.5 moko 13188: # as_fn_mkdir_p
13189: # -------------
13190: # Create "$as_dir" as a directory, including parents if necessary.
13191: as_fn_mkdir_p ()
1.4 paf 13192: {
1.2 paf 13193:
1.5 moko 13194: case $as_dir in #(
13195: -*) as_dir=./$as_dir;;
13196: esac
13197: test -d "$as_dir" || eval $as_mkdir_p || {
13198: as_dirs=
13199: while :; do
13200: case $as_dir in #(
13201: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13202: *) as_qdir=$as_dir;;
13203: esac
13204: as_dirs="'$as_qdir' $as_dirs"
13205: as_dir=`$as_dirname -- "$as_dir" ||
13206: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13207: X"$as_dir" : 'X\(//\)[^/]' \| \
13208: X"$as_dir" : 'X\(//\)$' \| \
13209: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13210: $as_echo X"$as_dir" |
13211: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13212: s//\1/
13213: q
13214: }
13215: /^X\(\/\/\)[^/].*/{
13216: s//\1/
13217: q
13218: }
13219: /^X\(\/\/\)$/{
13220: s//\1/
13221: q
13222: }
13223: /^X\(\/\).*/{
13224: s//\1/
13225: q
13226: }
13227: s/.*/./; q'`
13228: test -d "$as_dir" && break
13229: done
13230: test -z "$as_dirs" || eval "mkdir $as_dirs"
13231: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 paf 13232:
1.4 paf 13233:
1.5 moko 13234: } # as_fn_mkdir_p
13235: if mkdir -p . 2>/dev/null; then
13236: as_mkdir_p='mkdir -p "$as_dir"'
13237: else
13238: test -d ./-p && rmdir ./-p
13239: as_mkdir_p=false
1.4 paf 13240: fi
13241:
1.7 moko 13242:
13243: # as_fn_executable_p FILE
13244: # -----------------------
13245: # Test if FILE is an executable regular file.
13246: as_fn_executable_p ()
13247: {
13248: test -f "$1" && test -x "$1"
13249: } # as_fn_executable_p
13250: as_test_x='test -x'
13251: as_executable_p=as_fn_executable_p
1.4 paf 13252:
1.5 moko 13253: # Sed expression to map a string onto a valid CPP name.
13254: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.4 paf 13255:
1.5 moko 13256: # Sed expression to map a string onto a valid variable name.
13257: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.4 paf 13258:
13259:
1.5 moko 13260: exec 6>&1
13261: ## ----------------------------------- ##
13262: ## Main body of $CONFIG_STATUS script. ##
13263: ## ----------------------------------- ##
13264: _ASEOF
13265: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.4 paf 13266:
1.5 moko 13267: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13268: # Save the log message, to keep $0 and so on meaningful, and to
13269: # report actual input values of CONFIG_FILES etc. instead of their
13270: # values after options handling.
13271: ac_log="
13272: This file was extended by libltdl $as_me 2.4.2, which was
1.7 moko 13273: generated by GNU Autoconf 2.69. Invocation command line was
1.4 paf 13274:
1.5 moko 13275: CONFIG_FILES = $CONFIG_FILES
13276: CONFIG_HEADERS = $CONFIG_HEADERS
13277: CONFIG_LINKS = $CONFIG_LINKS
13278: CONFIG_COMMANDS = $CONFIG_COMMANDS
13279: $ $0 $@
1.4 paf 13280:
1.5 moko 13281: on `(hostname || uname -n) 2>/dev/null | sed 1q`
13282: "
1.4 paf 13283:
1.5 moko 13284: _ACEOF
1.4 paf 13285:
1.5 moko 13286: case $ac_config_files in *"
13287: "*) set x $ac_config_files; shift; ac_config_files=$*;;
13288: esac
1.4 paf 13289:
1.5 moko 13290: case $ac_config_headers in *"
13291: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13292: esac
1.4 paf 13293:
13294:
1.5 moko 13295: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13296: # Files that config.status was made for.
13297: config_files="$ac_config_files"
13298: config_headers="$ac_config_headers"
13299: config_commands="$ac_config_commands"
1.4 paf 13300:
1.5 moko 13301: _ACEOF
1.1 paf 13302:
1.5 moko 13303: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13304: ac_cs_usage="\
13305: \`$as_me' instantiates files and other configuration actions
13306: from templates according to the current configuration. Unless the files
13307: and actions are specified as TAGs, all are instantiated by default.
1.2 paf 13308:
1.5 moko 13309: Usage: $0 [OPTION]... [TAG]...
1.2 paf 13310:
1.5 moko 13311: -h, --help print this help, then exit
13312: -V, --version print version number and configuration settings, then exit
13313: --config print configuration, then exit
13314: -q, --quiet, --silent
13315: do not print progress messages
13316: -d, --debug don't remove temporary files
13317: --recheck update $as_me by reconfiguring in the same conditions
13318: --file=FILE[:TEMPLATE]
13319: instantiate the configuration file FILE
13320: --header=FILE[:TEMPLATE]
13321: instantiate the configuration header FILE
1.2 paf 13322:
1.5 moko 13323: Configuration files:
13324: $config_files
1.2 paf 13325:
1.5 moko 13326: Configuration headers:
13327: $config_headers
1.2 paf 13328:
1.5 moko 13329: Configuration commands:
13330: $config_commands
1.4 paf 13331:
1.5 moko 13332: Report bugs to <bug-libtool@gnu.org>."
1.2 paf 13333:
1.4 paf 13334: _ACEOF
1.5 moko 13335: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13336: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13337: ac_cs_version="\\
13338: libltdl config.status 2.4.2
1.7 moko 13339: configured by $0, generated by GNU Autoconf 2.69,
1.5 moko 13340: with options \\"\$ac_cs_config\\"
1.2 paf 13341:
1.7 moko 13342: Copyright (C) 2012 Free Software Foundation, Inc.
1.5 moko 13343: This config.status script is free software; the Free Software Foundation
13344: gives unlimited permission to copy, distribute and modify it."
1.2 paf 13345:
1.5 moko 13346: ac_pwd='$ac_pwd'
13347: srcdir='$srcdir'
13348: INSTALL='$INSTALL'
13349: MKDIR_P='$MKDIR_P'
13350: AWK='$AWK'
13351: test -n "\$AWK" || AWK=awk
13352: _ACEOF
1.2 paf 13353:
1.5 moko 13354: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13355: # The default lists apply if the user does not specify any file.
13356: ac_need_defaults=:
13357: while test $# != 0
1.1 paf 13358: do
1.5 moko 13359: case $1 in
13360: --*=?*)
13361: ac_option=`expr "X$1" : 'X\([^=]*\)='`
13362: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13363: ac_shift=:
13364: ;;
13365: --*=)
13366: ac_option=`expr "X$1" : 'X\([^=]*\)='`
13367: ac_optarg=
13368: ac_shift=:
1.2 paf 13369: ;;
1.5 moko 13370: *)
13371: ac_option=$1
13372: ac_optarg=$2
13373: ac_shift=shift
1.2 paf 13374: ;;
1.5 moko 13375: esac
13376:
13377: case $ac_option in
13378: # Handling of the options.
13379: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13380: ac_cs_recheck=: ;;
13381: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13382: $as_echo "$ac_cs_version"; exit ;;
13383: --config | --confi | --conf | --con | --co | --c )
13384: $as_echo "$ac_cs_config"; exit ;;
13385: --debug | --debu | --deb | --de | --d | -d )
13386: debug=: ;;
13387: --file | --fil | --fi | --f )
13388: $ac_shift
13389: case $ac_optarg in
13390: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13391: '') as_fn_error $? "missing file argument" ;;
13392: esac
13393: as_fn_append CONFIG_FILES " '$ac_optarg'"
13394: ac_need_defaults=false;;
13395: --header | --heade | --head | --hea )
13396: $ac_shift
13397: case $ac_optarg in
13398: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13399: esac
13400: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13401: ac_need_defaults=false;;
13402: --he | --h)
13403: # Conflict between --help and --header
13404: as_fn_error $? "ambiguous option: \`$1'
13405: Try \`$0 --help' for more information.";;
13406: --help | --hel | -h )
13407: $as_echo "$ac_cs_usage"; exit ;;
13408: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13409: | -silent | --silent | --silen | --sile | --sil | --si | --s)
13410: ac_cs_silent=: ;;
1.2 paf 13411:
1.5 moko 13412: # This is an error.
13413: -*) as_fn_error $? "unrecognized option: \`$1'
13414: Try \`$0 --help' for more information." ;;
1.2 paf 13415:
1.5 moko 13416: *) as_fn_append ac_config_targets " $1"
13417: ac_need_defaults=false ;;
1.2 paf 13418:
1.5 moko 13419: esac
13420: shift
1.1 paf 13421: done
13422:
1.5 moko 13423: ac_configure_extra_args=
13424:
13425: if $ac_cs_silent; then
13426: exec 6>/dev/null
13427: ac_configure_extra_args="$ac_configure_extra_args --silent"
13428: fi
1.2 paf 13429:
1.4 paf 13430: _ACEOF
1.5 moko 13431: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13432: if \$ac_cs_recheck; then
1.7 moko 13433: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.5 moko 13434: shift
13435: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13436: CONFIG_SHELL='$SHELL'
13437: export CONFIG_SHELL
13438: exec "\$@"
13439: fi
1.4 paf 13440:
1.5 moko 13441: _ACEOF
13442: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13443: exec 5>>config.log
1.4 paf 13444: {
1.5 moko 13445: echo
13446: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13447: ## Running $as_me. ##
13448: _ASBOX
13449: $as_echo "$ac_log"
13450: } >&5
13451:
1.4 paf 13452: _ACEOF
1.5 moko 13453: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13454: #
13455: # INIT-COMMANDS
13456: #
1.8 moko 13457: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.4 paf 13458:
13459:
1.5 moko 13460: # The HP-UX ksh and POSIX shell print the target directory to stdout
13461: # if CDPATH is set.
13462: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.4 paf 13463:
1.5 moko 13464: sed_quote_subst='$sed_quote_subst'
13465: double_quote_subst='$double_quote_subst'
13466: delay_variable_subst='$delay_variable_subst'
13467: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13468: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13469: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13470: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13471: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13472: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13473: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13474: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13475: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13476: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13477: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13478: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13479: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13480: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13481: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13482: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13483: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13484: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13485: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13486: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13487: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13488: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13489: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13490: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13491: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13492: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13493: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13494: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13495: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13496: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13497: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13498: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13499: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13500: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13501: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13502: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13503: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13504: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13505: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13506: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13507: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13508: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13509: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13510: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13511: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13512: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13513: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13514: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13515: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13516: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13517: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13518: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13519: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13520: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13521: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13522: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13523: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13524: 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"`'
13525: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13526: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13527: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13528: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13529: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13530: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13531: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13532: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13533: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13534: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13535: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13536: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13537: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13538: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13539: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13540: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13541: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13542: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13543: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13544: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13545: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13546: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13547: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13548: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13549: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13550: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13551: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13552: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13553: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13554: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13555: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13556: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13557: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13558: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13559: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13560: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13561: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13562: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13563: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13564: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13565: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13566: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13567: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13568: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13569: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13570: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13571: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13572: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13573: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13574: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13575: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13576: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13577: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13578: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13579: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13580: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13581: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13582: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13583: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13584: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13585: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13586: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13587: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13588: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13589: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13590: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13591: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13592: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13593: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13594: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13595: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13596: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13597: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13598:
13599: LTCC='$LTCC'
13600: LTCFLAGS='$LTCFLAGS'
13601: compiler='$compiler_DEFAULT'
13602:
13603: # A function that is used when there is no print builtin or printf.
13604: func_fallback_echo ()
13605: {
13606: eval 'cat <<_LTECHO_EOF
13607: \$1
13608: _LTECHO_EOF'
13609: }
13610:
13611: # Quote evaled strings.
13612: for var in AS \
13613: DLLTOOL \
13614: OBJDUMP \
13615: SHELL \
13616: ECHO \
13617: PATH_SEPARATOR \
13618: SED \
13619: GREP \
13620: EGREP \
13621: FGREP \
13622: LD \
13623: NM \
13624: LN_S \
13625: lt_SP2NL \
13626: lt_NL2SP \
13627: reload_flag \
13628: deplibs_check_method \
13629: file_magic_cmd \
13630: file_magic_glob \
13631: want_nocaseglob \
13632: sharedlib_from_linklib_cmd \
13633: AR \
13634: AR_FLAGS \
13635: archiver_list_spec \
13636: STRIP \
13637: RANLIB \
13638: CC \
13639: CFLAGS \
13640: compiler \
13641: lt_cv_sys_global_symbol_pipe \
13642: lt_cv_sys_global_symbol_to_cdecl \
13643: lt_cv_sys_global_symbol_to_c_name_address \
13644: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13645: nm_file_list_spec \
13646: lt_prog_compiler_no_builtin_flag \
13647: lt_prog_compiler_pic \
13648: lt_prog_compiler_wl \
13649: lt_prog_compiler_static \
13650: lt_cv_prog_compiler_c_o \
13651: need_locks \
13652: MANIFEST_TOOL \
13653: DSYMUTIL \
13654: NMEDIT \
13655: LIPO \
13656: OTOOL \
13657: OTOOL64 \
13658: shrext_cmds \
13659: export_dynamic_flag_spec \
13660: whole_archive_flag_spec \
13661: compiler_needs_object \
13662: with_gnu_ld \
13663: allow_undefined_flag \
13664: no_undefined_flag \
13665: hardcode_libdir_flag_spec \
13666: hardcode_libdir_separator \
13667: exclude_expsyms \
13668: include_expsyms \
13669: file_list_spec \
13670: variables_saved_for_relink \
13671: libname_spec \
13672: library_names_spec \
13673: soname_spec \
13674: install_override_mode \
13675: finish_eval \
13676: old_striplib \
13677: striplib; do
13678: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13679: *[\\\\\\\`\\"\\\$]*)
13680: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13681: ;;
13682: *)
13683: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13684: ;;
13685: esac
13686: done
1.4 paf 13687:
1.5 moko 13688: # Double-quote double-evaled strings.
13689: for var in reload_cmds \
13690: old_postinstall_cmds \
13691: old_postuninstall_cmds \
13692: old_archive_cmds \
13693: extract_expsyms_cmds \
13694: old_archive_from_new_cmds \
13695: old_archive_from_expsyms_cmds \
13696: archive_cmds \
13697: archive_expsym_cmds \
13698: module_cmds \
13699: module_expsym_cmds \
13700: export_symbols_cmds \
13701: prelink_cmds \
13702: postlink_cmds \
13703: postinstall_cmds \
13704: postuninstall_cmds \
13705: finish_cmds \
13706: sys_lib_search_path_spec \
13707: sys_lib_dlsearch_path_spec; do
13708: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13709: *[\\\\\\\`\\"\\\$]*)
13710: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13711: ;;
13712: *)
13713: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13714: ;;
13715: esac
13716: done
1.4 paf 13717:
1.5 moko 13718: ac_aux_dir='$ac_aux_dir'
13719: xsi_shell='$xsi_shell'
13720: lt_shell_append='$lt_shell_append'
1.4 paf 13721:
1.5 moko 13722: # See if we are running on zsh, and set the options which allow our
13723: # commands through without removal of \ escapes INIT.
13724: if test -n "\${ZSH_VERSION+set}" ; then
13725: setopt NO_GLOB_SUBST
1.4 paf 13726: fi
13727:
13728:
1.5 moko 13729: PACKAGE='$PACKAGE'
13730: VERSION='$VERSION'
13731: TIMESTAMP='$TIMESTAMP'
13732: RM='$RM'
13733: ofile='$ofile'
1.4 paf 13734:
13735:
13736:
13737:
13738: _ACEOF
13739:
1.5 moko 13740: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.4 paf 13741:
1.5 moko 13742: # Handling of arguments.
13743: for ac_config_target in $ac_config_targets
13744: do
13745: case $ac_config_target in
13746: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
13747: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13748: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13749: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.4 paf 13750:
1.5 moko 13751: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13752: esac
1.4 paf 13753: done
13754:
13755:
1.5 moko 13756: # If the user did not use the arguments to specify the items to instantiate,
13757: # then the envvar interface is used. Set only those that are not.
13758: # We use the long form for the default assignment because of an extremely
13759: # bizarre bug on SunOS 4.1.3.
13760: if $ac_need_defaults; then
13761: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13762: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13763: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13764: fi
1.4 paf 13765:
1.5 moko 13766: # Have a temporary directory for convenience. Make it in the build tree
13767: # simply because there is no reason against having it here, and in addition,
13768: # creating and moving files from /tmp can sometimes cause problems.
13769: # Hook for its removal unless debugging.
13770: # Note that there is a small window in which the directory will not be cleaned:
13771: # after its creation but before its name has been assigned to `$tmp'.
13772: $debug ||
13773: {
13774: tmp= ac_tmp=
13775: trap 'exit_status=$?
13776: : "${ac_tmp:=$tmp}"
13777: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13778: ' 0
13779: trap 'as_fn_exit 1' 1 2 13 15
13780: }
13781: # Create a (secure) tmp directory for tmp files.
1.4 paf 13782:
1.5 moko 13783: {
13784: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13785: test -d "$tmp"
13786: } ||
13787: {
13788: tmp=./conf$$-$RANDOM
13789: (umask 077 && mkdir "$tmp")
13790: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13791: ac_tmp=$tmp
1.4 paf 13792:
1.5 moko 13793: # Set up the scripts for CONFIG_FILES section.
13794: # No need to generate them if there are no CONFIG_FILES.
13795: # This happens for instance with `./config.status config.h'.
13796: if test -n "$CONFIG_FILES"; then
1.4 paf 13797:
13798:
1.5 moko 13799: ac_cr=`echo X | tr X '\015'`
13800: # On cygwin, bash can eat \r inside `` if the user requested igncr.
13801: # But we know of no other shell where ac_cr would be empty at this
13802: # point, so we can use a bashism as a fallback.
13803: if test "x$ac_cr" = x; then
13804: eval ac_cr=\$\'\\r\'
13805: fi
13806: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13807: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13808: ac_cs_awk_cr='\\r'
13809: else
13810: ac_cs_awk_cr=$ac_cr
13811: fi
1.4 paf 13812:
1.5 moko 13813: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13814: _ACEOF
1.4 paf 13815:
13816:
1.5 moko 13817: {
13818: echo "cat >conf$$subs.awk <<_ACEOF" &&
13819: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13820: echo "_ACEOF"
13821: } >conf$$subs.sh ||
13822: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13823: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13824: ac_delim='%!_!# '
13825: for ac_last_try in false false false false false :; do
13826: . ./conf$$subs.sh ||
13827: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.4 paf 13828:
1.5 moko 13829: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13830: if test $ac_delim_n = $ac_delim_num; then
13831: break
13832: elif $ac_last_try; then
13833: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13834: else
13835: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13836: fi
13837: done
13838: rm -f conf$$subs.sh
1.4 paf 13839:
1.5 moko 13840: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13841: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13842: _ACEOF
13843: sed -n '
13844: h
13845: s/^/S["/; s/!.*/"]=/
13846: p
13847: g
13848: s/^[^!]*!//
13849: :repl
13850: t repl
13851: s/'"$ac_delim"'$//
13852: t delim
13853: :nl
13854: h
13855: s/\(.\{148\}\)..*/\1/
13856: t more1
13857: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13858: p
13859: n
13860: b repl
13861: :more1
13862: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13863: p
13864: g
13865: s/.\{148\}//
13866: t nl
13867: :delim
13868: h
13869: s/\(.\{148\}\)..*/\1/
13870: t more2
13871: s/["\\]/\\&/g; s/^/"/; s/$/"/
13872: p
13873: b
13874: :more2
13875: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13876: p
13877: g
13878: s/.\{148\}//
13879: t delim
13880: ' <conf$$subs.awk | sed '
13881: /^[^""]/{
13882: N
13883: s/\n//
13884: }
13885: ' >>$CONFIG_STATUS || ac_write_fail=1
13886: rm -f conf$$subs.awk
13887: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13888: _ACAWK
13889: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13890: for (key in S) S_is_set[key] = 1
13891: FS = ""
13892:
13893: }
13894: {
13895: line = $ 0
13896: nfields = split(line, field, "@")
13897: substed = 0
13898: len = length(field[1])
13899: for (i = 2; i < nfields; i++) {
13900: key = field[i]
13901: keylen = length(key)
13902: if (S_is_set[key]) {
13903: value = S[key]
13904: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13905: len += length(value) + length(field[++i])
13906: substed = 1
13907: } else
13908: len += 1 + keylen
13909: }
1.4 paf 13910:
1.5 moko 13911: print line
13912: }
1.4 paf 13913:
1.5 moko 13914: _ACAWK
13915: _ACEOF
13916: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13917: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13918: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13919: else
13920: cat
13921: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13922: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13923: _ACEOF
1.4 paf 13924:
1.5 moko 13925: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13926: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13927: # trailing colons and then remove the whole line if VPATH becomes empty
13928: # (actually we leave an empty line to preserve line numbers).
13929: if test "x$srcdir" = x.; then
13930: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13931: h
13932: s///
13933: s/^/:/
13934: s/[ ]*$/:/
13935: s/:\$(srcdir):/:/g
13936: s/:\${srcdir}:/:/g
13937: s/:@srcdir@:/:/g
13938: s/^:*//
13939: s/:*$//
13940: x
13941: s/\(=[ ]*\).*/\1/
13942: G
13943: s/\n//
13944: s/^[^=]*=[ ]*$//
13945: }'
13946: fi
1.4 paf 13947:
1.5 moko 13948: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13949: fi # test -n "$CONFIG_FILES"
1.4 paf 13950:
1.5 moko 13951: # Set up the scripts for CONFIG_HEADERS section.
13952: # No need to generate them if there are no CONFIG_HEADERS.
13953: # This happens for instance with `./config.status Makefile'.
13954: if test -n "$CONFIG_HEADERS"; then
13955: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13956: BEGIN {
13957: _ACEOF
13958:
13959: # Transform confdefs.h into an awk script `defines.awk', embedded as
13960: # here-document in config.status, that substitutes the proper values into
13961: # config.h.in to produce config.h.
13962:
13963: # Create a delimiter string that does not exist in confdefs.h, to ease
13964: # handling of long lines.
13965: ac_delim='%!_!# '
13966: for ac_last_try in false false :; do
13967: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13968: if test -z "$ac_tt"; then
13969: break
13970: elif $ac_last_try; then
13971: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13972: else
13973: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13974: fi
13975: done
1.2 paf 13976:
1.5 moko 13977: # For the awk script, D is an array of macro values keyed by name,
13978: # likewise P contains macro parameters if any. Preserve backslash
13979: # newline sequences.
13980:
13981: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13982: sed -n '
13983: s/.\{148\}/&'"$ac_delim"'/g
13984: t rset
13985: :rset
13986: s/^[ ]*#[ ]*define[ ][ ]*/ /
13987: t def
13988: d
13989: :def
13990: s/\\$//
13991: t bsnl
13992: s/["\\]/\\&/g
13993: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13994: D["\1"]=" \3"/p
13995: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13996: d
13997: :bsnl
13998: s/["\\]/\\&/g
13999: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14000: D["\1"]=" \3\\\\\\n"\\/p
14001: t cont
14002: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14003: t cont
14004: d
14005: :cont
14006: n
14007: s/.\{148\}/&'"$ac_delim"'/g
14008: t clear
14009: :clear
14010: s/\\$//
14011: t bsnlc
14012: s/["\\]/\\&/g; s/^/"/; s/$/"/p
14013: d
14014: :bsnlc
14015: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14016: b cont
14017: ' <confdefs.h | sed '
14018: s/'"$ac_delim"'/"\\\
14019: "/g' >>$CONFIG_STATUS || ac_write_fail=1
14020:
14021: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14022: for (key in D) D_is_set[key] = 1
14023: FS = ""
14024: }
14025: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14026: line = \$ 0
14027: split(line, arg, " ")
14028: if (arg[1] == "#") {
14029: defundef = arg[2]
14030: mac1 = arg[3]
14031: } else {
14032: defundef = substr(arg[1], 2)
14033: mac1 = arg[2]
14034: }
14035: split(mac1, mac2, "(") #)
14036: macro = mac2[1]
14037: prefix = substr(line, 1, index(line, defundef) - 1)
14038: if (D_is_set[macro]) {
14039: # Preserve the white space surrounding the "#".
14040: print prefix "define", macro P[macro] D[macro]
14041: next
14042: } else {
14043: # Replace #undef with comments. This is necessary, for example,
14044: # in the case of _POSIX_SOURCE, which is predefined and required
14045: # on some systems where configure will not decide to define it.
14046: if (defundef == "undef") {
14047: print "/*", prefix defundef, macro, "*/"
14048: next
14049: }
14050: }
14051: }
14052: { print }
14053: _ACAWK
14054: _ACEOF
14055: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14056: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14057: fi # test -n "$CONFIG_HEADERS"
14058:
14059:
14060: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14061: shift
14062: for ac_tag
14063: do
14064: case $ac_tag in
14065: :[FHLC]) ac_mode=$ac_tag; continue;;
14066: esac
14067: case $ac_mode$ac_tag in
14068: :[FHL]*:*);;
14069: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14070: :[FH]-) ac_tag=-:-;;
14071: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14072: esac
14073: ac_save_IFS=$IFS
14074: IFS=:
14075: set x $ac_tag
14076: IFS=$ac_save_IFS
14077: shift
14078: ac_file=$1
14079: shift
1.4 paf 14080:
1.5 moko 14081: case $ac_mode in
14082: :L) ac_source=$1;;
14083: :[FH])
14084: ac_file_inputs=
14085: for ac_f
14086: do
14087: case $ac_f in
14088: -) ac_f="$ac_tmp/stdin";;
14089: *) # Look for the file first in the build tree, then in the source tree
14090: # (if the path is not absolute). The absolute path cannot be DOS-style,
14091: # because $ac_f cannot contain `:'.
14092: test -f "$ac_f" ||
14093: case $ac_f in
14094: [\\/$]*) false;;
14095: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14096: esac ||
14097: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14098: esac
14099: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14100: as_fn_append ac_file_inputs " '$ac_f'"
14101: done
1.4 paf 14102:
1.5 moko 14103: # Let's still pretend it is `configure' which instantiates (i.e., don't
14104: # use $as_me), people would be surprised to read:
14105: # /* config.h. Generated by config.status. */
14106: configure_input='Generated from '`
14107: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14108: `' by configure.'
14109: if test x"$ac_file" != x-; then
14110: configure_input="$ac_file. $configure_input"
14111: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14112: $as_echo "$as_me: creating $ac_file" >&6;}
14113: fi
14114: # Neutralize special characters interpreted by sed in replacement strings.
14115: case $configure_input in #(
14116: *\&* | *\|* | *\\* )
14117: ac_sed_conf_input=`$as_echo "$configure_input" |
14118: sed 's/[\\\\&|]/\\\\&/g'`;; #(
14119: *) ac_sed_conf_input=$configure_input;;
14120: esac
1.4 paf 14121:
1.5 moko 14122: case $ac_tag in
14123: *:-:* | *:-) cat >"$ac_tmp/stdin" \
14124: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14125: esac
14126: ;;
14127: esac
1.4 paf 14128:
1.5 moko 14129: ac_dir=`$as_dirname -- "$ac_file" ||
14130: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14131: X"$ac_file" : 'X\(//\)[^/]' \| \
14132: X"$ac_file" : 'X\(//\)$' \| \
14133: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14134: $as_echo X"$ac_file" |
14135: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14136: s//\1/
14137: q
14138: }
14139: /^X\(\/\/\)[^/].*/{
14140: s//\1/
14141: q
14142: }
14143: /^X\(\/\/\)$/{
14144: s//\1/
14145: q
14146: }
14147: /^X\(\/\).*/{
14148: s//\1/
14149: q
14150: }
14151: s/.*/./; q'`
14152: as_dir="$ac_dir"; as_fn_mkdir_p
14153: ac_builddir=.
1.4 paf 14154:
1.5 moko 14155: case "$ac_dir" in
14156: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14157: *)
14158: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14159: # A ".." for each directory in $ac_dir_suffix.
14160: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14161: case $ac_top_builddir_sub in
14162: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14163: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14164: esac ;;
14165: esac
14166: ac_abs_top_builddir=$ac_pwd
14167: ac_abs_builddir=$ac_pwd$ac_dir_suffix
14168: # for backward compatibility:
14169: ac_top_builddir=$ac_top_build_prefix
1.4 paf 14170:
1.5 moko 14171: case $srcdir in
14172: .) # We are building in place.
14173: ac_srcdir=.
14174: ac_top_srcdir=$ac_top_builddir_sub
14175: ac_abs_top_srcdir=$ac_pwd ;;
14176: [\\/]* | ?:[\\/]* ) # Absolute name.
14177: ac_srcdir=$srcdir$ac_dir_suffix;
14178: ac_top_srcdir=$srcdir
14179: ac_abs_top_srcdir=$srcdir ;;
14180: *) # Relative name.
14181: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14182: ac_top_srcdir=$ac_top_build_prefix$srcdir
14183: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14184: esac
14185: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.4 paf 14186:
14187:
1.5 moko 14188: case $ac_mode in
14189: :F)
14190: #
14191: # CONFIG_FILE
14192: #
1.4 paf 14193:
1.5 moko 14194: case $INSTALL in
14195: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14196: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14197: esac
14198: ac_MKDIR_P=$MKDIR_P
14199: case $MKDIR_P in
14200: [\\/$]* | ?:[\\/]* ) ;;
14201: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14202: esac
1.2 paf 14203: _ACEOF
14204:
1.5 moko 14205: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14206: # If the template does not know about datarootdir, expand it.
14207: # FIXME: This hack should be removed a few years after 2.60.
14208: ac_datarootdir_hack=; ac_datarootdir_seen=
14209: ac_sed_dataroot='
14210: /datarootdir/ {
14211: p
14212: q
14213: }
14214: /@datadir@/p
14215: /@docdir@/p
14216: /@infodir@/p
14217: /@localedir@/p
14218: /@mandir@/p'
14219: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14220: *datarootdir*) ac_datarootdir_seen=yes;;
14221: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14222: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14223: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14224: _ACEOF
14225: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14226: ac_datarootdir_hack='
14227: s&@datadir@&$datadir&g
14228: s&@docdir@&$docdir&g
14229: s&@infodir@&$infodir&g
14230: s&@localedir@&$localedir&g
14231: s&@mandir@&$mandir&g
14232: s&\\\${datarootdir}&$datarootdir&g' ;;
14233: esac
1.2 paf 14234: _ACEOF
14235:
1.5 moko 14236: # Neutralize VPATH when `$srcdir' = `.'.
14237: # Shell code in configure.ac might set extrasub.
14238: # FIXME: do we really want to maintain this feature?
14239: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14240: ac_sed_extra="$ac_vpsub
14241: $extrasub
1.2 paf 14242: _ACEOF
1.5 moko 14243: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14244: :t
14245: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14246: s|@configure_input@|$ac_sed_conf_input|;t t
14247: s&@top_builddir@&$ac_top_builddir_sub&;t t
14248: s&@top_build_prefix@&$ac_top_build_prefix&;t t
14249: s&@srcdir@&$ac_srcdir&;t t
14250: s&@abs_srcdir@&$ac_abs_srcdir&;t t
14251: s&@top_srcdir@&$ac_top_srcdir&;t t
14252: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14253: s&@builddir@&$ac_builddir&;t t
14254: s&@abs_builddir@&$ac_abs_builddir&;t t
14255: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14256: s&@INSTALL@&$ac_INSTALL&;t t
14257: s&@MKDIR_P@&$ac_MKDIR_P&;t t
14258: $ac_datarootdir_hack
14259: "
14260: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14261: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14262:
14263: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14264: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14265: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14266: "$ac_tmp/out"`; test -z "$ac_out"; } &&
14267: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14268: which seems to be undefined. Please make sure it is defined" >&5
14269: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14270: which seems to be undefined. Please make sure it is defined" >&2;}
1.4 paf 14271:
1.5 moko 14272: rm -f "$ac_tmp/stdin"
14273: case $ac_file in
14274: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14275: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14276: esac \
14277: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14278: ;;
14279: :H)
14280: #
14281: # CONFIG_HEADER
14282: #
14283: if test x"$ac_file" != x-; then
14284: {
14285: $as_echo "/* $configure_input */" \
14286: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14287: } >"$ac_tmp/config.h" \
14288: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14289: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14290: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14291: $as_echo "$as_me: $ac_file is unchanged" >&6;}
14292: else
14293: rm -f "$ac_file"
14294: mv "$ac_tmp/config.h" "$ac_file" \
14295: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14296: fi
14297: else
14298: $as_echo "/* $configure_input */" \
14299: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14300: || as_fn_error $? "could not create -" "$LINENO" 5
14301: fi
14302: # Compute "$ac_file"'s index in $config_headers.
14303: _am_arg="$ac_file"
14304: _am_stamp_count=1
14305: for _am_header in $config_headers :; do
14306: case $_am_header in
14307: $_am_arg | $_am_arg:* )
14308: break ;;
14309: * )
14310: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14311: esac
1.1 paf 14312: done
1.5 moko 14313: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14314: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14315: X"$_am_arg" : 'X\(//\)[^/]' \| \
14316: X"$_am_arg" : 'X\(//\)$' \| \
14317: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14318: $as_echo X"$_am_arg" |
14319: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14320: s//\1/
14321: q
14322: }
14323: /^X\(\/\/\)[^/].*/{
14324: s//\1/
14325: q
14326: }
14327: /^X\(\/\/\)$/{
14328: s//\1/
14329: q
14330: }
14331: /^X\(\/\).*/{
14332: s//\1/
14333: q
14334: }
14335: s/.*/./; q'`/stamp-h$_am_stamp_count
14336: ;;
1.1 paf 14337:
1.5 moko 14338: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14339: $as_echo "$as_me: executing $ac_file commands" >&6;}
14340: ;;
14341: esac
1.2 paf 14342:
14343:
1.5 moko 14344: case $ac_file$ac_mode in
14345: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.8 moko 14346: # Older Autoconf quotes --file arguments for eval, but not when files
1.5 moko 14347: # are listed without --file. Let's play safe and only enable the eval
14348: # if we detect the quoting.
1.8 moko 14349: # TODO: see whether this extra hack can be removed once we start
14350: # requiring Autoconf 2.70 or later.
14351: case $CONFIG_FILES in #(
14352: *\'*) :
14353: eval set x "$CONFIG_FILES" ;; #(
14354: *) :
14355: set x $CONFIG_FILES ;; #(
14356: *) :
14357: ;;
14358: esac
1.5 moko 14359: shift
1.8 moko 14360: # Used to flag and report bootstrapping failures.
14361: am_rc=0
14362: for am_mf
1.5 moko 14363: do
14364: # Strip MF so we end up with the name of the file.
1.8 moko 14365: am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14366: # Check whether this is an Automake generated Makefile which includes
14367: # dependency-tracking related rules and includes.
14368: # Grep'ing the whole file directly is not great: AIX grep has a line
1.5 moko 14369: # limit of 2048, but all sed's we know have understand at least 4000.
1.8 moko 14370: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14371: || continue
14372: am_dirpart=`$as_dirname -- "$am_mf" ||
14373: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14374: X"$am_mf" : 'X\(//\)[^/]' \| \
14375: X"$am_mf" : 'X\(//\)$' \| \
14376: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14377: $as_echo X"$am_mf" |
1.5 moko 14378: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14379: s//\1/
14380: q
14381: }
14382: /^X\(\/\/\)[^/].*/{
14383: s//\1/
14384: q
14385: }
14386: /^X\(\/\/\)$/{
14387: s//\1/
14388: q
14389: }
14390: /^X\(\/\).*/{
14391: s//\1/
14392: q
14393: }
14394: s/.*/./; q'`
1.8 moko 14395: am_filepart=`$as_basename -- "$am_mf" ||
14396: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14397: X"$am_mf" : 'X\(//\)$' \| \
14398: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14399: $as_echo X/"$am_mf" |
14400: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.5 moko 14401: s//\1/
14402: q
14403: }
1.8 moko 14404: /^X\/\(\/\/\)$/{
1.5 moko 14405: s//\1/
14406: q
14407: }
1.8 moko 14408: /^X\/\(\/\).*/{
1.5 moko 14409: s//\1/
14410: q
14411: }
14412: s/.*/./; q'`
1.8 moko 14413: { echo "$as_me:$LINENO: cd "$am_dirpart" \
14414: && sed -e '/# am--include-marker/d' "$am_filepart" \
14415: | $MAKE -f - am--depfiles" >&5
14416: (cd "$am_dirpart" \
14417: && sed -e '/# am--include-marker/d' "$am_filepart" \
14418: | $MAKE -f - am--depfiles) >&5 2>&5
14419: ac_status=$?
14420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421: (exit $ac_status); } || am_rc=$?
1.5 moko 14422: done
1.8 moko 14423: if test $am_rc -ne 0; then
14424: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14425: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14426: as_fn_error $? "Something went wrong bootstrapping makefile fragments
14427: for automatic dependency tracking. If GNU make was not used, consider
14428: re-running the configure script with MAKE=\"gmake\" (or whatever is
14429: necessary). You can also try re-running configure with the
14430: '--disable-dependency-tracking' option to at least be able to build
14431: the package (albeit without support for automatic dependency tracking).
14432: See \`config.log' for more details" "$LINENO" 5; }
14433: fi
14434: { am_dirpart=; unset am_dirpart;}
14435: { am_filepart=; unset am_filepart;}
14436: { am_mf=; unset am_mf;}
14437: { am_rc=; unset am_rc;}
14438: rm -f conftest-deps.mk
1.5 moko 14439: }
14440: ;;
14441: "libtool":C)
1.4 paf 14442:
1.5 moko 14443: # See if we are running on zsh, and set the options which allow our
14444: # commands through without removal of \ escapes.
14445: if test -n "${ZSH_VERSION+set}" ; then
14446: setopt NO_GLOB_SUBST
14447: fi
1.2 paf 14448:
1.5 moko 14449: cfgfile="${ofile}T"
14450: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14451: $RM "$cfgfile"
1.2 paf 14452:
1.5 moko 14453: cat <<_LT_EOF >> "$cfgfile"
14454: #! $SHELL
1.1 paf 14455:
1.5 moko 14456: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14457: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14458: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14459: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14460: #
14461: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14462: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14463: # Foundation, Inc.
14464: # Written by Gordon Matzigkeit, 1996
14465: #
14466: # This file is part of GNU Libtool.
14467: #
14468: # GNU Libtool is free software; you can redistribute it and/or
14469: # modify it under the terms of the GNU General Public License as
14470: # published by the Free Software Foundation; either version 2 of
14471: # the License, or (at your option) any later version.
14472: #
14473: # As a special exception to the GNU General Public License,
14474: # if you distribute this file as part of a program or library that
14475: # is built using GNU Libtool, you may include this file under the
14476: # same distribution terms that you use for the rest of that program.
14477: #
14478: # GNU Libtool is distributed in the hope that it will be useful,
14479: # but WITHOUT ANY WARRANTY; without even the implied warranty of
14480: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14481: # GNU General Public License for more details.
14482: #
14483: # You should have received a copy of the GNU General Public License
14484: # along with GNU Libtool; see the file COPYING. If not, a copy
14485: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14486: # obtained by writing to the Free Software Foundation, Inc.,
14487: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1.1 paf 14488:
1.4 paf 14489:
1.5 moko 14490: # The names of the tagged configurations supported by this script.
14491: available_tags=""
1.4 paf 14492:
1.5 moko 14493: # ### BEGIN LIBTOOL CONFIG
1.1 paf 14494:
1.5 moko 14495: # Which release of libtool.m4 was used?
14496: macro_version=$macro_version
14497: macro_revision=$macro_revision
1.2 paf 14498:
1.5 moko 14499: # Assembler program.
14500: AS=$lt_AS
1.2 paf 14501:
1.5 moko 14502: # DLL creation program.
14503: DLLTOOL=$lt_DLLTOOL
1.4 paf 14504:
1.5 moko 14505: # Object dumper program.
14506: OBJDUMP=$lt_OBJDUMP
1.1 paf 14507:
1.5 moko 14508: # Whether or not to build shared libraries.
14509: build_libtool_libs=$enable_shared
1.4 paf 14510:
1.5 moko 14511: # Whether or not to build static libraries.
14512: build_old_libs=$enable_static
1.4 paf 14513:
1.5 moko 14514: # What type of objects to build.
14515: pic_mode=$pic_mode
1.4 paf 14516:
1.5 moko 14517: # Whether or not to optimize for fast installation.
14518: fast_install=$enable_fast_install
1.1 paf 14519:
1.5 moko 14520: # Shell to use when invoking shell scripts.
14521: SHELL=$lt_SHELL
1.4 paf 14522:
1.5 moko 14523: # An echo program that protects backslashes.
14524: ECHO=$lt_ECHO
1.2 paf 14525:
1.5 moko 14526: # The PATH separator for the build system.
14527: PATH_SEPARATOR=$lt_PATH_SEPARATOR
1.1 paf 14528:
1.5 moko 14529: # The host system.
14530: host_alias=$host_alias
14531: host=$host
14532: host_os=$host_os
1.1 paf 14533:
1.5 moko 14534: # The build system.
14535: build_alias=$build_alias
14536: build=$build
14537: build_os=$build_os
1.1 paf 14538:
1.5 moko 14539: # A sed program that does not truncate output.
14540: SED=$lt_SED
1.1 paf 14541:
1.5 moko 14542: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14543: Xsed="\$SED -e 1s/^X//"
1.2 paf 14544:
1.5 moko 14545: # A grep program that handles long lines.
14546: GREP=$lt_GREP
1.1 paf 14547:
1.5 moko 14548: # An ERE matcher.
14549: EGREP=$lt_EGREP
1.3 paf 14550:
1.5 moko 14551: # A literal string matcher.
14552: FGREP=$lt_FGREP
1.3 paf 14553:
1.5 moko 14554: # A BSD- or MS-compatible name lister.
14555: NM=$lt_NM
1.1 paf 14556:
1.5 moko 14557: # Whether we need soft or hard links.
14558: LN_S=$lt_LN_S
1.1 paf 14559:
1.5 moko 14560: # What is the maximum length of a command?
14561: max_cmd_len=$max_cmd_len
1.1 paf 14562:
1.5 moko 14563: # Object file suffix (normally "o").
14564: objext=$ac_objext
1.1 paf 14565:
1.5 moko 14566: # Executable file suffix (normally "").
14567: exeext=$exeext
1.1 paf 14568:
1.5 moko 14569: # whether the shell understands "unset".
14570: lt_unset=$lt_unset
1.2 paf 14571:
1.5 moko 14572: # turn spaces into newlines.
14573: SP2NL=$lt_lt_SP2NL
1.4 paf 14574:
1.5 moko 14575: # turn newlines into spaces.
14576: NL2SP=$lt_lt_NL2SP
1.1 paf 14577:
1.5 moko 14578: # convert \$build file names to \$host format.
14579: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.2 paf 14580:
1.5 moko 14581: # convert \$build files to toolchain format.
14582: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.1 paf 14583:
1.5 moko 14584: # Method to check whether dependent libraries are shared objects.
14585: deplibs_check_method=$lt_deplibs_check_method
1.1 paf 14586:
1.5 moko 14587: # Command to use when deplibs_check_method = "file_magic".
14588: file_magic_cmd=$lt_file_magic_cmd
1.2 paf 14589:
1.5 moko 14590: # How to find potential files when deplibs_check_method = "file_magic".
14591: file_magic_glob=$lt_file_magic_glob
1.2 paf 14592:
1.5 moko 14593: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14594: want_nocaseglob=$lt_want_nocaseglob
1.1 paf 14595:
1.5 moko 14596: # Command to associate shared and link libraries.
14597: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1.1 paf 14598:
1.5 moko 14599: # The archiver.
14600: AR=$lt_AR
1.1 paf 14601:
1.5 moko 14602: # Flags to create an archive.
14603: AR_FLAGS=$lt_AR_FLAGS
1.2 paf 14604:
1.5 moko 14605: # How to feed a file listing to the archiver.
14606: archiver_list_spec=$lt_archiver_list_spec
1.2 paf 14607:
1.5 moko 14608: # A symbol stripping program.
14609: STRIP=$lt_STRIP
1.2 paf 14610:
1.5 moko 14611: # Commands used to install an old-style archive.
14612: RANLIB=$lt_RANLIB
14613: old_postinstall_cmds=$lt_old_postinstall_cmds
14614: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.1 paf 14615:
1.5 moko 14616: # Whether to use a lock for old archive extraction.
14617: lock_old_archive_extraction=$lock_old_archive_extraction
1.1 paf 14618:
1.5 moko 14619: # A C compiler.
14620: LTCC=$lt_CC
1.2 paf 14621:
1.5 moko 14622: # LTCC compiler flags.
14623: LTCFLAGS=$lt_CFLAGS
1.2 paf 14624:
1.5 moko 14625: # Take the output of nm and produce a listing of raw symbols and C names.
14626: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.2 paf 14627:
1.5 moko 14628: # Transform the output of nm in a proper C declaration.
14629: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.2 paf 14630:
1.5 moko 14631: # Transform the output of nm in a C name address pair.
14632: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.2 paf 14633:
1.5 moko 14634: # Transform the output of nm in a C name address pair when lib prefix is needed.
14635: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1.2 paf 14636:
1.5 moko 14637: # Specify filename containing input files for \$NM.
14638: nm_file_list_spec=$lt_nm_file_list_spec
1.2 paf 14639:
1.5 moko 14640: # The root where to search for dependent libraries,and in which our libraries should be installed.
14641: lt_sysroot=$lt_sysroot
1.2 paf 14642:
1.5 moko 14643: # The name of the directory that contains temporary libtool files.
14644: objdir=$objdir
1.2 paf 14645:
1.5 moko 14646: # Used to examine libraries when file_magic_cmd begins with "file".
14647: MAGIC_CMD=$MAGIC_CMD
1.2 paf 14648:
1.5 moko 14649: # Must we lock files when doing compilation?
14650: need_locks=$lt_need_locks
1.1 paf 14651:
1.5 moko 14652: # Manifest tool.
14653: MANIFEST_TOOL=$lt_MANIFEST_TOOL
1.2 paf 14654:
1.5 moko 14655: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14656: DSYMUTIL=$lt_DSYMUTIL
1.2 paf 14657:
1.5 moko 14658: # Tool to change global to local symbols on Mac OS X.
14659: NMEDIT=$lt_NMEDIT
1.2 paf 14660:
1.5 moko 14661: # Tool to manipulate fat objects and archives on Mac OS X.
14662: LIPO=$lt_LIPO
1.2 paf 14663:
1.5 moko 14664: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14665: OTOOL=$lt_OTOOL
1.2 paf 14666:
1.5 moko 14667: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14668: OTOOL64=$lt_OTOOL64
1.2 paf 14669:
1.5 moko 14670: # Old archive suffix (normally "a").
14671: libext=$libext
1.1 paf 14672:
1.5 moko 14673: # Shared library suffix (normally ".so").
14674: shrext_cmds=$lt_shrext_cmds
1.2 paf 14675:
1.5 moko 14676: # The commands to extract the exported symbol list from a shared archive.
14677: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.1 paf 14678:
1.5 moko 14679: # Variables whose values should be saved in libtool wrapper scripts and
14680: # restored at link time.
14681: variables_saved_for_relink=$lt_variables_saved_for_relink
1.1 paf 14682:
1.5 moko 14683: # Do we need the "lib" prefix for modules?
14684: need_lib_prefix=$need_lib_prefix
1.1 paf 14685:
1.5 moko 14686: # Do we need a version for libraries?
14687: need_version=$need_version
1.1 paf 14688:
1.5 moko 14689: # Library versioning type.
14690: version_type=$version_type
1.2 paf 14691:
1.5 moko 14692: # Shared library runtime path variable.
14693: runpath_var=$runpath_var
1.2 paf 14694:
1.5 moko 14695: # Shared library path variable.
14696: shlibpath_var=$shlibpath_var
1.2 paf 14697:
1.5 moko 14698: # Is shlibpath searched before the hard-coded library search path?
14699: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.2 paf 14700:
1.5 moko 14701: # Format of library name prefix.
14702: libname_spec=$lt_libname_spec
1.2 paf 14703:
1.5 moko 14704: # List of archive names. First name is the real one, the rest are links.
14705: # The last name is the one that the linker finds with -lNAME
14706: library_names_spec=$lt_library_names_spec
1.2 paf 14707:
1.5 moko 14708: # The coded name of the library, if different from the real name.
14709: soname_spec=$lt_soname_spec
1.2 paf 14710:
1.5 moko 14711: # Permission mode override for installation of shared libraries.
14712: install_override_mode=$lt_install_override_mode
1.2 paf 14713:
1.5 moko 14714: # Command to use after installation of a shared archive.
14715: postinstall_cmds=$lt_postinstall_cmds
1.2 paf 14716:
1.5 moko 14717: # Command to use after uninstallation of a shared archive.
14718: postuninstall_cmds=$lt_postuninstall_cmds
1.2 paf 14719:
1.5 moko 14720: # Commands used to finish a libtool library installation in a directory.
14721: finish_cmds=$lt_finish_cmds
1.2 paf 14722:
1.5 moko 14723: # As "finish_cmds", except a single script fragment to be evaled but
14724: # not shown.
14725: finish_eval=$lt_finish_eval
1.2 paf 14726:
1.5 moko 14727: # Whether we should hardcode library paths into libraries.
14728: hardcode_into_libs=$hardcode_into_libs
1.2 paf 14729:
1.5 moko 14730: # Compile-time system search path for libraries.
14731: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.2 paf 14732:
1.5 moko 14733: # Run-time system search path for libraries.
14734: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.2 paf 14735:
1.5 moko 14736: # Whether dlopen is supported.
14737: dlopen_support=$enable_dlopen
1.2 paf 14738:
1.5 moko 14739: # Whether dlopen of programs is supported.
14740: dlopen_self=$enable_dlopen_self
1.1 paf 14741:
1.5 moko 14742: # Whether dlopen of statically linked programs is supported.
14743: dlopen_self_static=$enable_dlopen_self_static
1.2 paf 14744:
1.5 moko 14745: # Commands to strip libraries.
14746: old_striplib=$lt_old_striplib
14747: striplib=$lt_striplib
1.2 paf 14748:
14749:
1.5 moko 14750: # The linker used to build libraries.
14751: LD=$lt_LD
1.2 paf 14752:
1.5 moko 14753: # How to create reloadable object files.
14754: reload_flag=$lt_reload_flag
14755: reload_cmds=$lt_reload_cmds
1.4 paf 14756:
1.5 moko 14757: # Commands used to build an old-style archive.
14758: old_archive_cmds=$lt_old_archive_cmds
1.2 paf 14759:
1.5 moko 14760: # A language specific compiler.
14761: CC=$lt_compiler
1.2 paf 14762:
1.5 moko 14763: # Is the compiler the GNU compiler?
14764: with_gcc=$GCC
1.2 paf 14765:
1.5 moko 14766: # Compiler flag to turn off builtin functions.
14767: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.2 paf 14768:
1.5 moko 14769: # Additional compiler flags for building library objects.
14770: pic_flag=$lt_lt_prog_compiler_pic
1.1 paf 14771:
1.5 moko 14772: # How to pass a linker flag through the compiler.
14773: wl=$lt_lt_prog_compiler_wl
1.1 paf 14774:
1.5 moko 14775: # Compiler flag to prevent dynamic linking.
14776: link_static_flag=$lt_lt_prog_compiler_static
1.2 paf 14777:
1.5 moko 14778: # Does compiler simultaneously support -c and -o options?
14779: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.2 paf 14780:
1.5 moko 14781: # Whether or not to add -lc for building shared libraries.
14782: build_libtool_need_lc=$archive_cmds_need_lc
1.1 paf 14783:
1.5 moko 14784: # Whether or not to disallow shared libs when runtime libs are static.
14785: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.2 paf 14786:
1.5 moko 14787: # Compiler flag to allow reflexive dlopens.
14788: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.2 paf 14789:
1.5 moko 14790: # Compiler flag to generate shared objects directly from archives.
14791: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.2 paf 14792:
1.5 moko 14793: # Whether the compiler copes with passing no objects directly.
14794: compiler_needs_object=$lt_compiler_needs_object
1.2 paf 14795:
1.5 moko 14796: # Create an old-style archive from a shared archive.
14797: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.2 paf 14798:
1.5 moko 14799: # Create a temporary old-style archive to link instead of a shared archive.
14800: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.2 paf 14801:
1.5 moko 14802: # Commands used to build a shared archive.
14803: archive_cmds=$lt_archive_cmds
14804: archive_expsym_cmds=$lt_archive_expsym_cmds
1.2 paf 14805:
1.5 moko 14806: # Commands used to build a loadable module if different from building
14807: # a shared archive.
14808: module_cmds=$lt_module_cmds
14809: module_expsym_cmds=$lt_module_expsym_cmds
1.1 paf 14810:
1.5 moko 14811: # Whether we are building with GNU ld or not.
14812: with_gnu_ld=$lt_with_gnu_ld
1.2 paf 14813:
1.5 moko 14814: # Flag that allows shared libraries with undefined symbols to be built.
14815: allow_undefined_flag=$lt_allow_undefined_flag
1.2 paf 14816:
1.5 moko 14817: # Flag that enforces no undefined symbols.
14818: no_undefined_flag=$lt_no_undefined_flag
1.2 paf 14819:
1.5 moko 14820: # Flag to hardcode \$libdir into a binary during linking.
14821: # This must work even if \$libdir does not exist
14822: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.2 paf 14823:
1.5 moko 14824: # Whether we need a single "-rpath" flag with a separated argument.
14825: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.2 paf 14826:
1.5 moko 14827: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14828: # DIR into the resulting binary.
14829: hardcode_direct=$hardcode_direct
1.2 paf 14830:
1.5 moko 14831: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14832: # DIR into the resulting binary and the resulting library dependency is
14833: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14834: # library is relocated.
14835: hardcode_direct_absolute=$hardcode_direct_absolute
1.2 paf 14836:
1.5 moko 14837: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14838: # into the resulting binary.
14839: hardcode_minus_L=$hardcode_minus_L
1.1 paf 14840:
1.5 moko 14841: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14842: # into the resulting binary.
14843: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.4 paf 14844:
1.5 moko 14845: # Set to "yes" if building a shared library automatically hardcodes DIR
14846: # into the library and all subsequent libraries and executables linked
14847: # against it.
14848: hardcode_automatic=$hardcode_automatic
14849:
14850: # Set to yes if linker adds runtime paths of dependent libraries
14851: # to runtime path list.
14852: inherit_rpath=$inherit_rpath
1.4 paf 14853:
1.5 moko 14854: # Whether libtool must link a program against all its dependency libraries.
14855: link_all_deplibs=$link_all_deplibs
1.4 paf 14856:
1.5 moko 14857: # Set to "yes" if exported symbols are required.
14858: always_export_symbols=$always_export_symbols
1.4 paf 14859:
1.5 moko 14860: # The commands to list exported symbols.
14861: export_symbols_cmds=$lt_export_symbols_cmds
1.4 paf 14862:
1.5 moko 14863: # Symbols that should not be listed in the preloaded symbols.
14864: exclude_expsyms=$lt_exclude_expsyms
1.4 paf 14865:
1.5 moko 14866: # Symbols that must always be exported.
14867: include_expsyms=$lt_include_expsyms
1.4 paf 14868:
1.5 moko 14869: # Commands necessary for linking programs (against libraries) with templates.
14870: prelink_cmds=$lt_prelink_cmds
1.4 paf 14871:
1.5 moko 14872: # Commands necessary for finishing linking programs.
14873: postlink_cmds=$lt_postlink_cmds
1.4 paf 14874:
1.5 moko 14875: # Specify filename containing input files.
14876: file_list_spec=$lt_file_list_spec
1.4 paf 14877:
1.5 moko 14878: # How to hardcode a shared library path into an executable.
14879: hardcode_action=$hardcode_action
1.4 paf 14880:
1.5 moko 14881: # ### END LIBTOOL CONFIG
1.1 paf 14882:
1.5 moko 14883: _LT_EOF
1.1 paf 14884:
1.5 moko 14885: case $host_os in
14886: aix3*)
14887: cat <<\_LT_EOF >> "$cfgfile"
14888: # AIX sometimes has problems with the GCC collect2 program. For some
14889: # reason, if we set the COLLECT_NAMES environment variable, the problems
14890: # vanish in a puff of smoke.
14891: if test "X${COLLECT_NAMES+set}" != Xset; then
14892: COLLECT_NAMES=
14893: export COLLECT_NAMES
14894: fi
14895: _LT_EOF
14896: ;;
14897: esac
1.1 paf 14898:
1.2 paf 14899:
1.5 moko 14900: ltmain="$ac_aux_dir/ltmain.sh"
1.2 paf 14901:
1.1 paf 14902:
1.5 moko 14903: # We use sed instead of cat because bash on DJGPP gets confused if
14904: # if finds mixed CR/LF and LF-only lines. Since sed operates in
14905: # text mode, it properly converts lines to CR/LF. This bash problem
14906: # is reportedly fixed, but why not run on old versions too?
14907: sed '$q' "$ltmain" >> "$cfgfile" \
14908: || (rm -f "$cfgfile"; exit 1)
1.2 paf 14909:
1.5 moko 14910: if test x"$xsi_shell" = xyes; then
14911: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14912: func_dirname ()\
14913: {\
14914: \ case ${1} in\
14915: \ */*) func_dirname_result="${1%/*}${2}" ;;\
14916: \ * ) func_dirname_result="${3}" ;;\
14917: \ esac\
14918: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14919: && mv -f "$cfgfile.tmp" "$cfgfile" \
14920: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14921: test 0 -eq $? || _lt_function_replace_fail=:
14922:
14923:
14924: sed -e '/^func_basename ()$/,/^} # func_basename /c\
14925: func_basename ()\
14926: {\
14927: \ func_basename_result="${1##*/}"\
14928: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14929: && mv -f "$cfgfile.tmp" "$cfgfile" \
14930: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14931: test 0 -eq $? || _lt_function_replace_fail=:
14932:
14933:
14934: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14935: func_dirname_and_basename ()\
14936: {\
14937: \ case ${1} in\
14938: \ */*) func_dirname_result="${1%/*}${2}" ;;\
14939: \ * ) func_dirname_result="${3}" ;;\
14940: \ esac\
14941: \ func_basename_result="${1##*/}"\
14942: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14943: && mv -f "$cfgfile.tmp" "$cfgfile" \
14944: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14945: test 0 -eq $? || _lt_function_replace_fail=:
14946:
14947:
14948: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14949: func_stripname ()\
14950: {\
14951: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14952: \ # positional parameters, so assign one to ordinary parameter first.\
14953: \ func_stripname_result=${3}\
14954: \ func_stripname_result=${func_stripname_result#"${1}"}\
14955: \ func_stripname_result=${func_stripname_result%"${2}"}\
14956: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14957: && mv -f "$cfgfile.tmp" "$cfgfile" \
14958: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14959: test 0 -eq $? || _lt_function_replace_fail=:
14960:
14961:
14962: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14963: func_split_long_opt ()\
14964: {\
14965: \ func_split_long_opt_name=${1%%=*}\
14966: \ func_split_long_opt_arg=${1#*=}\
14967: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14968: && mv -f "$cfgfile.tmp" "$cfgfile" \
14969: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14970: test 0 -eq $? || _lt_function_replace_fail=:
14971:
14972:
14973: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14974: func_split_short_opt ()\
14975: {\
14976: \ func_split_short_opt_arg=${1#??}\
14977: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14978: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14979: && mv -f "$cfgfile.tmp" "$cfgfile" \
14980: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14981: test 0 -eq $? || _lt_function_replace_fail=:
14982:
14983:
14984: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14985: func_lo2o ()\
14986: {\
14987: \ case ${1} in\
14988: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14989: \ *) func_lo2o_result=${1} ;;\
14990: \ esac\
14991: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14992: && mv -f "$cfgfile.tmp" "$cfgfile" \
14993: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14994: test 0 -eq $? || _lt_function_replace_fail=:
14995:
14996:
14997: sed -e '/^func_xform ()$/,/^} # func_xform /c\
14998: func_xform ()\
14999: {\
15000: func_xform_result=${1%.*}.lo\
15001: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15002: && mv -f "$cfgfile.tmp" "$cfgfile" \
15003: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15004: test 0 -eq $? || _lt_function_replace_fail=:
15005:
15006:
15007: sed -e '/^func_arith ()$/,/^} # func_arith /c\
15008: func_arith ()\
15009: {\
15010: func_arith_result=$(( $* ))\
15011: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15012: && mv -f "$cfgfile.tmp" "$cfgfile" \
15013: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15014: test 0 -eq $? || _lt_function_replace_fail=:
15015:
15016:
15017: sed -e '/^func_len ()$/,/^} # func_len /c\
15018: func_len ()\
15019: {\
15020: func_len_result=${#1}\
15021: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15022: && mv -f "$cfgfile.tmp" "$cfgfile" \
15023: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15024: test 0 -eq $? || _lt_function_replace_fail=:
15025:
15026: fi
15027:
15028: if test x"$lt_shell_append" = xyes; then
15029: sed -e '/^func_append ()$/,/^} # func_append /c\
15030: func_append ()\
15031: {\
15032: eval "${1}+=\\${2}"\
15033: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15034: && mv -f "$cfgfile.tmp" "$cfgfile" \
15035: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15036: test 0 -eq $? || _lt_function_replace_fail=:
15037:
15038:
15039: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15040: func_append_quoted ()\
15041: {\
15042: \ func_quote_for_eval "${2}"\
15043: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15044: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15045: && mv -f "$cfgfile.tmp" "$cfgfile" \
15046: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15047: test 0 -eq $? || _lt_function_replace_fail=:
15048:
15049:
15050: # Save a `func_append' function call where possible by direct use of '+='
15051: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15052: && mv -f "$cfgfile.tmp" "$cfgfile" \
15053: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15054: test 0 -eq $? || _lt_function_replace_fail=:
15055: else
15056: # Save a `func_append' function call even when '+=' is not available
15057: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15058: && mv -f "$cfgfile.tmp" "$cfgfile" \
15059: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15060: test 0 -eq $? || _lt_function_replace_fail=:
15061: fi
15062:
15063: if test x"$_lt_function_replace_fail" = x":"; then
15064: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15065: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.2 paf 15066: fi
15067:
1.1 paf 15068:
1.5 moko 15069: mv -f "$cfgfile" "$ofile" ||
15070: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15071: chmod +x "$ofile"
15072:
1.2 paf 15073: ;;
1.5 moko 15074:
1.2 paf 15075: esac
1.5 moko 15076: done # for ac_tag
1.1 paf 15077:
15078:
1.5 moko 15079: as_fn_exit 0
1.2 paf 15080: _ACEOF
15081: ac_clean_files=$ac_clean_files_save
15082:
1.5 moko 15083: test $ac_write_fail = 0 ||
15084: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15085:
1.2 paf 15086:
15087: # configure is writing to config.log, and then calls config.status.
15088: # config.status does its own redirection, appending to config.log.
15089: # Unfortunately, on DOS this fails, as config.log is still kept open
15090: # by configure, so config.status won't be able to write to it; its
15091: # output is simply discarded. So we exec the FD to /dev/null,
15092: # effectively closing config.log, so it can be properly (re)opened and
15093: # appended to by config.status. When coming back to configure, we
15094: # need to make the FD available again.
15095: if test "$no_create" != yes; then
15096: ac_cs_success=:
15097: ac_config_status_args=
15098: test "$silent" = yes &&
15099: ac_config_status_args="$ac_config_status_args --quiet"
15100: exec 5>/dev/null
15101: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15102: exec 5>>config.log
15103: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15104: # would make configure fail if this is the last instruction.
1.5 moko 15105: $ac_cs_success || as_fn_exit 1
15106: fi
15107: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15108: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15109: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.2 paf 15110: fi
1.1 paf 15111:
E-mail: