Annotation of sql/pgsql/configure, revision 1.43
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.43 ! moko 3: # Generated by GNU Autoconf 2.69 for parser3pgsql 10.7.
1.31 moko 4: #
5: #
1.34 moko 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.31 moko 7: #
1.1 parser 8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.31 moko 11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
1.10 paf 14:
1.31 moko 15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.10 paf 18: emulate sh
19: NULLCMD=:
1.31 moko 20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.10 paf 21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
1.31 moko 23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
1.10 paf 70: fi
71:
1.31 moko 72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
1.10 paf 79: fi
80:
81:
1.31 moko 82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
1.10 paf 122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
1.31 moko 127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
1.34 moko 135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
1.31 moko 160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
1.34 moko 193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
1.31 moko 195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199:
200: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204: PATH=/empty FPATH=/empty; export PATH FPATH
205: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207: test \$(( 1 + 1 )) = 2 || exit 1"
208: if (eval "$as_required") 2>/dev/null; then :
209: as_have_required=yes
210: else
211: as_have_required=no
212: fi
213: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214:
215: else
216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217: as_found=false
218: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.10 paf 219: do
1.31 moko 220: IFS=$as_save_IFS
221: test -z "$as_dir" && as_dir=.
222: as_found=:
223: case $as_dir in #(
224: /*)
225: for as_base in sh bash ksh sh5; do
226: # Try only shells that exist, to save several forks.
227: as_shell=$as_dir/$as_base
228: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230: CONFIG_SHELL=$as_shell as_have_required=yes
231: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: break 2
233: fi
234: fi
235: done;;
236: esac
237: as_found=false
238: done
239: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241: CONFIG_SHELL=$SHELL as_have_required=yes
242: fi; }
243: IFS=$as_save_IFS
244:
245:
246: if test "x$CONFIG_SHELL" != x; then :
1.34 moko 247: export CONFIG_SHELL
248: # We cannot yet assume a decent shell, so we have to provide a
249: # neutralization value for shells without unset; and this also
250: # works around shells that cannot unset nonexistent variables.
251: # Preserve -v and -x to the replacement shell.
252: BASH_ENV=/dev/null
253: ENV=/dev/null
254: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255: case $- in # ((((
256: *v*x* | *x*v* ) as_opts=-vx ;;
257: *v* ) as_opts=-v ;;
258: *x* ) as_opts=-x ;;
259: * ) as_opts= ;;
260: esac
261: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262: # Admittedly, this is quite paranoid, since all the known shells bail
263: # out after a failed `exec'.
264: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265: exit 255
1.31 moko 266: fi
267:
268: if test x$as_have_required = xno; then :
269: $as_echo "$0: This script requires a shell more modern than all"
270: $as_echo "$0: the shells that I found on your system."
271: if test x${ZSH_VERSION+set} = xset ; then
272: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.10 paf 274: else
1.31 moko 275: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276: $0: including any error possibly output before this
277: $0: message. Then install a modern shell, or manually run
278: $0: the script under such a shell if you do have one."
1.10 paf 279: fi
1.31 moko 280: exit 1
281: fi
282: fi
283: fi
284: SHELL=${CONFIG_SHELL-/bin/sh}
285: export SHELL
286: # Unset more variables known to interfere with behavior of common tools.
287: CLICOLOR_FORCE= GREP_OPTIONS=
288: unset CLICOLOR_FORCE GREP_OPTIONS
289:
290: ## --------------------- ##
291: ## M4sh Shell Functions. ##
292: ## --------------------- ##
293: # as_fn_unset VAR
294: # ---------------
295: # Portably unset VAR.
296: as_fn_unset ()
297: {
298: { eval $1=; unset $1;}
299: }
300: as_unset=as_fn_unset
301:
302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
325:
326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
333: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342: $as_echo X"$as_dir" |
343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364:
365:
366: } # as_fn_mkdir_p
1.34 moko 367:
368: # as_fn_executable_p FILE
369: # -----------------------
370: # Test if FILE is an executable regular file.
371: as_fn_executable_p ()
372: {
373: test -f "$1" && test -x "$1"
374: } # as_fn_executable_p
1.31 moko 375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
392:
393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
409:
410:
411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
1.10 paf 426:
1.31 moko 427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.10 paf 429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
1.31 moko 434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.10 paf 435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
1.31 moko 440: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441: as_dirname=dirname
442: else
443: as_dirname=false
444: fi
1.10 paf 445:
1.31 moko 446: as_me=`$as_basename -- "$0" ||
1.10 paf 447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
1.31 moko 449: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450: $as_echo X/"$0" |
451: sed '/^.*\/\([^/][^/]*\)\/*$/{
452: s//\1/
453: q
454: }
455: /^X\/\(\/\/\)$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\).*/{
460: s//\1/
461: q
462: }
463: s/.*/./; q'`
1.10 paf 464:
465: # Avoid depending upon Character Ranges.
466: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469: as_cr_digits='0123456789'
470: as_cr_alnum=$as_cr_Letters$as_cr_digits
471:
472:
1.31 moko 473: as_lineno_1=$LINENO as_lineno_1a=$LINENO
474: as_lineno_2=$LINENO as_lineno_2a=$LINENO
475: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478: sed -n '
479: p
480: /[$]LINENO/=
481: ' <$as_myself |
1.10 paf 482: sed '
1.31 moko 483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
1.10 paf 487: N
1.31 moko 488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.10 paf 490: t loop
1.31 moko 491: s/-\n.*//
1.10 paf 492: ' >$as_me.lineno &&
1.31 moko 493: chmod +x "$as_me.lineno" ||
494: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.10 paf 495:
1.34 moko 496: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497: # already done that, so ensure we don't try to do so again and fall
498: # in an infinite loop. This has already happened in practice.
499: _as_can_reexec=no; export _as_can_reexec
1.10 paf 500: # Don't try to exec as it changes $[0], causing all sort of problems
501: # (the dirname of $[0] is not the place where we might find the
1.31 moko 502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
1.10 paf 504: # Exit status is that of the last command.
505: exit
506: }
507:
1.31 moko 508: ECHO_C= ECHO_N= ECHO_T=
509: case `echo -n x` in #(((((
510: -n*)
511: case `echo 'xy\c'` in
512: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513: xy) ECHO_C='\c';;
514: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515: ECHO_T=' ';;
516: esac;;
517: *)
518: ECHO_N='-n';;
1.10 paf 519: esac
520:
1.31 moko 521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
1.10 paf 524: else
1.31 moko 525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
1.10 paf 527: fi
1.31 moko 528: if (echo >conf$$.file) 2>/dev/null; then
529: if ln -s conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s='ln -s'
531: # ... but there are two gotchas:
532: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.34 moko 534: # In both cases, we have to default to `cp -pR'.
1.31 moko 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.34 moko 536: as_ln_s='cp -pR'
1.31 moko 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.34 moko 540: as_ln_s='cp -pR'
1.10 paf 541: fi
542: else
1.34 moko 543: as_ln_s='cp -pR'
1.10 paf 544: fi
1.31 moko 545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
1.10 paf 547:
548: if mkdir -p . 2>/dev/null; then
1.31 moko 549: as_mkdir_p='mkdir -p "$as_dir"'
1.10 paf 550: else
1.16 paf 551: test -d ./-p && rmdir ./-p
1.10 paf 552: as_mkdir_p=false
553: fi
554:
1.34 moko 555: as_test_x='test -x'
556: as_executable_p=as_fn_executable_p
1.10 paf 557:
558: # Sed expression to map a string onto a valid CPP name.
1.16 paf 559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 560:
561: # Sed expression to map a string onto a valid variable name.
1.16 paf 562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 563:
1.23 moko 564: lt_ltdl_dir='libltdl'
1.10 paf 565:
566: SHELL=${CONFIG_SHELL-/bin/sh}
567:
1.23 moko 568: lt_dlopen_dir="$lt_ltdl_dir"
1.10 paf 569:
570:
1.31 moko 571: test -n "$DJDIR" || exec 7<&0 </dev/null
572: exec 6>&1
573:
1.10 paf 574: # Name of the host.
1.31 moko 575: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.10 paf 576: # so uname gets run too.
577: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 578:
1.10 paf 579: #
580: # Initializations.
581: #
1.1 parser 582: ac_default_prefix=/usr/local
1.31 moko 583: ac_clean_files=
1.10 paf 584: ac_config_libobj_dir=.
1.31 moko 585: LIBOBJS=
1.10 paf 586: cross_compiling=no
587: subdirs=
588: MFLAGS=
589: MAKEFLAGS=
590:
591: # Identity of this package.
1.35 moko 592: PACKAGE_NAME='parser3pgsql'
593: PACKAGE_TARNAME='parser3pgsql'
1.43 ! moko 594: PACKAGE_VERSION='10.7'
! 595: PACKAGE_STRING='parser3pgsql 10.7'
1.23 moko 596: PACKAGE_BUGREPORT=''
1.31 moko 597: PACKAGE_URL=''
1.10 paf 598:
599: ac_unique_file="parser3pgsql.C"
600: # Factoring default headers for most tests.
601: ac_includes_default="\
602: #include <stdio.h>
1.31 moko 603: #ifdef HAVE_SYS_TYPES_H
1.10 paf 604: # include <sys/types.h>
605: #endif
1.31 moko 606: #ifdef HAVE_SYS_STAT_H
1.10 paf 607: # include <sys/stat.h>
608: #endif
1.31 moko 609: #ifdef STDC_HEADERS
1.10 paf 610: # include <stdlib.h>
611: # include <stddef.h>
612: #else
1.31 moko 613: # ifdef HAVE_STDLIB_H
1.10 paf 614: # include <stdlib.h>
615: # endif
616: #endif
1.31 moko 617: #ifdef HAVE_STRING_H
618: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.10 paf 619: # include <memory.h>
620: # endif
621: # include <string.h>
622: #endif
1.31 moko 623: #ifdef HAVE_STRINGS_H
1.10 paf 624: # include <strings.h>
625: #endif
1.31 moko 626: #ifdef HAVE_INTTYPES_H
1.10 paf 627: # include <inttypes.h>
628: #endif
1.31 moko 629: #ifdef HAVE_STDINT_H
630: # include <stdint.h>
631: #endif
632: #ifdef HAVE_UNISTD_H
1.10 paf 633: # include <unistd.h>
634: #endif"
635:
1.31 moko 636: enable_option_checking=no
637: ac_subst_vars='ltdl_LTLIBOBJS
638: ltdl_LIBOBJS
639: am__EXEEXT_FALSE
640: am__EXEEXT_TRUE
641: LTLIBOBJS
642: LIBOBJS
643: LTDLOPEN
644: LT_CONFIG_H
645: subdirs
646: CONVENIENCE_LTDL_FALSE
647: CONVENIENCE_LTDL_TRUE
648: INSTALL_LTDL_FALSE
649: INSTALL_LTDL_TRUE
650: ARGZ_H
651: sys_symbol_underscore
652: LIBADD_DL
653: LT_DLPREOPEN
654: LIBADD_DLD_LINK
655: LIBADD_SHL_LOAD
656: LIBADD_DLOPEN
657: LT_DLLOADERS
658: INCLTDL
659: LTDLINCL
660: LTDLDEPS
661: LIBLTDL
662: CXXCPP
663: CPP
664: OTOOL64
665: OTOOL
666: LIPO
667: NMEDIT
668: DSYMUTIL
669: MANIFEST_TOOL
670: RANLIB
671: ac_ct_AR
672: AR
673: LN_S
674: NM
675: ac_ct_DUMPBIN
676: DUMPBIN
677: LD
678: FGREP
679: EGREP
680: GREP
681: SED
682: host_os
683: host_vendor
684: host_cpu
685: host
686: build_os
687: build_vendor
688: build_cpu
689: build
690: LIBTOOL
691: OBJDUMP
692: DLLTOOL
693: AS
694: am__fastdepCC_FALSE
695: am__fastdepCC_TRUE
696: CCDEPMODE
697: ac_ct_CC
698: CFLAGS
699: CC
700: am__fastdepCXX_FALSE
701: am__fastdepCXX_TRUE
702: CXXDEPMODE
703: AMDEPBACKSLASH
704: AMDEP_FALSE
705: AMDEP_TRUE
706: am__quote
707: am__include
708: DEPDIR
709: OBJEXT
710: EXEEXT
711: ac_ct_CXX
712: CPPFLAGS
713: LDFLAGS
714: CXXFLAGS
715: CXX
716: PGSQL_INC
717: am__untar
718: am__tar
719: AMTAR
720: am__leading_dot
721: SET_MAKE
722: AWK
723: mkdir_p
724: MKDIR_P
725: INSTALL_STRIP_PROGRAM
726: STRIP
727: install_sh
728: MAKEINFO
729: AUTOHEADER
730: AUTOMAKE
731: AUTOCONF
732: ACLOCAL
733: VERSION
734: PACKAGE
735: CYGPATH_W
736: am__isrc
737: INSTALL_DATA
738: INSTALL_SCRIPT
739: INSTALL_PROGRAM
740: target_alias
741: host_alias
742: build_alias
743: LIBS
744: ECHO_T
745: ECHO_N
746: ECHO_C
747: DEFS
748: mandir
749: localedir
750: libdir
751: psdir
752: pdfdir
753: dvidir
754: htmldir
755: infodir
756: docdir
757: oldincludedir
758: includedir
1.41 moko 759: runstatedir
1.31 moko 760: localstatedir
761: sharedstatedir
762: sysconfdir
763: datadir
764: datarootdir
765: libexecdir
766: sbindir
767: bindir
768: program_transform_name
769: prefix
770: exec_prefix
771: PACKAGE_URL
772: PACKAGE_BUGREPORT
773: PACKAGE_STRING
774: PACKAGE_VERSION
775: PACKAGE_TARNAME
776: PACKAGE_NAME
777: PATH_SEPARATOR
778: SHELL'
1.10 paf 779: ac_subst_files=''
1.31 moko 780: ac_user_opts='
781: enable_option_checking
782: with_pgsql_inc
783: enable_dependency_tracking
784: enable_static
785: enable_shared
786: with_pic
787: enable_fast_install
788: with_gnu_ld
789: with_sysroot
790: enable_libtool_lock
791: with_included_ltdl
792: with_ltdl_include
793: with_ltdl_lib
794: enable_ltdl_install
795: '
796: ac_precious_vars='build_alias
797: host_alias
798: target_alias
799: CXX
800: CXXFLAGS
801: LDFLAGS
802: LIBS
803: CPPFLAGS
804: CCC
805: CC
806: CFLAGS
807: CPP
808: CXXCPP'
809: ac_subdirs_all='libltdl'
1.1 parser 810:
811: # Initialize some variables set by options.
1.10 paf 812: ac_init_help=
813: ac_init_version=false
1.31 moko 814: ac_unrecognized_opts=
815: ac_unrecognized_sep=
1.1 parser 816: # The variables have the same names as the options, with
817: # dashes changed to underlines.
1.10 paf 818: cache_file=/dev/null
1.1 parser 819: exec_prefix=NONE
820: no_create=
821: no_recursion=
822: prefix=NONE
823: program_prefix=NONE
824: program_suffix=NONE
825: program_transform_name=s,x,x,
826: silent=
827: site=
828: srcdir=
829: verbose=
830: x_includes=NONE
831: x_libraries=NONE
1.10 paf 832:
833: # Installation directory options.
834: # These are left unexpanded so users can "make install exec_prefix=/foo"
835: # and all the variables that are supposed to be based on exec_prefix
836: # by default will actually change.
837: # Use braces instead of parens because sh, perl, etc. also accept them.
1.31 moko 838: # (The list follows the same order as the GNU Coding Standards.)
1.1 parser 839: bindir='${exec_prefix}/bin'
840: sbindir='${exec_prefix}/sbin'
841: libexecdir='${exec_prefix}/libexec'
1.31 moko 842: datarootdir='${prefix}/share'
843: datadir='${datarootdir}'
1.1 parser 844: sysconfdir='${prefix}/etc'
845: sharedstatedir='${prefix}/com'
846: localstatedir='${prefix}/var'
1.41 moko 847: runstatedir='${localstatedir}/run'
1.1 parser 848: includedir='${prefix}/include'
849: oldincludedir='/usr/include'
1.31 moko 850: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851: infodir='${datarootdir}/info'
852: htmldir='${docdir}'
853: dvidir='${docdir}'
854: pdfdir='${docdir}'
855: psdir='${docdir}'
856: libdir='${exec_prefix}/lib'
857: localedir='${datarootdir}/locale'
858: mandir='${datarootdir}/man'
1.1 parser 859:
860: ac_prev=
1.31 moko 861: ac_dashdash=
1.1 parser 862: for ac_option
863: do
864: # If the previous option needs an argument, assign it.
865: if test -n "$ac_prev"; then
1.31 moko 866: eval $ac_prev=\$ac_option
1.1 parser 867: ac_prev=
868: continue
869: fi
870:
1.31 moko 871: case $ac_option in
872: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873: *=) ac_optarg= ;;
874: *) ac_optarg=yes ;;
875: esac
1.1 parser 876:
877: # Accept the important Cygnus configure options, so we can diagnose typos.
878:
1.31 moko 879: case $ac_dashdash$ac_option in
880: --)
881: ac_dashdash=yes ;;
1.1 parser 882:
883: -bindir | --bindir | --bindi | --bind | --bin | --bi)
884: ac_prev=bindir ;;
885: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.10 paf 886: bindir=$ac_optarg ;;
1.1 parser 887:
888: -build | --build | --buil | --bui | --bu)
1.10 paf 889: ac_prev=build_alias ;;
1.1 parser 890: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.10 paf 891: build_alias=$ac_optarg ;;
1.1 parser 892:
893: -cache-file | --cache-file | --cache-fil | --cache-fi \
894: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895: ac_prev=cache_file ;;
896: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.10 paf 898: cache_file=$ac_optarg ;;
899:
900: --config-cache | -C)
901: cache_file=config.cache ;;
1.1 parser 902:
1.31 moko 903: -datadir | --datadir | --datadi | --datad)
1.1 parser 904: ac_prev=datadir ;;
1.31 moko 905: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.10 paf 906: datadir=$ac_optarg ;;
1.1 parser 907:
1.31 moko 908: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909: | --dataroo | --dataro | --datar)
910: ac_prev=datarootdir ;;
911: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913: datarootdir=$ac_optarg ;;
914:
1.1 parser 915: -disable-* | --disable-*)
1.31 moko 916: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 917: # Reject names that are not valid shell variable names.
1.31 moko 918: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919: as_fn_error $? "invalid feature name: $ac_useropt"
920: ac_useropt_orig=$ac_useropt
921: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922: case $ac_user_opts in
923: *"
924: "enable_$ac_useropt"
925: "*) ;;
926: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927: ac_unrecognized_sep=', ';;
928: esac
929: eval enable_$ac_useropt=no ;;
930:
931: -docdir | --docdir | --docdi | --doc | --do)
932: ac_prev=docdir ;;
933: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934: docdir=$ac_optarg ;;
935:
936: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937: ac_prev=dvidir ;;
938: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939: dvidir=$ac_optarg ;;
1.1 parser 940:
941: -enable-* | --enable-*)
1.31 moko 942: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 943: # Reject names that are not valid shell variable names.
1.31 moko 944: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945: as_fn_error $? "invalid feature name: $ac_useropt"
946: ac_useropt_orig=$ac_useropt
947: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948: case $ac_user_opts in
949: *"
950: "enable_$ac_useropt"
951: "*) ;;
952: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953: ac_unrecognized_sep=', ';;
1.1 parser 954: esac
1.31 moko 955: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 parser 956:
957: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959: | --exec | --exe | --ex)
960: ac_prev=exec_prefix ;;
961: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963: | --exec=* | --exe=* | --ex=*)
1.10 paf 964: exec_prefix=$ac_optarg ;;
1.1 parser 965:
966: -gas | --gas | --ga | --g)
967: # Obsolete; use --with-gas.
968: with_gas=yes ;;
969:
1.10 paf 970: -help | --help | --hel | --he | -h)
971: ac_init_help=long ;;
972: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973: ac_init_help=recursive ;;
974: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975: ac_init_help=short ;;
1.1 parser 976:
977: -host | --host | --hos | --ho)
1.10 paf 978: ac_prev=host_alias ;;
1.1 parser 979: -host=* | --host=* | --hos=* | --ho=*)
1.10 paf 980: host_alias=$ac_optarg ;;
1.1 parser 981:
1.31 moko 982: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983: ac_prev=htmldir ;;
984: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985: | --ht=*)
986: htmldir=$ac_optarg ;;
987:
1.1 parser 988: -includedir | --includedir | --includedi | --included | --include \
989: | --includ | --inclu | --incl | --inc)
990: ac_prev=includedir ;;
991: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.10 paf 993: includedir=$ac_optarg ;;
1.1 parser 994:
995: -infodir | --infodir | --infodi | --infod | --info | --inf)
996: ac_prev=infodir ;;
997: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.10 paf 998: infodir=$ac_optarg ;;
1.1 parser 999:
1000: -libdir | --libdir | --libdi | --libd)
1001: ac_prev=libdir ;;
1002: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.10 paf 1003: libdir=$ac_optarg ;;
1.1 parser 1004:
1005: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006: | --libexe | --libex | --libe)
1007: ac_prev=libexecdir ;;
1008: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009: | --libexe=* | --libex=* | --libe=*)
1.10 paf 1010: libexecdir=$ac_optarg ;;
1.1 parser 1011:
1.31 moko 1012: -localedir | --localedir | --localedi | --localed | --locale)
1013: ac_prev=localedir ;;
1014: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015: localedir=$ac_optarg ;;
1016:
1.1 parser 1017: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.31 moko 1018: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 parser 1019: ac_prev=localstatedir ;;
1020: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.31 moko 1021: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.10 paf 1022: localstatedir=$ac_optarg ;;
1.1 parser 1023:
1024: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025: ac_prev=mandir ;;
1026: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.10 paf 1027: mandir=$ac_optarg ;;
1.1 parser 1028:
1029: -nfp | --nfp | --nf)
1030: # Obsolete; use --without-fp.
1031: with_fp=no ;;
1032:
1033: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.10 paf 1034: | --no-cr | --no-c | -n)
1.1 parser 1035: no_create=yes ;;
1036:
1037: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039: no_recursion=yes ;;
1040:
1041: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043: | --oldin | --oldi | --old | --ol | --o)
1044: ac_prev=oldincludedir ;;
1045: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.10 paf 1048: oldincludedir=$ac_optarg ;;
1.1 parser 1049:
1050: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051: ac_prev=prefix ;;
1052: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.10 paf 1053: prefix=$ac_optarg ;;
1.1 parser 1054:
1055: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056: | --program-pre | --program-pr | --program-p)
1057: ac_prev=program_prefix ;;
1058: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.10 paf 1060: program_prefix=$ac_optarg ;;
1.1 parser 1061:
1062: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063: | --program-suf | --program-su | --program-s)
1064: ac_prev=program_suffix ;;
1065: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.10 paf 1067: program_suffix=$ac_optarg ;;
1.1 parser 1068:
1069: -program-transform-name | --program-transform-name \
1070: | --program-transform-nam | --program-transform-na \
1071: | --program-transform-n | --program-transform- \
1072: | --program-transform | --program-transfor \
1073: | --program-transfo | --program-transf \
1074: | --program-trans | --program-tran \
1075: | --progr-tra | --program-tr | --program-t)
1076: ac_prev=program_transform_name ;;
1077: -program-transform-name=* | --program-transform-name=* \
1078: | --program-transform-nam=* | --program-transform-na=* \
1079: | --program-transform-n=* | --program-transform-=* \
1080: | --program-transform=* | --program-transfor=* \
1081: | --program-transfo=* | --program-transf=* \
1082: | --program-trans=* | --program-tran=* \
1083: | --progr-tra=* | --program-tr=* | --program-t=*)
1.10 paf 1084: program_transform_name=$ac_optarg ;;
1.1 parser 1085:
1.31 moko 1086: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087: ac_prev=pdfdir ;;
1088: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089: pdfdir=$ac_optarg ;;
1090:
1091: -psdir | --psdir | --psdi | --psd | --ps)
1092: ac_prev=psdir ;;
1093: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094: psdir=$ac_optarg ;;
1095:
1.1 parser 1096: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097: | -silent | --silent | --silen | --sile | --sil)
1098: silent=yes ;;
1099:
1.41 moko 1100: -runstatedir | --runstatedir | --runstatedi | --runstated \
1101: | --runstate | --runstat | --runsta | --runst | --runs \
1102: | --run | --ru | --r)
1103: ac_prev=runstatedir ;;
1104: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1105: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1106: | --run=* | --ru=* | --r=*)
1107: runstatedir=$ac_optarg ;;
1108:
1.1 parser 1109: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110: ac_prev=sbindir ;;
1111: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112: | --sbi=* | --sb=*)
1.10 paf 1113: sbindir=$ac_optarg ;;
1.1 parser 1114:
1115: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117: | --sharedst | --shareds | --shared | --share | --shar \
1118: | --sha | --sh)
1119: ac_prev=sharedstatedir ;;
1120: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123: | --sha=* | --sh=*)
1.10 paf 1124: sharedstatedir=$ac_optarg ;;
1.1 parser 1125:
1126: -site | --site | --sit)
1127: ac_prev=site ;;
1128: -site=* | --site=* | --sit=*)
1.10 paf 1129: site=$ac_optarg ;;
1.1 parser 1130:
1131: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132: ac_prev=srcdir ;;
1133: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.10 paf 1134: srcdir=$ac_optarg ;;
1.1 parser 1135:
1136: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137: | --syscon | --sysco | --sysc | --sys | --sy)
1138: ac_prev=sysconfdir ;;
1139: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.10 paf 1141: sysconfdir=$ac_optarg ;;
1.1 parser 1142:
1143: -target | --target | --targe | --targ | --tar | --ta | --t)
1.10 paf 1144: ac_prev=target_alias ;;
1.1 parser 1145: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.10 paf 1146: target_alias=$ac_optarg ;;
1.1 parser 1147:
1148: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149: verbose=yes ;;
1150:
1.10 paf 1151: -version | --version | --versio | --versi | --vers | -V)
1152: ac_init_version=: ;;
1.1 parser 1153:
1154: -with-* | --with-*)
1.31 moko 1155: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 1156: # Reject names that are not valid shell variable names.
1.31 moko 1157: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158: as_fn_error $? "invalid package name: $ac_useropt"
1159: ac_useropt_orig=$ac_useropt
1160: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161: case $ac_user_opts in
1162: *"
1163: "with_$ac_useropt"
1164: "*) ;;
1165: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166: ac_unrecognized_sep=', ';;
1.1 parser 1167: esac
1.31 moko 1168: eval with_$ac_useropt=\$ac_optarg ;;
1.1 parser 1169:
1170: -without-* | --without-*)
1.31 moko 1171: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 1172: # Reject names that are not valid shell variable names.
1.31 moko 1173: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174: as_fn_error $? "invalid package name: $ac_useropt"
1175: ac_useropt_orig=$ac_useropt
1176: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177: case $ac_user_opts in
1178: *"
1179: "with_$ac_useropt"
1180: "*) ;;
1181: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182: ac_unrecognized_sep=', ';;
1183: esac
1184: eval with_$ac_useropt=no ;;
1.1 parser 1185:
1186: --x)
1187: # Obsolete; use --with-x.
1188: with_x=yes ;;
1189:
1190: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191: | --x-incl | --x-inc | --x-in | --x-i)
1192: ac_prev=x_includes ;;
1193: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.10 paf 1195: x_includes=$ac_optarg ;;
1.1 parser 1196:
1197: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199: ac_prev=x_libraries ;;
1200: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.10 paf 1202: x_libraries=$ac_optarg ;;
1.1 parser 1203:
1.31 moko 1204: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205: Try \`$0 --help' for more information"
1.1 parser 1206: ;;
1207:
1.10 paf 1208: *=*)
1209: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210: # Reject names that are not valid shell variable names.
1.31 moko 1211: case $ac_envvar in #(
1212: '' | [0-9]* | *[!_$as_cr_alnum]* )
1213: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214: esac
1215: eval $ac_envvar=\$ac_optarg
1.10 paf 1216: export $ac_envvar ;;
1217:
1.1 parser 1218: *)
1.10 paf 1219: # FIXME: should be removed in autoconf 3.0.
1.31 moko 1220: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.10 paf 1221: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.31 moko 1222: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 parser 1224: ;;
1225:
1226: esac
1227: done
1228:
1229: if test -n "$ac_prev"; then
1.10 paf 1230: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.31 moko 1231: as_fn_error $? "missing argument to $ac_option"
1232: fi
1233:
1234: if test -n "$ac_unrecognized_opts"; then
1235: case $enable_option_checking in
1236: no) ;;
1237: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239: esac
1.1 parser 1240: fi
1241:
1.31 moko 1242: # Check all directory arguments for consistency.
1243: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244: datadir sysconfdir sharedstatedir localstatedir includedir \
1245: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.41 moko 1246: libdir localedir mandir runstatedir
1.10 paf 1247: do
1.31 moko 1248: eval ac_val=\$$ac_var
1249: # Remove trailing slashes.
1.10 paf 1250: case $ac_val in
1.31 moko 1251: */ )
1252: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253: eval $ac_var=\$ac_val;;
1.10 paf 1254: esac
1.31 moko 1255: # Be sure to have absolute directory names.
1.10 paf 1256: case $ac_val in
1.31 moko 1257: [\\/$]* | ?:[\\/]* ) continue;;
1258: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 parser 1259: esac
1.31 moko 1260: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 parser 1261: done
1262:
1.10 paf 1263: # There might be people who depend on the old broken behavior: `$host'
1264: # used to hold the argument of --host etc.
1265: # FIXME: To remove some day.
1266: build=$build_alias
1267: host=$host_alias
1268: target=$target_alias
1269:
1270: # FIXME: To remove some day.
1271: if test "x$host_alias" != x; then
1272: if test "x$build_alias" = x; then
1273: cross_compiling=maybe
1274: elif test "x$build_alias" != "x$host_alias"; then
1275: cross_compiling=yes
1276: fi
1277: fi
1278:
1279: ac_tool_prefix=
1280: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 1281:
1.10 paf 1282: test "$silent" = yes && exec 6>/dev/null
1.1 parser 1283:
1284:
1.31 moko 1285: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286: ac_ls_di=`ls -di .` &&
1287: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288: as_fn_error $? "working directory cannot be determined"
1289: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290: as_fn_error $? "pwd does not report name of working directory"
1291:
1292:
1.1 parser 1293: # Find the source files, if location was not specified.
1294: if test -z "$srcdir"; then
1295: ac_srcdir_defaulted=yes
1.31 moko 1296: # Try the directory containing this script, then the parent directory.
1297: ac_confdir=`$as_dirname -- "$as_myself" ||
1298: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299: X"$as_myself" : 'X\(//\)[^/]' \| \
1300: X"$as_myself" : 'X\(//\)$' \| \
1301: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302: $as_echo X"$as_myself" |
1303: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304: s//\1/
1305: q
1306: }
1307: /^X\(\/\/\)[^/].*/{
1308: s//\1/
1309: q
1310: }
1311: /^X\(\/\/\)$/{
1312: s//\1/
1313: q
1314: }
1315: /^X\(\/\).*/{
1316: s//\1/
1317: q
1318: }
1319: s/.*/./; q'`
1.1 parser 1320: srcdir=$ac_confdir
1.31 moko 1321: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 parser 1322: srcdir=..
1323: fi
1324: else
1325: ac_srcdir_defaulted=no
1326: fi
1.31 moko 1327: if test ! -r "$srcdir/$ac_unique_file"; then
1328: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330: fi
1331: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332: ac_abs_confdir=`(
1333: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334: pwd)`
1335: # When building in place, set srcdir=.
1336: if test "$ac_abs_confdir" = "$ac_pwd"; then
1337: srcdir=.
1338: fi
1339: # Remove unnecessary trailing slashes from srcdir.
1340: # Double slashes in file names in object file debugging info
1341: # mess up M-x gdb in Emacs.
1342: case $srcdir in
1343: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344: esac
1345: for ac_var in $ac_precious_vars; do
1346: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347: eval ac_env_${ac_var}_value=\$${ac_var}
1348: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350: done
1.10 paf 1351:
1352: #
1353: # Report the --help message.
1354: #
1355: if test "$ac_init_help" = "long"; then
1356: # Omit some internal or obsolete options to make the list less imposing.
1357: # This message is too long to be a string in the A/UX 3.1 sh.
1358: cat <<_ACEOF
1.43 ! moko 1359: \`configure' configures parser3pgsql 10.7 to adapt to many kinds of systems.
1.10 paf 1360:
1361: Usage: $0 [OPTION]... [VAR=VALUE]...
1362:
1363: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364: VAR=VALUE. See below for descriptions of some of the useful variables.
1365:
1366: Defaults for the options are specified in brackets.
1367:
1368: Configuration:
1369: -h, --help display this help and exit
1370: --help=short display options specific to this package
1371: --help=recursive display the short help of all the included packages
1372: -V, --version display version information and exit
1.31 moko 1373: -q, --quiet, --silent do not print \`checking ...' messages
1.10 paf 1374: --cache-file=FILE cache test results in FILE [disabled]
1375: -C, --config-cache alias for \`--cache-file=config.cache'
1376: -n, --no-create do not create output files
1377: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378:
1379: Installation directories:
1380: --prefix=PREFIX install architecture-independent files in PREFIX
1.31 moko 1381: [$ac_default_prefix]
1.10 paf 1382: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.31 moko 1383: [PREFIX]
1.10 paf 1384:
1385: By default, \`make install' will install all the files in
1386: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388: for instance \`--prefix=\$HOME'.
1389:
1390: For better control, use the options below.
1391:
1392: Fine tuning of the installation directories:
1.31 moko 1393: --bindir=DIR user executables [EPREFIX/bin]
1394: --sbindir=DIR system admin executables [EPREFIX/sbin]
1395: --libexecdir=DIR program executables [EPREFIX/libexec]
1396: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.41 moko 1399: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.31 moko 1400: --libdir=DIR object code libraries [EPREFIX/lib]
1401: --includedir=DIR C header files [PREFIX/include]
1402: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405: --infodir=DIR info documentation [DATAROOTDIR/info]
1406: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407: --mandir=DIR man documentation [DATAROOTDIR/man]
1.35 moko 1408: --docdir=DIR documentation root [DATAROOTDIR/doc/parser3pgsql]
1.31 moko 1409: --htmldir=DIR html documentation [DOCDIR]
1410: --dvidir=DIR dvi documentation [DOCDIR]
1411: --pdfdir=DIR pdf documentation [DOCDIR]
1412: --psdir=DIR ps documentation [DOCDIR]
1.10 paf 1413: _ACEOF
1414:
1415: cat <<\_ACEOF
1416:
1417: Program names:
1418: --program-prefix=PREFIX prepend PREFIX to installed program names
1419: --program-suffix=SUFFIX append SUFFIX to installed program names
1420: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421:
1422: System types:
1423: --build=BUILD configure for building on BUILD [guessed]
1424: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425: _ACEOF
1426: fi
1427:
1428: if test -n "$ac_init_help"; then
1.23 moko 1429: case $ac_init_help in
1.43 ! moko 1430: short | recursive ) echo "Configuration of parser3pgsql 10.7:";;
1.23 moko 1431: esac
1.10 paf 1432: cat <<\_ACEOF
1433:
1434: Optional Features:
1.31 moko 1435: --disable-option-checking ignore unrecognized --enable/--with options
1.10 paf 1436: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.16 paf 1438: --disable-dependency-tracking speeds up one-time build
1439: --enable-dependency-tracking do not reject slow dependency extractors
1.31 moko 1440: --enable-static[=PKGS] build static libraries [default=no]
1441: --enable-shared[=PKGS] build shared libraries [default=yes]
1.23 moko 1442: --enable-fast-install[=PKGS]
1443: optimize for fast installation [default=yes]
1.10 paf 1444: --disable-libtool-lock avoid locking (might break parallel builds)
1.23 moko 1445: --enable-ltdl-install install libltdl
1.10 paf 1446:
1447: Optional Packages:
1448: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.23 moko 1450: --with-pgsql-inc=DIR DIR is the PgSql includes directory
1.31 moko 1451: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.23 moko 1452: both]
1453: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454: --with-sysroot=DIR Search for dependent libraries within DIR
1455: (or the compiler's sysroot if not specified).
1456: --with-included-ltdl use the GNU ltdl sources included here
1457: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1458: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.10 paf 1459:
1460: Some influential environment variables:
1461: CXX C++ compiler command
1462: CXXFLAGS C++ compiler flags
1463: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464: nonstandard directory <lib dir>
1.31 moko 1465: LIBS libraries to pass to the linker, e.g. -l<library>
1466: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467: you have headers in a nonstandard directory <include dir>
1.10 paf 1468: CC C compiler command
1469: CFLAGS C compiler flags
1.15 paf 1470: CPP C preprocessor
1.23 moko 1471: CXXCPP C++ preprocessor
1.10 paf 1472:
1473: Use these variables to override the choices made by `configure' or to help
1474: it to find libraries and programs with nonstandard names/locations.
1475:
1.31 moko 1476: Report bugs to the package provider.
1.10 paf 1477: _ACEOF
1.31 moko 1478: ac_status=$?
1.10 paf 1479: fi
1480:
1481: if test "$ac_init_help" = "recursive"; then
1482: # If there are subdirs, report their specific --help.
1483: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.31 moko 1484: test -d "$ac_dir" ||
1485: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486: continue
1.10 paf 1487: ac_builddir=.
1488:
1.31 moko 1489: case "$ac_dir" in
1490: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491: *)
1492: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493: # A ".." for each directory in $ac_dir_suffix.
1494: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495: case $ac_top_builddir_sub in
1496: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498: esac ;;
1499: esac
1500: ac_abs_top_builddir=$ac_pwd
1501: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502: # for backward compatibility:
1503: ac_top_builddir=$ac_top_build_prefix
1.10 paf 1504:
1505: case $srcdir in
1.31 moko 1506: .) # We are building in place.
1.10 paf 1507: ac_srcdir=.
1.31 moko 1508: ac_top_srcdir=$ac_top_builddir_sub
1509: ac_abs_top_srcdir=$ac_pwd ;;
1510: [\\/]* | ?:[\\/]* ) # Absolute name.
1.10 paf 1511: ac_srcdir=$srcdir$ac_dir_suffix;
1.31 moko 1512: ac_top_srcdir=$srcdir
1513: ac_abs_top_srcdir=$srcdir ;;
1514: *) # Relative name.
1515: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516: ac_top_srcdir=$ac_top_build_prefix$srcdir
1517: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.10 paf 1518: esac
1.31 moko 1519: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.16 paf 1520:
1.31 moko 1521: cd "$ac_dir" || { ac_status=$?; continue; }
1522: # Check for guested configure.
1523: if test -f "$ac_srcdir/configure.gnu"; then
1524: echo &&
1525: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526: elif test -f "$ac_srcdir/configure"; then
1527: echo &&
1528: $SHELL "$ac_srcdir/configure" --help=recursive
1.10 paf 1529: else
1.31 moko 1530: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531: fi || ac_status=$?
1532: cd "$ac_pwd" || { ac_status=$?; break; }
1.10 paf 1533: done
1534: fi
1.1 parser 1535:
1.31 moko 1536: test -n "$ac_init_help" && exit $ac_status
1.10 paf 1537: if $ac_init_version; then
1538: cat <<\_ACEOF
1.43 ! moko 1539: parser3pgsql configure 10.7
1.34 moko 1540: generated by GNU Autoconf 2.69
1.10 paf 1541:
1.34 moko 1542: Copyright (C) 2012 Free Software Foundation, Inc.
1.10 paf 1543: This configure script is free software; the Free Software Foundation
1544: gives unlimited permission to copy, distribute and modify it.
1545: _ACEOF
1.31 moko 1546: exit
1.10 paf 1547: fi
1548:
1.31 moko 1549: ## ------------------------ ##
1550: ## Autoconf initialization. ##
1551: ## ------------------------ ##
1552:
1553: # ac_fn_cxx_try_compile LINENO
1554: # ----------------------------
1555: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556: ac_fn_cxx_try_compile ()
1557: {
1558: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559: rm -f conftest.$ac_objext
1560: if { { ac_try="$ac_compile"
1561: case "(($ac_try" in
1562: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563: *) ac_try_echo=$ac_try;;
1564: esac
1565: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566: $as_echo "$ac_try_echo"; } >&5
1567: (eval "$ac_compile") 2>conftest.err
1568: ac_status=$?
1569: if test -s conftest.err; then
1570: grep -v '^ *+' conftest.err >conftest.er1
1571: cat conftest.er1 >&5
1572: mv -f conftest.er1 conftest.err
1573: fi
1574: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575: test $ac_status = 0; } && {
1576: test -z "$ac_cxx_werror_flag" ||
1577: test ! -s conftest.err
1578: } && test -s conftest.$ac_objext; then :
1579: ac_retval=0
1580: else
1581: $as_echo "$as_me: failed program was:" >&5
1582: sed 's/^/| /' conftest.$ac_ext >&5
1583:
1584: ac_retval=1
1585: fi
1586: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587: as_fn_set_status $ac_retval
1.10 paf 1588:
1.31 moko 1589: } # ac_fn_cxx_try_compile
1.10 paf 1590:
1.31 moko 1591: # ac_fn_c_try_compile LINENO
1592: # --------------------------
1593: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594: ac_fn_c_try_compile ()
1.10 paf 1595: {
1.31 moko 1596: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597: rm -f conftest.$ac_objext
1598: if { { ac_try="$ac_compile"
1599: case "(($ac_try" in
1600: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601: *) ac_try_echo=$ac_try;;
1602: esac
1603: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604: $as_echo "$ac_try_echo"; } >&5
1605: (eval "$ac_compile") 2>conftest.err
1606: ac_status=$?
1607: if test -s conftest.err; then
1608: grep -v '^ *+' conftest.err >conftest.er1
1609: cat conftest.er1 >&5
1610: mv -f conftest.er1 conftest.err
1611: fi
1612: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613: test $ac_status = 0; } && {
1614: test -z "$ac_c_werror_flag" ||
1615: test ! -s conftest.err
1616: } && test -s conftest.$ac_objext; then :
1617: ac_retval=0
1618: else
1619: $as_echo "$as_me: failed program was:" >&5
1620: sed 's/^/| /' conftest.$ac_ext >&5
1621:
1622: ac_retval=1
1623: fi
1624: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625: as_fn_set_status $ac_retval
1626:
1627: } # ac_fn_c_try_compile
1628:
1629: # ac_fn_c_try_link LINENO
1630: # -----------------------
1631: # Try to link conftest.$ac_ext, and return whether this succeeded.
1632: ac_fn_c_try_link ()
1633: {
1634: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635: rm -f conftest.$ac_objext conftest$ac_exeext
1636: if { { ac_try="$ac_link"
1637: case "(($ac_try" in
1638: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639: *) ac_try_echo=$ac_try;;
1640: esac
1641: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642: $as_echo "$ac_try_echo"; } >&5
1643: (eval "$ac_link") 2>conftest.err
1644: ac_status=$?
1645: if test -s conftest.err; then
1646: grep -v '^ *+' conftest.err >conftest.er1
1647: cat conftest.er1 >&5
1648: mv -f conftest.er1 conftest.err
1649: fi
1650: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651: test $ac_status = 0; } && {
1652: test -z "$ac_c_werror_flag" ||
1653: test ! -s conftest.err
1654: } && test -s conftest$ac_exeext && {
1655: test "$cross_compiling" = yes ||
1.34 moko 1656: test -x conftest$ac_exeext
1.31 moko 1657: }; then :
1658: ac_retval=0
1659: else
1660: $as_echo "$as_me: failed program was:" >&5
1661: sed 's/^/| /' conftest.$ac_ext >&5
1662:
1663: ac_retval=1
1664: fi
1665: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667: # interfere with the next link command; also delete a directory that is
1668: # left behind by Apple's compiler. We do this before executing the actions.
1669: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671: as_fn_set_status $ac_retval
1672:
1673: } # ac_fn_c_try_link
1674:
1675: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676: # -------------------------------------------------------
1677: # Tests whether HEADER exists and can be compiled using the include files in
1678: # INCLUDES, setting the cache variable VAR accordingly.
1679: ac_fn_c_check_header_compile ()
1680: {
1681: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683: $as_echo_n "checking for $2... " >&6; }
1684: if eval \${$3+:} false; then :
1685: $as_echo_n "(cached) " >&6
1686: else
1687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688: /* end confdefs.h. */
1689: $4
1690: #include <$2>
1691: _ACEOF
1692: if ac_fn_c_try_compile "$LINENO"; then :
1693: eval "$3=yes"
1694: else
1695: eval "$3=no"
1696: fi
1697: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698: fi
1699: eval ac_res=\$$3
1700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701: $as_echo "$ac_res" >&6; }
1702: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703:
1704: } # ac_fn_c_check_header_compile
1705:
1706: # ac_fn_c_try_cpp LINENO
1707: # ----------------------
1708: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709: ac_fn_c_try_cpp ()
1710: {
1711: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712: if { { ac_try="$ac_cpp conftest.$ac_ext"
1713: case "(($ac_try" in
1714: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715: *) ac_try_echo=$ac_try;;
1716: esac
1717: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718: $as_echo "$ac_try_echo"; } >&5
1719: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720: ac_status=$?
1721: if test -s conftest.err; then
1722: grep -v '^ *+' conftest.err >conftest.er1
1723: cat conftest.er1 >&5
1724: mv -f conftest.er1 conftest.err
1725: fi
1726: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727: test $ac_status = 0; } > conftest.i && {
1728: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729: test ! -s conftest.err
1730: }; then :
1731: ac_retval=0
1732: else
1733: $as_echo "$as_me: failed program was:" >&5
1734: sed 's/^/| /' conftest.$ac_ext >&5
1735:
1736: ac_retval=1
1737: fi
1738: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739: as_fn_set_status $ac_retval
1740:
1741: } # ac_fn_c_try_cpp
1742:
1743: # ac_fn_c_try_run LINENO
1744: # ----------------------
1745: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746: # that executables *can* be run.
1747: ac_fn_c_try_run ()
1748: {
1749: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750: if { { ac_try="$ac_link"
1751: case "(($ac_try" in
1752: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753: *) ac_try_echo=$ac_try;;
1754: esac
1755: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756: $as_echo "$ac_try_echo"; } >&5
1757: (eval "$ac_link") 2>&5
1758: ac_status=$?
1759: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761: { { case "(($ac_try" in
1762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763: *) ac_try_echo=$ac_try;;
1764: esac
1765: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766: $as_echo "$ac_try_echo"; } >&5
1767: (eval "$ac_try") 2>&5
1768: ac_status=$?
1769: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770: test $ac_status = 0; }; }; then :
1771: ac_retval=0
1772: else
1773: $as_echo "$as_me: program exited with status $ac_status" >&5
1774: $as_echo "$as_me: failed program was:" >&5
1775: sed 's/^/| /' conftest.$ac_ext >&5
1776:
1777: ac_retval=$ac_status
1778: fi
1779: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781: as_fn_set_status $ac_retval
1782:
1783: } # ac_fn_c_try_run
1784:
1785: # ac_fn_c_check_func LINENO FUNC VAR
1786: # ----------------------------------
1787: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1788: ac_fn_c_check_func ()
1789: {
1790: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792: $as_echo_n "checking for $2... " >&6; }
1793: if eval \${$3+:} false; then :
1794: $as_echo_n "(cached) " >&6
1795: else
1796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797: /* end confdefs.h. */
1798: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800: #define $2 innocuous_$2
1801:
1802: /* System header to define __stub macros and hopefully few prototypes,
1803: which can conflict with char $2 (); below.
1804: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805: <limits.h> exists even on freestanding compilers. */
1806:
1807: #ifdef __STDC__
1808: # include <limits.h>
1809: #else
1810: # include <assert.h>
1811: #endif
1812:
1813: #undef $2
1814:
1815: /* Override any GCC internal prototype to avoid an error.
1816: Use char because int might match the return type of a GCC
1817: builtin and then its argument prototype would still apply. */
1818: #ifdef __cplusplus
1819: extern "C"
1820: #endif
1821: char $2 ();
1822: /* The GNU C library defines this for functions which it implements
1823: to always fail with ENOSYS. Some functions are actually named
1824: something starting with __ and the normal name is an alias. */
1825: #if defined __stub_$2 || defined __stub___$2
1826: choke me
1827: #endif
1828:
1829: int
1830: main ()
1831: {
1832: return $2 ();
1833: ;
1834: return 0;
1835: }
1836: _ACEOF
1837: if ac_fn_c_try_link "$LINENO"; then :
1838: eval "$3=yes"
1839: else
1840: eval "$3=no"
1841: fi
1842: rm -f core conftest.err conftest.$ac_objext \
1843: conftest$ac_exeext conftest.$ac_ext
1844: fi
1845: eval ac_res=\$$3
1846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847: $as_echo "$ac_res" >&6; }
1848: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849:
1850: } # ac_fn_c_check_func
1851:
1852: # ac_fn_cxx_try_cpp LINENO
1853: # ------------------------
1854: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855: ac_fn_cxx_try_cpp ()
1856: {
1857: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858: if { { ac_try="$ac_cpp conftest.$ac_ext"
1859: case "(($ac_try" in
1860: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861: *) ac_try_echo=$ac_try;;
1862: esac
1863: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864: $as_echo "$ac_try_echo"; } >&5
1865: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1866: ac_status=$?
1867: if test -s conftest.err; then
1868: grep -v '^ *+' conftest.err >conftest.er1
1869: cat conftest.er1 >&5
1870: mv -f conftest.er1 conftest.err
1871: fi
1872: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873: test $ac_status = 0; } > conftest.i && {
1874: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1875: test ! -s conftest.err
1876: }; then :
1877: ac_retval=0
1878: else
1879: $as_echo "$as_me: failed program was:" >&5
1880: sed 's/^/| /' conftest.$ac_ext >&5
1881:
1882: ac_retval=1
1883: fi
1884: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885: as_fn_set_status $ac_retval
1886:
1887: } # ac_fn_cxx_try_cpp
1888:
1889: # ac_fn_cxx_try_link LINENO
1890: # -------------------------
1891: # Try to link conftest.$ac_ext, and return whether this succeeded.
1892: ac_fn_cxx_try_link ()
1893: {
1894: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895: rm -f conftest.$ac_objext conftest$ac_exeext
1896: if { { ac_try="$ac_link"
1897: case "(($ac_try" in
1898: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899: *) ac_try_echo=$ac_try;;
1900: esac
1901: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902: $as_echo "$ac_try_echo"; } >&5
1903: (eval "$ac_link") 2>conftest.err
1904: ac_status=$?
1905: if test -s conftest.err; then
1906: grep -v '^ *+' conftest.err >conftest.er1
1907: cat conftest.er1 >&5
1908: mv -f conftest.er1 conftest.err
1909: fi
1910: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911: test $ac_status = 0; } && {
1912: test -z "$ac_cxx_werror_flag" ||
1913: test ! -s conftest.err
1914: } && test -s conftest$ac_exeext && {
1915: test "$cross_compiling" = yes ||
1.34 moko 1916: test -x conftest$ac_exeext
1.31 moko 1917: }; then :
1918: ac_retval=0
1919: else
1920: $as_echo "$as_me: failed program was:" >&5
1921: sed 's/^/| /' conftest.$ac_ext >&5
1922:
1923: ac_retval=1
1924: fi
1925: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927: # interfere with the next link command; also delete a directory that is
1928: # left behind by Apple's compiler. We do this before executing the actions.
1929: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931: as_fn_set_status $ac_retval
1932:
1933: } # ac_fn_cxx_try_link
1934:
1935: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1936: # ---------------------------------------------
1937: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1938: # accordingly.
1939: ac_fn_c_check_decl ()
1940: {
1941: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942: as_decl_name=`echo $2|sed 's/ *(.*//'`
1943: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1945: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1946: if eval \${$3+:} false; then :
1947: $as_echo_n "(cached) " >&6
1948: else
1949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950: /* end confdefs.h. */
1951: $4
1952: int
1953: main ()
1954: {
1955: #ifndef $as_decl_name
1956: #ifdef __cplusplus
1957: (void) $as_decl_use;
1958: #else
1959: (void) $as_decl_name;
1960: #endif
1961: #endif
1962:
1963: ;
1964: return 0;
1965: }
1966: _ACEOF
1967: if ac_fn_c_try_compile "$LINENO"; then :
1968: eval "$3=yes"
1969: else
1970: eval "$3=no"
1971: fi
1972: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973: fi
1974: eval ac_res=\$$3
1975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976: $as_echo "$ac_res" >&6; }
1977: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978:
1979: } # ac_fn_c_check_decl
1980:
1981: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1982: # -------------------------------------------
1983: # Tests whether TYPE exists after having included INCLUDES, setting cache
1984: # variable VAR accordingly.
1985: ac_fn_c_check_type ()
1986: {
1987: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989: $as_echo_n "checking for $2... " >&6; }
1990: if eval \${$3+:} false; then :
1991: $as_echo_n "(cached) " >&6
1992: else
1993: eval "$3=no"
1994: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995: /* end confdefs.h. */
1996: $4
1997: int
1998: main ()
1999: {
2000: if (sizeof ($2))
2001: return 0;
2002: ;
2003: return 0;
2004: }
2005: _ACEOF
2006: if ac_fn_c_try_compile "$LINENO"; then :
2007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008: /* end confdefs.h. */
2009: $4
2010: int
2011: main ()
2012: {
2013: if (sizeof (($2)))
2014: return 0;
2015: ;
2016: return 0;
2017: }
2018: _ACEOF
2019: if ac_fn_c_try_compile "$LINENO"; then :
2020:
2021: else
2022: eval "$3=yes"
2023: fi
2024: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025: fi
2026: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027: fi
2028: eval ac_res=\$$3
2029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030: $as_echo "$ac_res" >&6; }
2031: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032:
2033: } # ac_fn_c_check_type
2034:
2035: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2036: # -------------------------------------------------------
2037: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2038: # the include files in INCLUDES and setting the cache variable VAR
2039: # accordingly.
2040: ac_fn_c_check_header_mongrel ()
2041: {
2042: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043: if eval \${$3+:} false; then :
2044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045: $as_echo_n "checking for $2... " >&6; }
2046: if eval \${$3+:} false; then :
2047: $as_echo_n "(cached) " >&6
2048: fi
2049: eval ac_res=\$$3
2050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051: $as_echo "$ac_res" >&6; }
2052: else
2053: # Is the header compilable?
2054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2055: $as_echo_n "checking $2 usability... " >&6; }
2056: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057: /* end confdefs.h. */
2058: $4
2059: #include <$2>
2060: _ACEOF
2061: if ac_fn_c_try_compile "$LINENO"; then :
2062: ac_header_compiler=yes
2063: else
2064: ac_header_compiler=no
2065: fi
2066: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2068: $as_echo "$ac_header_compiler" >&6; }
2069:
2070: # Is the header present?
2071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2072: $as_echo_n "checking $2 presence... " >&6; }
2073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074: /* end confdefs.h. */
2075: #include <$2>
2076: _ACEOF
2077: if ac_fn_c_try_cpp "$LINENO"; then :
2078: ac_header_preproc=yes
2079: else
2080: ac_header_preproc=no
2081: fi
2082: rm -f conftest.err conftest.i conftest.$ac_ext
2083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2084: $as_echo "$ac_header_preproc" >&6; }
2085:
2086: # So? What about this header?
2087: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2088: yes:no: )
2089: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2090: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2091: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093: ;;
2094: no:yes:* )
2095: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2096: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2097: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2098: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2099: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2100: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2101: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2102: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2103: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2104: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105: ;;
2106: esac
2107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108: $as_echo_n "checking for $2... " >&6; }
2109: if eval \${$3+:} false; then :
2110: $as_echo_n "(cached) " >&6
2111: else
2112: eval "$3=\$ac_header_compiler"
2113: fi
2114: eval ac_res=\$$3
2115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116: $as_echo "$ac_res" >&6; }
2117: fi
2118: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119:
2120: } # ac_fn_c_check_header_mongrel
2121: cat >config.log <<_ACEOF
2122: This file contains any messages produced by compilers while
2123: running configure, to aid debugging if configure makes a mistake.
2124:
1.43 ! moko 2125: It was created by parser3pgsql $as_me 10.7, which was
1.34 moko 2126: generated by GNU Autoconf 2.69. Invocation command line was
1.31 moko 2127:
2128: $ $0 $@
2129:
2130: _ACEOF
2131: exec 5>>config.log
2132: {
2133: cat <<_ASUNAME
2134: ## --------- ##
2135: ## Platform. ##
2136: ## --------- ##
1.10 paf 2137:
2138: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2139: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2140: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2141: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2142: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2143:
2144: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2145: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2146:
2147: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2148: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2149: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.31 moko 2150: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.10 paf 2151: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2152: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2153: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2154:
2155: _ASUNAME
2156:
2157: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158: for as_dir in $PATH
2159: do
2160: IFS=$as_save_IFS
2161: test -z "$as_dir" && as_dir=.
1.31 moko 2162: $as_echo "PATH: $as_dir"
2163: done
2164: IFS=$as_save_IFS
1.10 paf 2165:
2166: } >&5
2167:
2168: cat >&5 <<_ACEOF
2169:
2170:
2171: ## ----------- ##
2172: ## Core tests. ##
2173: ## ----------- ##
2174:
2175: _ACEOF
2176:
2177:
2178: # Keep a trace of the command line.
2179: # Strip out --no-create and --no-recursion so they do not pile up.
2180: # Strip out --silent because we don't want to record it for future runs.
2181: # Also quote any args containing shell meta-characters.
2182: # Make two passes to allow for proper duplicate-argument suppression.
2183: ac_configure_args=
2184: ac_configure_args0=
2185: ac_configure_args1=
2186: ac_must_keep_next=false
2187: for ac_pass in 1 2
2188: do
2189: for ac_arg
2190: do
2191: case $ac_arg in
2192: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2193: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2194: | -silent | --silent | --silen | --sile | --sil)
2195: continue ;;
1.31 moko 2196: *\'*)
2197: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.10 paf 2198: esac
2199: case $ac_pass in
1.31 moko 2200: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.10 paf 2201: 2)
1.31 moko 2202: as_fn_append ac_configure_args1 " '$ac_arg'"
1.10 paf 2203: if test $ac_must_keep_next = true; then
1.16 paf 2204: ac_must_keep_next=false # Got value, back to normal.
1.10 paf 2205: else
1.16 paf 2206: case $ac_arg in
2207: *=* | --config-cache | -C | -disable-* | --disable-* \
2208: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2209: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2210: | -with-* | --with-* | -without-* | --without-* | --x)
2211: case "$ac_configure_args0 " in
2212: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2213: esac
2214: ;;
2215: -* ) ac_must_keep_next=true ;;
2216: esac
1.10 paf 2217: fi
1.31 moko 2218: as_fn_append ac_configure_args " '$ac_arg'"
1.10 paf 2219: ;;
2220: esac
2221: done
2222: done
1.31 moko 2223: { ac_configure_args0=; unset ac_configure_args0;}
2224: { ac_configure_args1=; unset ac_configure_args1;}
1.10 paf 2225:
2226: # When interrupted or exit'd, cleanup temporary files, and complete
2227: # config.log. We remove comments because anyway the quotes in there
2228: # would cause problems or look ugly.
1.31 moko 2229: # WARNING: Use '\'' to represent an apostrophe within the trap.
2230: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.10 paf 2231: trap 'exit_status=$?
2232: # Save into config.log some information that might help in debugging.
2233: {
2234: echo
2235:
1.31 moko 2236: $as_echo "## ---------------- ##
1.10 paf 2237: ## Cache variables. ##
1.31 moko 2238: ## ---------------- ##"
1.10 paf 2239: echo
2240: # The following way of writing the cache mishandles newlines in values,
1.31 moko 2241: (
2242: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2243: eval ac_val=\$$ac_var
2244: case $ac_val in #(
2245: *${as_nl}*)
2246: case $ac_var in #(
2247: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2248: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2249: esac
2250: case $ac_var in #(
2251: _ | IFS | as_nl) ;; #(
2252: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2253: *) { eval $ac_var=; unset $ac_var;} ;;
2254: esac ;;
2255: esac
2256: done
1.10 paf 2257: (set) 2>&1 |
1.31 moko 2258: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2259: *${as_nl}ac_space=\ *)
1.10 paf 2260: sed -n \
1.31 moko 2261: "s/'\''/'\''\\\\'\'''\''/g;
2262: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2263: ;; #(
1.10 paf 2264: *)
1.31 moko 2265: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.10 paf 2266: ;;
1.31 moko 2267: esac |
2268: sort
2269: )
1.10 paf 2270: echo
2271:
1.31 moko 2272: $as_echo "## ----------------- ##
1.10 paf 2273: ## Output variables. ##
1.31 moko 2274: ## ----------------- ##"
1.10 paf 2275: echo
2276: for ac_var in $ac_subst_vars
2277: do
1.31 moko 2278: eval ac_val=\$$ac_var
2279: case $ac_val in
2280: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281: esac
2282: $as_echo "$ac_var='\''$ac_val'\''"
1.10 paf 2283: done | sort
2284: echo
2285:
2286: if test -n "$ac_subst_files"; then
1.31 moko 2287: $as_echo "## ------------------- ##
2288: ## File substitutions. ##
2289: ## ------------------- ##"
1.10 paf 2290: echo
2291: for ac_var in $ac_subst_files
2292: do
1.31 moko 2293: eval ac_val=\$$ac_var
2294: case $ac_val in
2295: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296: esac
2297: $as_echo "$ac_var='\''$ac_val'\''"
1.10 paf 2298: done | sort
2299: echo
2300: fi
2301:
2302: if test -s confdefs.h; then
1.31 moko 2303: $as_echo "## ----------- ##
1.10 paf 2304: ## confdefs.h. ##
1.31 moko 2305: ## ----------- ##"
1.10 paf 2306: echo
1.31 moko 2307: cat confdefs.h
1.10 paf 2308: echo
2309: fi
2310: test "$ac_signal" != 0 &&
1.31 moko 2311: $as_echo "$as_me: caught signal $ac_signal"
2312: $as_echo "$as_me: exit $exit_status"
1.10 paf 2313: } >&5
1.31 moko 2314: rm -f core *.core core.conftest.* &&
2315: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.10 paf 2316: exit $exit_status
1.31 moko 2317: ' 0
1.10 paf 2318: for ac_signal in 1 2 13 15; do
1.31 moko 2319: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.10 paf 2320: done
2321: ac_signal=0
2322:
2323: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.31 moko 2324: rm -f -r conftest* confdefs.h
2325:
2326: $as_echo "/* confdefs.h */" > confdefs.h
1.10 paf 2327:
2328: # Predefined preprocessor variables.
2329:
2330: cat >>confdefs.h <<_ACEOF
2331: #define PACKAGE_NAME "$PACKAGE_NAME"
2332: _ACEOF
2333:
2334: cat >>confdefs.h <<_ACEOF
2335: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2336: _ACEOF
2337:
2338: cat >>confdefs.h <<_ACEOF
2339: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2340: _ACEOF
2341:
2342: cat >>confdefs.h <<_ACEOF
2343: #define PACKAGE_STRING "$PACKAGE_STRING"
2344: _ACEOF
2345:
1.31 moko 2346: cat >>confdefs.h <<_ACEOF
2347: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2348: _ACEOF
1.10 paf 2349:
2350: cat >>confdefs.h <<_ACEOF
1.31 moko 2351: #define PACKAGE_URL "$PACKAGE_URL"
1.10 paf 2352: _ACEOF
2353:
2354:
2355: # Let the site file select an alternate cache file if it wants to.
1.31 moko 2356: # Prefer an explicitly selected file to automatically selected ones.
2357: ac_site_file1=NONE
2358: ac_site_file2=NONE
2359: if test -n "$CONFIG_SITE"; then
2360: # We do not want a PATH search for config.site.
2361: case $CONFIG_SITE in #((
2362: -*) ac_site_file1=./$CONFIG_SITE;;
2363: */*) ac_site_file1=$CONFIG_SITE;;
2364: *) ac_site_file1=./$CONFIG_SITE;;
2365: esac
2366: elif test "x$prefix" != xNONE; then
2367: ac_site_file1=$prefix/share/config.site
2368: ac_site_file2=$prefix/etc/config.site
2369: else
2370: ac_site_file1=$ac_default_prefix/share/config.site
2371: ac_site_file2=$ac_default_prefix/etc/config.site
2372: fi
2373: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2374: do
2375: test "x$ac_site_file" = xNONE && continue
2376: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2377: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2378: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.10 paf 2379: sed 's/^/| /' "$ac_site_file" >&5
1.31 moko 2380: . "$ac_site_file" \
2381: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2382: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383: as_fn_error $? "failed to load site script $ac_site_file
2384: See \`config.log' for more details" "$LINENO" 5; }
1.1 parser 2385: fi
2386: done
2387:
2388: if test -r "$cache_file"; then
1.31 moko 2389: # Some versions of bash will fail to source /dev/null (special files
2390: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2391: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2392: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2393: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.10 paf 2394: case $cache_file in
1.31 moko 2395: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2396: *) . "./$cache_file";;
1.10 paf 2397: esac
2398: fi
1.1 parser 2399: else
1.31 moko 2400: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2401: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.10 paf 2402: >$cache_file
2403: fi
2404:
2405: # Check that the precious variables saved in the cache have kept the same
2406: # value.
2407: ac_cache_corrupted=false
1.31 moko 2408: for ac_var in $ac_precious_vars; do
1.10 paf 2409: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2410: eval ac_new_set=\$ac_env_${ac_var}_set
1.31 moko 2411: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2412: eval ac_new_val=\$ac_env_${ac_var}_value
1.10 paf 2413: case $ac_old_set,$ac_new_set in
2414: set,)
1.31 moko 2415: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2416: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.10 paf 2417: ac_cache_corrupted=: ;;
2418: ,set)
1.31 moko 2419: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2420: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.10 paf 2421: ac_cache_corrupted=: ;;
2422: ,);;
2423: *)
2424: if test "x$ac_old_val" != "x$ac_new_val"; then
1.31 moko 2425: # differences in whitespace do not lead to failure.
2426: ac_old_val_w=`echo x $ac_old_val`
2427: ac_new_val_w=`echo x $ac_new_val`
2428: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2429: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2430: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2431: ac_cache_corrupted=:
2432: else
2433: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2434: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2435: eval $ac_var=\$ac_old_val
2436: fi
2437: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2438: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2439: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2440: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.10 paf 2441: fi;;
2442: esac
2443: # Pass precious variables to config.status.
2444: if test "$ac_new_set" = set; then
2445: case $ac_new_val in
1.31 moko 2446: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.10 paf 2447: *) ac_arg=$ac_var=$ac_new_val ;;
2448: esac
2449: case " $ac_configure_args " in
2450: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.31 moko 2451: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.10 paf 2452: esac
2453: fi
2454: done
2455: if $ac_cache_corrupted; then
1.31 moko 2456: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2457: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2458: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2459: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2460: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2461: fi
2462: ## -------------------- ##
2463: ## Main body of script. ##
2464: ## -------------------- ##
1.1 parser 2465:
2466: ac_ext=c
2467: ac_cpp='$CPP $CPPFLAGS'
1.10 paf 2468: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 2471:
2472:
1.10 paf 2473:
1.31 moko 2474: ac_config_headers="$ac_config_headers config_auto.h"
1.10 paf 2475:
2476:
1.31 moko 2477: am__api_version='1.11'
1.10 paf 2478:
1.1 parser 2479: ac_aux_dir=
1.31 moko 2480: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2481: if test -f "$ac_dir/install-sh"; then
1.1 parser 2482: ac_aux_dir=$ac_dir
2483: ac_install_sh="$ac_aux_dir/install-sh -c"
2484: break
1.31 moko 2485: elif test -f "$ac_dir/install.sh"; then
1.1 parser 2486: ac_aux_dir=$ac_dir
2487: ac_install_sh="$ac_aux_dir/install.sh -c"
2488: break
1.31 moko 2489: elif test -f "$ac_dir/shtool"; then
1.10 paf 2490: ac_aux_dir=$ac_dir
2491: ac_install_sh="$ac_aux_dir/shtool install -c"
2492: break
1.1 parser 2493: fi
2494: done
2495: if test -z "$ac_aux_dir"; then
1.31 moko 2496: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2497: fi
2498:
2499: # These three variables are undocumented and unsupported,
2500: # and are intended to be withdrawn in a future Autoconf release.
2501: # They can cause serious problems if a builder's source tree is in a directory
2502: # whose full name contains unusual characters.
2503: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2504: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2505: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2506:
1.1 parser 2507:
2508: # Find a good install program. We prefer a C program (faster),
2509: # so one script is as good as another. But avoid the broken or
2510: # incompatible versions:
2511: # SysV /etc/install, /usr/sbin/install
2512: # SunOS /usr/etc/install
2513: # IRIX /sbin/install
2514: # AIX /bin/install
1.10 paf 2515: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 2516: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2517: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2518: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.16 paf 2519: # OS/2's system install, which has a completely different semantic
1.1 parser 2520: # ./install, which can be erroneously created by make from ./install.sh.
1.31 moko 2521: # Reject install programs that cannot install multiple files.
2522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2523: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 parser 2524: if test -z "$INSTALL"; then
1.31 moko 2525: if ${ac_cv_path_install+:} false; then :
2526: $as_echo_n "(cached) " >&6
1.1 parser 2527: else
1.10 paf 2528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529: for as_dir in $PATH
2530: do
2531: IFS=$as_save_IFS
2532: test -z "$as_dir" && as_dir=.
1.31 moko 2533: # Account for people who put trailing slashes in PATH elements.
2534: case $as_dir/ in #((
2535: ./ | .// | /[cC]/* | \
1.10 paf 2536: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.31 moko 2537: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.10 paf 2538: /usr/ucb/* ) ;;
2539: *)
2540: # OSF1 and SCO ODT 3.0 have their own names for install.
2541: # Don't use installbsd from OSF since it installs stuff as root
2542: # by default.
2543: for ac_prog in ginstall scoinst install; do
2544: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2545: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.16 paf 2546: if test $ac_prog = install &&
2547: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548: # AIX install. It has an incompatible calling convention.
2549: :
2550: elif test $ac_prog = install &&
2551: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552: # program-specific install script used by HP pwplus--don't use.
2553: :
2554: else
1.31 moko 2555: rm -rf conftest.one conftest.two conftest.dir
2556: echo one > conftest.one
2557: echo two > conftest.two
2558: mkdir conftest.dir
2559: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2560: test -s conftest.one && test -s conftest.two &&
2561: test -s conftest.dir/conftest.one &&
2562: test -s conftest.dir/conftest.two
2563: then
2564: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2565: break 3
2566: fi
1.16 paf 2567: fi
2568: fi
1.1 parser 2569: done
1.10 paf 2570: done
2571: ;;
2572: esac
2573:
1.31 moko 2574: done
2575: IFS=$as_save_IFS
2576:
2577: rm -rf conftest.one conftest.two conftest.dir
1.1 parser 2578:
2579: fi
2580: if test "${ac_cv_path_install+set}" = set; then
1.10 paf 2581: INSTALL=$ac_cv_path_install
1.1 parser 2582: else
1.31 moko 2583: # As a last resort, use the slow shell script. Don't cache a
2584: # value for INSTALL within a source directory, because that will
1.1 parser 2585: # break other packages using the cache if that directory is
1.31 moko 2586: # removed, or if the value is a relative name.
1.10 paf 2587: INSTALL=$ac_install_sh
1.1 parser 2588: fi
2589: fi
1.31 moko 2590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2591: $as_echo "$INSTALL" >&6; }
1.1 parser 2592:
2593: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594: # It thinks the first close brace ends the variable substitution.
2595: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2596:
1.10 paf 2597: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 2598:
2599: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2600:
1.31 moko 2601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2602: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 parser 2603: # Just in case
2604: sleep 1
1.10 paf 2605: echo timestamp > conftest.file
1.31 moko 2606: # Reject unsafe characters in $srcdir or the absolute working directory
2607: # name. Accept space and tab only in the latter.
2608: am_lf='
2609: '
2610: case `pwd` in
2611: *[\\\"\#\$\&\'\`$am_lf]*)
2612: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2613: esac
2614: case $srcdir in
2615: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2616: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2617: esac
2618:
1.1 parser 2619: # Do `set' in a subshell so we don't clobber the current shell's
2620: # arguments. Must try -L first in case configure is actually a
2621: # symlink; some systems play weird games with the mod time of symlinks
2622: # (eg FreeBSD returns the mod time of the symlink's containing
2623: # directory).
2624: if (
1.31 moko 2625: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 parser 2626: if test "$*" = "X"; then
2627: # -L didn't work.
1.31 moko 2628: set X `ls -t "$srcdir/configure" conftest.file`
1.1 parser 2629: fi
1.10 paf 2630: rm -f conftest.file
2631: if test "$*" != "X $srcdir/configure conftest.file" \
2632: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 2633:
2634: # If neither matched, then we have a broken ls. This can happen
2635: # if, for instance, CONFIG_SHELL is bash and it inherits a
2636: # broken ls alias from the environment. This has actually
2637: # happened. Such a system could not be considered "sane".
1.31 moko 2638: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2639: alias in your environment" "$LINENO" 5
1.1 parser 2640: fi
2641:
1.10 paf 2642: test "$2" = conftest.file
1.1 parser 2643: )
2644: then
2645: # Ok.
2646: :
2647: else
1.31 moko 2648: as_fn_error $? "newly created file is older than distributed files!
2649: Check your system clock" "$LINENO" 5
1.1 parser 2650: fi
1.31 moko 2651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652: $as_echo "yes" >&6; }
1.1 parser 2653: test "$program_prefix" != NONE &&
1.31 moko 2654: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 parser 2655: # Use a double $ so make ignores it.
2656: test "$program_suffix" != NONE &&
1.31 moko 2657: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2658: # Double any \ or $.
1.10 paf 2659: # By default was `s,x,x', remove it if useless.
1.31 moko 2660: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2661: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.10 paf 2662:
2663: # expand $ac_aux_dir to an absolute path
2664: am_aux_dir=`cd $ac_aux_dir && pwd`
2665:
1.31 moko 2666: if test x"${MISSING+set}" != xset; then
2667: case $am_aux_dir in
2668: *\ * | *\ *)
2669: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2670: *)
2671: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2672: esac
2673: fi
1.10 paf 2674: # Use eval to expand $SHELL
2675: if eval "$MISSING --run true"; then
2676: am_missing_run="$MISSING --run "
2677: else
2678: am_missing_run=
1.31 moko 2679: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2680: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.10 paf 2681: fi
2682:
1.31 moko 2683: if test x"${install_sh}" != xset; then
2684: case $am_aux_dir in
2685: *\ * | *\ *)
2686: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2687: *)
2688: install_sh="\${SHELL} $am_aux_dir/install-sh"
2689: esac
2690: fi
2691:
2692: # Installed binaries are usually stripped using `strip' when the user
2693: # run `make install-strip'. However `strip' might not be the right
2694: # tool to use in cross-compilation environments, therefore Automake
2695: # will honor the `STRIP' environment variable to overrule this program.
2696: if test "$cross_compiling" != no; then
2697: if test -n "$ac_tool_prefix"; then
2698: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2699: set dummy ${ac_tool_prefix}strip; ac_word=$2
2700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701: $as_echo_n "checking for $ac_word... " >&6; }
2702: if ${ac_cv_prog_STRIP+:} false; then :
2703: $as_echo_n "(cached) " >&6
2704: else
2705: if test -n "$STRIP"; then
2706: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2707: else
2708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709: for as_dir in $PATH
2710: do
2711: IFS=$as_save_IFS
2712: test -z "$as_dir" && as_dir=.
2713: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2714: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.31 moko 2715: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2716: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717: break 2
2718: fi
2719: done
2720: done
2721: IFS=$as_save_IFS
2722:
2723: fi
2724: fi
2725: STRIP=$ac_cv_prog_STRIP
2726: if test -n "$STRIP"; then
2727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2728: $as_echo "$STRIP" >&6; }
2729: else
2730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731: $as_echo "no" >&6; }
2732: fi
2733:
2734:
2735: fi
2736: if test -z "$ac_cv_prog_STRIP"; then
2737: ac_ct_STRIP=$STRIP
2738: # Extract the first word of "strip", so it can be a program name with args.
2739: set dummy strip; ac_word=$2
2740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741: $as_echo_n "checking for $ac_word... " >&6; }
2742: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2743: $as_echo_n "(cached) " >&6
2744: else
2745: if test -n "$ac_ct_STRIP"; then
2746: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2747: else
2748: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749: for as_dir in $PATH
2750: do
2751: IFS=$as_save_IFS
2752: test -z "$as_dir" && as_dir=.
2753: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2754: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.31 moko 2755: ac_cv_prog_ac_ct_STRIP="strip"
2756: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757: break 2
2758: fi
2759: done
2760: done
2761: IFS=$as_save_IFS
2762:
2763: fi
2764: fi
2765: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2766: if test -n "$ac_ct_STRIP"; then
2767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2768: $as_echo "$ac_ct_STRIP" >&6; }
2769: else
2770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771: $as_echo "no" >&6; }
2772: fi
2773:
2774: if test "x$ac_ct_STRIP" = x; then
2775: STRIP=":"
2776: else
2777: case $cross_compiling:$ac_tool_warned in
2778: yes:)
2779: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781: ac_tool_warned=yes ;;
2782: esac
2783: STRIP=$ac_ct_STRIP
2784: fi
2785: else
2786: STRIP="$ac_cv_prog_STRIP"
2787: fi
2788:
2789: fi
2790: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2791:
2792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2793: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2794: if test -z "$MKDIR_P"; then
2795: if ${ac_cv_path_mkdir+:} false; then :
2796: $as_echo_n "(cached) " >&6
2797: else
2798: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2800: do
2801: IFS=$as_save_IFS
2802: test -z "$as_dir" && as_dir=.
2803: for ac_prog in mkdir gmkdir; do
2804: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2805: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.31 moko 2806: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2807: 'mkdir (GNU coreutils) '* | \
2808: 'mkdir (coreutils) '* | \
2809: 'mkdir (fileutils) '4.1*)
2810: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2811: break 3;;
2812: esac
2813: done
2814: done
1.16 paf 2815: done
1.31 moko 2816: IFS=$as_save_IFS
2817:
2818: fi
2819:
2820: test -d ./--version && rmdir ./--version
2821: if test "${ac_cv_path_mkdir+set}" = set; then
2822: MKDIR_P="$ac_cv_path_mkdir -p"
1.16 paf 2823: else
1.31 moko 2824: # As a last resort, use the slow shell script. Don't cache a
2825: # value for MKDIR_P within a source directory, because that will
2826: # break other packages using the cache if that directory is
2827: # removed, or if the value is a relative name.
2828: MKDIR_P="$ac_install_sh -d"
1.16 paf 2829: fi
2830: fi
1.31 moko 2831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2832: $as_echo "$MKDIR_P" >&6; }
2833:
2834: mkdir_p="$MKDIR_P"
2835: case $mkdir_p in
2836: [\\/$]* | ?:[\\/]*) ;;
2837: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2838: esac
1.16 paf 2839:
1.10 paf 2840: for ac_prog in gawk mawk nawk awk
2841: do
2842: # Extract the first word of "$ac_prog", so it can be a program name with args.
2843: set dummy $ac_prog; ac_word=$2
1.31 moko 2844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845: $as_echo_n "checking for $ac_word... " >&6; }
2846: if ${ac_cv_prog_AWK+:} false; then :
2847: $as_echo_n "(cached) " >&6
1.10 paf 2848: else
2849: if test -n "$AWK"; then
2850: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2851: else
2852: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853: for as_dir in $PATH
2854: do
2855: IFS=$as_save_IFS
2856: test -z "$as_dir" && as_dir=.
1.31 moko 2857: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2858: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 2859: ac_cv_prog_AWK="$ac_prog"
1.31 moko 2860: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 2861: break 2
2862: fi
2863: done
1.31 moko 2864: done
2865: IFS=$as_save_IFS
1.10 paf 2866:
2867: fi
2868: fi
2869: AWK=$ac_cv_prog_AWK
2870: if test -n "$AWK"; then
1.31 moko 2871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2872: $as_echo "$AWK" >&6; }
1.10 paf 2873: else
1.31 moko 2874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875: $as_echo "no" >&6; }
1.10 paf 2876: fi
1.1 parser 2877:
1.31 moko 2878:
1.10 paf 2879: test -n "$AWK" && break
2880: done
1.1 parser 2881:
1.31 moko 2882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2883: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2884: set x ${MAKE-make}
2885: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2886: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2887: $as_echo_n "(cached) " >&6
1.1 parser 2888: else
1.10 paf 2889: cat >conftest.make <<\_ACEOF
1.31 moko 2890: SHELL = /bin/sh
1.1 parser 2891: all:
1.31 moko 2892: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.10 paf 2893: _ACEOF
1.31 moko 2894: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2895: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2896: *@@@%%%=?*=@@@%%%*)
2897: eval ac_cv_prog_make_${ac_make}_set=yes;;
2898: *)
2899: eval ac_cv_prog_make_${ac_make}_set=no;;
2900: esac
1.10 paf 2901: rm -f conftest.make
1.1 parser 2902: fi
1.31 moko 2903: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2905: $as_echo "yes" >&6; }
1.1 parser 2906: SET_MAKE=
2907: else
1.31 moko 2908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909: $as_echo "no" >&6; }
1.1 parser 2910: SET_MAKE="MAKE=${MAKE-make}"
2911: fi
2912:
1.16 paf 2913: rm -rf .tst 2>/dev/null
2914: mkdir .tst 2>/dev/null
2915: if test -d .tst; then
2916: am__leading_dot=.
2917: else
2918: am__leading_dot=_
2919: fi
2920: rmdir .tst 2>/dev/null
2921:
1.31 moko 2922: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2923: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2924: # is not polluted with repeated "-I."
2925: am__isrc=' -I$(srcdir)'
2926: # test to see if srcdir already configured
2927: if test -f $srcdir/config.status; then
2928: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2929: fi
1.10 paf 2930: fi
2931:
2932: # test whether we have cygpath
2933: if test -z "$CYGPATH_W"; then
2934: if (cygpath --version) >/dev/null 2>/dev/null; then
2935: CYGPATH_W='cygpath -w'
2936: else
2937: CYGPATH_W=echo
2938: fi
2939: fi
2940:
2941:
2942: # Define the identity of the package.
1.35 moko 2943: PACKAGE='parser3pgsql'
1.43 ! moko 2944: VERSION='10.7'
1.23 moko 2945:
2946:
2947: cat >>confdefs.h <<_ACEOF
2948: #define PACKAGE "$PACKAGE"
2949: _ACEOF
2950:
1.1 parser 2951:
1.23 moko 2952: cat >>confdefs.h <<_ACEOF
2953: #define VERSION "$VERSION"
2954: _ACEOF
1.1 parser 2955:
1.10 paf 2956: # Some tools Automake needs.
2957:
2958: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2959:
2960:
2961: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2962:
2963:
2964: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2965:
2966:
2967: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2968:
2969:
2970: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 2971:
1.10 paf 2972: # We need awk for the "check" target. The system "awk" is bad on
2973: # some platforms.
1.16 paf 2974: # Always define AMTAR for backward compatibility.
2975:
2976: AMTAR=${AMTAR-"${am_missing_run}tar"}
2977:
2978: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2979:
2980:
1.1 parser 2981:
2982:
2983:
2984:
1.23 moko 2985:
1.10 paf 2986:
1.1 parser 2987:
1.31 moko 2988: # Check whether --with-pgsql-inc was given.
2989: if test "${with_pgsql_inc+set}" = set; then :
2990: withval=$with_pgsql_inc;
1.23 moko 2991: if test -r "$withval/libpq-fe.h"; then
2992: PGSQL_INC=$withval
2993: fi
2994:
2995:
2996: if test -z "$PGSQL_INC"; then
1.31 moko 2997: as_fn_error $? "$PGSQL_INC does not seem to be valid PgSql includes directory" "$LINENO" 5
1.23 moko 2998: fi
2999:
1.1 parser 3000: else
1.31 moko 3001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PGSQL_INC directory" >&5
3002: $as_echo_n "checking for PGSQL_INC directory... " >&6; }
1.23 moko 3003: for d in \
1.34 moko 3004: /usr/include \
3005: /usr/include/postgresql \
3006: /usr/local/include \
1.23 moko 3007: /usr/local/include/postgresql \
3008: /usr/local/pgsql/include ; do
1.1 parser 3009:
1.23 moko 3010: if test -r "$d/libpq-fe.h"; then
3011: PGSQL_INC=$d
3012: fi
1.1 parser 3013:
1.23 moko 3014: done
1.1 parser 3015:
1.23 moko 3016: if test -z "$PGSQL_INC"; then
1.31 moko 3017: as_fn_error $? "use --with-pgsql-inc=DIR to specify PgSql includes directory" "$LINENO" 5
1.23 moko 3018: fi
3019:
1.31 moko 3020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_INC" >&5
3021: $as_echo "$PGSQL_INC" >&6; }
1.23 moko 3022:
1.31 moko 3023: fi
1.10 paf 3024:
1.1 parser 3025:
3026:
3027:
3028:
1.31 moko 3029: ac_ext=cpp
1.10 paf 3030: ac_cpp='$CXXCPP $CPPFLAGS'
3031: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.31 moko 3034: if test -z "$CXX"; then
3035: if test -n "$CCC"; then
3036: CXX=$CCC
3037: else
3038: if test -n "$ac_tool_prefix"; then
3039: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.10 paf 3040: do
3041: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 moko 3043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044: $as_echo_n "checking for $ac_word... " >&6; }
3045: if ${ac_cv_prog_CXX+:} false; then :
3046: $as_echo_n "(cached) " >&6
1.1 parser 3047: else
3048: if test -n "$CXX"; then
3049: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3050: else
1.10 paf 3051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052: for as_dir in $PATH
3053: do
3054: IFS=$as_save_IFS
3055: test -z "$as_dir" && as_dir=.
1.31 moko 3056: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3057: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3058: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.31 moko 3059: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3060: break 2
3061: fi
3062: done
1.31 moko 3063: done
3064: IFS=$as_save_IFS
1.10 paf 3065:
1.1 parser 3066: fi
3067: fi
1.10 paf 3068: CXX=$ac_cv_prog_CXX
1.1 parser 3069: if test -n "$CXX"; then
1.31 moko 3070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3071: $as_echo "$CXX" >&6; }
1.1 parser 3072: else
1.31 moko 3073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074: $as_echo "no" >&6; }
1.1 parser 3075: fi
3076:
1.31 moko 3077:
1.10 paf 3078: test -n "$CXX" && break
3079: done
3080: fi
3081: if test -z "$CXX"; then
3082: ac_ct_CXX=$CXX
1.31 moko 3083: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.10 paf 3084: do
3085: # Extract the first word of "$ac_prog", so it can be a program name with args.
3086: set dummy $ac_prog; ac_word=$2
1.31 moko 3087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088: $as_echo_n "checking for $ac_word... " >&6; }
3089: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3090: $as_echo_n "(cached) " >&6
1.10 paf 3091: else
3092: if test -n "$ac_ct_CXX"; then
3093: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3094: else
3095: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096: for as_dir in $PATH
3097: do
3098: IFS=$as_save_IFS
3099: test -z "$as_dir" && as_dir=.
1.31 moko 3100: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3101: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3102: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.31 moko 3103: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3104: break 2
3105: fi
3106: done
1.31 moko 3107: done
3108: IFS=$as_save_IFS
1.1 parser 3109:
1.10 paf 3110: fi
3111: fi
3112: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3113: if test -n "$ac_ct_CXX"; then
1.31 moko 3114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3115: $as_echo "$ac_ct_CXX" >&6; }
1.10 paf 3116: else
1.31 moko 3117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118: $as_echo "no" >&6; }
1.10 paf 3119: fi
1.1 parser 3120:
1.31 moko 3121:
1.10 paf 3122: test -n "$ac_ct_CXX" && break
3123: done
1.1 parser 3124:
1.31 moko 3125: if test "x$ac_ct_CXX" = x; then
3126: CXX="g++"
3127: else
3128: case $cross_compiling:$ac_tool_warned in
3129: yes:)
3130: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132: ac_tool_warned=yes ;;
3133: esac
3134: CXX=$ac_ct_CXX
3135: fi
1.10 paf 3136: fi
1.1 parser 3137:
1.31 moko 3138: fi
3139: fi
1.10 paf 3140: # Provide some information about the compiler.
1.31 moko 3141: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3142: set X $ac_compile
3143: ac_compiler=$2
3144: for ac_option in --version -v -V -qversion; do
3145: { { ac_try="$ac_compiler $ac_option >&5"
3146: case "(($ac_try" in
3147: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148: *) ac_try_echo=$ac_try;;
3149: esac
3150: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151: $as_echo "$ac_try_echo"; } >&5
3152: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.10 paf 3153: ac_status=$?
1.31 moko 3154: if test -s conftest.err; then
3155: sed '10a\
3156: ... rest of stderr output deleted ...
3157: 10q' conftest.err >conftest.er1
3158: cat conftest.er1 >&5
3159: fi
3160: rm -f conftest.er1 conftest.err
3161: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162: test $ac_status = 0; }
3163: done
1.10 paf 3164:
1.31 moko 3165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3166: /* end confdefs.h. */
3167:
3168: int
3169: main ()
3170: {
3171:
3172: ;
3173: return 0;
3174: }
3175: _ACEOF
3176: ac_clean_files_save=$ac_clean_files
1.31 moko 3177: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.10 paf 3178: # Try to create an executable without -o first, disregard a.out.
3179: # It will help us diagnose broken compilers, and finding out an intuition
3180: # of exeext.
1.31 moko 3181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3182: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3183: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3184:
3185: # The possible output files:
3186: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3187:
3188: ac_rmfiles=
3189: for ac_file in $ac_files
3190: do
3191: case $ac_file in
3192: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3193: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3194: esac
3195: done
3196: rm -f $ac_rmfiles
3197:
3198: if { { ac_try="$ac_link_default"
3199: case "(($ac_try" in
3200: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201: *) ac_try_echo=$ac_try;;
3202: esac
3203: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204: $as_echo "$ac_try_echo"; } >&5
3205: (eval "$ac_link_default") 2>&5
3206: ac_status=$?
3207: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208: test $ac_status = 0; }; then :
3209: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3210: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3211: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3212: # so that the user can short-circuit this test for compilers unknown to
3213: # Autoconf.
3214: for ac_file in $ac_files ''
1.10 paf 3215: do
3216: test -f "$ac_file" || continue
3217: case $ac_file in
1.31 moko 3218: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.16 paf 3219: ;;
1.10 paf 3220: [ab].out )
1.16 paf 3221: # We found the default executable, but exeext='' is most
3222: # certainly right.
3223: break;;
1.10 paf 3224: *.* )
1.31 moko 3225: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3226: then :; else
3227: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228: fi
3229: # We set ac_cv_exeext here because the later test for it is not
3230: # safe: cross compilers may not add the suffix if given an `-o'
3231: # argument, so we may need to know it at that point already.
3232: # Even if this section looks crufty: it has the advantage of
3233: # actually working.
1.16 paf 3234: break;;
1.10 paf 3235: * )
1.16 paf 3236: break;;
1.10 paf 3237: esac
3238: done
1.31 moko 3239: test "$ac_cv_exeext" = no && ac_cv_exeext=
3240:
1.10 paf 3241: else
1.31 moko 3242: ac_file=''
3243: fi
3244: if test -z "$ac_file"; then :
3245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246: $as_echo "no" >&6; }
3247: $as_echo "$as_me: failed program was:" >&5
1.10 paf 3248: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3249:
1.31 moko 3250: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252: as_fn_error 77 "C++ compiler cannot create executables
3253: See \`config.log' for more details" "$LINENO" 5; }
3254: else
3255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256: $as_echo "yes" >&6; }
3257: fi
3258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3259: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3261: $as_echo "$ac_file" >&6; }
1.10 paf 3262: ac_exeext=$ac_cv_exeext
3263:
1.31 moko 3264: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.10 paf 3265: ac_clean_files=$ac_clean_files_save
1.31 moko 3266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3267: $as_echo_n "checking for suffix of executables... " >&6; }
3268: if { { ac_try="$ac_link"
3269: case "(($ac_try" in
3270: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271: *) ac_try_echo=$ac_try;;
3272: esac
3273: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274: $as_echo "$ac_try_echo"; } >&5
3275: (eval "$ac_link") 2>&5
1.10 paf 3276: ac_status=$?
1.31 moko 3277: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278: test $ac_status = 0; }; then :
1.10 paf 3279: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3280: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3281: # work properly (i.e., refer to `conftest.exe'), while it won't with
3282: # `rm'.
3283: for ac_file in conftest.exe conftest conftest.*; do
3284: test -f "$ac_file" || continue
3285: case $ac_file in
1.31 moko 3286: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.10 paf 3287: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.16 paf 3288: break;;
1.10 paf 3289: * ) break;;
3290: esac
3291: done
1.1 parser 3292: else
1.31 moko 3293: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3296: See \`config.log' for more details" "$LINENO" 5; }
3297: fi
3298: rm -f conftest conftest$ac_cv_exeext
3299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3300: $as_echo "$ac_cv_exeext" >&6; }
1.10 paf 3301:
3302: rm -f conftest.$ac_ext
3303: EXEEXT=$ac_cv_exeext
3304: ac_exeext=$EXEEXT
1.31 moko 3305: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306: /* end confdefs.h. */
3307: #include <stdio.h>
3308: int
3309: main ()
3310: {
3311: FILE *f = fopen ("conftest.out", "w");
3312: return ferror (f) || fclose (f) != 0;
3313:
3314: ;
3315: return 0;
3316: }
3317: _ACEOF
3318: ac_clean_files="$ac_clean_files conftest.out"
3319: # Check that the compiler produces executables we can run. If not, either
3320: # the compiler is broken, or we cross compile.
3321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3322: $as_echo_n "checking whether we are cross compiling... " >&6; }
3323: if test "$cross_compiling" != yes; then
3324: { { ac_try="$ac_link"
3325: case "(($ac_try" in
3326: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327: *) ac_try_echo=$ac_try;;
3328: esac
3329: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330: $as_echo "$ac_try_echo"; } >&5
3331: (eval "$ac_link") 2>&5
3332: ac_status=$?
3333: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334: test $ac_status = 0; }
3335: if { ac_try='./conftest$ac_cv_exeext'
3336: { { case "(($ac_try" in
3337: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338: *) ac_try_echo=$ac_try;;
3339: esac
3340: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341: $as_echo "$ac_try_echo"; } >&5
3342: (eval "$ac_try") 2>&5
3343: ac_status=$?
3344: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345: test $ac_status = 0; }; }; then
3346: cross_compiling=no
3347: else
3348: if test "$cross_compiling" = maybe; then
3349: cross_compiling=yes
3350: else
3351: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353: as_fn_error $? "cannot run C++ compiled programs.
3354: If you meant to cross compile, use \`--host'.
3355: See \`config.log' for more details" "$LINENO" 5; }
3356: fi
3357: fi
3358: fi
3359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3360: $as_echo "$cross_compiling" >&6; }
3361:
3362: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3363: ac_clean_files=$ac_clean_files_save
3364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3365: $as_echo_n "checking for suffix of object files... " >&6; }
3366: if ${ac_cv_objext+:} false; then :
3367: $as_echo_n "(cached) " >&6
1.10 paf 3368: else
1.31 moko 3369: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3370: /* end confdefs.h. */
3371:
3372: int
3373: main ()
3374: {
3375:
3376: ;
3377: return 0;
3378: }
3379: _ACEOF
3380: rm -f conftest.o conftest.obj
1.31 moko 3381: if { { ac_try="$ac_compile"
3382: case "(($ac_try" in
3383: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384: *) ac_try_echo=$ac_try;;
3385: esac
3386: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387: $as_echo "$ac_try_echo"; } >&5
3388: (eval "$ac_compile") 2>&5
3389: ac_status=$?
3390: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391: test $ac_status = 0; }; then :
3392: for ac_file in conftest.o conftest.obj conftest.*; do
3393: test -f "$ac_file" || continue;
1.10 paf 3394: case $ac_file in
1.31 moko 3395: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.10 paf 3396: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3397: break;;
3398: esac
3399: done
1.1 parser 3400: else
1.31 moko 3401: $as_echo "$as_me: failed program was:" >&5
1.10 paf 3402: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3403:
1.31 moko 3404: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406: as_fn_error $? "cannot compute suffix of object files: cannot compile
3407: See \`config.log' for more details" "$LINENO" 5; }
1.10 paf 3408: fi
3409: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3410: fi
1.31 moko 3411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3412: $as_echo "$ac_cv_objext" >&6; }
1.10 paf 3413: OBJEXT=$ac_cv_objext
3414: ac_objext=$OBJEXT
1.31 moko 3415: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3416: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3417: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3418: $as_echo_n "(cached) " >&6
1.10 paf 3419: else
1.31 moko 3420: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3421: /* end confdefs.h. */
3422:
3423: int
3424: main ()
3425: {
3426: #ifndef __GNUC__
3427: choke me
3428: #endif
1.1 parser 3429:
1.10 paf 3430: ;
3431: return 0;
3432: }
3433: _ACEOF
1.31 moko 3434: if ac_fn_cxx_try_compile "$LINENO"; then :
1.10 paf 3435: ac_compiler_gnu=yes
3436: else
1.31 moko 3437: ac_compiler_gnu=no
1.10 paf 3438: fi
1.31 moko 3439: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3440: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3441:
3442: fi
1.31 moko 3443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3444: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3445: if test $ac_compiler_gnu = yes; then
3446: GXX=yes
3447: else
3448: GXX=
3449: fi
1.10 paf 3450: ac_test_CXXFLAGS=${CXXFLAGS+set}
3451: ac_save_CXXFLAGS=$CXXFLAGS
1.31 moko 3452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3453: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3454: if ${ac_cv_prog_cxx_g+:} false; then :
3455: $as_echo_n "(cached) " >&6
3456: else
3457: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3458: ac_cxx_werror_flag=yes
3459: ac_cv_prog_cxx_g=no
3460: CXXFLAGS="-g"
3461: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3462: /* end confdefs.h. */
3463:
3464: int
3465: main ()
3466: {
3467:
3468: ;
3469: return 0;
3470: }
3471: _ACEOF
1.31 moko 3472: if ac_fn_cxx_try_compile "$LINENO"; then :
1.10 paf 3473: ac_cv_prog_cxx_g=yes
1.1 parser 3474: else
1.31 moko 3475: CXXFLAGS=""
3476: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477: /* end confdefs.h. */
1.1 parser 3478:
1.10 paf 3479: int
3480: main ()
3481: {
1.31 moko 3482:
1.10 paf 3483: ;
3484: return 0;
3485: }
3486: _ACEOF
1.31 moko 3487: if ac_fn_cxx_try_compile "$LINENO"; then :
3488:
1.10 paf 3489: else
1.31 moko 3490: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3491: CXXFLAGS="-g"
3492: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3493: /* end confdefs.h. */
1.31 moko 3494:
1.10 paf 3495: int
3496: main ()
3497: {
1.31 moko 3498:
1.10 paf 3499: ;
3500: return 0;
3501: }
3502: _ACEOF
1.31 moko 3503: if ac_fn_cxx_try_compile "$LINENO"; then :
3504: ac_cv_prog_cxx_g=yes
3505: fi
3506: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507: fi
3508: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509: fi
3510: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3512: fi
3513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3514: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3515: if test "$ac_test_CXXFLAGS" = set; then
3516: CXXFLAGS=$ac_save_CXXFLAGS
3517: elif test $ac_cv_prog_cxx_g = yes; then
3518: if test "$GXX" = yes; then
3519: CXXFLAGS="-g -O2"
3520: else
3521: CXXFLAGS="-g"
3522: fi
1.10 paf 3523: else
1.31 moko 3524: if test "$GXX" = yes; then
3525: CXXFLAGS="-O2"
3526: else
3527: CXXFLAGS=
3528: fi
1.10 paf 3529: fi
1.15 paf 3530: ac_ext=c
3531: ac_cpp='$CPP $CPPFLAGS'
3532: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 paf 3535: DEPDIR="${am__leading_dot}deps"
1.10 paf 3536:
1.31 moko 3537: ac_config_commands="$ac_config_commands depfiles"
1.10 paf 3538:
3539:
3540: am_make=${MAKE-make}
3541: cat > confinc << 'END'
1.16 paf 3542: am__doit:
1.31 moko 3543: @echo this is the am__doit target
1.16 paf 3544: .PHONY: am__doit
1.10 paf 3545: END
3546: # If we don't find an include directive, just comment out the code.
1.31 moko 3547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3548: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.10 paf 3549: am__include="#"
3550: am__quote=
3551: _am_result=none
3552: # First try GNU make style include.
3553: echo "include confinc" > confmf
1.31 moko 3554: # Ignore all kinds of additional output from `make'.
3555: case `$am_make -s -f confmf 2> /dev/null` in #(
3556: *the\ am__doit\ target*)
3557: am__include=include
3558: am__quote=
3559: _am_result=GNU
3560: ;;
3561: esac
1.10 paf 3562: # Now try BSD make style include.
3563: if test "$am__include" = "#"; then
3564: echo '.include "confinc"' > confmf
1.31 moko 3565: case `$am_make -s -f confmf 2> /dev/null` in #(
3566: *the\ am__doit\ target*)
3567: am__include=.include
3568: am__quote="\""
3569: _am_result=BSD
3570: ;;
3571: esac
1.10 paf 3572: fi
3573:
3574:
1.31 moko 3575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3576: $as_echo "$_am_result" >&6; }
1.10 paf 3577: rm -f confinc confmf
3578:
1.31 moko 3579: # Check whether --enable-dependency-tracking was given.
3580: if test "${enable_dependency_tracking+set}" = set; then :
3581: enableval=$enable_dependency_tracking;
3582: fi
1.10 paf 3583:
3584: if test "x$enable_dependency_tracking" != xno; then
3585: am_depcomp="$ac_aux_dir/depcomp"
3586: AMDEPBACKSLASH='\'
3587: fi
1.31 moko 3588: if test "x$enable_dependency_tracking" != xno; then
1.10 paf 3589: AMDEP_TRUE=
3590: AMDEP_FALSE='#'
3591: else
3592: AMDEP_TRUE='#'
3593: AMDEP_FALSE=
3594: fi
3595:
3596:
3597:
3598: depcc="$CXX" am_compiler_list=
3599:
1.31 moko 3600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3601: $as_echo_n "checking dependency style of $depcc... " >&6; }
3602: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3603: $as_echo_n "(cached) " >&6
1.10 paf 3604: else
3605: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3606: # We make a subdir and do the tests there. Otherwise we can end up
3607: # making bogus files that we don't know about and never remove. For
3608: # instance it was reported that on HP-UX the gcc test will end up
3609: # making a dummy file named `D' -- because `-MD' means `put the output
3610: # in D'.
3611: mkdir conftest.dir
3612: # Copy depcomp to subdir because otherwise we won't find it if we're
3613: # using a relative directory.
3614: cp "$am_depcomp" conftest.dir
3615: cd conftest.dir
1.16 paf 3616: # We will build objects and dependencies in a subdirectory because
3617: # it helps to detect inapplicable dependency modes. For instance
3618: # both Tru64's cc and ICC support -MD to output dependencies as a
3619: # side effect of compilation, but ICC will put the dependencies in
3620: # the current directory while Tru64 will put them in the object
3621: # directory.
3622: mkdir sub
1.10 paf 3623:
3624: am_cv_CXX_dependencies_compiler_type=none
3625: if test "$am_compiler_list" = ""; then
3626: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3627: fi
1.31 moko 3628: am__universal=false
3629: case " $depcc " in #(
3630: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3631: esac
3632:
1.10 paf 3633: for depmode in $am_compiler_list; do
1.16 paf 3634: # Setup a source with many dependencies, because some compilers
3635: # like to wrap large dependency lists on column 80 (with \), and
3636: # we should not choose a depcomp mode which is confused by this.
3637: #
1.10 paf 3638: # We need to recreate these files for each test, as the compiler may
3639: # overwrite some of them when testing with obscure command lines.
3640: # This happens at least with the AIX C compiler.
1.16 paf 3641: : > sub/conftest.c
3642: for i in 1 2 3 4 5 6; do
3643: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3645: # Solaris 8's {/usr,}/bin/sh.
3646: touch sub/conftst$i.h
3647: done
3648: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 3649:
1.31 moko 3650: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3651: # mode. It turns out that the SunPro C++ compiler does not properly
3652: # handle `-M -o', and we need to detect this. Also, some Intel
3653: # versions had trouble with output in subdirs
3654: am__obj=sub/conftest.${OBJEXT-o}
3655: am__minus_obj="-o $am__obj"
1.10 paf 3656: case $depmode in
1.31 moko 3657: gcc)
3658: # This depmode causes a compiler race in universal mode.
3659: test "$am__universal" = false || continue
3660: ;;
1.10 paf 3661: nosideeffect)
3662: # after this tag, mechanisms are not by side-effect, so they'll
3663: # only be used when explicitly requested
3664: if test "x$enable_dependency_tracking" = xyes; then
3665: continue
3666: else
3667: break
3668: fi
3669: ;;
1.31 moko 3670: msvisualcpp | msvcmsys)
3671: # This compiler won't grok `-c -o', but also, the minuso test has
3672: # not run yet. These depmodes are late enough in the game, and
3673: # so weak that their functioning should not be impacted.
3674: am__obj=conftest.${OBJEXT-o}
3675: am__minus_obj=
3676: ;;
1.10 paf 3677: none) break ;;
3678: esac
3679: if depmode=$depmode \
1.31 moko 3680: source=sub/conftest.c object=$am__obj \
1.16 paf 3681: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.31 moko 3682: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.16 paf 3683: >/dev/null 2>conftest.err &&
1.31 moko 3684: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.16 paf 3685: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.31 moko 3686: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 3687: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 3688: # icc doesn't choke on unknown options, it will just issue warnings
3689: # or remarks (even with -Werror). So we grep stderr for any message
3690: # that says an option was ignored or not supported.
3691: # When given -MP, icc 7.0 and 7.1 complain thusly:
3692: # icc: Command line warning: ignoring option '-M'; no argument required
3693: # The diagnosis changed in icc 8.0:
3694: # icc: Command line remark: option '-MP' not supported
3695: if (grep 'ignoring option' conftest.err ||
3696: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3697: am_cv_CXX_dependencies_compiler_type=$depmode
3698: break
3699: fi
1.10 paf 3700: fi
3701: done
3702:
3703: cd ..
3704: rm -rf conftest.dir
3705: else
3706: am_cv_CXX_dependencies_compiler_type=none
3707: fi
3708:
3709: fi
1.31 moko 3710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3711: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.10 paf 3712: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3713:
1.31 moko 3714: if
1.10 paf 3715: test "x$enable_dependency_tracking" != xno \
3716: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3717: am__fastdepCXX_TRUE=
3718: am__fastdepCXX_FALSE='#'
3719: else
3720: am__fastdepCXX_TRUE='#'
3721: am__fastdepCXX_FALSE=
3722: fi
3723:
1.1 parser 3724:
1.10 paf 3725: ac_ext=c
3726: ac_cpp='$CPP $CPPFLAGS'
3727: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730: if test -n "$ac_tool_prefix"; then
3731: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3732: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.31 moko 3733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734: $as_echo_n "checking for $ac_word... " >&6; }
3735: if ${ac_cv_prog_CC+:} false; then :
3736: $as_echo_n "(cached) " >&6
1.10 paf 3737: else
3738: if test -n "$CC"; then
3739: ac_cv_prog_CC="$CC" # Let the user override the test.
3740: else
3741: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742: for as_dir in $PATH
3743: do
3744: IFS=$as_save_IFS
3745: test -z "$as_dir" && as_dir=.
1.31 moko 3746: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3747: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3748: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.31 moko 3749: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3750: break 2
3751: fi
3752: done
1.31 moko 3753: done
3754: IFS=$as_save_IFS
1.1 parser 3755:
1.10 paf 3756: fi
3757: fi
3758: CC=$ac_cv_prog_CC
3759: if test -n "$CC"; then
1.31 moko 3760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761: $as_echo "$CC" >&6; }
1.10 paf 3762: else
1.31 moko 3763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764: $as_echo "no" >&6; }
1.10 paf 3765: fi
1.1 parser 3766:
1.31 moko 3767:
1.10 paf 3768: fi
3769: if test -z "$ac_cv_prog_CC"; then
3770: ac_ct_CC=$CC
3771: # Extract the first word of "gcc", so it can be a program name with args.
3772: set dummy gcc; ac_word=$2
1.31 moko 3773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774: $as_echo_n "checking for $ac_word... " >&6; }
3775: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3776: $as_echo_n "(cached) " >&6
1.1 parser 3777: else
1.10 paf 3778: if test -n "$ac_ct_CC"; then
3779: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 3780: else
1.10 paf 3781: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782: for as_dir in $PATH
3783: do
3784: IFS=$as_save_IFS
3785: test -z "$as_dir" && as_dir=.
1.31 moko 3786: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3787: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3788: ac_cv_prog_ac_ct_CC="gcc"
1.31 moko 3789: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3790: break 2
3791: fi
3792: done
1.31 moko 3793: done
3794: IFS=$as_save_IFS
1.10 paf 3795:
3796: fi
1.1 parser 3797: fi
1.10 paf 3798: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799: if test -n "$ac_ct_CC"; then
1.31 moko 3800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801: $as_echo "$ac_ct_CC" >&6; }
1.10 paf 3802: else
1.31 moko 3803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804: $as_echo "no" >&6; }
1.1 parser 3805: fi
1.10 paf 3806:
1.31 moko 3807: if test "x$ac_ct_CC" = x; then
3808: CC=""
3809: else
3810: case $cross_compiling:$ac_tool_warned in
3811: yes:)
3812: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3813: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3814: ac_tool_warned=yes ;;
3815: esac
3816: CC=$ac_ct_CC
3817: fi
1.1 parser 3818: else
1.10 paf 3819: CC="$ac_cv_prog_CC"
1.1 parser 3820: fi
3821:
1.10 paf 3822: if test -z "$CC"; then
1.31 moko 3823: if test -n "$ac_tool_prefix"; then
3824: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.10 paf 3825: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.31 moko 3826: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827: $as_echo_n "checking for $ac_word... " >&6; }
3828: if ${ac_cv_prog_CC+:} false; then :
3829: $as_echo_n "(cached) " >&6
1.1 parser 3830: else
3831: if test -n "$CC"; then
3832: ac_cv_prog_CC="$CC" # Let the user override the test.
3833: else
1.10 paf 3834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835: for as_dir in $PATH
3836: do
3837: IFS=$as_save_IFS
3838: test -z "$as_dir" && as_dir=.
1.31 moko 3839: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3840: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3841: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.31 moko 3842: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3843: break 2
3844: fi
3845: done
1.31 moko 3846: done
3847: IFS=$as_save_IFS
1.10 paf 3848:
1.1 parser 3849: fi
3850: fi
1.10 paf 3851: CC=$ac_cv_prog_CC
1.1 parser 3852: if test -n "$CC"; then
1.31 moko 3853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854: $as_echo "$CC" >&6; }
1.10 paf 3855: else
1.31 moko 3856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857: $as_echo "no" >&6; }
1.10 paf 3858: fi
3859:
1.31 moko 3860:
1.10 paf 3861: fi
3862: fi
1.1 parser 3863: if test -z "$CC"; then
3864: # Extract the first word of "cc", so it can be a program name with args.
3865: set dummy cc; ac_word=$2
1.31 moko 3866: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867: $as_echo_n "checking for $ac_word... " >&6; }
3868: if ${ac_cv_prog_CC+:} false; then :
3869: $as_echo_n "(cached) " >&6
1.1 parser 3870: else
3871: if test -n "$CC"; then
3872: ac_cv_prog_CC="$CC" # Let the user override the test.
3873: else
3874: ac_prog_rejected=no
1.10 paf 3875: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876: for as_dir in $PATH
3877: do
3878: IFS=$as_save_IFS
3879: test -z "$as_dir" && as_dir=.
1.31 moko 3880: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3881: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3882: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3883: ac_prog_rejected=yes
3884: continue
3885: fi
3886: ac_cv_prog_CC="cc"
1.31 moko 3887: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3888: break 2
3889: fi
3890: done
1.31 moko 3891: done
3892: IFS=$as_save_IFS
1.10 paf 3893:
1.1 parser 3894: if test $ac_prog_rejected = yes; then
3895: # We found a bogon in the path, so make sure we never use it.
3896: set dummy $ac_cv_prog_CC
3897: shift
1.10 paf 3898: if test $# != 0; then
1.1 parser 3899: # We chose a different compiler from the bogus one.
3900: # However, it has the same basename, so the bogon will be chosen
3901: # first if we set CC to just the basename; use the full file name.
3902: shift
1.10 paf 3903: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3904: fi
3905: fi
3906: fi
3907: fi
1.10 paf 3908: CC=$ac_cv_prog_CC
1.1 parser 3909: if test -n "$CC"; then
1.31 moko 3910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911: $as_echo "$CC" >&6; }
1.1 parser 3912: else
1.31 moko 3913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914: $as_echo "no" >&6; }
1.1 parser 3915: fi
3916:
1.31 moko 3917:
1.10 paf 3918: fi
3919: if test -z "$CC"; then
3920: if test -n "$ac_tool_prefix"; then
1.31 moko 3921: for ac_prog in cl.exe
1.10 paf 3922: do
3923: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3924: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 moko 3925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926: $as_echo_n "checking for $ac_word... " >&6; }
3927: if ${ac_cv_prog_CC+:} false; then :
3928: $as_echo_n "(cached) " >&6
1.1 parser 3929: else
3930: if test -n "$CC"; then
3931: ac_cv_prog_CC="$CC" # Let the user override the test.
3932: else
1.10 paf 3933: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934: for as_dir in $PATH
3935: do
3936: IFS=$as_save_IFS
3937: test -z "$as_dir" && as_dir=.
1.31 moko 3938: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3939: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3940: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.31 moko 3941: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3942: break 2
3943: fi
3944: done
1.31 moko 3945: done
3946: IFS=$as_save_IFS
1.10 paf 3947:
1.1 parser 3948: fi
3949: fi
1.10 paf 3950: CC=$ac_cv_prog_CC
1.1 parser 3951: if test -n "$CC"; then
1.31 moko 3952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953: $as_echo "$CC" >&6; }
1.1 parser 3954: else
1.31 moko 3955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956: $as_echo "no" >&6; }
1.10 paf 3957: fi
3958:
1.31 moko 3959:
1.10 paf 3960: test -n "$CC" && break
3961: done
1.1 parser 3962: fi
1.10 paf 3963: if test -z "$CC"; then
3964: ac_ct_CC=$CC
1.31 moko 3965: for ac_prog in cl.exe
1.10 paf 3966: do
3967: # Extract the first word of "$ac_prog", so it can be a program name with args.
3968: set dummy $ac_prog; ac_word=$2
1.31 moko 3969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970: $as_echo_n "checking for $ac_word... " >&6; }
3971: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3972: $as_echo_n "(cached) " >&6
1.10 paf 3973: else
3974: if test -n "$ac_ct_CC"; then
3975: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3976: else
3977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978: for as_dir in $PATH
3979: do
3980: IFS=$as_save_IFS
3981: test -z "$as_dir" && as_dir=.
1.31 moko 3982: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3983: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3984: ac_cv_prog_ac_ct_CC="$ac_prog"
1.31 moko 3985: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3986: break 2
1.1 parser 3987: fi
1.10 paf 3988: done
1.31 moko 3989: done
3990: IFS=$as_save_IFS
1.10 paf 3991:
3992: fi
3993: fi
3994: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3995: if test -n "$ac_ct_CC"; then
1.31 moko 3996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3997: $as_echo "$ac_ct_CC" >&6; }
1.10 paf 3998: else
1.31 moko 3999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000: $as_echo "no" >&6; }
1.1 parser 4001: fi
4002:
1.31 moko 4003:
1.10 paf 4004: test -n "$ac_ct_CC" && break
4005: done
1.1 parser 4006:
1.31 moko 4007: if test "x$ac_ct_CC" = x; then
4008: CC=""
4009: else
4010: case $cross_compiling:$ac_tool_warned in
4011: yes:)
4012: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4013: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014: ac_tool_warned=yes ;;
4015: esac
4016: CC=$ac_ct_CC
4017: fi
1.10 paf 4018: fi
1.1 parser 4019:
1.10 paf 4020: fi
1.1 parser 4021:
4022:
1.31 moko 4023: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025: as_fn_error $? "no acceptable C compiler found in \$PATH
4026: See \`config.log' for more details" "$LINENO" 5; }
1.10 paf 4027:
4028: # Provide some information about the compiler.
1.31 moko 4029: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4030: set X $ac_compile
4031: ac_compiler=$2
4032: for ac_option in --version -v -V -qversion; do
4033: { { ac_try="$ac_compiler $ac_option >&5"
4034: case "(($ac_try" in
4035: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036: *) ac_try_echo=$ac_try;;
4037: esac
4038: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039: $as_echo "$ac_try_echo"; } >&5
4040: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.10 paf 4041: ac_status=$?
1.31 moko 4042: if test -s conftest.err; then
4043: sed '10a\
4044: ... rest of stderr output deleted ...
4045: 10q' conftest.err >conftest.er1
4046: cat conftest.er1 >&5
4047: fi
4048: rm -f conftest.er1 conftest.err
4049: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050: test $ac_status = 0; }
4051: done
4052:
4053: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4054: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4055: if ${ac_cv_c_compiler_gnu+:} false; then :
4056: $as_echo_n "(cached) " >&6
1.10 paf 4057: else
1.31 moko 4058: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 4059: /* end confdefs.h. */
4060:
4061: int
4062: main ()
4063: {
4064: #ifndef __GNUC__
4065: choke me
1.1 parser 4066: #endif
4067:
1.10 paf 4068: ;
4069: return 0;
4070: }
4071: _ACEOF
1.31 moko 4072: if ac_fn_c_try_compile "$LINENO"; then :
1.10 paf 4073: ac_compiler_gnu=yes
4074: else
1.31 moko 4075: ac_compiler_gnu=no
1.10 paf 4076: fi
1.31 moko 4077: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 4078: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4079:
4080: fi
1.31 moko 4081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4082: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4083: if test $ac_compiler_gnu = yes; then
4084: GCC=yes
4085: else
4086: GCC=
4087: fi
1.10 paf 4088: ac_test_CFLAGS=${CFLAGS+set}
4089: ac_save_CFLAGS=$CFLAGS
1.31 moko 4090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4092: if ${ac_cv_prog_cc_g+:} false; then :
4093: $as_echo_n "(cached) " >&6
4094: else
4095: ac_save_c_werror_flag=$ac_c_werror_flag
4096: ac_c_werror_flag=yes
4097: ac_cv_prog_cc_g=no
4098: CFLAGS="-g"
4099: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100: /* end confdefs.h. */
4101:
4102: int
4103: main ()
4104: {
4105:
4106: ;
4107: return 0;
4108: }
4109: _ACEOF
4110: if ac_fn_c_try_compile "$LINENO"; then :
4111: ac_cv_prog_cc_g=yes
1.10 paf 4112: else
1.31 moko 4113: CFLAGS=""
4114: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115: /* end confdefs.h. */
4116:
4117: int
4118: main ()
4119: {
4120:
4121: ;
4122: return 0;
4123: }
1.10 paf 4124: _ACEOF
1.31 moko 4125: if ac_fn_c_try_compile "$LINENO"; then :
4126:
4127: else
4128: ac_c_werror_flag=$ac_save_c_werror_flag
4129: CFLAGS="-g"
4130: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 4131: /* end confdefs.h. */
4132:
4133: int
4134: main ()
4135: {
4136:
4137: ;
4138: return 0;
4139: }
4140: _ACEOF
1.31 moko 4141: if ac_fn_c_try_compile "$LINENO"; then :
1.10 paf 4142: ac_cv_prog_cc_g=yes
1.1 parser 4143: fi
1.31 moko 4144: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145: fi
4146: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147: fi
4148: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 parser 4150: fi
1.31 moko 4151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4152: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 parser 4153: if test "$ac_test_CFLAGS" = set; then
1.10 paf 4154: CFLAGS=$ac_save_CFLAGS
1.1 parser 4155: elif test $ac_cv_prog_cc_g = yes; then
4156: if test "$GCC" = yes; then
4157: CFLAGS="-g -O2"
4158: else
4159: CFLAGS="-g"
4160: fi
4161: else
4162: if test "$GCC" = yes; then
4163: CFLAGS="-O2"
4164: else
4165: CFLAGS=
4166: fi
4167: fi
1.31 moko 4168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4169: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4170: if ${ac_cv_prog_cc_c89+:} false; then :
4171: $as_echo_n "(cached) " >&6
1.10 paf 4172: else
1.31 moko 4173: ac_cv_prog_cc_c89=no
1.10 paf 4174: ac_save_CC=$CC
1.31 moko 4175: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 4176: /* end confdefs.h. */
4177: #include <stdarg.h>
4178: #include <stdio.h>
1.34 moko 4179: struct stat;
1.10 paf 4180: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4181: struct buf { int x; };
4182: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4183: static char *e (p, i)
4184: char **p;
4185: int i;
4186: {
4187: return p[i];
4188: }
4189: static char *f (char * (*g) (char **, int), char **p, ...)
4190: {
4191: char *s;
4192: va_list v;
4193: va_start (v,p);
4194: s = g (p, va_arg (v,int));
4195: va_end (v);
4196: return s;
4197: }
1.16 paf 4198:
4199: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4200: function prototypes and stuff, but not '\xHH' hex character constants.
4201: These don't provoke an error unfortunately, instead are silently treated
1.31 moko 4202: as 'x'. The following induces an error, until -std is added to get
1.16 paf 4203: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4204: array size at least. It's necessary to write '\x00'==0 to get something
1.31 moko 4205: that's true only with -std. */
1.16 paf 4206: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4207:
1.31 moko 4208: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4209: inside strings and character constants. */
4210: #define FOO(x) 'x'
4211: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4212:
1.10 paf 4213: int test (int i, double x);
4214: struct s1 {int (*f) (int a);};
4215: struct s2 {int (*f) (double a);};
4216: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4217: int argc;
4218: char **argv;
4219: int
4220: main ()
4221: {
4222: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4223: ;
4224: return 0;
4225: }
4226: _ACEOF
1.31 moko 4227: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4228: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.10 paf 4229: do
4230: CC="$ac_save_CC $ac_arg"
1.31 moko 4231: if ac_fn_c_try_compile "$LINENO"; then :
4232: ac_cv_prog_cc_c89=$ac_arg
1.10 paf 4233: fi
1.31 moko 4234: rm -f core conftest.err conftest.$ac_objext
4235: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.10 paf 4236: done
1.31 moko 4237: rm -f conftest.$ac_ext
1.10 paf 4238: CC=$ac_save_CC
4239:
4240: fi
1.31 moko 4241: # AC_CACHE_VAL
4242: case "x$ac_cv_prog_cc_c89" in
4243: x)
4244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4245: $as_echo "none needed" >&6; } ;;
4246: xno)
4247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4248: $as_echo "unsupported" >&6; } ;;
1.10 paf 4249: *)
1.31 moko 4250: CC="$CC $ac_cv_prog_cc_c89"
4251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4252: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.10 paf 4253: esac
1.31 moko 4254: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.10 paf 4255:
4256: fi
4257:
1.15 paf 4258: ac_ext=c
4259: ac_cpp='$CPP $CPPFLAGS'
4260: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 4263:
4264: depcc="$CC" am_compiler_list=
4265:
1.31 moko 4266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4267: $as_echo_n "checking dependency style of $depcc... " >&6; }
4268: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4269: $as_echo_n "(cached) " >&6
1.10 paf 4270: else
4271: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4272: # We make a subdir and do the tests there. Otherwise we can end up
4273: # making bogus files that we don't know about and never remove. For
4274: # instance it was reported that on HP-UX the gcc test will end up
4275: # making a dummy file named `D' -- because `-MD' means `put the output
4276: # in D'.
4277: mkdir conftest.dir
4278: # Copy depcomp to subdir because otherwise we won't find it if we're
4279: # using a relative directory.
4280: cp "$am_depcomp" conftest.dir
4281: cd conftest.dir
1.16 paf 4282: # We will build objects and dependencies in a subdirectory because
4283: # it helps to detect inapplicable dependency modes. For instance
4284: # both Tru64's cc and ICC support -MD to output dependencies as a
4285: # side effect of compilation, but ICC will put the dependencies in
4286: # the current directory while Tru64 will put them in the object
4287: # directory.
4288: mkdir sub
1.10 paf 4289:
4290: am_cv_CC_dependencies_compiler_type=none
4291: if test "$am_compiler_list" = ""; then
4292: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4293: fi
1.31 moko 4294: am__universal=false
4295: case " $depcc " in #(
4296: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4297: esac
4298:
1.10 paf 4299: for depmode in $am_compiler_list; do
1.16 paf 4300: # Setup a source with many dependencies, because some compilers
4301: # like to wrap large dependency lists on column 80 (with \), and
4302: # we should not choose a depcomp mode which is confused by this.
4303: #
1.10 paf 4304: # We need to recreate these files for each test, as the compiler may
4305: # overwrite some of them when testing with obscure command lines.
4306: # This happens at least with the AIX C compiler.
1.16 paf 4307: : > sub/conftest.c
4308: for i in 1 2 3 4 5 6; do
4309: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4310: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4311: # Solaris 8's {/usr,}/bin/sh.
4312: touch sub/conftst$i.h
4313: done
4314: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 4315:
1.31 moko 4316: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4317: # mode. It turns out that the SunPro C++ compiler does not properly
4318: # handle `-M -o', and we need to detect this. Also, some Intel
4319: # versions had trouble with output in subdirs
4320: am__obj=sub/conftest.${OBJEXT-o}
4321: am__minus_obj="-o $am__obj"
1.10 paf 4322: case $depmode in
1.31 moko 4323: gcc)
4324: # This depmode causes a compiler race in universal mode.
4325: test "$am__universal" = false || continue
4326: ;;
1.10 paf 4327: nosideeffect)
4328: # after this tag, mechanisms are not by side-effect, so they'll
4329: # only be used when explicitly requested
4330: if test "x$enable_dependency_tracking" = xyes; then
4331: continue
4332: else
4333: break
4334: fi
4335: ;;
1.31 moko 4336: msvisualcpp | msvcmsys)
4337: # This compiler won't grok `-c -o', but also, the minuso test has
4338: # not run yet. These depmodes are late enough in the game, and
4339: # so weak that their functioning should not be impacted.
4340: am__obj=conftest.${OBJEXT-o}
4341: am__minus_obj=
4342: ;;
1.10 paf 4343: none) break ;;
4344: esac
4345: if depmode=$depmode \
1.31 moko 4346: source=sub/conftest.c object=$am__obj \
1.16 paf 4347: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.31 moko 4348: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.16 paf 4349: >/dev/null 2>conftest.err &&
1.31 moko 4350: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.16 paf 4351: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.31 moko 4352: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 4353: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 4354: # icc doesn't choke on unknown options, it will just issue warnings
4355: # or remarks (even with -Werror). So we grep stderr for any message
4356: # that says an option was ignored or not supported.
4357: # When given -MP, icc 7.0 and 7.1 complain thusly:
4358: # icc: Command line warning: ignoring option '-M'; no argument required
4359: # The diagnosis changed in icc 8.0:
4360: # icc: Command line remark: option '-MP' not supported
4361: if (grep 'ignoring option' conftest.err ||
4362: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4363: am_cv_CC_dependencies_compiler_type=$depmode
4364: break
4365: fi
1.10 paf 4366: fi
4367: done
4368:
4369: cd ..
4370: rm -rf conftest.dir
4371: else
4372: am_cv_CC_dependencies_compiler_type=none
4373: fi
4374:
4375: fi
1.31 moko 4376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4377: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.10 paf 4378: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4379:
1.31 moko 4380: if
1.10 paf 4381: test "x$enable_dependency_tracking" != xno \
4382: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4383: am__fastdepCC_TRUE=
4384: am__fastdepCC_FALSE='#'
4385: else
4386: am__fastdepCC_TRUE='#'
4387: am__fastdepCC_FALSE=
4388: fi
4389:
4390:
1.15 paf 4391:
4392:
4393:
4394:
4395:
4396:
4397:
1.23 moko 4398:
4399: case `pwd` in
4400: *\ * | *\ *)
1.31 moko 4401: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4402: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.15 paf 4403: esac
4404:
1.23 moko 4405:
4406:
4407: macro_version='2.4.2'
4408: macro_revision='1.3337'
4409:
4410:
4411:
4412:
4413:
4414:
4415:
4416:
4417:
4418:
4419:
4420:
4421:
4422: ltmain="$ac_aux_dir/ltmain.sh"
4423:
1.15 paf 4424: # Make sure we can run config.sub.
1.31 moko 4425: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4426: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.15 paf 4427:
1.31 moko 4428: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4429: $as_echo_n "checking build system type... " >&6; }
4430: if ${ac_cv_build+:} false; then :
4431: $as_echo_n "(cached) " >&6
4432: else
4433: ac_build_alias=$build_alias
4434: test "x$ac_build_alias" = x &&
4435: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4436: test "x$ac_build_alias" = x &&
4437: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4438: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4439: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4440:
4441: fi
4442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4443: $as_echo "$ac_cv_build" >&6; }
4444: case $ac_cv_build in
4445: *-*-*) ;;
4446: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4447: esac
4448: build=$ac_cv_build
4449: ac_save_IFS=$IFS; IFS='-'
4450: set x $ac_cv_build
4451: shift
4452: build_cpu=$1
4453: build_vendor=$2
4454: shift; shift
4455: # Remember, the first character of IFS is used to create $*,
4456: # except with old shells:
4457: build_os=$*
4458: IFS=$ac_save_IFS
4459: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4460:
4461:
4462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4463: $as_echo_n "checking host system type... " >&6; }
4464: if ${ac_cv_host+:} false; then :
4465: $as_echo_n "(cached) " >&6
4466: else
4467: if test "x$host_alias" = x; then
4468: ac_cv_host=$ac_cv_build
4469: else
4470: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4471: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.15 paf 4472: fi
4473:
4474: fi
1.31 moko 4475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4476: $as_echo "$ac_cv_host" >&6; }
4477: case $ac_cv_host in
4478: *-*-*) ;;
4479: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4480: esac
1.15 paf 4481: host=$ac_cv_host
1.31 moko 4482: ac_save_IFS=$IFS; IFS='-'
4483: set x $ac_cv_host
4484: shift
4485: host_cpu=$1
4486: host_vendor=$2
4487: shift; shift
4488: # Remember, the first character of IFS is used to create $*,
4489: # except with old shells:
4490: host_os=$*
4491: IFS=$ac_save_IFS
4492: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.15 paf 4493:
4494:
1.23 moko 4495: # Backslashify metacharacters that are still active within
4496: # double-quoted strings.
4497: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4498:
4499: # Same as above, but do not quote variable references.
4500: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4501:
4502: # Sed substitution to delay expansion of an escaped shell variable in a
4503: # double_quote_subst'ed string.
4504: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4505:
4506: # Sed substitution to delay expansion of an escaped single quote.
4507: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4508:
4509: # Sed substitution to avoid accidental globbing in evaled expressions
4510: no_glob_subst='s/\*/\\\*/g'
4511:
4512: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4513: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4514: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4515:
1.31 moko 4516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4517: $as_echo_n "checking how to print strings... " >&6; }
1.23 moko 4518: # Test print first, because it will be a builtin if present.
4519: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4520: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4521: ECHO='print -r --'
4522: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4523: ECHO='printf %s\n'
4524: else
4525: # Use this function as a fallback that always works.
4526: func_fallback_echo ()
4527: {
4528: eval 'cat <<_LTECHO_EOF
4529: $1
4530: _LTECHO_EOF'
4531: }
4532: ECHO='func_fallback_echo'
1.10 paf 4533: fi
4534:
1.23 moko 4535: # func_echo_all arg...
4536: # Invoke $ECHO with all args, space-separated.
4537: func_echo_all ()
4538: {
4539: $ECHO ""
4540: }
4541:
4542: case "$ECHO" in
1.31 moko 4543: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4544: $as_echo "printf" >&6; } ;;
4545: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4546: $as_echo "print -r" >&6; } ;;
4547: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4548: $as_echo "cat" >&6; } ;;
1.23 moko 4549: esac
4550:
4551:
4552:
4553:
4554:
4555:
4556:
4557:
4558:
4559:
4560:
4561:
4562:
4563:
1.31 moko 4564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4565: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4566: if ${ac_cv_path_SED+:} false; then :
4567: $as_echo_n "(cached) " >&6
4568: else
4569: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4570: for ac_i in 1 2 3 4 5 6 7; do
4571: ac_script="$ac_script$as_nl$ac_script"
4572: done
4573: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4574: { ac_script=; unset ac_script;}
4575: if test -z "$SED"; then
4576: ac_path_SED_found=false
4577: # Loop through the user's path and test for each of PROGNAME-LIST
4578: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.23 moko 4579: for as_dir in $PATH
4580: do
4581: IFS=$as_save_IFS
4582: test -z "$as_dir" && as_dir=.
1.31 moko 4583: for ac_prog in sed gsed; do
1.23 moko 4584: for ac_exec_ext in '' $ac_executable_extensions; do
1.31 moko 4585: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.34 moko 4586: as_fn_executable_p "$ac_path_SED" || continue
1.31 moko 4587: # Check for GNU ac_path_SED and select it if it is found.
4588: # Check for GNU $ac_path_SED
4589: case `"$ac_path_SED" --version 2>&1` in
4590: *GNU*)
4591: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4592: *)
4593: ac_count=0
4594: $as_echo_n 0123456789 >"conftest.in"
4595: while :
4596: do
4597: cat "conftest.in" "conftest.in" >"conftest.tmp"
4598: mv "conftest.tmp" "conftest.in"
4599: cp "conftest.in" "conftest.nl"
4600: $as_echo '' >> "conftest.nl"
4601: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603: as_fn_arith $ac_count + 1 && ac_count=$as_val
4604: if test $ac_count -gt ${ac_path_SED_max-0}; then
4605: # Best one so far, save it but keep looking for a better one
4606: ac_cv_path_SED="$ac_path_SED"
4607: ac_path_SED_max=$ac_count
4608: fi
4609: # 10*(2^10) chars as input seems more than enough
4610: test $ac_count -gt 10 && break
4611: done
4612: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613: esac
4614:
4615: $ac_path_SED_found && break 3
1.23 moko 4616: done
4617: done
1.31 moko 4618: done
1.23 moko 4619: IFS=$as_save_IFS
1.31 moko 4620: if test -z "$ac_cv_path_SED"; then
4621: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4622: fi
4623: else
4624: ac_cv_path_SED=$SED
4625: fi
1.23 moko 4626:
4627: fi
1.31 moko 4628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4629: $as_echo "$ac_cv_path_SED" >&6; }
4630: SED="$ac_cv_path_SED"
4631: rm -f conftest.sed
1.23 moko 4632:
4633: test -z "$SED" && SED=sed
4634: Xsed="$SED -e 1s/^X//"
4635:
4636:
4637:
4638:
4639:
4640:
4641:
4642:
4643:
4644:
4645:
1.31 moko 4646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4647: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4648: if ${ac_cv_path_GREP+:} false; then :
4649: $as_echo_n "(cached) " >&6
4650: else
4651: if test -z "$GREP"; then
4652: ac_path_GREP_found=false
4653: # Loop through the user's path and test for each of PROGNAME-LIST
4654: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4656: do
4657: IFS=$as_save_IFS
4658: test -z "$as_dir" && as_dir=.
4659: for ac_prog in grep ggrep; do
4660: for ac_exec_ext in '' $ac_executable_extensions; do
4661: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.34 moko 4662: as_fn_executable_p "$ac_path_GREP" || continue
1.31 moko 4663: # Check for GNU ac_path_GREP and select it if it is found.
4664: # Check for GNU $ac_path_GREP
4665: case `"$ac_path_GREP" --version 2>&1` in
4666: *GNU*)
4667: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4668: *)
4669: ac_count=0
4670: $as_echo_n 0123456789 >"conftest.in"
4671: while :
4672: do
4673: cat "conftest.in" "conftest.in" >"conftest.tmp"
4674: mv "conftest.tmp" "conftest.in"
4675: cp "conftest.in" "conftest.nl"
4676: $as_echo 'GREP' >> "conftest.nl"
4677: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679: as_fn_arith $ac_count + 1 && ac_count=$as_val
4680: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4681: # Best one so far, save it but keep looking for a better one
4682: ac_cv_path_GREP="$ac_path_GREP"
4683: ac_path_GREP_max=$ac_count
1.23 moko 4684: fi
1.31 moko 4685: # 10*(2^10) chars as input seems more than enough
4686: test $ac_count -gt 10 && break
4687: done
4688: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689: esac
4690:
4691: $ac_path_GREP_found && break 3
4692: done
4693: done
4694: done
4695: IFS=$as_save_IFS
4696: if test -z "$ac_cv_path_GREP"; then
4697: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4698: fi
4699: else
4700: ac_cv_path_GREP=$GREP
4701: fi
4702:
1.23 moko 4703: fi
1.31 moko 4704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4705: $as_echo "$ac_cv_path_GREP" >&6; }
4706: GREP="$ac_cv_path_GREP"
4707:
4708:
4709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4710: $as_echo_n "checking for egrep... " >&6; }
4711: if ${ac_cv_path_EGREP+:} false; then :
4712: $as_echo_n "(cached) " >&6
4713: else
4714: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4715: then ac_cv_path_EGREP="$GREP -E"
4716: else
4717: if test -z "$EGREP"; then
4718: ac_path_EGREP_found=false
4719: # Loop through the user's path and test for each of PROGNAME-LIST
4720: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4722: do
4723: IFS=$as_save_IFS
4724: test -z "$as_dir" && as_dir=.
4725: for ac_prog in egrep; do
4726: for ac_exec_ext in '' $ac_executable_extensions; do
4727: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.34 moko 4728: as_fn_executable_p "$ac_path_EGREP" || continue
1.31 moko 4729: # Check for GNU ac_path_EGREP and select it if it is found.
4730: # Check for GNU $ac_path_EGREP
4731: case `"$ac_path_EGREP" --version 2>&1` in
4732: *GNU*)
4733: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4734: *)
4735: ac_count=0
4736: $as_echo_n 0123456789 >"conftest.in"
4737: while :
4738: do
4739: cat "conftest.in" "conftest.in" >"conftest.tmp"
4740: mv "conftest.tmp" "conftest.in"
4741: cp "conftest.in" "conftest.nl"
4742: $as_echo 'EGREP' >> "conftest.nl"
4743: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4744: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4745: as_fn_arith $ac_count + 1 && ac_count=$as_val
4746: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4747: # Best one so far, save it but keep looking for a better one
4748: ac_cv_path_EGREP="$ac_path_EGREP"
4749: ac_path_EGREP_max=$ac_count
4750: fi
4751: # 10*(2^10) chars as input seems more than enough
4752: test $ac_count -gt 10 && break
4753: done
4754: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4755: esac
1.23 moko 4756:
1.31 moko 4757: $ac_path_EGREP_found && break 3
4758: done
4759: done
4760: done
4761: IFS=$as_save_IFS
4762: if test -z "$ac_cv_path_EGREP"; then
4763: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4764: fi
4765: else
4766: ac_cv_path_EGREP=$EGREP
4767: fi
1.23 moko 4768:
1.31 moko 4769: fi
4770: fi
4771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4772: $as_echo "$ac_cv_path_EGREP" >&6; }
4773: EGREP="$ac_cv_path_EGREP"
4774:
4775:
4776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4777: $as_echo_n "checking for fgrep... " >&6; }
4778: if ${ac_cv_path_FGREP+:} false; then :
4779: $as_echo_n "(cached) " >&6
4780: else
4781: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4782: then ac_cv_path_FGREP="$GREP -F"
4783: else
4784: if test -z "$FGREP"; then
4785: ac_path_FGREP_found=false
4786: # Loop through the user's path and test for each of PROGNAME-LIST
4787: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4789: do
4790: IFS=$as_save_IFS
4791: test -z "$as_dir" && as_dir=.
4792: for ac_prog in fgrep; do
4793: for ac_exec_ext in '' $ac_executable_extensions; do
4794: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.34 moko 4795: as_fn_executable_p "$ac_path_FGREP" || continue
1.31 moko 4796: # Check for GNU ac_path_FGREP and select it if it is found.
4797: # Check for GNU $ac_path_FGREP
4798: case `"$ac_path_FGREP" --version 2>&1` in
4799: *GNU*)
4800: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4801: *)
4802: ac_count=0
4803: $as_echo_n 0123456789 >"conftest.in"
4804: while :
4805: do
4806: cat "conftest.in" "conftest.in" >"conftest.tmp"
4807: mv "conftest.tmp" "conftest.in"
4808: cp "conftest.in" "conftest.nl"
4809: $as_echo 'FGREP' >> "conftest.nl"
4810: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812: as_fn_arith $ac_count + 1 && ac_count=$as_val
4813: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4814: # Best one so far, save it but keep looking for a better one
4815: ac_cv_path_FGREP="$ac_path_FGREP"
4816: ac_path_FGREP_max=$ac_count
1.23 moko 4817: fi
1.31 moko 4818: # 10*(2^10) chars as input seems more than enough
4819: test $ac_count -gt 10 && break
4820: done
4821: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822: esac
4823:
4824: $ac_path_FGREP_found && break 3
4825: done
4826: done
4827: done
4828: IFS=$as_save_IFS
4829: if test -z "$ac_cv_path_FGREP"; then
4830: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4831: fi
4832: else
4833: ac_cv_path_FGREP=$FGREP
4834: fi
4835:
4836: fi
1.23 moko 4837: fi
1.31 moko 4838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4839: $as_echo "$ac_cv_path_FGREP" >&6; }
4840: FGREP="$ac_cv_path_FGREP"
1.23 moko 4841:
4842:
4843: test -z "$GREP" && GREP=grep
4844:
4845:
4846:
4847:
4848:
4849:
4850:
4851:
4852:
4853:
4854:
4855:
4856:
4857:
4858:
4859:
4860:
4861:
1.1 parser 4862:
1.31 moko 4863: # Check whether --with-gnu-ld was given.
4864: if test "${with_gnu_ld+set}" = set; then :
4865: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1 parser 4866: else
4867: with_gnu_ld=no
1.31 moko 4868: fi
4869:
1.1 parser 4870: ac_prog=ld
1.10 paf 4871: if test "$GCC" = yes; then
1.1 parser 4872: # Check if gcc -print-prog-name=ld gives a path.
1.31 moko 4873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4874: $as_echo_n "checking for ld used by $CC... " >&6; }
1.10 paf 4875: case $host in
4876: *-*-mingw*)
4877: # gcc leaves a trailing carriage return which upsets mingw
4878: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4879: *)
4880: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4881: esac
4882: case $ac_prog in
1.1 parser 4883: # Accept absolute paths.
1.23 moko 4884: [\\/]* | ?:[\\/]*)
1.1 parser 4885: re_direlt='/[^/][^/]*/\.\./'
1.23 moko 4886: # Canonicalize the pathname of ld
4887: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4888: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4889: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.1 parser 4890: done
4891: test -z "$LD" && LD="$ac_prog"
4892: ;;
4893: "")
4894: # If it fails, then pretend we aren't using GCC.
4895: ac_prog=ld
4896: ;;
4897: *)
4898: # If it is relative, then search for the first ld in PATH.
4899: with_gnu_ld=unknown
4900: ;;
4901: esac
4902: elif test "$with_gnu_ld" = yes; then
1.31 moko 4903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4904: $as_echo_n "checking for GNU ld... " >&6; }
1.1 parser 4905: else
1.31 moko 4906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4907: $as_echo_n "checking for non-GNU ld... " >&6; }
1.1 parser 4908: fi
1.31 moko 4909: if ${lt_cv_path_LD+:} false; then :
4910: $as_echo_n "(cached) " >&6
1.1 parser 4911: else
4912: if test -z "$LD"; then
1.23 moko 4913: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 4914: for ac_dir in $PATH; do
1.23 moko 4915: IFS="$lt_save_ifs"
1.1 parser 4916: test -z "$ac_dir" && ac_dir=.
4917: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.10 paf 4918: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 4919: # Check to see if the program is GNU ld. I'd rather use --version,
1.23 moko 4920: # but apparently some variants of GNU ld only accept -v.
1.1 parser 4921: # Break only if it was the GNU/non-GNU ld that we prefer.
1.23 moko 4922: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4923: *GNU* | *'with BFD'*)
1.1 parser 4924: test "$with_gnu_ld" != no && break
1.23 moko 4925: ;;
4926: *)
1.1 parser 4927: test "$with_gnu_ld" != yes && break
1.23 moko 4928: ;;
4929: esac
1.1 parser 4930: fi
4931: done
1.23 moko 4932: IFS="$lt_save_ifs"
1.1 parser 4933: else
1.10 paf 4934: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 4935: fi
4936: fi
4937:
1.10 paf 4938: LD="$lt_cv_path_LD"
1.1 parser 4939: if test -n "$LD"; then
1.31 moko 4940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4941: $as_echo "$LD" >&6; }
1.1 parser 4942: else
1.31 moko 4943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944: $as_echo "no" >&6; }
1.1 parser 4945: fi
1.31 moko 4946: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4948: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4949: if ${lt_cv_prog_gnu_ld+:} false; then :
4950: $as_echo_n "(cached) " >&6
1.1 parser 4951: else
1.23 moko 4952: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4953: case `$LD -v 2>&1 </dev/null` in
4954: *GNU* | *'with BFD'*)
1.10 paf 4955: lt_cv_prog_gnu_ld=yes
1.23 moko 4956: ;;
4957: *)
1.10 paf 4958: lt_cv_prog_gnu_ld=no
1.23 moko 4959: ;;
4960: esac
1.1 parser 4961: fi
1.31 moko 4962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4963: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.10 paf 4964: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 4965:
4966:
4967:
1.23 moko 4968:
4969:
4970:
4971:
4972:
4973:
1.31 moko 4974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4975: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4976: if ${lt_cv_path_NM+:} false; then :
4977: $as_echo_n "(cached) " >&6
1.1 parser 4978: else
4979: if test -n "$NM"; then
4980: # Let the user override the test.
1.10 paf 4981: lt_cv_path_NM="$NM"
1.1 parser 4982: else
1.23 moko 4983: lt_nm_to_check="${ac_tool_prefix}nm"
4984: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4985: lt_nm_to_check="$lt_nm_to_check nm"
4986: fi
4987: for lt_tmp_nm in $lt_nm_to_check; do
4988: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4989: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4990: IFS="$lt_save_ifs"
4991: test -z "$ac_dir" && ac_dir=.
4992: tmp_nm="$ac_dir/$lt_tmp_nm"
4993: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4994: # Check to see if the nm accepts a BSD-compat flag.
4995: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4996: # nm: unknown option "B" ignored
4997: # Tru64's nm complains that /dev/null is an invalid object file
4998: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4999: */dev/null* | *'Invalid file or object type'*)
5000: lt_cv_path_NM="$tmp_nm -B"
5001: break
5002: ;;
5003: *)
5004: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5005: */dev/null*)
5006: lt_cv_path_NM="$tmp_nm -p"
5007: break
5008: ;;
5009: *)
5010: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5011: continue # so that we can try to find one that supports BSD flags
5012: ;;
5013: esac
5014: ;;
5015: esac
1.1 parser 5016: fi
1.23 moko 5017: done
5018: IFS="$lt_save_ifs"
1.1 parser 5019: done
1.23 moko 5020: : ${lt_cv_path_NM=no}
1.1 parser 5021: fi
5022: fi
1.31 moko 5023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5024: $as_echo "$lt_cv_path_NM" >&6; }
1.23 moko 5025: if test "$lt_cv_path_NM" != "no"; then
5026: NM="$lt_cv_path_NM"
5027: else
5028: # Didn't find any BSD compatible name lister, look for dumpbin.
5029: if test -n "$DUMPBIN"; then :
5030: # Let the user override the test.
5031: else
5032: if test -n "$ac_tool_prefix"; then
5033: for ac_prog in dumpbin "link -dump"
5034: do
5035: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5036: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 moko 5037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038: $as_echo_n "checking for $ac_word... " >&6; }
5039: if ${ac_cv_prog_DUMPBIN+:} false; then :
5040: $as_echo_n "(cached) " >&6
1.23 moko 5041: else
5042: if test -n "$DUMPBIN"; then
5043: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5044: else
5045: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046: for as_dir in $PATH
5047: do
5048: IFS=$as_save_IFS
5049: test -z "$as_dir" && as_dir=.
1.31 moko 5050: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5051: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5052: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.31 moko 5053: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5054: break 2
5055: fi
5056: done
1.31 moko 5057: done
5058: IFS=$as_save_IFS
1.1 parser 5059:
1.23 moko 5060: fi
5061: fi
5062: DUMPBIN=$ac_cv_prog_DUMPBIN
5063: if test -n "$DUMPBIN"; then
1.31 moko 5064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5065: $as_echo "$DUMPBIN" >&6; }
1.23 moko 5066: else
1.31 moko 5067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068: $as_echo "no" >&6; }
1.23 moko 5069: fi
1.1 parser 5070:
1.31 moko 5071:
1.23 moko 5072: test -n "$DUMPBIN" && break
5073: done
5074: fi
5075: if test -z "$DUMPBIN"; then
5076: ac_ct_DUMPBIN=$DUMPBIN
5077: for ac_prog in dumpbin "link -dump"
5078: do
5079: # Extract the first word of "$ac_prog", so it can be a program name with args.
5080: set dummy $ac_prog; ac_word=$2
1.31 moko 5081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082: $as_echo_n "checking for $ac_word... " >&6; }
5083: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5084: $as_echo_n "(cached) " >&6
1.1 parser 5085: else
1.23 moko 5086: if test -n "$ac_ct_DUMPBIN"; then
5087: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5088: else
1.10 paf 5089: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090: for as_dir in $PATH
5091: do
5092: IFS=$as_save_IFS
5093: test -z "$as_dir" && as_dir=.
1.31 moko 5094: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5095: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5096: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.31 moko 5097: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5098: break 2
5099: fi
5100: done
1.31 moko 5101: done
5102: IFS=$as_save_IFS
1.23 moko 5103:
5104: fi
5105: fi
5106: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5107: if test -n "$ac_ct_DUMPBIN"; then
1.31 moko 5108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5109: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.23 moko 5110: else
1.31 moko 5111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112: $as_echo "no" >&6; }
1.23 moko 5113: fi
5114:
1.31 moko 5115:
1.23 moko 5116: test -n "$ac_ct_DUMPBIN" && break
1.10 paf 5117: done
5118:
1.31 moko 5119: if test "x$ac_ct_DUMPBIN" = x; then
5120: DUMPBIN=":"
5121: else
5122: case $cross_compiling:$ac_tool_warned in
5123: yes:)
5124: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126: ac_tool_warned=yes ;;
5127: esac
5128: DUMPBIN=$ac_ct_DUMPBIN
5129: fi
1.23 moko 5130: fi
1.10 paf 5131:
1.23 moko 5132: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5133: *COFF*)
5134: DUMPBIN="$DUMPBIN -symbols"
5135: ;;
5136: *)
5137: DUMPBIN=:
5138: ;;
5139: esac
5140: fi
1.10 paf 5141:
1.23 moko 5142: if test "$DUMPBIN" != ":"; then
5143: NM="$DUMPBIN"
5144: fi
1.1 parser 5145: fi
1.23 moko 5146: test -z "$NM" && NM=nm
5147:
1.1 parser 5148:
1.23 moko 5149:
5150:
5151:
5152:
1.31 moko 5153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5154: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5155: if ${lt_cv_nm_interface+:} false; then :
5156: $as_echo_n "(cached) " >&6
1.6 paf 5157: else
1.23 moko 5158: lt_cv_nm_interface="BSD nm"
5159: echo "int some_variable = 0;" > conftest.$ac_ext
5160: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5161: (eval "$ac_compile" 2>conftest.err)
5162: cat conftest.err >&5
5163: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5164: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5165: cat conftest.err >&5
5166: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5167: cat conftest.out >&5
5168: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5169: lt_cv_nm_interface="MS dumpbin"
5170: fi
5171: rm -f conftest*
1.6 paf 5172: fi
1.31 moko 5173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5174: $as_echo "$lt_cv_nm_interface" >&6; }
1.10 paf 5175:
1.31 moko 5176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5177: $as_echo_n "checking whether ln -s works... " >&6; }
1.10 paf 5178: LN_S=$as_ln_s
5179: if test "$LN_S" = "ln -s"; then
1.31 moko 5180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5181: $as_echo "yes" >&6; }
1.10 paf 5182: else
1.31 moko 5183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5184: $as_echo "no, using $LN_S" >&6; }
1.10 paf 5185: fi
5186:
1.23 moko 5187: # find the maximum length of command line arguments
1.31 moko 5188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5189: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5190: if ${lt_cv_sys_max_cmd_len+:} false; then :
5191: $as_echo_n "(cached) " >&6
1.10 paf 5192: else
1.23 moko 5193: i=0
5194: teststring="ABCD"
1.10 paf 5195:
1.23 moko 5196: case $build_os in
5197: msdosdjgpp*)
5198: # On DJGPP, this test can blow up pretty badly due to problems in libc
5199: # (any single argument exceeding 2000 bytes causes a buffer overrun
5200: # during glob expansion). Even if it were fixed, the result of this
5201: # check would be larger than it should be.
5202: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5203: ;;
1.6 paf 5204:
1.23 moko 5205: gnu*)
5206: # Under GNU Hurd, this test is not required because there is
5207: # no limit to the length of command line arguments.
5208: # Libtool will interpret -1 as no limit whatsoever
5209: lt_cv_sys_max_cmd_len=-1;
5210: ;;
1.1 parser 5211:
1.23 moko 5212: cygwin* | mingw* | cegcc*)
5213: # On Win9x/ME, this test blows up -- it succeeds, but takes
5214: # about 5 minutes as the teststring grows exponentially.
5215: # Worse, since 9x/ME are not pre-emptively multitasking,
5216: # you end up with a "frozen" computer, even though with patience
5217: # the test eventually succeeds (with a max line length of 256k).
5218: # Instead, let's just punt: use the minimum linelength reported by
5219: # all of the supported platforms: 8192 (on NT/2K/XP).
5220: lt_cv_sys_max_cmd_len=8192;
5221: ;;
1.1 parser 5222:
1.23 moko 5223: mint*)
5224: # On MiNT this can take a long time and run out of memory.
5225: lt_cv_sys_max_cmd_len=8192;
5226: ;;
1.1 parser 5227:
1.23 moko 5228: amigaos*)
5229: # On AmigaOS with pdksh, this test takes hours, literally.
5230: # So we just punt and use a minimum line length of 8192.
5231: lt_cv_sys_max_cmd_len=8192;
1.10 paf 5232: ;;
1.23 moko 5233:
5234: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5235: # This has been around since 386BSD, at least. Likely further.
5236: if test -x /sbin/sysctl; then
5237: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5238: elif test -x /usr/sbin/sysctl; then
5239: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5240: else
5241: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5242: fi
5243: # And add a safety zone
5244: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5245: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5246: ;;
5247:
5248: interix*)
5249: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5250: lt_cv_sys_max_cmd_len=196608
5251: ;;
5252:
5253: os2*)
5254: # The test takes a long time on OS/2.
5255: lt_cv_sys_max_cmd_len=8192
5256: ;;
5257:
5258: osf*)
5259: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5260: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5261: # nice to cause kernel panics so lets avoid the loop below.
5262: # First set a reasonable default.
5263: lt_cv_sys_max_cmd_len=16384
5264: #
5265: if test -x /sbin/sysconfig; then
5266: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5267: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5268: esac
5269: fi
5270: ;;
5271: sco3.2v5*)
5272: lt_cv_sys_max_cmd_len=102400
5273: ;;
5274: sysv5* | sco5v6* | sysv4.2uw2*)
5275: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5276: if test -n "$kargmax"; then
5277: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5278: else
5279: lt_cv_sys_max_cmd_len=32768
5280: fi
5281: ;;
5282: *)
5283: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5284: if test -n "$lt_cv_sys_max_cmd_len"; then
5285: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5286: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5287: else
5288: # Make teststring a little bigger before we do anything with it.
5289: # a 1K string should be a reasonable start.
5290: for i in 1 2 3 4 5 6 7 8 ; do
5291: teststring=$teststring$teststring
5292: done
5293: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5294: # If test is not a shell built-in, we'll probably end up computing a
5295: # maximum length that is only half of the actual maximum length, but
5296: # we can't tell.
5297: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5298: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5299: test $i != 17 # 1/2 MB should be enough
5300: do
5301: i=`expr $i + 1`
5302: teststring=$teststring$teststring
5303: done
5304: # Only check the string length outside the loop.
5305: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5306: teststring=
5307: # Add a significant safety factor because C++ compilers can tack on
5308: # massive amounts of additional arguments before passing them to the
5309: # linker. It appears as though 1/2 is a usable value.
5310: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5311: fi
1.10 paf 5312: ;;
5313: esac
1.23 moko 5314:
5315: fi
5316:
5317: if test -n $lt_cv_sys_max_cmd_len ; then
1.31 moko 5318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5319: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.23 moko 5320: else
1.31 moko 5321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5322: $as_echo "none" >&6; }
1.23 moko 5323: fi
5324: max_cmd_len=$lt_cv_sys_max_cmd_len
5325:
5326:
5327:
5328:
5329:
5330:
5331: : ${CP="cp -f"}
5332: : ${MV="mv -f"}
5333: : ${RM="rm -f"}
5334:
1.31 moko 5335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5336: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.23 moko 5337: # Try some XSI features
5338: xsi_shell=no
5339: ( _lt_dummy="a/b/c"
5340: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5341: = c,a/b,b/c, \
5342: && eval 'test $(( 1 + 1 )) -eq 2 \
5343: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5344: && xsi_shell=yes
1.31 moko 5345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5346: $as_echo "$xsi_shell" >&6; }
1.23 moko 5347:
5348:
1.31 moko 5349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5350: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.23 moko 5351: lt_shell_append=no
5352: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5353: >/dev/null 2>&1 \
5354: && lt_shell_append=yes
1.31 moko 5355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5356: $as_echo "$lt_shell_append" >&6; }
1.23 moko 5357:
5358:
5359: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5360: lt_unset=unset
5361: else
5362: lt_unset=false
5363: fi
5364:
5365:
5366:
5367:
5368:
5369: # test EBCDIC or ASCII
5370: case `echo X|tr X '\101'` in
5371: A) # ASCII based system
5372: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5373: lt_SP2NL='tr \040 \012'
5374: lt_NL2SP='tr \015\012 \040\040'
5375: ;;
5376: *) # EBCDIC based system
5377: lt_SP2NL='tr \100 \n'
5378: lt_NL2SP='tr \r\n \100\100'
5379: ;;
5380: esac
5381:
5382:
5383:
5384:
5385:
5386:
5387:
5388:
5389:
1.31 moko 5390: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5391: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5392: if ${lt_cv_to_host_file_cmd+:} false; then :
5393: $as_echo_n "(cached) " >&6
1.23 moko 5394: else
5395: case $host in
5396: *-*-mingw* )
5397: case $build in
5398: *-*-mingw* ) # actually msys
5399: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5400: ;;
5401: *-*-cygwin* )
5402: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5403: ;;
5404: * ) # otherwise, assume *nix
5405: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5406: ;;
5407: esac
5408: ;;
5409: *-*-cygwin* )
5410: case $build in
5411: *-*-mingw* ) # actually msys
5412: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5413: ;;
5414: *-*-cygwin* )
5415: lt_cv_to_host_file_cmd=func_convert_file_noop
5416: ;;
5417: * ) # otherwise, assume *nix
5418: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5419: ;;
5420: esac
5421: ;;
5422: * ) # unhandled hosts (and "normal" native builds)
5423: lt_cv_to_host_file_cmd=func_convert_file_noop
5424: ;;
5425: esac
5426:
5427: fi
5428:
5429: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.31 moko 5430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5431: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.23 moko 5432:
5433:
5434:
5435:
5436:
1.31 moko 5437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5438: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5439: if ${lt_cv_to_tool_file_cmd+:} false; then :
5440: $as_echo_n "(cached) " >&6
1.23 moko 5441: else
5442: #assume ordinary cross tools, or native build.
5443: lt_cv_to_tool_file_cmd=func_convert_file_noop
5444: case $host in
5445: *-*-mingw* )
5446: case $build in
5447: *-*-mingw* ) # actually msys
5448: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5449: ;;
5450: esac
5451: ;;
5452: esac
5453:
5454: fi
5455:
5456: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.31 moko 5457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5458: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.23 moko 5459:
5460:
5461:
5462:
5463:
1.31 moko 5464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5465: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5466: if ${lt_cv_ld_reload_flag+:} false; then :
5467: $as_echo_n "(cached) " >&6
1.23 moko 5468: else
5469: lt_cv_ld_reload_flag='-r'
5470: fi
1.31 moko 5471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5472: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.23 moko 5473: reload_flag=$lt_cv_ld_reload_flag
5474: case $reload_flag in
5475: "" | " "*) ;;
5476: *) reload_flag=" $reload_flag" ;;
5477: esac
5478: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5479: case $host_os in
5480: cygwin* | mingw* | pw32* | cegcc*)
5481: if test "$GCC" != yes; then
5482: reload_cmds=false
5483: fi
5484: ;;
5485: darwin*)
5486: if test "$GCC" = yes; then
5487: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5488: else
5489: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5490: fi
5491: ;;
5492: esac
5493:
5494:
5495:
5496:
5497:
5498:
5499:
5500:
5501:
5502: if test -n "$ac_tool_prefix"; then
5503: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5504: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.31 moko 5505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506: $as_echo_n "checking for $ac_word... " >&6; }
5507: if ${ac_cv_prog_OBJDUMP+:} false; then :
5508: $as_echo_n "(cached) " >&6
1.23 moko 5509: else
5510: if test -n "$OBJDUMP"; then
5511: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5512: else
5513: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514: for as_dir in $PATH
5515: do
5516: IFS=$as_save_IFS
5517: test -z "$as_dir" && as_dir=.
1.31 moko 5518: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5519: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5520: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.31 moko 5521: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5522: break 2
5523: fi
5524: done
1.31 moko 5525: done
5526: IFS=$as_save_IFS
1.23 moko 5527:
5528: fi
5529: fi
5530: OBJDUMP=$ac_cv_prog_OBJDUMP
5531: if test -n "$OBJDUMP"; then
1.31 moko 5532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5533: $as_echo "$OBJDUMP" >&6; }
1.23 moko 5534: else
1.31 moko 5535: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536: $as_echo "no" >&6; }
1.23 moko 5537: fi
5538:
1.31 moko 5539:
1.23 moko 5540: fi
5541: if test -z "$ac_cv_prog_OBJDUMP"; then
5542: ac_ct_OBJDUMP=$OBJDUMP
5543: # Extract the first word of "objdump", so it can be a program name with args.
5544: set dummy objdump; ac_word=$2
1.31 moko 5545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546: $as_echo_n "checking for $ac_word... " >&6; }
5547: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5548: $as_echo_n "(cached) " >&6
1.23 moko 5549: else
5550: if test -n "$ac_ct_OBJDUMP"; then
5551: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5552: else
5553: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554: for as_dir in $PATH
5555: do
5556: IFS=$as_save_IFS
5557: test -z "$as_dir" && as_dir=.
1.31 moko 5558: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5559: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5560: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.31 moko 5561: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5562: break 2
5563: fi
5564: done
1.31 moko 5565: done
5566: IFS=$as_save_IFS
1.23 moko 5567:
5568: fi
5569: fi
5570: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5571: if test -n "$ac_ct_OBJDUMP"; then
1.31 moko 5572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5573: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.23 moko 5574: else
1.31 moko 5575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576: $as_echo "no" >&6; }
1.23 moko 5577: fi
5578:
1.31 moko 5579: if test "x$ac_ct_OBJDUMP" = x; then
5580: OBJDUMP="false"
5581: else
5582: case $cross_compiling:$ac_tool_warned in
5583: yes:)
5584: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586: ac_tool_warned=yes ;;
5587: esac
5588: OBJDUMP=$ac_ct_OBJDUMP
5589: fi
1.23 moko 5590: else
5591: OBJDUMP="$ac_cv_prog_OBJDUMP"
5592: fi
5593:
5594: test -z "$OBJDUMP" && OBJDUMP=objdump
5595:
5596:
5597:
5598:
5599:
5600:
1.31 moko 5601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5602: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5603: if ${lt_cv_deplibs_check_method+:} false; then :
5604: $as_echo_n "(cached) " >&6
1.23 moko 5605: else
5606: lt_cv_file_magic_cmd='$MAGIC_CMD'
5607: lt_cv_file_magic_test_file=
5608: lt_cv_deplibs_check_method='unknown'
5609: # Need to set the preceding variable on all platforms that support
5610: # interlibrary dependencies.
5611: # 'none' -- dependencies not supported.
5612: # `unknown' -- same as none, but documents that we really don't know.
5613: # 'pass_all' -- all dependencies passed with no checks.
5614: # 'test_compile' -- check by making test program.
5615: # 'file_magic [[regex]]' -- check by looking for files in library path
5616: # which responds to the $file_magic_cmd with a given extended regex.
5617: # If you have `file' or equivalent on your system and you're not sure
5618: # whether `pass_all' will *always* work, you probably want this one.
5619:
5620: case $host_os in
5621: aix[4-9]*)
5622: lt_cv_deplibs_check_method=pass_all
5623: ;;
5624:
5625: beos*)
5626: lt_cv_deplibs_check_method=pass_all
5627: ;;
5628:
5629: bsdi[45]*)
5630: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5631: lt_cv_file_magic_cmd='/usr/bin/file -L'
5632: lt_cv_file_magic_test_file=/shlib/libc.so
5633: ;;
5634:
5635: cygwin*)
5636: # func_win32_libid is a shell function defined in ltmain.sh
5637: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5638: lt_cv_file_magic_cmd='func_win32_libid'
5639: ;;
5640:
5641: mingw* | pw32*)
5642: # Base MSYS/MinGW do not provide the 'file' command needed by
5643: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5644: # unless we find 'file', for example because we are cross-compiling.
5645: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5646: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5647: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5648: lt_cv_file_magic_cmd='func_win32_libid'
5649: else
5650: # Keep this pattern in sync with the one in func_win32_libid.
5651: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5652: lt_cv_file_magic_cmd='$OBJDUMP -f'
5653: fi
5654: ;;
5655:
5656: cegcc*)
5657: # use the weaker test based on 'objdump'. See mingw*.
5658: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5659: lt_cv_file_magic_cmd='$OBJDUMP -f'
1.10 paf 5660: ;;
1.1 parser 5661:
1.23 moko 5662: darwin* | rhapsody*)
5663: lt_cv_deplibs_check_method=pass_all
5664: ;;
5665:
5666: freebsd* | dragonfly*)
5667: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.10 paf 5668: case $host_cpu in
5669: i*86 )
5670: # Not sure whether the presence of OpenBSD here was a mistake.
5671: # Let's accept both of them until this is cleared up.
1.23 moko 5672: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.10 paf 5673: lt_cv_file_magic_cmd=/usr/bin/file
5674: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 5675: ;;
5676: esac
1.10 paf 5677: else
5678: lt_cv_deplibs_check_method=pass_all
1.1 parser 5679: fi
5680: ;;
5681:
1.10 paf 5682: gnu*)
5683: lt_cv_deplibs_check_method=pass_all
5684: ;;
5685:
1.23 moko 5686: haiku*)
5687: lt_cv_deplibs_check_method=pass_all
1.10 paf 5688: ;;
1.1 parser 5689:
1.23 moko 5690: hpux10.20* | hpux11*)
5691: lt_cv_file_magic_cmd=/usr/bin/file
5692: case $host_cpu in
5693: ia64*)
5694: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5695: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5696: ;;
5697: hppa*64*)
5698: 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]'
5699: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.10 paf 5700: ;;
5701: *)
1.23 moko 5702: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5703: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.10 paf 5704: ;;
5705: esac
1.23 moko 5706: ;;
5707:
5708: interix[3-9]*)
5709: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5710: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5711: ;;
5712:
5713: irix5* | irix6* | nonstopux*)
5714: case $LD in
5715: *-32|*"-32 ") libmagic=32-bit;;
5716: *-n32|*"-n32 ") libmagic=N32;;
5717: *-64|*"-64 ") libmagic=64-bit;;
5718: *) libmagic=never-match;;
5719: esac
1.10 paf 5720: lt_cv_deplibs_check_method=pass_all
5721: ;;
1.1 parser 5722:
1.23 moko 5723: # This must be glibc/ELF.
5724: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5725: lt_cv_deplibs_check_method=pass_all
1.10 paf 5726: ;;
5727:
5728: netbsd*)
1.23 moko 5729: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5730: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.10 paf 5731: else
1.23 moko 5732: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.10 paf 5733: fi
5734: ;;
5735:
5736: newos6*)
5737: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5738: lt_cv_file_magic_cmd=/usr/bin/file
5739: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5740: ;;
1.1 parser 5741:
1.23 moko 5742: *nto* | *qnx*)
5743: lt_cv_deplibs_check_method=pass_all
5744: ;;
5745:
1.10 paf 5746: openbsd*)
1.23 moko 5747: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5748: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.10 paf 5749: else
1.23 moko 5750: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 parser 5751: fi
5752: ;;
5753:
1.10 paf 5754: osf3* | osf4* | osf5*)
5755: lt_cv_deplibs_check_method=pass_all
5756: ;;
5757:
1.23 moko 5758: rdos*)
1.10 paf 5759: lt_cv_deplibs_check_method=pass_all
5760: ;;
5761:
5762: solaris*)
5763: lt_cv_deplibs_check_method=pass_all
5764: ;;
5765:
1.23 moko 5766: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.10 paf 5767: lt_cv_deplibs_check_method=pass_all
5768: ;;
5769:
1.23 moko 5770: sysv4 | sysv4.3*)
1.10 paf 5771: case $host_vendor in
5772: motorola)
5773: 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]'
5774: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5775: ;;
5776: ncr)
5777: lt_cv_deplibs_check_method=pass_all
5778: ;;
5779: sequent)
5780: lt_cv_file_magic_cmd='/bin/file'
5781: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5782: ;;
5783: sni)
5784: lt_cv_file_magic_cmd='/bin/file'
5785: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5786: lt_cv_file_magic_test_file=/lib/libc.so
5787: ;;
5788: siemens)
5789: lt_cv_deplibs_check_method=pass_all
5790: ;;
1.23 moko 5791: pc)
5792: lt_cv_deplibs_check_method=pass_all
5793: ;;
1.10 paf 5794: esac
5795: ;;
1.23 moko 5796:
5797: tpf*)
5798: lt_cv_deplibs_check_method=pass_all
5799: ;;
5800: esac
1.10 paf 5801:
5802: fi
1.31 moko 5803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5804: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.23 moko 5805:
5806: file_magic_glob=
5807: want_nocaseglob=no
5808: if test "$build" = "$host"; then
5809: case $host_os in
5810: mingw* | pw32*)
5811: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5812: want_nocaseglob=yes
5813: else
5814: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5815: fi
5816: ;;
5817: esac
5818: fi
5819:
1.10 paf 5820: file_magic_cmd=$lt_cv_file_magic_cmd
5821: deplibs_check_method=$lt_cv_deplibs_check_method
1.23 moko 5822: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5823:
5824:
5825:
1.10 paf 5826:
5827:
5828:
5829:
5830:
5831:
5832:
5833:
1.23 moko 5834:
5835:
5836:
5837:
5838:
5839:
5840:
5841:
5842:
5843:
5844:
5845: if test -n "$ac_tool_prefix"; then
5846: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5847: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.31 moko 5848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849: $as_echo_n "checking for $ac_word... " >&6; }
5850: if ${ac_cv_prog_DLLTOOL+:} false; then :
5851: $as_echo_n "(cached) " >&6
1.23 moko 5852: else
5853: if test -n "$DLLTOOL"; then
5854: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5855: else
5856: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857: for as_dir in $PATH
5858: do
5859: IFS=$as_save_IFS
5860: test -z "$as_dir" && as_dir=.
1.31 moko 5861: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5862: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5863: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.31 moko 5864: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5865: break 2
5866: fi
5867: done
1.31 moko 5868: done
5869: IFS=$as_save_IFS
1.23 moko 5870:
5871: fi
5872: fi
5873: DLLTOOL=$ac_cv_prog_DLLTOOL
5874: if test -n "$DLLTOOL"; then
1.31 moko 5875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5876: $as_echo "$DLLTOOL" >&6; }
1.23 moko 5877: else
1.31 moko 5878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879: $as_echo "no" >&6; }
1.23 moko 5880: fi
5881:
1.31 moko 5882:
1.23 moko 5883: fi
5884: if test -z "$ac_cv_prog_DLLTOOL"; then
5885: ac_ct_DLLTOOL=$DLLTOOL
5886: # Extract the first word of "dlltool", so it can be a program name with args.
5887: set dummy dlltool; ac_word=$2
1.31 moko 5888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889: $as_echo_n "checking for $ac_word... " >&6; }
5890: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5891: $as_echo_n "(cached) " >&6
1.6 paf 5892: else
1.23 moko 5893: if test -n "$ac_ct_DLLTOOL"; then
5894: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5895: else
5896: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897: for as_dir in $PATH
5898: do
5899: IFS=$as_save_IFS
5900: test -z "$as_dir" && as_dir=.
1.31 moko 5901: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5902: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5903: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.31 moko 5904: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5905: break 2
5906: fi
5907: done
1.31 moko 5908: done
5909: IFS=$as_save_IFS
1.23 moko 5910:
5911: fi
5912: fi
5913: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5914: if test -n "$ac_ct_DLLTOOL"; then
1.31 moko 5915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5916: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.23 moko 5917: else
1.31 moko 5918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919: $as_echo "no" >&6; }
1.23 moko 5920: fi
5921:
1.31 moko 5922: if test "x$ac_ct_DLLTOOL" = x; then
5923: DLLTOOL="false"
5924: else
5925: case $cross_compiling:$ac_tool_warned in
5926: yes:)
5927: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929: ac_tool_warned=yes ;;
5930: esac
5931: DLLTOOL=$ac_ct_DLLTOOL
5932: fi
1.23 moko 5933: else
5934: DLLTOOL="$ac_cv_prog_DLLTOOL"
5935: fi
5936:
5937: test -z "$DLLTOOL" && DLLTOOL=dlltool
5938:
1.10 paf 5939:
5940:
5941:
5942:
5943:
5944:
1.31 moko 5945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5946: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5947: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5948: $as_echo_n "(cached) " >&6
1.23 moko 5949: else
5950: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.10 paf 5951:
5952: case $host_os in
1.23 moko 5953: cygwin* | mingw* | pw32* | cegcc*)
5954: # two different shell functions defined in ltmain.sh
5955: # decide which to use based on capabilities of $DLLTOOL
5956: case `$DLLTOOL --help 2>&1` in
5957: *--identify-strict*)
5958: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5959: ;;
5960: *)
5961: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5962: ;;
5963: esac
1.10 paf 5964: ;;
1.23 moko 5965: *)
5966: # fallback: assume linklib IS sharedlib
5967: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.10 paf 5968: ;;
5969: esac
5970:
5971: fi
1.31 moko 5972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5973: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.23 moko 5974: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5975: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.10 paf 5976:
5977:
5978:
5979:
5980:
5981:
5982:
5983:
1.23 moko 5984: if test -n "$ac_tool_prefix"; then
5985: for ac_prog in ar
5986: do
5987: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5988: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 moko 5989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990: $as_echo_n "checking for $ac_word... " >&6; }
5991: if ${ac_cv_prog_AR+:} false; then :
5992: $as_echo_n "(cached) " >&6
1.23 moko 5993: else
5994: if test -n "$AR"; then
5995: ac_cv_prog_AR="$AR" # Let the user override the test.
5996: else
5997: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998: for as_dir in $PATH
5999: do
6000: IFS=$as_save_IFS
6001: test -z "$as_dir" && as_dir=.
1.31 moko 6002: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6003: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6004: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.31 moko 6005: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6006: break 2
1.10 paf 6007: fi
6008: done
1.31 moko 6009: done
6010: IFS=$as_save_IFS
1.10 paf 6011:
1.6 paf 6012: fi
6013: fi
1.23 moko 6014: AR=$ac_cv_prog_AR
6015: if test -n "$AR"; then
1.31 moko 6016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6017: $as_echo "$AR" >&6; }
1.6 paf 6018: else
1.31 moko 6019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020: $as_echo "no" >&6; }
1.6 paf 6021: fi
6022:
1.31 moko 6023:
1.23 moko 6024: test -n "$AR" && break
6025: done
1.15 paf 6026: fi
1.23 moko 6027: if test -z "$AR"; then
6028: ac_ct_AR=$AR
6029: for ac_prog in ar
6030: do
6031: # Extract the first word of "$ac_prog", so it can be a program name with args.
6032: set dummy $ac_prog; ac_word=$2
1.31 moko 6033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034: $as_echo_n "checking for $ac_word... " >&6; }
6035: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6036: $as_echo_n "(cached) " >&6
1.6 paf 6037: else
1.23 moko 6038: if test -n "$ac_ct_AR"; then
6039: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6040: else
6041: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042: for as_dir in $PATH
1.10 paf 6043: do
1.23 moko 6044: IFS=$as_save_IFS
6045: test -z "$as_dir" && as_dir=.
1.31 moko 6046: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6047: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6048: ac_cv_prog_ac_ct_AR="$ac_prog"
1.31 moko 6049: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6050: break 2
1.10 paf 6051: fi
1.23 moko 6052: done
1.31 moko 6053: done
6054: IFS=$as_save_IFS
1.10 paf 6055:
1.6 paf 6056: fi
6057: fi
1.23 moko 6058: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6059: if test -n "$ac_ct_AR"; then
1.31 moko 6060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6061: $as_echo "$ac_ct_AR" >&6; }
1.10 paf 6062: else
1.31 moko 6063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064: $as_echo "no" >&6; }
1.6 paf 6065: fi
1.10 paf 6066:
1.31 moko 6067:
1.23 moko 6068: test -n "$ac_ct_AR" && break
1.10 paf 6069: done
1.23 moko 6070:
1.31 moko 6071: if test "x$ac_ct_AR" = x; then
6072: AR="false"
6073: else
6074: case $cross_compiling:$ac_tool_warned in
6075: yes:)
6076: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078: ac_tool_warned=yes ;;
6079: esac
6080: AR=$ac_ct_AR
6081: fi
1.6 paf 6082: fi
6083:
1.23 moko 6084: : ${AR=ar}
6085: : ${AR_FLAGS=cru}
6086:
1.10 paf 6087:
6088:
1.6 paf 6089:
1.10 paf 6090:
1.6 paf 6091:
6092:
1.10 paf 6093:
6094:
6095:
6096:
1.31 moko 6097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6098: $as_echo_n "checking for archiver @FILE support... " >&6; }
6099: if ${lt_cv_ar_at_file+:} false; then :
6100: $as_echo_n "(cached) " >&6
1.10 paf 6101: else
1.23 moko 6102: lt_cv_ar_at_file=no
1.31 moko 6103: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 6104: /* end confdefs.h. */
6105:
6106: int
6107: main ()
6108: {
6109:
6110: ;
6111: return 0;
6112: }
6113: _ACEOF
1.31 moko 6114: if ac_fn_c_try_compile "$LINENO"; then :
1.23 moko 6115: echo conftest.$ac_objext > conftest.lst
6116: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.31 moko 6117: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.23 moko 6118: (eval $lt_ar_try) 2>&5
6119: ac_status=$?
1.31 moko 6120: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6121: test $ac_status = 0; }
1.23 moko 6122: if test "$ac_status" -eq 0; then
6123: # Ensure the archiver fails upon bogus file names.
6124: rm -f conftest.$ac_objext libconftest.a
1.31 moko 6125: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.23 moko 6126: (eval $lt_ar_try) 2>&5
6127: ac_status=$?
1.31 moko 6128: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6129: test $ac_status = 0; }
1.23 moko 6130: if test "$ac_status" -ne 0; then
6131: lt_cv_ar_at_file=@
6132: fi
6133: fi
6134: rm -f conftest.* libconftest.a
6135:
1.6 paf 6136: fi
1.31 moko 6137: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.6 paf 6138:
1.23 moko 6139: fi
1.31 moko 6140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6141: $as_echo "$lt_cv_ar_at_file" >&6; }
1.6 paf 6142:
1.23 moko 6143: if test "x$lt_cv_ar_at_file" = xno; then
6144: archiver_list_spec=
1.6 paf 6145: else
1.23 moko 6146: archiver_list_spec=$lt_cv_ar_at_file
1.6 paf 6147: fi
1.10 paf 6148:
6149:
6150:
1.23 moko 6151:
6152:
6153:
6154:
6155: if test -n "$ac_tool_prefix"; then
6156: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6157: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.31 moko 6158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159: $as_echo_n "checking for $ac_word... " >&6; }
6160: if ${ac_cv_prog_STRIP+:} false; then :
6161: $as_echo_n "(cached) " >&6
1.23 moko 6162: else
6163: if test -n "$STRIP"; then
6164: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6165: else
6166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167: for as_dir in $PATH
6168: do
6169: IFS=$as_save_IFS
6170: test -z "$as_dir" && as_dir=.
1.31 moko 6171: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6172: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6173: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.31 moko 6174: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6175: break 2
6176: fi
6177: done
1.31 moko 6178: done
6179: IFS=$as_save_IFS
1.23 moko 6180:
6181: fi
6182: fi
6183: STRIP=$ac_cv_prog_STRIP
6184: if test -n "$STRIP"; then
1.31 moko 6185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6186: $as_echo "$STRIP" >&6; }
1.6 paf 6187: else
1.31 moko 6188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189: $as_echo "no" >&6; }
1.6 paf 6190: fi
6191:
1.31 moko 6192:
1.6 paf 6193: fi
1.23 moko 6194: if test -z "$ac_cv_prog_STRIP"; then
6195: ac_ct_STRIP=$STRIP
6196: # Extract the first word of "strip", so it can be a program name with args.
6197: set dummy strip; ac_word=$2
1.31 moko 6198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199: $as_echo_n "checking for $ac_word... " >&6; }
6200: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6201: $as_echo_n "(cached) " >&6
1.10 paf 6202: else
1.23 moko 6203: if test -n "$ac_ct_STRIP"; then
6204: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 6205: else
1.23 moko 6206: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207: for as_dir in $PATH
6208: do
6209: IFS=$as_save_IFS
6210: test -z "$as_dir" && as_dir=.
1.31 moko 6211: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6212: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6213: ac_cv_prog_ac_ct_STRIP="strip"
1.31 moko 6214: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6215: break 2
6216: fi
6217: done
1.31 moko 6218: done
6219: IFS=$as_save_IFS
1.10 paf 6220:
6221: fi
6222: fi
1.23 moko 6223: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6224: if test -n "$ac_ct_STRIP"; then
1.31 moko 6225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6226: $as_echo "$ac_ct_STRIP" >&6; }
1.23 moko 6227: else
1.31 moko 6228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229: $as_echo "no" >&6; }
1.1 parser 6230: fi
6231:
1.31 moko 6232: if test "x$ac_ct_STRIP" = x; then
6233: STRIP=":"
6234: else
6235: case $cross_compiling:$ac_tool_warned in
6236: yes:)
6237: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239: ac_tool_warned=yes ;;
6240: esac
6241: STRIP=$ac_ct_STRIP
6242: fi
1.23 moko 6243: else
6244: STRIP="$ac_cv_prog_STRIP"
1.10 paf 6245: fi
1.1 parser 6246:
1.23 moko 6247: test -z "$STRIP" && STRIP=:
1.1 parser 6248:
6249:
6250:
6251:
6252:
6253:
1.23 moko 6254: if test -n "$ac_tool_prefix"; then
6255: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6256: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.31 moko 6257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258: $as_echo_n "checking for $ac_word... " >&6; }
6259: if ${ac_cv_prog_RANLIB+:} false; then :
6260: $as_echo_n "(cached) " >&6
1.10 paf 6261: else
1.23 moko 6262: if test -n "$RANLIB"; then
6263: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.10 paf 6264: else
1.23 moko 6265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266: for as_dir in $PATH
6267: do
6268: IFS=$as_save_IFS
6269: test -z "$as_dir" && as_dir=.
1.31 moko 6270: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6271: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6272: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.31 moko 6273: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6274: break 2
6275: fi
6276: done
1.31 moko 6277: done
6278: IFS=$as_save_IFS
1.10 paf 6279:
6280: fi
6281: fi
1.23 moko 6282: RANLIB=$ac_cv_prog_RANLIB
6283: if test -n "$RANLIB"; then
1.31 moko 6284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6285: $as_echo "$RANLIB" >&6; }
1.23 moko 6286: else
1.31 moko 6287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288: $as_echo "no" >&6; }
1.23 moko 6289: fi
1.1 parser 6290:
1.31 moko 6291:
1.10 paf 6292: fi
1.23 moko 6293: if test -z "$ac_cv_prog_RANLIB"; then
6294: ac_ct_RANLIB=$RANLIB
6295: # Extract the first word of "ranlib", so it can be a program name with args.
6296: set dummy ranlib; ac_word=$2
1.31 moko 6297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298: $as_echo_n "checking for $ac_word... " >&6; }
6299: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6300: $as_echo_n "(cached) " >&6
1.23 moko 6301: else
6302: if test -n "$ac_ct_RANLIB"; then
6303: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6304: else
6305: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306: for as_dir in $PATH
6307: do
6308: IFS=$as_save_IFS
6309: test -z "$as_dir" && as_dir=.
1.31 moko 6310: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6311: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6312: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.31 moko 6313: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6314: break 2
6315: fi
6316: done
1.31 moko 6317: done
6318: IFS=$as_save_IFS
1.10 paf 6319:
1.23 moko 6320: fi
6321: fi
6322: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6323: if test -n "$ac_ct_RANLIB"; then
1.31 moko 6324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6325: $as_echo "$ac_ct_RANLIB" >&6; }
1.10 paf 6326: else
1.31 moko 6327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328: $as_echo "no" >&6; }
1.10 paf 6329: fi
6330:
1.31 moko 6331: if test "x$ac_ct_RANLIB" = x; then
6332: RANLIB=":"
6333: else
6334: case $cross_compiling:$ac_tool_warned in
6335: yes:)
6336: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6337: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338: ac_tool_warned=yes ;;
6339: esac
6340: RANLIB=$ac_ct_RANLIB
6341: fi
1.10 paf 6342: else
1.23 moko 6343: RANLIB="$ac_cv_prog_RANLIB"
1.10 paf 6344: fi
6345:
1.23 moko 6346: test -z "$RANLIB" && RANLIB=:
6347:
6348:
6349:
6350:
6351:
6352:
6353: # Determine commands to create old-style static archives.
6354: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6355: old_postinstall_cmds='chmod 644 $oldlib'
6356: old_postuninstall_cmds=
1.10 paf 6357:
1.23 moko 6358: if test -n "$RANLIB"; then
6359: case $host_os in
6360: openbsd*)
6361: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.10 paf 6362: ;;
1.23 moko 6363: *)
6364: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.10 paf 6365: ;;
1.23 moko 6366: esac
6367: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.10 paf 6368: fi
6369:
1.23 moko 6370: case $host_os in
6371: darwin*)
6372: lock_old_archive_extraction=yes ;;
6373: *)
6374: lock_old_archive_extraction=no ;;
6375: esac
1.10 paf 6376:
6377:
6378:
6379:
6380:
6381:
6382:
6383:
6384:
6385:
6386:
6387:
6388:
6389:
6390:
6391:
1.1 parser 6392:
6393:
1.10 paf 6394:
6395:
6396:
6397:
6398:
1.1 parser 6399:
1.10 paf 6400:
1.1 parser 6401:
6402:
1.10 paf 6403:
6404:
6405:
6406:
6407:
6408:
1.1 parser 6409:
1.10 paf 6410:
6411:
6412:
6413:
6414:
1.23 moko 6415: # If no C compiler was specified, use CC.
6416: LTCC=${LTCC-"$CC"}
1.1 parser 6417:
1.23 moko 6418: # If no C compiler flags were specified, use CFLAGS.
6419: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.10 paf 6420:
1.23 moko 6421: # Allow CC to be a program name with arguments.
6422: compiler=$CC
1.10 paf 6423:
1.1 parser 6424:
1.23 moko 6425: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.31 moko 6426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6427: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6428: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6429: $as_echo_n "(cached) " >&6
1.23 moko 6430: else
6431:
6432: # These are sane defaults that work on at least a few old systems.
6433: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.10 paf 6434:
1.23 moko 6435: # Character class describing NM global symbol codes.
6436: symcode='[BCDEGRST]'
1.10 paf 6437:
1.23 moko 6438: # Regexp to match symbols that can be accessed directly from C.
6439: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.10 paf 6440:
1.23 moko 6441: # Define system-specific variables.
6442: case $host_os in
6443: aix*)
6444: symcode='[BCDT]'
6445: ;;
6446: cygwin* | mingw* | pw32* | cegcc*)
6447: symcode='[ABCDGISTW]'
6448: ;;
6449: hpux*)
6450: if test "$host_cpu" = ia64; then
6451: symcode='[ABCDEGRST]'
6452: fi
6453: ;;
6454: irix* | nonstopux*)
6455: symcode='[BCDEGRST]'
6456: ;;
6457: osf*)
6458: symcode='[BCDEGQRST]'
6459: ;;
6460: solaris*)
6461: symcode='[BDRT]'
6462: ;;
6463: sco3.2v5*)
6464: symcode='[DT]'
6465: ;;
6466: sysv4.2uw2*)
6467: symcode='[DT]'
6468: ;;
6469: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6470: symcode='[ABDT]'
6471: ;;
6472: sysv4)
6473: symcode='[DFNSTU]'
6474: ;;
6475: esac
1.10 paf 6476:
1.23 moko 6477: # If we're using GNU nm, then use its standard symbol codes.
6478: case `$NM -V 2>&1` in
6479: *GNU* | *'with BFD'*)
6480: symcode='[ABCDGIRSTW]' ;;
6481: esac
1.10 paf 6482:
1.23 moko 6483: # Transform an extracted symbol line into a proper C declaration.
6484: # Some systems (esp. on ia64) link data and code symbols differently,
6485: # so use this general approach.
6486: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.10 paf 6487:
1.23 moko 6488: # Transform an extracted symbol line into symbol name and symbol address
6489: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6490: 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.10 paf 6491:
1.23 moko 6492: # Handle CRLF in mingw tool chain
6493: opt_cr=
6494: case $build_os in
6495: mingw*)
6496: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6497: ;;
6498: esac
1.10 paf 6499:
1.23 moko 6500: # Try without a prefix underscore, then with it.
6501: for ac_symprfx in "" "_"; do
1.1 parser 6502:
1.23 moko 6503: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6504: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.10 paf 6505:
1.23 moko 6506: # Write the raw and C identifiers.
6507: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6508: # Fake it for dumpbin and say T for any non-static function
6509: # and D for any global variable.
6510: # Also find C++ and __fastcall symbols from MSVC++,
6511: # which start with @ or ?.
6512: lt_cv_sys_global_symbol_pipe="$AWK '"\
6513: " {last_section=section; section=\$ 3};"\
6514: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6515: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6516: " \$ 0!~/External *\|/{next};"\
6517: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6518: " {if(hide[section]) next};"\
6519: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6520: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6521: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6522: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6523: " ' prfx=^$ac_symprfx"
6524: else
6525: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.10 paf 6526: fi
1.23 moko 6527: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.10 paf 6528:
1.23 moko 6529: # Check to see that the pipe works correctly.
6530: pipe_works=no
1.10 paf 6531:
1.23 moko 6532: rm -f conftest*
6533: cat > conftest.$ac_ext <<_LT_EOF
6534: #ifdef __cplusplus
6535: extern "C" {
6536: #endif
6537: char nm_test_var;
6538: void nm_test_func(void);
6539: void nm_test_func(void){}
6540: #ifdef __cplusplus
6541: }
6542: #endif
6543: int main(){nm_test_var='a';nm_test_func();return(0);}
6544: _LT_EOF
1.1 parser 6545:
1.31 moko 6546: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6547: (eval $ac_compile) 2>&5
6548: ac_status=$?
1.31 moko 6549: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550: test $ac_status = 0; }; then
1.23 moko 6551: # Now try to grab the symbols.
6552: nlist=conftest.nm
1.31 moko 6553: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.23 moko 6554: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6555: ac_status=$?
1.31 moko 6556: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6557: test $ac_status = 0; } && test -s "$nlist"; then
1.23 moko 6558: # Try sorting and uniquifying the output.
6559: if sort "$nlist" | uniq > "$nlist"T; then
6560: mv -f "$nlist"T "$nlist"
6561: else
6562: rm -f "$nlist"T
6563: fi
1.10 paf 6564:
1.23 moko 6565: # Make sure that we snagged all the symbols we need.
6566: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6567: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6568: cat <<_LT_EOF > conftest.$ac_ext
6569: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6570: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6571: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6572: relocations are performed -- see ld's documentation on pseudo-relocs. */
6573: # define LT_DLSYM_CONST
6574: #elif defined(__osf__)
6575: /* This system does not cope well with relocations in const data. */
6576: # define LT_DLSYM_CONST
6577: #else
6578: # define LT_DLSYM_CONST const
6579: #endif
1.10 paf 6580:
1.23 moko 6581: #ifdef __cplusplus
6582: extern "C" {
6583: #endif
1.10 paf 6584:
1.23 moko 6585: _LT_EOF
6586: # Now generate the symbol file.
6587: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.10 paf 6588:
1.23 moko 6589: cat <<_LT_EOF >> conftest.$ac_ext
1.10 paf 6590:
1.23 moko 6591: /* The mapping between symbol names and symbols. */
6592: LT_DLSYM_CONST struct {
6593: const char *name;
6594: void *address;
6595: }
6596: lt__PROGRAM__LTX_preloaded_symbols[] =
6597: {
6598: { "@PROGRAM@", (void *) 0 },
6599: _LT_EOF
6600: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6601: cat <<\_LT_EOF >> conftest.$ac_ext
6602: {0, (void *) 0}
6603: };
1.10 paf 6604:
1.23 moko 6605: /* This works around a problem in FreeBSD linker */
6606: #ifdef FREEBSD_WORKAROUND
6607: static const void *lt_preloaded_setup() {
6608: return lt__PROGRAM__LTX_preloaded_symbols;
6609: }
6610: #endif
1.1 parser 6611:
1.23 moko 6612: #ifdef __cplusplus
6613: }
6614: #endif
6615: _LT_EOF
6616: # Now try linking the two files.
6617: mv conftest.$ac_objext conftstm.$ac_objext
6618: lt_globsym_save_LIBS=$LIBS
6619: lt_globsym_save_CFLAGS=$CFLAGS
6620: LIBS="conftstm.$ac_objext"
6621: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.31 moko 6622: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 6623: (eval $ac_link) 2>&5
6624: ac_status=$?
1.31 moko 6625: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.23 moko 6627: pipe_works=yes
6628: fi
6629: LIBS=$lt_globsym_save_LIBS
6630: CFLAGS=$lt_globsym_save_CFLAGS
6631: else
6632: echo "cannot find nm_test_func in $nlist" >&5
6633: fi
6634: else
6635: echo "cannot find nm_test_var in $nlist" >&5
1.10 paf 6636: fi
1.23 moko 6637: else
6638: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6639: fi
6640: else
6641: echo "$progname: failed program was:" >&5
6642: cat conftest.$ac_ext >&5
6643: fi
6644: rm -rf conftest* conftst*
6645:
6646: # Do not use the global_symbol_pipe unless it works.
6647: if test "$pipe_works" = yes; then
6648: break
1.10 paf 6649: else
1.23 moko 6650: lt_cv_sys_global_symbol_pipe=
6651: fi
6652: done
6653:
6654: fi
1.10 paf 6655:
1.23 moko 6656: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6657: lt_cv_sys_global_symbol_to_cdecl=
6658: fi
6659: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.31 moko 6660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6661: $as_echo "failed" >&6; }
1.23 moko 6662: else
1.31 moko 6663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6664: $as_echo "ok" >&6; }
1.23 moko 6665: fi
1.10 paf 6666:
1.23 moko 6667: # Response file support.
6668: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6669: nm_file_list_spec='@'
6670: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6671: nm_file_list_spec='@'
6672: fi
1.10 paf 6673:
6674:
6675:
6676:
6677:
6678:
6679:
6680:
6681:
6682:
6683:
6684:
1.23 moko 6685:
6686:
6687:
6688:
6689:
6690:
6691:
6692:
6693:
6694:
6695:
6696:
6697:
6698:
6699:
1.31 moko 6700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6701: $as_echo_n "checking for sysroot... " >&6; }
1.23 moko 6702:
1.31 moko 6703: # Check whether --with-sysroot was given.
6704: if test "${with_sysroot+set}" = set; then :
6705: withval=$with_sysroot;
1.10 paf 6706: else
1.23 moko 6707: with_sysroot=no
1.31 moko 6708: fi
6709:
1.23 moko 6710:
6711: lt_sysroot=
6712: case ${with_sysroot} in #(
6713: yes)
6714: if test "$GCC" = yes; then
6715: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6716: fi
6717: ;; #(
6718: /*)
6719: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6720: ;; #(
6721: no|'')
6722: ;; #(
6723: *)
1.31 moko 6724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6725: $as_echo "${with_sysroot}" >&6; }
6726: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.23 moko 6727: ;;
6728: esac
6729:
1.31 moko 6730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6731: $as_echo "${lt_sysroot:-no}" >&6; }
1.23 moko 6732:
6733:
1.10 paf 6734:
6735:
6736:
1.31 moko 6737: # Check whether --enable-libtool-lock was given.
6738: if test "${enable_libtool_lock+set}" = set; then :
6739: enableval=$enable_libtool_lock;
6740: fi
1.23 moko 6741:
6742: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6743:
6744: # Some flags need to be propagated to the compiler or linker for good
6745: # libtool support.
6746: case $host in
6747: ia64-*-hpux*)
6748: # Find out which ABI we are using.
6749: echo 'int i;' > conftest.$ac_ext
1.31 moko 6750: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6751: (eval $ac_compile) 2>&5
1.10 paf 6752: ac_status=$?
1.31 moko 6753: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754: test $ac_status = 0; }; then
1.23 moko 6755: case `/usr/bin/file conftest.$ac_objext` in
6756: *ELF-32*)
6757: HPUX_IA64_MODE="32"
6758: ;;
6759: *ELF-64*)
6760: HPUX_IA64_MODE="64"
6761: ;;
6762: esac
6763: fi
6764: rm -rf conftest*
6765: ;;
6766: *-*-irix6*)
6767: # Find out which ABI we are using.
6768: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.31 moko 6769: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6770: (eval $ac_compile) 2>&5
1.16 paf 6771: ac_status=$?
1.31 moko 6772: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773: test $ac_status = 0; }; then
1.23 moko 6774: if test "$lt_cv_prog_gnu_ld" = yes; then
6775: case `/usr/bin/file conftest.$ac_objext` in
6776: *32-bit*)
6777: LD="${LD-ld} -melf32bsmip"
6778: ;;
6779: *N32*)
6780: LD="${LD-ld} -melf32bmipn32"
6781: ;;
6782: *64-bit*)
6783: LD="${LD-ld} -melf64bmip"
6784: ;;
6785: esac
6786: else
6787: case `/usr/bin/file conftest.$ac_objext` in
6788: *32-bit*)
6789: LD="${LD-ld} -32"
6790: ;;
6791: *N32*)
6792: LD="${LD-ld} -n32"
6793: ;;
6794: *64-bit*)
6795: LD="${LD-ld} -64"
6796: ;;
6797: esac
6798: fi
6799: fi
6800: rm -rf conftest*
6801: ;;
6802:
6803: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6804: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6805: # Find out which ABI we are using.
6806: echo 'int i;' > conftest.$ac_ext
1.31 moko 6807: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6808: (eval $ac_compile) 2>&5
1.10 paf 6809: ac_status=$?
1.31 moko 6810: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811: test $ac_status = 0; }; then
1.23 moko 6812: case `/usr/bin/file conftest.o` in
6813: *32-bit*)
6814: case $host in
6815: x86_64-*kfreebsd*-gnu)
6816: LD="${LD-ld} -m elf_i386_fbsd"
6817: ;;
6818: x86_64-*linux*)
6819: LD="${LD-ld} -m elf_i386"
6820: ;;
6821: ppc64-*linux*|powerpc64-*linux*)
6822: LD="${LD-ld} -m elf32ppclinux"
6823: ;;
6824: s390x-*linux*)
6825: LD="${LD-ld} -m elf_s390"
6826: ;;
6827: sparc64-*linux*)
6828: LD="${LD-ld} -m elf32_sparc"
6829: ;;
6830: esac
1.10 paf 6831: ;;
1.23 moko 6832: *64-bit*)
6833: case $host in
6834: x86_64-*kfreebsd*-gnu)
6835: LD="${LD-ld} -m elf_x86_64_fbsd"
6836: ;;
6837: x86_64-*linux*)
6838: LD="${LD-ld} -m elf_x86_64"
6839: ;;
6840: ppc*-*linux*|powerpc*-*linux*)
6841: LD="${LD-ld} -m elf64ppc"
6842: ;;
6843: s390*-*linux*|s390*-*tpf*)
6844: LD="${LD-ld} -m elf64_s390"
6845: ;;
6846: sparc*-*linux*)
6847: LD="${LD-ld} -m elf64_sparc"
6848: ;;
6849: esac
1.10 paf 6850: ;;
1.23 moko 6851: esac
1.10 paf 6852: fi
1.23 moko 6853: rm -rf conftest*
6854: ;;
1.10 paf 6855:
1.23 moko 6856: *-*-sco3.2v5*)
6857: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6858: SAVE_CFLAGS="$CFLAGS"
6859: CFLAGS="$CFLAGS -belf"
1.31 moko 6860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6861: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6862: if ${lt_cv_cc_needs_belf+:} false; then :
6863: $as_echo_n "(cached) " >&6
1.10 paf 6864: else
1.23 moko 6865: ac_ext=c
6866: ac_cpp='$CPP $CPPFLAGS'
6867: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870:
1.31 moko 6871: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 6872: /* end confdefs.h. */
6873:
6874: int
6875: main ()
6876: {
6877:
6878: ;
6879: return 0;
6880: }
6881: _ACEOF
1.31 moko 6882: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 6883: lt_cv_cc_needs_belf=yes
1.10 paf 6884: else
1.31 moko 6885: lt_cv_cc_needs_belf=no
1.10 paf 6886: fi
1.31 moko 6887: rm -f core conftest.err conftest.$ac_objext \
6888: conftest$ac_exeext conftest.$ac_ext
1.23 moko 6889: ac_ext=c
6890: ac_cpp='$CPP $CPPFLAGS'
6891: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 6894:
6895: fi
1.31 moko 6896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6897: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.23 moko 6898: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6899: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6900: CFLAGS="$SAVE_CFLAGS"
6901: fi
6902: ;;
6903: *-*solaris*)
6904: # Find out which ABI we are using.
6905: echo 'int i;' > conftest.$ac_ext
1.31 moko 6906: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6907: (eval $ac_compile) 2>&5
6908: ac_status=$?
1.31 moko 6909: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6910: test $ac_status = 0; }; then
1.23 moko 6911: case `/usr/bin/file conftest.o` in
6912: *64-bit*)
6913: case $lt_cv_prog_gnu_ld in
6914: yes*)
6915: case $host in
6916: i?86-*-solaris*)
6917: LD="${LD-ld} -m elf_x86_64"
6918: ;;
6919: sparc*-*-solaris*)
6920: LD="${LD-ld} -m elf64_sparc"
6921: ;;
6922: esac
6923: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6924: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6925: LD="${LD-ld}_sol2"
6926: fi
6927: ;;
6928: *)
6929: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6930: LD="${LD-ld} -64"
6931: fi
6932: ;;
6933: esac
6934: ;;
6935: esac
6936: fi
6937: rm -rf conftest*
6938: ;;
6939: esac
1.10 paf 6940:
1.23 moko 6941: need_locks="$enable_libtool_lock"
1.10 paf 6942:
1.23 moko 6943: if test -n "$ac_tool_prefix"; then
6944: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6945: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.31 moko 6946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947: $as_echo_n "checking for $ac_word... " >&6; }
6948: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6949: $as_echo_n "(cached) " >&6
1.23 moko 6950: else
6951: if test -n "$MANIFEST_TOOL"; then
6952: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6953: else
6954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955: for as_dir in $PATH
6956: do
6957: IFS=$as_save_IFS
6958: test -z "$as_dir" && as_dir=.
1.31 moko 6959: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6960: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6961: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.31 moko 6962: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6963: break 2
6964: fi
6965: done
1.31 moko 6966: done
6967: IFS=$as_save_IFS
1.10 paf 6968:
1.23 moko 6969: fi
6970: fi
6971: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6972: if test -n "$MANIFEST_TOOL"; then
1.31 moko 6973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6974: $as_echo "$MANIFEST_TOOL" >&6; }
1.23 moko 6975: else
1.31 moko 6976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977: $as_echo "no" >&6; }
1.23 moko 6978: fi
1.10 paf 6979:
1.31 moko 6980:
1.23 moko 6981: fi
6982: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6983: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6984: # Extract the first word of "mt", so it can be a program name with args.
6985: set dummy mt; ac_word=$2
1.31 moko 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_ac_ct_MANIFEST_TOOL+:} false; then :
6989: $as_echo_n "(cached) " >&6
1.10 paf 6990: else
1.23 moko 6991: if test -n "$ac_ct_MANIFEST_TOOL"; then
6992: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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=.
1.31 moko 6999: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7000: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7001: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.31 moko 7002: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7003: break 2
7004: fi
7005: done
1.31 moko 7006: done
7007: IFS=$as_save_IFS
1.10 paf 7008:
1.23 moko 7009: fi
7010: fi
7011: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7012: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.31 moko 7013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7014: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.10 paf 7015: else
1.31 moko 7016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017: $as_echo "no" >&6; }
1.10 paf 7018: fi
7019:
1.31 moko 7020: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7021: MANIFEST_TOOL=":"
7022: else
7023: case $cross_compiling:$ac_tool_warned in
7024: yes:)
7025: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7027: ac_tool_warned=yes ;;
7028: esac
7029: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7030: fi
1.23 moko 7031: else
7032: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
1.10 paf 7033: fi
7034:
1.23 moko 7035: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.31 moko 7036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7037: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7038: if ${lt_cv_path_mainfest_tool+:} false; then :
7039: $as_echo_n "(cached) " >&6
1.10 paf 7040: else
1.23 moko 7041: lt_cv_path_mainfest_tool=no
7042: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7043: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7044: cat conftest.err >&5
7045: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7046: lt_cv_path_mainfest_tool=yes
7047: fi
7048: rm -f conftest*
7049: fi
1.31 moko 7050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7051: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.23 moko 7052: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7053: MANIFEST_TOOL=:
7054: fi
7055:
7056:
7057:
7058:
1.10 paf 7059:
7060:
1.23 moko 7061: case $host_os in
7062: rhapsody* | darwin*)
7063: if test -n "$ac_tool_prefix"; then
7064: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7065: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.31 moko 7066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067: $as_echo_n "checking for $ac_word... " >&6; }
7068: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7069: $as_echo_n "(cached) " >&6
1.23 moko 7070: else
7071: if test -n "$DSYMUTIL"; then
7072: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7073: else
7074: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075: for as_dir in $PATH
7076: do
7077: IFS=$as_save_IFS
7078: test -z "$as_dir" && as_dir=.
1.31 moko 7079: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7080: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7081: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.31 moko 7082: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7083: break 2
7084: fi
7085: done
1.31 moko 7086: done
7087: IFS=$as_save_IFS
1.10 paf 7088:
1.23 moko 7089: fi
7090: fi
7091: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7092: if test -n "$DSYMUTIL"; then
1.31 moko 7093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7094: $as_echo "$DSYMUTIL" >&6; }
1.10 paf 7095: else
1.31 moko 7096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097: $as_echo "no" >&6; }
1.23 moko 7098: fi
1.10 paf 7099:
1.31 moko 7100:
1.10 paf 7101: fi
1.23 moko 7102: if test -z "$ac_cv_prog_DSYMUTIL"; then
7103: ac_ct_DSYMUTIL=$DSYMUTIL
7104: # Extract the first word of "dsymutil", so it can be a program name with args.
7105: set dummy dsymutil; ac_word=$2
1.31 moko 7106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107: $as_echo_n "checking for $ac_word... " >&6; }
7108: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7109: $as_echo_n "(cached) " >&6
1.23 moko 7110: else
7111: if test -n "$ac_ct_DSYMUTIL"; then
7112: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7113: else
7114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115: for as_dir in $PATH
7116: do
7117: IFS=$as_save_IFS
7118: test -z "$as_dir" && as_dir=.
1.31 moko 7119: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7120: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7121: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.31 moko 7122: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7123: break 2
7124: fi
7125: done
1.31 moko 7126: done
7127: IFS=$as_save_IFS
1.10 paf 7128:
1.23 moko 7129: fi
7130: fi
7131: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7132: if test -n "$ac_ct_DSYMUTIL"; then
1.31 moko 7133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7134: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.23 moko 7135: else
1.31 moko 7136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137: $as_echo "no" >&6; }
1.10 paf 7138: fi
7139:
1.31 moko 7140: if test "x$ac_ct_DSYMUTIL" = x; then
7141: DSYMUTIL=":"
7142: else
7143: case $cross_compiling:$ac_tool_warned in
7144: yes:)
7145: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147: ac_tool_warned=yes ;;
7148: esac
7149: DSYMUTIL=$ac_ct_DSYMUTIL
7150: fi
1.10 paf 7151: else
1.23 moko 7152: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.10 paf 7153: fi
7154:
1.23 moko 7155: if test -n "$ac_tool_prefix"; then
7156: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7157: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.31 moko 7158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159: $as_echo_n "checking for $ac_word... " >&6; }
7160: if ${ac_cv_prog_NMEDIT+:} false; then :
7161: $as_echo_n "(cached) " >&6
1.23 moko 7162: else
7163: if test -n "$NMEDIT"; then
7164: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7165: else
7166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167: for as_dir in $PATH
7168: do
7169: IFS=$as_save_IFS
7170: test -z "$as_dir" && as_dir=.
1.31 moko 7171: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7172: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7173: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.31 moko 7174: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7175: break 2
1.10 paf 7176: fi
1.23 moko 7177: done
1.31 moko 7178: done
7179: IFS=$as_save_IFS
1.23 moko 7180:
7181: fi
7182: fi
7183: NMEDIT=$ac_cv_prog_NMEDIT
7184: if test -n "$NMEDIT"; then
1.31 moko 7185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7186: $as_echo "$NMEDIT" >&6; }
1.10 paf 7187: else
1.31 moko 7188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189: $as_echo "no" >&6; }
1.10 paf 7190: fi
7191:
1.31 moko 7192:
1.23 moko 7193: fi
7194: if test -z "$ac_cv_prog_NMEDIT"; then
7195: ac_ct_NMEDIT=$NMEDIT
7196: # Extract the first word of "nmedit", so it can be a program name with args.
7197: set dummy nmedit; ac_word=$2
1.31 moko 7198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199: $as_echo_n "checking for $ac_word... " >&6; }
7200: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7201: $as_echo_n "(cached) " >&6
1.23 moko 7202: else
7203: if test -n "$ac_ct_NMEDIT"; then
7204: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7205: else
7206: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207: for as_dir in $PATH
7208: do
7209: IFS=$as_save_IFS
7210: test -z "$as_dir" && as_dir=.
1.31 moko 7211: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7212: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7213: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.31 moko 7214: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7215: break 2
7216: fi
7217: done
1.31 moko 7218: done
7219: IFS=$as_save_IFS
1.10 paf 7220:
1.23 moko 7221: fi
7222: fi
7223: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7224: if test -n "$ac_ct_NMEDIT"; then
1.31 moko 7225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7226: $as_echo "$ac_ct_NMEDIT" >&6; }
1.23 moko 7227: else
1.31 moko 7228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229: $as_echo "no" >&6; }
1.23 moko 7230: fi
1.10 paf 7231:
1.31 moko 7232: if test "x$ac_ct_NMEDIT" = x; then
7233: NMEDIT=":"
7234: else
7235: case $cross_compiling:$ac_tool_warned in
7236: yes:)
7237: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239: ac_tool_warned=yes ;;
7240: esac
7241: NMEDIT=$ac_ct_NMEDIT
7242: fi
1.10 paf 7243: else
1.23 moko 7244: NMEDIT="$ac_cv_prog_NMEDIT"
1.10 paf 7245: fi
7246:
1.23 moko 7247: if test -n "$ac_tool_prefix"; then
7248: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7249: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.31 moko 7250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251: $as_echo_n "checking for $ac_word... " >&6; }
7252: if ${ac_cv_prog_LIPO+:} false; then :
7253: $as_echo_n "(cached) " >&6
1.23 moko 7254: else
7255: if test -n "$LIPO"; then
7256: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7257: else
7258: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259: for as_dir in $PATH
7260: do
7261: IFS=$as_save_IFS
7262: test -z "$as_dir" && as_dir=.
1.31 moko 7263: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7264: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7265: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.31 moko 7266: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7267: break 2
1.10 paf 7268: fi
1.23 moko 7269: done
1.31 moko 7270: done
7271: IFS=$as_save_IFS
1.23 moko 7272:
7273: fi
7274: fi
7275: LIPO=$ac_cv_prog_LIPO
7276: if test -n "$LIPO"; then
1.31 moko 7277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7278: $as_echo "$LIPO" >&6; }
1.23 moko 7279: else
1.31 moko 7280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281: $as_echo "no" >&6; }
1.10 paf 7282: fi
7283:
1.31 moko 7284:
1.23 moko 7285: fi
7286: if test -z "$ac_cv_prog_LIPO"; then
7287: ac_ct_LIPO=$LIPO
7288: # Extract the first word of "lipo", so it can be a program name with args.
7289: set dummy lipo; ac_word=$2
1.31 moko 7290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291: $as_echo_n "checking for $ac_word... " >&6; }
7292: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7293: $as_echo_n "(cached) " >&6
1.23 moko 7294: else
7295: if test -n "$ac_ct_LIPO"; then
7296: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7297: else
7298: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299: for as_dir in $PATH
7300: do
7301: IFS=$as_save_IFS
7302: test -z "$as_dir" && as_dir=.
1.31 moko 7303: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7304: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7305: ac_cv_prog_ac_ct_LIPO="lipo"
1.31 moko 7306: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7307: break 2
1.10 paf 7308: fi
1.23 moko 7309: done
1.31 moko 7310: done
7311: IFS=$as_save_IFS
1.10 paf 7312:
1.23 moko 7313: fi
7314: fi
7315: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7316: if test -n "$ac_ct_LIPO"; then
1.31 moko 7317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7318: $as_echo "$ac_ct_LIPO" >&6; }
1.23 moko 7319: else
1.31 moko 7320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321: $as_echo "no" >&6; }
1.23 moko 7322: fi
1.10 paf 7323:
1.31 moko 7324: if test "x$ac_ct_LIPO" = x; then
7325: LIPO=":"
7326: else
7327: case $cross_compiling:$ac_tool_warned in
7328: yes:)
7329: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331: ac_tool_warned=yes ;;
7332: esac
7333: LIPO=$ac_ct_LIPO
7334: fi
1.23 moko 7335: else
7336: LIPO="$ac_cv_prog_LIPO"
7337: fi
1.10 paf 7338:
1.23 moko 7339: if test -n "$ac_tool_prefix"; then
7340: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7341: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.31 moko 7342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343: $as_echo_n "checking for $ac_word... " >&6; }
7344: if ${ac_cv_prog_OTOOL+:} false; then :
7345: $as_echo_n "(cached) " >&6
1.23 moko 7346: else
7347: if test -n "$OTOOL"; then
7348: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7349: else
7350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351: for as_dir in $PATH
7352: do
7353: IFS=$as_save_IFS
7354: test -z "$as_dir" && as_dir=.
1.31 moko 7355: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7356: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7357: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.31 moko 7358: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7359: break 2
7360: fi
7361: done
1.31 moko 7362: done
7363: IFS=$as_save_IFS
1.10 paf 7364:
1.23 moko 7365: fi
7366: fi
7367: OTOOL=$ac_cv_prog_OTOOL
7368: if test -n "$OTOOL"; then
1.31 moko 7369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7370: $as_echo "$OTOOL" >&6; }
1.23 moko 7371: else
1.31 moko 7372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373: $as_echo "no" >&6; }
1.23 moko 7374: fi
1.10 paf 7375:
1.31 moko 7376:
1.23 moko 7377: fi
7378: if test -z "$ac_cv_prog_OTOOL"; then
7379: ac_ct_OTOOL=$OTOOL
7380: # Extract the first word of "otool", so it can be a program name with args.
7381: set dummy otool; ac_word=$2
1.31 moko 7382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383: $as_echo_n "checking for $ac_word... " >&6; }
7384: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7385: $as_echo_n "(cached) " >&6
1.23 moko 7386: else
7387: if test -n "$ac_ct_OTOOL"; then
7388: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7389: else
7390: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391: for as_dir in $PATH
7392: do
7393: IFS=$as_save_IFS
7394: test -z "$as_dir" && as_dir=.
1.31 moko 7395: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7396: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7397: ac_cv_prog_ac_ct_OTOOL="otool"
1.31 moko 7398: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7399: break 2
7400: fi
7401: done
1.31 moko 7402: done
7403: IFS=$as_save_IFS
1.10 paf 7404:
1.23 moko 7405: fi
7406: fi
7407: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7408: if test -n "$ac_ct_OTOOL"; then
1.31 moko 7409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7410: $as_echo "$ac_ct_OTOOL" >&6; }
1.23 moko 7411: else
1.31 moko 7412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413: $as_echo "no" >&6; }
1.23 moko 7414: fi
1.10 paf 7415:
1.31 moko 7416: if test "x$ac_ct_OTOOL" = x; then
7417: OTOOL=":"
7418: else
7419: case $cross_compiling:$ac_tool_warned in
7420: yes:)
7421: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423: ac_tool_warned=yes ;;
7424: esac
7425: OTOOL=$ac_ct_OTOOL
7426: fi
1.23 moko 7427: else
7428: OTOOL="$ac_cv_prog_OTOOL"
7429: fi
1.10 paf 7430:
1.23 moko 7431: if test -n "$ac_tool_prefix"; then
7432: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7433: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.31 moko 7434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435: $as_echo_n "checking for $ac_word... " >&6; }
7436: if ${ac_cv_prog_OTOOL64+:} false; then :
7437: $as_echo_n "(cached) " >&6
1.23 moko 7438: else
7439: if test -n "$OTOOL64"; then
7440: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7441: else
7442: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443: for as_dir in $PATH
7444: do
7445: IFS=$as_save_IFS
7446: test -z "$as_dir" && as_dir=.
1.31 moko 7447: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7448: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7449: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.31 moko 7450: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7451: break 2
7452: fi
7453: done
1.31 moko 7454: done
7455: IFS=$as_save_IFS
1.10 paf 7456:
1.23 moko 7457: fi
7458: fi
7459: OTOOL64=$ac_cv_prog_OTOOL64
7460: if test -n "$OTOOL64"; then
1.31 moko 7461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7462: $as_echo "$OTOOL64" >&6; }
1.23 moko 7463: else
1.31 moko 7464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465: $as_echo "no" >&6; }
1.23 moko 7466: fi
1.10 paf 7467:
1.31 moko 7468:
1.23 moko 7469: fi
7470: if test -z "$ac_cv_prog_OTOOL64"; then
7471: ac_ct_OTOOL64=$OTOOL64
7472: # Extract the first word of "otool64", so it can be a program name with args.
7473: set dummy otool64; ac_word=$2
1.31 moko 7474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475: $as_echo_n "checking for $ac_word... " >&6; }
7476: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7477: $as_echo_n "(cached) " >&6
1.23 moko 7478: else
7479: if test -n "$ac_ct_OTOOL64"; then
7480: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7481: else
7482: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483: for as_dir in $PATH
7484: do
7485: IFS=$as_save_IFS
7486: test -z "$as_dir" && as_dir=.
1.31 moko 7487: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7488: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7489: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.31 moko 7490: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7491: break 2
7492: fi
7493: done
1.31 moko 7494: done
7495: IFS=$as_save_IFS
1.10 paf 7496:
1.23 moko 7497: fi
7498: fi
7499: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7500: if test -n "$ac_ct_OTOOL64"; then
1.31 moko 7501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7502: $as_echo "$ac_ct_OTOOL64" >&6; }
1.23 moko 7503: else
1.31 moko 7504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505: $as_echo "no" >&6; }
1.23 moko 7506: fi
1.10 paf 7507:
1.31 moko 7508: if test "x$ac_ct_OTOOL64" = x; then
7509: OTOOL64=":"
7510: else
7511: case $cross_compiling:$ac_tool_warned in
7512: yes:)
7513: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7514: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7515: ac_tool_warned=yes ;;
7516: esac
7517: OTOOL64=$ac_ct_OTOOL64
7518: fi
1.23 moko 7519: else
7520: OTOOL64="$ac_cv_prog_OTOOL64"
7521: fi
1.10 paf 7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
7531:
7532:
7533:
7534:
7535:
7536:
7537:
7538:
7539:
7540:
7541:
7542:
7543:
7544:
7545:
7546:
7547:
7548:
1.31 moko 7549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7550: $as_echo_n "checking for -single_module linker flag... " >&6; }
7551: if ${lt_cv_apple_cc_single_mod+:} false; then :
7552: $as_echo_n "(cached) " >&6
1.23 moko 7553: else
7554: lt_cv_apple_cc_single_mod=no
7555: if test -z "${LT_MULTI_MODULE}"; then
7556: # By default we will add the -single_module flag. You can override
7557: # by either setting the environment variable LT_MULTI_MODULE
7558: # non-empty at configure time, or by adding -multi_module to the
7559: # link flags.
7560: rm -rf libconftest.dylib*
7561: echo "int foo(void){return 1;}" > conftest.c
7562: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7563: -dynamiclib -Wl,-single_module conftest.c" >&5
7564: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7565: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7566: _lt_result=$?
7567: # If there is a non-empty error log, and "single_module"
7568: # appears in it, assume the flag caused a linker warning
7569: if test -s conftest.err && $GREP single_module conftest.err; then
7570: cat conftest.err >&5
7571: # Otherwise, if the output was created with a 0 exit code from
7572: # the compiler, it worked.
7573: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7574: lt_cv_apple_cc_single_mod=yes
7575: else
7576: cat conftest.err >&5
7577: fi
7578: rm -rf libconftest.dylib*
7579: rm -f conftest.*
7580: fi
7581: fi
1.31 moko 7582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7583: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.10 paf 7584:
1.31 moko 7585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7586: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7587: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7588: $as_echo_n "(cached) " >&6
1.23 moko 7589: else
7590: lt_cv_ld_exported_symbols_list=no
7591: save_LDFLAGS=$LDFLAGS
7592: echo "_main" > conftest.sym
7593: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.31 moko 7594: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7595: /* end confdefs.h. */
1.10 paf 7596:
1.23 moko 7597: int
7598: main ()
7599: {
1.10 paf 7600:
1.23 moko 7601: ;
7602: return 0;
7603: }
7604: _ACEOF
1.31 moko 7605: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 7606: lt_cv_ld_exported_symbols_list=yes
7607: else
1.31 moko 7608: lt_cv_ld_exported_symbols_list=no
1.23 moko 7609: fi
1.31 moko 7610: rm -f core conftest.err conftest.$ac_objext \
7611: conftest$ac_exeext conftest.$ac_ext
1.23 moko 7612: LDFLAGS="$save_LDFLAGS"
1.10 paf 7613:
1.23 moko 7614: fi
1.31 moko 7615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7616: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.10 paf 7617:
1.31 moko 7618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7619: $as_echo_n "checking for -force_load linker flag... " >&6; }
7620: if ${lt_cv_ld_force_load+:} false; then :
7621: $as_echo_n "(cached) " >&6
1.23 moko 7622: else
7623: lt_cv_ld_force_load=no
7624: cat > conftest.c << _LT_EOF
7625: int forced_loaded() { return 2;}
7626: _LT_EOF
7627: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7628: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7629: echo "$AR cru libconftest.a conftest.o" >&5
7630: $AR cru libconftest.a conftest.o 2>&5
7631: echo "$RANLIB libconftest.a" >&5
7632: $RANLIB libconftest.a 2>&5
7633: cat > conftest.c << _LT_EOF
7634: int main() { return 0;}
7635: _LT_EOF
7636: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7637: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7638: _lt_result=$?
7639: if test -s conftest.err && $GREP force_load conftest.err; then
7640: cat conftest.err >&5
7641: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7642: lt_cv_ld_force_load=yes
7643: else
7644: cat conftest.err >&5
7645: fi
7646: rm -f conftest.err libconftest.a conftest conftest.c
7647: rm -rf conftest.dSYM
1.10 paf 7648:
1.23 moko 7649: fi
1.31 moko 7650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7651: $as_echo "$lt_cv_ld_force_load" >&6; }
1.23 moko 7652: case $host_os in
7653: rhapsody* | darwin1.[012])
7654: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7655: darwin1.*)
7656: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7657: darwin*) # darwin 5.x on
7658: # if running on 10.5 or later, the deployment target defaults
7659: # to the OS version, if on x86, and 10.4, the deployment
7660: # target defaults to 10.4. Don't you love it?
7661: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7662: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7663: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7664: 10.[012]*)
7665: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7666: 10.*)
7667: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7668: esac
1.10 paf 7669: ;;
1.23 moko 7670: esac
7671: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7672: _lt_dar_single_mod='$single_module'
7673: fi
7674: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7675: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7676: else
7677: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.10 paf 7678: fi
1.23 moko 7679: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7680: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.10 paf 7681: else
1.23 moko 7682: _lt_dsymutil=
1.10 paf 7683: fi
7684: ;;
1.23 moko 7685: esac
1.10 paf 7686:
1.23 moko 7687: ac_ext=c
7688: ac_cpp='$CPP $CPPFLAGS'
7689: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.31 moko 7692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7693: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.23 moko 7694: # On Suns, sometimes $CPP names a directory.
7695: if test -n "$CPP" && test -d "$CPP"; then
7696: CPP=
7697: fi
7698: if test -z "$CPP"; then
1.31 moko 7699: if ${ac_cv_prog_CPP+:} false; then :
7700: $as_echo_n "(cached) " >&6
1.23 moko 7701: else
7702: # Double quotes because CPP needs to be expanded
7703: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7704: do
7705: ac_preproc_ok=false
7706: for ac_c_preproc_warn_flag in '' yes
7707: do
7708: # Use a header file that comes with gcc, so configuring glibc
7709: # with a fresh cross-compiler works.
7710: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7711: # <limits.h> exists even on freestanding compilers.
7712: # On the NeXT, cc -E runs the code through the compiler's parser,
7713: # not just through cpp. "Syntax error" is here to catch this case.
1.31 moko 7714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7715: /* end confdefs.h. */
7716: #ifdef __STDC__
7717: # include <limits.h>
7718: #else
7719: # include <assert.h>
7720: #endif
7721: Syntax error
7722: _ACEOF
1.31 moko 7723: if ac_fn_c_try_cpp "$LINENO"; then :
7724:
1.23 moko 7725: else
7726: # Broken: fails on valid input.
7727: continue
7728: fi
1.31 moko 7729: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7730:
1.31 moko 7731: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 7732: # can be detected and how.
1.31 moko 7733: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7734: /* end confdefs.h. */
7735: #include <ac_nonexistent.h>
7736: _ACEOF
1.31 moko 7737: if ac_fn_c_try_cpp "$LINENO"; then :
1.23 moko 7738: # Broken: success on invalid input.
7739: continue
7740: else
7741: # Passes both tests.
7742: ac_preproc_ok=:
7743: break
1.10 paf 7744: fi
1.31 moko 7745: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7746:
1.23 moko 7747: done
7748: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 moko 7749: rm -f conftest.i conftest.err conftest.$ac_ext
7750: if $ac_preproc_ok; then :
1.23 moko 7751: break
7752: fi
1.10 paf 7753:
1.23 moko 7754: done
7755: ac_cv_prog_CPP=$CPP
1.10 paf 7756:
1.23 moko 7757: fi
7758: CPP=$ac_cv_prog_CPP
7759: else
7760: ac_cv_prog_CPP=$CPP
7761: fi
1.31 moko 7762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7763: $as_echo "$CPP" >&6; }
1.23 moko 7764: ac_preproc_ok=false
7765: for ac_c_preproc_warn_flag in '' yes
7766: do
7767: # Use a header file that comes with gcc, so configuring glibc
7768: # with a fresh cross-compiler works.
7769: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7770: # <limits.h> exists even on freestanding compilers.
7771: # On the NeXT, cc -E runs the code through the compiler's parser,
7772: # not just through cpp. "Syntax error" is here to catch this case.
1.31 moko 7773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7774: /* end confdefs.h. */
7775: #ifdef __STDC__
7776: # include <limits.h>
7777: #else
7778: # include <assert.h>
7779: #endif
7780: Syntax error
7781: _ACEOF
1.31 moko 7782: if ac_fn_c_try_cpp "$LINENO"; then :
7783:
1.23 moko 7784: else
7785: # Broken: fails on valid input.
7786: continue
7787: fi
1.31 moko 7788: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7789:
1.31 moko 7790: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 7791: # can be detected and how.
1.31 moko 7792: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7793: /* end confdefs.h. */
7794: #include <ac_nonexistent.h>
7795: _ACEOF
1.31 moko 7796: if ac_fn_c_try_cpp "$LINENO"; then :
1.23 moko 7797: # Broken: success on invalid input.
7798: continue
7799: else
7800: # Passes both tests.
7801: ac_preproc_ok=:
7802: break
7803: fi
1.31 moko 7804: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7805:
1.23 moko 7806: done
7807: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 moko 7808: rm -f conftest.i conftest.err conftest.$ac_ext
7809: if $ac_preproc_ok; then :
7810:
1.23 moko 7811: else
1.31 moko 7812: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7813: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7814: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7815: See \`config.log' for more details" "$LINENO" 5; }
1.23 moko 7816: fi
1.10 paf 7817:
1.23 moko 7818: ac_ext=c
7819: ac_cpp='$CPP $CPPFLAGS'
7820: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 7823:
7824:
1.31 moko 7825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7826: $as_echo_n "checking for ANSI C header files... " >&6; }
7827: if ${ac_cv_header_stdc+:} false; then :
7828: $as_echo_n "(cached) " >&6
1.23 moko 7829: else
1.31 moko 7830: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7831: /* end confdefs.h. */
7832: #include <stdlib.h>
7833: #include <stdarg.h>
7834: #include <string.h>
7835: #include <float.h>
1.10 paf 7836:
1.23 moko 7837: int
7838: main ()
7839: {
1.10 paf 7840:
1.23 moko 7841: ;
7842: return 0;
7843: }
7844: _ACEOF
1.31 moko 7845: if ac_fn_c_try_compile "$LINENO"; then :
1.23 moko 7846: ac_cv_header_stdc=yes
7847: else
1.31 moko 7848: ac_cv_header_stdc=no
1.23 moko 7849: fi
1.31 moko 7850: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 7851:
1.23 moko 7852: if test $ac_cv_header_stdc = yes; then
7853: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.31 moko 7854: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7855: /* end confdefs.h. */
7856: #include <string.h>
1.10 paf 7857:
1.23 moko 7858: _ACEOF
7859: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.31 moko 7860: $EGREP "memchr" >/dev/null 2>&1; then :
7861:
1.23 moko 7862: else
7863: ac_cv_header_stdc=no
7864: fi
7865: rm -f conftest*
7866:
7867: fi
1.10 paf 7868:
1.23 moko 7869: if test $ac_cv_header_stdc = yes; then
7870: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.31 moko 7871: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7872: /* end confdefs.h. */
7873: #include <stdlib.h>
1.10 paf 7874:
1.23 moko 7875: _ACEOF
7876: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.31 moko 7877: $EGREP "free" >/dev/null 2>&1; then :
7878:
1.23 moko 7879: else
7880: ac_cv_header_stdc=no
7881: fi
7882: rm -f conftest*
1.10 paf 7883:
1.23 moko 7884: fi
1.10 paf 7885:
1.23 moko 7886: if test $ac_cv_header_stdc = yes; then
7887: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.31 moko 7888: if test "$cross_compiling" = yes; then :
1.23 moko 7889: :
7890: else
1.31 moko 7891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7892: /* end confdefs.h. */
7893: #include <ctype.h>
1.31 moko 7894: #include <stdlib.h>
1.23 moko 7895: #if ((' ' & 0x0FF) == 0x020)
7896: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7897: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7898: #else
7899: # define ISLOWER(c) \
7900: (('a' <= (c) && (c) <= 'i') \
7901: || ('j' <= (c) && (c) <= 'r') \
7902: || ('s' <= (c) && (c) <= 'z'))
7903: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7904: #endif
1.10 paf 7905:
1.23 moko 7906: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7907: int
7908: main ()
7909: {
7910: int i;
7911: for (i = 0; i < 256; i++)
7912: if (XOR (islower (i), ISLOWER (i))
7913: || toupper (i) != TOUPPER (i))
1.31 moko 7914: return 2;
7915: return 0;
1.23 moko 7916: }
7917: _ACEOF
1.31 moko 7918: if ac_fn_c_try_run "$LINENO"; then :
7919:
1.23 moko 7920: else
1.31 moko 7921: ac_cv_header_stdc=no
1.23 moko 7922: fi
1.31 moko 7923: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7924: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.23 moko 7925: fi
1.31 moko 7926:
1.23 moko 7927: fi
7928: fi
1.31 moko 7929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7930: $as_echo "$ac_cv_header_stdc" >&6; }
1.23 moko 7931: if test $ac_cv_header_stdc = yes; then
1.10 paf 7932:
1.31 moko 7933: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.10 paf 7934:
1.23 moko 7935: fi
1.10 paf 7936:
1.23 moko 7937: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7938: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7939: inttypes.h stdint.h unistd.h
1.31 moko 7940: do :
7941: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7942: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7943: "
7944: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.23 moko 7945: cat >>confdefs.h <<_ACEOF
1.31 moko 7946: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 moko 7947: _ACEOF
7948:
1.10 paf 7949: fi
1.23 moko 7950:
7951: done
7952:
7953:
7954: for ac_header in dlfcn.h
1.31 moko 7955: do :
7956: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7957: "
7958: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.23 moko 7959: cat >>confdefs.h <<_ACEOF
1.31 moko 7960: #define HAVE_DLFCN_H 1
1.10 paf 7961: _ACEOF
1.16 paf 7962:
1.23 moko 7963: fi
7964:
7965: done
7966:
1.16 paf 7967:
7968:
7969:
1.23 moko 7970: func_stripname_cnf ()
1.10 paf 7971: {
1.23 moko 7972: case ${2} in
7973: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7974: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7975: esac
7976: } # func_stripname_cnf
7977:
7978:
7979:
7980:
7981:
7982: # Set options
1.31 moko 7983: # Check whether --enable-static was given.
7984: if test "${enable_static+set}" = set; then :
7985: enableval=$enable_static; p=${PACKAGE-default}
1.30 moko 7986: case $enableval in
7987: yes) enable_static=yes ;;
7988: no) enable_static=no ;;
7989: *)
7990: enable_static=no
7991: # Look at the argument we got. We use all the common list separators.
7992: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7993: for pkg in $enableval; do
7994: IFS="$lt_save_ifs"
7995: if test "X$pkg" = "X$p"; then
7996: enable_static=yes
7997: fi
7998: done
7999: IFS="$lt_save_ifs"
8000: ;;
8001: esac
8002: else
8003: enable_static=no
1.31 moko 8004: fi
8005:
1.30 moko 8006:
8007:
8008:
8009:
8010:
8011:
1.23 moko 8012: enable_dlopen=yes
8013: enable_win32_dll=yes
1.10 paf 8014:
1.23 moko 8015: case $host in
8016: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8017: if test -n "$ac_tool_prefix"; then
8018: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8019: set dummy ${ac_tool_prefix}as; ac_word=$2
1.31 moko 8020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021: $as_echo_n "checking for $ac_word... " >&6; }
8022: if ${ac_cv_prog_AS+:} false; then :
8023: $as_echo_n "(cached) " >&6
1.23 moko 8024: else
8025: if test -n "$AS"; then
8026: ac_cv_prog_AS="$AS" # Let the user override the test.
8027: else
8028: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029: for as_dir in $PATH
8030: do
8031: IFS=$as_save_IFS
8032: test -z "$as_dir" && as_dir=.
1.31 moko 8033: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8034: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8035: ac_cv_prog_AS="${ac_tool_prefix}as"
1.31 moko 8036: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8037: break 2
8038: fi
8039: done
1.31 moko 8040: done
8041: IFS=$as_save_IFS
1.23 moko 8042:
8043: fi
8044: fi
8045: AS=$ac_cv_prog_AS
8046: if test -n "$AS"; then
1.31 moko 8047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8048: $as_echo "$AS" >&6; }
1.23 moko 8049: else
1.31 moko 8050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051: $as_echo "no" >&6; }
1.23 moko 8052: fi
8053:
1.31 moko 8054:
1.23 moko 8055: fi
8056: if test -z "$ac_cv_prog_AS"; then
8057: ac_ct_AS=$AS
8058: # Extract the first word of "as", so it can be a program name with args.
8059: set dummy as; ac_word=$2
1.31 moko 8060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061: $as_echo_n "checking for $ac_word... " >&6; }
8062: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8063: $as_echo_n "(cached) " >&6
1.23 moko 8064: else
8065: if test -n "$ac_ct_AS"; then
8066: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
1.10 paf 8067: else
1.23 moko 8068: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069: for as_dir in $PATH
8070: do
8071: IFS=$as_save_IFS
8072: test -z "$as_dir" && as_dir=.
1.31 moko 8073: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8074: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8075: ac_cv_prog_ac_ct_AS="as"
1.31 moko 8076: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8077: break 2
8078: fi
8079: done
1.31 moko 8080: done
8081: IFS=$as_save_IFS
1.10 paf 8082:
1.23 moko 8083: fi
1.10 paf 8084: fi
1.23 moko 8085: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8086: if test -n "$ac_ct_AS"; then
1.31 moko 8087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8088: $as_echo "$ac_ct_AS" >&6; }
1.23 moko 8089: else
1.31 moko 8090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091: $as_echo "no" >&6; }
1.10 paf 8092: fi
1.23 moko 8093:
1.31 moko 8094: if test "x$ac_ct_AS" = x; then
8095: AS="false"
8096: else
8097: case $cross_compiling:$ac_tool_warned in
8098: yes:)
8099: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8100: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8101: ac_tool_warned=yes ;;
8102: esac
8103: AS=$ac_ct_AS
8104: fi
1.10 paf 8105: else
1.23 moko 8106: AS="$ac_cv_prog_AS"
8107: fi
8108:
8109: if test -n "$ac_tool_prefix"; then
8110: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8111: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.31 moko 8112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113: $as_echo_n "checking for $ac_word... " >&6; }
8114: if ${ac_cv_prog_DLLTOOL+:} false; then :
8115: $as_echo_n "(cached) " >&6
1.10 paf 8116: else
1.23 moko 8117: if test -n "$DLLTOOL"; then
8118: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.10 paf 8119: else
1.23 moko 8120: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121: for as_dir in $PATH
8122: do
8123: IFS=$as_save_IFS
8124: test -z "$as_dir" && as_dir=.
1.31 moko 8125: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8127: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.31 moko 8128: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8129: break 2
8130: fi
8131: done
1.31 moko 8132: done
8133: IFS=$as_save_IFS
1.10 paf 8134:
8135: fi
8136: fi
1.23 moko 8137: DLLTOOL=$ac_cv_prog_DLLTOOL
8138: if test -n "$DLLTOOL"; then
1.31 moko 8139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8140: $as_echo "$DLLTOOL" >&6; }
1.10 paf 8141: else
1.31 moko 8142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143: $as_echo "no" >&6; }
1.23 moko 8144: fi
8145:
1.31 moko 8146:
1.23 moko 8147: fi
8148: if test -z "$ac_cv_prog_DLLTOOL"; then
8149: ac_ct_DLLTOOL=$DLLTOOL
8150: # Extract the first word of "dlltool", so it can be a program name with args.
8151: set dummy dlltool; ac_word=$2
1.31 moko 8152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153: $as_echo_n "checking for $ac_word... " >&6; }
8154: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8155: $as_echo_n "(cached) " >&6
1.10 paf 8156: else
1.23 moko 8157: if test -n "$ac_ct_DLLTOOL"; then
8158: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.10 paf 8159: else
1.23 moko 8160: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161: for as_dir in $PATH
8162: do
8163: IFS=$as_save_IFS
8164: test -z "$as_dir" && as_dir=.
1.31 moko 8165: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8166: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8167: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.31 moko 8168: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8169: break 2
8170: fi
8171: done
1.31 moko 8172: done
8173: IFS=$as_save_IFS
1.10 paf 8174:
1.23 moko 8175: fi
1.10 paf 8176: fi
1.23 moko 8177: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8178: if test -n "$ac_ct_DLLTOOL"; then
1.31 moko 8179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8180: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.23 moko 8181: else
1.31 moko 8182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183: $as_echo "no" >&6; }
1.10 paf 8184: fi
1.23 moko 8185:
1.31 moko 8186: if test "x$ac_ct_DLLTOOL" = x; then
8187: DLLTOOL="false"
8188: else
8189: case $cross_compiling:$ac_tool_warned in
8190: yes:)
8191: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8192: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8193: ac_tool_warned=yes ;;
8194: esac
8195: DLLTOOL=$ac_ct_DLLTOOL
8196: fi
1.10 paf 8197: else
1.23 moko 8198: DLLTOOL="$ac_cv_prog_DLLTOOL"
8199: fi
8200:
8201: if test -n "$ac_tool_prefix"; then
8202: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8203: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.31 moko 8204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205: $as_echo_n "checking for $ac_word... " >&6; }
8206: if ${ac_cv_prog_OBJDUMP+:} false; then :
8207: $as_echo_n "(cached) " >&6
1.10 paf 8208: else
1.23 moko 8209: if test -n "$OBJDUMP"; then
8210: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8211: else
8212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213: for as_dir in $PATH
8214: do
8215: IFS=$as_save_IFS
8216: test -z "$as_dir" && as_dir=.
1.31 moko 8217: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8218: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8219: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.31 moko 8220: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8221: break 2
8222: fi
8223: done
1.31 moko 8224: done
8225: IFS=$as_save_IFS
1.23 moko 8226:
8227: fi
8228: fi
8229: OBJDUMP=$ac_cv_prog_OBJDUMP
8230: if test -n "$OBJDUMP"; then
1.31 moko 8231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8232: $as_echo "$OBJDUMP" >&6; }
1.23 moko 8233: else
1.31 moko 8234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235: $as_echo "no" >&6; }
1.23 moko 8236: fi
1.10 paf 8237:
1.31 moko 8238:
1.23 moko 8239: fi
8240: if test -z "$ac_cv_prog_OBJDUMP"; then
8241: ac_ct_OBJDUMP=$OBJDUMP
8242: # Extract the first word of "objdump", so it can be a program name with args.
8243: set dummy objdump; ac_word=$2
1.31 moko 8244: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245: $as_echo_n "checking for $ac_word... " >&6; }
8246: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8247: $as_echo_n "(cached) " >&6
1.23 moko 8248: else
8249: if test -n "$ac_ct_OBJDUMP"; then
8250: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.10 paf 8251: else
1.23 moko 8252: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253: for as_dir in $PATH
8254: do
8255: IFS=$as_save_IFS
8256: test -z "$as_dir" && as_dir=.
1.31 moko 8257: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8258: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8259: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.31 moko 8260: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8261: break 2
8262: fi
8263: done
1.31 moko 8264: done
8265: IFS=$as_save_IFS
1.10 paf 8266:
1.23 moko 8267: fi
1.10 paf 8268: fi
1.23 moko 8269: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8270: if test -n "$ac_ct_OBJDUMP"; then
1.31 moko 8271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8272: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.23 moko 8273: else
1.31 moko 8274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275: $as_echo "no" >&6; }
1.10 paf 8276: fi
1.23 moko 8277:
1.31 moko 8278: if test "x$ac_ct_OBJDUMP" = x; then
8279: OBJDUMP="false"
8280: else
8281: case $cross_compiling:$ac_tool_warned in
8282: yes:)
8283: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8284: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8285: ac_tool_warned=yes ;;
8286: esac
8287: OBJDUMP=$ac_ct_OBJDUMP
8288: fi
1.23 moko 8289: else
8290: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.10 paf 8291: fi
8292:
1.23 moko 8293: ;;
8294: esac
8295:
8296: test -z "$AS" && AS=as
8297:
8298:
8299:
8300:
1.10 paf 8301:
1.23 moko 8302: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.10 paf 8303:
8304:
8305:
8306:
8307:
1.23 moko 8308: test -z "$OBJDUMP" && OBJDUMP=objdump
1.10 paf 8309:
8310:
8311:
8312:
8313:
8314:
8315:
8316:
8317:
1.31 moko 8318: # Check whether --enable-shared was given.
8319: if test "${enable_shared+set}" = set; then :
8320: enableval=$enable_shared; p=${PACKAGE-default}
1.23 moko 8321: case $enableval in
8322: yes) enable_shared=yes ;;
8323: no) enable_shared=no ;;
8324: *)
8325: enable_shared=no
8326: # Look at the argument we got. We use all the common list separators.
8327: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8328: for pkg in $enableval; do
8329: IFS="$lt_save_ifs"
8330: if test "X$pkg" = "X$p"; then
8331: enable_shared=yes
8332: fi
8333: done
8334: IFS="$lt_save_ifs"
8335: ;;
8336: esac
1.10 paf 8337: else
1.23 moko 8338: enable_shared=yes
1.31 moko 8339: fi
1.10 paf 8340:
8341:
8342:
8343:
8344:
8345:
8346:
8347:
8348:
8349:
1.31 moko 8350:
8351: # Check whether --with-pic was given.
8352: if test "${with_pic+set}" = set; then :
8353: withval=$with_pic; lt_p=${PACKAGE-default}
1.23 moko 8354: case $withval in
8355: yes|no) pic_mode=$withval ;;
8356: *)
8357: pic_mode=default
8358: # Look at the argument we got. We use all the common list separators.
8359: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8360: for lt_pkg in $withval; do
8361: IFS="$lt_save_ifs"
8362: if test "X$lt_pkg" = "X$lt_p"; then
8363: pic_mode=yes
8364: fi
8365: done
8366: IFS="$lt_save_ifs"
8367: ;;
1.10 paf 8368: esac
1.23 moko 8369: else
8370: pic_mode=default
1.31 moko 8371: fi
8372:
1.10 paf 8373:
1.23 moko 8374: test -z "$pic_mode" && pic_mode=default
1.10 paf 8375:
8376:
8377:
8378:
8379:
8380:
8381:
1.31 moko 8382: # Check whether --enable-fast-install was given.
8383: if test "${enable_fast_install+set}" = set; then :
8384: enableval=$enable_fast_install; p=${PACKAGE-default}
1.23 moko 8385: case $enableval in
8386: yes) enable_fast_install=yes ;;
8387: no) enable_fast_install=no ;;
1.10 paf 8388: *)
1.23 moko 8389: enable_fast_install=no
8390: # Look at the argument we got. We use all the common list separators.
8391: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8392: for pkg in $enableval; do
8393: IFS="$lt_save_ifs"
8394: if test "X$pkg" = "X$p"; then
8395: enable_fast_install=yes
8396: fi
8397: done
8398: IFS="$lt_save_ifs"
1.10 paf 8399: ;;
8400: esac
1.23 moko 8401: else
8402: enable_fast_install=yes
1.31 moko 8403: fi
8404:
1.10 paf 8405:
8406:
8407:
8408:
8409:
8410:
8411:
8412:
8413:
8414:
1.23 moko 8415: # This can be used to rebuild libtool when needed
8416: LIBTOOL_DEPS="$ltmain"
1.10 paf 8417:
1.23 moko 8418: # Always use our own libtool.
8419: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.10 paf 8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
8432:
8433:
8434:
8435:
8436:
8437:
8438:
8439:
8440:
8441:
8442:
8443:
8444:
8445:
8446:
8447:
8448:
8449:
1.23 moko 8450: test -z "$LN_S" && LN_S="ln -s"
1.10 paf 8451:
8452:
8453:
8454:
8455:
8456:
8457:
8458:
8459:
8460:
8461:
8462:
8463:
8464:
1.23 moko 8465: if test -n "${ZSH_VERSION+set}" ; then
8466: setopt NO_GLOB_SUBST
8467: fi
1.10 paf 8468:
1.31 moko 8469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8470: $as_echo_n "checking for objdir... " >&6; }
8471: if ${lt_cv_objdir+:} false; then :
8472: $as_echo_n "(cached) " >&6
1.23 moko 8473: else
8474: rm -f .libs 2>/dev/null
8475: mkdir .libs 2>/dev/null
8476: if test -d .libs; then
8477: lt_cv_objdir=.libs
8478: else
8479: # MS-DOS does not allow filenames that begin with a dot.
8480: lt_cv_objdir=_libs
8481: fi
8482: rmdir .libs 2>/dev/null
8483: fi
1.31 moko 8484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8485: $as_echo "$lt_cv_objdir" >&6; }
1.23 moko 8486: objdir=$lt_cv_objdir
1.10 paf 8487:
8488:
8489:
8490:
8491:
1.23 moko 8492: cat >>confdefs.h <<_ACEOF
8493: #define LT_OBJDIR "$lt_cv_objdir/"
8494: _ACEOF
1.10 paf 8495:
8496:
8497:
8498:
1.23 moko 8499: case $host_os in
8500: aix3*)
8501: # AIX sometimes has problems with the GCC collect2 program. For some
8502: # reason, if we set the COLLECT_NAMES environment variable, the problems
8503: # vanish in a puff of smoke.
8504: if test "X${COLLECT_NAMES+set}" != Xset; then
8505: COLLECT_NAMES=
8506: export COLLECT_NAMES
8507: fi
8508: ;;
8509: esac
1.10 paf 8510:
1.23 moko 8511: # Global variables:
8512: ofile=libtool
8513: can_build_shared=yes
1.10 paf 8514:
1.23 moko 8515: # All known linkers require a `.a' archive for static linking (except MSVC,
8516: # which needs '.lib').
8517: libext=a
1.10 paf 8518:
1.23 moko 8519: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.10 paf 8520:
1.23 moko 8521: old_CC="$CC"
8522: old_CFLAGS="$CFLAGS"
1.10 paf 8523:
1.23 moko 8524: # Set sane defaults for various variables
8525: test -z "$CC" && CC=cc
8526: test -z "$LTCC" && LTCC=$CC
8527: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8528: test -z "$LD" && LD=ld
8529: test -z "$ac_objext" && ac_objext=o
1.10 paf 8530:
1.23 moko 8531: for cc_temp in $compiler""; do
8532: case $cc_temp in
8533: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8534: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8535: \-*) ;;
8536: *) break;;
8537: esac
8538: done
8539: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.10 paf 8540:
8541:
1.23 moko 8542: # Only perform the check for file, if the check method requires it
8543: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8544: case $deplibs_check_method in
8545: file_magic*)
8546: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.31 moko 8547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8548: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8549: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8550: $as_echo_n "(cached) " >&6
1.23 moko 8551: else
8552: case $MAGIC_CMD in
8553: [\\/*] | ?:[\\/]*)
8554: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8555: ;;
8556: *)
8557: lt_save_MAGIC_CMD="$MAGIC_CMD"
8558: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8559: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8560: for ac_dir in $ac_dummy; do
8561: IFS="$lt_save_ifs"
8562: test -z "$ac_dir" && ac_dir=.
8563: if test -f $ac_dir/${ac_tool_prefix}file; then
8564: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8565: if test -n "$file_magic_test_file"; then
8566: case $deplibs_check_method in
8567: "file_magic "*)
8568: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8569: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8570: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8571: $EGREP "$file_magic_regex" > /dev/null; then
8572: :
8573: else
8574: cat <<_LT_EOF 1>&2
1.10 paf 8575:
1.23 moko 8576: *** Warning: the command libtool uses to detect shared libraries,
8577: *** $file_magic_cmd, produces output that libtool cannot recognize.
8578: *** The result is that libtool may fail to recognize shared libraries
8579: *** as such. This will affect the creation of libtool libraries that
8580: *** depend on shared libraries, but programs linked with such libtool
8581: *** libraries will work regardless of this problem. Nevertheless, you
8582: *** may want to report the problem to your system manager and/or to
8583: *** bug-libtool@gnu.org
1.10 paf 8584:
1.23 moko 8585: _LT_EOF
8586: fi ;;
8587: esac
8588: fi
8589: break
8590: fi
8591: done
8592: IFS="$lt_save_ifs"
8593: MAGIC_CMD="$lt_save_MAGIC_CMD"
8594: ;;
8595: esac
8596: fi
1.10 paf 8597:
1.23 moko 8598: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8599: if test -n "$MAGIC_CMD"; then
1.31 moko 8600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8601: $as_echo "$MAGIC_CMD" >&6; }
1.23 moko 8602: else
1.31 moko 8603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604: $as_echo "no" >&6; }
1.23 moko 8605: fi
1.10 paf 8606:
8607:
8608:
8609:
8610:
1.23 moko 8611: if test -z "$lt_cv_path_MAGIC_CMD"; then
8612: if test -n "$ac_tool_prefix"; then
1.31 moko 8613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8614: $as_echo_n "checking for file... " >&6; }
8615: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8616: $as_echo_n "(cached) " >&6
1.23 moko 8617: else
8618: case $MAGIC_CMD in
8619: [\\/*] | ?:[\\/]*)
8620: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8621: ;;
8622: *)
8623: lt_save_MAGIC_CMD="$MAGIC_CMD"
8624: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8625: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8626: for ac_dir in $ac_dummy; do
8627: IFS="$lt_save_ifs"
8628: test -z "$ac_dir" && ac_dir=.
8629: if test -f $ac_dir/file; then
8630: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8631: if test -n "$file_magic_test_file"; then
8632: case $deplibs_check_method in
8633: "file_magic "*)
8634: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8635: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8636: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8637: $EGREP "$file_magic_regex" > /dev/null; then
8638: :
8639: else
8640: cat <<_LT_EOF 1>&2
1.10 paf 8641:
1.23 moko 8642: *** Warning: the command libtool uses to detect shared libraries,
8643: *** $file_magic_cmd, produces output that libtool cannot recognize.
8644: *** The result is that libtool may fail to recognize shared libraries
8645: *** as such. This will affect the creation of libtool libraries that
8646: *** depend on shared libraries, but programs linked with such libtool
8647: *** libraries will work regardless of this problem. Nevertheless, you
8648: *** may want to report the problem to your system manager and/or to
8649: *** bug-libtool@gnu.org
1.10 paf 8650:
1.23 moko 8651: _LT_EOF
8652: fi ;;
8653: esac
8654: fi
8655: break
8656: fi
8657: done
8658: IFS="$lt_save_ifs"
8659: MAGIC_CMD="$lt_save_MAGIC_CMD"
8660: ;;
8661: esac
8662: fi
1.10 paf 8663:
1.23 moko 8664: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8665: if test -n "$MAGIC_CMD"; then
1.31 moko 8666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8667: $as_echo "$MAGIC_CMD" >&6; }
1.23 moko 8668: else
1.31 moko 8669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670: $as_echo "no" >&6; }
1.10 paf 8671: fi
8672:
8673:
1.23 moko 8674: else
8675: MAGIC_CMD=:
8676: fi
1.10 paf 8677: fi
8678:
1.23 moko 8679: fi
8680: ;;
8681: esac
1.10 paf 8682:
1.23 moko 8683: # Use C for the default configuration in the libtool script
1.10 paf 8684:
1.23 moko 8685: lt_save_CC="$CC"
8686: ac_ext=c
8687: ac_cpp='$CPP $CPPFLAGS'
8688: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 8691:
8692:
1.23 moko 8693: # Source file extension for C test sources.
8694: ac_ext=c
1.10 paf 8695:
1.23 moko 8696: # Object file extension for compiled C test sources.
8697: objext=o
8698: objext=$objext
1.10 paf 8699:
1.23 moko 8700: # Code to be used in simple compile tests
8701: lt_simple_compile_test_code="int some_variable = 0;"
1.10 paf 8702:
1.23 moko 8703: # Code to be used in simple link tests
8704: lt_simple_link_test_code='int main(){return(0);}'
1.10 paf 8705:
8706:
8707:
8708:
8709:
8710:
8711:
1.23 moko 8712: # If no C compiler was specified, use CC.
8713: LTCC=${LTCC-"$CC"}
1.10 paf 8714:
1.23 moko 8715: # If no C compiler flags were specified, use CFLAGS.
8716: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.10 paf 8717:
1.23 moko 8718: # Allow CC to be a program name with arguments.
8719: compiler=$CC
1.10 paf 8720:
1.23 moko 8721: # Save the default compiler, since it gets overwritten when the other
8722: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8723: compiler_DEFAULT=$CC
8724:
8725: # save warnings/boilerplate of simple test code
8726: ac_outfile=conftest.$ac_objext
8727: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8728: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8729: _lt_compiler_boilerplate=`cat conftest.err`
8730: $RM conftest*
8731:
8732: ac_outfile=conftest.$ac_objext
8733: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8734: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8735: _lt_linker_boilerplate=`cat conftest.err`
8736: $RM -r conftest*
8737:
8738:
8739: ## CAVEAT EMPTOR:
8740: ## There is no encapsulation within the following macros, do not change
8741: ## the running order or otherwise move them around unless you know exactly
8742: ## what you are doing...
8743: if test -n "$compiler"; then
1.10 paf 8744:
1.23 moko 8745: lt_prog_compiler_no_builtin_flag=
1.13 paf 8746:
1.23 moko 8747: if test "$GCC" = yes; then
8748: case $cc_basename in
8749: nvcc*)
8750: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8751: *)
8752: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8753: esac
1.10 paf 8754:
1.31 moko 8755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8756: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8757: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8758: $as_echo_n "(cached) " >&6
1.10 paf 8759: else
1.23 moko 8760: lt_cv_prog_compiler_rtti_exceptions=no
8761: ac_outfile=conftest.$ac_objext
8762: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8763: lt_compiler_flag="-fno-rtti -fno-exceptions"
8764: # Insert the option either (1) after the last *FLAGS variable, or
8765: # (2) before a word containing "conftest.", or (3) at the end.
8766: # Note that $ac_compile itself does not contain backslashes and begins
8767: # with a dollar sign (not a hyphen), so the echo should work correctly.
8768: # The option is referenced via a variable to avoid confusing sed.
8769: lt_compile=`echo "$ac_compile" | $SED \
8770: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8771: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8772: -e 's:$: $lt_compiler_flag:'`
8773: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8774: (eval "$lt_compile" 2>conftest.err)
8775: ac_status=$?
8776: cat conftest.err >&5
8777: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778: if (exit $ac_status) && test -s "$ac_outfile"; then
8779: # The compiler can only warn and ignore the option if not recognized
8780: # So say no if there are warnings other than the usual output.
8781: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8782: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8783: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8784: lt_cv_prog_compiler_rtti_exceptions=yes
8785: fi
8786: fi
8787: $RM conftest*
1.10 paf 8788:
8789: fi
1.31 moko 8790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8791: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.10 paf 8792:
1.23 moko 8793: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8794: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.10 paf 8795: else
1.23 moko 8796: :
1.10 paf 8797: fi
8798:
8799: fi
8800:
1.23 moko 8801:
8802:
8803:
8804:
8805:
8806: lt_prog_compiler_wl=
8807: lt_prog_compiler_pic=
8808: lt_prog_compiler_static=
8809:
8810:
8811: if test "$GCC" = yes; then
8812: lt_prog_compiler_wl='-Wl,'
8813: lt_prog_compiler_static='-static'
8814:
8815: case $host_os in
8816: aix*)
8817: # All AIX code is PIC.
8818: if test "$host_cpu" = ia64; then
8819: # AIX 5 now supports IA64 processor
8820: lt_prog_compiler_static='-Bstatic'
8821: fi
8822: ;;
8823:
8824: amigaos*)
8825: case $host_cpu in
8826: powerpc)
8827: # see comment about AmigaOS4 .so support
8828: lt_prog_compiler_pic='-fPIC'
8829: ;;
8830: m68k)
8831: # FIXME: we need at least 68020 code to build shared libraries, but
8832: # adding the `-m68020' flag to GCC prevents building anything better,
8833: # like `-m68040'.
8834: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8835: ;;
8836: esac
8837: ;;
8838:
8839: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8840: # PIC is the default for these OSes.
8841: ;;
8842:
8843: mingw* | cygwin* | pw32* | os2* | cegcc*)
8844: # This hack is so that the source file can tell whether it is being
8845: # built for inclusion in a dll (and should export symbols for example).
8846: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8847: # (--disable-auto-import) libraries
8848: lt_prog_compiler_pic='-DDLL_EXPORT'
8849: ;;
8850:
8851: darwin* | rhapsody*)
8852: # PIC is the default on this platform
8853: # Common symbols not allowed in MH_DYLIB files
8854: lt_prog_compiler_pic='-fno-common'
8855: ;;
8856:
8857: haiku*)
8858: # PIC is the default for Haiku.
8859: # The "-static" flag exists, but is broken.
8860: lt_prog_compiler_static=
8861: ;;
8862:
8863: hpux*)
8864: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8865: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8866: # sets the default TLS model and affects inlining.
8867: case $host_cpu in
8868: hppa*64*)
8869: # +Z the default
8870: ;;
8871: *)
8872: lt_prog_compiler_pic='-fPIC'
8873: ;;
8874: esac
8875: ;;
8876:
8877: interix[3-9]*)
8878: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8879: # Instead, we relocate shared libraries at runtime.
8880: ;;
8881:
8882: msdosdjgpp*)
8883: # Just because we use GCC doesn't mean we suddenly get shared libraries
8884: # on systems that don't support them.
8885: lt_prog_compiler_can_build_shared=no
8886: enable_shared=no
8887: ;;
8888:
8889: *nto* | *qnx*)
8890: # QNX uses GNU C++, but need to define -shared option too, otherwise
8891: # it will coredump.
8892: lt_prog_compiler_pic='-fPIC -shared'
8893: ;;
8894:
8895: sysv4*MP*)
8896: if test -d /usr/nec; then
8897: lt_prog_compiler_pic=-Kconform_pic
8898: fi
8899: ;;
8900:
8901: *)
8902: lt_prog_compiler_pic='-fPIC'
8903: ;;
8904: esac
8905:
8906: case $cc_basename in
8907: nvcc*) # Cuda Compiler Driver 2.2
8908: lt_prog_compiler_wl='-Xlinker '
8909: if test -n "$lt_prog_compiler_pic"; then
8910: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8911: fi
8912: ;;
8913: esac
8914: else
8915: # PORTME Check for flag to pass linker flags through the system compiler.
8916: case $host_os in
8917: aix*)
8918: lt_prog_compiler_wl='-Wl,'
8919: if test "$host_cpu" = ia64; then
8920: # AIX 5 now supports IA64 processor
8921: lt_prog_compiler_static='-Bstatic'
8922: else
8923: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8924: fi
8925: ;;
8926:
8927: mingw* | cygwin* | pw32* | os2* | cegcc*)
8928: # This hack is so that the source file can tell whether it is being
8929: # built for inclusion in a dll (and should export symbols for example).
8930: lt_prog_compiler_pic='-DDLL_EXPORT'
8931: ;;
8932:
8933: hpux9* | hpux10* | hpux11*)
8934: lt_prog_compiler_wl='-Wl,'
8935: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8936: # not for PA HP-UX.
8937: case $host_cpu in
8938: hppa*64*|ia64*)
8939: # +Z the default
8940: ;;
8941: *)
8942: lt_prog_compiler_pic='+Z'
8943: ;;
8944: esac
8945: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8946: lt_prog_compiler_static='${wl}-a ${wl}archive'
8947: ;;
8948:
8949: irix5* | irix6* | nonstopux*)
8950: lt_prog_compiler_wl='-Wl,'
8951: # PIC (with -KPIC) is the default.
8952: lt_prog_compiler_static='-non_shared'
8953: ;;
8954:
8955: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8956: case $cc_basename in
8957: # old Intel for x86_64 which still supported -KPIC.
8958: ecc*)
8959: lt_prog_compiler_wl='-Wl,'
8960: lt_prog_compiler_pic='-KPIC'
8961: lt_prog_compiler_static='-static'
8962: ;;
8963: # icc used to be incompatible with GCC.
8964: # ICC 10 doesn't accept -KPIC any more.
8965: icc* | ifort*)
8966: lt_prog_compiler_wl='-Wl,'
8967: lt_prog_compiler_pic='-fPIC'
8968: lt_prog_compiler_static='-static'
8969: ;;
8970: # Lahey Fortran 8.1.
8971: lf95*)
8972: lt_prog_compiler_wl='-Wl,'
8973: lt_prog_compiler_pic='--shared'
8974: lt_prog_compiler_static='--static'
8975: ;;
8976: nagfor*)
8977: # NAG Fortran compiler
8978: lt_prog_compiler_wl='-Wl,-Wl,,'
8979: lt_prog_compiler_pic='-PIC'
8980: lt_prog_compiler_static='-Bstatic'
8981: ;;
8982: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8983: # Portland Group compilers (*not* the Pentium gcc compiler,
8984: # which looks to be a dead project)
8985: lt_prog_compiler_wl='-Wl,'
8986: lt_prog_compiler_pic='-fpic'
8987: lt_prog_compiler_static='-Bstatic'
8988: ;;
8989: ccc*)
8990: lt_prog_compiler_wl='-Wl,'
8991: # All Alpha code is PIC.
8992: lt_prog_compiler_static='-non_shared'
8993: ;;
8994: xl* | bgxl* | bgf* | mpixl*)
8995: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8996: lt_prog_compiler_wl='-Wl,'
8997: lt_prog_compiler_pic='-qpic'
8998: lt_prog_compiler_static='-qstaticlink'
8999: ;;
9000: *)
9001: case `$CC -V 2>&1 | sed 5q` in
9002: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9003: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9004: lt_prog_compiler_pic='-KPIC'
9005: lt_prog_compiler_static='-Bstatic'
9006: lt_prog_compiler_wl=''
9007: ;;
9008: *Sun\ F* | *Sun*Fortran*)
9009: lt_prog_compiler_pic='-KPIC'
9010: lt_prog_compiler_static='-Bstatic'
9011: lt_prog_compiler_wl='-Qoption ld '
9012: ;;
9013: *Sun\ C*)
9014: # Sun C 5.9
9015: lt_prog_compiler_pic='-KPIC'
9016: lt_prog_compiler_static='-Bstatic'
9017: lt_prog_compiler_wl='-Wl,'
9018: ;;
9019: *Intel*\ [CF]*Compiler*)
9020: lt_prog_compiler_wl='-Wl,'
9021: lt_prog_compiler_pic='-fPIC'
9022: lt_prog_compiler_static='-static'
9023: ;;
9024: *Portland\ Group*)
9025: lt_prog_compiler_wl='-Wl,'
9026: lt_prog_compiler_pic='-fpic'
9027: lt_prog_compiler_static='-Bstatic'
9028: ;;
9029: esac
9030: ;;
9031: esac
9032: ;;
9033:
9034: newsos6)
9035: lt_prog_compiler_pic='-KPIC'
9036: lt_prog_compiler_static='-Bstatic'
9037: ;;
9038:
9039: *nto* | *qnx*)
9040: # QNX uses GNU C++, but need to define -shared option too, otherwise
9041: # it will coredump.
9042: lt_prog_compiler_pic='-fPIC -shared'
9043: ;;
9044:
9045: osf3* | osf4* | osf5*)
9046: lt_prog_compiler_wl='-Wl,'
9047: # All OSF/1 code is PIC.
9048: lt_prog_compiler_static='-non_shared'
9049: ;;
9050:
9051: rdos*)
9052: lt_prog_compiler_static='-non_shared'
9053: ;;
9054:
9055: solaris*)
9056: lt_prog_compiler_pic='-KPIC'
9057: lt_prog_compiler_static='-Bstatic'
9058: case $cc_basename in
9059: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9060: lt_prog_compiler_wl='-Qoption ld ';;
9061: *)
9062: lt_prog_compiler_wl='-Wl,';;
9063: esac
9064: ;;
9065:
9066: sunos4*)
9067: lt_prog_compiler_wl='-Qoption ld '
9068: lt_prog_compiler_pic='-PIC'
9069: lt_prog_compiler_static='-Bstatic'
9070: ;;
9071:
9072: sysv4 | sysv4.2uw2* | sysv4.3*)
9073: lt_prog_compiler_wl='-Wl,'
9074: lt_prog_compiler_pic='-KPIC'
9075: lt_prog_compiler_static='-Bstatic'
9076: ;;
9077:
9078: sysv4*MP*)
9079: if test -d /usr/nec ;then
9080: lt_prog_compiler_pic='-Kconform_pic'
9081: lt_prog_compiler_static='-Bstatic'
9082: fi
9083: ;;
9084:
9085: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9086: lt_prog_compiler_wl='-Wl,'
9087: lt_prog_compiler_pic='-KPIC'
9088: lt_prog_compiler_static='-Bstatic'
9089: ;;
9090:
9091: unicos*)
9092: lt_prog_compiler_wl='-Wl,'
9093: lt_prog_compiler_can_build_shared=no
9094: ;;
9095:
9096: uts4*)
9097: lt_prog_compiler_pic='-pic'
9098: lt_prog_compiler_static='-Bstatic'
9099: ;;
9100:
9101: *)
9102: lt_prog_compiler_can_build_shared=no
9103: ;;
9104: esac
9105: fi
9106:
9107: case $host_os in
9108: # For platforms which do not support PIC, -DPIC is meaningless:
9109: *djgpp*)
9110: lt_prog_compiler_pic=
1.10 paf 9111: ;;
1.23 moko 9112: *)
9113: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.10 paf 9114: ;;
9115: esac
1.23 moko 9116:
1.31 moko 9117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9118: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9119: if ${lt_cv_prog_compiler_pic+:} false; then :
9120: $as_echo_n "(cached) " >&6
1.23 moko 9121: else
9122: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9123: fi
1.31 moko 9124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9125: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.23 moko 9126: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9127:
9128: #
9129: # Check to make sure the PIC flag actually works.
9130: #
9131: if test -n "$lt_prog_compiler_pic"; then
1.31 moko 9132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9133: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9134: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9135: $as_echo_n "(cached) " >&6
1.10 paf 9136: else
1.23 moko 9137: lt_cv_prog_compiler_pic_works=no
9138: ac_outfile=conftest.$ac_objext
9139: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9140: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9141: # Insert the option either (1) after the last *FLAGS variable, or
9142: # (2) before a word containing "conftest.", or (3) at the end.
9143: # Note that $ac_compile itself does not contain backslashes and begins
9144: # with a dollar sign (not a hyphen), so the echo should work correctly.
9145: # The option is referenced via a variable to avoid confusing sed.
9146: lt_compile=`echo "$ac_compile" | $SED \
9147: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9148: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9149: -e 's:$: $lt_compiler_flag:'`
9150: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9151: (eval "$lt_compile" 2>conftest.err)
9152: ac_status=$?
9153: cat conftest.err >&5
9154: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155: if (exit $ac_status) && test -s "$ac_outfile"; then
9156: # The compiler can only warn and ignore the option if not recognized
9157: # So say no if there are warnings other than the usual output.
9158: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9159: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9160: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9161: lt_cv_prog_compiler_pic_works=yes
9162: fi
9163: fi
9164: $RM conftest*
9165:
1.1 parser 9166: fi
1.31 moko 9167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9168: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.10 paf 9169:
1.23 moko 9170: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9171: case $lt_prog_compiler_pic in
9172: "" | " "*) ;;
9173: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9174: esac
9175: else
9176: lt_prog_compiler_pic=
9177: lt_prog_compiler_can_build_shared=no
1.1 parser 9178: fi
9179:
9180: fi
9181:
1.10 paf 9182:
1.1 parser 9183:
9184:
1.10 paf 9185:
1.1 parser 9186:
9187:
9188:
9189:
9190:
9191:
1.23 moko 9192: #
9193: # Check to make sure the static flag actually works.
9194: #
9195: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.31 moko 9196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9197: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9198: if ${lt_cv_prog_compiler_static_works+:} false; then :
9199: $as_echo_n "(cached) " >&6
1.23 moko 9200: else
9201: lt_cv_prog_compiler_static_works=no
9202: save_LDFLAGS="$LDFLAGS"
9203: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9204: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9205: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9206: # The linker can only warn and ignore the option if not recognized
9207: # So say no if there are warnings
9208: if test -s conftest.err; then
9209: # Append any errors to the config.log.
9210: cat conftest.err 1>&5
9211: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9212: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9213: if diff conftest.exp conftest.er2 >/dev/null; then
9214: lt_cv_prog_compiler_static_works=yes
9215: fi
9216: else
9217: lt_cv_prog_compiler_static_works=yes
9218: fi
9219: fi
9220: $RM -r conftest*
9221: LDFLAGS="$save_LDFLAGS"
1.10 paf 9222:
1.23 moko 9223: fi
1.31 moko 9224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9225: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.10 paf 9226:
1.23 moko 9227: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9228: :
9229: else
9230: lt_prog_compiler_static=
1.1 parser 9231: fi
9232:
9233:
9234:
1.10 paf 9235:
9236:
9237:
1.1 parser 9238:
1.31 moko 9239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9240: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9241: if ${lt_cv_prog_compiler_c_o+:} false; then :
9242: $as_echo_n "(cached) " >&6
1.23 moko 9243: else
9244: lt_cv_prog_compiler_c_o=no
9245: $RM -r conftest 2>/dev/null
9246: mkdir conftest
9247: cd conftest
9248: mkdir out
9249: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250:
9251: lt_compiler_flag="-o out/conftest2.$ac_objext"
9252: # Insert the option either (1) after the last *FLAGS variable, or
9253: # (2) before a word containing "conftest.", or (3) at the end.
9254: # Note that $ac_compile itself does not contain backslashes and begins
9255: # with a dollar sign (not a hyphen), so the echo should work correctly.
9256: lt_compile=`echo "$ac_compile" | $SED \
9257: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259: -e 's:$: $lt_compiler_flag:'`
9260: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9261: (eval "$lt_compile" 2>out/conftest.err)
9262: ac_status=$?
9263: cat out/conftest.err >&5
9264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9266: then
9267: # The compiler can only warn and ignore the option if not recognized
9268: # So say no if there are warnings
9269: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9270: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9271: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9272: lt_cv_prog_compiler_c_o=yes
9273: fi
9274: fi
9275: chmod u+w . 2>&5
9276: $RM conftest*
9277: # SGI C++ compiler will create directory out/ii_files/ for
9278: # template instantiation
9279: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9280: $RM out/* && rmdir out
9281: cd ..
9282: $RM -r conftest
9283: $RM conftest*
9284:
1.10 paf 9285: fi
1.31 moko 9286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9287: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.23 moko 9288:
1.1 parser 9289:
1.10 paf 9290:
9291:
9292:
9293:
1.31 moko 9294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9295: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9296: if ${lt_cv_prog_compiler_c_o+:} false; then :
9297: $as_echo_n "(cached) " >&6
1.10 paf 9298: else
1.23 moko 9299: lt_cv_prog_compiler_c_o=no
9300: $RM -r conftest 2>/dev/null
9301: mkdir conftest
9302: cd conftest
9303: mkdir out
9304: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9305:
9306: lt_compiler_flag="-o out/conftest2.$ac_objext"
9307: # Insert the option either (1) after the last *FLAGS variable, or
9308: # (2) before a word containing "conftest.", or (3) at the end.
9309: # Note that $ac_compile itself does not contain backslashes and begins
9310: # with a dollar sign (not a hyphen), so the echo should work correctly.
9311: lt_compile=`echo "$ac_compile" | $SED \
9312: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9313: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9314: -e 's:$: $lt_compiler_flag:'`
9315: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9316: (eval "$lt_compile" 2>out/conftest.err)
9317: ac_status=$?
9318: cat out/conftest.err >&5
9319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9321: then
9322: # The compiler can only warn and ignore the option if not recognized
9323: # So say no if there are warnings
9324: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9325: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9326: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9327: lt_cv_prog_compiler_c_o=yes
9328: fi
9329: fi
9330: chmod u+w . 2>&5
9331: $RM conftest*
9332: # SGI C++ compiler will create directory out/ii_files/ for
9333: # template instantiation
9334: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9335: $RM out/* && rmdir out
9336: cd ..
9337: $RM -r conftest
9338: $RM conftest*
9339:
1.10 paf 9340: fi
1.31 moko 9341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9342: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.23 moko 9343:
1.10 paf 9344:
9345:
9346:
1.23 moko 9347: hard_links="nottested"
9348: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9349: # do not overwrite the value of need_locks provided by the user
1.31 moko 9350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9351: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.23 moko 9352: hard_links=yes
9353: $RM conftest*
9354: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9355: touch conftest.a
9356: ln conftest.a conftest.b 2>&5 || hard_links=no
9357: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.31 moko 9358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9359: $as_echo "$hard_links" >&6; }
1.23 moko 9360: if test "$hard_links" = no; then
1.31 moko 9361: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9362: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.23 moko 9363: need_locks=warn
1.10 paf 9364: fi
9365: else
1.23 moko 9366: need_locks=no
1.10 paf 9367: fi
9368:
9369:
9370:
9371:
9372:
9373:
1.31 moko 9374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9375: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.23 moko 9376:
9377: runpath_var=
9378: allow_undefined_flag=
9379: always_export_symbols=no
9380: archive_cmds=
9381: archive_expsym_cmds=
9382: compiler_needs_object=no
9383: enable_shared_with_static_runtimes=no
9384: export_dynamic_flag_spec=
9385: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9386: hardcode_automatic=no
9387: hardcode_direct=no
9388: hardcode_direct_absolute=no
9389: hardcode_libdir_flag_spec=
9390: hardcode_libdir_separator=
9391: hardcode_minus_L=no
9392: hardcode_shlibpath_var=unsupported
9393: inherit_rpath=no
9394: link_all_deplibs=unknown
9395: module_cmds=
9396: module_expsym_cmds=
9397: old_archive_from_new_cmds=
9398: old_archive_from_expsyms_cmds=
9399: thread_safe_flag_spec=
9400: whole_archive_flag_spec=
9401: # include_expsyms should be a list of space-separated symbols to be *always*
9402: # included in the symbol list
9403: include_expsyms=
9404: # exclude_expsyms can be an extended regexp of symbols to exclude
9405: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9406: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9407: # as well as any symbol that contains `d'.
9408: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9409: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9410: # platforms (ab)use it in PIC code, but their linkers get confused if
9411: # the symbol is explicitly referenced. Since portable code cannot
9412: # rely on this symbol name, it's probably fine to never include it in
9413: # preloaded symbol tables.
9414: # Exclude shared library initialization/finalization symbols.
9415: extract_expsyms_cmds=
9416:
9417: case $host_os in
9418: cygwin* | mingw* | pw32* | cegcc*)
9419: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9420: # When not using gcc, we currently assume that we are using
9421: # Microsoft Visual C++.
9422: if test "$GCC" != yes; then
9423: with_gnu_ld=no
9424: fi
9425: ;;
9426: interix*)
9427: # we just hope/assume this is gcc and not c89 (= MSVC++)
9428: with_gnu_ld=yes
9429: ;;
9430: openbsd*)
9431: with_gnu_ld=no
9432: ;;
9433: esac
9434:
9435: ld_shlibs=yes
9436:
9437: # On some targets, GNU ld is compatible enough with the native linker
9438: # that we're better off using the native interface for both.
9439: lt_use_gnu_ld_interface=no
9440: if test "$with_gnu_ld" = yes; then
9441: case $host_os in
9442: aix*)
9443: # The AIX port of GNU ld has always aspired to compatibility
9444: # with the native linker. However, as the warning in the GNU ld
9445: # block says, versions before 2.19.5* couldn't really create working
9446: # shared libraries, regardless of the interface used.
9447: case `$LD -v 2>&1` in
9448: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9449: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9450: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9451: *)
9452: lt_use_gnu_ld_interface=yes
9453: ;;
9454: esac
9455: ;;
9456: *)
9457: lt_use_gnu_ld_interface=yes
9458: ;;
9459: esac
1.10 paf 9460: fi
9461:
1.23 moko 9462: if test "$lt_use_gnu_ld_interface" = yes; then
9463: # If archive_cmds runs LD, not CC, wlarc should be empty
9464: wlarc='${wl}'
9465:
9466: # Set some defaults for GNU ld with shared library support. These
9467: # are reset later if shared libraries are not supported. Putting them
9468: # here allows them to be overridden if necessary.
9469: runpath_var=LD_RUN_PATH
9470: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9471: export_dynamic_flag_spec='${wl}--export-dynamic'
9472: # ancient GNU ld didn't support --whole-archive et. al.
9473: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9474: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9475: else
9476: whole_archive_flag_spec=
9477: fi
9478: supports_anon_versioning=no
9479: case `$LD -v 2>&1` in
9480: *GNU\ gold*) supports_anon_versioning=yes ;;
9481: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9482: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9483: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9484: *\ 2.11.*) ;; # other 2.11 versions
9485: *) supports_anon_versioning=yes ;;
9486: esac
9487:
9488: # See if GNU ld supports shared libraries.
9489: case $host_os in
9490: aix[3-9]*)
9491: # On AIX/PPC, the GNU linker is very broken
9492: if test "$host_cpu" != ia64; then
9493: ld_shlibs=no
9494: cat <<_LT_EOF 1>&2
1.10 paf 9495:
1.23 moko 9496: *** Warning: the GNU linker, at least up to release 2.19, is reported
9497: *** to be unable to reliably create shared libraries on AIX.
9498: *** Therefore, libtool is disabling shared libraries support. If you
9499: *** really care for shared libraries, you may want to install binutils
9500: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9501: *** You will then need to restart the configuration process.
1.10 paf 9502:
1.23 moko 9503: _LT_EOF
9504: fi
9505: ;;
1.10 paf 9506:
1.23 moko 9507: amigaos*)
9508: case $host_cpu in
9509: powerpc)
9510: # see comment about AmigaOS4 .so support
9511: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512: archive_expsym_cmds=''
9513: ;;
9514: m68k)
9515: 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)'
9516: hardcode_libdir_flag_spec='-L$libdir'
9517: hardcode_minus_L=yes
9518: ;;
9519: esac
9520: ;;
1.10 paf 9521:
1.23 moko 9522: beos*)
9523: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9524: allow_undefined_flag=unsupported
9525: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9526: # support --undefined. This deserves some investigation. FIXME
9527: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528: else
9529: ld_shlibs=no
9530: fi
9531: ;;
1.10 paf 9532:
1.23 moko 9533: cygwin* | mingw* | pw32* | cegcc*)
9534: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9535: # as there is no search path for DLLs.
9536: hardcode_libdir_flag_spec='-L$libdir'
9537: export_dynamic_flag_spec='${wl}--export-all-symbols'
9538: allow_undefined_flag=unsupported
9539: always_export_symbols=no
9540: enable_shared_with_static_runtimes=yes
9541: 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'
9542: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9543:
9544: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9545: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9546: # If the export-symbols file already is a .def file (1st line
9547: # is EXPORTS), use it as is; otherwise, prepend...
9548: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9549: cp $export_symbols $output_objdir/$soname.def;
9550: else
9551: echo EXPORTS > $output_objdir/$soname.def;
9552: cat $export_symbols >> $output_objdir/$soname.def;
9553: fi~
9554: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9555: else
9556: ld_shlibs=no
9557: fi
9558: ;;
1.10 paf 9559:
1.23 moko 9560: haiku*)
9561: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562: link_all_deplibs=yes
9563: ;;
1.10 paf 9564:
1.23 moko 9565: interix[3-9]*)
9566: hardcode_direct=no
9567: hardcode_shlibpath_var=no
9568: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569: export_dynamic_flag_spec='${wl}-E'
9570: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9571: # Instead, shared libraries are loaded at an image base (0x10000000 by
9572: # default) and relocated if they conflict, which is a slow very memory
9573: # consuming and fragmenting process. To avoid this, we pick a random,
9574: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9575: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9576: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9577: 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'
9578: ;;
1.10 paf 9579:
1.23 moko 9580: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9581: tmp_diet=no
9582: if test "$host_os" = linux-dietlibc; then
9583: case $cc_basename in
9584: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9585: esac
9586: fi
9587: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9588: && test "$tmp_diet" = no
9589: then
9590: tmp_addflag=' $pic_flag'
9591: tmp_sharedflag='-shared'
9592: case $cc_basename,$host_cpu in
9593: pgcc*) # Portland Group C compiler
9594: 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'
9595: tmp_addflag=' $pic_flag'
9596: ;;
9597: pgf77* | pgf90* | pgf95* | pgfortran*)
9598: # Portland Group f77 and f90 compilers
9599: 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'
9600: tmp_addflag=' $pic_flag -Mnomain' ;;
9601: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9602: tmp_addflag=' -i_dynamic' ;;
9603: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9604: tmp_addflag=' -i_dynamic -nofor_main' ;;
9605: ifc* | ifort*) # Intel Fortran compiler
9606: tmp_addflag=' -nofor_main' ;;
9607: lf95*) # Lahey Fortran 8.1
9608: whole_archive_flag_spec=
9609: tmp_sharedflag='--shared' ;;
9610: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9611: tmp_sharedflag='-qmkshrobj'
9612: tmp_addflag= ;;
9613: nvcc*) # Cuda Compiler Driver 2.2
9614: 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'
9615: compiler_needs_object=yes
9616: ;;
9617: esac
9618: case `$CC -V 2>&1 | sed 5q` in
9619: *Sun\ C*) # Sun C 5.9
9620: 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'
9621: compiler_needs_object=yes
9622: tmp_sharedflag='-G' ;;
9623: *Sun\ F*) # Sun Fortran 8.3
9624: tmp_sharedflag='-G' ;;
9625: esac
9626: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.10 paf 9627:
1.23 moko 9628: if test "x$supports_anon_versioning" = xyes; then
9629: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9630: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9631: echo "local: *; };" >> $output_objdir/$libname.ver~
9632: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9633: fi
9634:
9635: case $cc_basename in
9636: xlf* | bgf* | bgxlf* | mpixlf*)
9637: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9638: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9639: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9640: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9641: if test "x$supports_anon_versioning" = xyes; then
9642: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9643: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9644: echo "local: *; };" >> $output_objdir/$libname.ver~
9645: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9646: fi
9647: ;;
9648: esac
9649: else
9650: ld_shlibs=no
9651: fi
9652: ;;
1.10 paf 9653:
1.23 moko 9654: netbsd*)
9655: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9656: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9657: wlarc=
9658: else
9659: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9660: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9661: fi
9662: ;;
1.10 paf 9663:
1.23 moko 9664: solaris*)
9665: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9666: ld_shlibs=no
9667: cat <<_LT_EOF 1>&2
1.10 paf 9668:
1.23 moko 9669: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9670: *** create shared libraries on Solaris systems. Therefore, libtool
9671: *** is disabling shared libraries support. We urge you to upgrade GNU
9672: *** binutils to release 2.9.1 or newer. Another option is to modify
9673: *** your PATH or compiler configuration so that the native linker is
9674: *** used, and then restart.
1.10 paf 9675:
1.23 moko 9676: _LT_EOF
9677: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9678: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9679: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9680: else
9681: ld_shlibs=no
9682: fi
9683: ;;
1.10 paf 9684:
1.23 moko 9685: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9686: case `$LD -v 2>&1` in
9687: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9688: ld_shlibs=no
9689: cat <<_LT_EOF 1>&2
1.10 paf 9690:
1.23 moko 9691: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9692: *** reliably create shared libraries on SCO systems. Therefore, libtool
9693: *** is disabling shared libraries support. We urge you to upgrade GNU
9694: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9695: *** your PATH or compiler configuration so that the native linker is
9696: *** used, and then restart.
1.10 paf 9697:
1.23 moko 9698: _LT_EOF
9699: ;;
9700: *)
9701: # For security reasons, it is highly recommended that you always
9702: # use absolute paths for naming shared libraries, and exclude the
9703: # DT_RUNPATH tag from executables and libraries. But doing so
9704: # requires that you compile everything twice, which is a pain.
9705: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9706: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9707: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9709: else
9710: ld_shlibs=no
9711: fi
9712: ;;
9713: esac
9714: ;;
1.10 paf 9715:
1.23 moko 9716: sunos4*)
9717: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9718: wlarc=
9719: hardcode_direct=yes
9720: hardcode_shlibpath_var=no
9721: ;;
1.10 paf 9722:
1.23 moko 9723: *)
9724: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9725: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9726: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9727: else
9728: ld_shlibs=no
9729: fi
9730: ;;
9731: esac
1.10 paf 9732:
1.23 moko 9733: if test "$ld_shlibs" = no; then
9734: runpath_var=
9735: hardcode_libdir_flag_spec=
9736: export_dynamic_flag_spec=
9737: whole_archive_flag_spec=
9738: fi
9739: else
9740: # PORTME fill in a description of your system's linker (not GNU ld)
9741: case $host_os in
9742: aix3*)
9743: allow_undefined_flag=unsupported
9744: always_export_symbols=yes
9745: 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'
9746: # Note: this linker hardcodes the directories in LIBPATH if there
9747: # are no directories specified by -L.
9748: hardcode_minus_L=yes
9749: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9750: # Neither direct hardcoding nor static linking is supported with a
9751: # broken collect2.
9752: hardcode_direct=unsupported
9753: fi
9754: ;;
1.10 paf 9755:
1.23 moko 9756: aix[4-9]*)
9757: if test "$host_cpu" = ia64; then
9758: # On IA64, the linker does run time linking by default, so we don't
9759: # have to do anything special.
9760: aix_use_runtimelinking=no
9761: exp_sym_flag='-Bexport'
9762: no_entry_flag=""
9763: else
9764: # If we're using GNU nm, then we don't want the "-C" option.
9765: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9766: # Also, AIX nm treats weak defined symbols like other global
9767: # defined symbols, whereas GNU nm marks them as "W".
9768: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9769: 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'
9770: else
9771: 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'
9772: fi
9773: aix_use_runtimelinking=no
1.10 paf 9774:
1.23 moko 9775: # Test if we are trying to use run time linking or normal
9776: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9777: # need to do runtime linking.
9778: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9779: for ld_flag in $LDFLAGS; do
9780: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9781: aix_use_runtimelinking=yes
9782: break
9783: fi
9784: done
9785: ;;
9786: esac
1.10 paf 9787:
1.23 moko 9788: exp_sym_flag='-bexport'
9789: no_entry_flag='-bnoentry'
9790: fi
1.10 paf 9791:
1.23 moko 9792: # When large executables or shared objects are built, AIX ld can
9793: # have problems creating the table of contents. If linking a library
9794: # or program results in "error TOC overflow" add -mminimal-toc to
9795: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9796: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9797:
9798: archive_cmds=''
9799: hardcode_direct=yes
9800: hardcode_direct_absolute=yes
9801: hardcode_libdir_separator=':'
9802: link_all_deplibs=yes
9803: file_list_spec='${wl}-f,'
9804:
9805: if test "$GCC" = yes; then
9806: case $host_os in aix4.[012]|aix4.[012].*)
9807: # We only want to do this on AIX 4.2 and lower, the check
9808: # below for broken collect2 doesn't work under 4.3+
9809: collect2name=`${CC} -print-prog-name=collect2`
9810: if test -f "$collect2name" &&
9811: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9812: then
9813: # We have reworked collect2
9814: :
9815: else
9816: # We have old collect2
9817: hardcode_direct=unsupported
9818: # It fails to find uninstalled libraries when the uninstalled
9819: # path is not listed in the libpath. Setting hardcode_minus_L
9820: # to unsupported forces relinking
9821: hardcode_minus_L=yes
9822: hardcode_libdir_flag_spec='-L$libdir'
9823: hardcode_libdir_separator=
9824: fi
9825: ;;
9826: esac
9827: shared_flag='-shared'
9828: if test "$aix_use_runtimelinking" = yes; then
9829: shared_flag="$shared_flag "'${wl}-G'
9830: fi
9831: else
9832: # not using gcc
9833: if test "$host_cpu" = ia64; then
9834: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9835: # chokes on -Wl,-G. The following line is correct:
9836: shared_flag='-G'
9837: else
9838: if test "$aix_use_runtimelinking" = yes; then
9839: shared_flag='${wl}-G'
9840: else
9841: shared_flag='${wl}-bM:SRE'
9842: fi
9843: fi
9844: fi
9845:
9846: export_dynamic_flag_spec='${wl}-bexpall'
9847: # It seems that -bexpall does not export symbols beginning with
9848: # underscore (_), so it is better to generate a list of symbols to export.
9849: always_export_symbols=yes
9850: if test "$aix_use_runtimelinking" = yes; then
9851: # Warning - without using the other runtime loading flags (-brtl),
9852: # -berok will link without error, but may produce a broken library.
9853: allow_undefined_flag='-berok'
9854: # Determine the default libpath from the value encoded in an
9855: # empty executable.
9856: if test "${lt_cv_aix_libpath+set}" = set; then
9857: aix_libpath=$lt_cv_aix_libpath
9858: else
1.31 moko 9859: if ${lt_cv_aix_libpath_+:} false; then :
9860: $as_echo_n "(cached) " >&6
1.23 moko 9861: else
1.31 moko 9862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 9863: /* end confdefs.h. */
1.10 paf 9864:
1.23 moko 9865: int
9866: main ()
9867: {
1.10 paf 9868:
1.23 moko 9869: ;
9870: return 0;
9871: }
9872: _ACEOF
1.31 moko 9873: if ac_fn_c_try_link "$LINENO"; then :
1.10 paf 9874:
1.23 moko 9875: lt_aix_libpath_sed='
9876: /Import File Strings/,/^$/ {
9877: /^0/ {
9878: s/^0 *\([^ ]*\) *$/\1/
9879: p
9880: }
9881: }'
9882: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9883: # Check for a 64-bit object if we didn't find anything.
9884: if test -z "$lt_cv_aix_libpath_"; then
9885: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9886: fi
9887: fi
1.31 moko 9888: rm -f core conftest.err conftest.$ac_objext \
9889: conftest$ac_exeext conftest.$ac_ext
1.23 moko 9890: if test -z "$lt_cv_aix_libpath_"; then
9891: lt_cv_aix_libpath_="/usr/lib:/lib"
9892: fi
1.10 paf 9893:
1.23 moko 9894: fi
1.10 paf 9895:
1.23 moko 9896: aix_libpath=$lt_cv_aix_libpath_
9897: fi
1.10 paf 9898:
1.23 moko 9899: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9900: 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"
9901: else
9902: if test "$host_cpu" = ia64; then
9903: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9904: allow_undefined_flag="-z nodefs"
9905: 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"
9906: else
9907: # Determine the default libpath from the value encoded in an
9908: # empty executable.
9909: if test "${lt_cv_aix_libpath+set}" = set; then
9910: aix_libpath=$lt_cv_aix_libpath
9911: else
1.31 moko 9912: if ${lt_cv_aix_libpath_+:} false; then :
9913: $as_echo_n "(cached) " >&6
1.23 moko 9914: else
1.31 moko 9915: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 9916: /* end confdefs.h. */
1.10 paf 9917:
1.23 moko 9918: int
9919: main ()
9920: {
1.10 paf 9921:
1.23 moko 9922: ;
9923: return 0;
9924: }
1.10 paf 9925: _ACEOF
1.31 moko 9926: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 9927:
9928: lt_aix_libpath_sed='
9929: /Import File Strings/,/^$/ {
9930: /^0/ {
9931: s/^0 *\([^ ]*\) *$/\1/
9932: p
9933: }
9934: }'
9935: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9936: # Check for a 64-bit object if we didn't find anything.
9937: if test -z "$lt_cv_aix_libpath_"; then
9938: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9939: fi
9940: fi
1.31 moko 9941: rm -f core conftest.err conftest.$ac_objext \
9942: conftest$ac_exeext conftest.$ac_ext
1.23 moko 9943: if test -z "$lt_cv_aix_libpath_"; then
9944: lt_cv_aix_libpath_="/usr/lib:/lib"
9945: fi
1.10 paf 9946:
1.23 moko 9947: fi
1.10 paf 9948:
1.23 moko 9949: aix_libpath=$lt_cv_aix_libpath_
9950: fi
1.10 paf 9951:
1.23 moko 9952: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9953: # Warning - without using the other run time loading flags,
9954: # -berok will link without error, but may produce a broken library.
9955: no_undefined_flag=' ${wl}-bernotok'
9956: allow_undefined_flag=' ${wl}-berok'
9957: if test "$with_gnu_ld" = yes; then
9958: # We only use this code for GNU lds that support --whole-archive.
9959: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9960: else
9961: # Exported symbols can be pulled into shared objects from archives
9962: whole_archive_flag_spec='$convenience'
9963: fi
9964: archive_cmds_need_lc=yes
9965: # This is similar to how AIX traditionally builds its shared libraries.
9966: 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'
9967: fi
9968: fi
9969: ;;
1.10 paf 9970:
1.23 moko 9971: amigaos*)
9972: case $host_cpu in
9973: powerpc)
9974: # see comment about AmigaOS4 .so support
9975: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976: archive_expsym_cmds=''
9977: ;;
9978: m68k)
9979: 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)'
9980: hardcode_libdir_flag_spec='-L$libdir'
9981: hardcode_minus_L=yes
9982: ;;
9983: esac
9984: ;;
1.10 paf 9985:
1.23 moko 9986: bsdi[45]*)
9987: export_dynamic_flag_spec=-rdynamic
9988: ;;
1.1 parser 9989:
1.23 moko 9990: cygwin* | mingw* | pw32* | cegcc*)
9991: # When not using gcc, we currently assume that we are using
9992: # Microsoft Visual C++.
9993: # hardcode_libdir_flag_spec is actually meaningless, as there is
9994: # no search path for DLLs.
9995: case $cc_basename in
9996: cl*)
9997: # Native MSVC
9998: hardcode_libdir_flag_spec=' '
9999: allow_undefined_flag=unsupported
10000: always_export_symbols=yes
10001: file_list_spec='@'
10002: # Tell ltmain to make .lib files, not .a files.
10003: libext=lib
10004: # Tell ltmain to make .dll files, not .so files.
10005: shrext_cmds=".dll"
10006: # FIXME: Setting linknames here is a bad hack.
10007: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10008: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10009: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10010: else
10011: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10012: fi~
10013: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10014: linknames='
10015: # The linker will not automatically build a static lib if we build a DLL.
10016: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10017: enable_shared_with_static_runtimes=yes
10018: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10019: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10020: # Don't use ranlib
10021: old_postinstall_cmds='chmod 644 $oldlib'
10022: postlink_cmds='lt_outputfile="@OUTPUT@"~
10023: lt_tool_outputfile="@TOOL_OUTPUT@"~
10024: case $lt_outputfile in
10025: *.exe|*.EXE) ;;
10026: *)
10027: lt_outputfile="$lt_outputfile.exe"
10028: lt_tool_outputfile="$lt_tool_outputfile.exe"
10029: ;;
10030: esac~
10031: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10032: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10033: $RM "$lt_outputfile.manifest";
10034: fi'
10035: ;;
10036: *)
10037: # Assume MSVC wrapper
10038: hardcode_libdir_flag_spec=' '
10039: allow_undefined_flag=unsupported
10040: # Tell ltmain to make .lib files, not .a files.
10041: libext=lib
10042: # Tell ltmain to make .dll files, not .so files.
10043: shrext_cmds=".dll"
10044: # FIXME: Setting linknames here is a bad hack.
10045: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10046: # The linker will automatically build a .lib file if we build a DLL.
10047: old_archive_from_new_cmds='true'
10048: # FIXME: Should let the user specify the lib program.
10049: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10050: enable_shared_with_static_runtimes=yes
10051: ;;
10052: esac
10053: ;;
1.10 paf 10054:
1.23 moko 10055: darwin* | rhapsody*)
1.10 paf 10056:
10057:
1.23 moko 10058: archive_cmds_need_lc=no
10059: hardcode_direct=no
10060: hardcode_automatic=yes
10061: hardcode_shlibpath_var=unsupported
10062: if test "$lt_cv_ld_force_load" = "yes"; then
10063: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.10 paf 10064:
1.23 moko 10065: else
10066: whole_archive_flag_spec=''
10067: fi
10068: link_all_deplibs=yes
10069: allow_undefined_flag="$_lt_dar_allow_undefined"
10070: case $cc_basename in
10071: ifort*) _lt_dar_can_shared=yes ;;
10072: *) _lt_dar_can_shared=$GCC ;;
10073: esac
10074: if test "$_lt_dar_can_shared" = "yes"; then
10075: output_verbose_link_cmd=func_echo_all
10076: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10077: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10078: 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}"
10079: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.10 paf 10080:
1.23 moko 10081: else
10082: ld_shlibs=no
10083: fi
1.1 parser 10084:
1.23 moko 10085: ;;
1.10 paf 10086:
1.23 moko 10087: dgux*)
10088: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089: hardcode_libdir_flag_spec='-L$libdir'
10090: hardcode_shlibpath_var=no
10091: ;;
1.10 paf 10092:
1.23 moko 10093: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10094: # support. Future versions do this automatically, but an explicit c++rt0.o
10095: # does not break anything, and helps significantly (at the cost of a little
10096: # extra space).
10097: freebsd2.2*)
10098: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10099: hardcode_libdir_flag_spec='-R$libdir'
10100: hardcode_direct=yes
10101: hardcode_shlibpath_var=no
10102: ;;
1.10 paf 10103:
1.23 moko 10104: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10105: freebsd2.*)
10106: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10107: hardcode_direct=yes
10108: hardcode_minus_L=yes
10109: hardcode_shlibpath_var=no
10110: ;;
1.10 paf 10111:
1.23 moko 10112: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10113: freebsd* | dragonfly*)
10114: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10115: hardcode_libdir_flag_spec='-R$libdir'
10116: hardcode_direct=yes
10117: hardcode_shlibpath_var=no
10118: ;;
1.1 parser 10119:
1.23 moko 10120: hpux9*)
10121: if test "$GCC" = yes; then
10122: 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'
10123: else
10124: 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'
10125: fi
10126: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10127: hardcode_libdir_separator=:
10128: hardcode_direct=yes
10129:
10130: # hardcode_minus_L: Not really in the search PATH,
10131: # but as the default location of the library.
10132: hardcode_minus_L=yes
10133: export_dynamic_flag_spec='${wl}-E'
10134: ;;
1.10 paf 10135:
1.23 moko 10136: hpux10*)
10137: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10138: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10139: else
10140: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10141: fi
10142: if test "$with_gnu_ld" = no; then
10143: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10144: hardcode_libdir_separator=:
10145: hardcode_direct=yes
10146: hardcode_direct_absolute=yes
10147: export_dynamic_flag_spec='${wl}-E'
10148: # hardcode_minus_L: Not really in the search PATH,
10149: # but as the default location of the library.
10150: hardcode_minus_L=yes
10151: fi
10152: ;;
1.10 paf 10153:
1.23 moko 10154: hpux11*)
10155: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10156: case $host_cpu in
10157: hppa*64*)
10158: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10159: ;;
10160: ia64*)
10161: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10162: ;;
10163: *)
10164: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10165: ;;
10166: esac
10167: else
10168: case $host_cpu in
10169: hppa*64*)
10170: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10171: ;;
10172: ia64*)
10173: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10174: ;;
10175: *)
1.10 paf 10176:
1.23 moko 10177: # Older versions of the 11.00 compiler do not understand -b yet
10178: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.31 moko 10179: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10180: $as_echo_n "checking if $CC understands -b... " >&6; }
10181: if ${lt_cv_prog_compiler__b+:} false; then :
10182: $as_echo_n "(cached) " >&6
1.23 moko 10183: else
10184: lt_cv_prog_compiler__b=no
10185: save_LDFLAGS="$LDFLAGS"
10186: LDFLAGS="$LDFLAGS -b"
10187: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10188: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10189: # The linker can only warn and ignore the option if not recognized
10190: # So say no if there are warnings
10191: if test -s conftest.err; then
10192: # Append any errors to the config.log.
10193: cat conftest.err 1>&5
10194: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10195: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10196: if diff conftest.exp conftest.er2 >/dev/null; then
10197: lt_cv_prog_compiler__b=yes
10198: fi
10199: else
10200: lt_cv_prog_compiler__b=yes
10201: fi
10202: fi
10203: $RM -r conftest*
10204: LDFLAGS="$save_LDFLAGS"
1.10 paf 10205:
1.23 moko 10206: fi
1.31 moko 10207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10208: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.1 parser 10209:
1.23 moko 10210: if test x"$lt_cv_prog_compiler__b" = xyes; then
10211: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10212: else
10213: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10214: fi
1.1 parser 10215:
1.23 moko 10216: ;;
10217: esac
10218: fi
10219: if test "$with_gnu_ld" = no; then
10220: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10221: hardcode_libdir_separator=:
10222:
10223: case $host_cpu in
10224: hppa*64*|ia64*)
10225: hardcode_direct=no
10226: hardcode_shlibpath_var=no
10227: ;;
10228: *)
10229: hardcode_direct=yes
10230: hardcode_direct_absolute=yes
10231: export_dynamic_flag_spec='${wl}-E'
1.1 parser 10232:
1.23 moko 10233: # hardcode_minus_L: Not really in the search PATH,
10234: # but as the default location of the library.
10235: hardcode_minus_L=yes
10236: ;;
10237: esac
10238: fi
10239: ;;
1.1 parser 10240:
1.23 moko 10241: irix5* | irix6* | nonstopux*)
10242: if test "$GCC" = yes; then
10243: 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'
10244: # Try to use the -exported_symbol ld option, if it does not
10245: # work, assume that -exports_file does not work either and
10246: # implicitly export all symbols.
10247: # This should be the same for all languages, so no per-tag cache variable.
1.31 moko 10248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10249: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10250: if ${lt_cv_irix_exported_symbol+:} false; then :
10251: $as_echo_n "(cached) " >&6
1.23 moko 10252: else
10253: save_LDFLAGS="$LDFLAGS"
10254: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.31 moko 10255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 10256: /* end confdefs.h. */
10257: int foo (void) { return 0; }
1.10 paf 10258: _ACEOF
1.31 moko 10259: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 10260: lt_cv_irix_exported_symbol=yes
10261: else
1.31 moko 10262: lt_cv_irix_exported_symbol=no
1.23 moko 10263: fi
1.31 moko 10264: rm -f core conftest.err conftest.$ac_objext \
10265: conftest$ac_exeext conftest.$ac_ext
1.23 moko 10266: LDFLAGS="$save_LDFLAGS"
10267: fi
1.31 moko 10268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10269: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.23 moko 10270: if test "$lt_cv_irix_exported_symbol" = yes; then
10271: 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'
10272: fi
1.10 paf 10273: else
1.23 moko 10274: 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'
10275: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1.10 paf 10276: fi
1.23 moko 10277: archive_cmds_need_lc='no'
10278: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10279: hardcode_libdir_separator=:
10280: inherit_rpath=yes
10281: link_all_deplibs=yes
10282: ;;
10283:
10284: netbsd*)
10285: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10286: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10287: else
10288: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10289: fi
10290: hardcode_libdir_flag_spec='-R$libdir'
10291: hardcode_direct=yes
10292: hardcode_shlibpath_var=no
10293: ;;
1.1 parser 10294:
1.23 moko 10295: newsos6)
10296: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297: hardcode_direct=yes
10298: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10299: hardcode_libdir_separator=:
10300: hardcode_shlibpath_var=no
10301: ;;
1.1 parser 10302:
1.23 moko 10303: *nto* | *qnx*)
10304: ;;
1.10 paf 10305:
1.23 moko 10306: openbsd*)
10307: if test -f /usr/libexec/ld.so; then
10308: hardcode_direct=yes
10309: hardcode_shlibpath_var=no
10310: hardcode_direct_absolute=yes
10311: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10312: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10313: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10314: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10315: export_dynamic_flag_spec='${wl}-E'
10316: else
10317: case $host_os in
10318: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10319: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10320: hardcode_libdir_flag_spec='-R$libdir'
10321: ;;
10322: *)
10323: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10324: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10325: ;;
10326: esac
10327: fi
10328: else
10329: ld_shlibs=no
10330: fi
10331: ;;
1.10 paf 10332:
1.23 moko 10333: os2*)
10334: hardcode_libdir_flag_spec='-L$libdir'
10335: hardcode_minus_L=yes
10336: allow_undefined_flag=unsupported
10337: 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'
10338: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10339: ;;
1.10 paf 10340:
1.23 moko 10341: osf3*)
10342: if test "$GCC" = yes; then
10343: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10344: 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'
10345: else
10346: allow_undefined_flag=' -expect_unresolved \*'
10347: 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'
10348: fi
10349: archive_cmds_need_lc='no'
10350: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10351: hardcode_libdir_separator=:
10352: ;;
1.16 paf 10353:
1.23 moko 10354: osf4* | osf5*) # as osf3* with the addition of -msym flag
10355: if test "$GCC" = yes; then
10356: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10357: 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'
10358: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10359: else
10360: allow_undefined_flag=' -expect_unresolved \*'
10361: 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'
10362: 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~
10363: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1.10 paf 10364:
1.23 moko 10365: # Both c and cxx compiler support -rpath directly
10366: hardcode_libdir_flag_spec='-rpath $libdir'
10367: fi
10368: archive_cmds_need_lc='no'
10369: hardcode_libdir_separator=:
10370: ;;
1.10 paf 10371:
1.23 moko 10372: solaris*)
10373: no_undefined_flag=' -z defs'
10374: if test "$GCC" = yes; then
10375: wlarc='${wl}'
10376: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10377: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10378: $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'
10379: else
10380: case `$CC -V 2>&1` in
10381: *"Compilers 5.0"*)
10382: wlarc=''
10383: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10384: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10385: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10386: ;;
10387: *)
10388: wlarc='${wl}'
10389: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10390: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10391: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10392: ;;
10393: esac
10394: fi
10395: hardcode_libdir_flag_spec='-R$libdir'
10396: hardcode_shlibpath_var=no
10397: case $host_os in
10398: solaris2.[0-5] | solaris2.[0-5].*) ;;
10399: *)
10400: # The compiler driver will combine and reorder linker options,
10401: # but understands `-z linker_flag'. GCC discards it without `$wl',
10402: # but is careful enough not to reorder.
10403: # Supported since Solaris 2.6 (maybe 2.5.1?)
10404: if test "$GCC" = yes; then
10405: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10406: else
10407: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10408: fi
10409: ;;
10410: esac
10411: link_all_deplibs=yes
10412: ;;
1.1 parser 10413:
1.23 moko 10414: sunos4*)
10415: if test "x$host_vendor" = xsequent; then
10416: # Use $CC to link under sequent, because it throws in some extra .o
10417: # files that make .init and .fini sections work.
10418: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10419: else
10420: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10421: fi
10422: hardcode_libdir_flag_spec='-L$libdir'
10423: hardcode_direct=yes
10424: hardcode_minus_L=yes
10425: hardcode_shlibpath_var=no
10426: ;;
1.10 paf 10427:
1.23 moko 10428: sysv4)
10429: case $host_vendor in
10430: sni)
10431: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432: hardcode_direct=yes # is this really true???
10433: ;;
10434: siemens)
10435: ## LD is ld it makes a PLAMLIB
10436: ## CC just makes a GrossModule.
10437: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10438: reload_cmds='$CC -r -o $output$reload_objs'
10439: hardcode_direct=no
10440: ;;
10441: motorola)
10442: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10443: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10444: ;;
1.10 paf 10445: esac
1.23 moko 10446: runpath_var='LD_RUN_PATH'
10447: hardcode_shlibpath_var=no
10448: ;;
10449:
10450: sysv4.3*)
10451: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452: hardcode_shlibpath_var=no
10453: export_dynamic_flag_spec='-Bexport'
10454: ;;
1.10 paf 10455:
1.23 moko 10456: sysv4*MP*)
10457: if test -d /usr/nec; then
10458: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459: hardcode_shlibpath_var=no
10460: runpath_var=LD_RUN_PATH
10461: hardcode_runpath_var=yes
10462: ld_shlibs=yes
10463: fi
10464: ;;
1.10 paf 10465:
1.23 moko 10466: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10467: no_undefined_flag='${wl}-z,text'
10468: archive_cmds_need_lc=no
10469: hardcode_shlibpath_var=no
10470: runpath_var='LD_RUN_PATH'
1.1 parser 10471:
1.23 moko 10472: if test "$GCC" = yes; then
10473: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10475: else
10476: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10477: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478: fi
10479: ;;
10480:
10481: sysv5* | sco3.2v5* | sco5v6*)
10482: # Note: We can NOT use -z defs as we might desire, because we do not
10483: # link with -lc, and that would cause any symbols used from libc to
10484: # always be unresolved, which means just about no library would
10485: # ever link correctly. If we're not using GNU ld we use -z text
10486: # though, which does catch some bad symbols but isn't as heavy-handed
10487: # as -z defs.
10488: no_undefined_flag='${wl}-z,text'
10489: allow_undefined_flag='${wl}-z,nodefs'
10490: archive_cmds_need_lc=no
10491: hardcode_shlibpath_var=no
10492: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10493: hardcode_libdir_separator=':'
10494: link_all_deplibs=yes
10495: export_dynamic_flag_spec='${wl}-Bexport'
10496: runpath_var='LD_RUN_PATH'
10497:
10498: if test "$GCC" = yes; then
10499: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10501: else
10502: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10503: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10504: fi
10505: ;;
1.1 parser 10506:
1.23 moko 10507: uts4*)
10508: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10509: hardcode_libdir_flag_spec='-L$libdir'
10510: hardcode_shlibpath_var=no
10511: ;;
1.1 parser 10512:
1.23 moko 10513: *)
10514: ld_shlibs=no
10515: ;;
10516: esac
1.1 parser 10517:
1.23 moko 10518: if test x$host_vendor = xsni; then
10519: case $host in
10520: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10521: export_dynamic_flag_spec='${wl}-Blargedynsym'
10522: ;;
1.10 paf 10523: esac
1.23 moko 10524: fi
10525: fi
10526:
1.31 moko 10527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10528: $as_echo "$ld_shlibs" >&6; }
1.23 moko 10529: test "$ld_shlibs" = no && can_build_shared=no
10530:
10531: with_gnu_ld=$with_gnu_ld
10532:
10533:
10534:
10535:
10536:
10537:
10538:
10539:
10540:
10541:
10542:
10543:
10544:
1.10 paf 10545:
10546:
10547: #
1.23 moko 10548: # Do we need to explicitly link libc?
10549: #
10550: case "x$archive_cmds_need_lc" in
10551: x|xyes)
10552: # Assume -lc should be added
10553: archive_cmds_need_lc=yes
10554:
10555: if test "$enable_shared" = yes && test "$GCC" = yes; then
10556: case $archive_cmds in
10557: *'~'*)
10558: # FIXME: we may have to deal with multi-command sequences.
10559: ;;
10560: '$CC '*)
10561: # Test whether the compiler implicitly links with -lc since on some
10562: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10563: # to ld, don't add -lc before -lgcc.
1.31 moko 10564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10565: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10566: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10567: $as_echo_n "(cached) " >&6
1.23 moko 10568: else
10569: $RM conftest*
10570: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10571:
1.31 moko 10572: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 10573: (eval $ac_compile) 2>&5
10574: ac_status=$?
1.31 moko 10575: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10576: test $ac_status = 0; } 2>conftest.err; then
1.23 moko 10577: soname=conftest
10578: lib=conftest
10579: libobjs=conftest.$ac_objext
10580: deplibs=
10581: wl=$lt_prog_compiler_wl
10582: pic_flag=$lt_prog_compiler_pic
10583: compiler_flags=-v
10584: linker_flags=-v
10585: verstring=
10586: output_objdir=.
10587: libname=conftest
10588: lt_save_allow_undefined_flag=$allow_undefined_flag
10589: allow_undefined_flag=
1.31 moko 10590: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.23 moko 10591: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10592: ac_status=$?
1.31 moko 10593: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10594: test $ac_status = 0; }
1.23 moko 10595: then
10596: lt_cv_archive_cmds_need_lc=no
10597: else
10598: lt_cv_archive_cmds_need_lc=yes
10599: fi
10600: allow_undefined_flag=$lt_save_allow_undefined_flag
10601: else
10602: cat conftest.err 1>&5
10603: fi
10604: $RM conftest*
10605:
10606: fi
1.31 moko 10607: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10608: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.23 moko 10609: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10610: ;;
10611: esac
10612: fi
10613: ;;
10614: esac
10615:
1.1 parser 10616:
1.10 paf 10617:
10618:
10619:
10620:
1.23 moko 10621:
10622:
10623:
10624:
10625:
10626:
10627:
10628:
10629:
10630:
10631:
10632:
10633:
10634:
10635:
10636:
10637:
10638:
10639:
10640:
10641:
10642:
10643:
10644:
10645:
10646:
10647:
10648:
10649:
10650:
10651:
10652:
10653:
10654:
10655:
10656:
10657:
10658:
10659:
10660:
10661:
10662:
10663:
10664:
10665:
10666:
10667:
10668:
10669:
10670:
10671:
10672:
10673:
10674:
10675:
10676:
10677:
10678:
10679:
10680:
10681:
10682:
10683:
10684:
10685:
10686:
10687:
10688:
10689:
10690:
10691:
10692:
10693:
10694:
10695:
10696:
10697:
10698:
10699:
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
10749:
10750:
10751:
10752:
10753:
10754:
10755:
10756:
10757:
10758:
10759:
10760:
10761:
10762:
10763:
10764:
10765:
10766:
1.31 moko 10767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10768: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.23 moko 10769:
10770: if test "$GCC" = yes; then
10771: case $host_os in
10772: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10773: *) lt_awk_arg="/^libraries:/" ;;
10774: esac
10775: case $host_os in
10776: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10777: *) lt_sed_strip_eq="s,=/,/,g" ;;
10778: esac
10779: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10780: case $lt_search_path_spec in
10781: *\;*)
10782: # if the path contains ";" then we assume it to be the separator
10783: # otherwise default to the standard path separator (i.e. ":") - it is
10784: # assumed that no part of a normal pathname contains ";" but that should
10785: # okay in the real world where ";" in dirpaths is itself problematic.
10786: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10787: ;;
10788: *)
10789: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10790: ;;
10791: esac
10792: # Ok, now we have the path, separated by spaces, we can step through it
10793: # and add multilib dir if necessary.
10794: lt_tmp_lt_search_path_spec=
10795: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10796: for lt_sys_path in $lt_search_path_spec; do
10797: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10798: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10799: else
10800: test -d "$lt_sys_path" && \
10801: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1.1 parser 10802: fi
1.23 moko 10803: done
10804: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10805: BEGIN {RS=" "; FS="/|\n";} {
10806: lt_foo="";
10807: lt_count=0;
10808: for (lt_i = NF; lt_i > 0; lt_i--) {
10809: if ($lt_i != "" && $lt_i != ".") {
10810: if ($lt_i == "..") {
10811: lt_count++;
10812: } else {
10813: if (lt_count == 0) {
10814: lt_foo="/" $lt_i lt_foo;
10815: } else {
10816: lt_count--;
10817: }
10818: }
10819: }
10820: }
10821: if (lt_foo != "") { lt_freq[lt_foo]++; }
10822: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10823: }'`
10824: # AWK program above erroneously prepends '/' to C:/dos/paths
10825: # for these hosts.
10826: case $host_os in
10827: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10828: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10829: esac
10830: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10831: else
10832: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10833: fi
10834: library_names_spec=
10835: libname_spec='lib$name'
10836: soname_spec=
10837: shrext_cmds=".so"
10838: postinstall_cmds=
10839: postuninstall_cmds=
10840: finish_cmds=
10841: finish_eval=
10842: shlibpath_var=
10843: shlibpath_overrides_runpath=unknown
10844: version_type=none
10845: dynamic_linker="$host_os ld.so"
10846: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10847: need_lib_prefix=unknown
10848: hardcode_into_libs=no
10849:
10850: # when you set need_version to no, make sure it does not cause -set_version
10851: # flags to be left without arguments
10852: need_version=unknown
10853:
10854: case $host_os in
10855: aix3*)
10856: version_type=linux # correct to gnu/linux during the next big refactor
10857: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10858: shlibpath_var=LIBPATH
10859:
10860: # AIX 3 has no versioning support, so we append a major version to the name.
10861: soname_spec='${libname}${release}${shared_ext}$major'
10862: ;;
10863:
10864: aix[4-9]*)
10865: version_type=linux # correct to gnu/linux during the next big refactor
10866: need_lib_prefix=no
10867: need_version=no
10868: hardcode_into_libs=yes
10869: if test "$host_cpu" = ia64; then
10870: # AIX 5 supports IA64
10871: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10872: shlibpath_var=LD_LIBRARY_PATH
1.10 paf 10873: else
1.23 moko 10874: # With GCC up to 2.95.x, collect2 would create an import file
10875: # for dependence libraries. The import file would start with
10876: # the line `#! .'. This would cause the generated library to
10877: # depend on `.', always an invalid library. This was fixed in
10878: # development snapshots of GCC prior to 3.0.
10879: case $host_os in
10880: aix4 | aix4.[01] | aix4.[01].*)
10881: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10882: echo ' yes '
10883: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10884: :
10885: else
10886: can_build_shared=no
10887: fi
10888: ;;
10889: esac
10890: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10891: # soname into executable. Probably we can add versioning support to
10892: # collect2, so additional links can be useful in future.
10893: if test "$aix_use_runtimelinking" = yes; then
10894: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10895: # instead of lib<name>.a to let people know that these are not
10896: # typical AIX shared libraries.
10897: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898: else
10899: # We preserve .a as extension for shared libraries through AIX4.2
10900: # and later when we are not doing run time linking.
10901: library_names_spec='${libname}${release}.a $libname.a'
10902: soname_spec='${libname}${release}${shared_ext}$major'
10903: fi
10904: shlibpath_var=LIBPATH
1.1 parser 10905: fi
1.23 moko 10906: ;;
10907:
10908: amigaos*)
10909: case $host_cpu in
10910: powerpc)
10911: # Since July 2007 AmigaOS4 officially supports .so libraries.
10912: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10913: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914: ;;
10915: m68k)
10916: library_names_spec='$libname.ixlibrary $libname.a'
10917: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10918: 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'
10919: ;;
1.16 paf 10920: esac
1.23 moko 10921: ;;
10922:
10923: beos*)
10924: library_names_spec='${libname}${shared_ext}'
10925: dynamic_linker="$host_os ld.so"
10926: shlibpath_var=LIBRARY_PATH
10927: ;;
10928:
10929: bsdi[45]*)
10930: version_type=linux # correct to gnu/linux during the next big refactor
10931: need_version=no
10932: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933: soname_spec='${libname}${release}${shared_ext}$major'
10934: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10935: shlibpath_var=LD_LIBRARY_PATH
10936: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10937: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10938: # the default ld.so.conf also contains /usr/contrib/lib and
10939: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10940: # libtool to hard-code these into programs
10941: ;;
10942:
10943: cygwin* | mingw* | pw32* | cegcc*)
10944: version_type=windows
10945: shrext_cmds=".dll"
10946: need_version=no
10947: need_lib_prefix=no
10948:
10949: case $GCC,$cc_basename in
10950: yes,*)
10951: # gcc
10952: library_names_spec='$libname.dll.a'
10953: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10954: postinstall_cmds='base_file=`basename \${file}`~
10955: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10956: dldir=$destdir/`dirname \$dlpath`~
10957: test -d \$dldir || mkdir -p \$dldir~
10958: $install_prog $dir/$dlname \$dldir/$dlname~
10959: chmod a+x \$dldir/$dlname~
10960: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10961: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10962: fi'
10963: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10964: dlpath=$dir/\$dldll~
10965: $RM \$dlpath'
10966: shlibpath_overrides_runpath=yes
10967:
10968: case $host_os in
10969: cygwin*)
10970: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10971: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10972:
10973: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10974: ;;
10975: mingw* | cegcc*)
10976: # MinGW DLLs use traditional 'lib' prefix
10977: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10978: ;;
10979: pw32*)
10980: # pw32 DLLs use 'pw' prefix rather than 'lib'
10981: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10982: ;;
10983: esac
10984: dynamic_linker='Win32 ld.exe'
10985: ;;
10986:
10987: *,cl*)
10988: # Native MSVC
10989: libname_spec='$name'
10990: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10991: library_names_spec='${libname}.dll.lib'
10992:
10993: case $build_os in
10994: mingw*)
10995: sys_lib_search_path_spec=
10996: lt_save_ifs=$IFS
10997: IFS=';'
10998: for lt_path in $LIB
10999: do
11000: IFS=$lt_save_ifs
11001: # Let DOS variable expansion print the short 8.3 style file name.
11002: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11003: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11004: done
11005: IFS=$lt_save_ifs
11006: # Convert to MSYS style.
11007: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11008: ;;
11009: cygwin*)
11010: # Convert to unix form, then to dos form, then back to unix form
11011: # but this time dos style (no spaces!) so that the unix form looks
11012: # like /cygdrive/c/PROGRA~1:/cygdr...
11013: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11014: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11015: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11016: ;;
11017: *)
11018: sys_lib_search_path_spec="$LIB"
11019: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11020: # It is most probably a Windows format PATH.
11021: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11022: else
11023: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11024: fi
11025: # FIXME: find the short name or the path components, as spaces are
11026: # common. (e.g. "Program Files" -> "PROGRA~1")
11027: ;;
11028: esac
11029:
11030: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11031: postinstall_cmds='base_file=`basename \${file}`~
11032: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11033: dldir=$destdir/`dirname \$dlpath`~
11034: test -d \$dldir || mkdir -p \$dldir~
11035: $install_prog $dir/$dlname \$dldir/$dlname'
11036: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11037: dlpath=$dir/\$dldll~
11038: $RM \$dlpath'
11039: shlibpath_overrides_runpath=yes
11040: dynamic_linker='Win32 link.exe'
11041: ;;
11042:
11043: *)
11044: # Assume MSVC wrapper
11045: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11046: dynamic_linker='Win32 ld.exe'
11047: ;;
11048: esac
11049: # FIXME: first we should search . and the directory the executable is in
11050: shlibpath_var=PATH
11051: ;;
11052:
11053: darwin* | rhapsody*)
11054: dynamic_linker="$host_os dyld"
11055: version_type=darwin
11056: need_lib_prefix=no
11057: need_version=no
11058: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11059: soname_spec='${libname}${release}${major}$shared_ext'
11060: shlibpath_overrides_runpath=yes
11061: shlibpath_var=DYLD_LIBRARY_PATH
11062: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11063:
11064: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11065: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11066: ;;
11067:
11068: dgux*)
11069: version_type=linux # correct to gnu/linux during the next big refactor
11070: need_lib_prefix=no
11071: need_version=no
11072: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11073: soname_spec='${libname}${release}${shared_ext}$major'
11074: shlibpath_var=LD_LIBRARY_PATH
11075: ;;
11076:
11077: freebsd* | dragonfly*)
11078: # DragonFly does not have aout. When/if they implement a new
11079: # versioning mechanism, adjust this.
11080: if test -x /usr/bin/objformat; then
11081: objformat=`/usr/bin/objformat`
11082: else
11083: case $host_os in
11084: freebsd[23].*) objformat=aout ;;
11085: *) objformat=elf ;;
11086: esac
11087: fi
11088: version_type=freebsd-$objformat
11089: case $version_type in
11090: freebsd-elf*)
11091: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11092: need_version=no
11093: need_lib_prefix=no
11094: ;;
11095: freebsd-*)
11096: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11097: need_version=yes
11098: ;;
11099: esac
11100: shlibpath_var=LD_LIBRARY_PATH
11101: case $host_os in
11102: freebsd2.*)
11103: shlibpath_overrides_runpath=yes
11104: ;;
11105: freebsd3.[01]* | freebsdelf3.[01]*)
11106: shlibpath_overrides_runpath=yes
11107: hardcode_into_libs=yes
11108: ;;
11109: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11110: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11111: shlibpath_overrides_runpath=no
11112: hardcode_into_libs=yes
11113: ;;
11114: *) # from 4.6 on, and DragonFly
11115: shlibpath_overrides_runpath=yes
11116: hardcode_into_libs=yes
11117: ;;
11118: esac
11119: ;;
11120:
11121: gnu*)
11122: version_type=linux # correct to gnu/linux during the next big refactor
11123: need_lib_prefix=no
11124: need_version=no
11125: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11126: soname_spec='${libname}${release}${shared_ext}$major'
11127: shlibpath_var=LD_LIBRARY_PATH
11128: shlibpath_overrides_runpath=no
11129: hardcode_into_libs=yes
11130: ;;
11131:
11132: haiku*)
11133: version_type=linux # correct to gnu/linux during the next big refactor
11134: need_lib_prefix=no
11135: need_version=no
11136: dynamic_linker="$host_os runtime_loader"
11137: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11138: soname_spec='${libname}${release}${shared_ext}$major'
11139: shlibpath_var=LIBRARY_PATH
11140: shlibpath_overrides_runpath=yes
11141: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11142: hardcode_into_libs=yes
11143: ;;
11144:
11145: hpux9* | hpux10* | hpux11*)
11146: # Give a soname corresponding to the major version so that dld.sl refuses to
11147: # link against other versions.
11148: version_type=sunos
11149: need_lib_prefix=no
11150: need_version=no
11151: case $host_cpu in
11152: ia64*)
11153: shrext_cmds='.so'
11154: hardcode_into_libs=yes
11155: dynamic_linker="$host_os dld.so"
11156: shlibpath_var=LD_LIBRARY_PATH
11157: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11158: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159: soname_spec='${libname}${release}${shared_ext}$major'
11160: if test "X$HPUX_IA64_MODE" = X32; then
11161: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11162: else
11163: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11164: fi
11165: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11166: ;;
11167: hppa*64*)
11168: shrext_cmds='.sl'
11169: hardcode_into_libs=yes
11170: dynamic_linker="$host_os dld.sl"
11171: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11172: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11173: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174: soname_spec='${libname}${release}${shared_ext}$major'
11175: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11176: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11177: ;;
11178: *)
11179: shrext_cmds='.sl'
11180: dynamic_linker="$host_os dld.sl"
11181: shlibpath_var=SHLIB_PATH
11182: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11183: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184: soname_spec='${libname}${release}${shared_ext}$major'
11185: ;;
11186: esac
11187: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11188: postinstall_cmds='chmod 555 $lib'
11189: # or fails outright, so override atomically:
11190: install_override_mode=555
11191: ;;
11192:
11193: interix[3-9]*)
11194: version_type=linux # correct to gnu/linux during the next big refactor
11195: need_lib_prefix=no
11196: need_version=no
11197: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11198: soname_spec='${libname}${release}${shared_ext}$major'
11199: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11200: shlibpath_var=LD_LIBRARY_PATH
11201: shlibpath_overrides_runpath=no
11202: hardcode_into_libs=yes
11203: ;;
11204:
11205: irix5* | irix6* | nonstopux*)
11206: case $host_os in
11207: nonstopux*) version_type=nonstopux ;;
11208: *)
11209: if test "$lt_cv_prog_gnu_ld" = yes; then
11210: version_type=linux # correct to gnu/linux during the next big refactor
11211: else
11212: version_type=irix
11213: fi ;;
11214: esac
11215: need_lib_prefix=no
11216: need_version=no
11217: soname_spec='${libname}${release}${shared_ext}$major'
11218: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11219: case $host_os in
11220: irix5* | nonstopux*)
11221: libsuff= shlibsuff=
11222: ;;
11223: *)
11224: case $LD in # libtool.m4 will add one of these switches to LD
11225: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11226: libsuff= shlibsuff= libmagic=32-bit;;
11227: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11228: libsuff=32 shlibsuff=N32 libmagic=N32;;
11229: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11230: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11231: *) libsuff= shlibsuff= libmagic=never-match;;
11232: esac
11233: ;;
11234: esac
11235: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11236: shlibpath_overrides_runpath=no
11237: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11238: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11239: hardcode_into_libs=yes
11240: ;;
11241:
11242: # No shared lib support for Linux oldld, aout, or coff.
11243: linux*oldld* | linux*aout* | linux*coff*)
11244: dynamic_linker=no
11245: ;;
11246:
11247: # This must be glibc/ELF.
11248: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11249: version_type=linux # correct to gnu/linux during the next big refactor
11250: need_lib_prefix=no
11251: need_version=no
11252: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253: soname_spec='${libname}${release}${shared_ext}$major'
11254: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11255: shlibpath_var=LD_LIBRARY_PATH
11256: shlibpath_overrides_runpath=no
11257:
11258: # Some binutils ld are patched to set DT_RUNPATH
1.31 moko 11259: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11260: $as_echo_n "(cached) " >&6
1.23 moko 11261: else
11262: lt_cv_shlibpath_overrides_runpath=no
11263: save_LDFLAGS=$LDFLAGS
11264: save_libdir=$libdir
11265: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11266: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.31 moko 11267: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11268: /* end confdefs.h. */
11269:
11270: int
11271: main ()
11272: {
11273:
11274: ;
11275: return 0;
11276: }
11277: _ACEOF
1.31 moko 11278: if ac_fn_c_try_link "$LINENO"; then :
11279: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.23 moko 11280: lt_cv_shlibpath_overrides_runpath=yes
11281: fi
11282: fi
1.31 moko 11283: rm -f core conftest.err conftest.$ac_objext \
11284: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11285: LDFLAGS=$save_LDFLAGS
11286: libdir=$save_libdir
11287:
11288: fi
11289:
11290: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11291:
11292: # This implies no fast_install, which is unacceptable.
11293: # Some rework will be needed to allow for fast_install
11294: # before this can be enabled.
11295: hardcode_into_libs=yes
11296:
11297: # Append ld.so.conf contents to the search path
11298: if test -f /etc/ld.so.conf; then
11299: 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' ' '`
11300: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11301: fi
11302:
11303: # We used to test for /lib/ld.so.1 and disable shared libraries on
11304: # powerpc, because MkLinux only supported shared libraries with the
11305: # GNU dynamic linker. Since this was broken with cross compilers,
11306: # most powerpc-linux boxes support dynamic linking these days and
11307: # people can always --disable-shared, the test was removed, and we
11308: # assume the GNU/Linux dynamic linker is in use.
11309: dynamic_linker='GNU/Linux ld.so'
11310: ;;
11311:
11312: netbsd*)
11313: version_type=sunos
11314: need_lib_prefix=no
11315: need_version=no
11316: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11317: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11318: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11319: dynamic_linker='NetBSD (a.out) ld.so'
11320: else
11321: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11322: soname_spec='${libname}${release}${shared_ext}$major'
11323: dynamic_linker='NetBSD ld.elf_so'
11324: fi
11325: shlibpath_var=LD_LIBRARY_PATH
11326: shlibpath_overrides_runpath=yes
11327: hardcode_into_libs=yes
11328: ;;
11329:
11330: newsos6)
11331: version_type=linux # correct to gnu/linux during the next big refactor
11332: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333: shlibpath_var=LD_LIBRARY_PATH
11334: shlibpath_overrides_runpath=yes
11335: ;;
11336:
11337: *nto* | *qnx*)
11338: version_type=qnx
11339: need_lib_prefix=no
11340: need_version=no
11341: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342: soname_spec='${libname}${release}${shared_ext}$major'
11343: shlibpath_var=LD_LIBRARY_PATH
11344: shlibpath_overrides_runpath=no
11345: hardcode_into_libs=yes
11346: dynamic_linker='ldqnx.so'
11347: ;;
11348:
11349: openbsd*)
11350: version_type=sunos
11351: sys_lib_dlsearch_path_spec="/usr/lib"
11352: need_lib_prefix=no
11353: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11354: case $host_os in
11355: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11356: *) need_version=no ;;
11357: esac
11358: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11359: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11360: shlibpath_var=LD_LIBRARY_PATH
11361: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11362: case $host_os in
11363: openbsd2.[89] | openbsd2.[89].*)
11364: shlibpath_overrides_runpath=no
11365: ;;
11366: *)
11367: shlibpath_overrides_runpath=yes
11368: ;;
11369: esac
11370: else
11371: shlibpath_overrides_runpath=yes
11372: fi
11373: ;;
11374:
11375: os2*)
11376: libname_spec='$name'
11377: shrext_cmds=".dll"
11378: need_lib_prefix=no
11379: library_names_spec='$libname${shared_ext} $libname.a'
11380: dynamic_linker='OS/2 ld.exe'
11381: shlibpath_var=LIBPATH
11382: ;;
11383:
11384: osf3* | osf4* | osf5*)
11385: version_type=osf
11386: need_lib_prefix=no
11387: need_version=no
11388: soname_spec='${libname}${release}${shared_ext}$major'
11389: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390: shlibpath_var=LD_LIBRARY_PATH
11391: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11392: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11393: ;;
11394:
11395: rdos*)
11396: dynamic_linker=no
11397: ;;
11398:
11399: solaris*)
11400: version_type=linux # correct to gnu/linux during the next big refactor
11401: need_lib_prefix=no
11402: need_version=no
11403: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404: soname_spec='${libname}${release}${shared_ext}$major'
11405: shlibpath_var=LD_LIBRARY_PATH
11406: shlibpath_overrides_runpath=yes
11407: hardcode_into_libs=yes
11408: # ldd complains unless libraries are executable
11409: postinstall_cmds='chmod +x $lib'
11410: ;;
11411:
11412: sunos4*)
11413: version_type=sunos
11414: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11415: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11416: shlibpath_var=LD_LIBRARY_PATH
11417: shlibpath_overrides_runpath=yes
11418: if test "$with_gnu_ld" = yes; then
11419: need_lib_prefix=no
11420: fi
11421: need_version=yes
11422: ;;
11423:
11424: sysv4 | sysv4.3*)
11425: version_type=linux # correct to gnu/linux during the next big refactor
11426: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427: soname_spec='${libname}${release}${shared_ext}$major'
11428: shlibpath_var=LD_LIBRARY_PATH
11429: case $host_vendor in
11430: sni)
11431: shlibpath_overrides_runpath=no
11432: need_lib_prefix=no
11433: runpath_var=LD_RUN_PATH
11434: ;;
11435: siemens)
11436: need_lib_prefix=no
11437: ;;
11438: motorola)
11439: need_lib_prefix=no
11440: need_version=no
11441: shlibpath_overrides_runpath=no
11442: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11443: ;;
11444: esac
11445: ;;
11446:
11447: sysv4*MP*)
11448: if test -d /usr/nec ;then
11449: version_type=linux # correct to gnu/linux during the next big refactor
11450: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11451: soname_spec='$libname${shared_ext}.$major'
11452: shlibpath_var=LD_LIBRARY_PATH
11453: fi
11454: ;;
11455:
11456: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11457: version_type=freebsd-elf
11458: need_lib_prefix=no
11459: need_version=no
11460: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11461: soname_spec='${libname}${release}${shared_ext}$major'
11462: shlibpath_var=LD_LIBRARY_PATH
11463: shlibpath_overrides_runpath=yes
11464: hardcode_into_libs=yes
11465: if test "$with_gnu_ld" = yes; then
11466: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11467: else
11468: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11469: case $host_os in
11470: sco3.2v5*)
11471: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11472: ;;
11473: esac
11474: fi
11475: sys_lib_dlsearch_path_spec='/usr/lib'
11476: ;;
11477:
11478: tpf*)
11479: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11480: version_type=linux # correct to gnu/linux during the next big refactor
11481: need_lib_prefix=no
11482: need_version=no
11483: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484: shlibpath_var=LD_LIBRARY_PATH
11485: shlibpath_overrides_runpath=no
11486: hardcode_into_libs=yes
11487: ;;
11488:
11489: uts4*)
11490: version_type=linux # correct to gnu/linux during the next big refactor
11491: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492: soname_spec='${libname}${release}${shared_ext}$major'
11493: shlibpath_var=LD_LIBRARY_PATH
11494: ;;
11495:
11496: *)
11497: dynamic_linker=no
11498: ;;
11499: esac
1.31 moko 11500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11501: $as_echo "$dynamic_linker" >&6; }
1.23 moko 11502: test "$dynamic_linker" = no && can_build_shared=no
11503:
11504: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11505: if test "$GCC" = yes; then
11506: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11507: fi
11508:
11509: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11510: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11511: fi
11512: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11513: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11514: fi
11515:
11516:
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
11572:
11573:
11574:
11575:
11576:
11577:
11578:
11579:
11580:
11581:
11582:
11583:
11584:
11585:
11586:
11587:
11588:
11589:
11590:
11591:
11592:
11593:
11594:
11595:
11596:
11597:
11598:
11599:
11600:
11601:
11602:
11603:
11604:
11605:
11606:
1.31 moko 11607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11608: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.23 moko 11609: hardcode_action=
11610: if test -n "$hardcode_libdir_flag_spec" ||
11611: test -n "$runpath_var" ||
11612: test "X$hardcode_automatic" = "Xyes" ; then
11613:
11614: # We can hardcode non-existent directories.
11615: if test "$hardcode_direct" != no &&
11616: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11617: # have to relink, otherwise we might link with an installed library
11618: # when we should be linking with a yet-to-be-installed one
11619: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11620: test "$hardcode_minus_L" != no; then
11621: # Linking always hardcodes the temporary library directory.
11622: hardcode_action=relink
11623: else
11624: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11625: hardcode_action=immediate
11626: fi
11627: else
11628: # We cannot hardcode anything, or else we can only hardcode existing
11629: # directories.
11630: hardcode_action=unsupported
11631: fi
1.31 moko 11632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11633: $as_echo "$hardcode_action" >&6; }
1.23 moko 11634:
11635: if test "$hardcode_action" = relink ||
11636: test "$inherit_rpath" = yes; then
11637: # Fast installation is not supported
11638: enable_fast_install=no
11639: elif test "$shlibpath_overrides_runpath" = yes ||
11640: test "$enable_shared" = no; then
11641: # Fast installation is not necessary
11642: enable_fast_install=needless
11643: fi
11644:
11645:
11646:
11647:
11648:
11649:
11650: if test "x$enable_dlopen" != xyes; then
11651: enable_dlopen=unknown
11652: enable_dlopen_self=unknown
11653: enable_dlopen_self_static=unknown
11654: else
11655: lt_cv_dlopen=no
11656: lt_cv_dlopen_libs=
11657:
11658: case $host_os in
11659: beos*)
11660: lt_cv_dlopen="load_add_on"
11661: lt_cv_dlopen_libs=
11662: lt_cv_dlopen_self=yes
11663: ;;
11664:
11665: mingw* | pw32* | cegcc*)
11666: lt_cv_dlopen="LoadLibrary"
11667: lt_cv_dlopen_libs=
11668: ;;
11669:
11670: cygwin*)
11671: lt_cv_dlopen="dlopen"
11672: lt_cv_dlopen_libs=
11673: ;;
11674:
11675: darwin*)
11676: # if libdl is installed we need to link against it
1.31 moko 11677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11678: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11679: if ${ac_cv_lib_dl_dlopen+:} false; then :
11680: $as_echo_n "(cached) " >&6
1.23 moko 11681: else
11682: ac_check_lib_save_LIBS=$LIBS
11683: LIBS="-ldl $LIBS"
1.31 moko 11684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11685: /* end confdefs.h. */
11686:
1.31 moko 11687: /* Override any GCC internal prototype to avoid an error.
11688: Use char because int might match the return type of a GCC
11689: builtin and then its argument prototype would still apply. */
1.23 moko 11690: #ifdef __cplusplus
11691: extern "C"
11692: #endif
11693: char dlopen ();
11694: int
11695: main ()
11696: {
1.31 moko 11697: return dlopen ();
1.23 moko 11698: ;
11699: return 0;
11700: }
11701: _ACEOF
1.31 moko 11702: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11703: ac_cv_lib_dl_dlopen=yes
11704: else
1.31 moko 11705: ac_cv_lib_dl_dlopen=no
1.23 moko 11706: fi
1.31 moko 11707: rm -f core conftest.err conftest.$ac_objext \
11708: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11709: LIBS=$ac_check_lib_save_LIBS
11710: fi
1.31 moko 11711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11712: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11713: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.23 moko 11714: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11715: else
11716:
11717: lt_cv_dlopen="dyld"
11718: lt_cv_dlopen_libs=
11719: lt_cv_dlopen_self=yes
11720:
11721: fi
11722:
11723: ;;
11724:
11725: *)
1.31 moko 11726: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11727: if test "x$ac_cv_func_shl_load" = xyes; then :
1.23 moko 11728: lt_cv_dlopen="shl_load"
11729: else
1.31 moko 11730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11731: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11732: if ${ac_cv_lib_dld_shl_load+:} false; then :
11733: $as_echo_n "(cached) " >&6
1.23 moko 11734: else
1.31 moko 11735: ac_check_lib_save_LIBS=$LIBS
11736: LIBS="-ldld $LIBS"
11737: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11738: /* end confdefs.h. */
11739:
1.31 moko 11740: /* Override any GCC internal prototype to avoid an error.
11741: Use char because int might match the return type of a GCC
11742: builtin and then its argument prototype would still apply. */
1.23 moko 11743: #ifdef __cplusplus
11744: extern "C"
11745: #endif
1.31 moko 11746: char shl_load ();
1.23 moko 11747: int
11748: main ()
11749: {
1.31 moko 11750: return shl_load ();
1.23 moko 11751: ;
11752: return 0;
11753: }
11754: _ACEOF
1.31 moko 11755: if ac_fn_c_try_link "$LINENO"; then :
11756: ac_cv_lib_dld_shl_load=yes
1.23 moko 11757: else
1.31 moko 11758: ac_cv_lib_dld_shl_load=no
1.23 moko 11759: fi
1.31 moko 11760: rm -f core conftest.err conftest.$ac_objext \
11761: conftest$ac_exeext conftest.$ac_ext
11762: LIBS=$ac_check_lib_save_LIBS
1.23 moko 11763: fi
1.31 moko 11764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11765: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11766: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11767: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11768: else
11769: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11770: if test "x$ac_cv_func_dlopen" = xyes; then :
1.23 moko 11771: lt_cv_dlopen="dlopen"
11772: else
1.31 moko 11773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11774: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11775: if ${ac_cv_lib_dl_dlopen+:} false; then :
11776: $as_echo_n "(cached) " >&6
1.23 moko 11777: else
11778: ac_check_lib_save_LIBS=$LIBS
11779: LIBS="-ldl $LIBS"
1.31 moko 11780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11781: /* end confdefs.h. */
11782:
1.31 moko 11783: /* Override any GCC internal prototype to avoid an error.
11784: Use char because int might match the return type of a GCC
11785: builtin and then its argument prototype would still apply. */
1.23 moko 11786: #ifdef __cplusplus
11787: extern "C"
11788: #endif
11789: char dlopen ();
11790: int
11791: main ()
11792: {
1.31 moko 11793: return dlopen ();
1.23 moko 11794: ;
11795: return 0;
11796: }
11797: _ACEOF
1.31 moko 11798: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11799: ac_cv_lib_dl_dlopen=yes
11800: else
1.31 moko 11801: ac_cv_lib_dl_dlopen=no
1.23 moko 11802: fi
1.31 moko 11803: rm -f core conftest.err conftest.$ac_objext \
11804: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11805: LIBS=$ac_check_lib_save_LIBS
11806: fi
1.31 moko 11807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11808: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11809: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.23 moko 11810: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11811: else
1.31 moko 11812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11813: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11814: if ${ac_cv_lib_svld_dlopen+:} false; then :
11815: $as_echo_n "(cached) " >&6
1.23 moko 11816: else
11817: ac_check_lib_save_LIBS=$LIBS
11818: LIBS="-lsvld $LIBS"
1.31 moko 11819: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11820: /* end confdefs.h. */
11821:
1.31 moko 11822: /* Override any GCC internal prototype to avoid an error.
11823: Use char because int might match the return type of a GCC
11824: builtin and then its argument prototype would still apply. */
1.23 moko 11825: #ifdef __cplusplus
11826: extern "C"
11827: #endif
11828: char dlopen ();
11829: int
11830: main ()
11831: {
1.31 moko 11832: return dlopen ();
1.23 moko 11833: ;
11834: return 0;
11835: }
11836: _ACEOF
1.31 moko 11837: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11838: ac_cv_lib_svld_dlopen=yes
11839: else
1.31 moko 11840: ac_cv_lib_svld_dlopen=no
1.23 moko 11841: fi
1.31 moko 11842: rm -f core conftest.err conftest.$ac_objext \
11843: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11844: LIBS=$ac_check_lib_save_LIBS
11845: fi
1.31 moko 11846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11847: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11848: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.23 moko 11849: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11850: else
1.31 moko 11851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11852: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11853: if ${ac_cv_lib_dld_dld_link+:} false; then :
11854: $as_echo_n "(cached) " >&6
1.23 moko 11855: else
11856: ac_check_lib_save_LIBS=$LIBS
11857: LIBS="-ldld $LIBS"
1.31 moko 11858: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11859: /* end confdefs.h. */
11860:
1.31 moko 11861: /* Override any GCC internal prototype to avoid an error.
11862: Use char because int might match the return type of a GCC
11863: builtin and then its argument prototype would still apply. */
1.23 moko 11864: #ifdef __cplusplus
11865: extern "C"
11866: #endif
11867: char dld_link ();
11868: int
11869: main ()
11870: {
1.31 moko 11871: return dld_link ();
1.23 moko 11872: ;
11873: return 0;
11874: }
11875: _ACEOF
1.31 moko 11876: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11877: ac_cv_lib_dld_dld_link=yes
11878: else
1.31 moko 11879: ac_cv_lib_dld_dld_link=no
1.23 moko 11880: fi
1.31 moko 11881: rm -f core conftest.err conftest.$ac_objext \
11882: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11883: LIBS=$ac_check_lib_save_LIBS
11884: fi
1.31 moko 11885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11886: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11887: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.23 moko 11888: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11889: fi
11890:
11891:
11892: fi
11893:
11894:
11895: fi
11896:
11897:
11898: fi
11899:
11900:
11901: fi
11902:
11903:
11904: fi
11905:
11906: ;;
11907: esac
11908:
11909: if test "x$lt_cv_dlopen" != xno; then
11910: enable_dlopen=yes
11911: else
11912: enable_dlopen=no
11913: fi
11914:
11915: case $lt_cv_dlopen in
11916: dlopen)
11917: save_CPPFLAGS="$CPPFLAGS"
11918: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11919:
11920: save_LDFLAGS="$LDFLAGS"
11921: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11922:
11923: save_LIBS="$LIBS"
11924: LIBS="$lt_cv_dlopen_libs $LIBS"
11925:
1.31 moko 11926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11927: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11928: if ${lt_cv_dlopen_self+:} false; then :
11929: $as_echo_n "(cached) " >&6
1.23 moko 11930: else
11931: if test "$cross_compiling" = yes; then :
11932: lt_cv_dlopen_self=cross
11933: else
11934: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11935: lt_status=$lt_dlunknown
11936: cat > conftest.$ac_ext <<_LT_EOF
11937: #line $LINENO "configure"
11938: #include "confdefs.h"
11939:
11940: #if HAVE_DLFCN_H
11941: #include <dlfcn.h>
11942: #endif
11943:
11944: #include <stdio.h>
11945:
11946: #ifdef RTLD_GLOBAL
11947: # define LT_DLGLOBAL RTLD_GLOBAL
11948: #else
11949: # ifdef DL_GLOBAL
11950: # define LT_DLGLOBAL DL_GLOBAL
11951: # else
11952: # define LT_DLGLOBAL 0
11953: # endif
11954: #endif
11955:
11956: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11957: find out it does not work in some platform. */
11958: #ifndef LT_DLLAZY_OR_NOW
11959: # ifdef RTLD_LAZY
11960: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11961: # else
11962: # ifdef DL_LAZY
11963: # define LT_DLLAZY_OR_NOW DL_LAZY
11964: # else
11965: # ifdef RTLD_NOW
11966: # define LT_DLLAZY_OR_NOW RTLD_NOW
11967: # else
11968: # ifdef DL_NOW
11969: # define LT_DLLAZY_OR_NOW DL_NOW
11970: # else
11971: # define LT_DLLAZY_OR_NOW 0
11972: # endif
11973: # endif
11974: # endif
11975: # endif
11976: #endif
11977:
11978: /* When -fvisbility=hidden is used, assume the code has been annotated
11979: correspondingly for the symbols needed. */
11980: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11981: int fnord () __attribute__((visibility("default")));
11982: #endif
11983:
11984: int fnord () { return 42; }
11985: int main ()
11986: {
11987: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11988: int status = $lt_dlunknown;
11989:
11990: if (self)
11991: {
11992: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11993: else
11994: {
11995: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11996: else puts (dlerror ());
11997: }
11998: /* dlclose (self); */
11999: }
12000: else
12001: puts (dlerror ());
12002:
12003: return status;
12004: }
12005: _LT_EOF
1.31 moko 12006: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 12007: (eval $ac_link) 2>&5
12008: ac_status=$?
1.31 moko 12009: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12010: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.23 moko 12011: (./conftest; exit; ) >&5 2>/dev/null
12012: lt_status=$?
12013: case x$lt_status in
12014: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12015: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12016: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12017: esac
12018: else :
12019: # compilation failed
12020: lt_cv_dlopen_self=no
12021: fi
12022: fi
12023: rm -fr conftest*
12024:
12025:
12026: fi
1.31 moko 12027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12028: $as_echo "$lt_cv_dlopen_self" >&6; }
1.23 moko 12029:
12030: if test "x$lt_cv_dlopen_self" = xyes; then
12031: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.31 moko 12032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12033: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12034: if ${lt_cv_dlopen_self_static+:} false; then :
12035: $as_echo_n "(cached) " >&6
1.23 moko 12036: else
12037: if test "$cross_compiling" = yes; then :
12038: lt_cv_dlopen_self_static=cross
12039: else
12040: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12041: lt_status=$lt_dlunknown
12042: cat > conftest.$ac_ext <<_LT_EOF
12043: #line $LINENO "configure"
12044: #include "confdefs.h"
12045:
12046: #if HAVE_DLFCN_H
12047: #include <dlfcn.h>
12048: #endif
12049:
12050: #include <stdio.h>
12051:
12052: #ifdef RTLD_GLOBAL
12053: # define LT_DLGLOBAL RTLD_GLOBAL
12054: #else
12055: # ifdef DL_GLOBAL
12056: # define LT_DLGLOBAL DL_GLOBAL
12057: # else
12058: # define LT_DLGLOBAL 0
12059: # endif
12060: #endif
12061:
12062: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12063: find out it does not work in some platform. */
12064: #ifndef LT_DLLAZY_OR_NOW
12065: # ifdef RTLD_LAZY
12066: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12067: # else
12068: # ifdef DL_LAZY
12069: # define LT_DLLAZY_OR_NOW DL_LAZY
12070: # else
12071: # ifdef RTLD_NOW
12072: # define LT_DLLAZY_OR_NOW RTLD_NOW
12073: # else
12074: # ifdef DL_NOW
12075: # define LT_DLLAZY_OR_NOW DL_NOW
12076: # else
12077: # define LT_DLLAZY_OR_NOW 0
12078: # endif
12079: # endif
12080: # endif
12081: # endif
12082: #endif
12083:
12084: /* When -fvisbility=hidden is used, assume the code has been annotated
12085: correspondingly for the symbols needed. */
12086: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12087: int fnord () __attribute__((visibility("default")));
12088: #endif
12089:
12090: int fnord () { return 42; }
12091: int main ()
12092: {
12093: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12094: int status = $lt_dlunknown;
12095:
12096: if (self)
12097: {
12098: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12099: else
12100: {
12101: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12102: else puts (dlerror ());
12103: }
12104: /* dlclose (self); */
12105: }
12106: else
12107: puts (dlerror ());
12108:
12109: return status;
12110: }
12111: _LT_EOF
1.31 moko 12112: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 12113: (eval $ac_link) 2>&5
12114: ac_status=$?
1.31 moko 12115: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12116: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.23 moko 12117: (./conftest; exit; ) >&5 2>/dev/null
12118: lt_status=$?
12119: case x$lt_status in
12120: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12121: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12122: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12123: esac
12124: else :
12125: # compilation failed
12126: lt_cv_dlopen_self_static=no
12127: fi
12128: fi
12129: rm -fr conftest*
12130:
12131:
12132: fi
1.31 moko 12133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12134: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.23 moko 12135: fi
12136:
12137: CPPFLAGS="$save_CPPFLAGS"
12138: LDFLAGS="$save_LDFLAGS"
12139: LIBS="$save_LIBS"
12140: ;;
12141: esac
12142:
12143: case $lt_cv_dlopen_self in
12144: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12145: *) enable_dlopen_self=unknown ;;
12146: esac
12147:
12148: case $lt_cv_dlopen_self_static in
12149: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12150: *) enable_dlopen_self_static=unknown ;;
12151: esac
12152: fi
12153:
12154:
12155:
12156:
12157:
12158:
12159:
12160:
12161:
12162:
12163:
12164:
12165:
12166:
12167:
12168:
12169:
12170: striplib=
12171: old_striplib=
1.31 moko 12172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12173: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.23 moko 12174: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12175: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12176: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.31 moko 12177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178: $as_echo "yes" >&6; }
1.23 moko 12179: else
12180: # FIXME - insert some real tests, host_os isn't really good enough
12181: case $host_os in
12182: darwin*)
12183: if test -n "$STRIP" ; then
12184: striplib="$STRIP -x"
12185: old_striplib="$STRIP -S"
1.31 moko 12186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187: $as_echo "yes" >&6; }
1.23 moko 12188: else
1.31 moko 12189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190: $as_echo "no" >&6; }
1.23 moko 12191: fi
12192: ;;
12193: *)
1.31 moko 12194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195: $as_echo "no" >&6; }
1.23 moko 12196: ;;
12197: esac
12198: fi
12199:
12200:
12201:
12202:
12203:
12204:
12205:
12206:
12207:
12208:
12209:
12210:
12211: # Report which library types will actually be built
1.31 moko 12212: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12213: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12215: $as_echo "$can_build_shared" >&6; }
1.23 moko 12216:
1.31 moko 12217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12218: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.23 moko 12219: test "$can_build_shared" = "no" && enable_shared=no
12220:
12221: # On AIX, shared libraries and static libraries use the same namespace, and
12222: # are all built from PIC.
12223: case $host_os in
12224: aix3*)
12225: test "$enable_shared" = yes && enable_static=no
12226: if test -n "$RANLIB"; then
12227: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12228: postinstall_cmds='$RANLIB $lib'
12229: fi
12230: ;;
12231:
12232: aix[4-9]*)
12233: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12234: test "$enable_shared" = yes && enable_static=no
12235: fi
12236: ;;
12237: esac
1.31 moko 12238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12239: $as_echo "$enable_shared" >&6; }
1.23 moko 12240:
1.31 moko 12241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12242: $as_echo_n "checking whether to build static libraries... " >&6; }
1.23 moko 12243: # Make sure either enable_shared or enable_static is yes.
12244: test "$enable_shared" = yes || enable_static=yes
1.31 moko 12245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12246: $as_echo "$enable_static" >&6; }
1.23 moko 12247:
12248:
12249:
12250:
12251: fi
12252: ac_ext=c
12253: ac_cpp='$CPP $CPPFLAGS'
12254: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12257:
12258: CC="$lt_save_CC"
12259:
12260: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12261: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12262: (test "X$CXX" != "Xg++"))) ; then
1.31 moko 12263: ac_ext=cpp
1.23 moko 12264: ac_cpp='$CXXCPP $CPPFLAGS'
12265: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12266: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12267: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.31 moko 12268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12269: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.23 moko 12270: if test -z "$CXXCPP"; then
1.31 moko 12271: if ${ac_cv_prog_CXXCPP+:} false; then :
12272: $as_echo_n "(cached) " >&6
1.23 moko 12273: else
12274: # Double quotes because CXXCPP needs to be expanded
12275: for CXXCPP in "$CXX -E" "/lib/cpp"
12276: do
12277: ac_preproc_ok=false
12278: for ac_cxx_preproc_warn_flag in '' yes
12279: do
12280: # Use a header file that comes with gcc, so configuring glibc
12281: # with a fresh cross-compiler works.
12282: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12283: # <limits.h> exists even on freestanding compilers.
12284: # On the NeXT, cc -E runs the code through the compiler's parser,
12285: # not just through cpp. "Syntax error" is here to catch this case.
1.31 moko 12286: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12287: /* end confdefs.h. */
12288: #ifdef __STDC__
12289: # include <limits.h>
12290: #else
12291: # include <assert.h>
12292: #endif
12293: Syntax error
12294: _ACEOF
1.31 moko 12295: if ac_fn_cxx_try_cpp "$LINENO"; then :
12296:
1.23 moko 12297: else
12298: # Broken: fails on valid input.
12299: continue
12300: fi
1.31 moko 12301: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12302:
1.31 moko 12303: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 12304: # can be detected and how.
1.31 moko 12305: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12306: /* end confdefs.h. */
12307: #include <ac_nonexistent.h>
12308: _ACEOF
1.31 moko 12309: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.23 moko 12310: # Broken: success on invalid input.
12311: continue
12312: else
12313: # Passes both tests.
12314: ac_preproc_ok=:
12315: break
12316: fi
1.31 moko 12317: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12318:
12319: done
12320: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 moko 12321: rm -f conftest.i conftest.err conftest.$ac_ext
12322: if $ac_preproc_ok; then :
1.23 moko 12323: break
12324: fi
12325:
12326: done
12327: ac_cv_prog_CXXCPP=$CXXCPP
12328:
12329: fi
12330: CXXCPP=$ac_cv_prog_CXXCPP
12331: else
12332: ac_cv_prog_CXXCPP=$CXXCPP
12333: fi
1.31 moko 12334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12335: $as_echo "$CXXCPP" >&6; }
1.23 moko 12336: ac_preproc_ok=false
12337: for ac_cxx_preproc_warn_flag in '' yes
12338: do
12339: # Use a header file that comes with gcc, so configuring glibc
12340: # with a fresh cross-compiler works.
12341: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12342: # <limits.h> exists even on freestanding compilers.
12343: # On the NeXT, cc -E runs the code through the compiler's parser,
12344: # not just through cpp. "Syntax error" is here to catch this case.
1.31 moko 12345: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12346: /* end confdefs.h. */
12347: #ifdef __STDC__
12348: # include <limits.h>
12349: #else
12350: # include <assert.h>
12351: #endif
12352: Syntax error
12353: _ACEOF
1.31 moko 12354: if ac_fn_cxx_try_cpp "$LINENO"; then :
12355:
1.23 moko 12356: else
12357: # Broken: fails on valid input.
12358: continue
12359: fi
1.31 moko 12360: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12361:
1.31 moko 12362: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 12363: # can be detected and how.
1.31 moko 12364: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12365: /* end confdefs.h. */
12366: #include <ac_nonexistent.h>
12367: _ACEOF
1.31 moko 12368: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.23 moko 12369: # Broken: success on invalid input.
12370: continue
12371: else
12372: # Passes both tests.
12373: ac_preproc_ok=:
12374: break
12375: fi
1.31 moko 12376: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12377:
12378: done
12379: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 moko 12380: rm -f conftest.i conftest.err conftest.$ac_ext
12381: if $ac_preproc_ok; then :
12382:
1.23 moko 12383: else
1.31 moko 12384: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12385: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12386: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12387: See \`config.log' for more details" "$LINENO" 5; }
1.23 moko 12388: fi
12389:
12390: ac_ext=c
12391: ac_cpp='$CPP $CPPFLAGS'
12392: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12393: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12394: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12395:
12396: else
12397: _lt_caught_CXX_error=yes
12398: fi
12399:
1.31 moko 12400: ac_ext=cpp
1.23 moko 12401: ac_cpp='$CXXCPP $CPPFLAGS'
12402: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12405:
12406: archive_cmds_need_lc_CXX=no
12407: allow_undefined_flag_CXX=
12408: always_export_symbols_CXX=no
12409: archive_expsym_cmds_CXX=
12410: compiler_needs_object_CXX=no
12411: export_dynamic_flag_spec_CXX=
12412: hardcode_direct_CXX=no
12413: hardcode_direct_absolute_CXX=no
12414: hardcode_libdir_flag_spec_CXX=
12415: hardcode_libdir_separator_CXX=
12416: hardcode_minus_L_CXX=no
12417: hardcode_shlibpath_var_CXX=unsupported
12418: hardcode_automatic_CXX=no
12419: inherit_rpath_CXX=no
12420: module_cmds_CXX=
12421: module_expsym_cmds_CXX=
12422: link_all_deplibs_CXX=unknown
12423: old_archive_cmds_CXX=$old_archive_cmds
12424: reload_flag_CXX=$reload_flag
12425: reload_cmds_CXX=$reload_cmds
12426: no_undefined_flag_CXX=
12427: whole_archive_flag_spec_CXX=
12428: enable_shared_with_static_runtimes_CXX=no
12429:
12430: # Source file extension for C++ test sources.
12431: ac_ext=cpp
12432:
12433: # Object file extension for compiled C++ test sources.
12434: objext=o
12435: objext_CXX=$objext
12436:
12437: # No sense in running all these tests if we already determined that
12438: # the CXX compiler isn't working. Some variables (like enable_shared)
12439: # are currently assumed to apply to all compilers on this platform,
12440: # and will be corrupted by setting them based on a non-working compiler.
12441: if test "$_lt_caught_CXX_error" != yes; then
12442: # Code to be used in simple compile tests
12443: lt_simple_compile_test_code="int some_variable = 0;"
12444:
12445: # Code to be used in simple link tests
12446: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12447:
12448: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12449:
12450:
12451:
12452:
12453:
12454:
12455: # If no C compiler was specified, use CC.
12456: LTCC=${LTCC-"$CC"}
12457:
12458: # If no C compiler flags were specified, use CFLAGS.
12459: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12460:
12461: # Allow CC to be a program name with arguments.
12462: compiler=$CC
12463:
12464:
12465: # save warnings/boilerplate of simple test code
12466: ac_outfile=conftest.$ac_objext
12467: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12468: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12469: _lt_compiler_boilerplate=`cat conftest.err`
12470: $RM conftest*
12471:
12472: ac_outfile=conftest.$ac_objext
12473: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12474: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12475: _lt_linker_boilerplate=`cat conftest.err`
12476: $RM -r conftest*
12477:
12478:
12479: # Allow CC to be a program name with arguments.
12480: lt_save_CC=$CC
12481: lt_save_CFLAGS=$CFLAGS
12482: lt_save_LD=$LD
12483: lt_save_GCC=$GCC
12484: GCC=$GXX
12485: lt_save_with_gnu_ld=$with_gnu_ld
12486: lt_save_path_LD=$lt_cv_path_LD
12487: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12488: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12489: else
12490: $as_unset lt_cv_prog_gnu_ld
12491: fi
12492: if test -n "${lt_cv_path_LDCXX+set}"; then
12493: lt_cv_path_LD=$lt_cv_path_LDCXX
12494: else
12495: $as_unset lt_cv_path_LD
12496: fi
12497: test -z "${LDCXX+set}" || LD=$LDCXX
12498: CC=${CXX-"c++"}
12499: CFLAGS=$CXXFLAGS
12500: compiler=$CC
12501: compiler_CXX=$CC
12502: for cc_temp in $compiler""; do
12503: case $cc_temp in
12504: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12505: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12506: \-*) ;;
12507: *) break;;
12508: esac
12509: done
12510: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12511:
12512:
12513: if test -n "$compiler"; then
12514: # We don't want -fno-exception when compiling C++ code, so set the
12515: # no_builtin_flag separately
12516: if test "$GXX" = yes; then
12517: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12518: else
12519: lt_prog_compiler_no_builtin_flag_CXX=
12520: fi
12521:
12522: if test "$GXX" = yes; then
12523: # Set up default GNU C++ configuration
12524:
12525:
12526:
1.31 moko 12527: # Check whether --with-gnu-ld was given.
12528: if test "${with_gnu_ld+set}" = set; then :
12529: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.23 moko 12530: else
12531: with_gnu_ld=no
1.31 moko 12532: fi
12533:
1.23 moko 12534: ac_prog=ld
12535: if test "$GCC" = yes; then
12536: # Check if gcc -print-prog-name=ld gives a path.
1.31 moko 12537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12538: $as_echo_n "checking for ld used by $CC... " >&6; }
1.23 moko 12539: case $host in
12540: *-*-mingw*)
12541: # gcc leaves a trailing carriage return which upsets mingw
12542: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12543: *)
12544: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12545: esac
12546: case $ac_prog in
12547: # Accept absolute paths.
12548: [\\/]* | ?:[\\/]*)
12549: re_direlt='/[^/][^/]*/\.\./'
12550: # Canonicalize the pathname of ld
12551: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12552: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12553: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12554: done
12555: test -z "$LD" && LD="$ac_prog"
12556: ;;
12557: "")
12558: # If it fails, then pretend we aren't using GCC.
12559: ac_prog=ld
12560: ;;
12561: *)
12562: # If it is relative, then search for the first ld in PATH.
12563: with_gnu_ld=unknown
12564: ;;
12565: esac
12566: elif test "$with_gnu_ld" = yes; then
1.31 moko 12567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12568: $as_echo_n "checking for GNU ld... " >&6; }
1.23 moko 12569: else
1.31 moko 12570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12571: $as_echo_n "checking for non-GNU ld... " >&6; }
1.23 moko 12572: fi
1.31 moko 12573: if ${lt_cv_path_LD+:} false; then :
12574: $as_echo_n "(cached) " >&6
1.23 moko 12575: else
12576: if test -z "$LD"; then
12577: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12578: for ac_dir in $PATH; do
12579: IFS="$lt_save_ifs"
12580: test -z "$ac_dir" && ac_dir=.
12581: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12582: lt_cv_path_LD="$ac_dir/$ac_prog"
12583: # Check to see if the program is GNU ld. I'd rather use --version,
12584: # but apparently some variants of GNU ld only accept -v.
12585: # Break only if it was the GNU/non-GNU ld that we prefer.
12586: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12587: *GNU* | *'with BFD'*)
12588: test "$with_gnu_ld" != no && break
12589: ;;
12590: *)
12591: test "$with_gnu_ld" != yes && break
12592: ;;
12593: esac
12594: fi
12595: done
12596: IFS="$lt_save_ifs"
12597: else
12598: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12599: fi
12600: fi
12601:
12602: LD="$lt_cv_path_LD"
12603: if test -n "$LD"; then
1.31 moko 12604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12605: $as_echo "$LD" >&6; }
1.23 moko 12606: else
1.31 moko 12607: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608: $as_echo "no" >&6; }
1.23 moko 12609: fi
1.31 moko 12610: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12611: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12612: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12613: if ${lt_cv_prog_gnu_ld+:} false; then :
12614: $as_echo_n "(cached) " >&6
1.23 moko 12615: else
12616: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12617: case `$LD -v 2>&1 </dev/null` in
12618: *GNU* | *'with BFD'*)
12619: lt_cv_prog_gnu_ld=yes
12620: ;;
12621: *)
12622: lt_cv_prog_gnu_ld=no
12623: ;;
12624: esac
12625: fi
1.31 moko 12626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12627: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.23 moko 12628: with_gnu_ld=$lt_cv_prog_gnu_ld
12629:
12630:
12631:
12632:
12633:
12634:
12635:
12636: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12637: # archiving commands below assume that GNU ld is being used.
12638: if test "$with_gnu_ld" = yes; then
12639: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12640: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12641:
12642: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12643: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12644:
12645: # If archive_cmds runs LD, not CC, wlarc should be empty
12646: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12647: # investigate it a little bit more. (MM)
12648: wlarc='${wl}'
12649:
12650: # ancient GNU ld didn't support --whole-archive et. al.
12651: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12652: $GREP 'no-whole-archive' > /dev/null; then
12653: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12654: else
12655: whole_archive_flag_spec_CXX=
12656: fi
12657: else
12658: with_gnu_ld=no
12659: wlarc=
12660:
12661: # A generic and very simple default shared library creation
12662: # command for GNU C++ for the case where it uses the native
12663: # linker, instead of GNU ld. If possible, this setting should
12664: # overridden to take advantage of the native linker features on
12665: # the platform it is being used on.
12666: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12667: fi
12668:
12669: # Commands to make compiler produce verbose output that lists
12670: # what "hidden" libraries, object files and flags are used when
12671: # linking a shared library.
12672: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12673:
12674: else
12675: GXX=no
12676: with_gnu_ld=no
12677: wlarc=
12678: fi
12679:
12680: # PORTME: fill in a description of your system's C++ link characteristics
1.31 moko 12681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12682: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.23 moko 12683: ld_shlibs_CXX=yes
12684: case $host_os in
12685: aix3*)
12686: # FIXME: insert proper C++ library support
12687: ld_shlibs_CXX=no
12688: ;;
12689: aix[4-9]*)
12690: if test "$host_cpu" = ia64; then
12691: # On IA64, the linker does run time linking by default, so we don't
12692: # have to do anything special.
12693: aix_use_runtimelinking=no
12694: exp_sym_flag='-Bexport'
12695: no_entry_flag=""
12696: else
12697: aix_use_runtimelinking=no
12698:
12699: # Test if we are trying to use run time linking or normal
12700: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12701: # need to do runtime linking.
12702: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12703: for ld_flag in $LDFLAGS; do
12704: case $ld_flag in
12705: *-brtl*)
12706: aix_use_runtimelinking=yes
12707: break
12708: ;;
12709: esac
12710: done
12711: ;;
12712: esac
12713:
12714: exp_sym_flag='-bexport'
12715: no_entry_flag='-bnoentry'
12716: fi
12717:
12718: # When large executables or shared objects are built, AIX ld can
12719: # have problems creating the table of contents. If linking a library
12720: # or program results in "error TOC overflow" add -mminimal-toc to
12721: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12722: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12723:
12724: archive_cmds_CXX=''
12725: hardcode_direct_CXX=yes
12726: hardcode_direct_absolute_CXX=yes
12727: hardcode_libdir_separator_CXX=':'
12728: link_all_deplibs_CXX=yes
12729: file_list_spec_CXX='${wl}-f,'
12730:
12731: if test "$GXX" = yes; then
12732: case $host_os in aix4.[012]|aix4.[012].*)
12733: # We only want to do this on AIX 4.2 and lower, the check
12734: # below for broken collect2 doesn't work under 4.3+
12735: collect2name=`${CC} -print-prog-name=collect2`
12736: if test -f "$collect2name" &&
12737: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12738: then
12739: # We have reworked collect2
12740: :
12741: else
12742: # We have old collect2
12743: hardcode_direct_CXX=unsupported
12744: # It fails to find uninstalled libraries when the uninstalled
12745: # path is not listed in the libpath. Setting hardcode_minus_L
12746: # to unsupported forces relinking
12747: hardcode_minus_L_CXX=yes
12748: hardcode_libdir_flag_spec_CXX='-L$libdir'
12749: hardcode_libdir_separator_CXX=
12750: fi
12751: esac
12752: shared_flag='-shared'
12753: if test "$aix_use_runtimelinking" = yes; then
12754: shared_flag="$shared_flag "'${wl}-G'
12755: fi
12756: else
12757: # not using gcc
12758: if test "$host_cpu" = ia64; then
12759: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12760: # chokes on -Wl,-G. The following line is correct:
12761: shared_flag='-G'
12762: else
12763: if test "$aix_use_runtimelinking" = yes; then
12764: shared_flag='${wl}-G'
12765: else
12766: shared_flag='${wl}-bM:SRE'
12767: fi
12768: fi
12769: fi
12770:
12771: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12772: # It seems that -bexpall does not export symbols beginning with
12773: # underscore (_), so it is better to generate a list of symbols to
12774: # export.
12775: always_export_symbols_CXX=yes
12776: if test "$aix_use_runtimelinking" = yes; then
12777: # Warning - without using the other runtime loading flags (-brtl),
12778: # -berok will link without error, but may produce a broken library.
12779: allow_undefined_flag_CXX='-berok'
12780: # Determine the default libpath from the value encoded in an empty
12781: # executable.
12782: if test "${lt_cv_aix_libpath+set}" = set; then
12783: aix_libpath=$lt_cv_aix_libpath
12784: else
1.31 moko 12785: if ${lt_cv_aix_libpath__CXX+:} false; then :
12786: $as_echo_n "(cached) " >&6
1.23 moko 12787: else
1.31 moko 12788: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12789: /* end confdefs.h. */
12790:
12791: int
12792: main ()
12793: {
12794:
12795: ;
12796: return 0;
12797: }
12798: _ACEOF
1.31 moko 12799: if ac_fn_cxx_try_link "$LINENO"; then :
1.23 moko 12800:
12801: lt_aix_libpath_sed='
12802: /Import File Strings/,/^$/ {
12803: /^0/ {
12804: s/^0 *\([^ ]*\) *$/\1/
12805: p
12806: }
12807: }'
12808: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12809: # Check for a 64-bit object if we didn't find anything.
12810: if test -z "$lt_cv_aix_libpath__CXX"; then
12811: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12812: fi
12813: fi
1.31 moko 12814: rm -f core conftest.err conftest.$ac_objext \
12815: conftest$ac_exeext conftest.$ac_ext
1.23 moko 12816: if test -z "$lt_cv_aix_libpath__CXX"; then
12817: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12818: fi
12819:
12820: fi
12821:
12822: aix_libpath=$lt_cv_aix_libpath__CXX
12823: fi
12824:
12825: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12826:
12827: archive_expsym_cmds_CXX='$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"
12828: else
12829: if test "$host_cpu" = ia64; then
12830: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12831: allow_undefined_flag_CXX="-z nodefs"
12832: archive_expsym_cmds_CXX="\$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"
12833: else
12834: # Determine the default libpath from the value encoded in an
12835: # empty executable.
12836: if test "${lt_cv_aix_libpath+set}" = set; then
12837: aix_libpath=$lt_cv_aix_libpath
12838: else
1.31 moko 12839: if ${lt_cv_aix_libpath__CXX+:} false; then :
12840: $as_echo_n "(cached) " >&6
1.23 moko 12841: else
1.31 moko 12842: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12843: /* end confdefs.h. */
12844:
12845: int
12846: main ()
12847: {
12848:
12849: ;
12850: return 0;
12851: }
12852: _ACEOF
1.31 moko 12853: if ac_fn_cxx_try_link "$LINENO"; then :
1.23 moko 12854:
12855: lt_aix_libpath_sed='
12856: /Import File Strings/,/^$/ {
12857: /^0/ {
12858: s/^0 *\([^ ]*\) *$/\1/
12859: p
12860: }
12861: }'
12862: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12863: # Check for a 64-bit object if we didn't find anything.
12864: if test -z "$lt_cv_aix_libpath__CXX"; then
12865: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12866: fi
12867: fi
1.31 moko 12868: rm -f core conftest.err conftest.$ac_objext \
12869: conftest$ac_exeext conftest.$ac_ext
1.23 moko 12870: if test -z "$lt_cv_aix_libpath__CXX"; then
12871: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12872: fi
12873:
12874: fi
12875:
12876: aix_libpath=$lt_cv_aix_libpath__CXX
12877: fi
12878:
12879: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12880: # Warning - without using the other run time loading flags,
12881: # -berok will link without error, but may produce a broken library.
12882: no_undefined_flag_CXX=' ${wl}-bernotok'
12883: allow_undefined_flag_CXX=' ${wl}-berok'
12884: if test "$with_gnu_ld" = yes; then
12885: # We only use this code for GNU lds that support --whole-archive.
12886: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12887: else
12888: # Exported symbols can be pulled into shared objects from archives
12889: whole_archive_flag_spec_CXX='$convenience'
12890: fi
12891: archive_cmds_need_lc_CXX=yes
12892: # This is similar to how AIX traditionally builds its shared
12893: # libraries.
12894: archive_expsym_cmds_CXX="\$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'
12895: fi
12896: fi
12897: ;;
12898:
12899: beos*)
12900: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12901: allow_undefined_flag_CXX=unsupported
12902: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12903: # support --undefined. This deserves some investigation. FIXME
12904: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12905: else
12906: ld_shlibs_CXX=no
12907: fi
12908: ;;
12909:
12910: chorus*)
12911: case $cc_basename in
12912: *)
12913: # FIXME: insert proper C++ library support
12914: ld_shlibs_CXX=no
12915: ;;
12916: esac
12917: ;;
12918:
12919: cygwin* | mingw* | pw32* | cegcc*)
12920: case $GXX,$cc_basename in
12921: ,cl* | no,cl*)
12922: # Native MSVC
12923: # hardcode_libdir_flag_spec is actually meaningless, as there is
12924: # no search path for DLLs.
12925: hardcode_libdir_flag_spec_CXX=' '
12926: allow_undefined_flag_CXX=unsupported
12927: always_export_symbols_CXX=yes
12928: file_list_spec_CXX='@'
12929: # Tell ltmain to make .lib files, not .a files.
12930: libext=lib
12931: # Tell ltmain to make .dll files, not .so files.
12932: shrext_cmds=".dll"
12933: # FIXME: Setting linknames here is a bad hack.
12934: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12935: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12936: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12937: else
12938: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12939: fi~
12940: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12941: linknames='
12942: # The linker will not automatically build a static lib if we build a DLL.
12943: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12944: enable_shared_with_static_runtimes_CXX=yes
12945: # Don't use ranlib
12946: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12947: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12948: lt_tool_outputfile="@TOOL_OUTPUT@"~
12949: case $lt_outputfile in
12950: *.exe|*.EXE) ;;
12951: *)
12952: lt_outputfile="$lt_outputfile.exe"
12953: lt_tool_outputfile="$lt_tool_outputfile.exe"
12954: ;;
12955: esac~
12956: func_to_tool_file "$lt_outputfile"~
12957: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12958: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12959: $RM "$lt_outputfile.manifest";
12960: fi'
12961: ;;
12962: *)
12963: # g++
12964: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12965: # as there is no search path for DLLs.
12966: hardcode_libdir_flag_spec_CXX='-L$libdir'
12967: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12968: allow_undefined_flag_CXX=unsupported
12969: always_export_symbols_CXX=no
12970: enable_shared_with_static_runtimes_CXX=yes
12971:
12972: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12973: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12974: # If the export-symbols file already is a .def file (1st line
12975: # is EXPORTS), use it as is; otherwise, prepend...
12976: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12977: cp $export_symbols $output_objdir/$soname.def;
12978: else
12979: echo EXPORTS > $output_objdir/$soname.def;
12980: cat $export_symbols >> $output_objdir/$soname.def;
12981: fi~
12982: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12983: else
12984: ld_shlibs_CXX=no
12985: fi
12986: ;;
12987: esac
12988: ;;
12989: darwin* | rhapsody*)
12990:
12991:
12992: archive_cmds_need_lc_CXX=no
12993: hardcode_direct_CXX=no
12994: hardcode_automatic_CXX=yes
12995: hardcode_shlibpath_var_CXX=unsupported
12996: if test "$lt_cv_ld_force_load" = "yes"; then
12997: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12998:
12999: else
13000: whole_archive_flag_spec_CXX=''
13001: fi
13002: link_all_deplibs_CXX=yes
13003: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13004: case $cc_basename in
13005: ifort*) _lt_dar_can_shared=yes ;;
13006: *) _lt_dar_can_shared=$GCC ;;
13007: esac
13008: if test "$_lt_dar_can_shared" = "yes"; then
13009: output_verbose_link_cmd=func_echo_all
13010: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13011: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13012: archive_expsym_cmds_CXX="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}"
13013: module_expsym_cmds_CXX="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}"
13014: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13015: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13016: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13017: fi
13018:
13019: else
13020: ld_shlibs_CXX=no
13021: fi
13022:
13023: ;;
13024:
13025: dgux*)
13026: case $cc_basename in
13027: ec++*)
13028: # FIXME: insert proper C++ library support
13029: ld_shlibs_CXX=no
13030: ;;
13031: ghcx*)
13032: # Green Hills C++ Compiler
13033: # FIXME: insert proper C++ library support
13034: ld_shlibs_CXX=no
13035: ;;
13036: *)
13037: # FIXME: insert proper C++ library support
13038: ld_shlibs_CXX=no
13039: ;;
13040: esac
13041: ;;
13042:
13043: freebsd2.*)
13044: # C++ shared libraries reported to be fairly broken before
13045: # switch to ELF
13046: ld_shlibs_CXX=no
13047: ;;
13048:
13049: freebsd-elf*)
13050: archive_cmds_need_lc_CXX=no
13051: ;;
13052:
13053: freebsd* | dragonfly*)
13054: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13055: # conventions
13056: ld_shlibs_CXX=yes
13057: ;;
13058:
13059: gnu*)
13060: ;;
13061:
13062: haiku*)
13063: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13064: link_all_deplibs_CXX=yes
13065: ;;
13066:
13067: hpux9*)
13068: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13069: hardcode_libdir_separator_CXX=:
13070: export_dynamic_flag_spec_CXX='${wl}-E'
13071: hardcode_direct_CXX=yes
13072: hardcode_minus_L_CXX=yes # Not in the search PATH,
13073: # but as the default
13074: # location of the library.
13075:
13076: case $cc_basename in
13077: CC*)
13078: # FIXME: insert proper C++ library support
13079: ld_shlibs_CXX=no
13080: ;;
13081: aCC*)
13082: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13083: # Commands to make compiler produce verbose output that lists
13084: # what "hidden" libraries, object files and flags are used when
13085: # linking a shared library.
13086: #
13087: # There doesn't appear to be a way to prevent this compiler from
13088: # explicitly linking system object files so we need to strip them
13089: # from the output so that they don't get included in the library
13090: # dependencies.
13091: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13092: ;;
13093: *)
13094: if test "$GXX" = yes; then
13095: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13096: else
13097: # FIXME: insert proper C++ library support
13098: ld_shlibs_CXX=no
13099: fi
13100: ;;
13101: esac
13102: ;;
13103:
13104: hpux10*|hpux11*)
13105: if test $with_gnu_ld = no; then
13106: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13107: hardcode_libdir_separator_CXX=:
13108:
13109: case $host_cpu in
13110: hppa*64*|ia64*)
13111: ;;
13112: *)
13113: export_dynamic_flag_spec_CXX='${wl}-E'
13114: ;;
13115: esac
13116: fi
13117: case $host_cpu in
13118: hppa*64*|ia64*)
13119: hardcode_direct_CXX=no
13120: hardcode_shlibpath_var_CXX=no
13121: ;;
13122: *)
13123: hardcode_direct_CXX=yes
13124: hardcode_direct_absolute_CXX=yes
13125: hardcode_minus_L_CXX=yes # Not in the search PATH,
13126: # but as the default
13127: # location of the library.
13128: ;;
13129: esac
13130:
13131: case $cc_basename in
13132: CC*)
13133: # FIXME: insert proper C++ library support
13134: ld_shlibs_CXX=no
13135: ;;
13136: aCC*)
13137: case $host_cpu in
13138: hppa*64*)
13139: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13140: ;;
13141: ia64*)
13142: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13143: ;;
13144: *)
13145: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13146: ;;
13147: esac
13148: # Commands to make compiler produce verbose output that lists
13149: # what "hidden" libraries, object files and flags are used when
13150: # linking a shared library.
13151: #
13152: # There doesn't appear to be a way to prevent this compiler from
13153: # explicitly linking system object files so we need to strip them
13154: # from the output so that they don't get included in the library
13155: # dependencies.
13156: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13157: ;;
13158: *)
13159: if test "$GXX" = yes; then
13160: if test $with_gnu_ld = no; then
13161: case $host_cpu in
13162: hppa*64*)
13163: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13164: ;;
13165: ia64*)
13166: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13167: ;;
13168: *)
13169: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13170: ;;
13171: esac
13172: fi
13173: else
13174: # FIXME: insert proper C++ library support
13175: ld_shlibs_CXX=no
13176: fi
13177: ;;
13178: esac
13179: ;;
13180:
13181: interix[3-9]*)
13182: hardcode_direct_CXX=no
13183: hardcode_shlibpath_var_CXX=no
13184: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13185: export_dynamic_flag_spec_CXX='${wl}-E'
13186: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13187: # Instead, shared libraries are loaded at an image base (0x10000000 by
13188: # default) and relocated if they conflict, which is a slow very memory
13189: # consuming and fragmenting process. To avoid this, we pick a random,
13190: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13191: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13192: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13193: archive_expsym_cmds_CXX='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'
13194: ;;
13195: irix5* | irix6*)
13196: case $cc_basename in
13197: CC*)
13198: # SGI C++
13199: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13200:
13201: # Archives containing C++ object files must be created using
13202: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13203: # necessary to make sure instantiated templates are included
13204: # in the archive.
13205: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13206: ;;
13207: *)
13208: if test "$GXX" = yes; then
13209: if test "$with_gnu_ld" = no; then
13210: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13211: else
13212: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13213: fi
13214: fi
13215: link_all_deplibs_CXX=yes
13216: ;;
13217: esac
13218: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13219: hardcode_libdir_separator_CXX=:
13220: inherit_rpath_CXX=yes
13221: ;;
13222:
13223: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13224: case $cc_basename in
13225: KCC*)
13226: # Kuck and Associates, Inc. (KAI) C++ Compiler
13227:
13228: # KCC will only create a shared library if the output file
13229: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13230: # to its proper name (with version) after linking.
13231: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13232: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13233: # Commands to make compiler produce verbose output that lists
13234: # what "hidden" libraries, object files and flags are used when
13235: # linking a shared library.
13236: #
13237: # There doesn't appear to be a way to prevent this compiler from
13238: # explicitly linking system object files so we need to strip them
13239: # from the output so that they don't get included in the library
13240: # dependencies.
13241: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13242:
13243: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13244: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13245:
13246: # Archives containing C++ object files must be created using
13247: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13248: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13249: ;;
13250: icpc* | ecpc* )
13251: # Intel C++
13252: with_gnu_ld=yes
13253: # version 8.0 and above of icpc choke on multiply defined symbols
13254: # if we add $predep_objects and $postdep_objects, however 7.1 and
13255: # earlier do not add the objects themselves.
13256: case `$CC -V 2>&1` in
13257: *"Version 7."*)
13258: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13259: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13260: ;;
13261: *) # Version 8.0 or newer
13262: tmp_idyn=
13263: case $host_cpu in
13264: ia64*) tmp_idyn=' -i_dynamic';;
13265: esac
13266: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13267: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13268: ;;
13269: esac
13270: archive_cmds_need_lc_CXX=no
13271: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13272: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13273: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13274: ;;
13275: pgCC* | pgcpp*)
13276: # Portland Group C++ compiler
13277: case `$CC -V` in
13278: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13279: prelink_cmds_CXX='tpldir=Template.dir~
13280: rm -rf $tpldir~
13281: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13282: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13283: old_archive_cmds_CXX='tpldir=Template.dir~
13284: rm -rf $tpldir~
13285: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13286: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13287: $RANLIB $oldlib'
13288: archive_cmds_CXX='tpldir=Template.dir~
13289: rm -rf $tpldir~
13290: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13291: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13292: archive_expsym_cmds_CXX='tpldir=Template.dir~
13293: rm -rf $tpldir~
13294: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13295: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13296: ;;
13297: *) # Version 6 and above use weak symbols
13298: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13299: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13300: ;;
13301: esac
13302:
13303: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13304: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13305: whole_archive_flag_spec_CXX='${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'
13306: ;;
13307: cxx*)
13308: # Compaq C++
13309: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13310: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13311:
13312: runpath_var=LD_RUN_PATH
13313: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13314: hardcode_libdir_separator_CXX=:
13315:
13316: # Commands to make compiler produce verbose output that lists
13317: # what "hidden" libraries, object files and flags are used when
13318: # linking a shared library.
13319: #
13320: # There doesn't appear to be a way to prevent this compiler from
13321: # explicitly linking system object files so we need to strip them
13322: # from the output so that they don't get included in the library
13323: # dependencies.
13324: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13325: ;;
13326: xl* | mpixl* | bgxl*)
13327: # IBM XL 8.0 on PPC, with GNU ld
13328: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13329: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13330: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13331: if test "x$supports_anon_versioning" = xyes; then
13332: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13333: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13334: echo "local: *; };" >> $output_objdir/$libname.ver~
13335: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13336: fi
13337: ;;
13338: *)
13339: case `$CC -V 2>&1 | sed 5q` in
13340: *Sun\ C*)
13341: # Sun C++ 5.9
13342: no_undefined_flag_CXX=' -zdefs'
13343: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13344: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13345: hardcode_libdir_flag_spec_CXX='-R$libdir'
13346: whole_archive_flag_spec_CXX='${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'
13347: compiler_needs_object_CXX=yes
13348:
13349: # Not sure whether something based on
13350: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13351: # would be better.
13352: output_verbose_link_cmd='func_echo_all'
13353:
13354: # Archives containing C++ object files must be created using
13355: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13356: # necessary to make sure instantiated templates are included
13357: # in the archive.
13358: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13359: ;;
13360: esac
13361: ;;
13362: esac
13363: ;;
13364:
13365: lynxos*)
13366: # FIXME: insert proper C++ library support
13367: ld_shlibs_CXX=no
13368: ;;
13369:
13370: m88k*)
13371: # FIXME: insert proper C++ library support
13372: ld_shlibs_CXX=no
13373: ;;
13374:
13375: mvs*)
13376: case $cc_basename in
13377: cxx*)
13378: # FIXME: insert proper C++ library support
13379: ld_shlibs_CXX=no
13380: ;;
13381: *)
13382: # FIXME: insert proper C++ library support
13383: ld_shlibs_CXX=no
13384: ;;
13385: esac
13386: ;;
13387:
13388: netbsd*)
13389: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13390: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13391: wlarc=
13392: hardcode_libdir_flag_spec_CXX='-R$libdir'
13393: hardcode_direct_CXX=yes
13394: hardcode_shlibpath_var_CXX=no
13395: fi
13396: # Workaround some broken pre-1.5 toolchains
13397: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13398: ;;
13399:
13400: *nto* | *qnx*)
13401: ld_shlibs_CXX=yes
13402: ;;
13403:
13404: openbsd2*)
13405: # C++ shared libraries are fairly broken
13406: ld_shlibs_CXX=no
13407: ;;
13408:
13409: openbsd*)
13410: if test -f /usr/libexec/ld.so; then
13411: hardcode_direct_CXX=yes
13412: hardcode_shlibpath_var_CXX=no
13413: hardcode_direct_absolute_CXX=yes
13414: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13415: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13416: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13417: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13418: export_dynamic_flag_spec_CXX='${wl}-E'
13419: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13420: fi
13421: output_verbose_link_cmd=func_echo_all
13422: else
13423: ld_shlibs_CXX=no
13424: fi
13425: ;;
13426:
13427: osf3* | osf4* | osf5*)
13428: case $cc_basename in
13429: KCC*)
13430: # Kuck and Associates, Inc. (KAI) C++ Compiler
13431:
13432: # KCC will only create a shared library if the output file
13433: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13434: # to its proper name (with version) after linking.
13435: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13436:
13437: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13438: hardcode_libdir_separator_CXX=:
13439:
13440: # Archives containing C++ object files must be created using
13441: # the KAI C++ compiler.
13442: case $host in
13443: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13444: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13445: esac
13446: ;;
13447: RCC*)
13448: # Rational C++ 2.4.1
13449: # FIXME: insert proper C++ library support
13450: ld_shlibs_CXX=no
13451: ;;
13452: cxx*)
13453: case $host in
13454: osf3*)
13455: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13456: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13457: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13458: ;;
13459: *)
13460: allow_undefined_flag_CXX=' -expect_unresolved \*'
13461: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13462: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13463: echo "-hidden">> $lib.exp~
13464: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13465: $RM $lib.exp'
13466: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13467: ;;
13468: esac
13469:
13470: hardcode_libdir_separator_CXX=:
13471:
13472: # Commands to make compiler produce verbose output that lists
13473: # what "hidden" libraries, object files and flags are used when
13474: # linking a shared library.
13475: #
13476: # There doesn't appear to be a way to prevent this compiler from
13477: # explicitly linking system object files so we need to strip them
13478: # from the output so that they don't get included in the library
13479: # dependencies.
13480: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13481: ;;
13482: *)
13483: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13484: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13485: case $host in
13486: osf3*)
13487: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13488: ;;
13489: *)
13490: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13491: ;;
13492: esac
13493:
13494: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13495: hardcode_libdir_separator_CXX=:
13496:
13497: # Commands to make compiler produce verbose output that lists
13498: # what "hidden" libraries, object files and flags are used when
13499: # linking a shared library.
13500: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13501:
13502: else
13503: # FIXME: insert proper C++ library support
13504: ld_shlibs_CXX=no
13505: fi
13506: ;;
13507: esac
13508: ;;
13509:
13510: psos*)
13511: # FIXME: insert proper C++ library support
13512: ld_shlibs_CXX=no
13513: ;;
13514:
13515: sunos4*)
13516: case $cc_basename in
13517: CC*)
13518: # Sun C++ 4.x
13519: # FIXME: insert proper C++ library support
13520: ld_shlibs_CXX=no
13521: ;;
13522: lcc*)
13523: # Lucid
13524: # FIXME: insert proper C++ library support
13525: ld_shlibs_CXX=no
13526: ;;
13527: *)
13528: # FIXME: insert proper C++ library support
13529: ld_shlibs_CXX=no
13530: ;;
13531: esac
13532: ;;
13533:
13534: solaris*)
13535: case $cc_basename in
13536: CC* | sunCC*)
13537: # Sun C++ 4.2, 5.x and Centerline C++
13538: archive_cmds_need_lc_CXX=yes
13539: no_undefined_flag_CXX=' -zdefs'
13540: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13541: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13542: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13543:
13544: hardcode_libdir_flag_spec_CXX='-R$libdir'
13545: hardcode_shlibpath_var_CXX=no
13546: case $host_os in
13547: solaris2.[0-5] | solaris2.[0-5].*) ;;
13548: *)
13549: # The compiler driver will combine and reorder linker options,
13550: # but understands `-z linker_flag'.
13551: # Supported since Solaris 2.6 (maybe 2.5.1?)
13552: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13553: ;;
13554: esac
13555: link_all_deplibs_CXX=yes
13556:
13557: output_verbose_link_cmd='func_echo_all'
13558:
13559: # Archives containing C++ object files must be created using
13560: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13561: # necessary to make sure instantiated templates are included
13562: # in the archive.
13563: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13564: ;;
13565: gcx*)
13566: # Green Hills C++ Compiler
13567: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13568:
13569: # The C++ compiler must be used to create the archive.
13570: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13571: ;;
13572: *)
13573: # GNU C++ compiler with Solaris linker
13574: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13575: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13576: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13577: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13578: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13579: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13580:
13581: # Commands to make compiler produce verbose output that lists
13582: # what "hidden" libraries, object files and flags are used when
13583: # linking a shared library.
13584: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13585: else
13586: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13587: # platform.
13588: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13589: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13590: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13591:
13592: # Commands to make compiler produce verbose output that lists
13593: # what "hidden" libraries, object files and flags are used when
13594: # linking a shared library.
13595: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13596: fi
13597:
13598: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13599: case $host_os in
13600: solaris2.[0-5] | solaris2.[0-5].*) ;;
13601: *)
13602: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13603: ;;
13604: esac
13605: fi
13606: ;;
13607: esac
13608: ;;
13609:
13610: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13611: no_undefined_flag_CXX='${wl}-z,text'
13612: archive_cmds_need_lc_CXX=no
13613: hardcode_shlibpath_var_CXX=no
13614: runpath_var='LD_RUN_PATH'
13615:
13616: case $cc_basename in
13617: CC*)
13618: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13619: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13620: ;;
13621: *)
13622: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13623: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13624: ;;
13625: esac
13626: ;;
13627:
13628: sysv5* | sco3.2v5* | sco5v6*)
13629: # Note: We can NOT use -z defs as we might desire, because we do not
13630: # link with -lc, and that would cause any symbols used from libc to
13631: # always be unresolved, which means just about no library would
13632: # ever link correctly. If we're not using GNU ld we use -z text
13633: # though, which does catch some bad symbols but isn't as heavy-handed
13634: # as -z defs.
13635: no_undefined_flag_CXX='${wl}-z,text'
13636: allow_undefined_flag_CXX='${wl}-z,nodefs'
13637: archive_cmds_need_lc_CXX=no
13638: hardcode_shlibpath_var_CXX=no
13639: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13640: hardcode_libdir_separator_CXX=':'
13641: link_all_deplibs_CXX=yes
13642: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13643: runpath_var='LD_RUN_PATH'
13644:
13645: case $cc_basename in
13646: CC*)
13647: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13650: '"$old_archive_cmds_CXX"
13651: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13652: '"$reload_cmds_CXX"
13653: ;;
13654: *)
13655: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13656: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657: ;;
13658: esac
13659: ;;
13660:
13661: tandem*)
13662: case $cc_basename in
13663: NCC*)
13664: # NonStop-UX NCC 3.20
13665: # FIXME: insert proper C++ library support
13666: ld_shlibs_CXX=no
13667: ;;
13668: *)
13669: # FIXME: insert proper C++ library support
13670: ld_shlibs_CXX=no
13671: ;;
13672: esac
13673: ;;
13674:
13675: vxworks*)
13676: # FIXME: insert proper C++ library support
13677: ld_shlibs_CXX=no
13678: ;;
13679:
13680: *)
13681: # FIXME: insert proper C++ library support
13682: ld_shlibs_CXX=no
13683: ;;
13684: esac
13685:
1.31 moko 13686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13687: $as_echo "$ld_shlibs_CXX" >&6; }
1.23 moko 13688: test "$ld_shlibs_CXX" = no && can_build_shared=no
13689:
13690: GCC_CXX="$GXX"
13691: LD_CXX="$LD"
13692:
13693: ## CAVEAT EMPTOR:
13694: ## There is no encapsulation within the following macros, do not change
13695: ## the running order or otherwise move them around unless you know exactly
13696: ## what you are doing...
13697: # Dependencies to place before and after the object being linked:
13698: predep_objects_CXX=
13699: postdep_objects_CXX=
13700: predeps_CXX=
13701: postdeps_CXX=
13702: compiler_lib_search_path_CXX=
13703:
13704: cat > conftest.$ac_ext <<_LT_EOF
13705: class Foo
13706: {
13707: public:
13708: Foo (void) { a = 0; }
13709: private:
13710: int a;
13711: };
13712: _LT_EOF
13713:
13714:
13715: _lt_libdeps_save_CFLAGS=$CFLAGS
13716: case "$CC $CFLAGS " in #(
13717: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13718: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13719: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13720: esac
13721:
1.31 moko 13722: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 13723: (eval $ac_compile) 2>&5
13724: ac_status=$?
1.31 moko 13725: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726: test $ac_status = 0; }; then
1.23 moko 13727: # Parse the compiler output and extract the necessary
13728: # objects, libraries and library flags.
13729:
13730: # Sentinel used to keep track of whether or not we are before
13731: # the conftest object file.
13732: pre_test_object_deps_done=no
13733:
13734: for p in `eval "$output_verbose_link_cmd"`; do
13735: case ${prev}${p} in
13736:
13737: -L* | -R* | -l*)
13738: # Some compilers place space between "-{L,R}" and the path.
13739: # Remove the space.
13740: if test $p = "-L" ||
13741: test $p = "-R"; then
13742: prev=$p
13743: continue
13744: fi
13745:
13746: # Expand the sysroot to ease extracting the directories later.
13747: if test -z "$prev"; then
13748: case $p in
13749: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13750: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13751: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13752: esac
13753: fi
13754: case $p in
13755: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13756: esac
13757: if test "$pre_test_object_deps_done" = no; then
13758: case ${prev} in
13759: -L | -R)
13760: # Internal compiler library paths should come after those
13761: # provided the user. The postdeps already come after the
13762: # user supplied libs so there is no need to process them.
13763: if test -z "$compiler_lib_search_path_CXX"; then
13764: compiler_lib_search_path_CXX="${prev}${p}"
13765: else
13766: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13767: fi
13768: ;;
13769: # The "-l" case would never come before the object being
13770: # linked, so don't bother handling this case.
13771: esac
13772: else
13773: if test -z "$postdeps_CXX"; then
13774: postdeps_CXX="${prev}${p}"
13775: else
13776: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13777: fi
13778: fi
13779: prev=
13780: ;;
13781:
13782: *.lto.$objext) ;; # Ignore GCC LTO objects
13783: *.$objext)
13784: # This assumes that the test object file only shows up
13785: # once in the compiler output.
13786: if test "$p" = "conftest.$objext"; then
13787: pre_test_object_deps_done=yes
13788: continue
13789: fi
13790:
13791: if test "$pre_test_object_deps_done" = no; then
13792: if test -z "$predep_objects_CXX"; then
13793: predep_objects_CXX="$p"
13794: else
13795: predep_objects_CXX="$predep_objects_CXX $p"
13796: fi
13797: else
13798: if test -z "$postdep_objects_CXX"; then
13799: postdep_objects_CXX="$p"
13800: else
13801: postdep_objects_CXX="$postdep_objects_CXX $p"
13802: fi
13803: fi
13804: ;;
13805:
13806: *) ;; # Ignore the rest.
13807:
13808: esac
13809: done
13810:
13811: # Clean up.
13812: rm -f a.out a.exe
13813: else
13814: echo "libtool.m4: error: problem compiling CXX test program"
13815: fi
13816:
13817: $RM -f confest.$objext
13818: CFLAGS=$_lt_libdeps_save_CFLAGS
13819:
13820: # PORTME: override above test on systems where it is broken
13821: case $host_os in
13822: interix[3-9]*)
13823: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13824: # hack all around it, let's just trust "g++" to DTRT.
13825: predep_objects_CXX=
13826: postdep_objects_CXX=
13827: postdeps_CXX=
13828: ;;
13829:
13830: linux*)
13831: case `$CC -V 2>&1 | sed 5q` in
13832: *Sun\ C*)
13833: # Sun C++ 5.9
13834:
13835: # The more standards-conforming stlport4 library is
13836: # incompatible with the Cstd library. Avoid specifying
13837: # it if it's in CXXFLAGS. Ignore libCrun as
13838: # -library=stlport4 depends on it.
13839: case " $CXX $CXXFLAGS " in
13840: *" -library=stlport4 "*)
13841: solaris_use_stlport4=yes
13842: ;;
13843: esac
13844:
13845: if test "$solaris_use_stlport4" != yes; then
13846: postdeps_CXX='-library=Cstd -library=Crun'
13847: fi
13848: ;;
13849: esac
13850: ;;
13851:
13852: solaris*)
13853: case $cc_basename in
13854: CC* | sunCC*)
13855: # The more standards-conforming stlport4 library is
13856: # incompatible with the Cstd library. Avoid specifying
13857: # it if it's in CXXFLAGS. Ignore libCrun as
13858: # -library=stlport4 depends on it.
13859: case " $CXX $CXXFLAGS " in
13860: *" -library=stlport4 "*)
13861: solaris_use_stlport4=yes
13862: ;;
13863: esac
13864:
13865: # Adding this requires a known-good setup of shared libraries for
13866: # Sun compiler versions before 5.6, else PIC objects from an old
13867: # archive will be linked into the output, leading to subtle bugs.
13868: if test "$solaris_use_stlport4" != yes; then
13869: postdeps_CXX='-library=Cstd -library=Crun'
13870: fi
13871: ;;
13872: esac
13873: ;;
13874: esac
13875:
13876:
13877: case " $postdeps_CXX " in
13878: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13879: esac
13880: compiler_lib_search_dirs_CXX=
13881: if test -n "${compiler_lib_search_path_CXX}"; then
13882: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13883: fi
13884:
13885:
13886:
13887:
13888:
13889:
13890:
13891:
13892:
13893:
13894:
13895:
13896:
13897:
13898:
13899:
13900:
13901:
13902:
13903:
13904:
13905:
13906:
13907:
13908:
13909:
13910:
13911:
13912:
13913:
13914:
13915: lt_prog_compiler_wl_CXX=
13916: lt_prog_compiler_pic_CXX=
13917: lt_prog_compiler_static_CXX=
13918:
13919:
13920: # C++ specific cases for pic, static, wl, etc.
13921: if test "$GXX" = yes; then
13922: lt_prog_compiler_wl_CXX='-Wl,'
13923: lt_prog_compiler_static_CXX='-static'
13924:
13925: case $host_os in
13926: aix*)
13927: # All AIX code is PIC.
13928: if test "$host_cpu" = ia64; then
13929: # AIX 5 now supports IA64 processor
13930: lt_prog_compiler_static_CXX='-Bstatic'
13931: fi
13932: ;;
13933:
13934: amigaos*)
13935: case $host_cpu in
13936: powerpc)
13937: # see comment about AmigaOS4 .so support
13938: lt_prog_compiler_pic_CXX='-fPIC'
13939: ;;
13940: m68k)
13941: # FIXME: we need at least 68020 code to build shared libraries, but
13942: # adding the `-m68020' flag to GCC prevents building anything better,
13943: # like `-m68040'.
13944: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13945: ;;
13946: esac
13947: ;;
13948:
13949: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13950: # PIC is the default for these OSes.
13951: ;;
13952: mingw* | cygwin* | os2* | pw32* | cegcc*)
13953: # This hack is so that the source file can tell whether it is being
13954: # built for inclusion in a dll (and should export symbols for example).
13955: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13956: # (--disable-auto-import) libraries
13957: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13958: ;;
13959: darwin* | rhapsody*)
13960: # PIC is the default on this platform
13961: # Common symbols not allowed in MH_DYLIB files
13962: lt_prog_compiler_pic_CXX='-fno-common'
13963: ;;
13964: *djgpp*)
13965: # DJGPP does not support shared libraries at all
13966: lt_prog_compiler_pic_CXX=
13967: ;;
13968: haiku*)
13969: # PIC is the default for Haiku.
13970: # The "-static" flag exists, but is broken.
13971: lt_prog_compiler_static_CXX=
13972: ;;
13973: interix[3-9]*)
13974: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13975: # Instead, we relocate shared libraries at runtime.
13976: ;;
13977: sysv4*MP*)
13978: if test -d /usr/nec; then
13979: lt_prog_compiler_pic_CXX=-Kconform_pic
13980: fi
13981: ;;
13982: hpux*)
13983: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13984: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13985: # sets the default TLS model and affects inlining.
13986: case $host_cpu in
13987: hppa*64*)
13988: ;;
13989: *)
13990: lt_prog_compiler_pic_CXX='-fPIC'
13991: ;;
13992: esac
13993: ;;
13994: *qnx* | *nto*)
13995: # QNX uses GNU C++, but need to define -shared option too, otherwise
13996: # it will coredump.
13997: lt_prog_compiler_pic_CXX='-fPIC -shared'
13998: ;;
13999: *)
14000: lt_prog_compiler_pic_CXX='-fPIC'
14001: ;;
14002: esac
14003: else
14004: case $host_os in
14005: aix[4-9]*)
14006: # All AIX code is PIC.
14007: if test "$host_cpu" = ia64; then
14008: # AIX 5 now supports IA64 processor
14009: lt_prog_compiler_static_CXX='-Bstatic'
14010: else
14011: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14012: fi
14013: ;;
14014: chorus*)
14015: case $cc_basename in
14016: cxch68*)
14017: # Green Hills C++ Compiler
14018: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14019: ;;
14020: esac
14021: ;;
14022: mingw* | cygwin* | os2* | pw32* | cegcc*)
14023: # This hack is so that the source file can tell whether it is being
14024: # built for inclusion in a dll (and should export symbols for example).
14025: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14026: ;;
14027: dgux*)
14028: case $cc_basename in
14029: ec++*)
14030: lt_prog_compiler_pic_CXX='-KPIC'
14031: ;;
14032: ghcx*)
14033: # Green Hills C++ Compiler
14034: lt_prog_compiler_pic_CXX='-pic'
14035: ;;
14036: *)
14037: ;;
14038: esac
14039: ;;
14040: freebsd* | dragonfly*)
14041: # FreeBSD uses GNU C++
14042: ;;
14043: hpux9* | hpux10* | hpux11*)
14044: case $cc_basename in
14045: CC*)
14046: lt_prog_compiler_wl_CXX='-Wl,'
14047: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14048: if test "$host_cpu" != ia64; then
14049: lt_prog_compiler_pic_CXX='+Z'
14050: fi
14051: ;;
14052: aCC*)
14053: lt_prog_compiler_wl_CXX='-Wl,'
14054: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14055: case $host_cpu in
14056: hppa*64*|ia64*)
14057: # +Z the default
14058: ;;
14059: *)
14060: lt_prog_compiler_pic_CXX='+Z'
14061: ;;
14062: esac
14063: ;;
14064: *)
14065: ;;
14066: esac
14067: ;;
14068: interix*)
14069: # This is c89, which is MS Visual C++ (no shared libs)
14070: # Anyone wants to do a port?
14071: ;;
14072: irix5* | irix6* | nonstopux*)
14073: case $cc_basename in
14074: CC*)
14075: lt_prog_compiler_wl_CXX='-Wl,'
14076: lt_prog_compiler_static_CXX='-non_shared'
14077: # CC pic flag -KPIC is the default.
14078: ;;
14079: *)
14080: ;;
14081: esac
14082: ;;
14083: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14084: case $cc_basename in
14085: KCC*)
14086: # KAI C++ Compiler
14087: lt_prog_compiler_wl_CXX='--backend -Wl,'
14088: lt_prog_compiler_pic_CXX='-fPIC'
14089: ;;
14090: ecpc* )
14091: # old Intel C++ for x86_64 which still supported -KPIC.
14092: lt_prog_compiler_wl_CXX='-Wl,'
14093: lt_prog_compiler_pic_CXX='-KPIC'
14094: lt_prog_compiler_static_CXX='-static'
14095: ;;
14096: icpc* )
14097: # Intel C++, used to be incompatible with GCC.
14098: # ICC 10 doesn't accept -KPIC any more.
14099: lt_prog_compiler_wl_CXX='-Wl,'
14100: lt_prog_compiler_pic_CXX='-fPIC'
14101: lt_prog_compiler_static_CXX='-static'
14102: ;;
14103: pgCC* | pgcpp*)
14104: # Portland Group C++ compiler
14105: lt_prog_compiler_wl_CXX='-Wl,'
14106: lt_prog_compiler_pic_CXX='-fpic'
14107: lt_prog_compiler_static_CXX='-Bstatic'
14108: ;;
14109: cxx*)
14110: # Compaq C++
14111: # Make sure the PIC flag is empty. It appears that all Alpha
14112: # Linux and Compaq Tru64 Unix objects are PIC.
14113: lt_prog_compiler_pic_CXX=
14114: lt_prog_compiler_static_CXX='-non_shared'
14115: ;;
14116: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14117: # IBM XL 8.0, 9.0 on PPC and BlueGene
14118: lt_prog_compiler_wl_CXX='-Wl,'
14119: lt_prog_compiler_pic_CXX='-qpic'
14120: lt_prog_compiler_static_CXX='-qstaticlink'
14121: ;;
14122: *)
14123: case `$CC -V 2>&1 | sed 5q` in
14124: *Sun\ C*)
14125: # Sun C++ 5.9
14126: lt_prog_compiler_pic_CXX='-KPIC'
14127: lt_prog_compiler_static_CXX='-Bstatic'
14128: lt_prog_compiler_wl_CXX='-Qoption ld '
14129: ;;
14130: esac
14131: ;;
14132: esac
14133: ;;
14134: lynxos*)
14135: ;;
14136: m88k*)
14137: ;;
14138: mvs*)
14139: case $cc_basename in
14140: cxx*)
14141: lt_prog_compiler_pic_CXX='-W c,exportall'
14142: ;;
14143: *)
14144: ;;
14145: esac
14146: ;;
14147: netbsd*)
14148: ;;
14149: *qnx* | *nto*)
14150: # QNX uses GNU C++, but need to define -shared option too, otherwise
14151: # it will coredump.
14152: lt_prog_compiler_pic_CXX='-fPIC -shared'
14153: ;;
14154: osf3* | osf4* | osf5*)
14155: case $cc_basename in
14156: KCC*)
14157: lt_prog_compiler_wl_CXX='--backend -Wl,'
14158: ;;
14159: RCC*)
14160: # Rational C++ 2.4.1
14161: lt_prog_compiler_pic_CXX='-pic'
14162: ;;
14163: cxx*)
14164: # Digital/Compaq C++
14165: lt_prog_compiler_wl_CXX='-Wl,'
14166: # Make sure the PIC flag is empty. It appears that all Alpha
14167: # Linux and Compaq Tru64 Unix objects are PIC.
14168: lt_prog_compiler_pic_CXX=
14169: lt_prog_compiler_static_CXX='-non_shared'
14170: ;;
14171: *)
14172: ;;
14173: esac
14174: ;;
14175: psos*)
14176: ;;
14177: solaris*)
14178: case $cc_basename in
14179: CC* | sunCC*)
14180: # Sun C++ 4.2, 5.x and Centerline C++
14181: lt_prog_compiler_pic_CXX='-KPIC'
14182: lt_prog_compiler_static_CXX='-Bstatic'
14183: lt_prog_compiler_wl_CXX='-Qoption ld '
14184: ;;
14185: gcx*)
14186: # Green Hills C++ Compiler
14187: lt_prog_compiler_pic_CXX='-PIC'
14188: ;;
14189: *)
14190: ;;
14191: esac
14192: ;;
14193: sunos4*)
14194: case $cc_basename in
14195: CC*)
14196: # Sun C++ 4.x
14197: lt_prog_compiler_pic_CXX='-pic'
14198: lt_prog_compiler_static_CXX='-Bstatic'
14199: ;;
14200: lcc*)
14201: # Lucid
14202: lt_prog_compiler_pic_CXX='-pic'
14203: ;;
14204: *)
14205: ;;
14206: esac
14207: ;;
14208: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14209: case $cc_basename in
14210: CC*)
14211: lt_prog_compiler_wl_CXX='-Wl,'
14212: lt_prog_compiler_pic_CXX='-KPIC'
14213: lt_prog_compiler_static_CXX='-Bstatic'
14214: ;;
14215: esac
14216: ;;
14217: tandem*)
14218: case $cc_basename in
14219: NCC*)
14220: # NonStop-UX NCC 3.20
14221: lt_prog_compiler_pic_CXX='-KPIC'
14222: ;;
14223: *)
14224: ;;
14225: esac
14226: ;;
14227: vxworks*)
14228: ;;
14229: *)
14230: lt_prog_compiler_can_build_shared_CXX=no
14231: ;;
14232: esac
14233: fi
14234:
14235: case $host_os in
14236: # For platforms which do not support PIC, -DPIC is meaningless:
14237: *djgpp*)
14238: lt_prog_compiler_pic_CXX=
14239: ;;
14240: *)
14241: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14242: ;;
14243: esac
14244:
1.31 moko 14245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14246: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14247: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14248: $as_echo_n "(cached) " >&6
1.23 moko 14249: else
14250: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14251: fi
1.31 moko 14252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14253: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.23 moko 14254: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14255:
14256: #
14257: # Check to make sure the PIC flag actually works.
14258: #
14259: if test -n "$lt_prog_compiler_pic_CXX"; then
1.31 moko 14260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14261: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14262: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14263: $as_echo_n "(cached) " >&6
1.23 moko 14264: else
14265: lt_cv_prog_compiler_pic_works_CXX=no
14266: ac_outfile=conftest.$ac_objext
14267: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14268: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14269: # Insert the option either (1) after the last *FLAGS variable, or
14270: # (2) before a word containing "conftest.", or (3) at the end.
14271: # Note that $ac_compile itself does not contain backslashes and begins
14272: # with a dollar sign (not a hyphen), so the echo should work correctly.
14273: # The option is referenced via a variable to avoid confusing sed.
14274: lt_compile=`echo "$ac_compile" | $SED \
14275: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14276: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14277: -e 's:$: $lt_compiler_flag:'`
14278: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14279: (eval "$lt_compile" 2>conftest.err)
14280: ac_status=$?
14281: cat conftest.err >&5
14282: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283: if (exit $ac_status) && test -s "$ac_outfile"; then
14284: # The compiler can only warn and ignore the option if not recognized
14285: # So say no if there are warnings other than the usual output.
14286: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14287: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14288: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14289: lt_cv_prog_compiler_pic_works_CXX=yes
14290: fi
14291: fi
14292: $RM conftest*
14293:
14294: fi
1.31 moko 14295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14296: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.23 moko 14297:
14298: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14299: case $lt_prog_compiler_pic_CXX in
14300: "" | " "*) ;;
14301: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14302: esac
14303: else
14304: lt_prog_compiler_pic_CXX=
14305: lt_prog_compiler_can_build_shared_CXX=no
14306: fi
14307:
14308: fi
14309:
14310:
14311:
14312:
14313:
14314: #
14315: # Check to make sure the static flag actually works.
14316: #
14317: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.31 moko 14318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14319: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14320: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14321: $as_echo_n "(cached) " >&6
1.23 moko 14322: else
14323: lt_cv_prog_compiler_static_works_CXX=no
14324: save_LDFLAGS="$LDFLAGS"
14325: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14326: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14327: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14328: # The linker can only warn and ignore the option if not recognized
14329: # So say no if there are warnings
14330: if test -s conftest.err; then
14331: # Append any errors to the config.log.
14332: cat conftest.err 1>&5
14333: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14334: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14335: if diff conftest.exp conftest.er2 >/dev/null; then
14336: lt_cv_prog_compiler_static_works_CXX=yes
14337: fi
14338: else
14339: lt_cv_prog_compiler_static_works_CXX=yes
14340: fi
14341: fi
14342: $RM -r conftest*
14343: LDFLAGS="$save_LDFLAGS"
14344:
14345: fi
1.31 moko 14346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14347: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.23 moko 14348:
14349: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14350: :
14351: else
14352: lt_prog_compiler_static_CXX=
14353: fi
14354:
14355:
14356:
14357:
1.31 moko 14358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14359: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14360: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14361: $as_echo_n "(cached) " >&6
1.23 moko 14362: else
14363: lt_cv_prog_compiler_c_o_CXX=no
14364: $RM -r conftest 2>/dev/null
14365: mkdir conftest
14366: cd conftest
14367: mkdir out
14368: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14369:
14370: lt_compiler_flag="-o out/conftest2.$ac_objext"
14371: # Insert the option either (1) after the last *FLAGS variable, or
14372: # (2) before a word containing "conftest.", or (3) at the end.
14373: # Note that $ac_compile itself does not contain backslashes and begins
14374: # with a dollar sign (not a hyphen), so the echo should work correctly.
14375: lt_compile=`echo "$ac_compile" | $SED \
14376: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14377: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14378: -e 's:$: $lt_compiler_flag:'`
14379: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14380: (eval "$lt_compile" 2>out/conftest.err)
14381: ac_status=$?
14382: cat out/conftest.err >&5
14383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14385: then
14386: # The compiler can only warn and ignore the option if not recognized
14387: # So say no if there are warnings
14388: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14389: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14390: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14391: lt_cv_prog_compiler_c_o_CXX=yes
14392: fi
14393: fi
14394: chmod u+w . 2>&5
14395: $RM conftest*
14396: # SGI C++ compiler will create directory out/ii_files/ for
14397: # template instantiation
14398: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14399: $RM out/* && rmdir out
14400: cd ..
14401: $RM -r conftest
14402: $RM conftest*
14403:
14404: fi
1.31 moko 14405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14406: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.23 moko 14407:
14408:
14409:
1.31 moko 14410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14411: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14412: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14413: $as_echo_n "(cached) " >&6
1.23 moko 14414: else
14415: lt_cv_prog_compiler_c_o_CXX=no
14416: $RM -r conftest 2>/dev/null
14417: mkdir conftest
14418: cd conftest
14419: mkdir out
14420: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14421:
14422: lt_compiler_flag="-o out/conftest2.$ac_objext"
14423: # Insert the option either (1) after the last *FLAGS variable, or
14424: # (2) before a word containing "conftest.", or (3) at the end.
14425: # Note that $ac_compile itself does not contain backslashes and begins
14426: # with a dollar sign (not a hyphen), so the echo should work correctly.
14427: lt_compile=`echo "$ac_compile" | $SED \
14428: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14429: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14430: -e 's:$: $lt_compiler_flag:'`
14431: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14432: (eval "$lt_compile" 2>out/conftest.err)
14433: ac_status=$?
14434: cat out/conftest.err >&5
14435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14437: then
14438: # The compiler can only warn and ignore the option if not recognized
14439: # So say no if there are warnings
14440: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14441: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14442: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14443: lt_cv_prog_compiler_c_o_CXX=yes
14444: fi
14445: fi
14446: chmod u+w . 2>&5
14447: $RM conftest*
14448: # SGI C++ compiler will create directory out/ii_files/ for
14449: # template instantiation
14450: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14451: $RM out/* && rmdir out
14452: cd ..
14453: $RM -r conftest
14454: $RM conftest*
14455:
14456: fi
1.31 moko 14457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14458: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.23 moko 14459:
14460:
14461:
14462:
14463: hard_links="nottested"
14464: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14465: # do not overwrite the value of need_locks provided by the user
1.31 moko 14466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14467: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.23 moko 14468: hard_links=yes
14469: $RM conftest*
14470: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14471: touch conftest.a
14472: ln conftest.a conftest.b 2>&5 || hard_links=no
14473: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.31 moko 14474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14475: $as_echo "$hard_links" >&6; }
1.23 moko 14476: if test "$hard_links" = no; then
1.31 moko 14477: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14478: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.23 moko 14479: need_locks=warn
14480: fi
14481: else
14482: need_locks=no
14483: fi
14484:
14485:
14486:
1.31 moko 14487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14488: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.23 moko 14489:
14490: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14491: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14492: case $host_os in
14493: aix[4-9]*)
14494: # If we're using GNU nm, then we don't want the "-C" option.
14495: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14496: # Also, AIX nm treats weak defined symbols like other global defined
14497: # symbols, whereas GNU nm marks them as "W".
14498: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14499: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14500: else
14501: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14502: fi
14503: ;;
14504: pw32*)
14505: export_symbols_cmds_CXX="$ltdll_cmds"
14506: ;;
14507: cygwin* | mingw* | cegcc*)
14508: case $cc_basename in
14509: cl*)
14510: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14511: ;;
14512: *)
14513: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14514: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14515: ;;
14516: esac
14517: ;;
14518: *)
14519: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14520: ;;
14521: esac
14522:
1.31 moko 14523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14524: $as_echo "$ld_shlibs_CXX" >&6; }
1.23 moko 14525: test "$ld_shlibs_CXX" = no && can_build_shared=no
14526:
14527: with_gnu_ld_CXX=$with_gnu_ld
14528:
14529:
14530:
14531:
14532:
14533:
14534: #
14535: # Do we need to explicitly link libc?
14536: #
14537: case "x$archive_cmds_need_lc_CXX" in
14538: x|xyes)
14539: # Assume -lc should be added
14540: archive_cmds_need_lc_CXX=yes
14541:
14542: if test "$enable_shared" = yes && test "$GCC" = yes; then
14543: case $archive_cmds_CXX in
14544: *'~'*)
14545: # FIXME: we may have to deal with multi-command sequences.
14546: ;;
14547: '$CC '*)
14548: # Test whether the compiler implicitly links with -lc since on some
14549: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14550: # to ld, don't add -lc before -lgcc.
1.31 moko 14551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14552: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14553: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14554: $as_echo_n "(cached) " >&6
1.23 moko 14555: else
14556: $RM conftest*
14557: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14558:
1.31 moko 14559: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 14560: (eval $ac_compile) 2>&5
14561: ac_status=$?
1.31 moko 14562: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14563: test $ac_status = 0; } 2>conftest.err; then
1.23 moko 14564: soname=conftest
14565: lib=conftest
14566: libobjs=conftest.$ac_objext
14567: deplibs=
14568: wl=$lt_prog_compiler_wl_CXX
14569: pic_flag=$lt_prog_compiler_pic_CXX
14570: compiler_flags=-v
14571: linker_flags=-v
14572: verstring=
14573: output_objdir=.
14574: libname=conftest
14575: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14576: allow_undefined_flag_CXX=
1.31 moko 14577: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.23 moko 14578: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14579: ac_status=$?
1.31 moko 14580: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14581: test $ac_status = 0; }
1.23 moko 14582: then
14583: lt_cv_archive_cmds_need_lc_CXX=no
14584: else
14585: lt_cv_archive_cmds_need_lc_CXX=yes
14586: fi
14587: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14588: else
14589: cat conftest.err 1>&5
14590: fi
14591: $RM conftest*
14592:
14593: fi
1.31 moko 14594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14595: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.23 moko 14596: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14597: ;;
14598: esac
14599: fi
14600: ;;
14601: esac
14602:
14603:
14604:
14605:
14606:
14607:
14608:
14609:
14610:
14611:
14612:
14613:
14614:
14615:
14616:
14617:
14618:
14619:
14620:
14621:
14622:
14623:
14624:
14625:
14626:
14627:
14628:
14629:
14630:
14631:
14632:
14633:
14634:
14635:
14636:
14637:
14638:
14639:
14640:
14641:
14642:
14643:
14644:
14645:
14646:
14647:
14648:
14649:
14650:
14651:
14652:
14653:
14654:
14655:
14656:
14657:
14658:
14659:
14660:
14661:
14662:
14663:
1.31 moko 14664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14665: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.23 moko 14666:
14667: library_names_spec=
14668: libname_spec='lib$name'
14669: soname_spec=
14670: shrext_cmds=".so"
14671: postinstall_cmds=
14672: postuninstall_cmds=
14673: finish_cmds=
14674: finish_eval=
14675: shlibpath_var=
14676: shlibpath_overrides_runpath=unknown
14677: version_type=none
14678: dynamic_linker="$host_os ld.so"
14679: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14680: need_lib_prefix=unknown
14681: hardcode_into_libs=no
14682:
14683: # when you set need_version to no, make sure it does not cause -set_version
14684: # flags to be left without arguments
14685: need_version=unknown
14686:
14687: case $host_os in
14688: aix3*)
14689: version_type=linux # correct to gnu/linux during the next big refactor
14690: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14691: shlibpath_var=LIBPATH
14692:
14693: # AIX 3 has no versioning support, so we append a major version to the name.
14694: soname_spec='${libname}${release}${shared_ext}$major'
14695: ;;
14696:
14697: aix[4-9]*)
14698: version_type=linux # correct to gnu/linux during the next big refactor
14699: need_lib_prefix=no
14700: need_version=no
14701: hardcode_into_libs=yes
14702: if test "$host_cpu" = ia64; then
14703: # AIX 5 supports IA64
14704: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14705: shlibpath_var=LD_LIBRARY_PATH
14706: else
14707: # With GCC up to 2.95.x, collect2 would create an import file
14708: # for dependence libraries. The import file would start with
14709: # the line `#! .'. This would cause the generated library to
14710: # depend on `.', always an invalid library. This was fixed in
14711: # development snapshots of GCC prior to 3.0.
14712: case $host_os in
14713: aix4 | aix4.[01] | aix4.[01].*)
14714: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14715: echo ' yes '
14716: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14717: :
14718: else
14719: can_build_shared=no
14720: fi
14721: ;;
14722: esac
14723: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14724: # soname into executable. Probably we can add versioning support to
14725: # collect2, so additional links can be useful in future.
14726: if test "$aix_use_runtimelinking" = yes; then
14727: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14728: # instead of lib<name>.a to let people know that these are not
14729: # typical AIX shared libraries.
14730: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731: else
14732: # We preserve .a as extension for shared libraries through AIX4.2
14733: # and later when we are not doing run time linking.
14734: library_names_spec='${libname}${release}.a $libname.a'
14735: soname_spec='${libname}${release}${shared_ext}$major'
14736: fi
14737: shlibpath_var=LIBPATH
14738: fi
14739: ;;
14740:
14741: amigaos*)
14742: case $host_cpu in
14743: powerpc)
14744: # Since July 2007 AmigaOS4 officially supports .so libraries.
14745: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14746: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747: ;;
14748: m68k)
14749: library_names_spec='$libname.ixlibrary $libname.a'
14750: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14751: 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'
14752: ;;
14753: esac
14754: ;;
14755:
14756: beos*)
14757: library_names_spec='${libname}${shared_ext}'
14758: dynamic_linker="$host_os ld.so"
14759: shlibpath_var=LIBRARY_PATH
14760: ;;
14761:
14762: bsdi[45]*)
14763: version_type=linux # correct to gnu/linux during the next big refactor
14764: need_version=no
14765: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766: soname_spec='${libname}${release}${shared_ext}$major'
14767: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14768: shlibpath_var=LD_LIBRARY_PATH
14769: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14770: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14771: # the default ld.so.conf also contains /usr/contrib/lib and
14772: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14773: # libtool to hard-code these into programs
14774: ;;
14775:
14776: cygwin* | mingw* | pw32* | cegcc*)
14777: version_type=windows
14778: shrext_cmds=".dll"
14779: need_version=no
14780: need_lib_prefix=no
14781:
14782: case $GCC,$cc_basename in
14783: yes,*)
14784: # gcc
14785: library_names_spec='$libname.dll.a'
14786: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14787: postinstall_cmds='base_file=`basename \${file}`~
14788: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14789: dldir=$destdir/`dirname \$dlpath`~
14790: test -d \$dldir || mkdir -p \$dldir~
14791: $install_prog $dir/$dlname \$dldir/$dlname~
14792: chmod a+x \$dldir/$dlname~
14793: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14794: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14795: fi'
14796: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14797: dlpath=$dir/\$dldll~
14798: $RM \$dlpath'
14799: shlibpath_overrides_runpath=yes
14800:
14801: case $host_os in
14802: cygwin*)
14803: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14804: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14805:
14806: ;;
14807: mingw* | cegcc*)
14808: # MinGW DLLs use traditional 'lib' prefix
14809: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14810: ;;
14811: pw32*)
14812: # pw32 DLLs use 'pw' prefix rather than 'lib'
14813: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14814: ;;
14815: esac
14816: dynamic_linker='Win32 ld.exe'
14817: ;;
14818:
14819: *,cl*)
14820: # Native MSVC
14821: libname_spec='$name'
14822: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14823: library_names_spec='${libname}.dll.lib'
14824:
14825: case $build_os in
14826: mingw*)
14827: sys_lib_search_path_spec=
14828: lt_save_ifs=$IFS
14829: IFS=';'
14830: for lt_path in $LIB
14831: do
14832: IFS=$lt_save_ifs
14833: # Let DOS variable expansion print the short 8.3 style file name.
14834: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14835: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14836: done
14837: IFS=$lt_save_ifs
14838: # Convert to MSYS style.
14839: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14840: ;;
14841: cygwin*)
14842: # Convert to unix form, then to dos form, then back to unix form
14843: # but this time dos style (no spaces!) so that the unix form looks
14844: # like /cygdrive/c/PROGRA~1:/cygdr...
14845: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14846: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14847: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14848: ;;
14849: *)
14850: sys_lib_search_path_spec="$LIB"
14851: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14852: # It is most probably a Windows format PATH.
14853: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14854: else
14855: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14856: fi
14857: # FIXME: find the short name or the path components, as spaces are
14858: # common. (e.g. "Program Files" -> "PROGRA~1")
14859: ;;
14860: esac
14861:
14862: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14863: postinstall_cmds='base_file=`basename \${file}`~
14864: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14865: dldir=$destdir/`dirname \$dlpath`~
14866: test -d \$dldir || mkdir -p \$dldir~
14867: $install_prog $dir/$dlname \$dldir/$dlname'
14868: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14869: dlpath=$dir/\$dldll~
14870: $RM \$dlpath'
14871: shlibpath_overrides_runpath=yes
14872: dynamic_linker='Win32 link.exe'
14873: ;;
14874:
14875: *)
14876: # Assume MSVC wrapper
14877: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14878: dynamic_linker='Win32 ld.exe'
14879: ;;
14880: esac
14881: # FIXME: first we should search . and the directory the executable is in
14882: shlibpath_var=PATH
14883: ;;
14884:
14885: darwin* | rhapsody*)
14886: dynamic_linker="$host_os dyld"
14887: version_type=darwin
14888: need_lib_prefix=no
14889: need_version=no
14890: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14891: soname_spec='${libname}${release}${major}$shared_ext'
14892: shlibpath_overrides_runpath=yes
14893: shlibpath_var=DYLD_LIBRARY_PATH
14894: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14895:
14896: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14897: ;;
14898:
14899: dgux*)
14900: version_type=linux # correct to gnu/linux during the next big refactor
14901: need_lib_prefix=no
14902: need_version=no
14903: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14904: soname_spec='${libname}${release}${shared_ext}$major'
14905: shlibpath_var=LD_LIBRARY_PATH
14906: ;;
14907:
14908: freebsd* | dragonfly*)
14909: # DragonFly does not have aout. When/if they implement a new
14910: # versioning mechanism, adjust this.
14911: if test -x /usr/bin/objformat; then
14912: objformat=`/usr/bin/objformat`
14913: else
14914: case $host_os in
14915: freebsd[23].*) objformat=aout ;;
14916: *) objformat=elf ;;
14917: esac
14918: fi
14919: version_type=freebsd-$objformat
14920: case $version_type in
14921: freebsd-elf*)
14922: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14923: need_version=no
14924: need_lib_prefix=no
14925: ;;
14926: freebsd-*)
14927: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14928: need_version=yes
14929: ;;
14930: esac
14931: shlibpath_var=LD_LIBRARY_PATH
14932: case $host_os in
14933: freebsd2.*)
14934: shlibpath_overrides_runpath=yes
14935: ;;
14936: freebsd3.[01]* | freebsdelf3.[01]*)
14937: shlibpath_overrides_runpath=yes
14938: hardcode_into_libs=yes
14939: ;;
14940: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14941: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14942: shlibpath_overrides_runpath=no
14943: hardcode_into_libs=yes
14944: ;;
14945: *) # from 4.6 on, and DragonFly
14946: shlibpath_overrides_runpath=yes
14947: hardcode_into_libs=yes
14948: ;;
14949: esac
14950: ;;
14951:
14952: gnu*)
14953: version_type=linux # correct to gnu/linux during the next big refactor
14954: need_lib_prefix=no
14955: need_version=no
14956: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14957: soname_spec='${libname}${release}${shared_ext}$major'
14958: shlibpath_var=LD_LIBRARY_PATH
14959: shlibpath_overrides_runpath=no
14960: hardcode_into_libs=yes
14961: ;;
14962:
14963: haiku*)
14964: version_type=linux # correct to gnu/linux during the next big refactor
14965: need_lib_prefix=no
14966: need_version=no
14967: dynamic_linker="$host_os runtime_loader"
14968: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14969: soname_spec='${libname}${release}${shared_ext}$major'
14970: shlibpath_var=LIBRARY_PATH
14971: shlibpath_overrides_runpath=yes
14972: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14973: hardcode_into_libs=yes
14974: ;;
14975:
14976: hpux9* | hpux10* | hpux11*)
14977: # Give a soname corresponding to the major version so that dld.sl refuses to
14978: # link against other versions.
14979: version_type=sunos
14980: need_lib_prefix=no
14981: need_version=no
14982: case $host_cpu in
14983: ia64*)
14984: shrext_cmds='.so'
14985: hardcode_into_libs=yes
14986: dynamic_linker="$host_os dld.so"
14987: shlibpath_var=LD_LIBRARY_PATH
14988: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14989: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990: soname_spec='${libname}${release}${shared_ext}$major'
14991: if test "X$HPUX_IA64_MODE" = X32; then
14992: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14993: else
14994: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14995: fi
14996: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14997: ;;
14998: hppa*64*)
14999: shrext_cmds='.sl'
15000: hardcode_into_libs=yes
15001: dynamic_linker="$host_os dld.sl"
15002: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15003: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15004: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005: soname_spec='${libname}${release}${shared_ext}$major'
15006: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15007: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15008: ;;
15009: *)
15010: shrext_cmds='.sl'
15011: dynamic_linker="$host_os dld.sl"
15012: shlibpath_var=SHLIB_PATH
15013: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15014: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015: soname_spec='${libname}${release}${shared_ext}$major'
15016: ;;
15017: esac
15018: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15019: postinstall_cmds='chmod 555 $lib'
15020: # or fails outright, so override atomically:
15021: install_override_mode=555
15022: ;;
15023:
15024: interix[3-9]*)
15025: version_type=linux # correct to gnu/linux during the next big refactor
15026: need_lib_prefix=no
15027: need_version=no
15028: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15029: soname_spec='${libname}${release}${shared_ext}$major'
15030: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15031: shlibpath_var=LD_LIBRARY_PATH
15032: shlibpath_overrides_runpath=no
15033: hardcode_into_libs=yes
15034: ;;
15035:
15036: irix5* | irix6* | nonstopux*)
15037: case $host_os in
15038: nonstopux*) version_type=nonstopux ;;
15039: *)
15040: if test "$lt_cv_prog_gnu_ld" = yes; then
15041: version_type=linux # correct to gnu/linux during the next big refactor
15042: else
15043: version_type=irix
15044: fi ;;
15045: esac
15046: need_lib_prefix=no
15047: need_version=no
15048: soname_spec='${libname}${release}${shared_ext}$major'
15049: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15050: case $host_os in
15051: irix5* | nonstopux*)
15052: libsuff= shlibsuff=
15053: ;;
15054: *)
15055: case $LD in # libtool.m4 will add one of these switches to LD
15056: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15057: libsuff= shlibsuff= libmagic=32-bit;;
15058: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15059: libsuff=32 shlibsuff=N32 libmagic=N32;;
15060: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15061: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15062: *) libsuff= shlibsuff= libmagic=never-match;;
15063: esac
15064: ;;
15065: esac
15066: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15067: shlibpath_overrides_runpath=no
15068: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15069: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15070: hardcode_into_libs=yes
15071: ;;
15072:
15073: # No shared lib support for Linux oldld, aout, or coff.
15074: linux*oldld* | linux*aout* | linux*coff*)
15075: dynamic_linker=no
15076: ;;
15077:
15078: # This must be glibc/ELF.
15079: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15080: version_type=linux # correct to gnu/linux during the next big refactor
15081: need_lib_prefix=no
15082: need_version=no
15083: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084: soname_spec='${libname}${release}${shared_ext}$major'
15085: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15086: shlibpath_var=LD_LIBRARY_PATH
15087: shlibpath_overrides_runpath=no
15088:
15089: # Some binutils ld are patched to set DT_RUNPATH
1.31 moko 15090: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15091: $as_echo_n "(cached) " >&6
1.23 moko 15092: else
15093: lt_cv_shlibpath_overrides_runpath=no
15094: save_LDFLAGS=$LDFLAGS
15095: save_libdir=$libdir
15096: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15097: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.31 moko 15098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15099: /* end confdefs.h. */
15100:
15101: int
15102: main ()
15103: {
15104:
15105: ;
15106: return 0;
15107: }
15108: _ACEOF
1.31 moko 15109: if ac_fn_cxx_try_link "$LINENO"; then :
15110: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.23 moko 15111: lt_cv_shlibpath_overrides_runpath=yes
15112: fi
15113: fi
1.31 moko 15114: rm -f core conftest.err conftest.$ac_objext \
15115: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15116: LDFLAGS=$save_LDFLAGS
15117: libdir=$save_libdir
15118:
15119: fi
15120:
15121: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15122:
15123: # This implies no fast_install, which is unacceptable.
15124: # Some rework will be needed to allow for fast_install
15125: # before this can be enabled.
15126: hardcode_into_libs=yes
15127:
15128: # Append ld.so.conf contents to the search path
15129: if test -f /etc/ld.so.conf; then
15130: 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' ' '`
15131: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15132: fi
15133:
15134: # We used to test for /lib/ld.so.1 and disable shared libraries on
15135: # powerpc, because MkLinux only supported shared libraries with the
15136: # GNU dynamic linker. Since this was broken with cross compilers,
15137: # most powerpc-linux boxes support dynamic linking these days and
15138: # people can always --disable-shared, the test was removed, and we
15139: # assume the GNU/Linux dynamic linker is in use.
15140: dynamic_linker='GNU/Linux ld.so'
15141: ;;
15142:
15143: netbsd*)
15144: version_type=sunos
15145: need_lib_prefix=no
15146: need_version=no
15147: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15148: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15149: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15150: dynamic_linker='NetBSD (a.out) ld.so'
15151: else
15152: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15153: soname_spec='${libname}${release}${shared_ext}$major'
15154: dynamic_linker='NetBSD ld.elf_so'
15155: fi
15156: shlibpath_var=LD_LIBRARY_PATH
15157: shlibpath_overrides_runpath=yes
15158: hardcode_into_libs=yes
15159: ;;
15160:
15161: newsos6)
15162: version_type=linux # correct to gnu/linux during the next big refactor
15163: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15164: shlibpath_var=LD_LIBRARY_PATH
15165: shlibpath_overrides_runpath=yes
15166: ;;
15167:
15168: *nto* | *qnx*)
15169: version_type=qnx
15170: need_lib_prefix=no
15171: need_version=no
15172: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173: soname_spec='${libname}${release}${shared_ext}$major'
15174: shlibpath_var=LD_LIBRARY_PATH
15175: shlibpath_overrides_runpath=no
15176: hardcode_into_libs=yes
15177: dynamic_linker='ldqnx.so'
15178: ;;
15179:
15180: openbsd*)
15181: version_type=sunos
15182: sys_lib_dlsearch_path_spec="/usr/lib"
15183: need_lib_prefix=no
15184: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15185: case $host_os in
15186: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15187: *) need_version=no ;;
15188: esac
15189: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15190: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15191: shlibpath_var=LD_LIBRARY_PATH
15192: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15193: case $host_os in
15194: openbsd2.[89] | openbsd2.[89].*)
15195: shlibpath_overrides_runpath=no
15196: ;;
15197: *)
15198: shlibpath_overrides_runpath=yes
15199: ;;
15200: esac
15201: else
15202: shlibpath_overrides_runpath=yes
15203: fi
15204: ;;
15205:
15206: os2*)
15207: libname_spec='$name'
15208: shrext_cmds=".dll"
15209: need_lib_prefix=no
15210: library_names_spec='$libname${shared_ext} $libname.a'
15211: dynamic_linker='OS/2 ld.exe'
15212: shlibpath_var=LIBPATH
15213: ;;
15214:
15215: osf3* | osf4* | osf5*)
15216: version_type=osf
15217: need_lib_prefix=no
15218: need_version=no
15219: soname_spec='${libname}${release}${shared_ext}$major'
15220: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221: shlibpath_var=LD_LIBRARY_PATH
15222: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15223: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15224: ;;
15225:
15226: rdos*)
15227: dynamic_linker=no
15228: ;;
15229:
15230: solaris*)
15231: version_type=linux # correct to gnu/linux during the next big refactor
15232: need_lib_prefix=no
15233: need_version=no
15234: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235: soname_spec='${libname}${release}${shared_ext}$major'
15236: shlibpath_var=LD_LIBRARY_PATH
15237: shlibpath_overrides_runpath=yes
15238: hardcode_into_libs=yes
15239: # ldd complains unless libraries are executable
15240: postinstall_cmds='chmod +x $lib'
15241: ;;
15242:
15243: sunos4*)
15244: version_type=sunos
15245: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15246: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15247: shlibpath_var=LD_LIBRARY_PATH
15248: shlibpath_overrides_runpath=yes
15249: if test "$with_gnu_ld" = yes; then
15250: need_lib_prefix=no
15251: fi
15252: need_version=yes
15253: ;;
15254:
15255: sysv4 | sysv4.3*)
15256: version_type=linux # correct to gnu/linux during the next big refactor
15257: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15258: soname_spec='${libname}${release}${shared_ext}$major'
15259: shlibpath_var=LD_LIBRARY_PATH
15260: case $host_vendor in
15261: sni)
15262: shlibpath_overrides_runpath=no
15263: need_lib_prefix=no
15264: runpath_var=LD_RUN_PATH
15265: ;;
15266: siemens)
15267: need_lib_prefix=no
15268: ;;
15269: motorola)
15270: need_lib_prefix=no
15271: need_version=no
15272: shlibpath_overrides_runpath=no
15273: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15274: ;;
15275: esac
15276: ;;
15277:
15278: sysv4*MP*)
15279: if test -d /usr/nec ;then
15280: version_type=linux # correct to gnu/linux during the next big refactor
15281: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15282: soname_spec='$libname${shared_ext}.$major'
15283: shlibpath_var=LD_LIBRARY_PATH
15284: fi
15285: ;;
15286:
15287: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15288: version_type=freebsd-elf
15289: need_lib_prefix=no
15290: need_version=no
15291: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15292: soname_spec='${libname}${release}${shared_ext}$major'
15293: shlibpath_var=LD_LIBRARY_PATH
15294: shlibpath_overrides_runpath=yes
15295: hardcode_into_libs=yes
15296: if test "$with_gnu_ld" = yes; then
15297: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15298: else
15299: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15300: case $host_os in
15301: sco3.2v5*)
15302: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15303: ;;
15304: esac
15305: fi
15306: sys_lib_dlsearch_path_spec='/usr/lib'
15307: ;;
15308:
15309: tpf*)
15310: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15311: version_type=linux # correct to gnu/linux during the next big refactor
15312: need_lib_prefix=no
15313: need_version=no
15314: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315: shlibpath_var=LD_LIBRARY_PATH
15316: shlibpath_overrides_runpath=no
15317: hardcode_into_libs=yes
15318: ;;
15319:
15320: uts4*)
15321: version_type=linux # correct to gnu/linux during the next big refactor
15322: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323: soname_spec='${libname}${release}${shared_ext}$major'
15324: shlibpath_var=LD_LIBRARY_PATH
15325: ;;
15326:
15327: *)
15328: dynamic_linker=no
15329: ;;
15330: esac
1.31 moko 15331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15332: $as_echo "$dynamic_linker" >&6; }
1.23 moko 15333: test "$dynamic_linker" = no && can_build_shared=no
15334:
15335: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15336: if test "$GCC" = yes; then
15337: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15338: fi
15339:
15340: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15341: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15342: fi
15343: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15344: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15345: fi
15346:
15347:
15348:
15349:
15350:
15351:
15352:
15353:
15354:
15355:
15356:
15357:
15358:
15359:
15360:
15361:
15362:
15363:
15364:
15365:
15366:
15367:
15368:
15369:
15370:
15371:
15372:
15373:
15374:
15375:
15376:
15377:
15378:
15379:
15380:
15381:
15382:
15383:
1.31 moko 15384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15385: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.23 moko 15386: hardcode_action_CXX=
15387: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15388: test -n "$runpath_var_CXX" ||
15389: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15390:
15391: # We can hardcode non-existent directories.
15392: if test "$hardcode_direct_CXX" != no &&
15393: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15394: # have to relink, otherwise we might link with an installed library
15395: # when we should be linking with a yet-to-be-installed one
15396: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15397: test "$hardcode_minus_L_CXX" != no; then
15398: # Linking always hardcodes the temporary library directory.
15399: hardcode_action_CXX=relink
15400: else
15401: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15402: hardcode_action_CXX=immediate
15403: fi
15404: else
15405: # We cannot hardcode anything, or else we can only hardcode existing
15406: # directories.
15407: hardcode_action_CXX=unsupported
15408: fi
1.31 moko 15409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15410: $as_echo "$hardcode_action_CXX" >&6; }
1.23 moko 15411:
15412: if test "$hardcode_action_CXX" = relink ||
15413: test "$inherit_rpath_CXX" = yes; then
15414: # Fast installation is not supported
15415: enable_fast_install=no
15416: elif test "$shlibpath_overrides_runpath" = yes ||
15417: test "$enable_shared" = no; then
15418: # Fast installation is not necessary
15419: enable_fast_install=needless
15420: fi
15421:
15422:
15423:
15424:
15425:
15426:
15427:
15428: fi # test -n "$compiler"
15429:
15430: CC=$lt_save_CC
15431: CFLAGS=$lt_save_CFLAGS
15432: LDCXX=$LD
15433: LD=$lt_save_LD
15434: GCC=$lt_save_GCC
15435: with_gnu_ld=$lt_save_with_gnu_ld
15436: lt_cv_path_LDCXX=$lt_cv_path_LD
15437: lt_cv_path_LD=$lt_save_path_LD
15438: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15439: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15440: fi # test "$_lt_caught_CXX_error" != yes
15441:
15442: ac_ext=c
15443: ac_cpp='$CPP $CPPFLAGS'
15444: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15445: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15446: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15447:
15448:
15449:
15450:
15451:
15452:
15453:
15454:
15455:
15456:
15457:
15458:
15459:
15460:
15461:
1.31 moko 15462: ac_config_commands="$ac_config_commands libtool"
1.23 moko 15463:
15464:
15465:
15466:
15467: # Only expand once:
15468:
15469:
1.31 moko 15470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15471: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15472: if ${libltdl_cv_shlibext+:} false; then :
15473: $as_echo_n "(cached) " >&6
1.23 moko 15474: else
15475:
15476: module=yes
15477: eval libltdl_cv_shlibext=$shrext_cmds
15478: module=no
15479: eval libltdl_cv_shrext=$shrext_cmds
15480:
15481: fi
1.31 moko 15482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15483: $as_echo "$libltdl_cv_shlibext" >&6; }
1.23 moko 15484: if test -n "$libltdl_cv_shlibext"; then
15485:
15486: cat >>confdefs.h <<_ACEOF
15487: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15488: _ACEOF
15489:
15490: fi
15491: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15492:
15493: cat >>confdefs.h <<_ACEOF
15494: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15495: _ACEOF
15496:
15497: fi
15498:
1.31 moko 15499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15500: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15501: if ${lt_cv_module_path_var+:} false; then :
15502: $as_echo_n "(cached) " >&6
1.23 moko 15503: else
15504: lt_cv_module_path_var="$shlibpath_var"
15505: fi
1.31 moko 15506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15507: $as_echo "$lt_cv_module_path_var" >&6; }
1.23 moko 15508: if test -n "$lt_cv_module_path_var"; then
15509:
15510: cat >>confdefs.h <<_ACEOF
15511: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15512: _ACEOF
15513:
15514: fi
15515:
1.31 moko 15516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15517: $as_echo_n "checking for the default library search path... " >&6; }
15518: if ${lt_cv_sys_dlsearch_path+:} false; then :
15519: $as_echo_n "(cached) " >&6
1.23 moko 15520: else
15521: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15522: fi
1.31 moko 15523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15524: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.23 moko 15525: if test -n "$lt_cv_sys_dlsearch_path"; then
15526: sys_dlsearch_path=
15527: for dir in $lt_cv_sys_dlsearch_path; do
15528: if test -z "$sys_dlsearch_path"; then
15529: sys_dlsearch_path="$dir"
15530: else
15531: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15532: fi
15533: done
15534:
15535: cat >>confdefs.h <<_ACEOF
15536: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15537: _ACEOF
15538:
15539: fi
15540:
15541:
15542: LT_DLLOADERS=
15543:
15544:
15545: ac_ext=c
15546: ac_cpp='$CPP $CPPFLAGS'
15547: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15548: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15549: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15550:
15551:
15552: LIBADD_DLOPEN=
1.31 moko 15553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15554: $as_echo_n "checking for library containing dlopen... " >&6; }
15555: if ${ac_cv_search_dlopen+:} false; then :
15556: $as_echo_n "(cached) " >&6
1.23 moko 15557: else
15558: ac_func_search_save_LIBS=$LIBS
1.31 moko 15559: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15560: /* end confdefs.h. */
15561:
1.31 moko 15562: /* Override any GCC internal prototype to avoid an error.
15563: Use char because int might match the return type of a GCC
15564: builtin and then its argument prototype would still apply. */
1.23 moko 15565: #ifdef __cplusplus
15566: extern "C"
15567: #endif
15568: char dlopen ();
15569: int
15570: main ()
15571: {
1.31 moko 15572: return dlopen ();
1.23 moko 15573: ;
15574: return 0;
15575: }
15576: _ACEOF
1.31 moko 15577: for ac_lib in '' dl; do
15578: if test -z "$ac_lib"; then
15579: ac_res="none required"
15580: else
15581: ac_res=-l$ac_lib
15582: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15583: fi
15584: if ac_fn_c_try_link "$LINENO"; then :
15585: ac_cv_search_dlopen=$ac_res
15586: fi
15587: rm -f core conftest.err conftest.$ac_objext \
15588: conftest$ac_exeext
15589: if ${ac_cv_search_dlopen+:} false; then :
15590: break
1.23 moko 15591: fi
1.31 moko 15592: done
15593: if ${ac_cv_search_dlopen+:} false; then :
1.23 moko 15594:
15595: else
1.31 moko 15596: ac_cv_search_dlopen=no
1.23 moko 15597: fi
1.31 moko 15598: rm conftest.$ac_ext
1.23 moko 15599: LIBS=$ac_func_search_save_LIBS
15600: fi
1.31 moko 15601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15602: $as_echo "$ac_cv_search_dlopen" >&6; }
15603: ac_res=$ac_cv_search_dlopen
15604: if test "$ac_res" != no; then :
15605: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.23 moko 15606:
1.31 moko 15607: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.23 moko 15608:
15609: if test "$ac_cv_search_dlopen" != "none required" ; then
15610: LIBADD_DLOPEN="-ldl"
15611: fi
15612: libltdl_cv_lib_dl_dlopen="yes"
15613: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15614: else
1.31 moko 15615: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15616: /* end confdefs.h. */
15617: #if HAVE_DLFCN_H
15618: # include <dlfcn.h>
15619: #endif
15620:
15621: int
15622: main ()
15623: {
15624: dlopen(0, 0);
15625: ;
15626: return 0;
15627: }
15628: _ACEOF
1.31 moko 15629: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 15630:
1.31 moko 15631: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.23 moko 15632:
15633: libltdl_cv_func_dlopen="yes"
15634: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15635: else
1.31 moko 15636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15637: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15638: if ${ac_cv_lib_svld_dlopen+:} false; then :
15639: $as_echo_n "(cached) " >&6
1.23 moko 15640: else
15641: ac_check_lib_save_LIBS=$LIBS
15642: LIBS="-lsvld $LIBS"
1.31 moko 15643: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15644: /* end confdefs.h. */
15645:
1.31 moko 15646: /* Override any GCC internal prototype to avoid an error.
15647: Use char because int might match the return type of a GCC
1.23 moko 15648: builtin and then its argument prototype would still apply. */
15649: #ifdef __cplusplus
1.31 moko 15650: extern "C"
1.23 moko 15651: #endif
1.31 moko 15652: char dlopen ();
1.23 moko 15653: int
15654: main ()
15655: {
1.31 moko 15656: return dlopen ();
1.23 moko 15657: ;
15658: return 0;
15659: }
15660: _ACEOF
1.31 moko 15661: if ac_fn_c_try_link "$LINENO"; then :
15662: ac_cv_lib_svld_dlopen=yes
1.23 moko 15663: else
1.31 moko 15664: ac_cv_lib_svld_dlopen=no
15665: fi
15666: rm -f core conftest.err conftest.$ac_objext \
15667: conftest$ac_exeext conftest.$ac_ext
15668: LIBS=$ac_check_lib_save_LIBS
15669: fi
15670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15671: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15672: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15673:
15674: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15675:
15676: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15677: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15678: fi
1.23 moko 15679:
15680: fi
1.31 moko 15681: rm -f core conftest.err conftest.$ac_objext \
15682: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15683: fi
1.31 moko 15684:
15685: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15686: then
15687: lt_save_LIBS="$LIBS"
15688: LIBS="$LIBS $LIBADD_DLOPEN"
15689: for ac_func in dlerror
15690: do :
15691: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15692: if test "x$ac_cv_func_dlerror" = xyes; then :
1.23 moko 15693: cat >>confdefs.h <<_ACEOF
1.31 moko 15694: #define HAVE_DLERROR 1
1.23 moko 15695: _ACEOF
15696:
15697: fi
15698: done
15699:
15700: LIBS="$lt_save_LIBS"
15701: fi
15702:
15703:
15704: LIBADD_SHL_LOAD=
1.31 moko 15705: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15706: if test "x$ac_cv_func_shl_load" = xyes; then :
1.23 moko 15707:
1.31 moko 15708: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.23 moko 15709:
15710: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15711: else
1.31 moko 15712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15713: $as_echo_n "checking for shl_load in -ldld... " >&6; }
15714: if ${ac_cv_lib_dld_shl_load+:} false; then :
15715: $as_echo_n "(cached) " >&6
1.23 moko 15716: else
15717: ac_check_lib_save_LIBS=$LIBS
15718: LIBS="-ldld $LIBS"
1.31 moko 15719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15720: /* end confdefs.h. */
15721:
1.31 moko 15722: /* Override any GCC internal prototype to avoid an error.
15723: Use char because int might match the return type of a GCC
15724: builtin and then its argument prototype would still apply. */
1.23 moko 15725: #ifdef __cplusplus
15726: extern "C"
15727: #endif
15728: char shl_load ();
15729: int
15730: main ()
15731: {
1.31 moko 15732: return shl_load ();
1.23 moko 15733: ;
15734: return 0;
15735: }
15736: _ACEOF
1.31 moko 15737: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 15738: ac_cv_lib_dld_shl_load=yes
15739: else
1.31 moko 15740: ac_cv_lib_dld_shl_load=no
1.23 moko 15741: fi
1.31 moko 15742: rm -f core conftest.err conftest.$ac_objext \
15743: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15744: LIBS=$ac_check_lib_save_LIBS
15745: fi
1.31 moko 15746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15747: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15748: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.23 moko 15749:
1.31 moko 15750: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.23 moko 15751:
15752: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15753: LIBADD_SHL_LOAD="-ldld"
15754: fi
15755:
15756: fi
15757:
15758:
15759:
15760: case $host_os in
15761: darwin[1567].*)
15762: # We only want this for pre-Mac OS X 10.4.
1.31 moko 15763: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15764: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
1.23 moko 15765:
1.31 moko 15766: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.23 moko 15767:
15768: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15769: fi
15770:
15771: ;;
15772: beos*)
15773: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15774: ;;
15775: cygwin* | mingw* | os2* | pw32*)
1.31 moko 15776: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15777: "
15778: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15779: ac_have_decl=1
1.23 moko 15780: else
1.31 moko 15781: ac_have_decl=0
1.23 moko 15782: fi
15783:
15784: cat >>confdefs.h <<_ACEOF
1.31 moko 15785: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.23 moko 15786: _ACEOF
15787:
15788: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15789: ;;
15790: esac
15791:
1.31 moko 15792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15793: $as_echo_n "checking for dld_link in -ldld... " >&6; }
15794: if ${ac_cv_lib_dld_dld_link+:} false; then :
15795: $as_echo_n "(cached) " >&6
1.23 moko 15796: else
15797: ac_check_lib_save_LIBS=$LIBS
15798: LIBS="-ldld $LIBS"
1.31 moko 15799: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15800: /* end confdefs.h. */
15801:
1.31 moko 15802: /* Override any GCC internal prototype to avoid an error.
15803: Use char because int might match the return type of a GCC
15804: builtin and then its argument prototype would still apply. */
1.23 moko 15805: #ifdef __cplusplus
15806: extern "C"
15807: #endif
15808: char dld_link ();
15809: int
15810: main ()
15811: {
1.31 moko 15812: return dld_link ();
1.23 moko 15813: ;
15814: return 0;
15815: }
15816: _ACEOF
1.31 moko 15817: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 15818: ac_cv_lib_dld_dld_link=yes
15819: else
1.31 moko 15820: ac_cv_lib_dld_dld_link=no
1.23 moko 15821: fi
1.31 moko 15822: rm -f core conftest.err conftest.$ac_objext \
15823: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15824: LIBS=$ac_check_lib_save_LIBS
15825: fi
1.31 moko 15826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15827: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15828: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.23 moko 15829:
1.31 moko 15830: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.23 moko 15831:
15832: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15833: fi
15834:
15835:
15836:
15837:
15838: LT_DLPREOPEN=
15839: if test -n "$LT_DLLOADERS"
15840: then
15841: for lt_loader in $LT_DLLOADERS; do
15842: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15843: done
15844:
1.31 moko 15845: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.23 moko 15846:
15847: fi
15848:
15849:
15850: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15851:
15852:
15853: ac_ext=c
15854: ac_cpp='$CPP $CPPFLAGS'
15855: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15856: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15857: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15858:
15859:
1.31 moko 15860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15861: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15862: if ${lt_cv_sys_symbol_underscore+:} false; then :
15863: $as_echo_n "(cached) " >&6
1.23 moko 15864: else
15865: lt_cv_sys_symbol_underscore=no
15866: cat > conftest.$ac_ext <<_LT_EOF
15867: void nm_test_func(){}
15868: int main(){nm_test_func;return 0;}
15869: _LT_EOF
1.31 moko 15870: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 15871: (eval $ac_compile) 2>&5
15872: ac_status=$?
1.31 moko 15873: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15874: test $ac_status = 0; }; then
1.23 moko 15875: # Now try to grab the symbols.
15876: ac_nlist=conftest.nm
1.31 moko 15877: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.23 moko 15878: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15879: ac_status=$?
1.31 moko 15880: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15881: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.23 moko 15882: # See whether the symbols have a leading underscore.
15883: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15884: lt_cv_sys_symbol_underscore=yes
15885: else
15886: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15887: :
15888: else
15889: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15890: fi
15891: fi
15892: else
15893: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15894: fi
15895: else
15896: echo "configure: failed program was:" >&5
15897: cat conftest.c >&5
15898: fi
15899: rm -rf conftest*
15900:
15901: fi
1.31 moko 15902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15903: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.23 moko 15904: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15905:
15906:
15907: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15908: if test x"$libltdl_cv_func_dlopen" = xyes ||
15909: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.31 moko 15910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15911: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15912: if ${libltdl_cv_need_uscore+:} false; then :
15913: $as_echo_n "(cached) " >&6
1.23 moko 15914: else
15915: libltdl_cv_need_uscore=unknown
15916: save_LIBS="$LIBS"
15917: LIBS="$LIBS $LIBADD_DLOPEN"
15918: if test "$cross_compiling" = yes; then :
15919: libltdl_cv_need_uscore=cross
15920: else
15921: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15922: lt_status=$lt_dlunknown
15923: cat > conftest.$ac_ext <<_LT_EOF
15924: #line $LINENO "configure"
15925: #include "confdefs.h"
15926:
15927: #if HAVE_DLFCN_H
15928: #include <dlfcn.h>
15929: #endif
15930:
15931: #include <stdio.h>
15932:
15933: #ifdef RTLD_GLOBAL
15934: # define LT_DLGLOBAL RTLD_GLOBAL
15935: #else
15936: # ifdef DL_GLOBAL
15937: # define LT_DLGLOBAL DL_GLOBAL
15938: # else
15939: # define LT_DLGLOBAL 0
15940: # endif
15941: #endif
15942:
15943: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15944: find out it does not work in some platform. */
15945: #ifndef LT_DLLAZY_OR_NOW
15946: # ifdef RTLD_LAZY
15947: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15948: # else
15949: # ifdef DL_LAZY
15950: # define LT_DLLAZY_OR_NOW DL_LAZY
15951: # else
15952: # ifdef RTLD_NOW
15953: # define LT_DLLAZY_OR_NOW RTLD_NOW
15954: # else
15955: # ifdef DL_NOW
15956: # define LT_DLLAZY_OR_NOW DL_NOW
15957: # else
15958: # define LT_DLLAZY_OR_NOW 0
15959: # endif
15960: # endif
15961: # endif
15962: # endif
15963: #endif
15964:
15965: /* When -fvisbility=hidden is used, assume the code has been annotated
15966: correspondingly for the symbols needed. */
15967: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15968: int fnord () __attribute__((visibility("default")));
15969: #endif
15970:
15971: int fnord () { return 42; }
15972: int main ()
15973: {
15974: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15975: int status = $lt_dlunknown;
15976:
15977: if (self)
15978: {
15979: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15980: else
15981: {
15982: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15983: else puts (dlerror ());
15984: }
15985: /* dlclose (self); */
15986: }
15987: else
15988: puts (dlerror ());
15989:
15990: return status;
15991: }
15992: _LT_EOF
1.31 moko 15993: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 15994: (eval $ac_link) 2>&5
15995: ac_status=$?
1.31 moko 15996: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.23 moko 15998: (./conftest; exit; ) >&5 2>/dev/null
15999: lt_status=$?
16000: case x$lt_status in
16001: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16002: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16003: x$lt_dlunknown|x*) ;;
16004: esac
16005: else :
16006: # compilation failed
16007:
16008: fi
16009: fi
16010: rm -fr conftest*
16011:
16012: LIBS="$save_LIBS"
16013:
16014: fi
1.31 moko 16015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16016: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.23 moko 16017: fi
16018: fi
16019:
16020: if test x"$libltdl_cv_need_uscore" = xyes; then
16021:
1.31 moko 16022: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.23 moko 16023:
16024: fi
16025:
1.31 moko 16026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16027: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16028: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16029: $as_echo_n "(cached) " >&6
1.23 moko 16030: else
16031: # PORTME does your system automatically load deplibs for dlopen?
16032: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16033: # For now, we just catch OSes we know something about -- in the
16034: # future, we'll try test this programmatically.
16035: lt_cv_sys_dlopen_deplibs=unknown
16036: case $host_os in
16037: aix3*|aix4.1.*|aix4.2.*)
16038: # Unknown whether this is true for these versions of AIX, but
16039: # we want this `case' here to explicitly catch those versions.
16040: lt_cv_sys_dlopen_deplibs=unknown
16041: ;;
16042: aix[4-9]*)
16043: lt_cv_sys_dlopen_deplibs=yes
16044: ;;
16045: amigaos*)
16046: case $host_cpu in
16047: powerpc)
16048: lt_cv_sys_dlopen_deplibs=no
16049: ;;
16050: esac
16051: ;;
16052: darwin*)
16053: # Assuming the user has installed a libdl from somewhere, this is true
16054: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16055: lt_cv_sys_dlopen_deplibs=yes
16056: ;;
16057: freebsd* | dragonfly*)
16058: lt_cv_sys_dlopen_deplibs=yes
16059: ;;
16060: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16061: # GNU and its variants, using gnu ld.so (Glibc)
16062: lt_cv_sys_dlopen_deplibs=yes
16063: ;;
16064: hpux10*|hpux11*)
16065: lt_cv_sys_dlopen_deplibs=yes
16066: ;;
16067: interix*)
16068: lt_cv_sys_dlopen_deplibs=yes
16069: ;;
16070: irix[12345]*|irix6.[01]*)
16071: # Catch all versions of IRIX before 6.2, and indicate that we don't
16072: # know how it worked for any of those versions.
16073: lt_cv_sys_dlopen_deplibs=unknown
16074: ;;
16075: irix*)
16076: # The case above catches anything before 6.2, and it's known that
16077: # at 6.2 and later dlopen does load deplibs.
16078: lt_cv_sys_dlopen_deplibs=yes
16079: ;;
16080: netbsd*)
16081: lt_cv_sys_dlopen_deplibs=yes
16082: ;;
16083: openbsd*)
16084: lt_cv_sys_dlopen_deplibs=yes
16085: ;;
16086: osf[1234]*)
16087: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16088: # it did *not* use an RPATH in a shared library to find objects the
16089: # library depends on, so we explicitly say `no'.
16090: lt_cv_sys_dlopen_deplibs=no
16091: ;;
16092: osf5.0|osf5.0a|osf5.1)
16093: # dlopen *does* load deplibs and with the right loader patch applied
16094: # it even uses RPATH in a shared library to search for shared objects
16095: # that the library depends on, but there's no easy way to know if that
16096: # patch is installed. Since this is the case, all we can really
16097: # say is unknown -- it depends on the patch being installed. If
16098: # it is, this changes to `yes'. Without it, it would be `no'.
16099: lt_cv_sys_dlopen_deplibs=unknown
16100: ;;
16101: osf*)
16102: # the two cases above should catch all versions of osf <= 5.1. Read
16103: # the comments above for what we know about them.
16104: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16105: # is used to find them so we can finally say `yes'.
16106: lt_cv_sys_dlopen_deplibs=yes
16107: ;;
16108: qnx*)
16109: lt_cv_sys_dlopen_deplibs=yes
16110: ;;
16111: solaris*)
16112: lt_cv_sys_dlopen_deplibs=yes
16113: ;;
16114: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16115: libltdl_cv_sys_dlopen_deplibs=yes
16116: ;;
16117: esac
16118:
16119: fi
1.31 moko 16120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16121: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.23 moko 16122: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16123:
1.31 moko 16124: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.23 moko 16125:
16126: fi
16127:
16128: :
16129:
16130: for ac_header in argz.h
1.31 moko 16131: do :
16132: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16133: "
16134: if test "x$ac_cv_header_argz_h" = xyes; then :
1.23 moko 16135: cat >>confdefs.h <<_ACEOF
1.31 moko 16136: #define HAVE_ARGZ_H 1
1.23 moko 16137: _ACEOF
16138:
16139: fi
16140:
16141: done
16142:
16143:
1.31 moko 16144: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16145: # include <argz.h>
1.23 moko 16146: #endif
1.31 moko 16147: "
16148: if test "x$ac_cv_type_error_t" = xyes; then :
1.23 moko 16149:
1.31 moko 16150: cat >>confdefs.h <<_ACEOF
16151: #define HAVE_ERROR_T 1
1.23 moko 16152: _ACEOF
1.31 moko 16153:
16154:
1.23 moko 16155: else
16156:
1.31 moko 16157: $as_echo "#define error_t int" >>confdefs.h
16158:
16159:
16160: $as_echo "#define __error_t_defined 1" >>confdefs.h
16161:
1.23 moko 16162: fi
1.31 moko 16163:
16164:
16165: ARGZ_H=
16166: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16167: argz_next argz_stringify
16168: do :
16169: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16170: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16171: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.23 moko 16172: cat >>confdefs.h <<_ACEOF
1.31 moko 16173: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 moko 16174: _ACEOF
16175:
16176: else
16177: ARGZ_H=argz.h;
16178:
16179: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16180:
16181: fi
16182: done
16183:
16184:
1.31 moko 16185: if test -z "$ARGZ_H"; then :
16186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16187: $as_echo_n "checking if argz actually works... " >&6; }
16188: if ${lt_cv_sys_argz_works+:} false; then :
16189: $as_echo_n "(cached) " >&6
1.23 moko 16190: else
16191: case $host_os in #(
16192: *cygwin*)
16193: lt_cv_sys_argz_works=no
16194: if test "$cross_compiling" != no; then
16195: lt_cv_sys_argz_works="guessing no"
16196: else
16197: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16198: save_IFS=$IFS
16199: IFS=-.
16200: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16201: IFS=$save_IFS
16202: lt_os_major=${2-0}
16203: lt_os_minor=${3-0}
16204: lt_os_micro=${4-0}
16205: if test "$lt_os_major" -gt 1 \
16206: || { test "$lt_os_major" -eq 1 \
16207: && { test "$lt_os_minor" -gt 5 \
16208: || { test "$lt_os_minor" -eq 5 \
16209: && test "$lt_os_micro" -gt 24; }; }; }; then
16210: lt_cv_sys_argz_works=yes
16211: fi
16212: fi
16213: ;; #(
16214: *) lt_cv_sys_argz_works=yes ;;
16215: esac
16216: fi
1.31 moko 16217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16218: $as_echo "$lt_cv_sys_argz_works" >&6; }
16219: if test "$lt_cv_sys_argz_works" = yes; then :
1.23 moko 16220:
1.31 moko 16221: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.23 moko 16222:
16223: else
16224: ARGZ_H=argz.h
16225:
16226:
16227: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16228:
16229: fi
16230: fi
16231:
16232:
16233:
1.31 moko 16234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16235: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16236: if ${libltdl_cv_preloaded_symbols+:} false; then :
16237: $as_echo_n "(cached) " >&6
1.23 moko 16238: else
16239: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16240: libltdl_cv_preloaded_symbols=yes
16241: else
16242: libltdl_cv_preloaded_symbols=no
16243: fi
16244:
16245: fi
1.31 moko 16246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16247: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.23 moko 16248: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16249:
1.31 moko 16250: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.23 moko 16251:
16252: fi
16253:
1.31 moko 16254:
16255:
1.23 moko 16256: # Set options
16257:
16258:
16259:
16260:
16261:
16262:
16263:
16264:
16265:
16266:
16267:
16268:
1.31 moko 16269: # Check whether --with-included_ltdl was given.
16270: if test "${with_included_ltdl+set}" = set; then :
16271: withval=$with_included_ltdl;
16272: fi
1.23 moko 16273:
16274:
16275: if test "x$with_included_ltdl" != xyes; then
16276: # We are not being forced to use the included libltdl sources, so
16277: # decide whether there is a useful installed version we can use.
1.31 moko 16278: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.23 moko 16279:
1.31 moko 16280: "
16281: if test "x$ac_cv_header_ltdl_h" = xyes; then :
16282: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.23 moko 16283: #include <ltdl.h>
1.31 moko 16284: "
16285: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16287: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16288: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16289: $as_echo_n "(cached) " >&6
1.23 moko 16290: else
16291: ac_check_lib_save_LIBS=$LIBS
16292: LIBS="-lltdl $LIBS"
1.31 moko 16293: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 16294: /* end confdefs.h. */
16295:
1.31 moko 16296: /* Override any GCC internal prototype to avoid an error.
16297: Use char because int might match the return type of a GCC
16298: builtin and then its argument prototype would still apply. */
1.23 moko 16299: #ifdef __cplusplus
16300: extern "C"
16301: #endif
16302: char lt_dladvise_preload ();
16303: int
16304: main ()
16305: {
1.31 moko 16306: return lt_dladvise_preload ();
1.23 moko 16307: ;
16308: return 0;
16309: }
16310: _ACEOF
1.31 moko 16311: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 16312: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16313: else
1.31 moko 16314: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.23 moko 16315: fi
1.31 moko 16316: rm -f core conftest.err conftest.$ac_objext \
16317: conftest$ac_exeext conftest.$ac_ext
1.23 moko 16318: LIBS=$ac_check_lib_save_LIBS
16319: fi
1.31 moko 16320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16321: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16322: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.23 moko 16323: with_included_ltdl=no
16324: else
16325: with_included_ltdl=yes
16326: fi
16327:
16328: else
16329: with_included_ltdl=yes
16330: fi
16331:
16332: else
16333: with_included_ltdl=yes
16334: fi
16335:
16336:
16337: fi
16338:
16339:
16340:
16341:
1.31 moko 16342: # Check whether --with-ltdl_include was given.
16343: if test "${with_ltdl_include+set}" = set; then :
16344: withval=$with_ltdl_include;
16345: fi
1.23 moko 16346:
16347:
16348: if test -n "$with_ltdl_include"; then
16349: if test -f "$with_ltdl_include/ltdl.h"; then :
16350: else
1.31 moko 16351: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.23 moko 16352: fi
16353: else
16354: with_ltdl_include=no
16355: fi
16356:
16357:
1.31 moko 16358: # Check whether --with-ltdl_lib was given.
16359: if test "${with_ltdl_lib+set}" = set; then :
16360: withval=$with_ltdl_lib;
16361: fi
1.23 moko 16362:
16363:
16364: if test -n "$with_ltdl_lib"; then
16365: if test -f "$with_ltdl_lib/libltdl.la"; then :
16366: else
1.31 moko 16367: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.23 moko 16368: fi
16369: else
16370: with_ltdl_lib=no
16371: fi
16372:
16373: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16374: ,yes,no,no,)
16375: case $enable_ltdl_convenience in
1.31 moko 16376: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.23 moko 16377: "") enable_ltdl_convenience=yes
16378: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16379: esac
1.31 moko 16380: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.23 moko 16381: LTDLDEPS=$LIBLTDL
16382: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16383:
16384:
16385:
16386:
16387:
16388: # For backwards non-gettext consistent compatibility...
16389: INCLTDL="$LTDLINCL"
16390:
16391:
16392: ;;
16393: ,no,no,no,)
16394: # If the included ltdl is not to be used, then use the
16395: # preinstalled libltdl we found.
16396:
1.31 moko 16397: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.23 moko 16398:
16399: LIBLTDL=-lltdl
16400: LTDLDEPS=
16401: LTDLINCL=
16402: ;;
16403: ,no*,no,*)
1.31 moko 16404: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.23 moko 16405: ;;
16406: *) with_included_ltdl=no
16407: LIBLTDL="-L$with_ltdl_lib -lltdl"
16408: LTDLDEPS=
16409: LTDLINCL="-I$with_ltdl_include"
16410: ;;
16411: esac
16412: INCLTDL="$LTDLINCL"
16413:
16414: # Report our decision...
1.31 moko 16415: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16416: $as_echo_n "checking where to find libltdl headers... " >&6; }
16417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16418: $as_echo "$LTDLINCL" >&6; }
16419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16420: $as_echo_n "checking where to find libltdl library... " >&6; }
16421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16422: $as_echo "$LIBLTDL" >&6; }
1.23 moko 16423:
16424:
16425:
1.31 moko 16426: # Check whether --enable-ltdl-install was given.
16427: if test "${enable_ltdl_install+set}" = set; then :
16428: enableval=$enable_ltdl_install;
16429: fi
1.23 moko 16430:
16431:
16432: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16433: *yes*) ;;
16434: *) enable_ltdl_convenience=yes ;;
16435: esac
16436:
1.31 moko 16437: if test x"${enable_ltdl_install-no}" != xno; then
1.23 moko 16438: INSTALL_LTDL_TRUE=
16439: INSTALL_LTDL_FALSE='#'
16440: else
16441: INSTALL_LTDL_TRUE='#'
16442: INSTALL_LTDL_FALSE=
16443: fi
16444:
1.31 moko 16445: if test x"${enable_ltdl_convenience-no}" != xno; then
1.23 moko 16446: CONVENIENCE_LTDL_TRUE=
16447: CONVENIENCE_LTDL_FALSE='#'
16448: else
16449: CONVENIENCE_LTDL_TRUE='#'
16450: CONVENIENCE_LTDL_FALSE=
16451: fi
16452:
16453:
16454:
1.31 moko 16455: subdirs="$subdirs libltdl"
1.23 moko 16456:
16457:
16458:
16459:
16460: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16461: # the user used. This is so that ltdl.h can pick up the parent projects
16462: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16463: # definitions required by ltdl.c.
16464: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16465:
16466:
16467:
16468: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
1.31 moko 16469: do :
16470: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16471: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16472: "
16473: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.23 moko 16474: cat >>confdefs.h <<_ACEOF
1.31 moko 16475: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 moko 16476: _ACEOF
16477:
16478: fi
16479:
16480: done
16481:
16482:
16483: for ac_func in closedir opendir readdir
1.31 moko 16484: do :
16485: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16486: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16487: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.23 moko 16488: cat >>confdefs.h <<_ACEOF
1.31 moko 16489: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 moko 16490: _ACEOF
16491:
16492: else
16493:
16494:
16495: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16496:
16497: fi
16498: done
16499:
16500: for ac_func in strlcat strlcpy
1.31 moko 16501: do :
16502: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16503: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16504: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.23 moko 16505: cat >>confdefs.h <<_ACEOF
1.31 moko 16506: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 moko 16507: _ACEOF
16508:
16509: else
16510:
16511:
16512: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16513:
16514: fi
16515: done
16516:
16517:
16518:
16519: cat >>confdefs.h <<_ACEOF
16520: #define LT_LIBEXT "$libext"
16521: _ACEOF
16522:
16523:
16524: name=
16525: eval "lt_libprefix=\"$libname_spec\""
16526:
16527: cat >>confdefs.h <<_ACEOF
16528: #define LT_LIBPREFIX "$lt_libprefix"
16529: _ACEOF
16530:
16531:
16532: name=ltdl
16533: eval "LTDLOPEN=\"$libname_spec\""
16534:
16535:
16536:
16537:
16538:
16539:
16540:
16541:
16542: # Only expand once:
16543:
16544:
16545:
16546:
1.31 moko 16547: for ac_header in stdio.h \
16548: stdlib.h \
16549: string.h \
16550: setjmp.h \
16551: ctype.h
1.23 moko 16552:
1.31 moko 16553: do :
16554: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16555: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16556: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.23 moko 16557: cat >>confdefs.h <<_ACEOF
1.31 moko 16558: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 moko 16559: _ACEOF
16560:
16561: fi
16562:
16563: done
16564:
16565:
1.31 moko 16566: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16567: if test "x$ac_cv_type_size_t" = xyes; then :
1.23 moko 16568:
16569: else
16570:
16571: cat >>confdefs.h <<_ACEOF
1.31 moko 16572: #define size_t unsigned int
1.23 moko 16573: _ACEOF
16574:
16575: fi
16576:
16577:
16578:
1.31 moko 16579: ac_config_files="$ac_config_files Makefile"
16580:
1.23 moko 16581: cat >confcache <<\_ACEOF
16582: # This file is a shell script that caches the results of configure
16583: # tests run on this system so they can be shared between configure
16584: # scripts and configure runs, see configure's option --config-cache.
16585: # It is not useful on other systems. If it contains results you don't
16586: # want to keep, you may remove or edit it.
16587: #
16588: # config.status only pays attention to the cache file if you give it
16589: # the --recheck option to rerun configure.
16590: #
16591: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16592: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16593: # following values.
16594:
16595: _ACEOF
16596:
16597: # The following way of writing the cache mishandles newlines in values,
16598: # but we know of no workaround that is simple, portable, and efficient.
1.31 moko 16599: # So, we kill variables containing newlines.
1.23 moko 16600: # Ultrix sh set writes to stderr and can't be redirected directly,
16601: # and sets the high bit in the cache file unless we assign to the vars.
1.31 moko 16602: (
16603: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16604: eval ac_val=\$$ac_var
16605: case $ac_val in #(
16606: *${as_nl}*)
16607: case $ac_var in #(
16608: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16609: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16610: esac
16611: case $ac_var in #(
16612: _ | IFS | as_nl) ;; #(
16613: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16614: *) { eval $ac_var=; unset $ac_var;} ;;
16615: esac ;;
16616: esac
16617: done
16618:
1.23 moko 16619: (set) 2>&1 |
1.31 moko 16620: case $as_nl`(ac_space=' '; set) 2>&1` in #(
16621: *${as_nl}ac_space=\ *)
16622: # `set' does not quote correctly, so add quotes: double-quote
16623: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.23 moko 16624: sed -n \
16625: "s/'/'\\\\''/g;
16626: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.31 moko 16627: ;; #(
1.23 moko 16628: *)
16629: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.31 moko 16630: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.23 moko 16631: ;;
1.31 moko 16632: esac |
16633: sort
16634: ) |
1.23 moko 16635: sed '
1.31 moko 16636: /^ac_cv_env_/b end
1.23 moko 16637: t clear
1.31 moko 16638: :clear
1.23 moko 16639: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16640: t end
1.31 moko 16641: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16642: :end' >>confcache
16643: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16644: if test -w "$cache_file"; then
16645: if test "x$cache_file" != "x/dev/null"; then
16646: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16647: $as_echo "$as_me: updating cache $cache_file" >&6;}
16648: if test ! -f "$cache_file" || test -h "$cache_file"; then
16649: cat confcache >"$cache_file"
16650: else
16651: case $cache_file in #(
16652: */* | ?:*)
16653: mv -f confcache "$cache_file"$$ &&
16654: mv -f "$cache_file"$$ "$cache_file" ;; #(
16655: *)
16656: mv -f confcache "$cache_file" ;;
16657: esac
16658: fi
16659: fi
1.23 moko 16660: else
1.31 moko 16661: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16662: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.23 moko 16663: fi
16664: fi
16665: rm -f confcache
16666:
16667: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16668: # Let make expand exec_prefix.
16669: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16670:
16671: DEFS=-DHAVE_CONFIG_H
16672:
16673: ac_libobjs=
16674: ac_ltlibobjs=
1.31 moko 16675: U=
1.23 moko 16676: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16677: # 1. Remove the extension, and $U if already installed.
1.31 moko 16678: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16679: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16680: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16681: # will be set to the directory where LIBOBJS objects are built.
16682: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16683: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.23 moko 16684: done
16685: LIBOBJS=$ac_libobjs
16686:
16687: LTLIBOBJS=$ac_ltlibobjs
16688:
16689:
1.31 moko 16690: if test -n "$EXEEXT"; then
16691: am__EXEEXT_TRUE=
16692: am__EXEEXT_FALSE='#'
16693: else
16694: am__EXEEXT_TRUE='#'
16695: am__EXEEXT_FALSE=
16696: fi
16697:
1.23 moko 16698: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.31 moko 16699: as_fn_error $? "conditional \"AMDEP\" was never defined.
16700: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16701: fi
16702: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.31 moko 16703: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16704: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16705: fi
16706: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.31 moko 16707: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16708: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16709: fi
16710: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.31 moko 16711: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16712: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16713: fi
16714: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.31 moko 16715: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16716: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16717: fi
1.31 moko 16718: LT_CONFIG_H=config_auto.h
1.23 moko 16719:
16720: _ltdl_libobjs=
16721: _ltdl_ltlibobjs=
16722: if test -n "$_LT_LIBOBJS"; then
16723: # Remove the extension.
16724: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16725: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16726: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16727: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16728: done
16729: fi
16730: ltdl_LIBOBJS=$_ltdl_libobjs
16731:
16732: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16733:
16734:
16735:
1.31 moko 16736: : "${CONFIG_STATUS=./config.status}"
16737: ac_write_fail=0
1.23 moko 16738: ac_clean_files_save=$ac_clean_files
16739: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.31 moko 16740: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16741: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16742: as_write_fail=0
16743: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.23 moko 16744: #! $SHELL
16745: # Generated by $as_me.
16746: # Run this file to recreate the current configuration.
16747: # Compiler output produced by configure, useful for debugging
16748: # configure, is in config.log if it exists.
16749:
16750: debug=false
16751: ac_cs_recheck=false
16752: ac_cs_silent=false
1.31 moko 16753:
1.23 moko 16754: SHELL=\${CONFIG_SHELL-$SHELL}
1.31 moko 16755: export SHELL
16756: _ASEOF
16757: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16758: ## -------------------- ##
16759: ## M4sh Initialization. ##
16760: ## -------------------- ##
1.23 moko 16761:
1.31 moko 16762: # Be more Bourne compatible
16763: DUALCASE=1; export DUALCASE # for MKS sh
16764: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.23 moko 16765: emulate sh
16766: NULLCMD=:
1.31 moko 16767: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.23 moko 16768: # is contrary to our usage. Disable this feature.
16769: alias -g '${1+"$@"}'='"$@"'
1.31 moko 16770: setopt NO_GLOB_SUBST
16771: else
16772: case `(set -o) 2>/dev/null` in #(
16773: *posix*) :
16774: set -o posix ;; #(
16775: *) :
16776: ;;
16777: esac
16778: fi
16779:
16780:
16781: as_nl='
16782: '
16783: export as_nl
16784: # Printing a long string crashes Solaris 7 /usr/bin/printf.
16785: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16786: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16787: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16788: # Prefer a ksh shell builtin over an external printf program on Solaris,
16789: # but without wasting forks for bash or zsh.
16790: if test -z "$BASH_VERSION$ZSH_VERSION" \
16791: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16792: as_echo='print -r --'
16793: as_echo_n='print -rn --'
16794: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16795: as_echo='printf %s\n'
16796: as_echo_n='printf %s'
16797: else
16798: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16799: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16800: as_echo_n='/usr/ucb/echo -n'
16801: else
16802: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16803: as_echo_n_body='eval
16804: arg=$1;
16805: case $arg in #(
16806: *"$as_nl"*)
16807: expr "X$arg" : "X\\(.*\\)$as_nl";
16808: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16809: esac;
16810: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16811: '
16812: export as_echo_n_body
16813: as_echo_n='sh -c $as_echo_n_body as_echo'
16814: fi
16815: export as_echo_body
16816: as_echo='sh -c $as_echo_body as_echo'
1.23 moko 16817: fi
16818:
1.31 moko 16819: # The user is always right.
16820: if test "${PATH_SEPARATOR+set}" != set; then
16821: PATH_SEPARATOR=:
16822: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16823: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16824: PATH_SEPARATOR=';'
16825: }
1.23 moko 16826: fi
16827:
16828:
1.31 moko 16829: # IFS
16830: # We need space, tab and new line, in precisely that order. Quoting is
16831: # there to prevent editors from complaining about space-tab.
16832: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16833: # splitting by setting IFS to empty value.)
16834: IFS=" "" $as_nl"
16835:
16836: # Find who we are. Look in the path if we contain no directory separator.
16837: as_myself=
16838: case $0 in #((
16839: *[\\/]* ) as_myself=$0 ;;
16840: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16841: for as_dir in $PATH
16842: do
16843: IFS=$as_save_IFS
16844: test -z "$as_dir" && as_dir=.
16845: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16846: done
16847: IFS=$as_save_IFS
16848:
16849: ;;
16850: esac
16851: # We did not find ourselves, most probably we were run as `sh COMMAND'
16852: # in which case we are not to be found in the path.
16853: if test "x$as_myself" = x; then
16854: as_myself=$0
16855: fi
16856: if test ! -f "$as_myself"; then
16857: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16858: exit 1
16859: fi
16860:
16861: # Unset variables that we do not need and which cause bugs (e.g. in
16862: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16863: # suppresses any "Segmentation fault" message there. '((' could
16864: # trigger a bug in pdksh 5.2.14.
16865: for as_var in BASH_ENV ENV MAIL MAILPATH
16866: do eval test x\${$as_var+set} = xset \
16867: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16868: done
1.23 moko 16869: PS1='$ '
16870: PS2='> '
16871: PS4='+ '
16872:
16873: # NLS nuisances.
1.31 moko 16874: LC_ALL=C
16875: export LC_ALL
16876: LANGUAGE=C
16877: export LANGUAGE
16878:
16879: # CDPATH.
16880: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16881:
16882:
16883: # as_fn_error STATUS ERROR [LINENO LOG_FD]
16884: # ----------------------------------------
16885: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16886: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16887: # script with STATUS, using 1 if that was 0.
16888: as_fn_error ()
16889: {
16890: as_status=$1; test $as_status -eq 0 && as_status=1
16891: if test "$4"; then
16892: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16893: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16894: fi
16895: $as_echo "$as_me: error: $2" >&2
16896: as_fn_exit $as_status
16897: } # as_fn_error
16898:
16899:
16900: # as_fn_set_status STATUS
16901: # -----------------------
16902: # Set $? to STATUS, without forking.
16903: as_fn_set_status ()
16904: {
16905: return $1
16906: } # as_fn_set_status
16907:
16908: # as_fn_exit STATUS
16909: # -----------------
16910: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16911: as_fn_exit ()
16912: {
16913: set +e
16914: as_fn_set_status $1
16915: exit $1
16916: } # as_fn_exit
16917:
16918: # as_fn_unset VAR
16919: # ---------------
16920: # Portably unset VAR.
16921: as_fn_unset ()
16922: {
16923: { eval $1=; unset $1;}
16924: }
16925: as_unset=as_fn_unset
16926: # as_fn_append VAR VALUE
16927: # ----------------------
16928: # Append the text in VALUE to the end of the definition contained in VAR. Take
16929: # advantage of any shell optimizations that allow amortized linear growth over
16930: # repeated appends, instead of the typical quadratic growth present in naive
16931: # implementations.
16932: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16933: eval 'as_fn_append ()
16934: {
16935: eval $1+=\$2
16936: }'
16937: else
16938: as_fn_append ()
16939: {
16940: eval $1=\$$1\$2
16941: }
16942: fi # as_fn_append
16943:
16944: # as_fn_arith ARG...
16945: # ------------------
16946: # Perform arithmetic evaluation on the ARGs, and store the result in the
16947: # global $as_val. Take advantage of shells that can avoid forks. The arguments
16948: # must be portable across $(()) and expr.
16949: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16950: eval 'as_fn_arith ()
16951: {
16952: as_val=$(( $* ))
16953: }'
16954: else
16955: as_fn_arith ()
16956: {
16957: as_val=`expr "$@" || test $? -eq 1`
16958: }
16959: fi # as_fn_arith
16960:
1.23 moko 16961:
1.31 moko 16962: if expr a : '\(a\)' >/dev/null 2>&1 &&
16963: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.23 moko 16964: as_expr=expr
16965: else
16966: as_expr=false
16967: fi
16968:
1.31 moko 16969: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.23 moko 16970: as_basename=basename
16971: else
16972: as_basename=false
16973: fi
16974:
1.31 moko 16975: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16976: as_dirname=dirname
16977: else
16978: as_dirname=false
16979: fi
1.23 moko 16980:
1.31 moko 16981: as_me=`$as_basename -- "$0" ||
1.23 moko 16982: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16983: X"$0" : 'X\(//\)$' \| \
1.31 moko 16984: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16985: $as_echo X/"$0" |
16986: sed '/^.*\/\([^/][^/]*\)\/*$/{
16987: s//\1/
16988: q
16989: }
16990: /^X\/\(\/\/\)$/{
16991: s//\1/
16992: q
16993: }
16994: /^X\/\(\/\).*/{
16995: s//\1/
16996: q
16997: }
16998: s/.*/./; q'`
1.23 moko 16999:
17000: # Avoid depending upon Character Ranges.
17001: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17002: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17003: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17004: as_cr_digits='0123456789'
17005: as_cr_alnum=$as_cr_Letters$as_cr_digits
17006:
1.31 moko 17007: ECHO_C= ECHO_N= ECHO_T=
17008: case `echo -n x` in #(((((
17009: -n*)
17010: case `echo 'xy\c'` in
17011: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17012: xy) ECHO_C='\c';;
17013: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17014: ECHO_T=' ';;
17015: esac;;
17016: *)
17017: ECHO_N='-n';;
1.23 moko 17018: esac
17019:
1.31 moko 17020: rm -f conf$$ conf$$.exe conf$$.file
17021: if test -d conf$$.dir; then
17022: rm -f conf$$.dir/conf$$.file
1.23 moko 17023: else
1.31 moko 17024: rm -f conf$$.dir
17025: mkdir conf$$.dir 2>/dev/null
1.23 moko 17026: fi
1.31 moko 17027: if (echo >conf$$.file) 2>/dev/null; then
17028: if ln -s conf$$.file conf$$ 2>/dev/null; then
17029: as_ln_s='ln -s'
17030: # ... but there are two gotchas:
17031: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17032: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.34 moko 17033: # In both cases, we have to default to `cp -pR'.
1.31 moko 17034: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.34 moko 17035: as_ln_s='cp -pR'
1.31 moko 17036: elif ln conf$$.file conf$$ 2>/dev/null; then
17037: as_ln_s=ln
17038: else
1.34 moko 17039: as_ln_s='cp -pR'
1.23 moko 17040: fi
17041: else
1.34 moko 17042: as_ln_s='cp -pR'
1.23 moko 17043: fi
1.31 moko 17044: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17045: rmdir conf$$.dir 2>/dev/null
17046:
17047:
17048: # as_fn_mkdir_p
17049: # -------------
17050: # Create "$as_dir" as a directory, including parents if necessary.
17051: as_fn_mkdir_p ()
17052: {
17053:
17054: case $as_dir in #(
17055: -*) as_dir=./$as_dir;;
17056: esac
17057: test -d "$as_dir" || eval $as_mkdir_p || {
17058: as_dirs=
17059: while :; do
17060: case $as_dir in #(
17061: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17062: *) as_qdir=$as_dir;;
17063: esac
17064: as_dirs="'$as_qdir' $as_dirs"
17065: as_dir=`$as_dirname -- "$as_dir" ||
17066: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17067: X"$as_dir" : 'X\(//\)[^/]' \| \
17068: X"$as_dir" : 'X\(//\)$' \| \
17069: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17070: $as_echo X"$as_dir" |
17071: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17072: s//\1/
17073: q
17074: }
17075: /^X\(\/\/\)[^/].*/{
17076: s//\1/
17077: q
17078: }
17079: /^X\(\/\/\)$/{
17080: s//\1/
17081: q
17082: }
17083: /^X\(\/\).*/{
17084: s//\1/
17085: q
17086: }
17087: s/.*/./; q'`
17088: test -d "$as_dir" && break
17089: done
17090: test -z "$as_dirs" || eval "mkdir $as_dirs"
17091: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17092:
1.23 moko 17093:
1.31 moko 17094: } # as_fn_mkdir_p
1.23 moko 17095: if mkdir -p . 2>/dev/null; then
1.31 moko 17096: as_mkdir_p='mkdir -p "$as_dir"'
1.23 moko 17097: else
17098: test -d ./-p && rmdir ./-p
17099: as_mkdir_p=false
17100: fi
17101:
1.34 moko 17102:
17103: # as_fn_executable_p FILE
17104: # -----------------------
17105: # Test if FILE is an executable regular file.
17106: as_fn_executable_p ()
17107: {
17108: test -f "$1" && test -x "$1"
17109: } # as_fn_executable_p
17110: as_test_x='test -x'
17111: as_executable_p=as_fn_executable_p
1.23 moko 17112:
17113: # Sed expression to map a string onto a valid CPP name.
17114: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17115:
17116: # Sed expression to map a string onto a valid variable name.
17117: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17118:
17119:
17120: exec 6>&1
1.31 moko 17121: ## ----------------------------------- ##
17122: ## Main body of $CONFIG_STATUS script. ##
17123: ## ----------------------------------- ##
17124: _ASEOF
17125: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.23 moko 17126:
1.31 moko 17127: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17128: # Save the log message, to keep $0 and so on meaningful, and to
1.23 moko 17129: # report actual input values of CONFIG_FILES etc. instead of their
1.31 moko 17130: # values after options handling.
17131: ac_log="
1.43 ! moko 17132: This file was extended by parser3pgsql $as_me 10.7, which was
1.34 moko 17133: generated by GNU Autoconf 2.69. Invocation command line was
1.23 moko 17134:
17135: CONFIG_FILES = $CONFIG_FILES
17136: CONFIG_HEADERS = $CONFIG_HEADERS
17137: CONFIG_LINKS = $CONFIG_LINKS
17138: CONFIG_COMMANDS = $CONFIG_COMMANDS
17139: $ $0 $@
17140:
1.31 moko 17141: on `(hostname || uname -n) 2>/dev/null | sed 1q`
17142: "
17143:
1.23 moko 17144: _ACEOF
17145:
1.31 moko 17146: case $ac_config_files in *"
17147: "*) set x $ac_config_files; shift; ac_config_files=$*;;
17148: esac
1.23 moko 17149:
1.31 moko 17150: case $ac_config_headers in *"
17151: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17152: esac
1.23 moko 17153:
17154:
1.31 moko 17155: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17156: # Files that config.status was made for.
17157: config_files="$ac_config_files"
17158: config_headers="$ac_config_headers"
17159: config_commands="$ac_config_commands"
1.23 moko 17160:
1.31 moko 17161: _ACEOF
1.23 moko 17162:
1.31 moko 17163: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.23 moko 17164: ac_cs_usage="\
1.31 moko 17165: \`$as_me' instantiates files and other configuration actions
17166: from templates according to the current configuration. Unless the files
17167: and actions are specified as TAGs, all are instantiated by default.
1.23 moko 17168:
1.31 moko 17169: Usage: $0 [OPTION]... [TAG]...
1.23 moko 17170:
17171: -h, --help print this help, then exit
1.31 moko 17172: -V, --version print version number and configuration settings, then exit
17173: --config print configuration, then exit
17174: -q, --quiet, --silent
17175: do not print progress messages
1.23 moko 17176: -d, --debug don't remove temporary files
17177: --recheck update $as_me by reconfiguring in the same conditions
1.31 moko 17178: --file=FILE[:TEMPLATE]
17179: instantiate the configuration file FILE
17180: --header=FILE[:TEMPLATE]
17181: instantiate the configuration header FILE
1.23 moko 17182:
17183: Configuration files:
17184: $config_files
17185:
17186: Configuration headers:
17187: $config_headers
17188:
17189: Configuration commands:
17190: $config_commands
17191:
1.31 moko 17192: Report bugs to the package provider."
17193:
1.23 moko 17194: _ACEOF
1.31 moko 17195: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17196: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.23 moko 17197: ac_cs_version="\\
1.43 ! moko 17198: parser3pgsql config.status 10.7
1.34 moko 17199: configured by $0, generated by GNU Autoconf 2.69,
1.31 moko 17200: with options \\"\$ac_cs_config\\"
1.23 moko 17201:
1.34 moko 17202: Copyright (C) 2012 Free Software Foundation, Inc.
1.23 moko 17203: This config.status script is free software; the Free Software Foundation
17204: gives unlimited permission to copy, distribute and modify it."
1.31 moko 17205:
17206: ac_pwd='$ac_pwd'
17207: srcdir='$srcdir'
17208: INSTALL='$INSTALL'
17209: MKDIR_P='$MKDIR_P'
17210: AWK='$AWK'
17211: test -n "\$AWK" || AWK=awk
1.23 moko 17212: _ACEOF
17213:
1.31 moko 17214: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17215: # The default lists apply if the user does not specify any file.
1.23 moko 17216: ac_need_defaults=:
17217: while test $# != 0
17218: do
17219: case $1 in
1.31 moko 17220: --*=?*)
17221: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17222: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17223: ac_shift=:
17224: ;;
17225: --*=)
17226: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17227: ac_optarg=
1.23 moko 17228: ac_shift=:
17229: ;;
1.31 moko 17230: *)
1.23 moko 17231: ac_option=$1
17232: ac_optarg=$2
17233: ac_shift=shift
17234: ;;
17235: esac
17236:
17237: case $ac_option in
17238: # Handling of the options.
17239: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17240: ac_cs_recheck=: ;;
1.31 moko 17241: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17242: $as_echo "$ac_cs_version"; exit ;;
17243: --config | --confi | --conf | --con | --co | --c )
17244: $as_echo "$ac_cs_config"; exit ;;
17245: --debug | --debu | --deb | --de | --d | -d )
1.23 moko 17246: debug=: ;;
17247: --file | --fil | --fi | --f )
17248: $ac_shift
1.31 moko 17249: case $ac_optarg in
17250: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17251: '') as_fn_error $? "missing file argument" ;;
17252: esac
17253: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.23 moko 17254: ac_need_defaults=false;;
17255: --header | --heade | --head | --hea )
17256: $ac_shift
1.31 moko 17257: case $ac_optarg in
17258: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17259: esac
17260: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.23 moko 17261: ac_need_defaults=false;;
1.31 moko 17262: --he | --h)
17263: # Conflict between --help and --header
17264: as_fn_error $? "ambiguous option: \`$1'
17265: Try \`$0 --help' for more information.";;
17266: --help | --hel | -h )
17267: $as_echo "$ac_cs_usage"; exit ;;
1.23 moko 17268: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17269: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17270: ac_cs_silent=: ;;
17271:
17272: # This is an error.
1.31 moko 17273: -*) as_fn_error $? "unrecognized option: \`$1'
17274: Try \`$0 --help' for more information." ;;
1.23 moko 17275:
1.31 moko 17276: *) as_fn_append ac_config_targets " $1"
17277: ac_need_defaults=false ;;
1.23 moko 17278:
17279: esac
17280: shift
17281: done
17282:
17283: ac_configure_extra_args=
17284:
17285: if $ac_cs_silent; then
17286: exec 6>/dev/null
17287: ac_configure_extra_args="$ac_configure_extra_args --silent"
17288: fi
17289:
17290: _ACEOF
1.31 moko 17291: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.23 moko 17292: if \$ac_cs_recheck; then
1.34 moko 17293: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.31 moko 17294: shift
17295: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17296: CONFIG_SHELL='$SHELL'
17297: export CONFIG_SHELL
17298: exec "\$@"
1.23 moko 17299: fi
17300:
17301: _ACEOF
1.31 moko 17302: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17303: exec 5>>config.log
17304: {
17305: echo
17306: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17307: ## Running $as_me. ##
17308: _ASBOX
17309: $as_echo "$ac_log"
17310: } >&5
17311:
17312: _ACEOF
17313: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.23 moko 17314: #
1.31 moko 17315: # INIT-COMMANDS
1.23 moko 17316: #
17317: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17318:
17319:
17320: # The HP-UX ksh and POSIX shell print the target directory to stdout
17321: # if CDPATH is set.
17322: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17323:
17324: sed_quote_subst='$sed_quote_subst'
17325: double_quote_subst='$double_quote_subst'
17326: delay_variable_subst='$delay_variable_subst'
17327: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17328: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.30 moko 17329: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.23 moko 17330: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17331: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17332: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17333: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17334: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17335: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17336: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17337: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17338: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17339: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17340: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17341: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17342: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17343: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17344: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17345: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17346: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17347: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17348: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17349: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17350: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17351: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17352: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17353: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17354: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17355: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17356: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17357: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17358: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17359: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17360: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17361: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17362: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17363: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17364: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17365: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17366: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17367: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17368: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17369: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17370: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17371: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17372: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17373: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17374: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17375: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17376: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17377: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17378: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17379: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17380: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17381: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17382: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17383: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17384: 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"`'
17385: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17386: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17387: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17388: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17389: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17390: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17391: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17392: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17393: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17394: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17395: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17396: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17397: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17398: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17399: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17400: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17401: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17402: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17403: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17404: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17405: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17406: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17407: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17408: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17409: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17410: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17411: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17412: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17413: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17414: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17415: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17416: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17417: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17418: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17419: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17420: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17421: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17422: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17423: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17424: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17425: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17426: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17427: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17428: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17429: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17430: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17431: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17432: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17433: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17434: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17435: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17436: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17437: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17438: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17439: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17440: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17441: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17442: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17443: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17444: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17445: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17446: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17447: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17448: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17449: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17450: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17451: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17452: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17453: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17454: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17455: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17456: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17457: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17458: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17459: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17460: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17461: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17462: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17463: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17464: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17465: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17466: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17467: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17468: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17469: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17470: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17471: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17472: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17473: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17474: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17475: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17476: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17477: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17478: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17479: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17480: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17481: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17482: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17483: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17484: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17485: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17486: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17487: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17488: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17489: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17490: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17491: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17492: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17493: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17494: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17495: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17496: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17497: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17498: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17499: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17500: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17501: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17502: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17503: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17504: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17505: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17506: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17507: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17508: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17509: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17510: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17511: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17512:
17513: LTCC='$LTCC'
17514: LTCFLAGS='$LTCFLAGS'
17515: compiler='$compiler_DEFAULT'
17516:
17517: # A function that is used when there is no print builtin or printf.
17518: func_fallback_echo ()
17519: {
17520: eval 'cat <<_LTECHO_EOF
17521: \$1
17522: _LTECHO_EOF'
17523: }
17524:
17525: # Quote evaled strings.
17526: for var in AS \
17527: DLLTOOL \
17528: OBJDUMP \
17529: SHELL \
17530: ECHO \
17531: PATH_SEPARATOR \
17532: SED \
17533: GREP \
17534: EGREP \
17535: FGREP \
17536: LD \
17537: NM \
17538: LN_S \
17539: lt_SP2NL \
17540: lt_NL2SP \
17541: reload_flag \
17542: deplibs_check_method \
17543: file_magic_cmd \
17544: file_magic_glob \
17545: want_nocaseglob \
17546: sharedlib_from_linklib_cmd \
17547: AR \
17548: AR_FLAGS \
17549: archiver_list_spec \
17550: STRIP \
17551: RANLIB \
17552: CC \
17553: CFLAGS \
17554: compiler \
17555: lt_cv_sys_global_symbol_pipe \
17556: lt_cv_sys_global_symbol_to_cdecl \
17557: lt_cv_sys_global_symbol_to_c_name_address \
17558: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17559: nm_file_list_spec \
17560: lt_prog_compiler_no_builtin_flag \
17561: lt_prog_compiler_pic \
17562: lt_prog_compiler_wl \
17563: lt_prog_compiler_static \
17564: lt_cv_prog_compiler_c_o \
17565: need_locks \
17566: MANIFEST_TOOL \
17567: DSYMUTIL \
17568: NMEDIT \
17569: LIPO \
17570: OTOOL \
17571: OTOOL64 \
17572: shrext_cmds \
17573: export_dynamic_flag_spec \
17574: whole_archive_flag_spec \
17575: compiler_needs_object \
17576: with_gnu_ld \
17577: allow_undefined_flag \
17578: no_undefined_flag \
17579: hardcode_libdir_flag_spec \
17580: hardcode_libdir_separator \
17581: exclude_expsyms \
17582: include_expsyms \
17583: file_list_spec \
17584: variables_saved_for_relink \
17585: libname_spec \
17586: library_names_spec \
17587: soname_spec \
17588: install_override_mode \
17589: finish_eval \
17590: old_striplib \
17591: striplib \
17592: compiler_lib_search_dirs \
17593: predep_objects \
17594: postdep_objects \
17595: predeps \
17596: postdeps \
17597: compiler_lib_search_path \
17598: LD_CXX \
17599: reload_flag_CXX \
17600: compiler_CXX \
17601: lt_prog_compiler_no_builtin_flag_CXX \
17602: lt_prog_compiler_pic_CXX \
17603: lt_prog_compiler_wl_CXX \
17604: lt_prog_compiler_static_CXX \
17605: lt_cv_prog_compiler_c_o_CXX \
17606: export_dynamic_flag_spec_CXX \
17607: whole_archive_flag_spec_CXX \
17608: compiler_needs_object_CXX \
17609: with_gnu_ld_CXX \
17610: allow_undefined_flag_CXX \
17611: no_undefined_flag_CXX \
17612: hardcode_libdir_flag_spec_CXX \
17613: hardcode_libdir_separator_CXX \
17614: exclude_expsyms_CXX \
17615: include_expsyms_CXX \
17616: file_list_spec_CXX \
17617: compiler_lib_search_dirs_CXX \
17618: predep_objects_CXX \
17619: postdep_objects_CXX \
17620: predeps_CXX \
17621: postdeps_CXX \
17622: compiler_lib_search_path_CXX; do
17623: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17624: *[\\\\\\\`\\"\\\$]*)
17625: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17626: ;;
17627: *)
17628: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17629: ;;
17630: esac
17631: done
17632:
17633: # Double-quote double-evaled strings.
17634: for var in reload_cmds \
17635: old_postinstall_cmds \
17636: old_postuninstall_cmds \
17637: old_archive_cmds \
17638: extract_expsyms_cmds \
17639: old_archive_from_new_cmds \
17640: old_archive_from_expsyms_cmds \
17641: archive_cmds \
17642: archive_expsym_cmds \
17643: module_cmds \
17644: module_expsym_cmds \
17645: export_symbols_cmds \
17646: prelink_cmds \
17647: postlink_cmds \
17648: postinstall_cmds \
17649: postuninstall_cmds \
17650: finish_cmds \
17651: sys_lib_search_path_spec \
17652: sys_lib_dlsearch_path_spec \
17653: reload_cmds_CXX \
17654: old_archive_cmds_CXX \
17655: old_archive_from_new_cmds_CXX \
17656: old_archive_from_expsyms_cmds_CXX \
17657: archive_cmds_CXX \
17658: archive_expsym_cmds_CXX \
17659: module_cmds_CXX \
17660: module_expsym_cmds_CXX \
17661: export_symbols_cmds_CXX \
17662: prelink_cmds_CXX \
17663: postlink_cmds_CXX; do
17664: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17665: *[\\\\\\\`\\"\\\$]*)
17666: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17667: ;;
17668: *)
17669: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17670: ;;
17671: esac
17672: done
17673:
17674: ac_aux_dir='$ac_aux_dir'
17675: xsi_shell='$xsi_shell'
17676: lt_shell_append='$lt_shell_append'
17677:
17678: # See if we are running on zsh, and set the options which allow our
17679: # commands through without removal of \ escapes INIT.
17680: if test -n "\${ZSH_VERSION+set}" ; then
17681: setopt NO_GLOB_SUBST
17682: fi
17683:
17684:
17685: PACKAGE='$PACKAGE'
17686: VERSION='$VERSION'
17687: TIMESTAMP='$TIMESTAMP'
17688: RM='$RM'
17689: ofile='$ofile'
17690:
17691:
17692:
17693:
17694:
17695:
17696: _ACEOF
17697:
1.31 moko 17698: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.23 moko 17699:
1.31 moko 17700: # Handling of arguments.
1.23 moko 17701: for ac_config_target in $ac_config_targets
17702: do
1.31 moko 17703: case $ac_config_target in
17704: "config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
17705: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17706: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17707: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17708:
17709: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.23 moko 17710: esac
17711: done
17712:
1.31 moko 17713:
1.23 moko 17714: # If the user did not use the arguments to specify the items to instantiate,
17715: # then the envvar interface is used. Set only those that are not.
17716: # We use the long form for the default assignment because of an extremely
17717: # bizarre bug on SunOS 4.1.3.
17718: if $ac_need_defaults; then
17719: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17720: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17721: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17722: fi
17723:
17724: # Have a temporary directory for convenience. Make it in the build tree
1.31 moko 17725: # simply because there is no reason against having it here, and in addition,
1.23 moko 17726: # creating and moving files from /tmp can sometimes cause problems.
1.31 moko 17727: # Hook for its removal unless debugging.
17728: # Note that there is a small window in which the directory will not be cleaned:
17729: # after its creation but before its name has been assigned to `$tmp'.
1.23 moko 17730: $debug ||
17731: {
1.31 moko 17732: tmp= ac_tmp=
17733: trap 'exit_status=$?
17734: : "${ac_tmp:=$tmp}"
17735: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17736: ' 0
17737: trap 'as_fn_exit 1' 1 2 13 15
1.23 moko 17738: }
17739: # Create a (secure) tmp directory for tmp files.
17740:
17741: {
1.31 moko 17742: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17743: test -d "$tmp"
1.23 moko 17744: } ||
17745: {
1.31 moko 17746: tmp=./conf$$-$RANDOM
17747: (umask 077 && mkdir "$tmp")
17748: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17749: ac_tmp=$tmp
17750:
17751: # Set up the scripts for CONFIG_FILES section.
17752: # No need to generate them if there are no CONFIG_FILES.
17753: # This happens for instance with `./config.status config.h'.
17754: if test -n "$CONFIG_FILES"; then
17755:
17756:
17757: ac_cr=`echo X | tr X '\015'`
17758: # On cygwin, bash can eat \r inside `` if the user requested igncr.
17759: # But we know of no other shell where ac_cr would be empty at this
17760: # point, so we can use a bashism as a fallback.
17761: if test "x$ac_cr" = x; then
17762: eval ac_cr=\$\'\\r\'
17763: fi
17764: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17765: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17766: ac_cs_awk_cr='\\r'
17767: else
17768: ac_cs_awk_cr=$ac_cr
17769: fi
17770:
17771: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17772: _ACEOF
17773:
17774:
17775: {
17776: echo "cat >conf$$subs.awk <<_ACEOF" &&
17777: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17778: echo "_ACEOF"
17779: } >conf$$subs.sh ||
17780: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17781: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17782: ac_delim='%!_!# '
17783: for ac_last_try in false false false false false :; do
17784: . ./conf$$subs.sh ||
17785: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17786:
17787: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17788: if test $ac_delim_n = $ac_delim_num; then
17789: break
17790: elif $ac_last_try; then
17791: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17792: else
17793: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17794: fi
17795: done
17796: rm -f conf$$subs.sh
17797:
17798: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17799: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17800: _ACEOF
17801: sed -n '
17802: h
17803: s/^/S["/; s/!.*/"]=/
17804: p
17805: g
17806: s/^[^!]*!//
17807: :repl
17808: t repl
17809: s/'"$ac_delim"'$//
17810: t delim
17811: :nl
17812: h
17813: s/\(.\{148\}\)..*/\1/
17814: t more1
17815: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17816: p
17817: n
17818: b repl
17819: :more1
17820: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17821: p
17822: g
17823: s/.\{148\}//
17824: t nl
17825: :delim
17826: h
17827: s/\(.\{148\}\)..*/\1/
17828: t more2
17829: s/["\\]/\\&/g; s/^/"/; s/$/"/
17830: p
17831: b
17832: :more2
17833: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17834: p
17835: g
17836: s/.\{148\}//
17837: t delim
17838: ' <conf$$subs.awk | sed '
17839: /^[^""]/{
17840: N
17841: s/\n//
17842: }
17843: ' >>$CONFIG_STATUS || ac_write_fail=1
17844: rm -f conf$$subs.awk
17845: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17846: _ACAWK
17847: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17848: for (key in S) S_is_set[key] = 1
17849: FS = ""
17850:
17851: }
1.23 moko 17852: {
1.31 moko 17853: line = $ 0
17854: nfields = split(line, field, "@")
17855: substed = 0
17856: len = length(field[1])
17857: for (i = 2; i < nfields; i++) {
17858: key = field[i]
17859: keylen = length(key)
17860: if (S_is_set[key]) {
17861: value = S[key]
17862: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17863: len += length(value) + length(field[++i])
17864: substed = 1
17865: } else
17866: len += 1 + keylen
17867: }
17868:
17869: print line
1.23 moko 17870: }
17871:
1.31 moko 17872: _ACAWK
17873: _ACEOF
17874: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17875: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17876: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17877: else
17878: cat
17879: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17880: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.23 moko 17881: _ACEOF
17882:
1.31 moko 17883: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17884: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17885: # trailing colons and then remove the whole line if VPATH becomes empty
17886: # (actually we leave an empty line to preserve line numbers).
17887: if test "x$srcdir" = x.; then
17888: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17889: h
17890: s///
17891: s/^/:/
17892: s/[ ]*$/:/
17893: s/:\$(srcdir):/:/g
17894: s/:\${srcdir}:/:/g
17895: s/:@srcdir@:/:/g
17896: s/^:*//
17897: s/:*$//
17898: x
17899: s/\(=[ ]*\).*/\1/
17900: G
17901: s/\n//
17902: s/^[^=]*=[ ]*$//
17903: }'
17904: fi
1.23 moko 17905:
1.31 moko 17906: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17907: fi # test -n "$CONFIG_FILES"
1.23 moko 17908:
1.31 moko 17909: # Set up the scripts for CONFIG_HEADERS section.
17910: # No need to generate them if there are no CONFIG_HEADERS.
17911: # This happens for instance with `./config.status Makefile'.
17912: if test -n "$CONFIG_HEADERS"; then
17913: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17914: BEGIN {
17915: _ACEOF
17916:
17917: # Transform confdefs.h into an awk script `defines.awk', embedded as
17918: # here-document in config.status, that substitutes the proper values into
17919: # config.h.in to produce config.h.
17920:
17921: # Create a delimiter string that does not exist in confdefs.h, to ease
17922: # handling of long lines.
17923: ac_delim='%!_!# '
17924: for ac_last_try in false false :; do
17925: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17926: if test -z "$ac_tt"; then
17927: break
17928: elif $ac_last_try; then
17929: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17930: else
17931: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.23 moko 17932: fi
1.31 moko 17933: done
1.23 moko 17934:
1.31 moko 17935: # For the awk script, D is an array of macro values keyed by name,
17936: # likewise P contains macro parameters if any. Preserve backslash
17937: # newline sequences.
17938:
17939: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17940: sed -n '
17941: s/.\{148\}/&'"$ac_delim"'/g
17942: t rset
17943: :rset
17944: s/^[ ]*#[ ]*define[ ][ ]*/ /
17945: t def
17946: d
17947: :def
17948: s/\\$//
17949: t bsnl
17950: s/["\\]/\\&/g
17951: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17952: D["\1"]=" \3"/p
17953: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17954: d
17955: :bsnl
17956: s/["\\]/\\&/g
17957: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17958: D["\1"]=" \3\\\\\\n"\\/p
17959: t cont
17960: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17961: t cont
17962: d
17963: :cont
17964: n
17965: s/.\{148\}/&'"$ac_delim"'/g
17966: t clear
17967: :clear
17968: s/\\$//
17969: t bsnlc
17970: s/["\\]/\\&/g; s/^/"/; s/$/"/p
17971: d
17972: :bsnlc
17973: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17974: b cont
17975: ' <confdefs.h | sed '
17976: s/'"$ac_delim"'/"\\\
17977: "/g' >>$CONFIG_STATUS || ac_write_fail=1
17978:
17979: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980: for (key in D) D_is_set[key] = 1
17981: FS = ""
17982: }
17983: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17984: line = \$ 0
17985: split(line, arg, " ")
17986: if (arg[1] == "#") {
17987: defundef = arg[2]
17988: mac1 = arg[3]
17989: } else {
17990: defundef = substr(arg[1], 2)
17991: mac1 = arg[2]
17992: }
17993: split(mac1, mac2, "(") #)
17994: macro = mac2[1]
17995: prefix = substr(line, 1, index(line, defundef) - 1)
17996: if (D_is_set[macro]) {
17997: # Preserve the white space surrounding the "#".
17998: print prefix "define", macro P[macro] D[macro]
17999: next
18000: } else {
18001: # Replace #undef with comments. This is necessary, for example,
18002: # in the case of _POSIX_SOURCE, which is predefined and required
18003: # on some systems where configure will not decide to define it.
18004: if (defundef == "undef") {
18005: print "/*", prefix defundef, macro, "*/"
18006: next
18007: }
18008: }
18009: }
18010: { print }
18011: _ACAWK
1.23 moko 18012: _ACEOF
1.31 moko 18013: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18014: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18015: fi # test -n "$CONFIG_HEADERS"
18016:
18017:
18018: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18019: shift
18020: for ac_tag
18021: do
18022: case $ac_tag in
18023: :[FHLC]) ac_mode=$ac_tag; continue;;
18024: esac
18025: case $ac_mode$ac_tag in
18026: :[FHL]*:*);;
18027: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18028: :[FH]-) ac_tag=-:-;;
18029: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18030: esac
18031: ac_save_IFS=$IFS
18032: IFS=:
18033: set x $ac_tag
18034: IFS=$ac_save_IFS
18035: shift
18036: ac_file=$1
18037: shift
18038:
18039: case $ac_mode in
18040: :L) ac_source=$1;;
18041: :[FH])
18042: ac_file_inputs=
18043: for ac_f
18044: do
18045: case $ac_f in
18046: -) ac_f="$ac_tmp/stdin";;
18047: *) # Look for the file first in the build tree, then in the source tree
18048: # (if the path is not absolute). The absolute path cannot be DOS-style,
18049: # because $ac_f cannot contain `:'.
18050: test -f "$ac_f" ||
18051: case $ac_f in
18052: [\\/$]*) false;;
18053: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18054: esac ||
18055: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18056: esac
18057: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18058: as_fn_append ac_file_inputs " '$ac_f'"
18059: done
18060:
18061: # Let's still pretend it is `configure' which instantiates (i.e., don't
18062: # use $as_me), people would be surprised to read:
18063: # /* config.h. Generated by config.status. */
18064: configure_input='Generated from '`
18065: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18066: `' by configure.'
18067: if test x"$ac_file" != x-; then
18068: configure_input="$ac_file. $configure_input"
18069: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18070: $as_echo "$as_me: creating $ac_file" >&6;}
18071: fi
18072: # Neutralize special characters interpreted by sed in replacement strings.
18073: case $configure_input in #(
18074: *\&* | *\|* | *\\* )
18075: ac_sed_conf_input=`$as_echo "$configure_input" |
18076: sed 's/[\\\\&|]/\\\\&/g'`;; #(
18077: *) ac_sed_conf_input=$configure_input;;
18078: esac
18079:
18080: case $ac_tag in
18081: *:-:* | *:-) cat >"$ac_tmp/stdin" \
18082: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18083: esac
18084: ;;
1.23 moko 18085: esac
18086:
1.31 moko 18087: ac_dir=`$as_dirname -- "$ac_file" ||
1.23 moko 18088: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18089: X"$ac_file" : 'X\(//\)[^/]' \| \
18090: X"$ac_file" : 'X\(//\)$' \| \
1.31 moko 18091: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18092: $as_echo X"$ac_file" |
18093: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18094: s//\1/
18095: q
18096: }
18097: /^X\(\/\/\)[^/].*/{
18098: s//\1/
18099: q
18100: }
18101: /^X\(\/\/\)$/{
18102: s//\1/
18103: q
18104: }
18105: /^X\(\/\).*/{
18106: s//\1/
18107: q
18108: }
18109: s/.*/./; q'`
18110: as_dir="$ac_dir"; as_fn_mkdir_p
1.23 moko 18111: ac_builddir=.
18112:
1.31 moko 18113: case "$ac_dir" in
18114: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18115: *)
18116: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18117: # A ".." for each directory in $ac_dir_suffix.
18118: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18119: case $ac_top_builddir_sub in
18120: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18121: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18122: esac ;;
18123: esac
18124: ac_abs_top_builddir=$ac_pwd
18125: ac_abs_builddir=$ac_pwd$ac_dir_suffix
18126: # for backward compatibility:
18127: ac_top_builddir=$ac_top_build_prefix
1.23 moko 18128:
18129: case $srcdir in
1.31 moko 18130: .) # We are building in place.
1.23 moko 18131: ac_srcdir=.
1.31 moko 18132: ac_top_srcdir=$ac_top_builddir_sub
18133: ac_abs_top_srcdir=$ac_pwd ;;
18134: [\\/]* | ?:[\\/]* ) # Absolute name.
1.23 moko 18135: ac_srcdir=$srcdir$ac_dir_suffix;
1.31 moko 18136: ac_top_srcdir=$srcdir
18137: ac_abs_top_srcdir=$srcdir ;;
18138: *) # Relative name.
18139: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18140: ac_top_srcdir=$ac_top_build_prefix$srcdir
18141: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.23 moko 18142: esac
1.31 moko 18143: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.23 moko 18144:
18145:
1.31 moko 18146: case $ac_mode in
18147: :F)
18148: #
18149: # CONFIG_FILE
18150: #
1.23 moko 18151:
18152: case $INSTALL in
18153: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.31 moko 18154: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18155: esac
18156: ac_MKDIR_P=$MKDIR_P
18157: case $MKDIR_P in
18158: [\\/$]* | ?:[\\/]* ) ;;
18159: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.23 moko 18160: esac
1.31 moko 18161: _ACEOF
1.23 moko 18162:
1.31 moko 18163: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18164: # If the template does not know about datarootdir, expand it.
18165: # FIXME: This hack should be removed a few years after 2.60.
18166: ac_datarootdir_hack=; ac_datarootdir_seen=
18167: ac_sed_dataroot='
18168: /datarootdir/ {
18169: p
18170: q
18171: }
18172: /@datadir@/p
18173: /@docdir@/p
18174: /@infodir@/p
18175: /@localedir@/p
18176: /@mandir@/p'
18177: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18178: *datarootdir*) ac_datarootdir_seen=yes;;
18179: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18180: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18181: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18182: _ACEOF
18183: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18184: ac_datarootdir_hack='
18185: s&@datadir@&$datadir&g
18186: s&@docdir@&$docdir&g
18187: s&@infodir@&$infodir&g
18188: s&@localedir@&$localedir&g
18189: s&@mandir@&$mandir&g
18190: s&\\\${datarootdir}&$datarootdir&g' ;;
18191: esac
18192: _ACEOF
1.23 moko 18193:
1.31 moko 18194: # Neutralize VPATH when `$srcdir' = `.'.
18195: # Shell code in configure.ac might set extrasub.
18196: # FIXME: do we really want to maintain this feature?
18197: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18198: ac_sed_extra="$ac_vpsub
1.23 moko 18199: $extrasub
18200: _ACEOF
1.31 moko 18201: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.23 moko 18202: :t
18203: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.31 moko 18204: s|@configure_input@|$ac_sed_conf_input|;t t
18205: s&@top_builddir@&$ac_top_builddir_sub&;t t
18206: s&@top_build_prefix@&$ac_top_build_prefix&;t t
18207: s&@srcdir@&$ac_srcdir&;t t
18208: s&@abs_srcdir@&$ac_abs_srcdir&;t t
18209: s&@top_srcdir@&$ac_top_srcdir&;t t
18210: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18211: s&@builddir@&$ac_builddir&;t t
18212: s&@abs_builddir@&$ac_abs_builddir&;t t
18213: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18214: s&@INSTALL@&$ac_INSTALL&;t t
18215: s&@MKDIR_P@&$ac_MKDIR_P&;t t
18216: $ac_datarootdir_hack
18217: "
18218: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18219: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18220:
18221: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18222: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18223: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18224: "$ac_tmp/out"`; test -z "$ac_out"; } &&
18225: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18226: which seems to be undefined. Please make sure it is defined" >&5
18227: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18228: which seems to be undefined. Please make sure it is defined" >&2;}
1.23 moko 18229:
1.31 moko 18230: rm -f "$ac_tmp/stdin"
1.23 moko 18231: case $ac_file in
1.31 moko 18232: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18233: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18234: esac \
18235: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18236: ;;
18237: :H)
18238: #
18239: # CONFIG_HEADER
18240: #
1.23 moko 18241: if test x"$ac_file" != x-; then
1.31 moko 18242: {
18243: $as_echo "/* $configure_input */" \
18244: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18245: } >"$ac_tmp/config.h" \
18246: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18247: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18248: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18249: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.23 moko 18250: else
1.31 moko 18251: rm -f "$ac_file"
18252: mv "$ac_tmp/config.h" "$ac_file" \
18253: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.23 moko 18254: fi
18255: else
1.31 moko 18256: $as_echo "/* $configure_input */" \
18257: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18258: || as_fn_error $? "could not create -" "$LINENO" 5
1.23 moko 18259: fi
1.31 moko 18260: # Compute "$ac_file"'s index in $config_headers.
18261: _am_arg="$ac_file"
1.23 moko 18262: _am_stamp_count=1
18263: for _am_header in $config_headers :; do
18264: case $_am_header in
1.31 moko 18265: $_am_arg | $_am_arg:* )
1.23 moko 18266: break ;;
18267: * )
18268: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18269: esac
18270: done
1.31 moko 18271: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18272: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18273: X"$_am_arg" : 'X\(//\)[^/]' \| \
18274: X"$_am_arg" : 'X\(//\)$' \| \
18275: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18276: $as_echo X"$_am_arg" |
18277: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18278: s//\1/
18279: q
18280: }
18281: /^X\(\/\/\)[^/].*/{
18282: s//\1/
18283: q
18284: }
18285: /^X\(\/\/\)$/{
18286: s//\1/
18287: q
18288: }
18289: /^X\(\/\).*/{
18290: s//\1/
18291: q
18292: }
18293: s/.*/./; q'`/stamp-h$_am_stamp_count
18294: ;;
1.23 moko 18295:
1.31 moko 18296: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18297: $as_echo "$as_me: executing $ac_file commands" >&6;}
18298: ;;
18299: esac
1.23 moko 18300:
18301:
1.31 moko 18302: case $ac_file$ac_mode in
18303: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18304: # Autoconf 2.62 quotes --file arguments for eval, but not when files
18305: # are listed without --file. Let's play safe and only enable the eval
18306: # if we detect the quoting.
18307: case $CONFIG_FILES in
18308: *\'*) eval set x "$CONFIG_FILES" ;;
18309: *) set x $CONFIG_FILES ;;
18310: esac
18311: shift
18312: for mf
18313: do
18314: # Strip MF so we end up with the name of the file.
18315: mf=`echo "$mf" | sed -e 's/:.*$//'`
18316: # Check whether this is an Automake generated Makefile or not.
18317: # We used to match only the files named `Makefile.in', but
18318: # some people rename them; so instead we look at the file content.
18319: # Grep'ing the first line is not enough: some people post-process
18320: # each Makefile.in and add a new line on top of each file to say so.
18321: # Grep'ing the whole file is not good either: AIX grep has a line
18322: # limit of 2048, but all sed's we know have understand at least 4000.
18323: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18324: dirpart=`$as_dirname -- "$mf" ||
1.23 moko 18325: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18326: X"$mf" : 'X\(//\)[^/]' \| \
18327: X"$mf" : 'X\(//\)$' \| \
1.31 moko 18328: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18329: $as_echo X"$mf" |
18330: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18331: s//\1/
18332: q
18333: }
18334: /^X\(\/\/\)[^/].*/{
18335: s//\1/
18336: q
18337: }
18338: /^X\(\/\/\)$/{
18339: s//\1/
18340: q
18341: }
18342: /^X\(\/\).*/{
18343: s//\1/
18344: q
18345: }
18346: s/.*/./; q'`
18347: else
18348: continue
18349: fi
18350: # Extract the definition of DEPDIR, am__include, and am__quote
18351: # from the Makefile without running `make'.
18352: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18353: test -z "$DEPDIR" && continue
18354: am__include=`sed -n 's/^am__include = //p' < "$mf"`
18355: test -z "am__include" && continue
18356: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18357: # When using ansi2knr, U may be empty or an underscore; expand it
18358: U=`sed -n 's/^U = //p' < "$mf"`
18359: # Find all dependency output files, they are included files with
18360: # $(DEPDIR) in their names. We invoke sed twice because it is the
18361: # simplest approach to changing $(DEPDIR) to its actual value in the
18362: # expansion.
18363: for file in `sed -n "
18364: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18365: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18366: # Make sure the directory exists.
18367: test -f "$dirpart/$file" && continue
18368: fdir=`$as_dirname -- "$file" ||
1.23 moko 18369: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18370: X"$file" : 'X\(//\)[^/]' \| \
18371: X"$file" : 'X\(//\)$' \| \
1.31 moko 18372: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18373: $as_echo X"$file" |
18374: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18375: s//\1/
18376: q
18377: }
18378: /^X\(\/\/\)[^/].*/{
18379: s//\1/
18380: q
18381: }
18382: /^X\(\/\/\)$/{
18383: s//\1/
18384: q
18385: }
18386: /^X\(\/\).*/{
18387: s//\1/
18388: q
18389: }
18390: s/.*/./; q'`
18391: as_dir=$dirpart/$fdir; as_fn_mkdir_p
18392: # echo "creating $dirpart/$file"
18393: echo '# dummy' > "$dirpart/$file"
1.23 moko 18394: done
18395: done
1.31 moko 18396: }
1.23 moko 18397: ;;
1.31 moko 18398: "libtool":C)
1.23 moko 18399:
18400: # See if we are running on zsh, and set the options which allow our
18401: # commands through without removal of \ escapes.
18402: if test -n "${ZSH_VERSION+set}" ; then
18403: setopt NO_GLOB_SUBST
18404: fi
18405:
18406: cfgfile="${ofile}T"
18407: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18408: $RM "$cfgfile"
18409:
18410: cat <<_LT_EOF >> "$cfgfile"
18411: #! $SHELL
18412:
18413: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18414: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18415: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18416: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18417: #
18418: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18419: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18420: # Foundation, Inc.
18421: # Written by Gordon Matzigkeit, 1996
18422: #
18423: # This file is part of GNU Libtool.
18424: #
18425: # GNU Libtool is free software; you can redistribute it and/or
18426: # modify it under the terms of the GNU General Public License as
18427: # published by the Free Software Foundation; either version 2 of
18428: # the License, or (at your option) any later version.
18429: #
18430: # As a special exception to the GNU General Public License,
18431: # if you distribute this file as part of a program or library that
18432: # is built using GNU Libtool, you may include this file under the
18433: # same distribution terms that you use for the rest of that program.
18434: #
18435: # GNU Libtool is distributed in the hope that it will be useful,
18436: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18437: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18438: # GNU General Public License for more details.
18439: #
18440: # You should have received a copy of the GNU General Public License
18441: # along with GNU Libtool; see the file COPYING. If not, a copy
18442: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18443: # obtained by writing to the Free Software Foundation, Inc.,
18444: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18445:
18446:
18447: # The names of the tagged configurations supported by this script.
18448: available_tags="CXX "
18449:
18450: # ### BEGIN LIBTOOL CONFIG
18451:
18452: # Which release of libtool.m4 was used?
18453: macro_version=$macro_version
18454: macro_revision=$macro_revision
18455:
1.30 moko 18456: # Whether or not to build static libraries.
18457: build_old_libs=$enable_static
18458:
1.23 moko 18459: # Assembler program.
18460: AS=$lt_AS
18461:
18462: # DLL creation program.
18463: DLLTOOL=$lt_DLLTOOL
18464:
18465: # Object dumper program.
18466: OBJDUMP=$lt_OBJDUMP
18467:
18468: # Whether or not to build shared libraries.
18469: build_libtool_libs=$enable_shared
18470:
18471: # What type of objects to build.
18472: pic_mode=$pic_mode
18473:
18474: # Whether or not to optimize for fast installation.
18475: fast_install=$enable_fast_install
18476:
18477: # Shell to use when invoking shell scripts.
18478: SHELL=$lt_SHELL
18479:
18480: # An echo program that protects backslashes.
18481: ECHO=$lt_ECHO
18482:
18483: # The PATH separator for the build system.
18484: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18485:
18486: # The host system.
18487: host_alias=$host_alias
18488: host=$host
18489: host_os=$host_os
18490:
18491: # The build system.
18492: build_alias=$build_alias
18493: build=$build
18494: build_os=$build_os
18495:
18496: # A sed program that does not truncate output.
18497: SED=$lt_SED
18498:
18499: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18500: Xsed="\$SED -e 1s/^X//"
18501:
18502: # A grep program that handles long lines.
18503: GREP=$lt_GREP
18504:
18505: # An ERE matcher.
18506: EGREP=$lt_EGREP
18507:
18508: # A literal string matcher.
18509: FGREP=$lt_FGREP
18510:
18511: # A BSD- or MS-compatible name lister.
18512: NM=$lt_NM
18513:
18514: # Whether we need soft or hard links.
18515: LN_S=$lt_LN_S
18516:
18517: # What is the maximum length of a command?
18518: max_cmd_len=$max_cmd_len
18519:
18520: # Object file suffix (normally "o").
18521: objext=$ac_objext
18522:
18523: # Executable file suffix (normally "").
18524: exeext=$exeext
18525:
18526: # whether the shell understands "unset".
18527: lt_unset=$lt_unset
18528:
18529: # turn spaces into newlines.
18530: SP2NL=$lt_lt_SP2NL
18531:
18532: # turn newlines into spaces.
18533: NL2SP=$lt_lt_NL2SP
18534:
18535: # convert \$build file names to \$host format.
18536: to_host_file_cmd=$lt_cv_to_host_file_cmd
18537:
18538: # convert \$build files to toolchain format.
18539: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18540:
18541: # Method to check whether dependent libraries are shared objects.
18542: deplibs_check_method=$lt_deplibs_check_method
18543:
18544: # Command to use when deplibs_check_method = "file_magic".
18545: file_magic_cmd=$lt_file_magic_cmd
18546:
18547: # How to find potential files when deplibs_check_method = "file_magic".
18548: file_magic_glob=$lt_file_magic_glob
18549:
18550: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18551: want_nocaseglob=$lt_want_nocaseglob
18552:
18553: # Command to associate shared and link libraries.
18554: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18555:
18556: # The archiver.
18557: AR=$lt_AR
18558:
18559: # Flags to create an archive.
18560: AR_FLAGS=$lt_AR_FLAGS
18561:
18562: # How to feed a file listing to the archiver.
18563: archiver_list_spec=$lt_archiver_list_spec
18564:
18565: # A symbol stripping program.
18566: STRIP=$lt_STRIP
18567:
18568: # Commands used to install an old-style archive.
18569: RANLIB=$lt_RANLIB
18570: old_postinstall_cmds=$lt_old_postinstall_cmds
18571: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18572:
18573: # Whether to use a lock for old archive extraction.
18574: lock_old_archive_extraction=$lock_old_archive_extraction
18575:
18576: # A C compiler.
18577: LTCC=$lt_CC
18578:
18579: # LTCC compiler flags.
18580: LTCFLAGS=$lt_CFLAGS
18581:
18582: # Take the output of nm and produce a listing of raw symbols and C names.
18583: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18584:
18585: # Transform the output of nm in a proper C declaration.
18586: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18587:
18588: # Transform the output of nm in a C name address pair.
18589: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18590:
18591: # Transform the output of nm in a C name address pair when lib prefix is needed.
18592: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18593:
18594: # Specify filename containing input files for \$NM.
18595: nm_file_list_spec=$lt_nm_file_list_spec
18596:
18597: # The root where to search for dependent libraries,and in which our libraries should be installed.
18598: lt_sysroot=$lt_sysroot
18599:
18600: # The name of the directory that contains temporary libtool files.
18601: objdir=$objdir
18602:
18603: # Used to examine libraries when file_magic_cmd begins with "file".
18604: MAGIC_CMD=$MAGIC_CMD
18605:
18606: # Must we lock files when doing compilation?
18607: need_locks=$lt_need_locks
18608:
18609: # Manifest tool.
18610: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18611:
18612: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18613: DSYMUTIL=$lt_DSYMUTIL
18614:
18615: # Tool to change global to local symbols on Mac OS X.
18616: NMEDIT=$lt_NMEDIT
18617:
18618: # Tool to manipulate fat objects and archives on Mac OS X.
18619: LIPO=$lt_LIPO
18620:
18621: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18622: OTOOL=$lt_OTOOL
18623:
18624: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18625: OTOOL64=$lt_OTOOL64
18626:
18627: # Old archive suffix (normally "a").
18628: libext=$libext
18629:
18630: # Shared library suffix (normally ".so").
18631: shrext_cmds=$lt_shrext_cmds
18632:
18633: # The commands to extract the exported symbol list from a shared archive.
18634: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18635:
18636: # Variables whose values should be saved in libtool wrapper scripts and
18637: # restored at link time.
18638: variables_saved_for_relink=$lt_variables_saved_for_relink
18639:
18640: # Do we need the "lib" prefix for modules?
18641: need_lib_prefix=$need_lib_prefix
18642:
18643: # Do we need a version for libraries?
18644: need_version=$need_version
18645:
18646: # Library versioning type.
18647: version_type=$version_type
18648:
18649: # Shared library runtime path variable.
18650: runpath_var=$runpath_var
18651:
18652: # Shared library path variable.
18653: shlibpath_var=$shlibpath_var
18654:
18655: # Is shlibpath searched before the hard-coded library search path?
18656: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18657:
18658: # Format of library name prefix.
18659: libname_spec=$lt_libname_spec
18660:
18661: # List of archive names. First name is the real one, the rest are links.
18662: # The last name is the one that the linker finds with -lNAME
18663: library_names_spec=$lt_library_names_spec
18664:
18665: # The coded name of the library, if different from the real name.
18666: soname_spec=$lt_soname_spec
18667:
18668: # Permission mode override for installation of shared libraries.
18669: install_override_mode=$lt_install_override_mode
18670:
18671: # Command to use after installation of a shared archive.
18672: postinstall_cmds=$lt_postinstall_cmds
18673:
18674: # Command to use after uninstallation of a shared archive.
18675: postuninstall_cmds=$lt_postuninstall_cmds
18676:
18677: # Commands used to finish a libtool library installation in a directory.
18678: finish_cmds=$lt_finish_cmds
18679:
18680: # As "finish_cmds", except a single script fragment to be evaled but
18681: # not shown.
18682: finish_eval=$lt_finish_eval
18683:
18684: # Whether we should hardcode library paths into libraries.
18685: hardcode_into_libs=$hardcode_into_libs
18686:
18687: # Compile-time system search path for libraries.
18688: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18689:
18690: # Run-time system search path for libraries.
18691: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18692:
18693: # Whether dlopen is supported.
18694: dlopen_support=$enable_dlopen
18695:
18696: # Whether dlopen of programs is supported.
18697: dlopen_self=$enable_dlopen_self
18698:
18699: # Whether dlopen of statically linked programs is supported.
18700: dlopen_self_static=$enable_dlopen_self_static
18701:
18702: # Commands to strip libraries.
18703: old_striplib=$lt_old_striplib
18704: striplib=$lt_striplib
18705:
18706:
18707: # The linker used to build libraries.
18708: LD=$lt_LD
18709:
18710: # How to create reloadable object files.
18711: reload_flag=$lt_reload_flag
18712: reload_cmds=$lt_reload_cmds
18713:
18714: # Commands used to build an old-style archive.
18715: old_archive_cmds=$lt_old_archive_cmds
18716:
18717: # A language specific compiler.
18718: CC=$lt_compiler
18719:
18720: # Is the compiler the GNU compiler?
18721: with_gcc=$GCC
18722:
18723: # Compiler flag to turn off builtin functions.
18724: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18725:
18726: # Additional compiler flags for building library objects.
18727: pic_flag=$lt_lt_prog_compiler_pic
18728:
18729: # How to pass a linker flag through the compiler.
18730: wl=$lt_lt_prog_compiler_wl
18731:
18732: # Compiler flag to prevent dynamic linking.
18733: link_static_flag=$lt_lt_prog_compiler_static
18734:
18735: # Does compiler simultaneously support -c and -o options?
18736: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18737:
18738: # Whether or not to add -lc for building shared libraries.
18739: build_libtool_need_lc=$archive_cmds_need_lc
18740:
18741: # Whether or not to disallow shared libs when runtime libs are static.
18742: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18743:
18744: # Compiler flag to allow reflexive dlopens.
18745: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18746:
18747: # Compiler flag to generate shared objects directly from archives.
18748: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18749:
18750: # Whether the compiler copes with passing no objects directly.
18751: compiler_needs_object=$lt_compiler_needs_object
18752:
18753: # Create an old-style archive from a shared archive.
18754: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18755:
18756: # Create a temporary old-style archive to link instead of a shared archive.
18757: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18758:
18759: # Commands used to build a shared archive.
18760: archive_cmds=$lt_archive_cmds
18761: archive_expsym_cmds=$lt_archive_expsym_cmds
18762:
18763: # Commands used to build a loadable module if different from building
18764: # a shared archive.
18765: module_cmds=$lt_module_cmds
18766: module_expsym_cmds=$lt_module_expsym_cmds
18767:
18768: # Whether we are building with GNU ld or not.
18769: with_gnu_ld=$lt_with_gnu_ld
18770:
18771: # Flag that allows shared libraries with undefined symbols to be built.
18772: allow_undefined_flag=$lt_allow_undefined_flag
18773:
18774: # Flag that enforces no undefined symbols.
18775: no_undefined_flag=$lt_no_undefined_flag
18776:
18777: # Flag to hardcode \$libdir into a binary during linking.
18778: # This must work even if \$libdir does not exist
18779: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18780:
18781: # Whether we need a single "-rpath" flag with a separated argument.
18782: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18783:
18784: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18785: # DIR into the resulting binary.
18786: hardcode_direct=$hardcode_direct
18787:
18788: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18789: # DIR into the resulting binary and the resulting library dependency is
18790: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18791: # library is relocated.
18792: hardcode_direct_absolute=$hardcode_direct_absolute
18793:
18794: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18795: # into the resulting binary.
18796: hardcode_minus_L=$hardcode_minus_L
18797:
18798: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18799: # into the resulting binary.
18800: hardcode_shlibpath_var=$hardcode_shlibpath_var
18801:
18802: # Set to "yes" if building a shared library automatically hardcodes DIR
18803: # into the library and all subsequent libraries and executables linked
18804: # against it.
18805: hardcode_automatic=$hardcode_automatic
18806:
18807: # Set to yes if linker adds runtime paths of dependent libraries
18808: # to runtime path list.
18809: inherit_rpath=$inherit_rpath
18810:
18811: # Whether libtool must link a program against all its dependency libraries.
18812: link_all_deplibs=$link_all_deplibs
18813:
18814: # Set to "yes" if exported symbols are required.
18815: always_export_symbols=$always_export_symbols
18816:
18817: # The commands to list exported symbols.
18818: export_symbols_cmds=$lt_export_symbols_cmds
18819:
18820: # Symbols that should not be listed in the preloaded symbols.
18821: exclude_expsyms=$lt_exclude_expsyms
18822:
18823: # Symbols that must always be exported.
18824: include_expsyms=$lt_include_expsyms
18825:
18826: # Commands necessary for linking programs (against libraries) with templates.
18827: prelink_cmds=$lt_prelink_cmds
18828:
18829: # Commands necessary for finishing linking programs.
18830: postlink_cmds=$lt_postlink_cmds
18831:
18832: # Specify filename containing input files.
18833: file_list_spec=$lt_file_list_spec
18834:
18835: # How to hardcode a shared library path into an executable.
18836: hardcode_action=$hardcode_action
18837:
18838: # The directories searched by this compiler when creating a shared library.
18839: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18840:
18841: # Dependencies to place before and after the objects being linked to
18842: # create a shared library.
18843: predep_objects=$lt_predep_objects
18844: postdep_objects=$lt_postdep_objects
18845: predeps=$lt_predeps
18846: postdeps=$lt_postdeps
18847:
18848: # The library search path used internally by the compiler when linking
18849: # a shared library.
18850: compiler_lib_search_path=$lt_compiler_lib_search_path
18851:
18852: # ### END LIBTOOL CONFIG
18853:
18854: _LT_EOF
18855:
18856: case $host_os in
18857: aix3*)
18858: cat <<\_LT_EOF >> "$cfgfile"
18859: # AIX sometimes has problems with the GCC collect2 program. For some
18860: # reason, if we set the COLLECT_NAMES environment variable, the problems
18861: # vanish in a puff of smoke.
18862: if test "X${COLLECT_NAMES+set}" != Xset; then
18863: COLLECT_NAMES=
18864: export COLLECT_NAMES
18865: fi
18866: _LT_EOF
18867: ;;
18868: esac
18869:
18870:
18871: ltmain="$ac_aux_dir/ltmain.sh"
1.1 parser 18872:
1.16 paf 18873:
1.23 moko 18874: # We use sed instead of cat because bash on DJGPP gets confused if
18875: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18876: # text mode, it properly converts lines to CR/LF. This bash problem
18877: # is reportedly fixed, but why not run on old versions too?
18878: sed '$q' "$ltmain" >> "$cfgfile" \
18879: || (rm -f "$cfgfile"; exit 1)
1.10 paf 18880:
1.23 moko 18881: if test x"$xsi_shell" = xyes; then
18882: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18883: func_dirname ()\
18884: {\
18885: \ case ${1} in\
18886: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18887: \ * ) func_dirname_result="${3}" ;;\
18888: \ esac\
18889: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18890: && mv -f "$cfgfile.tmp" "$cfgfile" \
18891: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18892: test 0 -eq $? || _lt_function_replace_fail=:
18893:
18894:
18895: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18896: func_basename ()\
18897: {\
18898: \ func_basename_result="${1##*/}"\
18899: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18900: && mv -f "$cfgfile.tmp" "$cfgfile" \
18901: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18902: test 0 -eq $? || _lt_function_replace_fail=:
18903:
18904:
18905: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18906: func_dirname_and_basename ()\
18907: {\
18908: \ case ${1} in\
18909: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18910: \ * ) func_dirname_result="${3}" ;;\
18911: \ esac\
18912: \ func_basename_result="${1##*/}"\
18913: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18914: && mv -f "$cfgfile.tmp" "$cfgfile" \
18915: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18916: test 0 -eq $? || _lt_function_replace_fail=:
18917:
18918:
18919: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18920: func_stripname ()\
18921: {\
18922: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18923: \ # positional parameters, so assign one to ordinary parameter first.\
18924: \ func_stripname_result=${3}\
18925: \ func_stripname_result=${func_stripname_result#"${1}"}\
18926: \ func_stripname_result=${func_stripname_result%"${2}"}\
18927: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18928: && mv -f "$cfgfile.tmp" "$cfgfile" \
18929: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18930: test 0 -eq $? || _lt_function_replace_fail=:
18931:
18932:
18933: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18934: func_split_long_opt ()\
18935: {\
18936: \ func_split_long_opt_name=${1%%=*}\
18937: \ func_split_long_opt_arg=${1#*=}\
18938: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18939: && mv -f "$cfgfile.tmp" "$cfgfile" \
18940: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18941: test 0 -eq $? || _lt_function_replace_fail=:
18942:
18943:
18944: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18945: func_split_short_opt ()\
18946: {\
18947: \ func_split_short_opt_arg=${1#??}\
18948: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18949: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18950: && mv -f "$cfgfile.tmp" "$cfgfile" \
18951: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18952: test 0 -eq $? || _lt_function_replace_fail=:
18953:
18954:
18955: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18956: func_lo2o ()\
18957: {\
18958: \ case ${1} in\
18959: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18960: \ *) func_lo2o_result=${1} ;;\
18961: \ esac\
18962: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18963: && mv -f "$cfgfile.tmp" "$cfgfile" \
18964: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18965: test 0 -eq $? || _lt_function_replace_fail=:
18966:
18967:
18968: sed -e '/^func_xform ()$/,/^} # func_xform /c\
18969: func_xform ()\
18970: {\
18971: func_xform_result=${1%.*}.lo\
18972: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18973: && mv -f "$cfgfile.tmp" "$cfgfile" \
18974: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18975: test 0 -eq $? || _lt_function_replace_fail=:
18976:
18977:
18978: sed -e '/^func_arith ()$/,/^} # func_arith /c\
18979: func_arith ()\
18980: {\
18981: func_arith_result=$(( $* ))\
18982: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18983: && mv -f "$cfgfile.tmp" "$cfgfile" \
18984: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18985: test 0 -eq $? || _lt_function_replace_fail=:
18986:
18987:
18988: sed -e '/^func_len ()$/,/^} # func_len /c\
18989: func_len ()\
18990: {\
18991: func_len_result=${#1}\
18992: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18993: && mv -f "$cfgfile.tmp" "$cfgfile" \
18994: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18995: test 0 -eq $? || _lt_function_replace_fail=:
18996:
18997: fi
18998:
18999: if test x"$lt_shell_append" = xyes; then
19000: sed -e '/^func_append ()$/,/^} # func_append /c\
19001: func_append ()\
19002: {\
19003: eval "${1}+=\\${2}"\
19004: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19005: && mv -f "$cfgfile.tmp" "$cfgfile" \
19006: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19007: test 0 -eq $? || _lt_function_replace_fail=:
19008:
19009:
19010: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19011: func_append_quoted ()\
19012: {\
19013: \ func_quote_for_eval "${2}"\
19014: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19015: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19016: && mv -f "$cfgfile.tmp" "$cfgfile" \
19017: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19018: test 0 -eq $? || _lt_function_replace_fail=:
19019:
19020:
19021: # Save a `func_append' function call where possible by direct use of '+='
19022: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19023: && mv -f "$cfgfile.tmp" "$cfgfile" \
19024: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19025: test 0 -eq $? || _lt_function_replace_fail=:
19026: else
19027: # Save a `func_append' function call even when '+=' is not available
19028: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19029: && mv -f "$cfgfile.tmp" "$cfgfile" \
19030: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19031: test 0 -eq $? || _lt_function_replace_fail=:
19032: fi
19033:
19034: if test x"$_lt_function_replace_fail" = x":"; then
1.31 moko 19035: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19036: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.10 paf 19037: fi
19038:
1.16 paf 19039:
1.23 moko 19040: mv -f "$cfgfile" "$ofile" ||
19041: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19042: chmod +x "$ofile"
19043:
19044:
19045: cat <<_LT_EOF >> "$ofile"
19046:
19047: # ### BEGIN LIBTOOL TAG CONFIG: CXX
19048:
19049: # The linker used to build libraries.
19050: LD=$lt_LD_CXX
19051:
19052: # How to create reloadable object files.
19053: reload_flag=$lt_reload_flag_CXX
19054: reload_cmds=$lt_reload_cmds_CXX
19055:
19056: # Commands used to build an old-style archive.
19057: old_archive_cmds=$lt_old_archive_cmds_CXX
19058:
19059: # A language specific compiler.
19060: CC=$lt_compiler_CXX
19061:
19062: # Is the compiler the GNU compiler?
19063: with_gcc=$GCC_CXX
19064:
19065: # Compiler flag to turn off builtin functions.
19066: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19067:
19068: # Additional compiler flags for building library objects.
19069: pic_flag=$lt_lt_prog_compiler_pic_CXX
19070:
19071: # How to pass a linker flag through the compiler.
19072: wl=$lt_lt_prog_compiler_wl_CXX
19073:
19074: # Compiler flag to prevent dynamic linking.
19075: link_static_flag=$lt_lt_prog_compiler_static_CXX
19076:
19077: # Does compiler simultaneously support -c and -o options?
19078: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19079:
19080: # Whether or not to add -lc for building shared libraries.
19081: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19082:
19083: # Whether or not to disallow shared libs when runtime libs are static.
19084: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19085:
19086: # Compiler flag to allow reflexive dlopens.
19087: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19088:
19089: # Compiler flag to generate shared objects directly from archives.
19090: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19091:
19092: # Whether the compiler copes with passing no objects directly.
19093: compiler_needs_object=$lt_compiler_needs_object_CXX
19094:
19095: # Create an old-style archive from a shared archive.
19096: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19097:
19098: # Create a temporary old-style archive to link instead of a shared archive.
19099: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19100:
19101: # Commands used to build a shared archive.
19102: archive_cmds=$lt_archive_cmds_CXX
19103: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19104:
19105: # Commands used to build a loadable module if different from building
19106: # a shared archive.
19107: module_cmds=$lt_module_cmds_CXX
19108: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19109:
19110: # Whether we are building with GNU ld or not.
19111: with_gnu_ld=$lt_with_gnu_ld_CXX
19112:
19113: # Flag that allows shared libraries with undefined symbols to be built.
19114: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19115:
19116: # Flag that enforces no undefined symbols.
19117: no_undefined_flag=$lt_no_undefined_flag_CXX
19118:
19119: # Flag to hardcode \$libdir into a binary during linking.
19120: # This must work even if \$libdir does not exist
19121: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19122:
19123: # Whether we need a single "-rpath" flag with a separated argument.
19124: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19125:
19126: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19127: # DIR into the resulting binary.
19128: hardcode_direct=$hardcode_direct_CXX
19129:
19130: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19131: # DIR into the resulting binary and the resulting library dependency is
19132: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19133: # library is relocated.
19134: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19135:
19136: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19137: # into the resulting binary.
19138: hardcode_minus_L=$hardcode_minus_L_CXX
19139:
19140: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19141: # into the resulting binary.
19142: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19143:
19144: # Set to "yes" if building a shared library automatically hardcodes DIR
19145: # into the library and all subsequent libraries and executables linked
19146: # against it.
19147: hardcode_automatic=$hardcode_automatic_CXX
19148:
19149: # Set to yes if linker adds runtime paths of dependent libraries
19150: # to runtime path list.
19151: inherit_rpath=$inherit_rpath_CXX
19152:
19153: # Whether libtool must link a program against all its dependency libraries.
19154: link_all_deplibs=$link_all_deplibs_CXX
19155:
19156: # Set to "yes" if exported symbols are required.
19157: always_export_symbols=$always_export_symbols_CXX
19158:
19159: # The commands to list exported symbols.
19160: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19161:
19162: # Symbols that should not be listed in the preloaded symbols.
19163: exclude_expsyms=$lt_exclude_expsyms_CXX
19164:
19165: # Symbols that must always be exported.
19166: include_expsyms=$lt_include_expsyms_CXX
19167:
19168: # Commands necessary for linking programs (against libraries) with templates.
19169: prelink_cmds=$lt_prelink_cmds_CXX
19170:
19171: # Commands necessary for finishing linking programs.
19172: postlink_cmds=$lt_postlink_cmds_CXX
19173:
19174: # Specify filename containing input files.
19175: file_list_spec=$lt_file_list_spec_CXX
19176:
19177: # How to hardcode a shared library path into an executable.
19178: hardcode_action=$hardcode_action_CXX
19179:
19180: # The directories searched by this compiler when creating a shared library.
19181: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
1.10 paf 19182:
1.23 moko 19183: # Dependencies to place before and after the objects being linked to
19184: # create a shared library.
19185: predep_objects=$lt_predep_objects_CXX
19186: postdep_objects=$lt_postdep_objects_CXX
19187: predeps=$lt_predeps_CXX
19188: postdeps=$lt_postdeps_CXX
19189:
19190: # The library search path used internally by the compiler when linking
19191: # a shared library.
19192: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.10 paf 19193:
1.23 moko 19194: # ### END LIBTOOL TAG CONFIG: CXX
19195: _LT_EOF
1.1 parser 19196:
1.10 paf 19197: ;;
1.31 moko 19198:
1.10 paf 19199: esac
1.31 moko 19200: done # for ac_tag
1.1 parser 19201:
19202:
1.31 moko 19203: as_fn_exit 0
1.10 paf 19204: _ACEOF
19205: ac_clean_files=$ac_clean_files_save
19206:
1.31 moko 19207: test $ac_write_fail = 0 ||
19208: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19209:
1.10 paf 19210:
19211: # configure is writing to config.log, and then calls config.status.
19212: # config.status does its own redirection, appending to config.log.
19213: # Unfortunately, on DOS this fails, as config.log is still kept open
19214: # by configure, so config.status won't be able to write to it; its
19215: # output is simply discarded. So we exec the FD to /dev/null,
19216: # effectively closing config.log, so it can be properly (re)opened and
19217: # appended to by config.status. When coming back to configure, we
19218: # need to make the FD available again.
19219: if test "$no_create" != yes; then
19220: ac_cs_success=:
19221: ac_config_status_args=
19222: test "$silent" = yes &&
19223: ac_config_status_args="$ac_config_status_args --quiet"
19224: exec 5>/dev/null
19225: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19226: exec 5>>config.log
19227: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19228: # would make configure fail if this is the last instruction.
1.31 moko 19229: $ac_cs_success || as_fn_exit 1
1.10 paf 19230: fi
1.1 parser 19231:
1.10 paf 19232: #
19233: # CONFIG_SUBDIRS section.
19234: #
1.1 parser 19235: if test "$no_recursion" != yes; then
19236:
1.31 moko 19237: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19238: # so they do not pile up.
1.1 parser 19239: ac_sub_configure_args=
19240: ac_prev=
1.31 moko 19241: eval "set x $ac_configure_args"
19242: shift
19243: for ac_arg
19244: do
1.1 parser 19245: if test -n "$ac_prev"; then
19246: ac_prev=
19247: continue
19248: fi
1.10 paf 19249: case $ac_arg in
1.1 parser 19250: -cache-file | --cache-file | --cache-fil | --cache-fi \
19251: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19252: ac_prev=cache_file ;;
19253: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.10 paf 19254: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19255: | --c=*)
19256: ;;
19257: --config-cache | -C)
1.1 parser 19258: ;;
19259: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19260: ac_prev=srcdir ;;
19261: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19262: ;;
1.10 paf 19263: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19264: ac_prev=prefix ;;
19265: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19266: ;;
1.31 moko 19267: --disable-option-checking)
19268: ;;
19269: *)
19270: case $ac_arg in
19271: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19272: esac
19273: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 parser 19274: esac
19275: done
19276:
1.10 paf 19277: # Always prepend --prefix to ensure using the same prefix
19278: # in subdir configurations.
1.31 moko 19279: ac_arg="--prefix=$prefix"
19280: case $ac_arg in
19281: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19282: esac
19283: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19284:
19285: # Pass --silent
19286: if test "$silent" = yes; then
19287: ac_sub_configure_args="--silent $ac_sub_configure_args"
19288: fi
19289:
19290: # Always prepend --disable-option-checking to silence warnings, since
19291: # different subdirs can have different --enable and --with options.
19292: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.10 paf 19293:
19294: ac_popdir=`pwd`
19295: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 19296:
19297: # Do not complain, so a configure script can configure whichever
19298: # parts of a large source tree are present.
1.31 moko 19299: test -d "$srcdir/$ac_dir" || continue
1.10 paf 19300:
1.31 moko 19301: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19302: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19303: $as_echo "$ac_msg" >&6
19304: as_dir="$ac_dir"; as_fn_mkdir_p
1.10 paf 19305: ac_builddir=.
19306:
1.31 moko 19307: case "$ac_dir" in
19308: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19309: *)
19310: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19311: # A ".." for each directory in $ac_dir_suffix.
19312: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19313: case $ac_top_builddir_sub in
19314: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19315: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19316: esac ;;
19317: esac
19318: ac_abs_top_builddir=$ac_pwd
19319: ac_abs_builddir=$ac_pwd$ac_dir_suffix
19320: # for backward compatibility:
19321: ac_top_builddir=$ac_top_build_prefix
1.10 paf 19322:
19323: case $srcdir in
1.31 moko 19324: .) # We are building in place.
1.10 paf 19325: ac_srcdir=.
1.31 moko 19326: ac_top_srcdir=$ac_top_builddir_sub
19327: ac_abs_top_srcdir=$ac_pwd ;;
19328: [\\/]* | ?:[\\/]* ) # Absolute name.
1.10 paf 19329: ac_srcdir=$srcdir$ac_dir_suffix;
1.31 moko 19330: ac_top_srcdir=$srcdir
19331: ac_abs_top_srcdir=$srcdir ;;
19332: *) # Relative name.
19333: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19334: ac_top_srcdir=$ac_top_build_prefix$srcdir
19335: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.16 paf 19336: esac
1.31 moko 19337: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 parser 19338:
19339:
1.31 moko 19340: cd "$ac_dir"
1.1 parser 19341:
19342: # Check for guested configure; otherwise get Cygnus style configure.
1.31 moko 19343: if test -f "$ac_srcdir/configure.gnu"; then
19344: ac_sub_configure=$ac_srcdir/configure.gnu
19345: elif test -f "$ac_srcdir/configure"; then
19346: ac_sub_configure=$ac_srcdir/configure
19347: elif test -f "$ac_srcdir/configure.in"; then
19348: # This should be Cygnus configure.
19349: ac_sub_configure=$ac_aux_dir/configure
1.1 parser 19350: else
1.31 moko 19351: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19352: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 19353: ac_sub_configure=
19354: fi
19355:
19356: # The recursion is here.
19357: if test -n "$ac_sub_configure"; then
19358: # Make the cache file name correct relative to the subdirectory.
1.10 paf 19359: case $cache_file in
19360: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.31 moko 19361: *) # Relative name.
19362: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 parser 19363: esac
19364:
1.31 moko 19365: { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19366: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 19367: # The eval makes quoting arguments work.
1.31 moko 19368: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19369: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19370: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 parser 19371: fi
19372:
1.31 moko 19373: cd "$ac_popdir"
1.1 parser 19374: done
19375: fi
1.31 moko 19376: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19377: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19378: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19379: fi
1.1 parser 19380:
E-mail: