Annotation of sql/oracle/configure, revision 1.33
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.33 ! moko 3: # Generated by GNU Autoconf 2.68 for parser3 10.3.
1.32 moko 4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
1.1 parser 10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.32 moko 13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
1.11 paf 16:
1.32 moko 17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.11 paf 20: emulate sh
21: NULLCMD=:
1.32 moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.11 paf 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.32 moko 25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
1.11 paf 72: fi
73:
1.32 moko 74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
1.11 paf 81: fi
82:
83:
1.32 moko 84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
1.11 paf 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.32 moko 129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175:
176: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180: PATH=/empty FPATH=/empty; export PATH FPATH
181: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183: test \$(( 1 + 1 )) = 2 || exit 1"
184: if (eval "$as_required") 2>/dev/null; then :
185: as_have_required=yes
186: else
187: as_have_required=no
188: fi
189: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190:
191: else
192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193: as_found=false
194: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.11 paf 195: do
1.32 moko 196: IFS=$as_save_IFS
197: test -z "$as_dir" && as_dir=.
198: as_found=:
199: case $as_dir in #(
200: /*)
201: for as_base in sh bash ksh sh5; do
202: # Try only shells that exist, to save several forks.
203: as_shell=$as_dir/$as_base
204: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206: CONFIG_SHELL=$as_shell as_have_required=yes
207: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208: break 2
209: fi
210: fi
211: done;;
212: esac
213: as_found=false
214: done
215: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217: CONFIG_SHELL=$SHELL as_have_required=yes
218: fi; }
219: IFS=$as_save_IFS
220:
221:
222: if test "x$CONFIG_SHELL" != x; then :
223: # We cannot yet assume a decent shell, so we have to provide a
224: # neutralization value for shells without unset; and this also
225: # works around shells that cannot unset nonexistent variables.
226: # Preserve -v and -x to the replacement shell.
227: BASH_ENV=/dev/null
228: ENV=/dev/null
229: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230: export CONFIG_SHELL
231: case $- in # ((((
232: *v*x* | *x*v* ) as_opts=-vx ;;
233: *v* ) as_opts=-v ;;
234: *x* ) as_opts=-x ;;
235: * ) as_opts= ;;
236: esac
237: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238: fi
239:
240: if test x$as_have_required = xno; then :
241: $as_echo "$0: This script requires a shell more modern than all"
242: $as_echo "$0: the shells that I found on your system."
243: if test x${ZSH_VERSION+set} = xset ; then
244: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.11 paf 246: else
1.32 moko 247: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248: $0: including any error possibly output before this
249: $0: message. Then install a modern shell, or manually run
250: $0: the script under such a shell if you do have one."
1.11 paf 251: fi
1.32 moko 252: exit 1
253: fi
254: fi
255: fi
256: SHELL=${CONFIG_SHELL-/bin/sh}
257: export SHELL
258: # Unset more variables known to interfere with behavior of common tools.
259: CLICOLOR_FORCE= GREP_OPTIONS=
260: unset CLICOLOR_FORCE GREP_OPTIONS
261:
262: ## --------------------- ##
263: ## M4sh Shell Functions. ##
264: ## --------------------- ##
265: # as_fn_unset VAR
266: # ---------------
267: # Portably unset VAR.
268: as_fn_unset ()
269: {
270: { eval $1=; unset $1;}
271: }
272: as_unset=as_fn_unset
273:
274: # as_fn_set_status STATUS
275: # -----------------------
276: # Set $? to STATUS, without forking.
277: as_fn_set_status ()
278: {
279: return $1
280: } # as_fn_set_status
281:
282: # as_fn_exit STATUS
283: # -----------------
284: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285: as_fn_exit ()
286: {
287: set +e
288: as_fn_set_status $1
289: exit $1
290: } # as_fn_exit
291:
292: # as_fn_mkdir_p
293: # -------------
294: # Create "$as_dir" as a directory, including parents if necessary.
295: as_fn_mkdir_p ()
296: {
297:
298: case $as_dir in #(
299: -*) as_dir=./$as_dir;;
300: esac
301: test -d "$as_dir" || eval $as_mkdir_p || {
302: as_dirs=
303: while :; do
304: case $as_dir in #(
305: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306: *) as_qdir=$as_dir;;
307: esac
308: as_dirs="'$as_qdir' $as_dirs"
309: as_dir=`$as_dirname -- "$as_dir" ||
310: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311: X"$as_dir" : 'X\(//\)[^/]' \| \
312: X"$as_dir" : 'X\(//\)$' \| \
313: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314: $as_echo X"$as_dir" |
315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\/\)[^/].*/{
320: s//\1/
321: q
322: }
323: /^X\(\/\/\)$/{
324: s//\1/
325: q
326: }
327: /^X\(\/\).*/{
328: s//\1/
329: q
330: }
331: s/.*/./; q'`
332: test -d "$as_dir" && break
333: done
334: test -z "$as_dirs" || eval "mkdir $as_dirs"
335: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336:
337:
338: } # as_fn_mkdir_p
339: # as_fn_append VAR VALUE
340: # ----------------------
341: # Append the text in VALUE to the end of the definition contained in VAR. Take
342: # advantage of any shell optimizations that allow amortized linear growth over
343: # repeated appends, instead of the typical quadratic growth present in naive
344: # implementations.
345: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346: eval 'as_fn_append ()
347: {
348: eval $1+=\$2
349: }'
350: else
351: as_fn_append ()
352: {
353: eval $1=\$$1\$2
354: }
355: fi # as_fn_append
356:
357: # as_fn_arith ARG...
358: # ------------------
359: # Perform arithmetic evaluation on the ARGs, and store the result in the
360: # global $as_val. Take advantage of shells that can avoid forks. The arguments
361: # must be portable across $(()) and expr.
362: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363: eval 'as_fn_arith ()
364: {
365: as_val=$(( $* ))
366: }'
367: else
368: as_fn_arith ()
369: {
370: as_val=`expr "$@" || test $? -eq 1`
371: }
372: fi # as_fn_arith
373:
374:
375: # as_fn_error STATUS ERROR [LINENO LOG_FD]
376: # ----------------------------------------
377: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379: # script with STATUS, using 1 if that was 0.
380: as_fn_error ()
381: {
382: as_status=$1; test $as_status -eq 0 && as_status=1
383: if test "$4"; then
384: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386: fi
387: $as_echo "$as_me: error: $2" >&2
388: as_fn_exit $as_status
389: } # as_fn_error
1.11 paf 390:
1.32 moko 391: if expr a : '\(a\)' >/dev/null 2>&1 &&
392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.11 paf 393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
1.32 moko 398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.11 paf 399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
1.32 moko 404: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405: as_dirname=dirname
406: else
407: as_dirname=false
408: fi
1.11 paf 409:
1.32 moko 410: as_me=`$as_basename -- "$0" ||
1.11 paf 411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
1.32 moko 413: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414: $as_echo X/"$0" |
415: sed '/^.*\/\([^/][^/]*\)\/*$/{
416: s//\1/
417: q
418: }
419: /^X\/\(\/\/\)$/{
420: s//\1/
421: q
422: }
423: /^X\/\(\/\).*/{
424: s//\1/
425: q
426: }
427: s/.*/./; q'`
1.11 paf 428:
429: # Avoid depending upon Character Ranges.
430: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433: as_cr_digits='0123456789'
434: as_cr_alnum=$as_cr_Letters$as_cr_digits
435:
436:
1.32 moko 437: as_lineno_1=$LINENO as_lineno_1a=$LINENO
438: as_lineno_2=$LINENO as_lineno_2a=$LINENO
439: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442: sed -n '
443: p
444: /[$]LINENO/=
445: ' <$as_myself |
1.11 paf 446: sed '
1.32 moko 447: s/[$]LINENO.*/&-/
448: t lineno
449: b
450: :lineno
1.11 paf 451: N
1.32 moko 452: :loop
453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.11 paf 454: t loop
1.32 moko 455: s/-\n.*//
1.11 paf 456: ' >$as_me.lineno &&
1.32 moko 457: chmod +x "$as_me.lineno" ||
458: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.11 paf 459:
460: # Don't try to exec as it changes $[0], causing all sort of problems
461: # (the dirname of $[0] is not the place where we might find the
1.32 moko 462: # original and so on. Autoconf is especially sensitive to this).
463: . "./$as_me.lineno"
1.11 paf 464: # Exit status is that of the last command.
465: exit
466: }
467:
1.32 moko 468: ECHO_C= ECHO_N= ECHO_T=
469: case `echo -n x` in #(((((
470: -n*)
471: case `echo 'xy\c'` in
472: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473: xy) ECHO_C='\c';;
474: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475: ECHO_T=' ';;
476: esac;;
477: *)
478: ECHO_N='-n';;
1.11 paf 479: esac
480:
1.32 moko 481: rm -f conf$$ conf$$.exe conf$$.file
482: if test -d conf$$.dir; then
483: rm -f conf$$.dir/conf$$.file
1.11 paf 484: else
1.32 moko 485: rm -f conf$$.dir
486: mkdir conf$$.dir 2>/dev/null
1.11 paf 487: fi
1.32 moko 488: if (echo >conf$$.file) 2>/dev/null; then
489: if ln -s conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s='ln -s'
491: # ... but there are two gotchas:
492: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494: # In both cases, we have to default to `cp -p'.
495: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496: as_ln_s='cp -p'
497: elif ln conf$$.file conf$$ 2>/dev/null; then
498: as_ln_s=ln
499: else
1.11 paf 500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
504: fi
1.32 moko 505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506: rmdir conf$$.dir 2>/dev/null
1.11 paf 507:
508: if mkdir -p . 2>/dev/null; then
1.32 moko 509: as_mkdir_p='mkdir -p "$as_dir"'
1.11 paf 510: else
1.18 paf 511: test -d ./-p && rmdir ./-p
1.11 paf 512: as_mkdir_p=false
513: fi
514:
1.32 moko 515: if test -x / >/dev/null 2>&1; then
516: as_test_x='test -x'
517: else
518: if ls -dL / >/dev/null 2>&1; then
519: as_ls_L_option=L
520: else
521: as_ls_L_option=
522: fi
523: as_test_x='
524: eval sh -c '\''
525: if test -d "$1"; then
526: test -d "$1/.";
527: else
528: case $1 in #(
529: -*)set "./$1";;
530: esac;
531: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532: ???[sx]*):;;*)false;;esac;fi
533: '\'' sh
534: '
535: fi
536: as_executable_p=$as_test_x
1.11 paf 537:
538: # Sed expression to map a string onto a valid CPP name.
1.18 paf 539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 540:
541: # Sed expression to map a string onto a valid variable name.
1.18 paf 542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 543:
1.25 moko 544: lt_ltdl_dir='libltdl'
1.11 paf 545:
546: SHELL=${CONFIG_SHELL-/bin/sh}
547:
1.25 moko 548: lt_dlopen_dir="$lt_ltdl_dir"
1.11 paf 549:
550:
1.32 moko 551: test -n "$DJDIR" || exec 7<&0 </dev/null
552: exec 6>&1
553:
1.11 paf 554: # Name of the host.
1.32 moko 555: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.11 paf 556: # so uname gets run too.
557: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 558:
1.11 paf 559: #
560: # Initializations.
561: #
1.1 parser 562: ac_default_prefix=/usr/local
1.32 moko 563: ac_clean_files=
1.11 paf 564: ac_config_libobj_dir=.
1.32 moko 565: LIBOBJS=
1.11 paf 566: cross_compiling=no
567: subdirs=
568: MFLAGS=
569: MAKEFLAGS=
570:
571: # Identity of this package.
1.25 moko 572: PACKAGE_NAME='parser3'
573: PACKAGE_TARNAME='parser3'
1.33 ! moko 574: PACKAGE_VERSION='10.3'
! 575: PACKAGE_STRING='parser3 10.3'
1.25 moko 576: PACKAGE_BUGREPORT=''
1.32 moko 577: PACKAGE_URL=''
1.11 paf 578:
579: ac_unique_file="parser3oracle.C"
580: # Factoring default headers for most tests.
581: ac_includes_default="\
582: #include <stdio.h>
1.32 moko 583: #ifdef HAVE_SYS_TYPES_H
1.11 paf 584: # include <sys/types.h>
585: #endif
1.32 moko 586: #ifdef HAVE_SYS_STAT_H
1.11 paf 587: # include <sys/stat.h>
588: #endif
1.32 moko 589: #ifdef STDC_HEADERS
1.11 paf 590: # include <stdlib.h>
591: # include <stddef.h>
592: #else
1.32 moko 593: # ifdef HAVE_STDLIB_H
1.11 paf 594: # include <stdlib.h>
595: # endif
596: #endif
1.32 moko 597: #ifdef HAVE_STRING_H
598: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.11 paf 599: # include <memory.h>
600: # endif
601: # include <string.h>
602: #endif
1.32 moko 603: #ifdef HAVE_STRINGS_H
1.11 paf 604: # include <strings.h>
605: #endif
1.32 moko 606: #ifdef HAVE_INTTYPES_H
1.11 paf 607: # include <inttypes.h>
608: #endif
1.32 moko 609: #ifdef HAVE_STDINT_H
610: # include <stdint.h>
611: #endif
612: #ifdef HAVE_UNISTD_H
1.11 paf 613: # include <unistd.h>
614: #endif"
615:
1.32 moko 616: enable_option_checking=no
617: ac_subst_vars='ltdl_LTLIBOBJS
618: ltdl_LIBOBJS
619: am__EXEEXT_FALSE
620: am__EXEEXT_TRUE
621: LTLIBOBJS
622: LIBOBJS
623: LTDLOPEN
624: LT_CONFIG_H
625: subdirs
626: CONVENIENCE_LTDL_FALSE
627: CONVENIENCE_LTDL_TRUE
628: INSTALL_LTDL_FALSE
629: INSTALL_LTDL_TRUE
630: ARGZ_H
631: sys_symbol_underscore
632: LIBADD_DL
633: LT_DLPREOPEN
634: LIBADD_DLD_LINK
635: LIBADD_SHL_LOAD
636: LIBADD_DLOPEN
637: LT_DLLOADERS
638: INCLTDL
639: LTDLINCL
640: LTDLDEPS
641: LIBLTDL
642: CXXCPP
643: CPP
644: OTOOL64
645: OTOOL
646: LIPO
647: NMEDIT
648: DSYMUTIL
649: MANIFEST_TOOL
650: RANLIB
651: ac_ct_AR
652: AR
653: LN_S
654: NM
655: ac_ct_DUMPBIN
656: DUMPBIN
657: LD
658: FGREP
659: EGREP
660: GREP
661: SED
662: host_os
663: host_vendor
664: host_cpu
665: host
666: build_os
667: build_vendor
668: build_cpu
669: build
670: LIBTOOL
671: OBJDUMP
672: DLLTOOL
673: AS
674: am__fastdepCC_FALSE
675: am__fastdepCC_TRUE
676: CCDEPMODE
677: ac_ct_CC
678: CFLAGS
679: CC
680: am__fastdepCXX_FALSE
681: am__fastdepCXX_TRUE
682: CXXDEPMODE
683: AMDEPBACKSLASH
684: AMDEP_FALSE
685: AMDEP_TRUE
686: am__quote
687: am__include
688: DEPDIR
689: OBJEXT
690: EXEEXT
691: ac_ct_CXX
692: CPPFLAGS
693: LDFLAGS
694: CXXFLAGS
695: CXX
696: ORACLE_PUBLIC_INC
697: ORACLE_OCI_INC
698: am__untar
699: am__tar
700: AMTAR
701: am__leading_dot
702: SET_MAKE
703: AWK
704: mkdir_p
705: MKDIR_P
706: INSTALL_STRIP_PROGRAM
707: STRIP
708: install_sh
709: MAKEINFO
710: AUTOHEADER
711: AUTOMAKE
712: AUTOCONF
713: ACLOCAL
714: VERSION
715: PACKAGE
716: CYGPATH_W
717: am__isrc
718: INSTALL_DATA
719: INSTALL_SCRIPT
720: INSTALL_PROGRAM
721: target_alias
722: host_alias
723: build_alias
724: LIBS
725: ECHO_T
726: ECHO_N
727: ECHO_C
728: DEFS
729: mandir
730: localedir
731: libdir
732: psdir
733: pdfdir
734: dvidir
735: htmldir
736: infodir
737: docdir
738: oldincludedir
739: includedir
740: localstatedir
741: sharedstatedir
742: sysconfdir
743: datadir
744: datarootdir
745: libexecdir
746: sbindir
747: bindir
748: program_transform_name
749: prefix
750: exec_prefix
751: PACKAGE_URL
752: PACKAGE_BUGREPORT
753: PACKAGE_STRING
754: PACKAGE_VERSION
755: PACKAGE_TARNAME
756: PACKAGE_NAME
757: PATH_SEPARATOR
758: SHELL'
1.11 paf 759: ac_subst_files=''
1.32 moko 760: ac_user_opts='
761: enable_option_checking
762: with_oracleoci_inc
763: with_oraclepublic_inc
764: enable_dependency_tracking
765: enable_static
766: enable_shared
767: with_pic
768: enable_fast_install
769: with_gnu_ld
770: with_sysroot
771: enable_libtool_lock
772: with_included_ltdl
773: with_ltdl_include
774: with_ltdl_lib
775: enable_ltdl_install
776: '
777: ac_precious_vars='build_alias
778: host_alias
779: target_alias
780: CXX
781: CXXFLAGS
782: LDFLAGS
783: LIBS
784: CPPFLAGS
785: CCC
786: CC
787: CFLAGS
788: CPP
789: CXXCPP'
790: ac_subdirs_all='libltdl'
1.1 parser 791:
792: # Initialize some variables set by options.
1.11 paf 793: ac_init_help=
794: ac_init_version=false
1.32 moko 795: ac_unrecognized_opts=
796: ac_unrecognized_sep=
1.1 parser 797: # The variables have the same names as the options, with
798: # dashes changed to underlines.
1.11 paf 799: cache_file=/dev/null
1.1 parser 800: exec_prefix=NONE
801: no_create=
802: no_recursion=
803: prefix=NONE
804: program_prefix=NONE
805: program_suffix=NONE
806: program_transform_name=s,x,x,
807: silent=
808: site=
809: srcdir=
810: verbose=
811: x_includes=NONE
812: x_libraries=NONE
1.11 paf 813:
814: # Installation directory options.
815: # These are left unexpanded so users can "make install exec_prefix=/foo"
816: # and all the variables that are supposed to be based on exec_prefix
817: # by default will actually change.
818: # Use braces instead of parens because sh, perl, etc. also accept them.
1.32 moko 819: # (The list follows the same order as the GNU Coding Standards.)
1.1 parser 820: bindir='${exec_prefix}/bin'
821: sbindir='${exec_prefix}/sbin'
822: libexecdir='${exec_prefix}/libexec'
1.32 moko 823: datarootdir='${prefix}/share'
824: datadir='${datarootdir}'
1.1 parser 825: sysconfdir='${prefix}/etc'
826: sharedstatedir='${prefix}/com'
827: localstatedir='${prefix}/var'
828: includedir='${prefix}/include'
829: oldincludedir='/usr/include'
1.32 moko 830: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831: infodir='${datarootdir}/info'
832: htmldir='${docdir}'
833: dvidir='${docdir}'
834: pdfdir='${docdir}'
835: psdir='${docdir}'
836: libdir='${exec_prefix}/lib'
837: localedir='${datarootdir}/locale'
838: mandir='${datarootdir}/man'
1.1 parser 839:
840: ac_prev=
1.32 moko 841: ac_dashdash=
1.1 parser 842: for ac_option
843: do
844: # If the previous option needs an argument, assign it.
845: if test -n "$ac_prev"; then
1.32 moko 846: eval $ac_prev=\$ac_option
1.1 parser 847: ac_prev=
848: continue
849: fi
850:
1.32 moko 851: case $ac_option in
852: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853: *=) ac_optarg= ;;
854: *) ac_optarg=yes ;;
855: esac
1.1 parser 856:
857: # Accept the important Cygnus configure options, so we can diagnose typos.
858:
1.32 moko 859: case $ac_dashdash$ac_option in
860: --)
861: ac_dashdash=yes ;;
1.1 parser 862:
863: -bindir | --bindir | --bindi | --bind | --bin | --bi)
864: ac_prev=bindir ;;
865: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.11 paf 866: bindir=$ac_optarg ;;
1.1 parser 867:
868: -build | --build | --buil | --bui | --bu)
1.11 paf 869: ac_prev=build_alias ;;
1.1 parser 870: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.11 paf 871: build_alias=$ac_optarg ;;
1.1 parser 872:
873: -cache-file | --cache-file | --cache-fil | --cache-fi \
874: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875: ac_prev=cache_file ;;
876: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.11 paf 878: cache_file=$ac_optarg ;;
879:
880: --config-cache | -C)
881: cache_file=config.cache ;;
1.1 parser 882:
1.32 moko 883: -datadir | --datadir | --datadi | --datad)
1.1 parser 884: ac_prev=datadir ;;
1.32 moko 885: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.11 paf 886: datadir=$ac_optarg ;;
1.1 parser 887:
1.32 moko 888: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889: | --dataroo | --dataro | --datar)
890: ac_prev=datarootdir ;;
891: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893: datarootdir=$ac_optarg ;;
894:
1.1 parser 895: -disable-* | --disable-*)
1.32 moko 896: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 897: # Reject names that are not valid shell variable names.
1.32 moko 898: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899: as_fn_error $? "invalid feature name: $ac_useropt"
900: ac_useropt_orig=$ac_useropt
901: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902: case $ac_user_opts in
903: *"
904: "enable_$ac_useropt"
905: "*) ;;
906: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907: ac_unrecognized_sep=', ';;
908: esac
909: eval enable_$ac_useropt=no ;;
910:
911: -docdir | --docdir | --docdi | --doc | --do)
912: ac_prev=docdir ;;
913: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914: docdir=$ac_optarg ;;
915:
916: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917: ac_prev=dvidir ;;
918: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919: dvidir=$ac_optarg ;;
1.1 parser 920:
921: -enable-* | --enable-*)
1.32 moko 922: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 923: # Reject names that are not valid shell variable names.
1.32 moko 924: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925: as_fn_error $? "invalid feature name: $ac_useropt"
926: ac_useropt_orig=$ac_useropt
927: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928: case $ac_user_opts in
929: *"
930: "enable_$ac_useropt"
931: "*) ;;
932: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933: ac_unrecognized_sep=', ';;
1.1 parser 934: esac
1.32 moko 935: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 parser 936:
937: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939: | --exec | --exe | --ex)
940: ac_prev=exec_prefix ;;
941: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943: | --exec=* | --exe=* | --ex=*)
1.11 paf 944: exec_prefix=$ac_optarg ;;
1.1 parser 945:
946: -gas | --gas | --ga | --g)
947: # Obsolete; use --with-gas.
948: with_gas=yes ;;
949:
1.11 paf 950: -help | --help | --hel | --he | -h)
951: ac_init_help=long ;;
952: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953: ac_init_help=recursive ;;
954: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955: ac_init_help=short ;;
1.1 parser 956:
957: -host | --host | --hos | --ho)
1.11 paf 958: ac_prev=host_alias ;;
1.1 parser 959: -host=* | --host=* | --hos=* | --ho=*)
1.11 paf 960: host_alias=$ac_optarg ;;
1.1 parser 961:
1.32 moko 962: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963: ac_prev=htmldir ;;
964: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965: | --ht=*)
966: htmldir=$ac_optarg ;;
967:
1.1 parser 968: -includedir | --includedir | --includedi | --included | --include \
969: | --includ | --inclu | --incl | --inc)
970: ac_prev=includedir ;;
971: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.11 paf 973: includedir=$ac_optarg ;;
1.1 parser 974:
975: -infodir | --infodir | --infodi | --infod | --info | --inf)
976: ac_prev=infodir ;;
977: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.11 paf 978: infodir=$ac_optarg ;;
1.1 parser 979:
980: -libdir | --libdir | --libdi | --libd)
981: ac_prev=libdir ;;
982: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.11 paf 983: libdir=$ac_optarg ;;
1.1 parser 984:
985: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986: | --libexe | --libex | --libe)
987: ac_prev=libexecdir ;;
988: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989: | --libexe=* | --libex=* | --libe=*)
1.11 paf 990: libexecdir=$ac_optarg ;;
1.1 parser 991:
1.32 moko 992: -localedir | --localedir | --localedi | --localed | --locale)
993: ac_prev=localedir ;;
994: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995: localedir=$ac_optarg ;;
996:
1.1 parser 997: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.32 moko 998: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 parser 999: ac_prev=localstatedir ;;
1000: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.32 moko 1001: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.11 paf 1002: localstatedir=$ac_optarg ;;
1.1 parser 1003:
1004: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005: ac_prev=mandir ;;
1006: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.11 paf 1007: mandir=$ac_optarg ;;
1.1 parser 1008:
1009: -nfp | --nfp | --nf)
1010: # Obsolete; use --without-fp.
1011: with_fp=no ;;
1012:
1013: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.11 paf 1014: | --no-cr | --no-c | -n)
1.1 parser 1015: no_create=yes ;;
1016:
1017: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019: no_recursion=yes ;;
1020:
1021: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023: | --oldin | --oldi | --old | --ol | --o)
1024: ac_prev=oldincludedir ;;
1025: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.11 paf 1028: oldincludedir=$ac_optarg ;;
1.1 parser 1029:
1030: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031: ac_prev=prefix ;;
1032: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.11 paf 1033: prefix=$ac_optarg ;;
1.1 parser 1034:
1035: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036: | --program-pre | --program-pr | --program-p)
1037: ac_prev=program_prefix ;;
1038: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.11 paf 1040: program_prefix=$ac_optarg ;;
1.1 parser 1041:
1042: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043: | --program-suf | --program-su | --program-s)
1044: ac_prev=program_suffix ;;
1045: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.11 paf 1047: program_suffix=$ac_optarg ;;
1.1 parser 1048:
1049: -program-transform-name | --program-transform-name \
1050: | --program-transform-nam | --program-transform-na \
1051: | --program-transform-n | --program-transform- \
1052: | --program-transform | --program-transfor \
1053: | --program-transfo | --program-transf \
1054: | --program-trans | --program-tran \
1055: | --progr-tra | --program-tr | --program-t)
1056: ac_prev=program_transform_name ;;
1057: -program-transform-name=* | --program-transform-name=* \
1058: | --program-transform-nam=* | --program-transform-na=* \
1059: | --program-transform-n=* | --program-transform-=* \
1060: | --program-transform=* | --program-transfor=* \
1061: | --program-transfo=* | --program-transf=* \
1062: | --program-trans=* | --program-tran=* \
1063: | --progr-tra=* | --program-tr=* | --program-t=*)
1.11 paf 1064: program_transform_name=$ac_optarg ;;
1.1 parser 1065:
1.32 moko 1066: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067: ac_prev=pdfdir ;;
1068: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069: pdfdir=$ac_optarg ;;
1070:
1071: -psdir | --psdir | --psdi | --psd | --ps)
1072: ac_prev=psdir ;;
1073: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074: psdir=$ac_optarg ;;
1075:
1.1 parser 1076: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077: | -silent | --silent | --silen | --sile | --sil)
1078: silent=yes ;;
1079:
1080: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081: ac_prev=sbindir ;;
1082: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083: | --sbi=* | --sb=*)
1.11 paf 1084: sbindir=$ac_optarg ;;
1.1 parser 1085:
1086: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088: | --sharedst | --shareds | --shared | --share | --shar \
1089: | --sha | --sh)
1090: ac_prev=sharedstatedir ;;
1091: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094: | --sha=* | --sh=*)
1.11 paf 1095: sharedstatedir=$ac_optarg ;;
1.1 parser 1096:
1097: -site | --site | --sit)
1098: ac_prev=site ;;
1099: -site=* | --site=* | --sit=*)
1.11 paf 1100: site=$ac_optarg ;;
1.1 parser 1101:
1102: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103: ac_prev=srcdir ;;
1104: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.11 paf 1105: srcdir=$ac_optarg ;;
1.1 parser 1106:
1107: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108: | --syscon | --sysco | --sysc | --sys | --sy)
1109: ac_prev=sysconfdir ;;
1110: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.11 paf 1112: sysconfdir=$ac_optarg ;;
1.1 parser 1113:
1114: -target | --target | --targe | --targ | --tar | --ta | --t)
1.11 paf 1115: ac_prev=target_alias ;;
1.1 parser 1116: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.11 paf 1117: target_alias=$ac_optarg ;;
1.1 parser 1118:
1119: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120: verbose=yes ;;
1121:
1.11 paf 1122: -version | --version | --versio | --versi | --vers | -V)
1123: ac_init_version=: ;;
1.1 parser 1124:
1125: -with-* | --with-*)
1.32 moko 1126: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 1127: # Reject names that are not valid shell variable names.
1.32 moko 1128: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129: as_fn_error $? "invalid package name: $ac_useropt"
1130: ac_useropt_orig=$ac_useropt
1131: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132: case $ac_user_opts in
1133: *"
1134: "with_$ac_useropt"
1135: "*) ;;
1136: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137: ac_unrecognized_sep=', ';;
1.1 parser 1138: esac
1.32 moko 1139: eval with_$ac_useropt=\$ac_optarg ;;
1.1 parser 1140:
1141: -without-* | --without-*)
1.32 moko 1142: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 1143: # Reject names that are not valid shell variable names.
1.32 moko 1144: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145: as_fn_error $? "invalid package name: $ac_useropt"
1146: ac_useropt_orig=$ac_useropt
1147: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148: case $ac_user_opts in
1149: *"
1150: "with_$ac_useropt"
1151: "*) ;;
1152: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153: ac_unrecognized_sep=', ';;
1154: esac
1155: eval with_$ac_useropt=no ;;
1.1 parser 1156:
1157: --x)
1158: # Obsolete; use --with-x.
1159: with_x=yes ;;
1160:
1161: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162: | --x-incl | --x-inc | --x-in | --x-i)
1163: ac_prev=x_includes ;;
1164: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.11 paf 1166: x_includes=$ac_optarg ;;
1.1 parser 1167:
1168: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170: ac_prev=x_libraries ;;
1171: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.11 paf 1173: x_libraries=$ac_optarg ;;
1.1 parser 1174:
1.32 moko 1175: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176: Try \`$0 --help' for more information"
1.1 parser 1177: ;;
1178:
1.11 paf 1179: *=*)
1180: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181: # Reject names that are not valid shell variable names.
1.32 moko 1182: case $ac_envvar in #(
1183: '' | [0-9]* | *[!_$as_cr_alnum]* )
1184: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185: esac
1186: eval $ac_envvar=\$ac_optarg
1.11 paf 1187: export $ac_envvar ;;
1188:
1.1 parser 1189: *)
1.11 paf 1190: # FIXME: should be removed in autoconf 3.0.
1.32 moko 1191: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.11 paf 1192: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.32 moko 1193: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 parser 1195: ;;
1196:
1197: esac
1198: done
1199:
1200: if test -n "$ac_prev"; then
1.11 paf 1201: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.32 moko 1202: as_fn_error $? "missing argument to $ac_option"
1.1 parser 1203: fi
1204:
1.32 moko 1205: if test -n "$ac_unrecognized_opts"; then
1206: case $enable_option_checking in
1207: no) ;;
1208: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210: esac
1211: fi
1212:
1213: # Check all directory arguments for consistency.
1214: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215: datadir sysconfdir sharedstatedir localstatedir includedir \
1216: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217: libdir localedir mandir
1.11 paf 1218: do
1.32 moko 1219: eval ac_val=\$$ac_var
1220: # Remove trailing slashes.
1.11 paf 1221: case $ac_val in
1.32 moko 1222: */ )
1223: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224: eval $ac_var=\$ac_val;;
1.11 paf 1225: esac
1.32 moko 1226: # Be sure to have absolute directory names.
1.11 paf 1227: case $ac_val in
1.32 moko 1228: [\\/$]* | ?:[\\/]* ) continue;;
1229: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 parser 1230: esac
1.32 moko 1231: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 parser 1232: done
1233:
1.11 paf 1234: # There might be people who depend on the old broken behavior: `$host'
1235: # used to hold the argument of --host etc.
1236: # FIXME: To remove some day.
1237: build=$build_alias
1238: host=$host_alias
1239: target=$target_alias
1240:
1241: # FIXME: To remove some day.
1242: if test "x$host_alias" != x; then
1243: if test "x$build_alias" = x; then
1244: cross_compiling=maybe
1.32 moko 1245: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1246: If a cross compiler is detected then cross compile mode will be used" >&2
1.11 paf 1247: elif test "x$build_alias" != "x$host_alias"; then
1248: cross_compiling=yes
1249: fi
1250: fi
1251:
1252: ac_tool_prefix=
1253: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 1254:
1.11 paf 1255: test "$silent" = yes && exec 6>/dev/null
1.1 parser 1256:
1257:
1.32 moko 1258: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259: ac_ls_di=`ls -di .` &&
1260: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261: as_fn_error $? "working directory cannot be determined"
1262: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263: as_fn_error $? "pwd does not report name of working directory"
1264:
1265:
1.1 parser 1266: # Find the source files, if location was not specified.
1267: if test -z "$srcdir"; then
1268: ac_srcdir_defaulted=yes
1.32 moko 1269: # Try the directory containing this script, then the parent directory.
1270: ac_confdir=`$as_dirname -- "$as_myself" ||
1271: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272: X"$as_myself" : 'X\(//\)[^/]' \| \
1273: X"$as_myself" : 'X\(//\)$' \| \
1274: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275: $as_echo X"$as_myself" |
1276: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277: s//\1/
1278: q
1279: }
1280: /^X\(\/\/\)[^/].*/{
1281: s//\1/
1282: q
1283: }
1284: /^X\(\/\/\)$/{
1285: s//\1/
1286: q
1287: }
1288: /^X\(\/\).*/{
1289: s//\1/
1290: q
1291: }
1292: s/.*/./; q'`
1.1 parser 1293: srcdir=$ac_confdir
1.32 moko 1294: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 parser 1295: srcdir=..
1296: fi
1297: else
1298: ac_srcdir_defaulted=no
1299: fi
1.32 moko 1300: if test ! -r "$srcdir/$ac_unique_file"; then
1301: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303: fi
1304: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305: ac_abs_confdir=`(
1306: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307: pwd)`
1308: # When building in place, set srcdir=.
1309: if test "$ac_abs_confdir" = "$ac_pwd"; then
1310: srcdir=.
1311: fi
1312: # Remove unnecessary trailing slashes from srcdir.
1313: # Double slashes in file names in object file debugging info
1314: # mess up M-x gdb in Emacs.
1315: case $srcdir in
1316: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317: esac
1318: for ac_var in $ac_precious_vars; do
1319: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320: eval ac_env_${ac_var}_value=\$${ac_var}
1321: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323: done
1.11 paf 1324:
1325: #
1326: # Report the --help message.
1327: #
1328: if test "$ac_init_help" = "long"; then
1329: # Omit some internal or obsolete options to make the list less imposing.
1330: # This message is too long to be a string in the A/UX 3.1 sh.
1331: cat <<_ACEOF
1.33 ! moko 1332: \`configure' configures parser3 10.3 to adapt to many kinds of systems.
1.11 paf 1333:
1334: Usage: $0 [OPTION]... [VAR=VALUE]...
1335:
1336: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337: VAR=VALUE. See below for descriptions of some of the useful variables.
1338:
1339: Defaults for the options are specified in brackets.
1340:
1341: Configuration:
1342: -h, --help display this help and exit
1343: --help=short display options specific to this package
1344: --help=recursive display the short help of all the included packages
1345: -V, --version display version information and exit
1.32 moko 1346: -q, --quiet, --silent do not print \`checking ...' messages
1.11 paf 1347: --cache-file=FILE cache test results in FILE [disabled]
1348: -C, --config-cache alias for \`--cache-file=config.cache'
1349: -n, --no-create do not create output files
1350: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351:
1352: Installation directories:
1353: --prefix=PREFIX install architecture-independent files in PREFIX
1.32 moko 1354: [$ac_default_prefix]
1.11 paf 1355: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.32 moko 1356: [PREFIX]
1.11 paf 1357:
1358: By default, \`make install' will install all the files in
1359: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361: for instance \`--prefix=\$HOME'.
1362:
1363: For better control, use the options below.
1364:
1365: Fine tuning of the installation directories:
1.32 moko 1366: --bindir=DIR user executables [EPREFIX/bin]
1367: --sbindir=DIR system admin executables [EPREFIX/sbin]
1368: --libexecdir=DIR program executables [EPREFIX/libexec]
1369: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372: --libdir=DIR object code libraries [EPREFIX/lib]
1373: --includedir=DIR C header files [PREFIX/include]
1374: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377: --infodir=DIR info documentation [DATAROOTDIR/info]
1378: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379: --mandir=DIR man documentation [DATAROOTDIR/man]
1380: --docdir=DIR documentation root [DATAROOTDIR/doc/parser3]
1381: --htmldir=DIR html documentation [DOCDIR]
1382: --dvidir=DIR dvi documentation [DOCDIR]
1383: --pdfdir=DIR pdf documentation [DOCDIR]
1384: --psdir=DIR ps documentation [DOCDIR]
1.11 paf 1385: _ACEOF
1386:
1387: cat <<\_ACEOF
1388:
1389: Program names:
1390: --program-prefix=PREFIX prepend PREFIX to installed program names
1391: --program-suffix=SUFFIX append SUFFIX to installed program names
1392: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393:
1394: System types:
1395: --build=BUILD configure for building on BUILD [guessed]
1396: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397: _ACEOF
1398: fi
1399:
1400: if test -n "$ac_init_help"; then
1.25 moko 1401: case $ac_init_help in
1.33 ! moko 1402: short | recursive ) echo "Configuration of parser3 10.3:";;
1.25 moko 1403: esac
1.11 paf 1404: cat <<\_ACEOF
1405:
1406: Optional Features:
1.32 moko 1407: --disable-option-checking ignore unrecognized --enable/--with options
1.11 paf 1408: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.18 paf 1410: --disable-dependency-tracking speeds up one-time build
1411: --enable-dependency-tracking do not reject slow dependency extractors
1.32 moko 1412: --enable-static[=PKGS] build static libraries [default=no]
1413: --enable-shared[=PKGS] build shared libraries [default=yes]
1.25 moko 1414: --enable-fast-install[=PKGS]
1415: optimize for fast installation [default=yes]
1.11 paf 1416: --disable-libtool-lock avoid locking (might break parallel builds)
1.25 moko 1417: --enable-ltdl-install install libltdl
1.11 paf 1418:
1419: Optional Packages:
1420: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422: --with-oracleoci-inc=DIR DIR is the Oracle OCI includes directory
1423: --with-oraclepublic-inc=DIR DIR is the Oracle public includes directory
1.32 moko 1424: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.25 moko 1425: both]
1426: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427: --with-sysroot=DIR Search for dependent libraries within DIR
1428: (or the compiler's sysroot if not specified).
1429: --with-included-ltdl use the GNU ltdl sources included here
1430: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1431: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.11 paf 1432:
1433: Some influential environment variables:
1434: CXX C++ compiler command
1435: CXXFLAGS C++ compiler flags
1436: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437: nonstandard directory <lib dir>
1.32 moko 1438: LIBS libraries to pass to the linker, e.g. -l<library>
1439: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440: you have headers in a nonstandard directory <include dir>
1.11 paf 1441: CC C compiler command
1442: CFLAGS C compiler flags
1.15 paf 1443: CPP C preprocessor
1.25 moko 1444: CXXCPP C++ preprocessor
1.11 paf 1445:
1446: Use these variables to override the choices made by `configure' or to help
1447: it to find libraries and programs with nonstandard names/locations.
1448:
1.32 moko 1449: Report bugs to the package provider.
1.11 paf 1450: _ACEOF
1.32 moko 1451: ac_status=$?
1.11 paf 1452: fi
1453:
1454: if test "$ac_init_help" = "recursive"; then
1455: # If there are subdirs, report their specific --help.
1456: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.32 moko 1457: test -d "$ac_dir" ||
1458: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459: continue
1.11 paf 1460: ac_builddir=.
1461:
1.32 moko 1462: case "$ac_dir" in
1463: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464: *)
1465: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466: # A ".." for each directory in $ac_dir_suffix.
1467: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468: case $ac_top_builddir_sub in
1469: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471: esac ;;
1472: esac
1473: ac_abs_top_builddir=$ac_pwd
1474: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475: # for backward compatibility:
1476: ac_top_builddir=$ac_top_build_prefix
1.11 paf 1477:
1478: case $srcdir in
1.32 moko 1479: .) # We are building in place.
1.11 paf 1480: ac_srcdir=.
1.32 moko 1481: ac_top_srcdir=$ac_top_builddir_sub
1482: ac_abs_top_srcdir=$ac_pwd ;;
1483: [\\/]* | ?:[\\/]* ) # Absolute name.
1.11 paf 1484: ac_srcdir=$srcdir$ac_dir_suffix;
1.32 moko 1485: ac_top_srcdir=$srcdir
1486: ac_abs_top_srcdir=$srcdir ;;
1487: *) # Relative name.
1488: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489: ac_top_srcdir=$ac_top_build_prefix$srcdir
1490: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.18 paf 1491: esac
1.32 moko 1492: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.11 paf 1493:
1.32 moko 1494: cd "$ac_dir" || { ac_status=$?; continue; }
1495: # Check for guested configure.
1496: if test -f "$ac_srcdir/configure.gnu"; then
1497: echo &&
1498: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499: elif test -f "$ac_srcdir/configure"; then
1500: echo &&
1501: $SHELL "$ac_srcdir/configure" --help=recursive
1.11 paf 1502: else
1.32 moko 1503: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504: fi || ac_status=$?
1505: cd "$ac_pwd" || { ac_status=$?; break; }
1.11 paf 1506: done
1507: fi
1.1 parser 1508:
1.32 moko 1509: test -n "$ac_init_help" && exit $ac_status
1.11 paf 1510: if $ac_init_version; then
1511: cat <<\_ACEOF
1.33 ! moko 1512: parser3 configure 10.3
1.32 moko 1513: generated by GNU Autoconf 2.68
1.11 paf 1514:
1.32 moko 1515: Copyright (C) 2010 Free Software Foundation, Inc.
1.11 paf 1516: This configure script is free software; the Free Software Foundation
1517: gives unlimited permission to copy, distribute and modify it.
1518: _ACEOF
1.32 moko 1519: exit
1.11 paf 1520: fi
1521:
1.32 moko 1522: ## ------------------------ ##
1523: ## Autoconf initialization. ##
1524: ## ------------------------ ##
1525:
1526: # ac_fn_cxx_try_compile LINENO
1527: # ----------------------------
1528: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529: ac_fn_cxx_try_compile ()
1530: {
1531: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532: rm -f conftest.$ac_objext
1533: if { { ac_try="$ac_compile"
1534: case "(($ac_try" in
1535: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536: *) ac_try_echo=$ac_try;;
1537: esac
1538: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539: $as_echo "$ac_try_echo"; } >&5
1540: (eval "$ac_compile") 2>conftest.err
1541: ac_status=$?
1542: if test -s conftest.err; then
1543: grep -v '^ *+' conftest.err >conftest.er1
1544: cat conftest.er1 >&5
1545: mv -f conftest.er1 conftest.err
1546: fi
1547: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548: test $ac_status = 0; } && {
1549: test -z "$ac_cxx_werror_flag" ||
1550: test ! -s conftest.err
1551: } && test -s conftest.$ac_objext; then :
1552: ac_retval=0
1553: else
1554: $as_echo "$as_me: failed program was:" >&5
1555: sed 's/^/| /' conftest.$ac_ext >&5
1556:
1557: ac_retval=1
1558: fi
1559: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560: as_fn_set_status $ac_retval
1.11 paf 1561:
1.32 moko 1562: } # ac_fn_cxx_try_compile
1.11 paf 1563:
1.32 moko 1564: # ac_fn_c_try_compile LINENO
1565: # --------------------------
1566: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567: ac_fn_c_try_compile ()
1.11 paf 1568: {
1.32 moko 1569: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570: rm -f conftest.$ac_objext
1571: if { { ac_try="$ac_compile"
1572: case "(($ac_try" in
1573: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574: *) ac_try_echo=$ac_try;;
1575: esac
1576: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577: $as_echo "$ac_try_echo"; } >&5
1578: (eval "$ac_compile") 2>conftest.err
1579: ac_status=$?
1580: if test -s conftest.err; then
1581: grep -v '^ *+' conftest.err >conftest.er1
1582: cat conftest.er1 >&5
1583: mv -f conftest.er1 conftest.err
1584: fi
1585: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586: test $ac_status = 0; } && {
1587: test -z "$ac_c_werror_flag" ||
1588: test ! -s conftest.err
1589: } && test -s conftest.$ac_objext; then :
1590: ac_retval=0
1591: else
1592: $as_echo "$as_me: failed program was:" >&5
1593: sed 's/^/| /' conftest.$ac_ext >&5
1594:
1595: ac_retval=1
1596: fi
1597: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598: as_fn_set_status $ac_retval
1599:
1600: } # ac_fn_c_try_compile
1601:
1602: # ac_fn_c_try_link LINENO
1603: # -----------------------
1604: # Try to link conftest.$ac_ext, and return whether this succeeded.
1605: ac_fn_c_try_link ()
1606: {
1607: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608: rm -f conftest.$ac_objext conftest$ac_exeext
1609: if { { ac_try="$ac_link"
1610: case "(($ac_try" in
1611: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612: *) ac_try_echo=$ac_try;;
1613: esac
1614: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615: $as_echo "$ac_try_echo"; } >&5
1616: (eval "$ac_link") 2>conftest.err
1617: ac_status=$?
1618: if test -s conftest.err; then
1619: grep -v '^ *+' conftest.err >conftest.er1
1620: cat conftest.er1 >&5
1621: mv -f conftest.er1 conftest.err
1622: fi
1623: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624: test $ac_status = 0; } && {
1625: test -z "$ac_c_werror_flag" ||
1626: test ! -s conftest.err
1627: } && test -s conftest$ac_exeext && {
1628: test "$cross_compiling" = yes ||
1629: $as_test_x conftest$ac_exeext
1630: }; then :
1631: ac_retval=0
1632: else
1633: $as_echo "$as_me: failed program was:" >&5
1634: sed 's/^/| /' conftest.$ac_ext >&5
1635:
1636: ac_retval=1
1637: fi
1638: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640: # interfere with the next link command; also delete a directory that is
1641: # left behind by Apple's compiler. We do this before executing the actions.
1642: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644: as_fn_set_status $ac_retval
1645:
1646: } # ac_fn_c_try_link
1647:
1648: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649: # -------------------------------------------------------
1650: # Tests whether HEADER exists and can be compiled using the include files in
1651: # INCLUDES, setting the cache variable VAR accordingly.
1652: ac_fn_c_check_header_compile ()
1653: {
1654: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656: $as_echo_n "checking for $2... " >&6; }
1657: if eval \${$3+:} false; then :
1658: $as_echo_n "(cached) " >&6
1659: else
1660: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661: /* end confdefs.h. */
1662: $4
1663: #include <$2>
1664: _ACEOF
1665: if ac_fn_c_try_compile "$LINENO"; then :
1666: eval "$3=yes"
1667: else
1668: eval "$3=no"
1669: fi
1670: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671: fi
1672: eval ac_res=\$$3
1673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674: $as_echo "$ac_res" >&6; }
1675: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676:
1677: } # ac_fn_c_check_header_compile
1678:
1679: # ac_fn_c_try_cpp LINENO
1680: # ----------------------
1681: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682: ac_fn_c_try_cpp ()
1683: {
1684: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685: if { { ac_try="$ac_cpp conftest.$ac_ext"
1686: case "(($ac_try" in
1687: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688: *) ac_try_echo=$ac_try;;
1689: esac
1690: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691: $as_echo "$ac_try_echo"; } >&5
1692: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693: ac_status=$?
1694: if test -s conftest.err; then
1695: grep -v '^ *+' conftest.err >conftest.er1
1696: cat conftest.er1 >&5
1697: mv -f conftest.er1 conftest.err
1698: fi
1699: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700: test $ac_status = 0; } > conftest.i && {
1701: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702: test ! -s conftest.err
1703: }; then :
1704: ac_retval=0
1705: else
1706: $as_echo "$as_me: failed program was:" >&5
1707: sed 's/^/| /' conftest.$ac_ext >&5
1708:
1709: ac_retval=1
1710: fi
1711: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712: as_fn_set_status $ac_retval
1713:
1714: } # ac_fn_c_try_cpp
1715:
1716: # ac_fn_c_try_run LINENO
1717: # ----------------------
1718: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719: # that executables *can* be run.
1720: ac_fn_c_try_run ()
1721: {
1722: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723: if { { ac_try="$ac_link"
1724: case "(($ac_try" in
1725: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726: *) ac_try_echo=$ac_try;;
1727: esac
1728: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729: $as_echo "$ac_try_echo"; } >&5
1730: (eval "$ac_link") 2>&5
1731: ac_status=$?
1732: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734: { { case "(($ac_try" in
1735: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736: *) ac_try_echo=$ac_try;;
1737: esac
1738: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739: $as_echo "$ac_try_echo"; } >&5
1740: (eval "$ac_try") 2>&5
1741: ac_status=$?
1742: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743: test $ac_status = 0; }; }; then :
1744: ac_retval=0
1745: else
1746: $as_echo "$as_me: program exited with status $ac_status" >&5
1747: $as_echo "$as_me: failed program was:" >&5
1748: sed 's/^/| /' conftest.$ac_ext >&5
1749:
1750: ac_retval=$ac_status
1751: fi
1752: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754: as_fn_set_status $ac_retval
1755:
1756: } # ac_fn_c_try_run
1757:
1758: # ac_fn_c_check_func LINENO FUNC VAR
1759: # ----------------------------------
1760: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761: ac_fn_c_check_func ()
1762: {
1763: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765: $as_echo_n "checking for $2... " >&6; }
1766: if eval \${$3+:} false; then :
1767: $as_echo_n "(cached) " >&6
1768: else
1769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770: /* end confdefs.h. */
1771: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1773: #define $2 innocuous_$2
1774:
1775: /* System header to define __stub macros and hopefully few prototypes,
1776: which can conflict with char $2 (); below.
1777: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778: <limits.h> exists even on freestanding compilers. */
1779:
1780: #ifdef __STDC__
1781: # include <limits.h>
1782: #else
1783: # include <assert.h>
1784: #endif
1785:
1786: #undef $2
1787:
1788: /* Override any GCC internal prototype to avoid an error.
1789: Use char because int might match the return type of a GCC
1790: builtin and then its argument prototype would still apply. */
1791: #ifdef __cplusplus
1792: extern "C"
1793: #endif
1794: char $2 ();
1795: /* The GNU C library defines this for functions which it implements
1796: to always fail with ENOSYS. Some functions are actually named
1797: something starting with __ and the normal name is an alias. */
1798: #if defined __stub_$2 || defined __stub___$2
1799: choke me
1800: #endif
1801:
1802: int
1803: main ()
1804: {
1805: return $2 ();
1806: ;
1807: return 0;
1808: }
1809: _ACEOF
1810: if ac_fn_c_try_link "$LINENO"; then :
1811: eval "$3=yes"
1812: else
1813: eval "$3=no"
1814: fi
1815: rm -f core conftest.err conftest.$ac_objext \
1816: conftest$ac_exeext conftest.$ac_ext
1817: fi
1818: eval ac_res=\$$3
1819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820: $as_echo "$ac_res" >&6; }
1821: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822:
1823: } # ac_fn_c_check_func
1824:
1825: # ac_fn_cxx_try_cpp LINENO
1826: # ------------------------
1827: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828: ac_fn_cxx_try_cpp ()
1829: {
1830: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831: if { { ac_try="$ac_cpp conftest.$ac_ext"
1832: case "(($ac_try" in
1833: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834: *) ac_try_echo=$ac_try;;
1835: esac
1836: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837: $as_echo "$ac_try_echo"; } >&5
1838: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839: ac_status=$?
1840: if test -s conftest.err; then
1841: grep -v '^ *+' conftest.err >conftest.er1
1842: cat conftest.er1 >&5
1843: mv -f conftest.er1 conftest.err
1844: fi
1845: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846: test $ac_status = 0; } > conftest.i && {
1847: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1848: test ! -s conftest.err
1849: }; then :
1850: ac_retval=0
1851: else
1852: $as_echo "$as_me: failed program was:" >&5
1853: sed 's/^/| /' conftest.$ac_ext >&5
1854:
1855: ac_retval=1
1856: fi
1857: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858: as_fn_set_status $ac_retval
1859:
1860: } # ac_fn_cxx_try_cpp
1861:
1862: # ac_fn_cxx_try_link LINENO
1863: # -------------------------
1864: # Try to link conftest.$ac_ext, and return whether this succeeded.
1865: ac_fn_cxx_try_link ()
1866: {
1867: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868: rm -f conftest.$ac_objext conftest$ac_exeext
1869: if { { ac_try="$ac_link"
1870: case "(($ac_try" in
1871: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872: *) ac_try_echo=$ac_try;;
1873: esac
1874: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875: $as_echo "$ac_try_echo"; } >&5
1876: (eval "$ac_link") 2>conftest.err
1877: ac_status=$?
1878: if test -s conftest.err; then
1879: grep -v '^ *+' conftest.err >conftest.er1
1880: cat conftest.er1 >&5
1881: mv -f conftest.er1 conftest.err
1882: fi
1883: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884: test $ac_status = 0; } && {
1885: test -z "$ac_cxx_werror_flag" ||
1886: test ! -s conftest.err
1887: } && test -s conftest$ac_exeext && {
1888: test "$cross_compiling" = yes ||
1889: $as_test_x conftest$ac_exeext
1890: }; then :
1891: ac_retval=0
1892: else
1893: $as_echo "$as_me: failed program was:" >&5
1894: sed 's/^/| /' conftest.$ac_ext >&5
1895:
1896: ac_retval=1
1897: fi
1898: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900: # interfere with the next link command; also delete a directory that is
1901: # left behind by Apple's compiler. We do this before executing the actions.
1902: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904: as_fn_set_status $ac_retval
1905:
1906: } # ac_fn_cxx_try_link
1907:
1908: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1909: # ---------------------------------------------
1910: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1911: # accordingly.
1912: ac_fn_c_check_decl ()
1913: {
1914: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915: as_decl_name=`echo $2|sed 's/ *(.*//'`
1916: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1918: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1919: if eval \${$3+:} false; then :
1920: $as_echo_n "(cached) " >&6
1921: else
1922: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923: /* end confdefs.h. */
1924: $4
1925: int
1926: main ()
1927: {
1928: #ifndef $as_decl_name
1929: #ifdef __cplusplus
1930: (void) $as_decl_use;
1931: #else
1932: (void) $as_decl_name;
1933: #endif
1934: #endif
1935:
1936: ;
1937: return 0;
1938: }
1939: _ACEOF
1940: if ac_fn_c_try_compile "$LINENO"; then :
1941: eval "$3=yes"
1942: else
1943: eval "$3=no"
1944: fi
1945: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946: fi
1947: eval ac_res=\$$3
1948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949: $as_echo "$ac_res" >&6; }
1950: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951:
1952: } # ac_fn_c_check_decl
1953:
1954: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1955: # -------------------------------------------
1956: # Tests whether TYPE exists after having included INCLUDES, setting cache
1957: # variable VAR accordingly.
1958: ac_fn_c_check_type ()
1959: {
1960: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962: $as_echo_n "checking for $2... " >&6; }
1963: if eval \${$3+:} false; then :
1964: $as_echo_n "(cached) " >&6
1965: else
1966: eval "$3=no"
1967: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968: /* end confdefs.h. */
1969: $4
1970: int
1971: main ()
1972: {
1973: if (sizeof ($2))
1974: return 0;
1975: ;
1976: return 0;
1977: }
1978: _ACEOF
1979: if ac_fn_c_try_compile "$LINENO"; then :
1980: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981: /* end confdefs.h. */
1982: $4
1983: int
1984: main ()
1985: {
1986: if (sizeof (($2)))
1987: return 0;
1988: ;
1989: return 0;
1990: }
1991: _ACEOF
1992: if ac_fn_c_try_compile "$LINENO"; then :
1993:
1994: else
1995: eval "$3=yes"
1996: fi
1997: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998: fi
1999: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000: fi
2001: eval ac_res=\$$3
2002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003: $as_echo "$ac_res" >&6; }
2004: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005:
2006: } # ac_fn_c_check_type
2007:
2008: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2009: # -------------------------------------------------------
2010: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2011: # the include files in INCLUDES and setting the cache variable VAR
2012: # accordingly.
2013: ac_fn_c_check_header_mongrel ()
2014: {
2015: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016: if eval \${$3+:} false; then :
2017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018: $as_echo_n "checking for $2... " >&6; }
2019: if eval \${$3+:} false; then :
2020: $as_echo_n "(cached) " >&6
2021: fi
2022: eval ac_res=\$$3
2023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024: $as_echo "$ac_res" >&6; }
2025: else
2026: # Is the header compilable?
2027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2028: $as_echo_n "checking $2 usability... " >&6; }
2029: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030: /* end confdefs.h. */
2031: $4
2032: #include <$2>
2033: _ACEOF
2034: if ac_fn_c_try_compile "$LINENO"; then :
2035: ac_header_compiler=yes
2036: else
2037: ac_header_compiler=no
2038: fi
2039: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2041: $as_echo "$ac_header_compiler" >&6; }
2042:
2043: # Is the header present?
2044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2045: $as_echo_n "checking $2 presence... " >&6; }
2046: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047: /* end confdefs.h. */
2048: #include <$2>
2049: _ACEOF
2050: if ac_fn_c_try_cpp "$LINENO"; then :
2051: ac_header_preproc=yes
2052: else
2053: ac_header_preproc=no
2054: fi
2055: rm -f conftest.err conftest.i conftest.$ac_ext
2056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2057: $as_echo "$ac_header_preproc" >&6; }
2058:
2059: # So? What about this header?
2060: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2061: yes:no: )
2062: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2063: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2064: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2066: ;;
2067: no:yes:* )
2068: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2069: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2070: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2071: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2072: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2073: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2074: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2075: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2076: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2077: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2078: ;;
2079: esac
2080: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081: $as_echo_n "checking for $2... " >&6; }
2082: if eval \${$3+:} false; then :
2083: $as_echo_n "(cached) " >&6
2084: else
2085: eval "$3=\$ac_header_compiler"
2086: fi
2087: eval ac_res=\$$3
2088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089: $as_echo "$ac_res" >&6; }
2090: fi
2091: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092:
2093: } # ac_fn_c_check_header_mongrel
2094: cat >config.log <<_ACEOF
2095: This file contains any messages produced by compilers while
2096: running configure, to aid debugging if configure makes a mistake.
2097:
1.33 ! moko 2098: It was created by parser3 $as_me 10.3, which was
1.32 moko 2099: generated by GNU Autoconf 2.68. Invocation command line was
2100:
2101: $ $0 $@
2102:
2103: _ACEOF
2104: exec 5>>config.log
2105: {
2106: cat <<_ASUNAME
2107: ## --------- ##
2108: ## Platform. ##
2109: ## --------- ##
1.11 paf 2110:
2111: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2112: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2113: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2114: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2115: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116:
2117: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2118: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119:
2120: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2121: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2122: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.32 moko 2123: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.11 paf 2124: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2125: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2126: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127:
2128: _ASUNAME
2129:
2130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131: for as_dir in $PATH
2132: do
2133: IFS=$as_save_IFS
2134: test -z "$as_dir" && as_dir=.
1.32 moko 2135: $as_echo "PATH: $as_dir"
2136: done
2137: IFS=$as_save_IFS
1.11 paf 2138:
2139: } >&5
2140:
2141: cat >&5 <<_ACEOF
2142:
2143:
2144: ## ----------- ##
2145: ## Core tests. ##
2146: ## ----------- ##
2147:
2148: _ACEOF
2149:
2150:
2151: # Keep a trace of the command line.
2152: # Strip out --no-create and --no-recursion so they do not pile up.
2153: # Strip out --silent because we don't want to record it for future runs.
2154: # Also quote any args containing shell meta-characters.
2155: # Make two passes to allow for proper duplicate-argument suppression.
2156: ac_configure_args=
2157: ac_configure_args0=
2158: ac_configure_args1=
2159: ac_must_keep_next=false
2160: for ac_pass in 1 2
2161: do
2162: for ac_arg
2163: do
2164: case $ac_arg in
2165: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2166: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2167: | -silent | --silent | --silen | --sile | --sil)
2168: continue ;;
1.32 moko 2169: *\'*)
2170: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.11 paf 2171: esac
2172: case $ac_pass in
1.32 moko 2173: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.11 paf 2174: 2)
1.32 moko 2175: as_fn_append ac_configure_args1 " '$ac_arg'"
1.11 paf 2176: if test $ac_must_keep_next = true; then
1.18 paf 2177: ac_must_keep_next=false # Got value, back to normal.
1.11 paf 2178: else
1.18 paf 2179: case $ac_arg in
2180: *=* | --config-cache | -C | -disable-* | --disable-* \
2181: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2182: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2183: | -with-* | --with-* | -without-* | --without-* | --x)
2184: case "$ac_configure_args0 " in
2185: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2186: esac
2187: ;;
2188: -* ) ac_must_keep_next=true ;;
2189: esac
1.11 paf 2190: fi
1.32 moko 2191: as_fn_append ac_configure_args " '$ac_arg'"
1.11 paf 2192: ;;
2193: esac
2194: done
2195: done
1.32 moko 2196: { ac_configure_args0=; unset ac_configure_args0;}
2197: { ac_configure_args1=; unset ac_configure_args1;}
1.11 paf 2198:
2199: # When interrupted or exit'd, cleanup temporary files, and complete
2200: # config.log. We remove comments because anyway the quotes in there
2201: # would cause problems or look ugly.
1.32 moko 2202: # WARNING: Use '\'' to represent an apostrophe within the trap.
2203: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.11 paf 2204: trap 'exit_status=$?
2205: # Save into config.log some information that might help in debugging.
2206: {
2207: echo
2208:
1.32 moko 2209: $as_echo "## ---------------- ##
1.11 paf 2210: ## Cache variables. ##
1.32 moko 2211: ## ---------------- ##"
1.11 paf 2212: echo
2213: # The following way of writing the cache mishandles newlines in values,
1.32 moko 2214: (
2215: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216: eval ac_val=\$$ac_var
2217: case $ac_val in #(
2218: *${as_nl}*)
2219: case $ac_var in #(
2220: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222: esac
2223: case $ac_var in #(
2224: _ | IFS | as_nl) ;; #(
2225: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226: *) { eval $ac_var=; unset $ac_var;} ;;
2227: esac ;;
2228: esac
2229: done
1.11 paf 2230: (set) 2>&1 |
1.32 moko 2231: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232: *${as_nl}ac_space=\ *)
1.11 paf 2233: sed -n \
1.32 moko 2234: "s/'\''/'\''\\\\'\'''\''/g;
2235: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236: ;; #(
1.11 paf 2237: *)
1.32 moko 2238: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.11 paf 2239: ;;
1.32 moko 2240: esac |
2241: sort
2242: )
1.11 paf 2243: echo
2244:
1.32 moko 2245: $as_echo "## ----------------- ##
1.11 paf 2246: ## Output variables. ##
1.32 moko 2247: ## ----------------- ##"
1.11 paf 2248: echo
2249: for ac_var in $ac_subst_vars
2250: do
1.32 moko 2251: eval ac_val=\$$ac_var
2252: case $ac_val in
2253: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254: esac
2255: $as_echo "$ac_var='\''$ac_val'\''"
1.11 paf 2256: done | sort
2257: echo
2258:
2259: if test -n "$ac_subst_files"; then
1.32 moko 2260: $as_echo "## ------------------- ##
2261: ## File substitutions. ##
2262: ## ------------------- ##"
1.11 paf 2263: echo
2264: for ac_var in $ac_subst_files
2265: do
1.32 moko 2266: eval ac_val=\$$ac_var
2267: case $ac_val in
2268: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269: esac
2270: $as_echo "$ac_var='\''$ac_val'\''"
1.11 paf 2271: done | sort
2272: echo
2273: fi
2274:
2275: if test -s confdefs.h; then
1.32 moko 2276: $as_echo "## ----------- ##
1.11 paf 2277: ## confdefs.h. ##
1.32 moko 2278: ## ----------- ##"
1.11 paf 2279: echo
1.32 moko 2280: cat confdefs.h
1.11 paf 2281: echo
2282: fi
2283: test "$ac_signal" != 0 &&
1.32 moko 2284: $as_echo "$as_me: caught signal $ac_signal"
2285: $as_echo "$as_me: exit $exit_status"
1.11 paf 2286: } >&5
1.32 moko 2287: rm -f core *.core core.conftest.* &&
2288: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.11 paf 2289: exit $exit_status
1.32 moko 2290: ' 0
1.11 paf 2291: for ac_signal in 1 2 13 15; do
1.32 moko 2292: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.11 paf 2293: done
2294: ac_signal=0
2295:
2296: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.32 moko 2297: rm -f -r conftest* confdefs.h
2298:
2299: $as_echo "/* confdefs.h */" > confdefs.h
1.11 paf 2300:
2301: # Predefined preprocessor variables.
2302:
2303: cat >>confdefs.h <<_ACEOF
2304: #define PACKAGE_NAME "$PACKAGE_NAME"
2305: _ACEOF
2306:
2307: cat >>confdefs.h <<_ACEOF
2308: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2309: _ACEOF
2310:
2311: cat >>confdefs.h <<_ACEOF
2312: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2313: _ACEOF
2314:
2315: cat >>confdefs.h <<_ACEOF
2316: #define PACKAGE_STRING "$PACKAGE_STRING"
2317: _ACEOF
2318:
1.32 moko 2319: cat >>confdefs.h <<_ACEOF
2320: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2321: _ACEOF
1.11 paf 2322:
2323: cat >>confdefs.h <<_ACEOF
1.32 moko 2324: #define PACKAGE_URL "$PACKAGE_URL"
1.11 paf 2325: _ACEOF
2326:
2327:
2328: # Let the site file select an alternate cache file if it wants to.
1.32 moko 2329: # Prefer an explicitly selected file to automatically selected ones.
2330: ac_site_file1=NONE
2331: ac_site_file2=NONE
2332: if test -n "$CONFIG_SITE"; then
2333: # We do not want a PATH search for config.site.
2334: case $CONFIG_SITE in #((
2335: -*) ac_site_file1=./$CONFIG_SITE;;
2336: */*) ac_site_file1=$CONFIG_SITE;;
2337: *) ac_site_file1=./$CONFIG_SITE;;
2338: esac
2339: elif test "x$prefix" != xNONE; then
2340: ac_site_file1=$prefix/share/config.site
2341: ac_site_file2=$prefix/etc/config.site
2342: else
2343: ac_site_file1=$ac_default_prefix/share/config.site
2344: ac_site_file2=$ac_default_prefix/etc/config.site
2345: fi
2346: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347: do
2348: test "x$ac_site_file" = xNONE && continue
2349: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2350: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.11 paf 2352: sed 's/^/| /' "$ac_site_file" >&5
1.32 moko 2353: . "$ac_site_file" \
2354: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356: as_fn_error $? "failed to load site script $ac_site_file
2357: See \`config.log' for more details" "$LINENO" 5; }
1.1 parser 2358: fi
2359: done
2360:
2361: if test -r "$cache_file"; then
1.32 moko 2362: # Some versions of bash will fail to source /dev/null (special files
2363: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2365: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.11 paf 2367: case $cache_file in
1.32 moko 2368: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369: *) . "./$cache_file";;
1.11 paf 2370: esac
2371: fi
1.1 parser 2372: else
1.32 moko 2373: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.11 paf 2375: >$cache_file
2376: fi
2377:
2378: # Check that the precious variables saved in the cache have kept the same
2379: # value.
2380: ac_cache_corrupted=false
1.32 moko 2381: for ac_var in $ac_precious_vars; do
1.11 paf 2382: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383: eval ac_new_set=\$ac_env_${ac_var}_set
1.32 moko 2384: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385: eval ac_new_val=\$ac_env_${ac_var}_value
1.11 paf 2386: case $ac_old_set,$ac_new_set in
2387: set,)
1.32 moko 2388: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2389: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.11 paf 2390: ac_cache_corrupted=: ;;
2391: ,set)
1.32 moko 2392: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2393: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.11 paf 2394: ac_cache_corrupted=: ;;
2395: ,);;
2396: *)
2397: if test "x$ac_old_val" != "x$ac_new_val"; then
1.32 moko 2398: # differences in whitespace do not lead to failure.
2399: ac_old_val_w=`echo x $ac_old_val`
2400: ac_new_val_w=`echo x $ac_new_val`
2401: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2402: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2403: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404: ac_cache_corrupted=:
2405: else
2406: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2407: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408: eval $ac_var=\$ac_old_val
2409: fi
2410: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2411: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2412: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2413: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.11 paf 2414: fi;;
2415: esac
2416: # Pass precious variables to config.status.
2417: if test "$ac_new_set" = set; then
2418: case $ac_new_val in
1.32 moko 2419: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.11 paf 2420: *) ac_arg=$ac_var=$ac_new_val ;;
2421: esac
2422: case " $ac_configure_args " in
2423: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.32 moko 2424: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.11 paf 2425: esac
2426: fi
2427: done
2428: if $ac_cache_corrupted; then
1.32 moko 2429: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2432: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2433: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2434: fi
2435: ## -------------------- ##
2436: ## Main body of script. ##
2437: ## -------------------- ##
1.1 parser 2438:
2439: ac_ext=c
2440: ac_cpp='$CPP $CPPFLAGS'
1.11 paf 2441: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 2444:
2445:
1.11 paf 2446:
1.32 moko 2447: ac_config_headers="$ac_config_headers config_auto.h"
1.11 paf 2448:
2449:
1.32 moko 2450: am__api_version='1.11'
1.11 paf 2451:
1.1 parser 2452: ac_aux_dir=
1.32 moko 2453: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2454: if test -f "$ac_dir/install-sh"; then
1.1 parser 2455: ac_aux_dir=$ac_dir
2456: ac_install_sh="$ac_aux_dir/install-sh -c"
2457: break
1.32 moko 2458: elif test -f "$ac_dir/install.sh"; then
1.1 parser 2459: ac_aux_dir=$ac_dir
2460: ac_install_sh="$ac_aux_dir/install.sh -c"
2461: break
1.32 moko 2462: elif test -f "$ac_dir/shtool"; then
1.11 paf 2463: ac_aux_dir=$ac_dir
2464: ac_install_sh="$ac_aux_dir/shtool install -c"
2465: break
1.1 parser 2466: fi
2467: done
2468: if test -z "$ac_aux_dir"; then
1.32 moko 2469: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2470: fi
2471:
2472: # These three variables are undocumented and unsupported,
2473: # and are intended to be withdrawn in a future Autoconf release.
2474: # They can cause serious problems if a builder's source tree is in a directory
2475: # whose full name contains unusual characters.
2476: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2477: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2478: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2479:
1.1 parser 2480:
2481: # Find a good install program. We prefer a C program (faster),
2482: # so one script is as good as another. But avoid the broken or
2483: # incompatible versions:
2484: # SysV /etc/install, /usr/sbin/install
2485: # SunOS /usr/etc/install
2486: # IRIX /sbin/install
2487: # AIX /bin/install
1.11 paf 2488: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 2489: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.18 paf 2492: # OS/2's system install, which has a completely different semantic
1.1 parser 2493: # ./install, which can be erroneously created by make from ./install.sh.
1.32 moko 2494: # Reject install programs that cannot install multiple files.
2495: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2496: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 parser 2497: if test -z "$INSTALL"; then
1.32 moko 2498: if ${ac_cv_path_install+:} false; then :
2499: $as_echo_n "(cached) " >&6
1.1 parser 2500: else
1.11 paf 2501: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502: for as_dir in $PATH
2503: do
2504: IFS=$as_save_IFS
2505: test -z "$as_dir" && as_dir=.
1.32 moko 2506: # Account for people who put trailing slashes in PATH elements.
2507: case $as_dir/ in #((
2508: ./ | .// | /[cC]/* | \
1.11 paf 2509: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.32 moko 2510: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.11 paf 2511: /usr/ucb/* ) ;;
2512: *)
2513: # OSF1 and SCO ODT 3.0 have their own names for install.
2514: # Don't use installbsd from OSF since it installs stuff as root
2515: # by default.
2516: for ac_prog in ginstall scoinst install; do
2517: for ac_exec_ext in '' $ac_executable_extensions; do
1.32 moko 2518: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.18 paf 2519: if test $ac_prog = install &&
2520: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521: # AIX install. It has an incompatible calling convention.
2522: :
2523: elif test $ac_prog = install &&
2524: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525: # program-specific install script used by HP pwplus--don't use.
2526: :
2527: else
1.32 moko 2528: rm -rf conftest.one conftest.two conftest.dir
2529: echo one > conftest.one
2530: echo two > conftest.two
2531: mkdir conftest.dir
2532: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2533: test -s conftest.one && test -s conftest.two &&
2534: test -s conftest.dir/conftest.one &&
2535: test -s conftest.dir/conftest.two
2536: then
2537: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538: break 3
2539: fi
1.18 paf 2540: fi
2541: fi
1.1 parser 2542: done
1.11 paf 2543: done
2544: ;;
2545: esac
2546:
1.32 moko 2547: done
2548: IFS=$as_save_IFS
2549:
2550: rm -rf conftest.one conftest.two conftest.dir
1.1 parser 2551:
2552: fi
2553: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 2554: INSTALL=$ac_cv_path_install
1.1 parser 2555: else
1.32 moko 2556: # As a last resort, use the slow shell script. Don't cache a
2557: # value for INSTALL within a source directory, because that will
1.1 parser 2558: # break other packages using the cache if that directory is
1.32 moko 2559: # removed, or if the value is a relative name.
1.11 paf 2560: INSTALL=$ac_install_sh
1.1 parser 2561: fi
2562: fi
1.32 moko 2563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2564: $as_echo "$INSTALL" >&6; }
1.1 parser 2565:
2566: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567: # It thinks the first close brace ends the variable substitution.
2568: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569:
1.11 paf 2570: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 2571:
2572: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573:
1.32 moko 2574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2575: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 parser 2576: # Just in case
2577: sleep 1
1.11 paf 2578: echo timestamp > conftest.file
1.32 moko 2579: # Reject unsafe characters in $srcdir or the absolute working directory
2580: # name. Accept space and tab only in the latter.
2581: am_lf='
2582: '
2583: case `pwd` in
2584: *[\\\"\#\$\&\'\`$am_lf]*)
2585: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2586: esac
2587: case $srcdir in
2588: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2589: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2590: esac
2591:
1.1 parser 2592: # Do `set' in a subshell so we don't clobber the current shell's
2593: # arguments. Must try -L first in case configure is actually a
2594: # symlink; some systems play weird games with the mod time of symlinks
2595: # (eg FreeBSD returns the mod time of the symlink's containing
2596: # directory).
2597: if (
1.32 moko 2598: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 parser 2599: if test "$*" = "X"; then
2600: # -L didn't work.
1.32 moko 2601: set X `ls -t "$srcdir/configure" conftest.file`
1.1 parser 2602: fi
1.11 paf 2603: rm -f conftest.file
2604: if test "$*" != "X $srcdir/configure conftest.file" \
2605: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 2606:
2607: # If neither matched, then we have a broken ls. This can happen
2608: # if, for instance, CONFIG_SHELL is bash and it inherits a
2609: # broken ls alias from the environment. This has actually
2610: # happened. Such a system could not be considered "sane".
1.32 moko 2611: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2612: alias in your environment" "$LINENO" 5
1.1 parser 2613: fi
2614:
1.11 paf 2615: test "$2" = conftest.file
1.1 parser 2616: )
2617: then
2618: # Ok.
2619: :
2620: else
1.32 moko 2621: as_fn_error $? "newly created file is older than distributed files!
2622: Check your system clock" "$LINENO" 5
1.1 parser 2623: fi
1.32 moko 2624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2625: $as_echo "yes" >&6; }
1.1 parser 2626: test "$program_prefix" != NONE &&
1.32 moko 2627: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 parser 2628: # Use a double $ so make ignores it.
2629: test "$program_suffix" != NONE &&
1.32 moko 2630: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2631: # Double any \ or $.
1.11 paf 2632: # By default was `s,x,x', remove it if useless.
1.32 moko 2633: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2634: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.11 paf 2635:
2636: # expand $ac_aux_dir to an absolute path
2637: am_aux_dir=`cd $ac_aux_dir && pwd`
2638:
1.32 moko 2639: if test x"${MISSING+set}" != xset; then
2640: case $am_aux_dir in
2641: *\ * | *\ *)
2642: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2643: *)
2644: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2645: esac
2646: fi
1.11 paf 2647: # Use eval to expand $SHELL
2648: if eval "$MISSING --run true"; then
2649: am_missing_run="$MISSING --run "
2650: else
2651: am_missing_run=
1.32 moko 2652: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2653: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.11 paf 2654: fi
2655:
1.32 moko 2656: if test x"${install_sh}" != xset; then
2657: case $am_aux_dir in
2658: *\ * | *\ *)
2659: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2660: *)
2661: install_sh="\${SHELL} $am_aux_dir/install-sh"
2662: esac
2663: fi
2664:
2665: # Installed binaries are usually stripped using `strip' when the user
2666: # run `make install-strip'. However `strip' might not be the right
2667: # tool to use in cross-compilation environments, therefore Automake
2668: # will honor the `STRIP' environment variable to overrule this program.
2669: if test "$cross_compiling" != no; then
2670: if test -n "$ac_tool_prefix"; then
2671: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2672: set dummy ${ac_tool_prefix}strip; ac_word=$2
2673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674: $as_echo_n "checking for $ac_word... " >&6; }
2675: if ${ac_cv_prog_STRIP+:} false; then :
2676: $as_echo_n "(cached) " >&6
2677: else
2678: if test -n "$STRIP"; then
2679: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2680: else
2681: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682: for as_dir in $PATH
2683: do
2684: IFS=$as_save_IFS
2685: test -z "$as_dir" && as_dir=.
2686: for ac_exec_ext in '' $ac_executable_extensions; do
2687: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2689: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690: break 2
2691: fi
2692: done
2693: done
2694: IFS=$as_save_IFS
2695:
2696: fi
2697: fi
2698: STRIP=$ac_cv_prog_STRIP
2699: if test -n "$STRIP"; then
2700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2701: $as_echo "$STRIP" >&6; }
2702: else
2703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704: $as_echo "no" >&6; }
2705: fi
2706:
2707:
2708: fi
2709: if test -z "$ac_cv_prog_STRIP"; then
2710: ac_ct_STRIP=$STRIP
2711: # Extract the first word of "strip", so it can be a program name with args.
2712: set dummy strip; ac_word=$2
2713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714: $as_echo_n "checking for $ac_word... " >&6; }
2715: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2716: $as_echo_n "(cached) " >&6
2717: else
2718: if test -n "$ac_ct_STRIP"; then
2719: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2720: else
2721: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722: for as_dir in $PATH
2723: do
2724: IFS=$as_save_IFS
2725: test -z "$as_dir" && as_dir=.
2726: for ac_exec_ext in '' $ac_executable_extensions; do
2727: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728: ac_cv_prog_ac_ct_STRIP="strip"
2729: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730: break 2
2731: fi
2732: done
2733: done
2734: IFS=$as_save_IFS
2735:
2736: fi
2737: fi
2738: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2739: if test -n "$ac_ct_STRIP"; then
2740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2741: $as_echo "$ac_ct_STRIP" >&6; }
2742: else
2743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744: $as_echo "no" >&6; }
2745: fi
2746:
2747: if test "x$ac_ct_STRIP" = x; then
2748: STRIP=":"
2749: else
2750: case $cross_compiling:$ac_tool_warned in
2751: yes:)
2752: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754: ac_tool_warned=yes ;;
2755: esac
2756: STRIP=$ac_ct_STRIP
2757: fi
2758: else
2759: STRIP="$ac_cv_prog_STRIP"
2760: fi
2761:
2762: fi
2763: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2764:
2765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2766: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2767: if test -z "$MKDIR_P"; then
2768: if ${ac_cv_path_mkdir+:} false; then :
2769: $as_echo_n "(cached) " >&6
2770: else
2771: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2773: do
2774: IFS=$as_save_IFS
2775: test -z "$as_dir" && as_dir=.
2776: for ac_prog in mkdir gmkdir; do
2777: for ac_exec_ext in '' $ac_executable_extensions; do
2778: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2779: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2780: 'mkdir (GNU coreutils) '* | \
2781: 'mkdir (coreutils) '* | \
2782: 'mkdir (fileutils) '4.1*)
2783: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2784: break 3;;
2785: esac
2786: done
2787: done
1.18 paf 2788: done
1.32 moko 2789: IFS=$as_save_IFS
2790:
2791: fi
2792:
2793: test -d ./--version && rmdir ./--version
2794: if test "${ac_cv_path_mkdir+set}" = set; then
2795: MKDIR_P="$ac_cv_path_mkdir -p"
1.18 paf 2796: else
1.32 moko 2797: # As a last resort, use the slow shell script. Don't cache a
2798: # value for MKDIR_P within a source directory, because that will
2799: # break other packages using the cache if that directory is
2800: # removed, or if the value is a relative name.
2801: MKDIR_P="$ac_install_sh -d"
1.18 paf 2802: fi
2803: fi
1.32 moko 2804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2805: $as_echo "$MKDIR_P" >&6; }
2806:
2807: mkdir_p="$MKDIR_P"
2808: case $mkdir_p in
2809: [\\/$]* | ?:[\\/]*) ;;
2810: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2811: esac
1.18 paf 2812:
1.11 paf 2813: for ac_prog in gawk mawk nawk awk
2814: do
2815: # Extract the first word of "$ac_prog", so it can be a program name with args.
2816: set dummy $ac_prog; ac_word=$2
1.32 moko 2817: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818: $as_echo_n "checking for $ac_word... " >&6; }
2819: if ${ac_cv_prog_AWK+:} false; then :
2820: $as_echo_n "(cached) " >&6
1.11 paf 2821: else
2822: if test -n "$AWK"; then
2823: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2824: else
2825: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826: for as_dir in $PATH
2827: do
2828: IFS=$as_save_IFS
2829: test -z "$as_dir" && as_dir=.
1.32 moko 2830: for ac_exec_ext in '' $ac_executable_extensions; do
2831: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11 paf 2832: ac_cv_prog_AWK="$ac_prog"
1.32 moko 2833: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 2834: break 2
2835: fi
2836: done
1.32 moko 2837: done
2838: IFS=$as_save_IFS
1.11 paf 2839:
2840: fi
2841: fi
2842: AWK=$ac_cv_prog_AWK
2843: if test -n "$AWK"; then
1.32 moko 2844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2845: $as_echo "$AWK" >&6; }
1.11 paf 2846: else
1.32 moko 2847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848: $as_echo "no" >&6; }
1.11 paf 2849: fi
1.1 parser 2850:
1.32 moko 2851:
1.11 paf 2852: test -n "$AWK" && break
2853: done
1.1 parser 2854:
1.32 moko 2855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2856: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2857: set x ${MAKE-make}
2858: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2859: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2860: $as_echo_n "(cached) " >&6
1.1 parser 2861: else
1.11 paf 2862: cat >conftest.make <<\_ACEOF
1.32 moko 2863: SHELL = /bin/sh
1.1 parser 2864: all:
1.32 moko 2865: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.11 paf 2866: _ACEOF
1.32 moko 2867: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2868: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2869: *@@@%%%=?*=@@@%%%*)
2870: eval ac_cv_prog_make_${ac_make}_set=yes;;
2871: *)
2872: eval ac_cv_prog_make_${ac_make}_set=no;;
2873: esac
1.11 paf 2874: rm -f conftest.make
1.1 parser 2875: fi
1.32 moko 2876: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878: $as_echo "yes" >&6; }
1.1 parser 2879: SET_MAKE=
2880: else
1.32 moko 2881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882: $as_echo "no" >&6; }
1.1 parser 2883: SET_MAKE="MAKE=${MAKE-make}"
2884: fi
2885:
1.18 paf 2886: rm -rf .tst 2>/dev/null
2887: mkdir .tst 2>/dev/null
2888: if test -d .tst; then
2889: am__leading_dot=.
2890: else
2891: am__leading_dot=_
2892: fi
2893: rmdir .tst 2>/dev/null
2894:
1.32 moko 2895: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2896: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2897: # is not polluted with repeated "-I."
2898: am__isrc=' -I$(srcdir)'
2899: # test to see if srcdir already configured
2900: if test -f $srcdir/config.status; then
2901: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2902: fi
1.11 paf 2903: fi
2904:
2905: # test whether we have cygpath
2906: if test -z "$CYGPATH_W"; then
2907: if (cygpath --version) >/dev/null 2>/dev/null; then
2908: CYGPATH_W='cygpath -w'
2909: else
2910: CYGPATH_W=echo
2911: fi
2912: fi
2913:
2914:
2915: # Define the identity of the package.
1.25 moko 2916: PACKAGE='parser3'
1.33 ! moko 2917: VERSION='10.3'
1.1 parser 2918:
2919:
1.25 moko 2920: cat >>confdefs.h <<_ACEOF
2921: #define PACKAGE "$PACKAGE"
2922: _ACEOF
2923:
2924:
2925: cat >>confdefs.h <<_ACEOF
2926: #define VERSION "$VERSION"
2927: _ACEOF
2928:
1.11 paf 2929: # Some tools Automake needs.
2930:
2931: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2932:
2933:
2934: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2935:
2936:
2937: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2938:
2939:
2940: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2941:
2942:
2943: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 2944:
1.11 paf 2945: # We need awk for the "check" target. The system "awk" is bad on
2946: # some platforms.
1.18 paf 2947: # Always define AMTAR for backward compatibility.
2948:
2949: AMTAR=${AMTAR-"${am_missing_run}tar"}
2950:
2951: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2952:
2953:
1.1 parser 2954:
2955:
2956:
2957:
2958:
1.32 moko 2959: # Check whether --with-oracleoci-inc was given.
2960: if test "${with_oracleoci_inc+set}" = set; then :
2961: withval=$with_oracleoci_inc;
1.1 parser 2962: else
2963: withval="$ORACLE_HOME/rdbms/demo"
2964:
1.32 moko 2965: fi
2966:
1.25 moko 2967:
1.2 parser 2968: ORACLE_OCI_INC=$withval
1.1 parser 2969:
2970:
1.2 parser 2971: if test \! -f "$ORACLE_OCI_INC/oci.h"; then
1.32 moko 2972: as_fn_error $? "$ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" "$LINENO" 5
1.2 parser 2973: fi
2974:
2975:
1.32 moko 2976: # Check whether --with-oraclepublic-inc was given.
2977: if test "${with_oraclepublic_inc+set}" = set; then :
2978: withval=$with_oraclepublic_inc;
1.1 parser 2979: else
2980: withval="$ORACLE_HOME/network/public"
2981:
1.32 moko 2982: fi
2983:
1.25 moko 2984:
1.2 parser 2985: ORACLE_PUBLIC_INC=$withval
1.1 parser 2986:
2987:
1.2 parser 2988: if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"; then
1.32 moko 2989: as_fn_error $? "$ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" "$LINENO" 5
1.2 parser 2990: fi
2991:
1.11 paf 2992:
1.32 moko 2993: ac_ext=cpp
1.1 parser 2994: ac_cpp='$CXXCPP $CPPFLAGS'
1.11 paf 2995: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.32 moko 2998: if test -z "$CXX"; then
2999: if test -n "$CCC"; then
3000: CXX=$CCC
3001: else
3002: if test -n "$ac_tool_prefix"; then
3003: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.11 paf 3004: do
3005: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3006: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.32 moko 3007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008: $as_echo_n "checking for $ac_word... " >&6; }
3009: if ${ac_cv_prog_CXX+:} false; then :
3010: $as_echo_n "(cached) " >&6
1.1 parser 3011: else
3012: if test -n "$CXX"; then
3013: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3014: else
1.11 paf 3015: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016: for as_dir in $PATH
3017: do
3018: IFS=$as_save_IFS
3019: test -z "$as_dir" && as_dir=.
1.32 moko 3020: for ac_exec_ext in '' $ac_executable_extensions; do
3021: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11 paf 3022: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.32 moko 3023: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3024: break 2
3025: fi
3026: done
1.32 moko 3027: done
3028: IFS=$as_save_IFS
1.11 paf 3029:
1.1 parser 3030: fi
3031: fi
1.11 paf 3032: CXX=$ac_cv_prog_CXX
1.1 parser 3033: if test -n "$CXX"; then
1.32 moko 3034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3035: $as_echo "$CXX" >&6; }
1.1 parser 3036: else
1.32 moko 3037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038: $as_echo "no" >&6; }
1.1 parser 3039: fi
3040:
1.32 moko 3041:
1.11 paf 3042: test -n "$CXX" && break
3043: done
3044: fi
3045: if test -z "$CXX"; then
3046: ac_ct_CXX=$CXX
1.32 moko 3047: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.11 paf 3048: do
3049: # Extract the first word of "$ac_prog", so it can be a program name with args.
3050: set dummy $ac_prog; ac_word=$2
1.32 moko 3051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052: $as_echo_n "checking for $ac_word... " >&6; }
3053: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3054: $as_echo_n "(cached) " >&6
1.11 paf 3055: else
3056: if test -n "$ac_ct_CXX"; then
3057: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3058: else
3059: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060: for as_dir in $PATH
3061: do
3062: IFS=$as_save_IFS
3063: test -z "$as_dir" && as_dir=.
1.32 moko 3064: for ac_exec_ext in '' $ac_executable_extensions; do
3065: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11 paf 3066: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.32 moko 3067: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3068: break 2
3069: fi
3070: done
1.32 moko 3071: done
3072: IFS=$as_save_IFS
1.1 parser 3073:
1.11 paf 3074: fi
3075: fi
3076: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3077: if test -n "$ac_ct_CXX"; then
1.32 moko 3078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3079: $as_echo "$ac_ct_CXX" >&6; }
1.11 paf 3080: else
1.32 moko 3081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082: $as_echo "no" >&6; }
1.11 paf 3083: fi
1.1 parser 3084:
1.32 moko 3085:
1.11 paf 3086: test -n "$ac_ct_CXX" && break
3087: done
1.1 parser 3088:
1.32 moko 3089: if test "x$ac_ct_CXX" = x; then
3090: CXX="g++"
3091: else
3092: case $cross_compiling:$ac_tool_warned in
3093: yes:)
3094: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096: ac_tool_warned=yes ;;
3097: esac
3098: CXX=$ac_ct_CXX
3099: fi
1.11 paf 3100: fi
1.1 parser 3101:
1.32 moko 3102: fi
3103: fi
1.11 paf 3104: # Provide some information about the compiler.
1.32 moko 3105: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3106: set X $ac_compile
3107: ac_compiler=$2
3108: for ac_option in --version -v -V -qversion; do
3109: { { ac_try="$ac_compiler $ac_option >&5"
3110: case "(($ac_try" in
3111: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112: *) ac_try_echo=$ac_try;;
3113: esac
3114: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115: $as_echo "$ac_try_echo"; } >&5
3116: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.11 paf 3117: ac_status=$?
1.32 moko 3118: if test -s conftest.err; then
3119: sed '10a\
3120: ... rest of stderr output deleted ...
3121: 10q' conftest.err >conftest.er1
3122: cat conftest.er1 >&5
3123: fi
3124: rm -f conftest.er1 conftest.err
3125: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126: test $ac_status = 0; }
3127: done
1.11 paf 3128:
1.32 moko 3129: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 3130: /* end confdefs.h. */
3131:
3132: int
3133: main ()
3134: {
3135:
3136: ;
3137: return 0;
3138: }
3139: _ACEOF
3140: ac_clean_files_save=$ac_clean_files
1.32 moko 3141: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.11 paf 3142: # Try to create an executable without -o first, disregard a.out.
3143: # It will help us diagnose broken compilers, and finding out an intuition
3144: # of exeext.
1.32 moko 3145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3146: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3147: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3148:
3149: # The possible output files:
3150: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3151:
3152: ac_rmfiles=
3153: for ac_file in $ac_files
3154: do
3155: case $ac_file in
3156: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3157: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3158: esac
3159: done
3160: rm -f $ac_rmfiles
3161:
3162: if { { ac_try="$ac_link_default"
3163: case "(($ac_try" in
3164: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165: *) ac_try_echo=$ac_try;;
3166: esac
3167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168: $as_echo "$ac_try_echo"; } >&5
3169: (eval "$ac_link_default") 2>&5
3170: ac_status=$?
3171: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172: test $ac_status = 0; }; then :
3173: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3174: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3175: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3176: # so that the user can short-circuit this test for compilers unknown to
3177: # Autoconf.
3178: for ac_file in $ac_files ''
1.11 paf 3179: do
3180: test -f "$ac_file" || continue
3181: case $ac_file in
1.32 moko 3182: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.18 paf 3183: ;;
1.11 paf 3184: [ab].out )
1.18 paf 3185: # We found the default executable, but exeext='' is most
3186: # certainly right.
3187: break;;
1.11 paf 3188: *.* )
1.32 moko 3189: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3190: then :; else
3191: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3192: fi
3193: # We set ac_cv_exeext here because the later test for it is not
3194: # safe: cross compilers may not add the suffix if given an `-o'
3195: # argument, so we may need to know it at that point already.
3196: # Even if this section looks crufty: it has the advantage of
3197: # actually working.
1.18 paf 3198: break;;
1.11 paf 3199: * )
1.18 paf 3200: break;;
1.11 paf 3201: esac
3202: done
1.32 moko 3203: test "$ac_cv_exeext" = no && ac_cv_exeext=
3204:
1.11 paf 3205: else
1.32 moko 3206: ac_file=''
3207: fi
3208: if test -z "$ac_file"; then :
3209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210: $as_echo "no" >&6; }
3211: $as_echo "$as_me: failed program was:" >&5
1.11 paf 3212: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3213:
1.32 moko 3214: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216: as_fn_error 77 "C++ compiler cannot create executables
3217: See \`config.log' for more details" "$LINENO" 5; }
3218: else
3219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220: $as_echo "yes" >&6; }
3221: fi
3222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3223: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3225: $as_echo "$ac_file" >&6; }
1.11 paf 3226: ac_exeext=$ac_cv_exeext
3227:
1.32 moko 3228: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.11 paf 3229: ac_clean_files=$ac_clean_files_save
1.32 moko 3230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3231: $as_echo_n "checking for suffix of executables... " >&6; }
3232: if { { ac_try="$ac_link"
3233: case "(($ac_try" in
3234: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235: *) ac_try_echo=$ac_try;;
3236: esac
3237: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238: $as_echo "$ac_try_echo"; } >&5
3239: (eval "$ac_link") 2>&5
1.11 paf 3240: ac_status=$?
1.32 moko 3241: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242: test $ac_status = 0; }; then :
1.11 paf 3243: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3244: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3245: # work properly (i.e., refer to `conftest.exe'), while it won't with
3246: # `rm'.
3247: for ac_file in conftest.exe conftest conftest.*; do
3248: test -f "$ac_file" || continue
3249: case $ac_file in
1.32 moko 3250: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.11 paf 3251: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.18 paf 3252: break;;
1.11 paf 3253: * ) break;;
3254: esac
3255: done
1.1 parser 3256: else
1.32 moko 3257: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3260: See \`config.log' for more details" "$LINENO" 5; }
3261: fi
3262: rm -f conftest conftest$ac_cv_exeext
3263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3264: $as_echo "$ac_cv_exeext" >&6; }
1.11 paf 3265:
3266: rm -f conftest.$ac_ext
3267: EXEEXT=$ac_cv_exeext
3268: ac_exeext=$EXEEXT
1.32 moko 3269: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270: /* end confdefs.h. */
3271: #include <stdio.h>
3272: int
3273: main ()
3274: {
3275: FILE *f = fopen ("conftest.out", "w");
3276: return ferror (f) || fclose (f) != 0;
3277:
3278: ;
3279: return 0;
3280: }
3281: _ACEOF
3282: ac_clean_files="$ac_clean_files conftest.out"
3283: # Check that the compiler produces executables we can run. If not, either
3284: # the compiler is broken, or we cross compile.
3285: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3286: $as_echo_n "checking whether we are cross compiling... " >&6; }
3287: if test "$cross_compiling" != yes; then
3288: { { ac_try="$ac_link"
3289: case "(($ac_try" in
3290: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291: *) ac_try_echo=$ac_try;;
3292: esac
3293: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294: $as_echo "$ac_try_echo"; } >&5
3295: (eval "$ac_link") 2>&5
3296: ac_status=$?
3297: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298: test $ac_status = 0; }
3299: if { ac_try='./conftest$ac_cv_exeext'
3300: { { case "(($ac_try" in
3301: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302: *) ac_try_echo=$ac_try;;
3303: esac
3304: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305: $as_echo "$ac_try_echo"; } >&5
3306: (eval "$ac_try") 2>&5
3307: ac_status=$?
3308: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309: test $ac_status = 0; }; }; then
3310: cross_compiling=no
3311: else
3312: if test "$cross_compiling" = maybe; then
3313: cross_compiling=yes
3314: else
3315: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317: as_fn_error $? "cannot run C++ compiled programs.
3318: If you meant to cross compile, use \`--host'.
3319: See \`config.log' for more details" "$LINENO" 5; }
3320: fi
3321: fi
3322: fi
3323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3324: $as_echo "$cross_compiling" >&6; }
3325:
3326: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3327: ac_clean_files=$ac_clean_files_save
3328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3329: $as_echo_n "checking for suffix of object files... " >&6; }
3330: if ${ac_cv_objext+:} false; then :
3331: $as_echo_n "(cached) " >&6
1.11 paf 3332: else
1.32 moko 3333: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 3334: /* end confdefs.h. */
3335:
3336: int
3337: main ()
3338: {
3339:
3340: ;
3341: return 0;
3342: }
3343: _ACEOF
3344: rm -f conftest.o conftest.obj
1.32 moko 3345: if { { ac_try="$ac_compile"
3346: case "(($ac_try" in
3347: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348: *) ac_try_echo=$ac_try;;
3349: esac
3350: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351: $as_echo "$ac_try_echo"; } >&5
3352: (eval "$ac_compile") 2>&5
3353: ac_status=$?
3354: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355: test $ac_status = 0; }; then :
3356: for ac_file in conftest.o conftest.obj conftest.*; do
3357: test -f "$ac_file" || continue;
1.11 paf 3358: case $ac_file in
1.32 moko 3359: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.11 paf 3360: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3361: break;;
3362: esac
3363: done
1.1 parser 3364: else
1.32 moko 3365: $as_echo "$as_me: failed program was:" >&5
1.11 paf 3366: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3367:
1.32 moko 3368: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370: as_fn_error $? "cannot compute suffix of object files: cannot compile
3371: See \`config.log' for more details" "$LINENO" 5; }
1.11 paf 3372: fi
3373: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374: fi
1.32 moko 3375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3376: $as_echo "$ac_cv_objext" >&6; }
1.11 paf 3377: OBJEXT=$ac_cv_objext
3378: ac_objext=$OBJEXT
1.32 moko 3379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3380: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3381: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3382: $as_echo_n "(cached) " >&6
1.11 paf 3383: else
1.32 moko 3384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 3385: /* end confdefs.h. */
3386:
3387: int
3388: main ()
3389: {
3390: #ifndef __GNUC__
3391: choke me
3392: #endif
1.1 parser 3393:
1.11 paf 3394: ;
3395: return 0;
3396: }
3397: _ACEOF
1.32 moko 3398: if ac_fn_cxx_try_compile "$LINENO"; then :
1.11 paf 3399: ac_compiler_gnu=yes
3400: else
1.32 moko 3401: ac_compiler_gnu=no
1.11 paf 3402: fi
1.32 moko 3403: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3404: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3405:
3406: fi
1.32 moko 3407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3408: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3409: if test $ac_compiler_gnu = yes; then
3410: GXX=yes
3411: else
3412: GXX=
3413: fi
1.11 paf 3414: ac_test_CXXFLAGS=${CXXFLAGS+set}
3415: ac_save_CXXFLAGS=$CXXFLAGS
1.32 moko 3416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3417: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3418: if ${ac_cv_prog_cxx_g+:} false; then :
3419: $as_echo_n "(cached) " >&6
3420: else
3421: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3422: ac_cxx_werror_flag=yes
3423: ac_cv_prog_cxx_g=no
3424: CXXFLAGS="-g"
3425: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 3426: /* end confdefs.h. */
3427:
3428: int
3429: main ()
3430: {
3431:
3432: ;
3433: return 0;
3434: }
3435: _ACEOF
1.32 moko 3436: if ac_fn_cxx_try_compile "$LINENO"; then :
1.11 paf 3437: ac_cv_prog_cxx_g=yes
1.1 parser 3438: else
1.32 moko 3439: CXXFLAGS=""
3440: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441: /* end confdefs.h. */
1.1 parser 3442:
1.11 paf 3443: int
3444: main ()
3445: {
1.32 moko 3446:
1.11 paf 3447: ;
3448: return 0;
3449: }
3450: _ACEOF
1.32 moko 3451: if ac_fn_cxx_try_compile "$LINENO"; then :
3452:
1.11 paf 3453: else
1.32 moko 3454: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3455: CXXFLAGS="-g"
3456: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457: /* end confdefs.h. */
1.11 paf 3458:
3459: int
3460: main ()
3461: {
1.32 moko 3462:
1.11 paf 3463: ;
3464: return 0;
3465: }
3466: _ACEOF
1.32 moko 3467: if ac_fn_cxx_try_compile "$LINENO"; then :
3468: ac_cv_prog_cxx_g=yes
3469: fi
3470: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471: fi
3472: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473: fi
3474: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3476: fi
3477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3478: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3479: if test "$ac_test_CXXFLAGS" = set; then
3480: CXXFLAGS=$ac_save_CXXFLAGS
3481: elif test $ac_cv_prog_cxx_g = yes; then
3482: if test "$GXX" = yes; then
3483: CXXFLAGS="-g -O2"
3484: else
3485: CXXFLAGS="-g"
3486: fi
1.11 paf 3487: else
1.32 moko 3488: if test "$GXX" = yes; then
3489: CXXFLAGS="-O2"
3490: else
3491: CXXFLAGS=
3492: fi
1.11 paf 3493: fi
1.15 paf 3494: ac_ext=c
3495: ac_cpp='$CPP $CPPFLAGS'
3496: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.18 paf 3499: DEPDIR="${am__leading_dot}deps"
1.11 paf 3500:
1.32 moko 3501: ac_config_commands="$ac_config_commands depfiles"
1.11 paf 3502:
3503:
3504: am_make=${MAKE-make}
3505: cat > confinc << 'END'
1.18 paf 3506: am__doit:
1.32 moko 3507: @echo this is the am__doit target
1.18 paf 3508: .PHONY: am__doit
1.11 paf 3509: END
3510: # If we don't find an include directive, just comment out the code.
1.32 moko 3511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3512: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.11 paf 3513: am__include="#"
3514: am__quote=
3515: _am_result=none
3516: # First try GNU make style include.
3517: echo "include confinc" > confmf
1.32 moko 3518: # Ignore all kinds of additional output from `make'.
3519: case `$am_make -s -f confmf 2> /dev/null` in #(
3520: *the\ am__doit\ target*)
3521: am__include=include
3522: am__quote=
3523: _am_result=GNU
3524: ;;
3525: esac
1.11 paf 3526: # Now try BSD make style include.
3527: if test "$am__include" = "#"; then
3528: echo '.include "confinc"' > confmf
1.32 moko 3529: case `$am_make -s -f confmf 2> /dev/null` in #(
3530: *the\ am__doit\ target*)
3531: am__include=.include
3532: am__quote="\""
3533: _am_result=BSD
3534: ;;
3535: esac
1.11 paf 3536: fi
3537:
3538:
1.32 moko 3539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3540: $as_echo "$_am_result" >&6; }
1.11 paf 3541: rm -f confinc confmf
3542:
1.32 moko 3543: # Check whether --enable-dependency-tracking was given.
3544: if test "${enable_dependency_tracking+set}" = set; then :
3545: enableval=$enable_dependency_tracking;
3546: fi
1.11 paf 3547:
3548: if test "x$enable_dependency_tracking" != xno; then
3549: am_depcomp="$ac_aux_dir/depcomp"
3550: AMDEPBACKSLASH='\'
3551: fi
1.32 moko 3552: if test "x$enable_dependency_tracking" != xno; then
1.11 paf 3553: AMDEP_TRUE=
3554: AMDEP_FALSE='#'
3555: else
3556: AMDEP_TRUE='#'
3557: AMDEP_FALSE=
3558: fi
3559:
3560:
3561:
3562: depcc="$CXX" am_compiler_list=
3563:
1.32 moko 3564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3565: $as_echo_n "checking dependency style of $depcc... " >&6; }
3566: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3567: $as_echo_n "(cached) " >&6
1.11 paf 3568: else
3569: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570: # We make a subdir and do the tests there. Otherwise we can end up
3571: # making bogus files that we don't know about and never remove. For
3572: # instance it was reported that on HP-UX the gcc test will end up
3573: # making a dummy file named `D' -- because `-MD' means `put the output
3574: # in D'.
3575: mkdir conftest.dir
3576: # Copy depcomp to subdir because otherwise we won't find it if we're
3577: # using a relative directory.
3578: cp "$am_depcomp" conftest.dir
3579: cd conftest.dir
1.18 paf 3580: # We will build objects and dependencies in a subdirectory because
3581: # it helps to detect inapplicable dependency modes. For instance
3582: # both Tru64's cc and ICC support -MD to output dependencies as a
3583: # side effect of compilation, but ICC will put the dependencies in
3584: # the current directory while Tru64 will put them in the object
3585: # directory.
3586: mkdir sub
1.11 paf 3587:
3588: am_cv_CXX_dependencies_compiler_type=none
3589: if test "$am_compiler_list" = ""; then
3590: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3591: fi
1.32 moko 3592: am__universal=false
3593: case " $depcc " in #(
3594: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3595: esac
3596:
1.11 paf 3597: for depmode in $am_compiler_list; do
1.18 paf 3598: # Setup a source with many dependencies, because some compilers
3599: # like to wrap large dependency lists on column 80 (with \), and
3600: # we should not choose a depcomp mode which is confused by this.
3601: #
1.11 paf 3602: # We need to recreate these files for each test, as the compiler may
3603: # overwrite some of them when testing with obscure command lines.
3604: # This happens at least with the AIX C compiler.
1.18 paf 3605: : > sub/conftest.c
3606: for i in 1 2 3 4 5 6; do
3607: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3608: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3609: # Solaris 8's {/usr,}/bin/sh.
3610: touch sub/conftst$i.h
3611: done
3612: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 3613:
1.32 moko 3614: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3615: # mode. It turns out that the SunPro C++ compiler does not properly
3616: # handle `-M -o', and we need to detect this. Also, some Intel
3617: # versions had trouble with output in subdirs
3618: am__obj=sub/conftest.${OBJEXT-o}
3619: am__minus_obj="-o $am__obj"
1.11 paf 3620: case $depmode in
1.32 moko 3621: gcc)
3622: # This depmode causes a compiler race in universal mode.
3623: test "$am__universal" = false || continue
3624: ;;
1.11 paf 3625: nosideeffect)
3626: # after this tag, mechanisms are not by side-effect, so they'll
3627: # only be used when explicitly requested
3628: if test "x$enable_dependency_tracking" = xyes; then
3629: continue
3630: else
3631: break
3632: fi
3633: ;;
1.32 moko 3634: msvisualcpp | msvcmsys)
3635: # This compiler won't grok `-c -o', but also, the minuso test has
3636: # not run yet. These depmodes are late enough in the game, and
3637: # so weak that their functioning should not be impacted.
3638: am__obj=conftest.${OBJEXT-o}
3639: am__minus_obj=
3640: ;;
1.11 paf 3641: none) break ;;
3642: esac
3643: if depmode=$depmode \
1.32 moko 3644: source=sub/conftest.c object=$am__obj \
1.18 paf 3645: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.32 moko 3646: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.18 paf 3647: >/dev/null 2>conftest.err &&
1.32 moko 3648: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.18 paf 3649: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.32 moko 3650: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 3651: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 3652: # icc doesn't choke on unknown options, it will just issue warnings
3653: # or remarks (even with -Werror). So we grep stderr for any message
3654: # that says an option was ignored or not supported.
3655: # When given -MP, icc 7.0 and 7.1 complain thusly:
3656: # icc: Command line warning: ignoring option '-M'; no argument required
3657: # The diagnosis changed in icc 8.0:
3658: # icc: Command line remark: option '-MP' not supported
3659: if (grep 'ignoring option' conftest.err ||
3660: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3661: am_cv_CXX_dependencies_compiler_type=$depmode
3662: break
3663: fi
1.11 paf 3664: fi
3665: done
3666:
3667: cd ..
3668: rm -rf conftest.dir
3669: else
3670: am_cv_CXX_dependencies_compiler_type=none
3671: fi
3672:
3673: fi
1.32 moko 3674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3675: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.11 paf 3676: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3677:
1.32 moko 3678: if
1.11 paf 3679: test "x$enable_dependency_tracking" != xno \
3680: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3681: am__fastdepCXX_TRUE=
3682: am__fastdepCXX_FALSE='#'
3683: else
3684: am__fastdepCXX_TRUE='#'
3685: am__fastdepCXX_FALSE=
3686: fi
3687:
3688:
3689: ac_ext=c
3690: ac_cpp='$CPP $CPPFLAGS'
3691: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694: if test -n "$ac_tool_prefix"; then
3695: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3696: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.32 moko 3697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698: $as_echo_n "checking for $ac_word... " >&6; }
3699: if ${ac_cv_prog_CC+:} false; then :
3700: $as_echo_n "(cached) " >&6
1.11 paf 3701: else
3702: if test -n "$CC"; then
3703: ac_cv_prog_CC="$CC" # Let the user override the test.
3704: else
3705: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706: for as_dir in $PATH
3707: do
3708: IFS=$as_save_IFS
3709: test -z "$as_dir" && as_dir=.
1.32 moko 3710: for ac_exec_ext in '' $ac_executable_extensions; do
3711: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11 paf 3712: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.32 moko 3713: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3714: break 2
3715: fi
3716: done
1.32 moko 3717: done
3718: IFS=$as_save_IFS
1.1 parser 3719:
1.11 paf 3720: fi
3721: fi
3722: CC=$ac_cv_prog_CC
3723: if test -n "$CC"; then
1.32 moko 3724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725: $as_echo "$CC" >&6; }
1.11 paf 3726: else
1.32 moko 3727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728: $as_echo "no" >&6; }
1.11 paf 3729: fi
1.1 parser 3730:
1.32 moko 3731:
1.11 paf 3732: fi
3733: if test -z "$ac_cv_prog_CC"; then
3734: ac_ct_CC=$CC
3735: # Extract the first word of "gcc", so it can be a program name with args.
3736: set dummy gcc; ac_word=$2
1.32 moko 3737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738: $as_echo_n "checking for $ac_word... " >&6; }
3739: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3740: $as_echo_n "(cached) " >&6
1.1 parser 3741: else
1.11 paf 3742: if test -n "$ac_ct_CC"; then
3743: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 3744: else
1.11 paf 3745: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746: for as_dir in $PATH
3747: do
3748: IFS=$as_save_IFS
3749: test -z "$as_dir" && as_dir=.
1.32 moko 3750: for ac_exec_ext in '' $ac_executable_extensions; do
3751: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11 paf 3752: ac_cv_prog_ac_ct_CC="gcc"
1.32 moko 3753: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3754: break 2
3755: fi
3756: done
1.32 moko 3757: done
3758: IFS=$as_save_IFS
1.11 paf 3759:
3760: fi
1.1 parser 3761: fi
1.11 paf 3762: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763: if test -n "$ac_ct_CC"; then
1.32 moko 3764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765: $as_echo "$ac_ct_CC" >&6; }
1.11 paf 3766: else
1.32 moko 3767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768: $as_echo "no" >&6; }
1.1 parser 3769: fi
1.11 paf 3770:
1.32 moko 3771: if test "x$ac_ct_CC" = x; then
3772: CC=""
3773: else
3774: case $cross_compiling:$ac_tool_warned in
3775: yes:)
3776: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778: ac_tool_warned=yes ;;
3779: esac
3780: CC=$ac_ct_CC
3781: fi
1.1 parser 3782: else
1.11 paf 3783: CC="$ac_cv_prog_CC"
1.1 parser 3784: fi
3785:
1.11 paf 3786: if test -z "$CC"; then
1.32 moko 3787: if test -n "$ac_tool_prefix"; then
3788: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.11 paf 3789: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.32 moko 3790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791: $as_echo_n "checking for $ac_word... " >&6; }
3792: if ${ac_cv_prog_CC+:} false; then :
3793: $as_echo_n "(cached) " >&6
1.1 parser 3794: else
3795: if test -n "$CC"; then
3796: ac_cv_prog_CC="$CC" # Let the user override the test.
3797: else
1.11 paf 3798: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799: for as_dir in $PATH
3800: do
3801: IFS=$as_save_IFS
3802: test -z "$as_dir" && as_dir=.
1.32 moko 3803: for ac_exec_ext in '' $ac_executable_extensions; do
3804: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11 paf 3805: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.32 moko 3806: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3807: break 2
3808: fi
3809: done
1.32 moko 3810: done
3811: IFS=$as_save_IFS
1.11 paf 3812:
1.1 parser 3813: fi
3814: fi
1.11 paf 3815: CC=$ac_cv_prog_CC
1.1 parser 3816: if test -n "$CC"; then
1.32 moko 3817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818: $as_echo "$CC" >&6; }
1.11 paf 3819: else
1.32 moko 3820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821: $as_echo "no" >&6; }
1.11 paf 3822: fi
3823:
1.32 moko 3824:
1.11 paf 3825: fi
3826: fi
1.1 parser 3827: if test -z "$CC"; then
3828: # Extract the first word of "cc", so it can be a program name with args.
3829: set dummy cc; ac_word=$2
1.32 moko 3830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831: $as_echo_n "checking for $ac_word... " >&6; }
3832: if ${ac_cv_prog_CC+:} false; then :
3833: $as_echo_n "(cached) " >&6
1.1 parser 3834: else
3835: if test -n "$CC"; then
3836: ac_cv_prog_CC="$CC" # Let the user override the test.
3837: else
3838: ac_prog_rejected=no
1.11 paf 3839: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840: for as_dir in $PATH
3841: do
3842: IFS=$as_save_IFS
3843: test -z "$as_dir" && as_dir=.
1.32 moko 3844: for ac_exec_ext in '' $ac_executable_extensions; do
3845: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11 paf 3846: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3847: ac_prog_rejected=yes
3848: continue
3849: fi
3850: ac_cv_prog_CC="cc"
1.32 moko 3851: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3852: break 2
3853: fi
3854: done
1.32 moko 3855: done
3856: IFS=$as_save_IFS
1.11 paf 3857:
1.1 parser 3858: if test $ac_prog_rejected = yes; then
3859: # We found a bogon in the path, so make sure we never use it.
3860: set dummy $ac_cv_prog_CC
3861: shift
1.11 paf 3862: if test $# != 0; then
1.1 parser 3863: # We chose a different compiler from the bogus one.
3864: # However, it has the same basename, so the bogon will be chosen
3865: # first if we set CC to just the basename; use the full file name.
3866: shift
1.11 paf 3867: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3868: fi
3869: fi
3870: fi
3871: fi
1.11 paf 3872: CC=$ac_cv_prog_CC
1.1 parser 3873: if test -n "$CC"; then
1.32 moko 3874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3875: $as_echo "$CC" >&6; }
1.1 parser 3876: else
1.32 moko 3877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878: $as_echo "no" >&6; }
1.1 parser 3879: fi
3880:
1.32 moko 3881:
1.11 paf 3882: fi
3883: if test -z "$CC"; then
3884: if test -n "$ac_tool_prefix"; then
1.32 moko 3885: for ac_prog in cl.exe
1.11 paf 3886: do
3887: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.32 moko 3889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890: $as_echo_n "checking for $ac_word... " >&6; }
3891: if ${ac_cv_prog_CC+:} false; then :
3892: $as_echo_n "(cached) " >&6
1.1 parser 3893: else
3894: if test -n "$CC"; then
3895: ac_cv_prog_CC="$CC" # Let the user override the test.
3896: else
1.11 paf 3897: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898: for as_dir in $PATH
3899: do
3900: IFS=$as_save_IFS
3901: test -z "$as_dir" && as_dir=.
1.32 moko 3902: for ac_exec_ext in '' $ac_executable_extensions; do
3903: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11 paf 3904: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.32 moko 3905: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3906: break 2
3907: fi
3908: done
1.32 moko 3909: done
3910: IFS=$as_save_IFS
1.11 paf 3911:
1.1 parser 3912: fi
3913: fi
1.11 paf 3914: CC=$ac_cv_prog_CC
1.1 parser 3915: if test -n "$CC"; then
1.32 moko 3916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917: $as_echo "$CC" >&6; }
1.1 parser 3918: else
1.32 moko 3919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920: $as_echo "no" >&6; }
1.1 parser 3921: fi
1.11 paf 3922:
1.32 moko 3923:
1.11 paf 3924: test -n "$CC" && break
3925: done
3926: fi
3927: if test -z "$CC"; then
3928: ac_ct_CC=$CC
1.32 moko 3929: for ac_prog in cl.exe
1.11 paf 3930: do
3931: # Extract the first word of "$ac_prog", so it can be a program name with args.
3932: set dummy $ac_prog; ac_word=$2
1.32 moko 3933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934: $as_echo_n "checking for $ac_word... " >&6; }
3935: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3936: $as_echo_n "(cached) " >&6
1.11 paf 3937: else
3938: if test -n "$ac_ct_CC"; then
3939: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940: else
3941: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942: for as_dir in $PATH
3943: do
3944: IFS=$as_save_IFS
3945: test -z "$as_dir" && as_dir=.
1.32 moko 3946: for ac_exec_ext in '' $ac_executable_extensions; do
3947: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.11 paf 3948: ac_cv_prog_ac_ct_CC="$ac_prog"
1.32 moko 3949: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3950: break 2
1.1 parser 3951: fi
1.11 paf 3952: done
1.32 moko 3953: done
3954: IFS=$as_save_IFS
1.11 paf 3955:
3956: fi
3957: fi
3958: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959: if test -n "$ac_ct_CC"; then
1.32 moko 3960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961: $as_echo "$ac_ct_CC" >&6; }
1.11 paf 3962: else
1.32 moko 3963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964: $as_echo "no" >&6; }
1.1 parser 3965: fi
3966:
1.32 moko 3967:
1.11 paf 3968: test -n "$ac_ct_CC" && break
3969: done
1.1 parser 3970:
1.32 moko 3971: if test "x$ac_ct_CC" = x; then
3972: CC=""
3973: else
3974: case $cross_compiling:$ac_tool_warned in
3975: yes:)
3976: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3977: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3978: ac_tool_warned=yes ;;
3979: esac
3980: CC=$ac_ct_CC
3981: fi
1.11 paf 3982: fi
1.1 parser 3983:
1.11 paf 3984: fi
1.1 parser 3985:
3986:
1.32 moko 3987: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989: as_fn_error $? "no acceptable C compiler found in \$PATH
3990: See \`config.log' for more details" "$LINENO" 5; }
1.11 paf 3991:
3992: # Provide some information about the compiler.
1.32 moko 3993: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3994: set X $ac_compile
3995: ac_compiler=$2
3996: for ac_option in --version -v -V -qversion; do
3997: { { ac_try="$ac_compiler $ac_option >&5"
3998: case "(($ac_try" in
3999: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000: *) ac_try_echo=$ac_try;;
4001: esac
4002: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003: $as_echo "$ac_try_echo"; } >&5
4004: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.11 paf 4005: ac_status=$?
1.32 moko 4006: if test -s conftest.err; then
4007: sed '10a\
4008: ... rest of stderr output deleted ...
4009: 10q' conftest.err >conftest.er1
4010: cat conftest.er1 >&5
4011: fi
4012: rm -f conftest.er1 conftest.err
4013: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014: test $ac_status = 0; }
4015: done
4016:
4017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4018: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4019: if ${ac_cv_c_compiler_gnu+:} false; then :
4020: $as_echo_n "(cached) " >&6
1.11 paf 4021: else
1.32 moko 4022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 4023: /* end confdefs.h. */
4024:
4025: int
4026: main ()
4027: {
4028: #ifndef __GNUC__
4029: choke me
1.1 parser 4030: #endif
4031:
1.11 paf 4032: ;
4033: return 0;
4034: }
4035: _ACEOF
1.32 moko 4036: if ac_fn_c_try_compile "$LINENO"; then :
1.11 paf 4037: ac_compiler_gnu=yes
4038: else
1.32 moko 4039: ac_compiler_gnu=no
1.11 paf 4040: fi
1.32 moko 4041: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 4042: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4043:
4044: fi
1.32 moko 4045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4046: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4047: if test $ac_compiler_gnu = yes; then
4048: GCC=yes
4049: else
4050: GCC=
4051: fi
1.11 paf 4052: ac_test_CFLAGS=${CFLAGS+set}
4053: ac_save_CFLAGS=$CFLAGS
1.32 moko 4054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4055: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4056: if ${ac_cv_prog_cc_g+:} false; then :
4057: $as_echo_n "(cached) " >&6
4058: else
4059: ac_save_c_werror_flag=$ac_c_werror_flag
4060: ac_c_werror_flag=yes
4061: ac_cv_prog_cc_g=no
4062: CFLAGS="-g"
4063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064: /* end confdefs.h. */
4065:
4066: int
4067: main ()
4068: {
4069:
4070: ;
4071: return 0;
4072: }
4073: _ACEOF
4074: if ac_fn_c_try_compile "$LINENO"; then :
4075: ac_cv_prog_cc_g=yes
1.11 paf 4076: else
1.32 moko 4077: CFLAGS=""
4078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079: /* end confdefs.h. */
4080:
4081: int
4082: main ()
4083: {
4084:
4085: ;
4086: return 0;
4087: }
1.11 paf 4088: _ACEOF
1.32 moko 4089: if ac_fn_c_try_compile "$LINENO"; then :
4090:
4091: else
4092: ac_c_werror_flag=$ac_save_c_werror_flag
4093: CFLAGS="-g"
4094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 4095: /* end confdefs.h. */
4096:
4097: int
4098: main ()
4099: {
4100:
4101: ;
4102: return 0;
4103: }
4104: _ACEOF
1.32 moko 4105: if ac_fn_c_try_compile "$LINENO"; then :
1.11 paf 4106: ac_cv_prog_cc_g=yes
1.1 parser 4107: fi
1.32 moko 4108: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109: fi
4110: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111: fi
4112: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 parser 4114: fi
1.32 moko 4115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4116: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 parser 4117: if test "$ac_test_CFLAGS" = set; then
1.11 paf 4118: CFLAGS=$ac_save_CFLAGS
1.1 parser 4119: elif test $ac_cv_prog_cc_g = yes; then
4120: if test "$GCC" = yes; then
4121: CFLAGS="-g -O2"
4122: else
4123: CFLAGS="-g"
4124: fi
4125: else
4126: if test "$GCC" = yes; then
4127: CFLAGS="-O2"
4128: else
4129: CFLAGS=
4130: fi
4131: fi
1.32 moko 4132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4133: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4134: if ${ac_cv_prog_cc_c89+:} false; then :
4135: $as_echo_n "(cached) " >&6
1.11 paf 4136: else
1.32 moko 4137: ac_cv_prog_cc_c89=no
1.11 paf 4138: ac_save_CC=$CC
1.32 moko 4139: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 4140: /* end confdefs.h. */
4141: #include <stdarg.h>
4142: #include <stdio.h>
4143: #include <sys/types.h>
4144: #include <sys/stat.h>
4145: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4146: struct buf { int x; };
4147: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4148: static char *e (p, i)
4149: char **p;
4150: int i;
4151: {
4152: return p[i];
4153: }
4154: static char *f (char * (*g) (char **, int), char **p, ...)
4155: {
4156: char *s;
4157: va_list v;
4158: va_start (v,p);
4159: s = g (p, va_arg (v,int));
4160: va_end (v);
4161: return s;
4162: }
1.18 paf 4163:
4164: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4165: function prototypes and stuff, but not '\xHH' hex character constants.
4166: These don't provoke an error unfortunately, instead are silently treated
1.32 moko 4167: as 'x'. The following induces an error, until -std is added to get
1.18 paf 4168: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4169: array size at least. It's necessary to write '\x00'==0 to get something
1.32 moko 4170: that's true only with -std. */
1.18 paf 4171: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4172:
1.32 moko 4173: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4174: inside strings and character constants. */
4175: #define FOO(x) 'x'
4176: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4177:
1.11 paf 4178: int test (int i, double x);
4179: struct s1 {int (*f) (int a);};
4180: struct s2 {int (*f) (double a);};
4181: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4182: int argc;
4183: char **argv;
4184: int
4185: main ()
4186: {
4187: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4188: ;
4189: return 0;
4190: }
4191: _ACEOF
1.32 moko 4192: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4193: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.11 paf 4194: do
4195: CC="$ac_save_CC $ac_arg"
1.32 moko 4196: if ac_fn_c_try_compile "$LINENO"; then :
4197: ac_cv_prog_cc_c89=$ac_arg
1.11 paf 4198: fi
1.32 moko 4199: rm -f core conftest.err conftest.$ac_objext
4200: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.11 paf 4201: done
1.32 moko 4202: rm -f conftest.$ac_ext
1.11 paf 4203: CC=$ac_save_CC
4204:
4205: fi
1.32 moko 4206: # AC_CACHE_VAL
4207: case "x$ac_cv_prog_cc_c89" in
4208: x)
4209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4210: $as_echo "none needed" >&6; } ;;
4211: xno)
4212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4213: $as_echo "unsupported" >&6; } ;;
1.11 paf 4214: *)
1.32 moko 4215: CC="$CC $ac_cv_prog_cc_c89"
4216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4217: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.11 paf 4218: esac
1.32 moko 4219: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.11 paf 4220:
4221: fi
4222:
1.15 paf 4223: ac_ext=c
4224: ac_cpp='$CPP $CPPFLAGS'
4225: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 4228:
4229: depcc="$CC" am_compiler_list=
4230:
1.32 moko 4231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4232: $as_echo_n "checking dependency style of $depcc... " >&6; }
4233: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4234: $as_echo_n "(cached) " >&6
1.11 paf 4235: else
4236: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4237: # We make a subdir and do the tests there. Otherwise we can end up
4238: # making bogus files that we don't know about and never remove. For
4239: # instance it was reported that on HP-UX the gcc test will end up
4240: # making a dummy file named `D' -- because `-MD' means `put the output
4241: # in D'.
4242: mkdir conftest.dir
4243: # Copy depcomp to subdir because otherwise we won't find it if we're
4244: # using a relative directory.
4245: cp "$am_depcomp" conftest.dir
4246: cd conftest.dir
1.18 paf 4247: # We will build objects and dependencies in a subdirectory because
4248: # it helps to detect inapplicable dependency modes. For instance
4249: # both Tru64's cc and ICC support -MD to output dependencies as a
4250: # side effect of compilation, but ICC will put the dependencies in
4251: # the current directory while Tru64 will put them in the object
4252: # directory.
4253: mkdir sub
1.11 paf 4254:
4255: am_cv_CC_dependencies_compiler_type=none
4256: if test "$am_compiler_list" = ""; then
4257: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4258: fi
1.32 moko 4259: am__universal=false
4260: case " $depcc " in #(
4261: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4262: esac
4263:
1.11 paf 4264: for depmode in $am_compiler_list; do
1.18 paf 4265: # Setup a source with many dependencies, because some compilers
4266: # like to wrap large dependency lists on column 80 (with \), and
4267: # we should not choose a depcomp mode which is confused by this.
4268: #
1.11 paf 4269: # We need to recreate these files for each test, as the compiler may
4270: # overwrite some of them when testing with obscure command lines.
4271: # This happens at least with the AIX C compiler.
1.18 paf 4272: : > sub/conftest.c
4273: for i in 1 2 3 4 5 6; do
4274: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4275: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4276: # Solaris 8's {/usr,}/bin/sh.
4277: touch sub/conftst$i.h
4278: done
4279: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 4280:
1.32 moko 4281: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4282: # mode. It turns out that the SunPro C++ compiler does not properly
4283: # handle `-M -o', and we need to detect this. Also, some Intel
4284: # versions had trouble with output in subdirs
4285: am__obj=sub/conftest.${OBJEXT-o}
4286: am__minus_obj="-o $am__obj"
1.11 paf 4287: case $depmode in
1.32 moko 4288: gcc)
4289: # This depmode causes a compiler race in universal mode.
4290: test "$am__universal" = false || continue
4291: ;;
1.11 paf 4292: nosideeffect)
4293: # after this tag, mechanisms are not by side-effect, so they'll
4294: # only be used when explicitly requested
4295: if test "x$enable_dependency_tracking" = xyes; then
4296: continue
4297: else
4298: break
4299: fi
4300: ;;
1.32 moko 4301: msvisualcpp | msvcmsys)
4302: # This compiler won't grok `-c -o', but also, the minuso test has
4303: # not run yet. These depmodes are late enough in the game, and
4304: # so weak that their functioning should not be impacted.
4305: am__obj=conftest.${OBJEXT-o}
4306: am__minus_obj=
4307: ;;
1.11 paf 4308: none) break ;;
4309: esac
4310: if depmode=$depmode \
1.32 moko 4311: source=sub/conftest.c object=$am__obj \
1.18 paf 4312: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.32 moko 4313: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.18 paf 4314: >/dev/null 2>conftest.err &&
1.32 moko 4315: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.18 paf 4316: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.32 moko 4317: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 4318: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 4319: # icc doesn't choke on unknown options, it will just issue warnings
4320: # or remarks (even with -Werror). So we grep stderr for any message
4321: # that says an option was ignored or not supported.
4322: # When given -MP, icc 7.0 and 7.1 complain thusly:
4323: # icc: Command line warning: ignoring option '-M'; no argument required
4324: # The diagnosis changed in icc 8.0:
4325: # icc: Command line remark: option '-MP' not supported
4326: if (grep 'ignoring option' conftest.err ||
4327: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4328: am_cv_CC_dependencies_compiler_type=$depmode
4329: break
4330: fi
1.11 paf 4331: fi
4332: done
4333:
4334: cd ..
4335: rm -rf conftest.dir
4336: else
4337: am_cv_CC_dependencies_compiler_type=none
4338: fi
4339:
4340: fi
1.32 moko 4341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4342: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.11 paf 4343: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4344:
1.32 moko 4345: if
1.11 paf 4346: test "x$enable_dependency_tracking" != xno \
4347: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4348: am__fastdepCC_TRUE=
4349: am__fastdepCC_FALSE='#'
4350: else
4351: am__fastdepCC_TRUE='#'
4352: am__fastdepCC_FALSE=
4353: fi
4354:
4355:
1.15 paf 4356:
4357:
4358:
4359:
4360:
4361:
4362:
4363:
1.25 moko 4364: case `pwd` in
4365: *\ * | *\ *)
1.32 moko 4366: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4367: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.15 paf 4368: esac
4369:
1.25 moko 4370:
4371:
4372: macro_version='2.4.2'
4373: macro_revision='1.3337'
4374:
4375:
4376:
4377:
4378:
4379:
4380:
4381:
4382:
4383:
4384:
4385:
4386:
4387: ltmain="$ac_aux_dir/ltmain.sh"
4388:
1.15 paf 4389: # Make sure we can run config.sub.
1.32 moko 4390: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4391: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.15 paf 4392:
1.32 moko 4393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4394: $as_echo_n "checking build system type... " >&6; }
4395: if ${ac_cv_build+:} false; then :
4396: $as_echo_n "(cached) " >&6
4397: else
4398: ac_build_alias=$build_alias
4399: test "x$ac_build_alias" = x &&
4400: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4401: test "x$ac_build_alias" = x &&
4402: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4403: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4404: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4405:
4406: fi
4407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4408: $as_echo "$ac_cv_build" >&6; }
4409: case $ac_cv_build in
4410: *-*-*) ;;
4411: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4412: esac
4413: build=$ac_cv_build
4414: ac_save_IFS=$IFS; IFS='-'
4415: set x $ac_cv_build
4416: shift
4417: build_cpu=$1
4418: build_vendor=$2
4419: shift; shift
4420: # Remember, the first character of IFS is used to create $*,
4421: # except with old shells:
4422: build_os=$*
4423: IFS=$ac_save_IFS
4424: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4425:
4426:
4427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4428: $as_echo_n "checking host system type... " >&6; }
4429: if ${ac_cv_host+:} false; then :
4430: $as_echo_n "(cached) " >&6
4431: else
4432: if test "x$host_alias" = x; then
4433: ac_cv_host=$ac_cv_build
4434: else
4435: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4436: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.15 paf 4437: fi
4438:
4439: fi
1.32 moko 4440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4441: $as_echo "$ac_cv_host" >&6; }
4442: case $ac_cv_host in
4443: *-*-*) ;;
4444: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4445: esac
1.15 paf 4446: host=$ac_cv_host
1.32 moko 4447: ac_save_IFS=$IFS; IFS='-'
4448: set x $ac_cv_host
4449: shift
4450: host_cpu=$1
4451: host_vendor=$2
4452: shift; shift
4453: # Remember, the first character of IFS is used to create $*,
4454: # except with old shells:
4455: host_os=$*
4456: IFS=$ac_save_IFS
4457: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.15 paf 4458:
4459:
1.25 moko 4460: # Backslashify metacharacters that are still active within
4461: # double-quoted strings.
4462: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4463:
4464: # Same as above, but do not quote variable references.
4465: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4466:
4467: # Sed substitution to delay expansion of an escaped shell variable in a
4468: # double_quote_subst'ed string.
4469: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4470:
4471: # Sed substitution to delay expansion of an escaped single quote.
4472: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4473:
4474: # Sed substitution to avoid accidental globbing in evaled expressions
4475: no_glob_subst='s/\*/\\\*/g'
4476:
4477: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4478: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4479: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4480:
1.32 moko 4481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4482: $as_echo_n "checking how to print strings... " >&6; }
1.25 moko 4483: # Test print first, because it will be a builtin if present.
4484: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4485: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4486: ECHO='print -r --'
4487: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4488: ECHO='printf %s\n'
4489: else
4490: # Use this function as a fallback that always works.
4491: func_fallback_echo ()
4492: {
4493: eval 'cat <<_LTECHO_EOF
4494: $1
4495: _LTECHO_EOF'
4496: }
4497: ECHO='func_fallback_echo'
1.11 paf 4498: fi
4499:
1.25 moko 4500: # func_echo_all arg...
4501: # Invoke $ECHO with all args, space-separated.
4502: func_echo_all ()
4503: {
4504: $ECHO ""
4505: }
4506:
4507: case "$ECHO" in
1.32 moko 4508: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4509: $as_echo "printf" >&6; } ;;
4510: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4511: $as_echo "print -r" >&6; } ;;
4512: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4513: $as_echo "cat" >&6; } ;;
1.25 moko 4514: esac
4515:
4516:
4517:
4518:
4519:
4520:
4521:
4522:
4523:
4524:
4525:
4526:
1.1 parser 4527:
1.25 moko 4528:
1.32 moko 4529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4530: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4531: if ${ac_cv_path_SED+:} false; then :
4532: $as_echo_n "(cached) " >&6
4533: else
4534: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4535: for ac_i in 1 2 3 4 5 6 7; do
4536: ac_script="$ac_script$as_nl$ac_script"
4537: done
4538: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4539: { ac_script=; unset ac_script;}
4540: if test -z "$SED"; then
4541: ac_path_SED_found=false
4542: # Loop through the user's path and test for each of PROGNAME-LIST
4543: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.25 moko 4544: for as_dir in $PATH
4545: do
4546: IFS=$as_save_IFS
4547: test -z "$as_dir" && as_dir=.
1.32 moko 4548: for ac_prog in sed gsed; do
1.25 moko 4549: for ac_exec_ext in '' $ac_executable_extensions; do
1.32 moko 4550: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4551: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4552: # Check for GNU ac_path_SED and select it if it is found.
4553: # Check for GNU $ac_path_SED
4554: case `"$ac_path_SED" --version 2>&1` in
4555: *GNU*)
4556: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4557: *)
4558: ac_count=0
4559: $as_echo_n 0123456789 >"conftest.in"
4560: while :
4561: do
4562: cat "conftest.in" "conftest.in" >"conftest.tmp"
4563: mv "conftest.tmp" "conftest.in"
4564: cp "conftest.in" "conftest.nl"
4565: $as_echo '' >> "conftest.nl"
4566: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4567: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4568: as_fn_arith $ac_count + 1 && ac_count=$as_val
4569: if test $ac_count -gt ${ac_path_SED_max-0}; then
4570: # Best one so far, save it but keep looking for a better one
4571: ac_cv_path_SED="$ac_path_SED"
4572: ac_path_SED_max=$ac_count
4573: fi
4574: # 10*(2^10) chars as input seems more than enough
4575: test $ac_count -gt 10 && break
4576: done
4577: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4578: esac
4579:
4580: $ac_path_SED_found && break 3
1.25 moko 4581: done
4582: done
1.32 moko 4583: done
1.25 moko 4584: IFS=$as_save_IFS
1.32 moko 4585: if test -z "$ac_cv_path_SED"; then
4586: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.25 moko 4587: fi
1.32 moko 4588: else
4589: ac_cv_path_SED=$SED
1.25 moko 4590: fi
4591:
1.32 moko 4592: fi
4593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4594: $as_echo "$ac_cv_path_SED" >&6; }
4595: SED="$ac_cv_path_SED"
4596: rm -f conftest.sed
1.25 moko 4597:
4598: test -z "$SED" && SED=sed
4599: Xsed="$SED -e 1s/^X//"
4600:
4601:
4602:
4603:
4604:
4605:
4606:
4607:
4608:
4609:
4610:
1.32 moko 4611: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4612: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4613: if ${ac_cv_path_GREP+:} false; then :
4614: $as_echo_n "(cached) " >&6
4615: else
4616: if test -z "$GREP"; then
4617: ac_path_GREP_found=false
4618: # Loop through the user's path and test for each of PROGNAME-LIST
4619: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4621: do
4622: IFS=$as_save_IFS
4623: test -z "$as_dir" && as_dir=.
4624: for ac_prog in grep ggrep; do
4625: for ac_exec_ext in '' $ac_executable_extensions; do
4626: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4627: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4628: # Check for GNU ac_path_GREP and select it if it is found.
4629: # Check for GNU $ac_path_GREP
4630: case `"$ac_path_GREP" --version 2>&1` in
4631: *GNU*)
4632: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4633: *)
4634: ac_count=0
4635: $as_echo_n 0123456789 >"conftest.in"
4636: while :
4637: do
4638: cat "conftest.in" "conftest.in" >"conftest.tmp"
4639: mv "conftest.tmp" "conftest.in"
4640: cp "conftest.in" "conftest.nl"
4641: $as_echo 'GREP' >> "conftest.nl"
4642: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4643: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4644: as_fn_arith $ac_count + 1 && ac_count=$as_val
4645: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4646: # Best one so far, save it but keep looking for a better one
4647: ac_cv_path_GREP="$ac_path_GREP"
4648: ac_path_GREP_max=$ac_count
1.25 moko 4649: fi
1.32 moko 4650: # 10*(2^10) chars as input seems more than enough
4651: test $ac_count -gt 10 && break
4652: done
4653: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4654: esac
4655:
4656: $ac_path_GREP_found && break 3
4657: done
4658: done
4659: done
4660: IFS=$as_save_IFS
4661: if test -z "$ac_cv_path_GREP"; then
4662: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4663: fi
4664: else
4665: ac_cv_path_GREP=$GREP
4666: fi
4667:
1.25 moko 4668: fi
1.32 moko 4669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4670: $as_echo "$ac_cv_path_GREP" >&6; }
4671: GREP="$ac_cv_path_GREP"
4672:
4673:
4674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4675: $as_echo_n "checking for egrep... " >&6; }
4676: if ${ac_cv_path_EGREP+:} false; then :
4677: $as_echo_n "(cached) " >&6
4678: else
4679: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4680: then ac_cv_path_EGREP="$GREP -E"
4681: else
4682: if test -z "$EGREP"; then
4683: ac_path_EGREP_found=false
4684: # Loop through the user's path and test for each of PROGNAME-LIST
4685: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4687: do
4688: IFS=$as_save_IFS
4689: test -z "$as_dir" && as_dir=.
4690: for ac_prog in egrep; do
4691: for ac_exec_ext in '' $ac_executable_extensions; do
4692: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4693: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4694: # Check for GNU ac_path_EGREP and select it if it is found.
4695: # Check for GNU $ac_path_EGREP
4696: case `"$ac_path_EGREP" --version 2>&1` in
4697: *GNU*)
4698: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4699: *)
4700: ac_count=0
4701: $as_echo_n 0123456789 >"conftest.in"
4702: while :
4703: do
4704: cat "conftest.in" "conftest.in" >"conftest.tmp"
4705: mv "conftest.tmp" "conftest.in"
4706: cp "conftest.in" "conftest.nl"
4707: $as_echo 'EGREP' >> "conftest.nl"
4708: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4709: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4710: as_fn_arith $ac_count + 1 && ac_count=$as_val
4711: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4712: # Best one so far, save it but keep looking for a better one
4713: ac_cv_path_EGREP="$ac_path_EGREP"
4714: ac_path_EGREP_max=$ac_count
4715: fi
4716: # 10*(2^10) chars as input seems more than enough
4717: test $ac_count -gt 10 && break
4718: done
4719: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4720: esac
1.25 moko 4721:
1.32 moko 4722: $ac_path_EGREP_found && break 3
4723: done
4724: done
4725: done
4726: IFS=$as_save_IFS
4727: if test -z "$ac_cv_path_EGREP"; then
4728: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4729: fi
4730: else
4731: ac_cv_path_EGREP=$EGREP
4732: fi
1.25 moko 4733:
1.32 moko 4734: fi
4735: fi
4736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4737: $as_echo "$ac_cv_path_EGREP" >&6; }
4738: EGREP="$ac_cv_path_EGREP"
4739:
4740:
4741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4742: $as_echo_n "checking for fgrep... " >&6; }
4743: if ${ac_cv_path_FGREP+:} false; then :
4744: $as_echo_n "(cached) " >&6
4745: else
4746: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4747: then ac_cv_path_FGREP="$GREP -F"
4748: else
4749: if test -z "$FGREP"; then
4750: ac_path_FGREP_found=false
4751: # Loop through the user's path and test for each of PROGNAME-LIST
4752: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4754: do
4755: IFS=$as_save_IFS
4756: test -z "$as_dir" && as_dir=.
4757: for ac_prog in fgrep; do
4758: for ac_exec_ext in '' $ac_executable_extensions; do
4759: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4760: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4761: # Check for GNU ac_path_FGREP and select it if it is found.
4762: # Check for GNU $ac_path_FGREP
4763: case `"$ac_path_FGREP" --version 2>&1` in
4764: *GNU*)
4765: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4766: *)
4767: ac_count=0
4768: $as_echo_n 0123456789 >"conftest.in"
4769: while :
4770: do
4771: cat "conftest.in" "conftest.in" >"conftest.tmp"
4772: mv "conftest.tmp" "conftest.in"
4773: cp "conftest.in" "conftest.nl"
4774: $as_echo 'FGREP' >> "conftest.nl"
4775: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4776: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4777: as_fn_arith $ac_count + 1 && ac_count=$as_val
4778: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4779: # Best one so far, save it but keep looking for a better one
4780: ac_cv_path_FGREP="$ac_path_FGREP"
4781: ac_path_FGREP_max=$ac_count
1.25 moko 4782: fi
1.32 moko 4783: # 10*(2^10) chars as input seems more than enough
4784: test $ac_count -gt 10 && break
4785: done
4786: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4787: esac
4788:
4789: $ac_path_FGREP_found && break 3
4790: done
4791: done
4792: done
4793: IFS=$as_save_IFS
4794: if test -z "$ac_cv_path_FGREP"; then
4795: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4796: fi
4797: else
4798: ac_cv_path_FGREP=$FGREP
4799: fi
4800:
4801: fi
1.25 moko 4802: fi
1.32 moko 4803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4804: $as_echo "$ac_cv_path_FGREP" >&6; }
4805: FGREP="$ac_cv_path_FGREP"
1.25 moko 4806:
4807:
4808: test -z "$GREP" && GREP=grep
4809:
4810:
4811:
4812:
4813:
4814:
4815:
4816:
4817:
4818:
4819:
4820:
4821:
4822:
4823:
4824:
4825:
4826:
4827:
1.32 moko 4828: # Check whether --with-gnu-ld was given.
4829: if test "${with_gnu_ld+set}" = set; then :
4830: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1 parser 4831: else
4832: with_gnu_ld=no
1.32 moko 4833: fi
4834:
1.1 parser 4835: ac_prog=ld
1.11 paf 4836: if test "$GCC" = yes; then
1.1 parser 4837: # Check if gcc -print-prog-name=ld gives a path.
1.32 moko 4838: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4839: $as_echo_n "checking for ld used by $CC... " >&6; }
1.11 paf 4840: case $host in
4841: *-*-mingw*)
4842: # gcc leaves a trailing carriage return which upsets mingw
4843: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4844: *)
4845: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4846: esac
4847: case $ac_prog in
1.1 parser 4848: # Accept absolute paths.
1.25 moko 4849: [\\/]* | ?:[\\/]*)
1.1 parser 4850: re_direlt='/[^/][^/]*/\.\./'
1.25 moko 4851: # Canonicalize the pathname of ld
4852: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4853: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4854: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.1 parser 4855: done
4856: test -z "$LD" && LD="$ac_prog"
4857: ;;
4858: "")
4859: # If it fails, then pretend we aren't using GCC.
4860: ac_prog=ld
4861: ;;
4862: *)
4863: # If it is relative, then search for the first ld in PATH.
4864: with_gnu_ld=unknown
4865: ;;
4866: esac
4867: elif test "$with_gnu_ld" = yes; then
1.32 moko 4868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4869: $as_echo_n "checking for GNU ld... " >&6; }
1.1 parser 4870: else
1.32 moko 4871: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4872: $as_echo_n "checking for non-GNU ld... " >&6; }
1.1 parser 4873: fi
1.32 moko 4874: if ${lt_cv_path_LD+:} false; then :
4875: $as_echo_n "(cached) " >&6
1.1 parser 4876: else
4877: if test -z "$LD"; then
1.25 moko 4878: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 4879: for ac_dir in $PATH; do
1.25 moko 4880: IFS="$lt_save_ifs"
1.1 parser 4881: test -z "$ac_dir" && ac_dir=.
4882: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.11 paf 4883: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 4884: # Check to see if the program is GNU ld. I'd rather use --version,
1.25 moko 4885: # but apparently some variants of GNU ld only accept -v.
1.1 parser 4886: # Break only if it was the GNU/non-GNU ld that we prefer.
1.25 moko 4887: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4888: *GNU* | *'with BFD'*)
1.1 parser 4889: test "$with_gnu_ld" != no && break
1.25 moko 4890: ;;
4891: *)
1.1 parser 4892: test "$with_gnu_ld" != yes && break
1.25 moko 4893: ;;
4894: esac
1.1 parser 4895: fi
4896: done
1.25 moko 4897: IFS="$lt_save_ifs"
1.1 parser 4898: else
1.11 paf 4899: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 4900: fi
4901: fi
4902:
1.11 paf 4903: LD="$lt_cv_path_LD"
1.1 parser 4904: if test -n "$LD"; then
1.32 moko 4905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4906: $as_echo "$LD" >&6; }
1.1 parser 4907: else
1.32 moko 4908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909: $as_echo "no" >&6; }
1.1 parser 4910: fi
1.32 moko 4911: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4913: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4914: if ${lt_cv_prog_gnu_ld+:} false; then :
4915: $as_echo_n "(cached) " >&6
1.1 parser 4916: else
1.25 moko 4917: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4918: case `$LD -v 2>&1 </dev/null` in
4919: *GNU* | *'with BFD'*)
1.11 paf 4920: lt_cv_prog_gnu_ld=yes
1.25 moko 4921: ;;
4922: *)
1.11 paf 4923: lt_cv_prog_gnu_ld=no
1.25 moko 4924: ;;
4925: esac
1.1 parser 4926: fi
1.32 moko 4927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4928: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.11 paf 4929: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 4930:
4931:
4932:
1.25 moko 4933:
4934:
4935:
4936:
4937:
4938:
1.32 moko 4939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4940: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4941: if ${lt_cv_path_NM+:} false; then :
4942: $as_echo_n "(cached) " >&6
1.1 parser 4943: else
4944: if test -n "$NM"; then
4945: # Let the user override the test.
1.11 paf 4946: lt_cv_path_NM="$NM"
1.1 parser 4947: else
1.25 moko 4948: lt_nm_to_check="${ac_tool_prefix}nm"
4949: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4950: lt_nm_to_check="$lt_nm_to_check nm"
4951: fi
4952: for lt_tmp_nm in $lt_nm_to_check; do
4953: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4954: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4955: IFS="$lt_save_ifs"
4956: test -z "$ac_dir" && ac_dir=.
4957: tmp_nm="$ac_dir/$lt_tmp_nm"
4958: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4959: # Check to see if the nm accepts a BSD-compat flag.
4960: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4961: # nm: unknown option "B" ignored
4962: # Tru64's nm complains that /dev/null is an invalid object file
4963: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4964: */dev/null* | *'Invalid file or object type'*)
4965: lt_cv_path_NM="$tmp_nm -B"
4966: break
4967: ;;
4968: *)
4969: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4970: */dev/null*)
4971: lt_cv_path_NM="$tmp_nm -p"
4972: break
4973: ;;
4974: *)
4975: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4976: continue # so that we can try to find one that supports BSD flags
4977: ;;
4978: esac
4979: ;;
4980: esac
1.1 parser 4981: fi
1.25 moko 4982: done
4983: IFS="$lt_save_ifs"
1.1 parser 4984: done
1.25 moko 4985: : ${lt_cv_path_NM=no}
1.1 parser 4986: fi
4987: fi
1.32 moko 4988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4989: $as_echo "$lt_cv_path_NM" >&6; }
1.25 moko 4990: if test "$lt_cv_path_NM" != "no"; then
4991: NM="$lt_cv_path_NM"
4992: else
4993: # Didn't find any BSD compatible name lister, look for dumpbin.
4994: if test -n "$DUMPBIN"; then :
4995: # Let the user override the test.
4996: else
4997: if test -n "$ac_tool_prefix"; then
4998: for ac_prog in dumpbin "link -dump"
4999: do
5000: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5001: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.32 moko 5002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003: $as_echo_n "checking for $ac_word... " >&6; }
5004: if ${ac_cv_prog_DUMPBIN+:} false; then :
5005: $as_echo_n "(cached) " >&6
1.25 moko 5006: else
5007: if test -n "$DUMPBIN"; then
5008: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5009: else
5010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011: for as_dir in $PATH
5012: do
5013: IFS=$as_save_IFS
5014: test -z "$as_dir" && as_dir=.
1.32 moko 5015: for ac_exec_ext in '' $ac_executable_extensions; do
5016: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 5017: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.32 moko 5018: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5019: break 2
5020: fi
5021: done
1.32 moko 5022: done
5023: IFS=$as_save_IFS
1.1 parser 5024:
1.25 moko 5025: fi
5026: fi
5027: DUMPBIN=$ac_cv_prog_DUMPBIN
5028: if test -n "$DUMPBIN"; then
1.32 moko 5029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5030: $as_echo "$DUMPBIN" >&6; }
1.25 moko 5031: else
1.32 moko 5032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033: $as_echo "no" >&6; }
1.25 moko 5034: fi
1.1 parser 5035:
1.32 moko 5036:
1.25 moko 5037: test -n "$DUMPBIN" && break
5038: done
5039: fi
5040: if test -z "$DUMPBIN"; then
5041: ac_ct_DUMPBIN=$DUMPBIN
5042: for ac_prog in dumpbin "link -dump"
5043: do
5044: # Extract the first word of "$ac_prog", so it can be a program name with args.
5045: set dummy $ac_prog; ac_word=$2
1.32 moko 5046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047: $as_echo_n "checking for $ac_word... " >&6; }
5048: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5049: $as_echo_n "(cached) " >&6
1.1 parser 5050: else
1.25 moko 5051: if test -n "$ac_ct_DUMPBIN"; then
5052: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5053: else
1.11 paf 5054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055: for as_dir in $PATH
5056: do
5057: IFS=$as_save_IFS
5058: test -z "$as_dir" && as_dir=.
1.32 moko 5059: for ac_exec_ext in '' $ac_executable_extensions; do
5060: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 5061: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.32 moko 5062: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5063: break 2
5064: fi
5065: done
1.32 moko 5066: done
5067: IFS=$as_save_IFS
1.25 moko 5068:
5069: fi
5070: fi
5071: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5072: if test -n "$ac_ct_DUMPBIN"; then
1.32 moko 5073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5074: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.25 moko 5075: else
1.32 moko 5076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077: $as_echo "no" >&6; }
1.25 moko 5078: fi
5079:
1.32 moko 5080:
1.25 moko 5081: test -n "$ac_ct_DUMPBIN" && break
1.11 paf 5082: done
5083:
1.32 moko 5084: if test "x$ac_ct_DUMPBIN" = x; then
5085: DUMPBIN=":"
5086: else
5087: case $cross_compiling:$ac_tool_warned in
5088: yes:)
5089: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5090: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5091: ac_tool_warned=yes ;;
5092: esac
5093: DUMPBIN=$ac_ct_DUMPBIN
5094: fi
1.25 moko 5095: fi
1.11 paf 5096:
1.25 moko 5097: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5098: *COFF*)
5099: DUMPBIN="$DUMPBIN -symbols"
5100: ;;
5101: *)
5102: DUMPBIN=:
5103: ;;
5104: esac
5105: fi
1.11 paf 5106:
1.25 moko 5107: if test "$DUMPBIN" != ":"; then
5108: NM="$DUMPBIN"
5109: fi
1.1 parser 5110: fi
1.25 moko 5111: test -z "$NM" && NM=nm
5112:
5113:
5114:
5115:
5116:
1.1 parser 5117:
1.32 moko 5118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5119: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5120: if ${lt_cv_nm_interface+:} false; then :
5121: $as_echo_n "(cached) " >&6
1.7 paf 5122: else
1.25 moko 5123: lt_cv_nm_interface="BSD nm"
5124: echo "int some_variable = 0;" > conftest.$ac_ext
5125: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5126: (eval "$ac_compile" 2>conftest.err)
5127: cat conftest.err >&5
5128: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5129: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5130: cat conftest.err >&5
5131: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5132: cat conftest.out >&5
5133: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5134: lt_cv_nm_interface="MS dumpbin"
5135: fi
5136: rm -f conftest*
1.7 paf 5137: fi
1.32 moko 5138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5139: $as_echo "$lt_cv_nm_interface" >&6; }
1.11 paf 5140:
1.32 moko 5141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5142: $as_echo_n "checking whether ln -s works... " >&6; }
1.11 paf 5143: LN_S=$as_ln_s
5144: if test "$LN_S" = "ln -s"; then
1.32 moko 5145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146: $as_echo "yes" >&6; }
1.11 paf 5147: else
1.32 moko 5148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5149: $as_echo "no, using $LN_S" >&6; }
1.11 paf 5150: fi
5151:
1.25 moko 5152: # find the maximum length of command line arguments
1.32 moko 5153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5154: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5155: if ${lt_cv_sys_max_cmd_len+:} false; then :
5156: $as_echo_n "(cached) " >&6
1.11 paf 5157: else
1.25 moko 5158: i=0
5159: teststring="ABCD"
5160:
5161: case $build_os in
5162: msdosdjgpp*)
5163: # On DJGPP, this test can blow up pretty badly due to problems in libc
5164: # (any single argument exceeding 2000 bytes causes a buffer overrun
5165: # during glob expansion). Even if it were fixed, the result of this
5166: # check would be larger than it should be.
5167: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5168: ;;
1.11 paf 5169:
1.25 moko 5170: gnu*)
5171: # Under GNU Hurd, this test is not required because there is
5172: # no limit to the length of command line arguments.
5173: # Libtool will interpret -1 as no limit whatsoever
5174: lt_cv_sys_max_cmd_len=-1;
5175: ;;
1.7 paf 5176:
1.25 moko 5177: cygwin* | mingw* | cegcc*)
5178: # On Win9x/ME, this test blows up -- it succeeds, but takes
5179: # about 5 minutes as the teststring grows exponentially.
5180: # Worse, since 9x/ME are not pre-emptively multitasking,
5181: # you end up with a "frozen" computer, even though with patience
5182: # the test eventually succeeds (with a max line length of 256k).
5183: # Instead, let's just punt: use the minimum linelength reported by
5184: # all of the supported platforms: 8192 (on NT/2K/XP).
5185: lt_cv_sys_max_cmd_len=8192;
5186: ;;
1.1 parser 5187:
1.25 moko 5188: mint*)
5189: # On MiNT this can take a long time and run out of memory.
5190: lt_cv_sys_max_cmd_len=8192;
5191: ;;
1.1 parser 5192:
1.25 moko 5193: amigaos*)
5194: # On AmigaOS with pdksh, this test takes hours, literally.
5195: # So we just punt and use a minimum line length of 8192.
5196: lt_cv_sys_max_cmd_len=8192;
5197: ;;
1.1 parser 5198:
1.25 moko 5199: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5200: # This has been around since 386BSD, at least. Likely further.
5201: if test -x /sbin/sysctl; then
5202: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5203: elif test -x /usr/sbin/sysctl; then
5204: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5205: else
5206: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5207: fi
5208: # And add a safety zone
5209: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5210: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1.11 paf 5211: ;;
1.25 moko 5212:
5213: interix*)
5214: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5215: lt_cv_sys_max_cmd_len=196608
1.11 paf 5216: ;;
1.1 parser 5217:
1.25 moko 5218: os2*)
5219: # The test takes a long time on OS/2.
5220: lt_cv_sys_max_cmd_len=8192
5221: ;;
5222:
5223: osf*)
5224: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5225: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5226: # nice to cause kernel panics so lets avoid the loop below.
5227: # First set a reasonable default.
5228: lt_cv_sys_max_cmd_len=16384
5229: #
5230: if test -x /sbin/sysconfig; then
5231: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5232: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5233: esac
5234: fi
5235: ;;
5236: sco3.2v5*)
5237: lt_cv_sys_max_cmd_len=102400
5238: ;;
5239: sysv5* | sco5v6* | sysv4.2uw2*)
5240: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5241: if test -n "$kargmax"; then
5242: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5243: else
5244: lt_cv_sys_max_cmd_len=32768
5245: fi
5246: ;;
5247: *)
5248: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5249: if test -n "$lt_cv_sys_max_cmd_len"; then
5250: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5251: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5252: else
5253: # Make teststring a little bigger before we do anything with it.
5254: # a 1K string should be a reasonable start.
5255: for i in 1 2 3 4 5 6 7 8 ; do
5256: teststring=$teststring$teststring
5257: done
5258: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5259: # If test is not a shell built-in, we'll probably end up computing a
5260: # maximum length that is only half of the actual maximum length, but
5261: # we can't tell.
5262: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5263: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5264: test $i != 17 # 1/2 MB should be enough
5265: do
5266: i=`expr $i + 1`
5267: teststring=$teststring$teststring
5268: done
5269: # Only check the string length outside the loop.
5270: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5271: teststring=
5272: # Add a significant safety factor because C++ compilers can tack on
5273: # massive amounts of additional arguments before passing them to the
5274: # linker. It appears as though 1/2 is a usable value.
5275: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5276: fi
5277: ;;
5278: esac
5279:
5280: fi
5281:
5282: if test -n $lt_cv_sys_max_cmd_len ; then
1.32 moko 5283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5284: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.25 moko 5285: else
1.32 moko 5286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5287: $as_echo "none" >&6; }
1.25 moko 5288: fi
5289: max_cmd_len=$lt_cv_sys_max_cmd_len
5290:
5291:
5292:
5293:
5294:
5295:
5296: : ${CP="cp -f"}
5297: : ${MV="mv -f"}
5298: : ${RM="rm -f"}
5299:
1.32 moko 5300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5301: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.25 moko 5302: # Try some XSI features
5303: xsi_shell=no
5304: ( _lt_dummy="a/b/c"
5305: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5306: = c,a/b,b/c, \
5307: && eval 'test $(( 1 + 1 )) -eq 2 \
5308: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5309: && xsi_shell=yes
1.32 moko 5310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5311: $as_echo "$xsi_shell" >&6; }
1.25 moko 5312:
5313:
1.32 moko 5314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5315: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.25 moko 5316: lt_shell_append=no
5317: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5318: >/dev/null 2>&1 \
5319: && lt_shell_append=yes
1.32 moko 5320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5321: $as_echo "$lt_shell_append" >&6; }
1.25 moko 5322:
5323:
5324: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5325: lt_unset=unset
5326: else
5327: lt_unset=false
5328: fi
5329:
5330:
5331:
5332:
5333:
5334: # test EBCDIC or ASCII
5335: case `echo X|tr X '\101'` in
5336: A) # ASCII based system
5337: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5338: lt_SP2NL='tr \040 \012'
5339: lt_NL2SP='tr \015\012 \040\040'
5340: ;;
5341: *) # EBCDIC based system
5342: lt_SP2NL='tr \100 \n'
5343: lt_NL2SP='tr \r\n \100\100'
5344: ;;
5345: esac
5346:
5347:
5348:
5349:
5350:
5351:
5352:
5353:
5354:
1.32 moko 5355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5356: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5357: if ${lt_cv_to_host_file_cmd+:} false; then :
5358: $as_echo_n "(cached) " >&6
1.25 moko 5359: else
5360: case $host in
5361: *-*-mingw* )
5362: case $build in
5363: *-*-mingw* ) # actually msys
5364: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5365: ;;
5366: *-*-cygwin* )
5367: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5368: ;;
5369: * ) # otherwise, assume *nix
5370: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5371: ;;
5372: esac
5373: ;;
5374: *-*-cygwin* )
5375: case $build in
5376: *-*-mingw* ) # actually msys
5377: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5378: ;;
5379: *-*-cygwin* )
5380: lt_cv_to_host_file_cmd=func_convert_file_noop
5381: ;;
5382: * ) # otherwise, assume *nix
5383: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5384: ;;
5385: esac
5386: ;;
5387: * ) # unhandled hosts (and "normal" native builds)
5388: lt_cv_to_host_file_cmd=func_convert_file_noop
5389: ;;
5390: esac
5391:
5392: fi
5393:
5394: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.32 moko 5395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5396: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.25 moko 5397:
5398:
5399:
5400:
5401:
1.32 moko 5402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5403: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5404: if ${lt_cv_to_tool_file_cmd+:} false; then :
5405: $as_echo_n "(cached) " >&6
1.25 moko 5406: else
5407: #assume ordinary cross tools, or native build.
5408: lt_cv_to_tool_file_cmd=func_convert_file_noop
5409: case $host in
5410: *-*-mingw* )
5411: case $build in
5412: *-*-mingw* ) # actually msys
5413: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5414: ;;
5415: esac
5416: ;;
5417: esac
5418:
5419: fi
5420:
5421: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.32 moko 5422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5423: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.25 moko 5424:
5425:
5426:
5427:
5428:
1.32 moko 5429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5430: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5431: if ${lt_cv_ld_reload_flag+:} false; then :
5432: $as_echo_n "(cached) " >&6
1.25 moko 5433: else
5434: lt_cv_ld_reload_flag='-r'
5435: fi
1.32 moko 5436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5437: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.25 moko 5438: reload_flag=$lt_cv_ld_reload_flag
5439: case $reload_flag in
5440: "" | " "*) ;;
5441: *) reload_flag=" $reload_flag" ;;
5442: esac
5443: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5444: case $host_os in
5445: cygwin* | mingw* | pw32* | cegcc*)
5446: if test "$GCC" != yes; then
5447: reload_cmds=false
5448: fi
5449: ;;
5450: darwin*)
5451: if test "$GCC" = yes; then
5452: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5453: else
5454: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5455: fi
5456: ;;
5457: esac
5458:
5459:
5460:
5461:
5462:
5463:
5464:
5465:
5466:
5467: if test -n "$ac_tool_prefix"; then
5468: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5469: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.32 moko 5470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471: $as_echo_n "checking for $ac_word... " >&6; }
5472: if ${ac_cv_prog_OBJDUMP+:} false; then :
5473: $as_echo_n "(cached) " >&6
1.25 moko 5474: else
5475: if test -n "$OBJDUMP"; then
5476: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5477: else
5478: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479: for as_dir in $PATH
5480: do
5481: IFS=$as_save_IFS
5482: test -z "$as_dir" && as_dir=.
1.32 moko 5483: for ac_exec_ext in '' $ac_executable_extensions; do
5484: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 5485: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.32 moko 5486: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5487: break 2
5488: fi
5489: done
1.32 moko 5490: done
5491: IFS=$as_save_IFS
1.25 moko 5492:
5493: fi
5494: fi
5495: OBJDUMP=$ac_cv_prog_OBJDUMP
5496: if test -n "$OBJDUMP"; then
1.32 moko 5497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5498: $as_echo "$OBJDUMP" >&6; }
1.25 moko 5499: else
1.32 moko 5500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501: $as_echo "no" >&6; }
1.25 moko 5502: fi
5503:
1.32 moko 5504:
1.25 moko 5505: fi
5506: if test -z "$ac_cv_prog_OBJDUMP"; then
5507: ac_ct_OBJDUMP=$OBJDUMP
5508: # Extract the first word of "objdump", so it can be a program name with args.
5509: set dummy objdump; ac_word=$2
1.32 moko 5510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511: $as_echo_n "checking for $ac_word... " >&6; }
5512: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5513: $as_echo_n "(cached) " >&6
1.25 moko 5514: else
5515: if test -n "$ac_ct_OBJDUMP"; then
5516: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5517: else
5518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519: for as_dir in $PATH
5520: do
5521: IFS=$as_save_IFS
5522: test -z "$as_dir" && as_dir=.
1.32 moko 5523: for ac_exec_ext in '' $ac_executable_extensions; do
5524: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 5525: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.32 moko 5526: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5527: break 2
5528: fi
5529: done
1.32 moko 5530: done
5531: IFS=$as_save_IFS
1.25 moko 5532:
5533: fi
5534: fi
5535: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5536: if test -n "$ac_ct_OBJDUMP"; then
1.32 moko 5537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5538: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.25 moko 5539: else
1.32 moko 5540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541: $as_echo "no" >&6; }
1.25 moko 5542: fi
5543:
1.32 moko 5544: if test "x$ac_ct_OBJDUMP" = x; then
5545: OBJDUMP="false"
5546: else
5547: case $cross_compiling:$ac_tool_warned in
5548: yes:)
5549: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551: ac_tool_warned=yes ;;
5552: esac
5553: OBJDUMP=$ac_ct_OBJDUMP
5554: fi
1.25 moko 5555: else
5556: OBJDUMP="$ac_cv_prog_OBJDUMP"
5557: fi
5558:
5559: test -z "$OBJDUMP" && OBJDUMP=objdump
5560:
5561:
5562:
5563:
5564:
5565:
1.32 moko 5566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5567: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5568: if ${lt_cv_deplibs_check_method+:} false; then :
5569: $as_echo_n "(cached) " >&6
1.25 moko 5570: else
5571: lt_cv_file_magic_cmd='$MAGIC_CMD'
5572: lt_cv_file_magic_test_file=
5573: lt_cv_deplibs_check_method='unknown'
5574: # Need to set the preceding variable on all platforms that support
5575: # interlibrary dependencies.
5576: # 'none' -- dependencies not supported.
5577: # `unknown' -- same as none, but documents that we really don't know.
5578: # 'pass_all' -- all dependencies passed with no checks.
5579: # 'test_compile' -- check by making test program.
5580: # 'file_magic [[regex]]' -- check by looking for files in library path
5581: # which responds to the $file_magic_cmd with a given extended regex.
5582: # If you have `file' or equivalent on your system and you're not sure
5583: # whether `pass_all' will *always* work, you probably want this one.
5584:
5585: case $host_os in
5586: aix[4-9]*)
5587: lt_cv_deplibs_check_method=pass_all
5588: ;;
5589:
5590: beos*)
5591: lt_cv_deplibs_check_method=pass_all
5592: ;;
5593:
5594: bsdi[45]*)
5595: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5596: lt_cv_file_magic_cmd='/usr/bin/file -L'
5597: lt_cv_file_magic_test_file=/shlib/libc.so
5598: ;;
5599:
5600: cygwin*)
5601: # func_win32_libid is a shell function defined in ltmain.sh
5602: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5603: lt_cv_file_magic_cmd='func_win32_libid'
5604: ;;
5605:
5606: mingw* | pw32*)
5607: # Base MSYS/MinGW do not provide the 'file' command needed by
5608: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5609: # unless we find 'file', for example because we are cross-compiling.
5610: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5611: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5612: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5613: lt_cv_file_magic_cmd='func_win32_libid'
5614: else
5615: # Keep this pattern in sync with the one in func_win32_libid.
5616: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5617: lt_cv_file_magic_cmd='$OBJDUMP -f'
5618: fi
5619: ;;
5620:
5621: cegcc*)
5622: # use the weaker test based on 'objdump'. See mingw*.
5623: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5624: lt_cv_file_magic_cmd='$OBJDUMP -f'
5625: ;;
5626:
5627: darwin* | rhapsody*)
5628: lt_cv_deplibs_check_method=pass_all
5629: ;;
5630:
5631: freebsd* | dragonfly*)
5632: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.11 paf 5633: case $host_cpu in
5634: i*86 )
5635: # Not sure whether the presence of OpenBSD here was a mistake.
5636: # Let's accept both of them until this is cleared up.
1.25 moko 5637: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.11 paf 5638: lt_cv_file_magic_cmd=/usr/bin/file
5639: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 5640: ;;
5641: esac
1.11 paf 5642: else
5643: lt_cv_deplibs_check_method=pass_all
1.1 parser 5644: fi
5645: ;;
5646:
1.11 paf 5647: gnu*)
5648: lt_cv_deplibs_check_method=pass_all
5649: ;;
1.1 parser 5650:
1.25 moko 5651: haiku*)
5652: lt_cv_deplibs_check_method=pass_all
1.11 paf 5653: ;;
1.1 parser 5654:
1.25 moko 5655: hpux10.20* | hpux11*)
5656: lt_cv_file_magic_cmd=/usr/bin/file
5657: case $host_cpu in
5658: ia64*)
5659: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5660: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5661: ;;
5662: hppa*64*)
5663: 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]'
5664: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.11 paf 5665: ;;
5666: *)
1.25 moko 5667: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5668: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.11 paf 5669: ;;
5670: esac
1.25 moko 5671: ;;
5672:
5673: interix[3-9]*)
5674: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5675: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5676: ;;
5677:
5678: irix5* | irix6* | nonstopux*)
5679: case $LD in
5680: *-32|*"-32 ") libmagic=32-bit;;
5681: *-n32|*"-n32 ") libmagic=N32;;
5682: *-64|*"-64 ") libmagic=64-bit;;
5683: *) libmagic=never-match;;
5684: esac
1.11 paf 5685: lt_cv_deplibs_check_method=pass_all
5686: ;;
5687:
1.25 moko 5688: # This must be glibc/ELF.
5689: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5690: lt_cv_deplibs_check_method=pass_all
1.11 paf 5691: ;;
5692:
5693: netbsd*)
1.25 moko 5694: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5695: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.11 paf 5696: else
1.25 moko 5697: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.11 paf 5698: fi
5699: ;;
5700:
5701: newos6*)
5702: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5703: lt_cv_file_magic_cmd=/usr/bin/file
5704: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5705: ;;
5706:
1.25 moko 5707: *nto* | *qnx*)
5708: lt_cv_deplibs_check_method=pass_all
5709: ;;
5710:
1.11 paf 5711: openbsd*)
1.25 moko 5712: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5713: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.11 paf 5714: else
1.25 moko 5715: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.11 paf 5716: fi
5717: ;;
5718:
5719: osf3* | osf4* | osf5*)
5720: lt_cv_deplibs_check_method=pass_all
5721: ;;
5722:
1.25 moko 5723: rdos*)
1.11 paf 5724: lt_cv_deplibs_check_method=pass_all
5725: ;;
5726:
5727: solaris*)
5728: lt_cv_deplibs_check_method=pass_all
5729: ;;
5730:
1.25 moko 5731: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.11 paf 5732: lt_cv_deplibs_check_method=pass_all
5733: ;;
5734:
1.25 moko 5735: sysv4 | sysv4.3*)
1.11 paf 5736: case $host_vendor in
5737: motorola)
5738: 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]'
5739: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5740: ;;
5741: ncr)
5742: lt_cv_deplibs_check_method=pass_all
5743: ;;
5744: sequent)
5745: lt_cv_file_magic_cmd='/bin/file'
5746: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5747: ;;
5748: sni)
5749: lt_cv_file_magic_cmd='/bin/file'
5750: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5751: lt_cv_file_magic_test_file=/lib/libc.so
5752: ;;
5753: siemens)
5754: lt_cv_deplibs_check_method=pass_all
5755: ;;
1.25 moko 5756: pc)
5757: lt_cv_deplibs_check_method=pass_all
5758: ;;
1.11 paf 5759: esac
5760: ;;
1.25 moko 5761:
5762: tpf*)
5763: lt_cv_deplibs_check_method=pass_all
5764: ;;
5765: esac
1.11 paf 5766:
5767: fi
1.32 moko 5768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5769: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.25 moko 5770:
5771: file_magic_glob=
5772: want_nocaseglob=no
5773: if test "$build" = "$host"; then
5774: case $host_os in
5775: mingw* | pw32*)
5776: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5777: want_nocaseglob=yes
5778: else
5779: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5780: fi
5781: ;;
5782: esac
5783: fi
5784:
1.11 paf 5785: file_magic_cmd=$lt_cv_file_magic_cmd
5786: deplibs_check_method=$lt_cv_deplibs_check_method
1.25 moko 5787: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5788:
5789:
5790:
1.11 paf 5791:
5792:
5793:
5794:
5795:
5796:
5797:
5798:
1.25 moko 5799:
5800:
5801:
5802:
5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810: if test -n "$ac_tool_prefix"; then
5811: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5812: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.32 moko 5813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814: $as_echo_n "checking for $ac_word... " >&6; }
5815: if ${ac_cv_prog_DLLTOOL+:} false; then :
5816: $as_echo_n "(cached) " >&6
1.25 moko 5817: else
5818: if test -n "$DLLTOOL"; then
5819: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5820: else
5821: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822: for as_dir in $PATH
5823: do
5824: IFS=$as_save_IFS
5825: test -z "$as_dir" && as_dir=.
1.32 moko 5826: for ac_exec_ext in '' $ac_executable_extensions; do
5827: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 5828: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.32 moko 5829: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5830: break 2
5831: fi
5832: done
1.32 moko 5833: done
5834: IFS=$as_save_IFS
1.25 moko 5835:
5836: fi
5837: fi
5838: DLLTOOL=$ac_cv_prog_DLLTOOL
5839: if test -n "$DLLTOOL"; then
1.32 moko 5840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5841: $as_echo "$DLLTOOL" >&6; }
1.25 moko 5842: else
1.32 moko 5843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844: $as_echo "no" >&6; }
1.25 moko 5845: fi
5846:
1.32 moko 5847:
1.25 moko 5848: fi
5849: if test -z "$ac_cv_prog_DLLTOOL"; then
5850: ac_ct_DLLTOOL=$DLLTOOL
5851: # Extract the first word of "dlltool", so it can be a program name with args.
5852: set dummy dlltool; ac_word=$2
1.32 moko 5853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854: $as_echo_n "checking for $ac_word... " >&6; }
5855: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5856: $as_echo_n "(cached) " >&6
1.11 paf 5857: else
1.25 moko 5858: if test -n "$ac_ct_DLLTOOL"; then
5859: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5860: else
5861: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862: for as_dir in $PATH
5863: do
5864: IFS=$as_save_IFS
5865: test -z "$as_dir" && as_dir=.
1.32 moko 5866: for ac_exec_ext in '' $ac_executable_extensions; do
5867: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 5868: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.32 moko 5869: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5870: break 2
5871: fi
5872: done
1.32 moko 5873: done
5874: IFS=$as_save_IFS
1.25 moko 5875:
5876: fi
5877: fi
5878: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5879: if test -n "$ac_ct_DLLTOOL"; then
1.32 moko 5880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5881: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.25 moko 5882: else
1.32 moko 5883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884: $as_echo "no" >&6; }
1.25 moko 5885: fi
5886:
1.32 moko 5887: if test "x$ac_ct_DLLTOOL" = x; then
5888: DLLTOOL="false"
5889: else
5890: case $cross_compiling:$ac_tool_warned in
5891: yes:)
5892: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894: ac_tool_warned=yes ;;
5895: esac
5896: DLLTOOL=$ac_ct_DLLTOOL
5897: fi
1.25 moko 5898: else
5899: DLLTOOL="$ac_cv_prog_DLLTOOL"
5900: fi
5901:
5902: test -z "$DLLTOOL" && DLLTOOL=dlltool
5903:
1.11 paf 5904:
5905:
5906:
5907:
5908:
5909:
1.32 moko 5910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5911: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5912: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5913: $as_echo_n "(cached) " >&6
1.25 moko 5914: else
5915: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.11 paf 5916:
5917: case $host_os in
1.25 moko 5918: cygwin* | mingw* | pw32* | cegcc*)
5919: # two different shell functions defined in ltmain.sh
5920: # decide which to use based on capabilities of $DLLTOOL
5921: case `$DLLTOOL --help 2>&1` in
5922: *--identify-strict*)
5923: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5924: ;;
5925: *)
5926: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5927: ;;
5928: esac
1.11 paf 5929: ;;
1.25 moko 5930: *)
5931: # fallback: assume linklib IS sharedlib
5932: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.11 paf 5933: ;;
5934: esac
5935:
5936: fi
1.32 moko 5937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5938: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.25 moko 5939: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5940: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.11 paf 5941:
5942:
5943:
5944:
5945:
5946:
5947:
5948:
1.25 moko 5949: if test -n "$ac_tool_prefix"; then
5950: for ac_prog in ar
5951: do
5952: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5953: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.32 moko 5954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955: $as_echo_n "checking for $ac_word... " >&6; }
5956: if ${ac_cv_prog_AR+:} false; then :
5957: $as_echo_n "(cached) " >&6
1.25 moko 5958: else
5959: if test -n "$AR"; then
5960: ac_cv_prog_AR="$AR" # Let the user override the test.
5961: else
5962: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963: for as_dir in $PATH
5964: do
5965: IFS=$as_save_IFS
5966: test -z "$as_dir" && as_dir=.
1.32 moko 5967: for ac_exec_ext in '' $ac_executable_extensions; do
5968: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 5969: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.32 moko 5970: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5971: break 2
1.11 paf 5972: fi
5973: done
1.32 moko 5974: done
5975: IFS=$as_save_IFS
1.11 paf 5976:
5977: fi
5978: fi
1.25 moko 5979: AR=$ac_cv_prog_AR
5980: if test -n "$AR"; then
1.32 moko 5981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5982: $as_echo "$AR" >&6; }
1.11 paf 5983: else
1.32 moko 5984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985: $as_echo "no" >&6; }
1.11 paf 5986: fi
5987:
1.32 moko 5988:
1.25 moko 5989: test -n "$AR" && break
5990: done
1.15 paf 5991: fi
1.25 moko 5992: if test -z "$AR"; then
5993: ac_ct_AR=$AR
5994: for ac_prog in ar
5995: do
5996: # Extract the first word of "$ac_prog", so it can be a program name with args.
5997: set dummy $ac_prog; ac_word=$2
1.32 moko 5998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999: $as_echo_n "checking for $ac_word... " >&6; }
6000: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6001: $as_echo_n "(cached) " >&6
1.11 paf 6002: else
1.25 moko 6003: if test -n "$ac_ct_AR"; then
6004: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6005: else
6006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007: for as_dir in $PATH
1.11 paf 6008: do
1.25 moko 6009: IFS=$as_save_IFS
6010: test -z "$as_dir" && as_dir=.
1.32 moko 6011: for ac_exec_ext in '' $ac_executable_extensions; do
6012: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 6013: ac_cv_prog_ac_ct_AR="$ac_prog"
1.32 moko 6014: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6015: break 2
1.11 paf 6016: fi
1.25 moko 6017: done
1.32 moko 6018: done
6019: IFS=$as_save_IFS
1.11 paf 6020:
6021: fi
6022: fi
1.25 moko 6023: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6024: if test -n "$ac_ct_AR"; then
1.32 moko 6025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6026: $as_echo "$ac_ct_AR" >&6; }
1.1 parser 6027: else
1.32 moko 6028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029: $as_echo "no" >&6; }
1.1 parser 6030: fi
1.11 paf 6031:
1.32 moko 6032:
1.25 moko 6033: test -n "$ac_ct_AR" && break
1.11 paf 6034: done
1.25 moko 6035:
1.32 moko 6036: if test "x$ac_ct_AR" = x; then
6037: AR="false"
6038: else
6039: case $cross_compiling:$ac_tool_warned in
6040: yes:)
6041: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043: ac_tool_warned=yes ;;
6044: esac
6045: AR=$ac_ct_AR
6046: fi
1.1 parser 6047: fi
6048:
1.25 moko 6049: : ${AR=ar}
6050: : ${AR_FLAGS=cru}
6051:
1.11 paf 6052:
6053:
1.1 parser 6054:
1.11 paf 6055:
6056:
6057:
6058:
6059:
6060:
6061:
1.32 moko 6062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6063: $as_echo_n "checking for archiver @FILE support... " >&6; }
6064: if ${lt_cv_ar_at_file+:} false; then :
6065: $as_echo_n "(cached) " >&6
1.11 paf 6066: else
1.25 moko 6067: lt_cv_ar_at_file=no
1.32 moko 6068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 6069: /* end confdefs.h. */
6070:
6071: int
6072: main ()
6073: {
6074:
6075: ;
6076: return 0;
6077: }
6078: _ACEOF
1.32 moko 6079: if ac_fn_c_try_compile "$LINENO"; then :
1.25 moko 6080: echo conftest.$ac_objext > conftest.lst
6081: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.32 moko 6082: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.25 moko 6083: (eval $lt_ar_try) 2>&5
6084: ac_status=$?
1.32 moko 6085: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086: test $ac_status = 0; }
1.25 moko 6087: if test "$ac_status" -eq 0; then
6088: # Ensure the archiver fails upon bogus file names.
6089: rm -f conftest.$ac_objext libconftest.a
1.32 moko 6090: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.25 moko 6091: (eval $lt_ar_try) 2>&5
6092: ac_status=$?
1.32 moko 6093: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094: test $ac_status = 0; }
1.25 moko 6095: if test "$ac_status" -ne 0; then
6096: lt_cv_ar_at_file=@
6097: fi
6098: fi
6099: rm -f conftest.* libconftest.a
6100:
1.11 paf 6101: fi
1.32 moko 6102: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 6103:
1.25 moko 6104: fi
1.32 moko 6105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6106: $as_echo "$lt_cv_ar_at_file" >&6; }
1.11 paf 6107:
1.25 moko 6108: if test "x$lt_cv_ar_at_file" = xno; then
6109: archiver_list_spec=
1.11 paf 6110: else
1.25 moko 6111: archiver_list_spec=$lt_cv_ar_at_file
1.11 paf 6112: fi
6113:
6114:
6115:
1.25 moko 6116:
6117:
6118:
6119:
6120: if test -n "$ac_tool_prefix"; then
6121: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6122: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.32 moko 6123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124: $as_echo_n "checking for $ac_word... " >&6; }
6125: if ${ac_cv_prog_STRIP+:} false; then :
6126: $as_echo_n "(cached) " >&6
1.25 moko 6127: else
6128: if test -n "$STRIP"; then
6129: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6130: else
6131: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132: for as_dir in $PATH
6133: do
6134: IFS=$as_save_IFS
6135: test -z "$as_dir" && as_dir=.
1.32 moko 6136: for ac_exec_ext in '' $ac_executable_extensions; do
6137: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 6138: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.32 moko 6139: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6140: break 2
6141: fi
6142: done
1.32 moko 6143: done
6144: IFS=$as_save_IFS
1.25 moko 6145:
6146: fi
6147: fi
6148: STRIP=$ac_cv_prog_STRIP
6149: if test -n "$STRIP"; then
1.32 moko 6150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6151: $as_echo "$STRIP" >&6; }
1.7 paf 6152: else
1.32 moko 6153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154: $as_echo "no" >&6; }
1.11 paf 6155: fi
6156:
1.32 moko 6157:
1.7 paf 6158: fi
1.25 moko 6159: if test -z "$ac_cv_prog_STRIP"; then
6160: ac_ct_STRIP=$STRIP
6161: # Extract the first word of "strip", so it can be a program name with args.
6162: set dummy strip; ac_word=$2
1.32 moko 6163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164: $as_echo_n "checking for $ac_word... " >&6; }
6165: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6166: $as_echo_n "(cached) " >&6
1.11 paf 6167: else
1.25 moko 6168: if test -n "$ac_ct_STRIP"; then
6169: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.7 paf 6170: else
1.25 moko 6171: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172: for as_dir in $PATH
6173: do
6174: IFS=$as_save_IFS
6175: test -z "$as_dir" && as_dir=.
1.32 moko 6176: for ac_exec_ext in '' $ac_executable_extensions; do
6177: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 6178: ac_cv_prog_ac_ct_STRIP="strip"
1.32 moko 6179: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6180: break 2
6181: fi
6182: done
1.32 moko 6183: done
6184: IFS=$as_save_IFS
1.11 paf 6185:
6186: fi
6187: fi
1.25 moko 6188: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6189: if test -n "$ac_ct_STRIP"; then
1.32 moko 6190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6191: $as_echo "$ac_ct_STRIP" >&6; }
1.25 moko 6192: else
1.32 moko 6193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194: $as_echo "no" >&6; }
1.11 paf 6195: fi
6196:
1.32 moko 6197: if test "x$ac_ct_STRIP" = x; then
6198: STRIP=":"
6199: else
6200: case $cross_compiling:$ac_tool_warned in
6201: yes:)
6202: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6203: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6204: ac_tool_warned=yes ;;
6205: esac
6206: STRIP=$ac_ct_STRIP
6207: fi
1.25 moko 6208: else
6209: STRIP="$ac_cv_prog_STRIP"
1.11 paf 6210: fi
6211:
1.25 moko 6212: test -z "$STRIP" && STRIP=:
1.11 paf 6213:
6214:
6215:
6216:
6217:
6218:
1.25 moko 6219: if test -n "$ac_tool_prefix"; then
6220: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6221: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.32 moko 6222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223: $as_echo_n "checking for $ac_word... " >&6; }
6224: if ${ac_cv_prog_RANLIB+:} false; then :
6225: $as_echo_n "(cached) " >&6
1.11 paf 6226: else
1.25 moko 6227: if test -n "$RANLIB"; then
6228: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.11 paf 6229: else
1.25 moko 6230: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231: for as_dir in $PATH
6232: do
6233: IFS=$as_save_IFS
6234: test -z "$as_dir" && as_dir=.
1.32 moko 6235: for ac_exec_ext in '' $ac_executable_extensions; do
6236: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 6237: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.32 moko 6238: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6239: break 2
6240: fi
6241: done
1.32 moko 6242: done
6243: IFS=$as_save_IFS
1.11 paf 6244:
6245: fi
6246: fi
1.25 moko 6247: RANLIB=$ac_cv_prog_RANLIB
6248: if test -n "$RANLIB"; then
1.32 moko 6249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6250: $as_echo "$RANLIB" >&6; }
1.25 moko 6251: else
1.32 moko 6252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253: $as_echo "no" >&6; }
1.25 moko 6254: fi
1.11 paf 6255:
1.32 moko 6256:
1.11 paf 6257: fi
1.25 moko 6258: if test -z "$ac_cv_prog_RANLIB"; then
6259: ac_ct_RANLIB=$RANLIB
6260: # Extract the first word of "ranlib", so it can be a program name with args.
6261: set dummy ranlib; ac_word=$2
1.32 moko 6262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263: $as_echo_n "checking for $ac_word... " >&6; }
6264: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6265: $as_echo_n "(cached) " >&6
1.25 moko 6266: else
6267: if test -n "$ac_ct_RANLIB"; then
6268: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6269: else
6270: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271: for as_dir in $PATH
6272: do
6273: IFS=$as_save_IFS
6274: test -z "$as_dir" && as_dir=.
1.32 moko 6275: for ac_exec_ext in '' $ac_executable_extensions; do
6276: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 6277: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.32 moko 6278: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6279: break 2
6280: fi
6281: done
1.32 moko 6282: done
6283: IFS=$as_save_IFS
1.11 paf 6284:
1.25 moko 6285: fi
6286: fi
6287: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6288: if test -n "$ac_ct_RANLIB"; then
1.32 moko 6289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6290: $as_echo "$ac_ct_RANLIB" >&6; }
1.11 paf 6291: else
1.32 moko 6292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293: $as_echo "no" >&6; }
1.11 paf 6294: fi
6295:
1.32 moko 6296: if test "x$ac_ct_RANLIB" = x; then
6297: RANLIB=":"
6298: else
6299: case $cross_compiling:$ac_tool_warned in
6300: yes:)
6301: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6302: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6303: ac_tool_warned=yes ;;
6304: esac
6305: RANLIB=$ac_ct_RANLIB
6306: fi
1.7 paf 6307: else
1.25 moko 6308: RANLIB="$ac_cv_prog_RANLIB"
1.7 paf 6309: fi
1.11 paf 6310:
1.25 moko 6311: test -z "$RANLIB" && RANLIB=:
6312:
6313:
6314:
6315:
6316:
6317:
6318: # Determine commands to create old-style static archives.
6319: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6320: old_postinstall_cmds='chmod 644 $oldlib'
6321: old_postuninstall_cmds=
1.11 paf 6322:
1.25 moko 6323: if test -n "$RANLIB"; then
6324: case $host_os in
6325: openbsd*)
6326: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.11 paf 6327: ;;
1.25 moko 6328: *)
6329: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.11 paf 6330: ;;
1.25 moko 6331: esac
6332: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.11 paf 6333: fi
6334:
1.25 moko 6335: case $host_os in
6336: darwin*)
6337: lock_old_archive_extraction=yes ;;
6338: *)
6339: lock_old_archive_extraction=no ;;
6340: esac
1.11 paf 6341:
6342:
6343:
6344:
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
1.25 moko 6380: # If no C compiler was specified, use CC.
6381: LTCC=${LTCC-"$CC"}
1.11 paf 6382:
1.25 moko 6383: # If no C compiler flags were specified, use CFLAGS.
6384: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.11 paf 6385:
1.25 moko 6386: # Allow CC to be a program name with arguments.
6387: compiler=$CC
1.11 paf 6388:
6389:
1.25 moko 6390: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.32 moko 6391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6392: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6393: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6394: $as_echo_n "(cached) " >&6
1.25 moko 6395: else
6396:
6397: # These are sane defaults that work on at least a few old systems.
6398: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.11 paf 6399:
1.25 moko 6400: # Character class describing NM global symbol codes.
6401: symcode='[BCDEGRST]'
1.11 paf 6402:
1.25 moko 6403: # Regexp to match symbols that can be accessed directly from C.
6404: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.11 paf 6405:
1.25 moko 6406: # Define system-specific variables.
6407: case $host_os in
6408: aix*)
6409: symcode='[BCDT]'
6410: ;;
6411: cygwin* | mingw* | pw32* | cegcc*)
6412: symcode='[ABCDGISTW]'
6413: ;;
6414: hpux*)
6415: if test "$host_cpu" = ia64; then
6416: symcode='[ABCDEGRST]'
6417: fi
6418: ;;
6419: irix* | nonstopux*)
6420: symcode='[BCDEGRST]'
6421: ;;
6422: osf*)
6423: symcode='[BCDEGQRST]'
6424: ;;
6425: solaris*)
6426: symcode='[BDRT]'
6427: ;;
6428: sco3.2v5*)
6429: symcode='[DT]'
6430: ;;
6431: sysv4.2uw2*)
6432: symcode='[DT]'
6433: ;;
6434: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6435: symcode='[ABDT]'
6436: ;;
6437: sysv4)
6438: symcode='[DFNSTU]'
6439: ;;
6440: esac
1.11 paf 6441:
1.25 moko 6442: # If we're using GNU nm, then use its standard symbol codes.
6443: case `$NM -V 2>&1` in
6444: *GNU* | *'with BFD'*)
6445: symcode='[ABCDGIRSTW]' ;;
6446: esac
1.11 paf 6447:
1.25 moko 6448: # Transform an extracted symbol line into a proper C declaration.
6449: # Some systems (esp. on ia64) link data and code symbols differently,
6450: # so use this general approach.
6451: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.11 paf 6452:
1.25 moko 6453: # Transform an extracted symbol line into symbol name and symbol address
6454: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6455: 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.11 paf 6456:
1.25 moko 6457: # Handle CRLF in mingw tool chain
6458: opt_cr=
6459: case $build_os in
6460: mingw*)
6461: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6462: ;;
6463: esac
1.11 paf 6464:
1.25 moko 6465: # Try without a prefix underscore, then with it.
6466: for ac_symprfx in "" "_"; do
1.11 paf 6467:
1.25 moko 6468: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6469: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.11 paf 6470:
1.25 moko 6471: # Write the raw and C identifiers.
6472: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6473: # Fake it for dumpbin and say T for any non-static function
6474: # and D for any global variable.
6475: # Also find C++ and __fastcall symbols from MSVC++,
6476: # which start with @ or ?.
6477: lt_cv_sys_global_symbol_pipe="$AWK '"\
6478: " {last_section=section; section=\$ 3};"\
6479: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6480: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6481: " \$ 0!~/External *\|/{next};"\
6482: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6483: " {if(hide[section]) next};"\
6484: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6485: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6486: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6487: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6488: " ' prfx=^$ac_symprfx"
6489: else
6490: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.11 paf 6491: fi
1.25 moko 6492: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.11 paf 6493:
1.25 moko 6494: # Check to see that the pipe works correctly.
6495: pipe_works=no
1.11 paf 6496:
1.25 moko 6497: rm -f conftest*
6498: cat > conftest.$ac_ext <<_LT_EOF
6499: #ifdef __cplusplus
6500: extern "C" {
6501: #endif
6502: char nm_test_var;
6503: void nm_test_func(void);
6504: void nm_test_func(void){}
6505: #ifdef __cplusplus
6506: }
6507: #endif
6508: int main(){nm_test_var='a';nm_test_func();return(0);}
6509: _LT_EOF
1.11 paf 6510:
1.32 moko 6511: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6512: (eval $ac_compile) 2>&5
6513: ac_status=$?
1.32 moko 6514: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515: test $ac_status = 0; }; then
1.25 moko 6516: # Now try to grab the symbols.
6517: nlist=conftest.nm
1.32 moko 6518: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.25 moko 6519: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6520: ac_status=$?
1.32 moko 6521: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522: test $ac_status = 0; } && test -s "$nlist"; then
1.25 moko 6523: # Try sorting and uniquifying the output.
6524: if sort "$nlist" | uniq > "$nlist"T; then
6525: mv -f "$nlist"T "$nlist"
6526: else
6527: rm -f "$nlist"T
6528: fi
1.11 paf 6529:
1.25 moko 6530: # Make sure that we snagged all the symbols we need.
6531: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6532: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6533: cat <<_LT_EOF > conftest.$ac_ext
6534: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6535: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6536: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6537: relocations are performed -- see ld's documentation on pseudo-relocs. */
6538: # define LT_DLSYM_CONST
6539: #elif defined(__osf__)
6540: /* This system does not cope well with relocations in const data. */
6541: # define LT_DLSYM_CONST
6542: #else
6543: # define LT_DLSYM_CONST const
6544: #endif
1.11 paf 6545:
1.25 moko 6546: #ifdef __cplusplus
6547: extern "C" {
6548: #endif
1.11 paf 6549:
1.25 moko 6550: _LT_EOF
6551: # Now generate the symbol file.
6552: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.11 paf 6553:
1.25 moko 6554: cat <<_LT_EOF >> conftest.$ac_ext
1.11 paf 6555:
1.25 moko 6556: /* The mapping between symbol names and symbols. */
6557: LT_DLSYM_CONST struct {
6558: const char *name;
6559: void *address;
6560: }
6561: lt__PROGRAM__LTX_preloaded_symbols[] =
6562: {
6563: { "@PROGRAM@", (void *) 0 },
6564: _LT_EOF
6565: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6566: cat <<\_LT_EOF >> conftest.$ac_ext
6567: {0, (void *) 0}
6568: };
1.11 paf 6569:
1.25 moko 6570: /* This works around a problem in FreeBSD linker */
6571: #ifdef FREEBSD_WORKAROUND
6572: static const void *lt_preloaded_setup() {
6573: return lt__PROGRAM__LTX_preloaded_symbols;
6574: }
6575: #endif
1.11 paf 6576:
1.25 moko 6577: #ifdef __cplusplus
6578: }
6579: #endif
6580: _LT_EOF
6581: # Now try linking the two files.
6582: mv conftest.$ac_objext conftstm.$ac_objext
6583: lt_globsym_save_LIBS=$LIBS
6584: lt_globsym_save_CFLAGS=$CFLAGS
6585: LIBS="conftstm.$ac_objext"
6586: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.32 moko 6587: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.25 moko 6588: (eval $ac_link) 2>&5
6589: ac_status=$?
1.32 moko 6590: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.25 moko 6592: pipe_works=yes
6593: fi
6594: LIBS=$lt_globsym_save_LIBS
6595: CFLAGS=$lt_globsym_save_CFLAGS
6596: else
6597: echo "cannot find nm_test_func in $nlist" >&5
6598: fi
6599: else
6600: echo "cannot find nm_test_var in $nlist" >&5
1.11 paf 6601: fi
1.25 moko 6602: else
6603: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6604: fi
6605: else
6606: echo "$progname: failed program was:" >&5
6607: cat conftest.$ac_ext >&5
6608: fi
6609: rm -rf conftest* conftst*
6610:
6611: # Do not use the global_symbol_pipe unless it works.
6612: if test "$pipe_works" = yes; then
6613: break
1.11 paf 6614: else
1.25 moko 6615: lt_cv_sys_global_symbol_pipe=
6616: fi
6617: done
6618:
6619: fi
1.11 paf 6620:
1.25 moko 6621: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6622: lt_cv_sys_global_symbol_to_cdecl=
6623: fi
6624: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.32 moko 6625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6626: $as_echo "failed" >&6; }
1.25 moko 6627: else
1.32 moko 6628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6629: $as_echo "ok" >&6; }
1.25 moko 6630: fi
1.11 paf 6631:
1.25 moko 6632: # Response file support.
6633: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6634: nm_file_list_spec='@'
6635: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6636: nm_file_list_spec='@'
6637: fi
1.11 paf 6638:
6639:
6640:
6641:
6642:
6643:
6644:
6645:
6646:
6647:
6648:
6649:
1.25 moko 6650:
6651:
6652:
6653:
6654:
6655:
6656:
6657:
6658:
6659:
6660:
6661:
6662:
6663:
6664:
1.32 moko 6665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6666: $as_echo_n "checking for sysroot... " >&6; }
1.25 moko 6667:
1.32 moko 6668: # Check whether --with-sysroot was given.
6669: if test "${with_sysroot+set}" = set; then :
6670: withval=$with_sysroot;
1.11 paf 6671: else
1.25 moko 6672: with_sysroot=no
1.32 moko 6673: fi
6674:
1.25 moko 6675:
6676: lt_sysroot=
6677: case ${with_sysroot} in #(
6678: yes)
6679: if test "$GCC" = yes; then
6680: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6681: fi
6682: ;; #(
6683: /*)
6684: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6685: ;; #(
6686: no|'')
6687: ;; #(
6688: *)
1.32 moko 6689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6690: $as_echo "${with_sysroot}" >&6; }
6691: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.25 moko 6692: ;;
6693: esac
6694:
1.32 moko 6695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6696: $as_echo "${lt_sysroot:-no}" >&6; }
1.25 moko 6697:
6698:
1.11 paf 6699:
6700:
6701:
1.32 moko 6702: # Check whether --enable-libtool-lock was given.
6703: if test "${enable_libtool_lock+set}" = set; then :
6704: enableval=$enable_libtool_lock;
6705: fi
1.25 moko 6706:
6707: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6708:
6709: # Some flags need to be propagated to the compiler or linker for good
6710: # libtool support.
6711: case $host in
6712: ia64-*-hpux*)
6713: # Find out which ABI we are using.
6714: echo 'int i;' > conftest.$ac_ext
1.32 moko 6715: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6716: (eval $ac_compile) 2>&5
1.11 paf 6717: ac_status=$?
1.32 moko 6718: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719: test $ac_status = 0; }; then
1.25 moko 6720: case `/usr/bin/file conftest.$ac_objext` in
6721: *ELF-32*)
6722: HPUX_IA64_MODE="32"
6723: ;;
6724: *ELF-64*)
6725: HPUX_IA64_MODE="64"
6726: ;;
6727: esac
6728: fi
6729: rm -rf conftest*
6730: ;;
6731: *-*-irix6*)
6732: # Find out which ABI we are using.
6733: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.32 moko 6734: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6735: (eval $ac_compile) 2>&5
1.18 paf 6736: ac_status=$?
1.32 moko 6737: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738: test $ac_status = 0; }; then
1.25 moko 6739: if test "$lt_cv_prog_gnu_ld" = yes; then
6740: case `/usr/bin/file conftest.$ac_objext` in
6741: *32-bit*)
6742: LD="${LD-ld} -melf32bsmip"
6743: ;;
6744: *N32*)
6745: LD="${LD-ld} -melf32bmipn32"
6746: ;;
6747: *64-bit*)
6748: LD="${LD-ld} -melf64bmip"
6749: ;;
6750: esac
6751: else
6752: case `/usr/bin/file conftest.$ac_objext` in
6753: *32-bit*)
6754: LD="${LD-ld} -32"
6755: ;;
6756: *N32*)
6757: LD="${LD-ld} -n32"
6758: ;;
6759: *64-bit*)
6760: LD="${LD-ld} -64"
6761: ;;
6762: esac
6763: fi
6764: fi
6765: rm -rf conftest*
6766: ;;
6767:
6768: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6769: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6770: # Find out which ABI we are using.
6771: echo 'int i;' > conftest.$ac_ext
1.32 moko 6772: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6773: (eval $ac_compile) 2>&5
1.11 paf 6774: ac_status=$?
1.32 moko 6775: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776: test $ac_status = 0; }; then
1.25 moko 6777: case `/usr/bin/file conftest.o` in
6778: *32-bit*)
6779: case $host in
6780: x86_64-*kfreebsd*-gnu)
6781: LD="${LD-ld} -m elf_i386_fbsd"
6782: ;;
6783: x86_64-*linux*)
6784: LD="${LD-ld} -m elf_i386"
6785: ;;
6786: ppc64-*linux*|powerpc64-*linux*)
6787: LD="${LD-ld} -m elf32ppclinux"
6788: ;;
6789: s390x-*linux*)
6790: LD="${LD-ld} -m elf_s390"
6791: ;;
6792: sparc64-*linux*)
6793: LD="${LD-ld} -m elf32_sparc"
6794: ;;
6795: esac
1.11 paf 6796: ;;
1.25 moko 6797: *64-bit*)
6798: case $host in
6799: x86_64-*kfreebsd*-gnu)
6800: LD="${LD-ld} -m elf_x86_64_fbsd"
6801: ;;
6802: x86_64-*linux*)
6803: LD="${LD-ld} -m elf_x86_64"
6804: ;;
6805: ppc*-*linux*|powerpc*-*linux*)
6806: LD="${LD-ld} -m elf64ppc"
6807: ;;
6808: s390*-*linux*|s390*-*tpf*)
6809: LD="${LD-ld} -m elf64_s390"
6810: ;;
6811: sparc*-*linux*)
6812: LD="${LD-ld} -m elf64_sparc"
6813: ;;
6814: esac
1.11 paf 6815: ;;
1.25 moko 6816: esac
1.11 paf 6817: fi
1.25 moko 6818: rm -rf conftest*
6819: ;;
1.11 paf 6820:
1.25 moko 6821: *-*-sco3.2v5*)
6822: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6823: SAVE_CFLAGS="$CFLAGS"
6824: CFLAGS="$CFLAGS -belf"
1.32 moko 6825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6826: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6827: if ${lt_cv_cc_needs_belf+:} false; then :
6828: $as_echo_n "(cached) " >&6
1.11 paf 6829: else
1.25 moko 6830: ac_ext=c
6831: ac_cpp='$CPP $CPPFLAGS'
6832: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835:
1.32 moko 6836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 6837: /* end confdefs.h. */
6838:
6839: int
6840: main ()
6841: {
6842:
6843: ;
6844: return 0;
6845: }
6846: _ACEOF
1.32 moko 6847: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 6848: lt_cv_cc_needs_belf=yes
1.11 paf 6849: else
1.32 moko 6850: lt_cv_cc_needs_belf=no
1.11 paf 6851: fi
1.32 moko 6852: rm -f core conftest.err conftest.$ac_objext \
6853: conftest$ac_exeext conftest.$ac_ext
1.25 moko 6854: ac_ext=c
6855: ac_cpp='$CPP $CPPFLAGS'
6856: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 6859:
6860: fi
1.32 moko 6861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6862: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.25 moko 6863: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6864: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6865: CFLAGS="$SAVE_CFLAGS"
6866: fi
6867: ;;
6868: *-*solaris*)
6869: # Find out which ABI we are using.
6870: echo 'int i;' > conftest.$ac_ext
1.32 moko 6871: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6872: (eval $ac_compile) 2>&5
6873: ac_status=$?
1.32 moko 6874: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875: test $ac_status = 0; }; then
1.25 moko 6876: case `/usr/bin/file conftest.o` in
6877: *64-bit*)
6878: case $lt_cv_prog_gnu_ld in
6879: yes*)
6880: case $host in
6881: i?86-*-solaris*)
6882: LD="${LD-ld} -m elf_x86_64"
6883: ;;
6884: sparc*-*-solaris*)
6885: LD="${LD-ld} -m elf64_sparc"
6886: ;;
6887: esac
6888: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6889: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6890: LD="${LD-ld}_sol2"
6891: fi
6892: ;;
6893: *)
6894: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6895: LD="${LD-ld} -64"
6896: fi
6897: ;;
6898: esac
6899: ;;
6900: esac
6901: fi
6902: rm -rf conftest*
6903: ;;
6904: esac
1.11 paf 6905:
1.25 moko 6906: need_locks="$enable_libtool_lock"
1.11 paf 6907:
1.25 moko 6908: if test -n "$ac_tool_prefix"; then
6909: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6910: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.32 moko 6911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912: $as_echo_n "checking for $ac_word... " >&6; }
6913: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6914: $as_echo_n "(cached) " >&6
1.25 moko 6915: else
6916: if test -n "$MANIFEST_TOOL"; then
6917: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6918: else
6919: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920: for as_dir in $PATH
6921: do
6922: IFS=$as_save_IFS
6923: test -z "$as_dir" && as_dir=.
1.32 moko 6924: for ac_exec_ext in '' $ac_executable_extensions; do
6925: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 6926: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.32 moko 6927: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6928: break 2
6929: fi
6930: done
1.32 moko 6931: done
6932: IFS=$as_save_IFS
1.11 paf 6933:
1.25 moko 6934: fi
6935: fi
6936: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6937: if test -n "$MANIFEST_TOOL"; then
1.32 moko 6938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6939: $as_echo "$MANIFEST_TOOL" >&6; }
1.25 moko 6940: else
1.32 moko 6941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942: $as_echo "no" >&6; }
1.25 moko 6943: fi
1.11 paf 6944:
1.32 moko 6945:
1.25 moko 6946: fi
6947: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6948: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6949: # Extract the first word of "mt", so it can be a program name with args.
6950: set dummy mt; ac_word=$2
1.32 moko 6951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952: $as_echo_n "checking for $ac_word... " >&6; }
6953: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6954: $as_echo_n "(cached) " >&6
1.11 paf 6955: else
1.25 moko 6956: if test -n "$ac_ct_MANIFEST_TOOL"; then
6957: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6958: else
6959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960: for as_dir in $PATH
6961: do
6962: IFS=$as_save_IFS
6963: test -z "$as_dir" && as_dir=.
1.32 moko 6964: for ac_exec_ext in '' $ac_executable_extensions; do
6965: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 6966: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.32 moko 6967: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6968: break 2
6969: fi
6970: done
1.32 moko 6971: done
6972: IFS=$as_save_IFS
1.11 paf 6973:
1.25 moko 6974: fi
6975: fi
6976: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6977: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.32 moko 6978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6979: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.11 paf 6980: else
1.32 moko 6981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982: $as_echo "no" >&6; }
1.11 paf 6983: fi
6984:
1.32 moko 6985: if test "x$ac_ct_MANIFEST_TOOL" = x; then
6986: MANIFEST_TOOL=":"
6987: else
6988: case $cross_compiling:$ac_tool_warned in
6989: yes:)
6990: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992: ac_tool_warned=yes ;;
6993: esac
6994: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6995: fi
1.25 moko 6996: else
6997: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
1.11 paf 6998: fi
6999:
1.25 moko 7000: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.32 moko 7001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7002: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7003: if ${lt_cv_path_mainfest_tool+:} false; then :
7004: $as_echo_n "(cached) " >&6
1.11 paf 7005: else
1.25 moko 7006: lt_cv_path_mainfest_tool=no
7007: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7008: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7009: cat conftest.err >&5
7010: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7011: lt_cv_path_mainfest_tool=yes
7012: fi
7013: rm -f conftest*
7014: fi
1.32 moko 7015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7016: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.25 moko 7017: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7018: MANIFEST_TOOL=:
7019: fi
7020:
7021:
7022:
7023:
1.11 paf 7024:
7025:
1.25 moko 7026: case $host_os in
7027: rhapsody* | darwin*)
7028: if test -n "$ac_tool_prefix"; then
7029: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7030: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.32 moko 7031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032: $as_echo_n "checking for $ac_word... " >&6; }
7033: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7034: $as_echo_n "(cached) " >&6
1.25 moko 7035: else
7036: if test -n "$DSYMUTIL"; then
7037: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7038: else
7039: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040: for as_dir in $PATH
7041: do
7042: IFS=$as_save_IFS
7043: test -z "$as_dir" && as_dir=.
1.32 moko 7044: for ac_exec_ext in '' $ac_executable_extensions; do
7045: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7046: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.32 moko 7047: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7048: break 2
7049: fi
7050: done
1.32 moko 7051: done
7052: IFS=$as_save_IFS
1.11 paf 7053:
1.25 moko 7054: fi
7055: fi
7056: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7057: if test -n "$DSYMUTIL"; then
1.32 moko 7058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7059: $as_echo "$DSYMUTIL" >&6; }
1.11 paf 7060: else
1.32 moko 7061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062: $as_echo "no" >&6; }
1.25 moko 7063: fi
1.11 paf 7064:
1.32 moko 7065:
1.11 paf 7066: fi
1.25 moko 7067: if test -z "$ac_cv_prog_DSYMUTIL"; then
7068: ac_ct_DSYMUTIL=$DSYMUTIL
7069: # Extract the first word of "dsymutil", so it can be a program name with args.
7070: set dummy dsymutil; ac_word=$2
1.32 moko 7071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072: $as_echo_n "checking for $ac_word... " >&6; }
7073: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7074: $as_echo_n "(cached) " >&6
1.25 moko 7075: else
7076: if test -n "$ac_ct_DSYMUTIL"; then
7077: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7078: else
7079: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080: for as_dir in $PATH
7081: do
7082: IFS=$as_save_IFS
7083: test -z "$as_dir" && as_dir=.
1.32 moko 7084: for ac_exec_ext in '' $ac_executable_extensions; do
7085: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7086: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.32 moko 7087: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7088: break 2
7089: fi
7090: done
1.32 moko 7091: done
7092: IFS=$as_save_IFS
1.11 paf 7093:
1.25 moko 7094: fi
7095: fi
7096: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7097: if test -n "$ac_ct_DSYMUTIL"; then
1.32 moko 7098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7099: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.25 moko 7100: else
1.32 moko 7101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102: $as_echo "no" >&6; }
1.11 paf 7103: fi
7104:
1.32 moko 7105: if test "x$ac_ct_DSYMUTIL" = x; then
7106: DSYMUTIL=":"
7107: else
7108: case $cross_compiling:$ac_tool_warned in
7109: yes:)
7110: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112: ac_tool_warned=yes ;;
7113: esac
7114: DSYMUTIL=$ac_ct_DSYMUTIL
7115: fi
1.11 paf 7116: else
1.25 moko 7117: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.11 paf 7118: fi
7119:
1.25 moko 7120: if test -n "$ac_tool_prefix"; then
7121: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7122: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.32 moko 7123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124: $as_echo_n "checking for $ac_word... " >&6; }
7125: if ${ac_cv_prog_NMEDIT+:} false; then :
7126: $as_echo_n "(cached) " >&6
1.25 moko 7127: else
7128: if test -n "$NMEDIT"; then
7129: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7130: else
7131: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132: for as_dir in $PATH
7133: do
7134: IFS=$as_save_IFS
7135: test -z "$as_dir" && as_dir=.
1.32 moko 7136: for ac_exec_ext in '' $ac_executable_extensions; do
7137: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7138: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.32 moko 7139: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7140: break 2
1.11 paf 7141: fi
1.25 moko 7142: done
1.32 moko 7143: done
7144: IFS=$as_save_IFS
1.25 moko 7145:
7146: fi
7147: fi
7148: NMEDIT=$ac_cv_prog_NMEDIT
7149: if test -n "$NMEDIT"; then
1.32 moko 7150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7151: $as_echo "$NMEDIT" >&6; }
1.11 paf 7152: else
1.32 moko 7153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154: $as_echo "no" >&6; }
1.11 paf 7155: fi
7156:
1.32 moko 7157:
1.25 moko 7158: fi
7159: if test -z "$ac_cv_prog_NMEDIT"; then
7160: ac_ct_NMEDIT=$NMEDIT
7161: # Extract the first word of "nmedit", so it can be a program name with args.
7162: set dummy nmedit; ac_word=$2
1.32 moko 7163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164: $as_echo_n "checking for $ac_word... " >&6; }
7165: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7166: $as_echo_n "(cached) " >&6
1.25 moko 7167: else
7168: if test -n "$ac_ct_NMEDIT"; then
7169: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7170: else
7171: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172: for as_dir in $PATH
7173: do
7174: IFS=$as_save_IFS
7175: test -z "$as_dir" && as_dir=.
1.32 moko 7176: for ac_exec_ext in '' $ac_executable_extensions; do
7177: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7178: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.32 moko 7179: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7180: break 2
7181: fi
7182: done
1.32 moko 7183: done
7184: IFS=$as_save_IFS
1.11 paf 7185:
1.25 moko 7186: fi
7187: fi
7188: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7189: if test -n "$ac_ct_NMEDIT"; then
1.32 moko 7190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7191: $as_echo "$ac_ct_NMEDIT" >&6; }
1.25 moko 7192: else
1.32 moko 7193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194: $as_echo "no" >&6; }
1.25 moko 7195: fi
1.11 paf 7196:
1.32 moko 7197: if test "x$ac_ct_NMEDIT" = x; then
7198: NMEDIT=":"
7199: else
7200: case $cross_compiling:$ac_tool_warned in
7201: yes:)
7202: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204: ac_tool_warned=yes ;;
7205: esac
7206: NMEDIT=$ac_ct_NMEDIT
7207: fi
1.11 paf 7208: else
1.25 moko 7209: NMEDIT="$ac_cv_prog_NMEDIT"
1.11 paf 7210: fi
7211:
1.25 moko 7212: if test -n "$ac_tool_prefix"; then
7213: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7214: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.32 moko 7215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216: $as_echo_n "checking for $ac_word... " >&6; }
7217: if ${ac_cv_prog_LIPO+:} false; then :
7218: $as_echo_n "(cached) " >&6
1.25 moko 7219: else
7220: if test -n "$LIPO"; then
7221: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7222: else
7223: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224: for as_dir in $PATH
7225: do
7226: IFS=$as_save_IFS
7227: test -z "$as_dir" && as_dir=.
1.32 moko 7228: for ac_exec_ext in '' $ac_executable_extensions; do
7229: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7230: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.32 moko 7231: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7232: break 2
1.11 paf 7233: fi
1.25 moko 7234: done
1.32 moko 7235: done
7236: IFS=$as_save_IFS
1.25 moko 7237:
7238: fi
7239: fi
7240: LIPO=$ac_cv_prog_LIPO
7241: if test -n "$LIPO"; then
1.32 moko 7242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7243: $as_echo "$LIPO" >&6; }
1.25 moko 7244: else
1.32 moko 7245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246: $as_echo "no" >&6; }
1.11 paf 7247: fi
7248:
1.32 moko 7249:
1.25 moko 7250: fi
7251: if test -z "$ac_cv_prog_LIPO"; then
7252: ac_ct_LIPO=$LIPO
7253: # Extract the first word of "lipo", so it can be a program name with args.
7254: set dummy lipo; ac_word=$2
1.32 moko 7255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256: $as_echo_n "checking for $ac_word... " >&6; }
7257: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7258: $as_echo_n "(cached) " >&6
1.25 moko 7259: else
7260: if test -n "$ac_ct_LIPO"; then
7261: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7262: else
7263: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264: for as_dir in $PATH
7265: do
7266: IFS=$as_save_IFS
7267: test -z "$as_dir" && as_dir=.
1.32 moko 7268: for ac_exec_ext in '' $ac_executable_extensions; do
7269: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7270: ac_cv_prog_ac_ct_LIPO="lipo"
1.32 moko 7271: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7272: break 2
1.11 paf 7273: fi
1.25 moko 7274: done
1.32 moko 7275: done
7276: IFS=$as_save_IFS
1.11 paf 7277:
1.25 moko 7278: fi
7279: fi
7280: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7281: if test -n "$ac_ct_LIPO"; then
1.32 moko 7282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7283: $as_echo "$ac_ct_LIPO" >&6; }
1.25 moko 7284: else
1.32 moko 7285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286: $as_echo "no" >&6; }
1.25 moko 7287: fi
1.11 paf 7288:
1.32 moko 7289: if test "x$ac_ct_LIPO" = x; then
7290: LIPO=":"
7291: else
7292: case $cross_compiling:$ac_tool_warned in
7293: yes:)
7294: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7295: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7296: ac_tool_warned=yes ;;
7297: esac
7298: LIPO=$ac_ct_LIPO
7299: fi
1.25 moko 7300: else
7301: LIPO="$ac_cv_prog_LIPO"
7302: fi
1.11 paf 7303:
1.25 moko 7304: if test -n "$ac_tool_prefix"; then
7305: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.32 moko 7307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308: $as_echo_n "checking for $ac_word... " >&6; }
7309: if ${ac_cv_prog_OTOOL+:} false; then :
7310: $as_echo_n "(cached) " >&6
1.25 moko 7311: else
7312: if test -n "$OTOOL"; then
7313: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7314: else
7315: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316: for as_dir in $PATH
7317: do
7318: IFS=$as_save_IFS
7319: test -z "$as_dir" && as_dir=.
1.32 moko 7320: for ac_exec_ext in '' $ac_executable_extensions; do
7321: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7322: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.32 moko 7323: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7324: break 2
7325: fi
7326: done
1.32 moko 7327: done
7328: IFS=$as_save_IFS
1.11 paf 7329:
1.25 moko 7330: fi
7331: fi
7332: OTOOL=$ac_cv_prog_OTOOL
7333: if test -n "$OTOOL"; then
1.32 moko 7334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7335: $as_echo "$OTOOL" >&6; }
1.25 moko 7336: else
1.32 moko 7337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338: $as_echo "no" >&6; }
1.25 moko 7339: fi
1.11 paf 7340:
1.32 moko 7341:
1.25 moko 7342: fi
7343: if test -z "$ac_cv_prog_OTOOL"; then
7344: ac_ct_OTOOL=$OTOOL
7345: # Extract the first word of "otool", so it can be a program name with args.
7346: set dummy otool; ac_word=$2
1.32 moko 7347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348: $as_echo_n "checking for $ac_word... " >&6; }
7349: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7350: $as_echo_n "(cached) " >&6
1.25 moko 7351: else
7352: if test -n "$ac_ct_OTOOL"; then
7353: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7354: else
7355: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356: for as_dir in $PATH
7357: do
7358: IFS=$as_save_IFS
7359: test -z "$as_dir" && as_dir=.
1.32 moko 7360: for ac_exec_ext in '' $ac_executable_extensions; do
7361: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7362: ac_cv_prog_ac_ct_OTOOL="otool"
1.32 moko 7363: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7364: break 2
7365: fi
7366: done
1.32 moko 7367: done
7368: IFS=$as_save_IFS
1.11 paf 7369:
1.25 moko 7370: fi
7371: fi
7372: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7373: if test -n "$ac_ct_OTOOL"; then
1.32 moko 7374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7375: $as_echo "$ac_ct_OTOOL" >&6; }
1.25 moko 7376: else
1.32 moko 7377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378: $as_echo "no" >&6; }
1.25 moko 7379: fi
1.11 paf 7380:
1.32 moko 7381: if test "x$ac_ct_OTOOL" = x; then
7382: OTOOL=":"
7383: else
7384: case $cross_compiling:$ac_tool_warned in
7385: yes:)
7386: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388: ac_tool_warned=yes ;;
7389: esac
7390: OTOOL=$ac_ct_OTOOL
7391: fi
1.25 moko 7392: else
7393: OTOOL="$ac_cv_prog_OTOOL"
7394: fi
1.11 paf 7395:
1.25 moko 7396: if test -n "$ac_tool_prefix"; then
7397: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7398: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.32 moko 7399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400: $as_echo_n "checking for $ac_word... " >&6; }
7401: if ${ac_cv_prog_OTOOL64+:} false; then :
7402: $as_echo_n "(cached) " >&6
1.25 moko 7403: else
7404: if test -n "$OTOOL64"; then
7405: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7406: else
7407: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408: for as_dir in $PATH
7409: do
7410: IFS=$as_save_IFS
7411: test -z "$as_dir" && as_dir=.
1.32 moko 7412: for ac_exec_ext in '' $ac_executable_extensions; do
7413: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7414: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.32 moko 7415: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7416: break 2
7417: fi
7418: done
1.32 moko 7419: done
7420: IFS=$as_save_IFS
1.11 paf 7421:
1.25 moko 7422: fi
7423: fi
7424: OTOOL64=$ac_cv_prog_OTOOL64
7425: if test -n "$OTOOL64"; then
1.32 moko 7426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7427: $as_echo "$OTOOL64" >&6; }
1.25 moko 7428: else
1.32 moko 7429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430: $as_echo "no" >&6; }
1.25 moko 7431: fi
1.11 paf 7432:
1.32 moko 7433:
1.25 moko 7434: fi
7435: if test -z "$ac_cv_prog_OTOOL64"; then
7436: ac_ct_OTOOL64=$OTOOL64
7437: # Extract the first word of "otool64", so it can be a program name with args.
7438: set dummy otool64; ac_word=$2
1.32 moko 7439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440: $as_echo_n "checking for $ac_word... " >&6; }
7441: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7442: $as_echo_n "(cached) " >&6
1.25 moko 7443: else
7444: if test -n "$ac_ct_OTOOL64"; then
7445: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7446: else
7447: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448: for as_dir in $PATH
7449: do
7450: IFS=$as_save_IFS
7451: test -z "$as_dir" && as_dir=.
1.32 moko 7452: for ac_exec_ext in '' $ac_executable_extensions; do
7453: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 7454: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.32 moko 7455: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7456: break 2
7457: fi
7458: done
1.32 moko 7459: done
7460: IFS=$as_save_IFS
1.11 paf 7461:
1.25 moko 7462: fi
7463: fi
7464: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7465: if test -n "$ac_ct_OTOOL64"; then
1.32 moko 7466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7467: $as_echo "$ac_ct_OTOOL64" >&6; }
1.25 moko 7468: else
1.32 moko 7469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470: $as_echo "no" >&6; }
1.25 moko 7471: fi
1.11 paf 7472:
1.32 moko 7473: if test "x$ac_ct_OTOOL64" = x; then
7474: OTOOL64=":"
7475: else
7476: case $cross_compiling:$ac_tool_warned in
7477: yes:)
7478: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7479: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7480: ac_tool_warned=yes ;;
7481: esac
7482: OTOOL64=$ac_ct_OTOOL64
7483: fi
1.25 moko 7484: else
7485: OTOOL64="$ac_cv_prog_OTOOL64"
7486: fi
1.11 paf 7487:
7488:
7489:
7490:
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
1.32 moko 7514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7515: $as_echo_n "checking for -single_module linker flag... " >&6; }
7516: if ${lt_cv_apple_cc_single_mod+:} false; then :
7517: $as_echo_n "(cached) " >&6
1.25 moko 7518: else
7519: lt_cv_apple_cc_single_mod=no
7520: if test -z "${LT_MULTI_MODULE}"; then
7521: # By default we will add the -single_module flag. You can override
7522: # by either setting the environment variable LT_MULTI_MODULE
7523: # non-empty at configure time, or by adding -multi_module to the
7524: # link flags.
7525: rm -rf libconftest.dylib*
7526: echo "int foo(void){return 1;}" > conftest.c
7527: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7528: -dynamiclib -Wl,-single_module conftest.c" >&5
7529: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7530: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7531: _lt_result=$?
7532: # If there is a non-empty error log, and "single_module"
7533: # appears in it, assume the flag caused a linker warning
7534: if test -s conftest.err && $GREP single_module conftest.err; then
7535: cat conftest.err >&5
7536: # Otherwise, if the output was created with a 0 exit code from
7537: # the compiler, it worked.
7538: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7539: lt_cv_apple_cc_single_mod=yes
7540: else
7541: cat conftest.err >&5
7542: fi
7543: rm -rf libconftest.dylib*
7544: rm -f conftest.*
7545: fi
7546: fi
1.32 moko 7547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7548: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.11 paf 7549:
1.32 moko 7550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7551: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7552: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7553: $as_echo_n "(cached) " >&6
1.25 moko 7554: else
7555: lt_cv_ld_exported_symbols_list=no
7556: save_LDFLAGS=$LDFLAGS
7557: echo "_main" > conftest.sym
7558: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.32 moko 7559: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7560: /* end confdefs.h. */
1.11 paf 7561:
1.25 moko 7562: int
7563: main ()
7564: {
1.11 paf 7565:
1.25 moko 7566: ;
7567: return 0;
7568: }
7569: _ACEOF
1.32 moko 7570: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 7571: lt_cv_ld_exported_symbols_list=yes
7572: else
1.32 moko 7573: lt_cv_ld_exported_symbols_list=no
1.25 moko 7574: fi
1.32 moko 7575: rm -f core conftest.err conftest.$ac_objext \
7576: conftest$ac_exeext conftest.$ac_ext
1.25 moko 7577: LDFLAGS="$save_LDFLAGS"
1.11 paf 7578:
1.25 moko 7579: fi
1.32 moko 7580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7581: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.11 paf 7582:
1.32 moko 7583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7584: $as_echo_n "checking for -force_load linker flag... " >&6; }
7585: if ${lt_cv_ld_force_load+:} false; then :
7586: $as_echo_n "(cached) " >&6
1.25 moko 7587: else
7588: lt_cv_ld_force_load=no
7589: cat > conftest.c << _LT_EOF
7590: int forced_loaded() { return 2;}
7591: _LT_EOF
7592: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7593: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7594: echo "$AR cru libconftest.a conftest.o" >&5
7595: $AR cru libconftest.a conftest.o 2>&5
7596: echo "$RANLIB libconftest.a" >&5
7597: $RANLIB libconftest.a 2>&5
7598: cat > conftest.c << _LT_EOF
7599: int main() { return 0;}
7600: _LT_EOF
7601: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7602: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7603: _lt_result=$?
7604: if test -s conftest.err && $GREP force_load conftest.err; then
7605: cat conftest.err >&5
7606: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7607: lt_cv_ld_force_load=yes
7608: else
7609: cat conftest.err >&5
7610: fi
7611: rm -f conftest.err libconftest.a conftest conftest.c
7612: rm -rf conftest.dSYM
1.11 paf 7613:
1.25 moko 7614: fi
1.32 moko 7615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7616: $as_echo "$lt_cv_ld_force_load" >&6; }
1.25 moko 7617: case $host_os in
7618: rhapsody* | darwin1.[012])
7619: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7620: darwin1.*)
7621: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7622: darwin*) # darwin 5.x on
7623: # if running on 10.5 or later, the deployment target defaults
7624: # to the OS version, if on x86, and 10.4, the deployment
7625: # target defaults to 10.4. Don't you love it?
7626: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7627: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7628: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7629: 10.[012]*)
7630: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7631: 10.*)
7632: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7633: esac
1.11 paf 7634: ;;
1.25 moko 7635: esac
7636: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7637: _lt_dar_single_mod='$single_module'
7638: fi
7639: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7640: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7641: else
7642: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.11 paf 7643: fi
1.25 moko 7644: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7645: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.11 paf 7646: else
1.25 moko 7647: _lt_dsymutil=
1.11 paf 7648: fi
7649: ;;
1.25 moko 7650: esac
1.11 paf 7651:
1.25 moko 7652: ac_ext=c
7653: ac_cpp='$CPP $CPPFLAGS'
7654: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.32 moko 7657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7658: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.25 moko 7659: # On Suns, sometimes $CPP names a directory.
7660: if test -n "$CPP" && test -d "$CPP"; then
7661: CPP=
7662: fi
7663: if test -z "$CPP"; then
1.32 moko 7664: if ${ac_cv_prog_CPP+:} false; then :
7665: $as_echo_n "(cached) " >&6
1.25 moko 7666: else
7667: # Double quotes because CPP needs to be expanded
7668: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7669: do
7670: ac_preproc_ok=false
7671: for ac_c_preproc_warn_flag in '' yes
7672: do
7673: # Use a header file that comes with gcc, so configuring glibc
7674: # with a fresh cross-compiler works.
7675: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7676: # <limits.h> exists even on freestanding compilers.
7677: # On the NeXT, cc -E runs the code through the compiler's parser,
7678: # not just through cpp. "Syntax error" is here to catch this case.
1.32 moko 7679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7680: /* end confdefs.h. */
7681: #ifdef __STDC__
7682: # include <limits.h>
7683: #else
7684: # include <assert.h>
7685: #endif
7686: Syntax error
7687: _ACEOF
1.32 moko 7688: if ac_fn_c_try_cpp "$LINENO"; then :
7689:
1.25 moko 7690: else
7691: # Broken: fails on valid input.
7692: continue
7693: fi
1.32 moko 7694: rm -f conftest.err conftest.i conftest.$ac_ext
1.11 paf 7695:
1.32 moko 7696: # OK, works on sane cases. Now check whether nonexistent headers
1.25 moko 7697: # can be detected and how.
1.32 moko 7698: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7699: /* end confdefs.h. */
7700: #include <ac_nonexistent.h>
7701: _ACEOF
1.32 moko 7702: if ac_fn_c_try_cpp "$LINENO"; then :
1.25 moko 7703: # Broken: success on invalid input.
7704: continue
7705: else
7706: # Passes both tests.
7707: ac_preproc_ok=:
7708: break
1.11 paf 7709: fi
1.32 moko 7710: rm -f conftest.err conftest.i conftest.$ac_ext
1.11 paf 7711:
1.25 moko 7712: done
7713: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.32 moko 7714: rm -f conftest.i conftest.err conftest.$ac_ext
7715: if $ac_preproc_ok; then :
1.25 moko 7716: break
7717: fi
1.11 paf 7718:
1.25 moko 7719: done
7720: ac_cv_prog_CPP=$CPP
1.11 paf 7721:
1.25 moko 7722: fi
7723: CPP=$ac_cv_prog_CPP
7724: else
7725: ac_cv_prog_CPP=$CPP
7726: fi
1.32 moko 7727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7728: $as_echo "$CPP" >&6; }
1.25 moko 7729: ac_preproc_ok=false
7730: for ac_c_preproc_warn_flag in '' yes
7731: do
7732: # Use a header file that comes with gcc, so configuring glibc
7733: # with a fresh cross-compiler works.
7734: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7735: # <limits.h> exists even on freestanding compilers.
7736: # On the NeXT, cc -E runs the code through the compiler's parser,
7737: # not just through cpp. "Syntax error" is here to catch this case.
1.32 moko 7738: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7739: /* end confdefs.h. */
7740: #ifdef __STDC__
7741: # include <limits.h>
7742: #else
7743: # include <assert.h>
7744: #endif
7745: Syntax error
7746: _ACEOF
1.32 moko 7747: if ac_fn_c_try_cpp "$LINENO"; then :
7748:
1.25 moko 7749: else
7750: # Broken: fails on valid input.
7751: continue
7752: fi
1.32 moko 7753: rm -f conftest.err conftest.i conftest.$ac_ext
1.11 paf 7754:
1.32 moko 7755: # OK, works on sane cases. Now check whether nonexistent headers
1.25 moko 7756: # can be detected and how.
1.32 moko 7757: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7758: /* end confdefs.h. */
7759: #include <ac_nonexistent.h>
7760: _ACEOF
1.32 moko 7761: if ac_fn_c_try_cpp "$LINENO"; then :
1.25 moko 7762: # Broken: success on invalid input.
7763: continue
7764: else
7765: # Passes both tests.
7766: ac_preproc_ok=:
7767: break
7768: fi
1.32 moko 7769: rm -f conftest.err conftest.i conftest.$ac_ext
1.11 paf 7770:
1.25 moko 7771: done
7772: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.32 moko 7773: rm -f conftest.i conftest.err conftest.$ac_ext
7774: if $ac_preproc_ok; then :
7775:
1.25 moko 7776: else
1.32 moko 7777: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7778: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7779: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7780: See \`config.log' for more details" "$LINENO" 5; }
1.25 moko 7781: fi
1.11 paf 7782:
1.25 moko 7783: ac_ext=c
7784: ac_cpp='$CPP $CPPFLAGS'
7785: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 7788:
7789:
1.32 moko 7790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7791: $as_echo_n "checking for ANSI C header files... " >&6; }
7792: if ${ac_cv_header_stdc+:} false; then :
7793: $as_echo_n "(cached) " >&6
1.25 moko 7794: else
1.32 moko 7795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7796: /* end confdefs.h. */
7797: #include <stdlib.h>
7798: #include <stdarg.h>
7799: #include <string.h>
7800: #include <float.h>
1.11 paf 7801:
1.25 moko 7802: int
7803: main ()
7804: {
1.11 paf 7805:
1.25 moko 7806: ;
7807: return 0;
7808: }
7809: _ACEOF
1.32 moko 7810: if ac_fn_c_try_compile "$LINENO"; then :
1.25 moko 7811: ac_cv_header_stdc=yes
7812: else
1.32 moko 7813: ac_cv_header_stdc=no
1.25 moko 7814: fi
1.32 moko 7815: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 7816:
1.25 moko 7817: if test $ac_cv_header_stdc = yes; then
7818: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.32 moko 7819: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7820: /* end confdefs.h. */
7821: #include <string.h>
1.11 paf 7822:
1.25 moko 7823: _ACEOF
7824: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.32 moko 7825: $EGREP "memchr" >/dev/null 2>&1; then :
7826:
1.25 moko 7827: else
7828: ac_cv_header_stdc=no
7829: fi
7830: rm -f conftest*
1.11 paf 7831:
1.25 moko 7832: fi
1.11 paf 7833:
1.25 moko 7834: if test $ac_cv_header_stdc = yes; then
7835: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.32 moko 7836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7837: /* end confdefs.h. */
7838: #include <stdlib.h>
1.11 paf 7839:
1.25 moko 7840: _ACEOF
7841: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.32 moko 7842: $EGREP "free" >/dev/null 2>&1; then :
7843:
1.25 moko 7844: else
7845: ac_cv_header_stdc=no
7846: fi
7847: rm -f conftest*
1.11 paf 7848:
1.25 moko 7849: fi
1.11 paf 7850:
1.25 moko 7851: if test $ac_cv_header_stdc = yes; then
7852: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.32 moko 7853: if test "$cross_compiling" = yes; then :
1.25 moko 7854: :
7855: else
1.32 moko 7856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7857: /* end confdefs.h. */
7858: #include <ctype.h>
1.32 moko 7859: #include <stdlib.h>
1.25 moko 7860: #if ((' ' & 0x0FF) == 0x020)
7861: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7862: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7863: #else
7864: # define ISLOWER(c) \
7865: (('a' <= (c) && (c) <= 'i') \
7866: || ('j' <= (c) && (c) <= 'r') \
7867: || ('s' <= (c) && (c) <= 'z'))
7868: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7869: #endif
1.11 paf 7870:
1.25 moko 7871: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7872: int
7873: main ()
7874: {
7875: int i;
7876: for (i = 0; i < 256; i++)
7877: if (XOR (islower (i), ISLOWER (i))
7878: || toupper (i) != TOUPPER (i))
1.32 moko 7879: return 2;
7880: return 0;
1.25 moko 7881: }
7882: _ACEOF
1.32 moko 7883: if ac_fn_c_try_run "$LINENO"; then :
7884:
1.25 moko 7885: else
1.32 moko 7886: ac_cv_header_stdc=no
1.25 moko 7887: fi
1.32 moko 7888: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7889: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.25 moko 7890: fi
1.32 moko 7891:
1.25 moko 7892: fi
7893: fi
1.32 moko 7894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7895: $as_echo "$ac_cv_header_stdc" >&6; }
1.25 moko 7896: if test $ac_cv_header_stdc = yes; then
1.11 paf 7897:
1.32 moko 7898: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.11 paf 7899:
1.25 moko 7900: fi
1.11 paf 7901:
1.25 moko 7902: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7903: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7904: inttypes.h stdint.h unistd.h
1.32 moko 7905: do :
7906: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7907: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7908: "
7909: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.25 moko 7910: cat >>confdefs.h <<_ACEOF
1.32 moko 7911: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.25 moko 7912: _ACEOF
7913:
1.11 paf 7914: fi
1.25 moko 7915:
7916: done
7917:
7918:
7919: for ac_header in dlfcn.h
1.32 moko 7920: do :
7921: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7922: "
7923: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.25 moko 7924: cat >>confdefs.h <<_ACEOF
1.32 moko 7925: #define HAVE_DLFCN_H 1
1.11 paf 7926: _ACEOF
1.18 paf 7927:
1.25 moko 7928: fi
7929:
7930: done
7931:
1.18 paf 7932:
7933:
7934:
1.25 moko 7935: func_stripname_cnf ()
1.11 paf 7936: {
1.25 moko 7937: case ${2} in
7938: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7939: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7940: esac
7941: } # func_stripname_cnf
7942:
7943:
7944:
7945:
7946:
7947: # Set options
1.32 moko 7948: # Check whether --enable-static was given.
7949: if test "${enable_static+set}" = set; then :
7950: enableval=$enable_static; p=${PACKAGE-default}
1.31 moko 7951: case $enableval in
7952: yes) enable_static=yes ;;
7953: no) enable_static=no ;;
7954: *)
7955: enable_static=no
7956: # Look at the argument we got. We use all the common list separators.
7957: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7958: for pkg in $enableval; do
7959: IFS="$lt_save_ifs"
7960: if test "X$pkg" = "X$p"; then
7961: enable_static=yes
7962: fi
7963: done
7964: IFS="$lt_save_ifs"
7965: ;;
7966: esac
7967: else
7968: enable_static=no
1.32 moko 7969: fi
7970:
1.31 moko 7971:
7972:
7973:
7974:
7975:
7976:
1.25 moko 7977: enable_dlopen=yes
7978: enable_win32_dll=yes
7979:
7980: case $host in
7981: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7982: if test -n "$ac_tool_prefix"; then
7983: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7984: set dummy ${ac_tool_prefix}as; ac_word=$2
1.32 moko 7985: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986: $as_echo_n "checking for $ac_word... " >&6; }
7987: if ${ac_cv_prog_AS+:} false; then :
7988: $as_echo_n "(cached) " >&6
1.25 moko 7989: else
7990: if test -n "$AS"; then
7991: ac_cv_prog_AS="$AS" # Let the user override the test.
7992: else
7993: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994: for as_dir in $PATH
7995: do
7996: IFS=$as_save_IFS
7997: test -z "$as_dir" && as_dir=.
1.32 moko 7998: for ac_exec_ext in '' $ac_executable_extensions; do
7999: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 8000: ac_cv_prog_AS="${ac_tool_prefix}as"
1.32 moko 8001: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8002: break 2
8003: fi
8004: done
1.32 moko 8005: done
8006: IFS=$as_save_IFS
1.11 paf 8007:
1.25 moko 8008: fi
8009: fi
8010: AS=$ac_cv_prog_AS
8011: if test -n "$AS"; then
1.32 moko 8012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8013: $as_echo "$AS" >&6; }
1.25 moko 8014: else
1.32 moko 8015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016: $as_echo "no" >&6; }
1.25 moko 8017: fi
8018:
1.32 moko 8019:
1.25 moko 8020: fi
8021: if test -z "$ac_cv_prog_AS"; then
8022: ac_ct_AS=$AS
8023: # Extract the first word of "as", so it can be a program name with args.
8024: set dummy as; ac_word=$2
1.32 moko 8025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026: $as_echo_n "checking for $ac_word... " >&6; }
8027: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8028: $as_echo_n "(cached) " >&6
1.25 moko 8029: else
8030: if test -n "$ac_ct_AS"; then
8031: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
1.11 paf 8032: else
1.25 moko 8033: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034: for as_dir in $PATH
8035: do
8036: IFS=$as_save_IFS
8037: test -z "$as_dir" && as_dir=.
1.32 moko 8038: for ac_exec_ext in '' $ac_executable_extensions; do
8039: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 8040: ac_cv_prog_ac_ct_AS="as"
1.32 moko 8041: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8042: break 2
8043: fi
8044: done
1.32 moko 8045: done
8046: IFS=$as_save_IFS
1.11 paf 8047:
1.25 moko 8048: fi
1.11 paf 8049: fi
1.25 moko 8050: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8051: if test -n "$ac_ct_AS"; then
1.32 moko 8052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8053: $as_echo "$ac_ct_AS" >&6; }
1.25 moko 8054: else
1.32 moko 8055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056: $as_echo "no" >&6; }
1.11 paf 8057: fi
1.25 moko 8058:
1.32 moko 8059: if test "x$ac_ct_AS" = x; then
8060: AS="false"
8061: else
8062: case $cross_compiling:$ac_tool_warned in
8063: yes:)
8064: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8065: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8066: ac_tool_warned=yes ;;
8067: esac
8068: AS=$ac_ct_AS
8069: fi
1.11 paf 8070: else
1.25 moko 8071: AS="$ac_cv_prog_AS"
8072: fi
8073:
8074: if test -n "$ac_tool_prefix"; then
8075: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8076: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.32 moko 8077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078: $as_echo_n "checking for $ac_word... " >&6; }
8079: if ${ac_cv_prog_DLLTOOL+:} false; then :
8080: $as_echo_n "(cached) " >&6
1.11 paf 8081: else
1.25 moko 8082: if test -n "$DLLTOOL"; then
8083: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.11 paf 8084: else
1.25 moko 8085: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086: for as_dir in $PATH
8087: do
8088: IFS=$as_save_IFS
8089: test -z "$as_dir" && as_dir=.
1.32 moko 8090: for ac_exec_ext in '' $ac_executable_extensions; do
8091: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 8092: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.32 moko 8093: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8094: break 2
8095: fi
8096: done
1.32 moko 8097: done
8098: IFS=$as_save_IFS
1.11 paf 8099:
8100: fi
8101: fi
1.25 moko 8102: DLLTOOL=$ac_cv_prog_DLLTOOL
8103: if test -n "$DLLTOOL"; then
1.32 moko 8104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8105: $as_echo "$DLLTOOL" >&6; }
1.11 paf 8106: else
1.32 moko 8107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108: $as_echo "no" >&6; }
1.25 moko 8109: fi
8110:
1.32 moko 8111:
1.25 moko 8112: fi
8113: if test -z "$ac_cv_prog_DLLTOOL"; then
8114: ac_ct_DLLTOOL=$DLLTOOL
8115: # Extract the first word of "dlltool", so it can be a program name with args.
8116: set dummy dlltool; ac_word=$2
1.32 moko 8117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118: $as_echo_n "checking for $ac_word... " >&6; }
8119: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8120: $as_echo_n "(cached) " >&6
1.11 paf 8121: else
1.25 moko 8122: if test -n "$ac_ct_DLLTOOL"; then
8123: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.11 paf 8124: else
1.25 moko 8125: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126: for as_dir in $PATH
8127: do
8128: IFS=$as_save_IFS
8129: test -z "$as_dir" && as_dir=.
1.32 moko 8130: for ac_exec_ext in '' $ac_executable_extensions; do
8131: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 8132: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.32 moko 8133: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8134: break 2
8135: fi
8136: done
1.32 moko 8137: done
8138: IFS=$as_save_IFS
1.11 paf 8139:
1.25 moko 8140: fi
1.11 paf 8141: fi
1.25 moko 8142: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8143: if test -n "$ac_ct_DLLTOOL"; then
1.32 moko 8144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8145: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.25 moko 8146: else
1.32 moko 8147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148: $as_echo "no" >&6; }
1.11 paf 8149: fi
1.25 moko 8150:
1.32 moko 8151: if test "x$ac_ct_DLLTOOL" = x; then
8152: DLLTOOL="false"
8153: else
8154: case $cross_compiling:$ac_tool_warned in
8155: yes:)
8156: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8157: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8158: ac_tool_warned=yes ;;
8159: esac
8160: DLLTOOL=$ac_ct_DLLTOOL
8161: fi
1.11 paf 8162: else
1.25 moko 8163: DLLTOOL="$ac_cv_prog_DLLTOOL"
8164: fi
8165:
8166: if test -n "$ac_tool_prefix"; then
8167: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8168: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.32 moko 8169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170: $as_echo_n "checking for $ac_word... " >&6; }
8171: if ${ac_cv_prog_OBJDUMP+:} false; then :
8172: $as_echo_n "(cached) " >&6
1.11 paf 8173: else
1.25 moko 8174: if test -n "$OBJDUMP"; then
8175: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8176: else
8177: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178: for as_dir in $PATH
8179: do
8180: IFS=$as_save_IFS
8181: test -z "$as_dir" && as_dir=.
1.32 moko 8182: for ac_exec_ext in '' $ac_executable_extensions; do
8183: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 8184: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.32 moko 8185: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8186: break 2
8187: fi
8188: done
1.32 moko 8189: done
8190: IFS=$as_save_IFS
1.25 moko 8191:
8192: fi
8193: fi
8194: OBJDUMP=$ac_cv_prog_OBJDUMP
8195: if test -n "$OBJDUMP"; then
1.32 moko 8196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8197: $as_echo "$OBJDUMP" >&6; }
1.25 moko 8198: else
1.32 moko 8199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200: $as_echo "no" >&6; }
1.25 moko 8201: fi
1.11 paf 8202:
1.32 moko 8203:
1.25 moko 8204: fi
8205: if test -z "$ac_cv_prog_OBJDUMP"; then
8206: ac_ct_OBJDUMP=$OBJDUMP
8207: # Extract the first word of "objdump", so it can be a program name with args.
8208: set dummy objdump; ac_word=$2
1.32 moko 8209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210: $as_echo_n "checking for $ac_word... " >&6; }
8211: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8212: $as_echo_n "(cached) " >&6
1.25 moko 8213: else
8214: if test -n "$ac_ct_OBJDUMP"; then
8215: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.11 paf 8216: else
1.25 moko 8217: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218: for as_dir in $PATH
8219: do
8220: IFS=$as_save_IFS
8221: test -z "$as_dir" && as_dir=.
1.32 moko 8222: for ac_exec_ext in '' $ac_executable_extensions; do
8223: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 moko 8224: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.32 moko 8225: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8226: break 2
8227: fi
8228: done
1.32 moko 8229: done
8230: IFS=$as_save_IFS
1.11 paf 8231:
1.25 moko 8232: fi
1.11 paf 8233: fi
1.25 moko 8234: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8235: if test -n "$ac_ct_OBJDUMP"; then
1.32 moko 8236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8237: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.25 moko 8238: else
1.32 moko 8239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240: $as_echo "no" >&6; }
1.11 paf 8241: fi
1.25 moko 8242:
1.32 moko 8243: if test "x$ac_ct_OBJDUMP" = x; then
8244: OBJDUMP="false"
8245: else
8246: case $cross_compiling:$ac_tool_warned in
8247: yes:)
8248: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8249: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8250: ac_tool_warned=yes ;;
8251: esac
8252: OBJDUMP=$ac_ct_OBJDUMP
8253: fi
1.25 moko 8254: else
8255: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.11 paf 8256: fi
8257:
1.25 moko 8258: ;;
8259: esac
8260:
8261: test -z "$AS" && AS=as
8262:
1.11 paf 8263:
8264:
8265:
8266:
1.25 moko 8267: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.11 paf 8268:
8269:
8270:
8271:
8272:
1.25 moko 8273: test -z "$OBJDUMP" && OBJDUMP=objdump
1.11 paf 8274:
8275:
8276:
8277:
8278:
8279:
8280:
8281:
8282:
1.32 moko 8283: # Check whether --enable-shared was given.
8284: if test "${enable_shared+set}" = set; then :
8285: enableval=$enable_shared; p=${PACKAGE-default}
1.25 moko 8286: case $enableval in
8287: yes) enable_shared=yes ;;
8288: no) enable_shared=no ;;
8289: *)
8290: enable_shared=no
8291: # Look at the argument we got. We use all the common list separators.
8292: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8293: for pkg in $enableval; do
8294: IFS="$lt_save_ifs"
8295: if test "X$pkg" = "X$p"; then
8296: enable_shared=yes
8297: fi
8298: done
8299: IFS="$lt_save_ifs"
8300: ;;
8301: esac
8302: else
8303: enable_shared=yes
1.32 moko 8304: fi
8305:
1.11 paf 8306:
8307:
8308:
8309:
8310:
8311:
8312:
8313:
8314:
8315:
1.32 moko 8316: # Check whether --with-pic was given.
8317: if test "${with_pic+set}" = set; then :
8318: withval=$with_pic; lt_p=${PACKAGE-default}
1.25 moko 8319: case $withval in
8320: yes|no) pic_mode=$withval ;;
8321: *)
8322: pic_mode=default
8323: # Look at the argument we got. We use all the common list separators.
8324: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8325: for lt_pkg in $withval; do
8326: IFS="$lt_save_ifs"
8327: if test "X$lt_pkg" = "X$lt_p"; then
8328: pic_mode=yes
8329: fi
8330: done
8331: IFS="$lt_save_ifs"
8332: ;;
1.11 paf 8333: esac
1.25 moko 8334: else
8335: pic_mode=default
1.32 moko 8336: fi
8337:
1.11 paf 8338:
1.25 moko 8339: test -z "$pic_mode" && pic_mode=default
1.11 paf 8340:
8341:
8342:
8343:
8344:
8345:
8346:
1.32 moko 8347: # Check whether --enable-fast-install was given.
8348: if test "${enable_fast_install+set}" = set; then :
8349: enableval=$enable_fast_install; p=${PACKAGE-default}
1.25 moko 8350: case $enableval in
8351: yes) enable_fast_install=yes ;;
8352: no) enable_fast_install=no ;;
1.11 paf 8353: *)
1.25 moko 8354: enable_fast_install=no
8355: # Look at the argument we got. We use all the common list separators.
8356: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8357: for pkg in $enableval; do
8358: IFS="$lt_save_ifs"
8359: if test "X$pkg" = "X$p"; then
8360: enable_fast_install=yes
8361: fi
8362: done
8363: IFS="$lt_save_ifs"
1.11 paf 8364: ;;
8365: esac
1.25 moko 8366: else
8367: enable_fast_install=yes
1.32 moko 8368: fi
8369:
1.11 paf 8370:
8371:
8372:
8373:
8374:
8375:
8376:
8377:
8378:
8379:
1.25 moko 8380: # This can be used to rebuild libtool when needed
8381: LIBTOOL_DEPS="$ltmain"
1.11 paf 8382:
1.25 moko 8383: # Always use our own libtool.
8384: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.11 paf 8385:
8386:
8387:
8388:
8389:
8390:
8391:
8392:
8393:
8394:
8395:
8396:
8397:
8398:
8399:
8400:
8401:
8402:
8403:
8404:
8405:
8406:
8407:
8408:
8409:
8410:
8411:
8412:
8413:
8414:
1.25 moko 8415: test -z "$LN_S" && LN_S="ln -s"
1.11 paf 8416:
8417:
8418:
8419:
8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
1.25 moko 8430: if test -n "${ZSH_VERSION+set}" ; then
8431: setopt NO_GLOB_SUBST
8432: fi
1.11 paf 8433:
1.32 moko 8434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8435: $as_echo_n "checking for objdir... " >&6; }
8436: if ${lt_cv_objdir+:} false; then :
8437: $as_echo_n "(cached) " >&6
1.25 moko 8438: else
8439: rm -f .libs 2>/dev/null
8440: mkdir .libs 2>/dev/null
8441: if test -d .libs; then
8442: lt_cv_objdir=.libs
8443: else
8444: # MS-DOS does not allow filenames that begin with a dot.
8445: lt_cv_objdir=_libs
8446: fi
8447: rmdir .libs 2>/dev/null
8448: fi
1.32 moko 8449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8450: $as_echo "$lt_cv_objdir" >&6; }
1.25 moko 8451: objdir=$lt_cv_objdir
1.11 paf 8452:
8453:
8454:
8455:
8456:
1.25 moko 8457: cat >>confdefs.h <<_ACEOF
8458: #define LT_OBJDIR "$lt_cv_objdir/"
8459: _ACEOF
1.11 paf 8460:
8461:
8462:
8463:
1.25 moko 8464: case $host_os in
8465: aix3*)
8466: # AIX sometimes has problems with the GCC collect2 program. For some
8467: # reason, if we set the COLLECT_NAMES environment variable, the problems
8468: # vanish in a puff of smoke.
8469: if test "X${COLLECT_NAMES+set}" != Xset; then
8470: COLLECT_NAMES=
8471: export COLLECT_NAMES
8472: fi
8473: ;;
8474: esac
1.11 paf 8475:
1.25 moko 8476: # Global variables:
8477: ofile=libtool
8478: can_build_shared=yes
1.11 paf 8479:
1.25 moko 8480: # All known linkers require a `.a' archive for static linking (except MSVC,
8481: # which needs '.lib').
8482: libext=a
1.11 paf 8483:
1.25 moko 8484: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.11 paf 8485:
1.25 moko 8486: old_CC="$CC"
8487: old_CFLAGS="$CFLAGS"
1.11 paf 8488:
1.25 moko 8489: # Set sane defaults for various variables
8490: test -z "$CC" && CC=cc
8491: test -z "$LTCC" && LTCC=$CC
8492: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8493: test -z "$LD" && LD=ld
8494: test -z "$ac_objext" && ac_objext=o
1.11 paf 8495:
1.25 moko 8496: for cc_temp in $compiler""; do
8497: case $cc_temp in
8498: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8499: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8500: \-*) ;;
8501: *) break;;
8502: esac
8503: done
8504: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.11 paf 8505:
8506:
1.25 moko 8507: # Only perform the check for file, if the check method requires it
8508: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8509: case $deplibs_check_method in
8510: file_magic*)
8511: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.32 moko 8512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8513: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8514: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8515: $as_echo_n "(cached) " >&6
1.25 moko 8516: else
8517: case $MAGIC_CMD in
8518: [\\/*] | ?:[\\/]*)
8519: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8520: ;;
8521: *)
8522: lt_save_MAGIC_CMD="$MAGIC_CMD"
8523: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8524: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8525: for ac_dir in $ac_dummy; do
8526: IFS="$lt_save_ifs"
8527: test -z "$ac_dir" && ac_dir=.
8528: if test -f $ac_dir/${ac_tool_prefix}file; then
8529: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8530: if test -n "$file_magic_test_file"; then
8531: case $deplibs_check_method in
8532: "file_magic "*)
8533: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8534: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8536: $EGREP "$file_magic_regex" > /dev/null; then
8537: :
8538: else
8539: cat <<_LT_EOF 1>&2
1.11 paf 8540:
1.25 moko 8541: *** Warning: the command libtool uses to detect shared libraries,
8542: *** $file_magic_cmd, produces output that libtool cannot recognize.
8543: *** The result is that libtool may fail to recognize shared libraries
8544: *** as such. This will affect the creation of libtool libraries that
8545: *** depend on shared libraries, but programs linked with such libtool
8546: *** libraries will work regardless of this problem. Nevertheless, you
8547: *** may want to report the problem to your system manager and/or to
8548: *** bug-libtool@gnu.org
1.11 paf 8549:
1.25 moko 8550: _LT_EOF
8551: fi ;;
8552: esac
8553: fi
8554: break
8555: fi
8556: done
8557: IFS="$lt_save_ifs"
8558: MAGIC_CMD="$lt_save_MAGIC_CMD"
8559: ;;
8560: esac
8561: fi
1.7 paf 8562:
1.25 moko 8563: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564: if test -n "$MAGIC_CMD"; then
1.32 moko 8565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8566: $as_echo "$MAGIC_CMD" >&6; }
1.25 moko 8567: else
1.32 moko 8568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569: $as_echo "no" >&6; }
1.25 moko 8570: fi
1.7 paf 8571:
8572:
8573:
8574:
8575:
1.25 moko 8576: if test -z "$lt_cv_path_MAGIC_CMD"; then
8577: if test -n "$ac_tool_prefix"; then
1.32 moko 8578: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8579: $as_echo_n "checking for file... " >&6; }
8580: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8581: $as_echo_n "(cached) " >&6
1.25 moko 8582: else
8583: case $MAGIC_CMD in
8584: [\\/*] | ?:[\\/]*)
8585: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8586: ;;
8587: *)
8588: lt_save_MAGIC_CMD="$MAGIC_CMD"
8589: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8590: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8591: for ac_dir in $ac_dummy; do
8592: IFS="$lt_save_ifs"
8593: test -z "$ac_dir" && ac_dir=.
8594: if test -f $ac_dir/file; then
8595: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8596: if test -n "$file_magic_test_file"; then
8597: case $deplibs_check_method in
8598: "file_magic "*)
8599: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8600: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8601: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8602: $EGREP "$file_magic_regex" > /dev/null; then
8603: :
8604: else
8605: cat <<_LT_EOF 1>&2
1.7 paf 8606:
1.25 moko 8607: *** Warning: the command libtool uses to detect shared libraries,
8608: *** $file_magic_cmd, produces output that libtool cannot recognize.
8609: *** The result is that libtool may fail to recognize shared libraries
8610: *** as such. This will affect the creation of libtool libraries that
8611: *** depend on shared libraries, but programs linked with such libtool
8612: *** libraries will work regardless of this problem. Nevertheless, you
8613: *** may want to report the problem to your system manager and/or to
8614: *** bug-libtool@gnu.org
1.7 paf 8615:
1.25 moko 8616: _LT_EOF
8617: fi ;;
8618: esac
8619: fi
8620: break
8621: fi
8622: done
8623: IFS="$lt_save_ifs"
8624: MAGIC_CMD="$lt_save_MAGIC_CMD"
8625: ;;
8626: esac
8627: fi
1.7 paf 8628:
1.25 moko 8629: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8630: if test -n "$MAGIC_CMD"; then
1.32 moko 8631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8632: $as_echo "$MAGIC_CMD" >&6; }
1.25 moko 8633: else
1.32 moko 8634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635: $as_echo "no" >&6; }
1.11 paf 8636: fi
8637:
8638:
1.25 moko 8639: else
8640: MAGIC_CMD=:
8641: fi
1.1 parser 8642: fi
8643:
1.25 moko 8644: fi
8645: ;;
8646: esac
1.1 parser 8647:
1.25 moko 8648: # Use C for the default configuration in the libtool script
1.1 parser 8649:
1.25 moko 8650: lt_save_CC="$CC"
8651: ac_ext=c
8652: ac_cpp='$CPP $CPPFLAGS'
8653: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 8656:
8657:
1.25 moko 8658: # Source file extension for C test sources.
8659: ac_ext=c
1.11 paf 8660:
1.25 moko 8661: # Object file extension for compiled C test sources.
8662: objext=o
8663: objext=$objext
1.11 paf 8664:
1.25 moko 8665: # Code to be used in simple compile tests
8666: lt_simple_compile_test_code="int some_variable = 0;"
1.11 paf 8667:
1.25 moko 8668: # Code to be used in simple link tests
8669: lt_simple_link_test_code='int main(){return(0);}'
1.11 paf 8670:
8671:
8672:
8673:
8674:
1.1 parser 8675:
8676:
1.25 moko 8677: # If no C compiler was specified, use CC.
8678: LTCC=${LTCC-"$CC"}
1.1 parser 8679:
1.25 moko 8680: # If no C compiler flags were specified, use CFLAGS.
8681: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 parser 8682:
1.25 moko 8683: # Allow CC to be a program name with arguments.
8684: compiler=$CC
1.1 parser 8685:
1.25 moko 8686: # Save the default compiler, since it gets overwritten when the other
8687: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8688: compiler_DEFAULT=$CC
8689:
8690: # save warnings/boilerplate of simple test code
8691: ac_outfile=conftest.$ac_objext
8692: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8693: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8694: _lt_compiler_boilerplate=`cat conftest.err`
8695: $RM conftest*
8696:
8697: ac_outfile=conftest.$ac_objext
8698: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8699: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700: _lt_linker_boilerplate=`cat conftest.err`
8701: $RM -r conftest*
8702:
8703:
8704: ## CAVEAT EMPTOR:
8705: ## There is no encapsulation within the following macros, do not change
8706: ## the running order or otherwise move them around unless you know exactly
8707: ## what you are doing...
8708: if test -n "$compiler"; then
1.1 parser 8709:
1.25 moko 8710: lt_prog_compiler_no_builtin_flag=
1.1 parser 8711:
1.25 moko 8712: if test "$GCC" = yes; then
8713: case $cc_basename in
8714: nvcc*)
8715: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8716: *)
8717: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8718: esac
1.1 parser 8719:
1.32 moko 8720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8721: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8722: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8723: $as_echo_n "(cached) " >&6
1.11 paf 8724: else
1.25 moko 8725: lt_cv_prog_compiler_rtti_exceptions=no
8726: ac_outfile=conftest.$ac_objext
8727: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728: lt_compiler_flag="-fno-rtti -fno-exceptions"
8729: # Insert the option either (1) after the last *FLAGS variable, or
8730: # (2) before a word containing "conftest.", or (3) at the end.
8731: # Note that $ac_compile itself does not contain backslashes and begins
8732: # with a dollar sign (not a hyphen), so the echo should work correctly.
8733: # The option is referenced via a variable to avoid confusing sed.
8734: lt_compile=`echo "$ac_compile" | $SED \
8735: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737: -e 's:$: $lt_compiler_flag:'`
8738: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8739: (eval "$lt_compile" 2>conftest.err)
8740: ac_status=$?
8741: cat conftest.err >&5
8742: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743: if (exit $ac_status) && test -s "$ac_outfile"; then
8744: # The compiler can only warn and ignore the option if not recognized
8745: # So say no if there are warnings other than the usual output.
8746: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8747: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749: lt_cv_prog_compiler_rtti_exceptions=yes
8750: fi
8751: fi
8752: $RM conftest*
1.11 paf 8753:
8754: fi
1.32 moko 8755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8756: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.11 paf 8757:
1.25 moko 8758: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8759: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.11 paf 8760: else
1.25 moko 8761: :
1.11 paf 8762: fi
8763:
8764: fi
8765:
1.25 moko 8766:
8767:
8768:
8769:
8770:
8771: lt_prog_compiler_wl=
8772: lt_prog_compiler_pic=
8773: lt_prog_compiler_static=
8774:
8775:
8776: if test "$GCC" = yes; then
8777: lt_prog_compiler_wl='-Wl,'
8778: lt_prog_compiler_static='-static'
8779:
8780: case $host_os in
8781: aix*)
8782: # All AIX code is PIC.
8783: if test "$host_cpu" = ia64; then
8784: # AIX 5 now supports IA64 processor
8785: lt_prog_compiler_static='-Bstatic'
8786: fi
8787: ;;
8788:
8789: amigaos*)
8790: case $host_cpu in
8791: powerpc)
8792: # see comment about AmigaOS4 .so support
8793: lt_prog_compiler_pic='-fPIC'
8794: ;;
8795: m68k)
8796: # FIXME: we need at least 68020 code to build shared libraries, but
8797: # adding the `-m68020' flag to GCC prevents building anything better,
8798: # like `-m68040'.
8799: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8800: ;;
8801: esac
8802: ;;
8803:
8804: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8805: # PIC is the default for these OSes.
8806: ;;
8807:
8808: mingw* | cygwin* | pw32* | os2* | cegcc*)
8809: # This hack is so that the source file can tell whether it is being
8810: # built for inclusion in a dll (and should export symbols for example).
8811: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8812: # (--disable-auto-import) libraries
8813: lt_prog_compiler_pic='-DDLL_EXPORT'
8814: ;;
8815:
8816: darwin* | rhapsody*)
8817: # PIC is the default on this platform
8818: # Common symbols not allowed in MH_DYLIB files
8819: lt_prog_compiler_pic='-fno-common'
8820: ;;
8821:
8822: haiku*)
8823: # PIC is the default for Haiku.
8824: # The "-static" flag exists, but is broken.
8825: lt_prog_compiler_static=
8826: ;;
8827:
8828: hpux*)
8829: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8830: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8831: # sets the default TLS model and affects inlining.
8832: case $host_cpu in
8833: hppa*64*)
8834: # +Z the default
8835: ;;
8836: *)
8837: lt_prog_compiler_pic='-fPIC'
8838: ;;
8839: esac
8840: ;;
8841:
8842: interix[3-9]*)
8843: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8844: # Instead, we relocate shared libraries at runtime.
8845: ;;
8846:
8847: msdosdjgpp*)
8848: # Just because we use GCC doesn't mean we suddenly get shared libraries
8849: # on systems that don't support them.
8850: lt_prog_compiler_can_build_shared=no
8851: enable_shared=no
8852: ;;
8853:
8854: *nto* | *qnx*)
8855: # QNX uses GNU C++, but need to define -shared option too, otherwise
8856: # it will coredump.
8857: lt_prog_compiler_pic='-fPIC -shared'
8858: ;;
8859:
8860: sysv4*MP*)
8861: if test -d /usr/nec; then
8862: lt_prog_compiler_pic=-Kconform_pic
8863: fi
8864: ;;
8865:
8866: *)
8867: lt_prog_compiler_pic='-fPIC'
8868: ;;
8869: esac
8870:
8871: case $cc_basename in
8872: nvcc*) # Cuda Compiler Driver 2.2
8873: lt_prog_compiler_wl='-Xlinker '
8874: if test -n "$lt_prog_compiler_pic"; then
8875: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8876: fi
8877: ;;
8878: esac
8879: else
8880: # PORTME Check for flag to pass linker flags through the system compiler.
8881: case $host_os in
8882: aix*)
8883: lt_prog_compiler_wl='-Wl,'
8884: if test "$host_cpu" = ia64; then
8885: # AIX 5 now supports IA64 processor
8886: lt_prog_compiler_static='-Bstatic'
8887: else
8888: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8889: fi
8890: ;;
8891:
8892: mingw* | cygwin* | pw32* | os2* | cegcc*)
8893: # This hack is so that the source file can tell whether it is being
8894: # built for inclusion in a dll (and should export symbols for example).
8895: lt_prog_compiler_pic='-DDLL_EXPORT'
8896: ;;
8897:
8898: hpux9* | hpux10* | hpux11*)
8899: lt_prog_compiler_wl='-Wl,'
8900: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8901: # not for PA HP-UX.
8902: case $host_cpu in
8903: hppa*64*|ia64*)
8904: # +Z the default
8905: ;;
8906: *)
8907: lt_prog_compiler_pic='+Z'
8908: ;;
8909: esac
8910: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8911: lt_prog_compiler_static='${wl}-a ${wl}archive'
8912: ;;
8913:
8914: irix5* | irix6* | nonstopux*)
8915: lt_prog_compiler_wl='-Wl,'
8916: # PIC (with -KPIC) is the default.
8917: lt_prog_compiler_static='-non_shared'
8918: ;;
8919:
8920: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8921: case $cc_basename in
8922: # old Intel for x86_64 which still supported -KPIC.
8923: ecc*)
8924: lt_prog_compiler_wl='-Wl,'
8925: lt_prog_compiler_pic='-KPIC'
8926: lt_prog_compiler_static='-static'
8927: ;;
8928: # icc used to be incompatible with GCC.
8929: # ICC 10 doesn't accept -KPIC any more.
8930: icc* | ifort*)
8931: lt_prog_compiler_wl='-Wl,'
8932: lt_prog_compiler_pic='-fPIC'
8933: lt_prog_compiler_static='-static'
8934: ;;
8935: # Lahey Fortran 8.1.
8936: lf95*)
8937: lt_prog_compiler_wl='-Wl,'
8938: lt_prog_compiler_pic='--shared'
8939: lt_prog_compiler_static='--static'
8940: ;;
8941: nagfor*)
8942: # NAG Fortran compiler
8943: lt_prog_compiler_wl='-Wl,-Wl,,'
8944: lt_prog_compiler_pic='-PIC'
8945: lt_prog_compiler_static='-Bstatic'
8946: ;;
8947: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8948: # Portland Group compilers (*not* the Pentium gcc compiler,
8949: # which looks to be a dead project)
8950: lt_prog_compiler_wl='-Wl,'
8951: lt_prog_compiler_pic='-fpic'
8952: lt_prog_compiler_static='-Bstatic'
8953: ;;
8954: ccc*)
8955: lt_prog_compiler_wl='-Wl,'
8956: # All Alpha code is PIC.
8957: lt_prog_compiler_static='-non_shared'
8958: ;;
8959: xl* | bgxl* | bgf* | mpixl*)
8960: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8961: lt_prog_compiler_wl='-Wl,'
8962: lt_prog_compiler_pic='-qpic'
8963: lt_prog_compiler_static='-qstaticlink'
8964: ;;
8965: *)
8966: case `$CC -V 2>&1 | sed 5q` in
8967: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8968: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8969: lt_prog_compiler_pic='-KPIC'
8970: lt_prog_compiler_static='-Bstatic'
8971: lt_prog_compiler_wl=''
8972: ;;
8973: *Sun\ F* | *Sun*Fortran*)
8974: lt_prog_compiler_pic='-KPIC'
8975: lt_prog_compiler_static='-Bstatic'
8976: lt_prog_compiler_wl='-Qoption ld '
8977: ;;
8978: *Sun\ C*)
8979: # Sun C 5.9
8980: lt_prog_compiler_pic='-KPIC'
8981: lt_prog_compiler_static='-Bstatic'
8982: lt_prog_compiler_wl='-Wl,'
8983: ;;
8984: *Intel*\ [CF]*Compiler*)
8985: lt_prog_compiler_wl='-Wl,'
8986: lt_prog_compiler_pic='-fPIC'
8987: lt_prog_compiler_static='-static'
8988: ;;
8989: *Portland\ Group*)
8990: lt_prog_compiler_wl='-Wl,'
8991: lt_prog_compiler_pic='-fpic'
8992: lt_prog_compiler_static='-Bstatic'
8993: ;;
8994: esac
8995: ;;
8996: esac
8997: ;;
8998:
8999: newsos6)
9000: lt_prog_compiler_pic='-KPIC'
9001: lt_prog_compiler_static='-Bstatic'
9002: ;;
9003:
9004: *nto* | *qnx*)
9005: # QNX uses GNU C++, but need to define -shared option too, otherwise
9006: # it will coredump.
9007: lt_prog_compiler_pic='-fPIC -shared'
9008: ;;
9009:
9010: osf3* | osf4* | osf5*)
9011: lt_prog_compiler_wl='-Wl,'
9012: # All OSF/1 code is PIC.
9013: lt_prog_compiler_static='-non_shared'
9014: ;;
9015:
9016: rdos*)
9017: lt_prog_compiler_static='-non_shared'
9018: ;;
9019:
9020: solaris*)
9021: lt_prog_compiler_pic='-KPIC'
9022: lt_prog_compiler_static='-Bstatic'
9023: case $cc_basename in
9024: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9025: lt_prog_compiler_wl='-Qoption ld ';;
9026: *)
9027: lt_prog_compiler_wl='-Wl,';;
9028: esac
9029: ;;
9030:
9031: sunos4*)
9032: lt_prog_compiler_wl='-Qoption ld '
9033: lt_prog_compiler_pic='-PIC'
9034: lt_prog_compiler_static='-Bstatic'
9035: ;;
9036:
9037: sysv4 | sysv4.2uw2* | sysv4.3*)
9038: lt_prog_compiler_wl='-Wl,'
9039: lt_prog_compiler_pic='-KPIC'
9040: lt_prog_compiler_static='-Bstatic'
9041: ;;
9042:
9043: sysv4*MP*)
9044: if test -d /usr/nec ;then
9045: lt_prog_compiler_pic='-Kconform_pic'
9046: lt_prog_compiler_static='-Bstatic'
9047: fi
9048: ;;
9049:
9050: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9051: lt_prog_compiler_wl='-Wl,'
9052: lt_prog_compiler_pic='-KPIC'
9053: lt_prog_compiler_static='-Bstatic'
9054: ;;
9055:
9056: unicos*)
9057: lt_prog_compiler_wl='-Wl,'
9058: lt_prog_compiler_can_build_shared=no
9059: ;;
9060:
9061: uts4*)
9062: lt_prog_compiler_pic='-pic'
9063: lt_prog_compiler_static='-Bstatic'
9064: ;;
9065:
9066: *)
9067: lt_prog_compiler_can_build_shared=no
9068: ;;
9069: esac
9070: fi
9071:
9072: case $host_os in
9073: # For platforms which do not support PIC, -DPIC is meaningless:
9074: *djgpp*)
9075: lt_prog_compiler_pic=
1.11 paf 9076: ;;
1.25 moko 9077: *)
9078: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.11 paf 9079: ;;
9080: esac
1.25 moko 9081:
1.32 moko 9082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9083: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9084: if ${lt_cv_prog_compiler_pic+:} false; then :
9085: $as_echo_n "(cached) " >&6
1.25 moko 9086: else
9087: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9088: fi
1.32 moko 9089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9090: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.25 moko 9091: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9092:
9093: #
9094: # Check to make sure the PIC flag actually works.
9095: #
9096: if test -n "$lt_prog_compiler_pic"; then
1.32 moko 9097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9098: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9099: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9100: $as_echo_n "(cached) " >&6
1.1 parser 9101: else
1.25 moko 9102: lt_cv_prog_compiler_pic_works=no
9103: ac_outfile=conftest.$ac_objext
9104: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9105: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9106: # Insert the option either (1) after the last *FLAGS variable, or
9107: # (2) before a word containing "conftest.", or (3) at the end.
9108: # Note that $ac_compile itself does not contain backslashes and begins
9109: # with a dollar sign (not a hyphen), so the echo should work correctly.
9110: # The option is referenced via a variable to avoid confusing sed.
9111: lt_compile=`echo "$ac_compile" | $SED \
9112: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9113: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9114: -e 's:$: $lt_compiler_flag:'`
9115: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9116: (eval "$lt_compile" 2>conftest.err)
9117: ac_status=$?
9118: cat conftest.err >&5
9119: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120: if (exit $ac_status) && test -s "$ac_outfile"; then
9121: # The compiler can only warn and ignore the option if not recognized
9122: # So say no if there are warnings other than the usual output.
9123: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9124: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9125: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9126: lt_cv_prog_compiler_pic_works=yes
9127: fi
9128: fi
9129: $RM conftest*
9130:
1.1 parser 9131: fi
1.32 moko 9132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9133: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.11 paf 9134:
1.25 moko 9135: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9136: case $lt_prog_compiler_pic in
9137: "" | " "*) ;;
9138: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9139: esac
9140: else
9141: lt_prog_compiler_pic=
9142: lt_prog_compiler_can_build_shared=no
1.1 parser 9143: fi
1.11 paf 9144:
1.1 parser 9145: fi
1.11 paf 9146:
1.1 parser 9147:
9148:
1.4 paf 9149:
9150:
1.11 paf 9151:
9152:
1.4 paf 9153:
9154:
1.25 moko 9155:
9156:
9157: #
9158: # Check to make sure the static flag actually works.
9159: #
9160: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.32 moko 9161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9162: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9163: if ${lt_cv_prog_compiler_static_works+:} false; then :
9164: $as_echo_n "(cached) " >&6
1.25 moko 9165: else
9166: lt_cv_prog_compiler_static_works=no
9167: save_LDFLAGS="$LDFLAGS"
9168: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9169: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9170: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9171: # The linker can only warn and ignore the option if not recognized
9172: # So say no if there are warnings
9173: if test -s conftest.err; then
9174: # Append any errors to the config.log.
9175: cat conftest.err 1>&5
9176: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9177: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9178: if diff conftest.exp conftest.er2 >/dev/null; then
9179: lt_cv_prog_compiler_static_works=yes
9180: fi
9181: else
9182: lt_cv_prog_compiler_static_works=yes
9183: fi
9184: fi
9185: $RM -r conftest*
9186: LDFLAGS="$save_LDFLAGS"
9187:
9188: fi
1.32 moko 9189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9190: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.25 moko 9191:
9192: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9193: :
1.4 paf 9194: else
1.25 moko 9195: lt_prog_compiler_static=
9196: fi
1.11 paf 9197:
9198:
1.25 moko 9199:
9200:
9201:
9202:
9203:
1.32 moko 9204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9205: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9206: if ${lt_cv_prog_compiler_c_o+:} false; then :
9207: $as_echo_n "(cached) " >&6
1.25 moko 9208: else
9209: lt_cv_prog_compiler_c_o=no
9210: $RM -r conftest 2>/dev/null
9211: mkdir conftest
9212: cd conftest
9213: mkdir out
9214: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9215:
9216: lt_compiler_flag="-o out/conftest2.$ac_objext"
9217: # Insert the option either (1) after the last *FLAGS variable, or
9218: # (2) before a word containing "conftest.", or (3) at the end.
9219: # Note that $ac_compile itself does not contain backslashes and begins
9220: # with a dollar sign (not a hyphen), so the echo should work correctly.
9221: lt_compile=`echo "$ac_compile" | $SED \
9222: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9223: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9224: -e 's:$: $lt_compiler_flag:'`
9225: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9226: (eval "$lt_compile" 2>out/conftest.err)
9227: ac_status=$?
9228: cat out/conftest.err >&5
9229: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9231: then
9232: # The compiler can only warn and ignore the option if not recognized
9233: # So say no if there are warnings
9234: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9235: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9236: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9237: lt_cv_prog_compiler_c_o=yes
9238: fi
9239: fi
9240: chmod u+w . 2>&5
9241: $RM conftest*
9242: # SGI C++ compiler will create directory out/ii_files/ for
9243: # template instantiation
9244: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9245: $RM out/* && rmdir out
9246: cd ..
9247: $RM -r conftest
9248: $RM conftest*
9249:
9250: fi
1.32 moko 9251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9252: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.25 moko 9253:
9254:
9255:
9256:
9257:
9258:
1.32 moko 9259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9260: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9261: if ${lt_cv_prog_compiler_c_o+:} false; then :
9262: $as_echo_n "(cached) " >&6
1.25 moko 9263: else
9264: lt_cv_prog_compiler_c_o=no
9265: $RM -r conftest 2>/dev/null
9266: mkdir conftest
9267: cd conftest
9268: mkdir out
9269: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9270:
9271: lt_compiler_flag="-o out/conftest2.$ac_objext"
9272: # Insert the option either (1) after the last *FLAGS variable, or
9273: # (2) before a word containing "conftest.", or (3) at the end.
9274: # Note that $ac_compile itself does not contain backslashes and begins
9275: # with a dollar sign (not a hyphen), so the echo should work correctly.
9276: lt_compile=`echo "$ac_compile" | $SED \
9277: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9278: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9279: -e 's:$: $lt_compiler_flag:'`
9280: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9281: (eval "$lt_compile" 2>out/conftest.err)
9282: ac_status=$?
9283: cat out/conftest.err >&5
9284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9286: then
9287: # The compiler can only warn and ignore the option if not recognized
9288: # So say no if there are warnings
9289: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9290: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9291: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9292: lt_cv_prog_compiler_c_o=yes
9293: fi
9294: fi
9295: chmod u+w . 2>&5
9296: $RM conftest*
9297: # SGI C++ compiler will create directory out/ii_files/ for
9298: # template instantiation
9299: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9300: $RM out/* && rmdir out
9301: cd ..
9302: $RM -r conftest
9303: $RM conftest*
9304:
9305: fi
1.32 moko 9306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9307: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.25 moko 9308:
9309:
9310:
9311:
9312: hard_links="nottested"
9313: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9314: # do not overwrite the value of need_locks provided by the user
1.32 moko 9315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9316: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.25 moko 9317: hard_links=yes
9318: $RM conftest*
9319: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9320: touch conftest.a
9321: ln conftest.a conftest.b 2>&5 || hard_links=no
9322: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.32 moko 9323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9324: $as_echo "$hard_links" >&6; }
1.25 moko 9325: if test "$hard_links" = no; then
1.32 moko 9326: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9327: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.25 moko 9328: need_locks=warn
9329: fi
9330: else
9331: need_locks=no
9332: fi
9333:
9334:
9335:
9336:
9337:
9338:
1.32 moko 9339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9340: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.25 moko 9341:
9342: runpath_var=
9343: allow_undefined_flag=
9344: always_export_symbols=no
9345: archive_cmds=
9346: archive_expsym_cmds=
9347: compiler_needs_object=no
9348: enable_shared_with_static_runtimes=no
9349: export_dynamic_flag_spec=
9350: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9351: hardcode_automatic=no
9352: hardcode_direct=no
9353: hardcode_direct_absolute=no
9354: hardcode_libdir_flag_spec=
9355: hardcode_libdir_separator=
9356: hardcode_minus_L=no
9357: hardcode_shlibpath_var=unsupported
9358: inherit_rpath=no
9359: link_all_deplibs=unknown
9360: module_cmds=
9361: module_expsym_cmds=
9362: old_archive_from_new_cmds=
9363: old_archive_from_expsyms_cmds=
9364: thread_safe_flag_spec=
9365: whole_archive_flag_spec=
9366: # include_expsyms should be a list of space-separated symbols to be *always*
9367: # included in the symbol list
9368: include_expsyms=
9369: # exclude_expsyms can be an extended regexp of symbols to exclude
9370: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9371: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9372: # as well as any symbol that contains `d'.
9373: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9374: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9375: # platforms (ab)use it in PIC code, but their linkers get confused if
9376: # the symbol is explicitly referenced. Since portable code cannot
9377: # rely on this symbol name, it's probably fine to never include it in
9378: # preloaded symbol tables.
9379: # Exclude shared library initialization/finalization symbols.
9380: extract_expsyms_cmds=
9381:
9382: case $host_os in
9383: cygwin* | mingw* | pw32* | cegcc*)
9384: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9385: # When not using gcc, we currently assume that we are using
9386: # Microsoft Visual C++.
9387: if test "$GCC" != yes; then
9388: with_gnu_ld=no
9389: fi
9390: ;;
9391: interix*)
9392: # we just hope/assume this is gcc and not c89 (= MSVC++)
9393: with_gnu_ld=yes
9394: ;;
9395: openbsd*)
9396: with_gnu_ld=no
9397: ;;
9398: esac
9399:
9400: ld_shlibs=yes
9401:
9402: # On some targets, GNU ld is compatible enough with the native linker
9403: # that we're better off using the native interface for both.
9404: lt_use_gnu_ld_interface=no
9405: if test "$with_gnu_ld" = yes; then
9406: case $host_os in
9407: aix*)
9408: # The AIX port of GNU ld has always aspired to compatibility
9409: # with the native linker. However, as the warning in the GNU ld
9410: # block says, versions before 2.19.5* couldn't really create working
9411: # shared libraries, regardless of the interface used.
9412: case `$LD -v 2>&1` in
9413: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9414: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9415: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9416: *)
9417: lt_use_gnu_ld_interface=yes
9418: ;;
9419: esac
9420: ;;
9421: *)
9422: lt_use_gnu_ld_interface=yes
9423: ;;
9424: esac
9425: fi
9426:
9427: if test "$lt_use_gnu_ld_interface" = yes; then
9428: # If archive_cmds runs LD, not CC, wlarc should be empty
9429: wlarc='${wl}'
9430:
9431: # Set some defaults for GNU ld with shared library support. These
9432: # are reset later if shared libraries are not supported. Putting them
9433: # here allows them to be overridden if necessary.
9434: runpath_var=LD_RUN_PATH
9435: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9436: export_dynamic_flag_spec='${wl}--export-dynamic'
9437: # ancient GNU ld didn't support --whole-archive et. al.
9438: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9439: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9440: else
9441: whole_archive_flag_spec=
9442: fi
9443: supports_anon_versioning=no
9444: case `$LD -v 2>&1` in
9445: *GNU\ gold*) supports_anon_versioning=yes ;;
9446: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9447: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9448: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9449: *\ 2.11.*) ;; # other 2.11 versions
9450: *) supports_anon_versioning=yes ;;
9451: esac
9452:
9453: # See if GNU ld supports shared libraries.
9454: case $host_os in
9455: aix[3-9]*)
9456: # On AIX/PPC, the GNU linker is very broken
9457: if test "$host_cpu" != ia64; then
9458: ld_shlibs=no
9459: cat <<_LT_EOF 1>&2
9460:
9461: *** Warning: the GNU linker, at least up to release 2.19, is reported
9462: *** to be unable to reliably create shared libraries on AIX.
9463: *** Therefore, libtool is disabling shared libraries support. If you
9464: *** really care for shared libraries, you may want to install binutils
9465: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9466: *** You will then need to restart the configuration process.
9467:
9468: _LT_EOF
9469: fi
9470: ;;
9471:
9472: amigaos*)
9473: case $host_cpu in
9474: powerpc)
9475: # see comment about AmigaOS4 .so support
9476: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477: archive_expsym_cmds=''
9478: ;;
9479: m68k)
9480: 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)'
9481: hardcode_libdir_flag_spec='-L$libdir'
9482: hardcode_minus_L=yes
9483: ;;
9484: esac
9485: ;;
9486:
9487: beos*)
9488: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9489: allow_undefined_flag=unsupported
9490: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9491: # support --undefined. This deserves some investigation. FIXME
9492: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493: else
9494: ld_shlibs=no
9495: fi
9496: ;;
9497:
9498: cygwin* | mingw* | pw32* | cegcc*)
9499: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9500: # as there is no search path for DLLs.
9501: hardcode_libdir_flag_spec='-L$libdir'
9502: export_dynamic_flag_spec='${wl}--export-all-symbols'
9503: allow_undefined_flag=unsupported
9504: always_export_symbols=no
9505: enable_shared_with_static_runtimes=yes
9506: 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'
9507: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9508:
9509: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9510: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9511: # If the export-symbols file already is a .def file (1st line
9512: # is EXPORTS), use it as is; otherwise, prepend...
9513: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9514: cp $export_symbols $output_objdir/$soname.def;
9515: else
9516: echo EXPORTS > $output_objdir/$soname.def;
9517: cat $export_symbols >> $output_objdir/$soname.def;
9518: fi~
9519: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9520: else
9521: ld_shlibs=no
9522: fi
9523: ;;
9524:
9525: haiku*)
9526: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527: link_all_deplibs=yes
9528: ;;
9529:
9530: interix[3-9]*)
9531: hardcode_direct=no
9532: hardcode_shlibpath_var=no
9533: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9534: export_dynamic_flag_spec='${wl}-E'
9535: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9536: # Instead, shared libraries are loaded at an image base (0x10000000 by
9537: # default) and relocated if they conflict, which is a slow very memory
9538: # consuming and fragmenting process. To avoid this, we pick a random,
9539: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9540: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9541: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9542: 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'
9543: ;;
9544:
9545: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9546: tmp_diet=no
9547: if test "$host_os" = linux-dietlibc; then
9548: case $cc_basename in
9549: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9550: esac
9551: fi
9552: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9553: && test "$tmp_diet" = no
9554: then
9555: tmp_addflag=' $pic_flag'
9556: tmp_sharedflag='-shared'
9557: case $cc_basename,$host_cpu in
9558: pgcc*) # Portland Group C compiler
9559: 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'
9560: tmp_addflag=' $pic_flag'
9561: ;;
9562: pgf77* | pgf90* | pgf95* | pgfortran*)
9563: # Portland Group f77 and f90 compilers
9564: 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'
9565: tmp_addflag=' $pic_flag -Mnomain' ;;
9566: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9567: tmp_addflag=' -i_dynamic' ;;
9568: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9569: tmp_addflag=' -i_dynamic -nofor_main' ;;
9570: ifc* | ifort*) # Intel Fortran compiler
9571: tmp_addflag=' -nofor_main' ;;
9572: lf95*) # Lahey Fortran 8.1
9573: whole_archive_flag_spec=
9574: tmp_sharedflag='--shared' ;;
9575: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9576: tmp_sharedflag='-qmkshrobj'
9577: tmp_addflag= ;;
9578: nvcc*) # Cuda Compiler Driver 2.2
9579: 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'
9580: compiler_needs_object=yes
9581: ;;
9582: esac
9583: case `$CC -V 2>&1 | sed 5q` in
9584: *Sun\ C*) # Sun C 5.9
9585: 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'
9586: compiler_needs_object=yes
9587: tmp_sharedflag='-G' ;;
9588: *Sun\ F*) # Sun Fortran 8.3
9589: tmp_sharedflag='-G' ;;
9590: esac
9591: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9592:
9593: if test "x$supports_anon_versioning" = xyes; then
9594: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9595: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9596: echo "local: *; };" >> $output_objdir/$libname.ver~
9597: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9598: fi
9599:
9600: case $cc_basename in
9601: xlf* | bgf* | bgxlf* | mpixlf*)
9602: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9603: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9604: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9605: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9606: if test "x$supports_anon_versioning" = xyes; then
9607: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9608: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9609: echo "local: *; };" >> $output_objdir/$libname.ver~
9610: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9611: fi
9612: ;;
9613: esac
9614: else
9615: ld_shlibs=no
9616: fi
9617: ;;
9618:
9619: netbsd*)
9620: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9621: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9622: wlarc=
9623: else
9624: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9625: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9626: fi
9627: ;;
9628:
9629: solaris*)
9630: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9631: ld_shlibs=no
9632: cat <<_LT_EOF 1>&2
9633:
9634: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9635: *** create shared libraries on Solaris systems. Therefore, libtool
9636: *** is disabling shared libraries support. We urge you to upgrade GNU
9637: *** binutils to release 2.9.1 or newer. Another option is to modify
9638: *** your PATH or compiler configuration so that the native linker is
9639: *** used, and then restart.
9640:
9641: _LT_EOF
9642: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9645: else
9646: ld_shlibs=no
9647: fi
9648: ;;
9649:
9650: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9651: case `$LD -v 2>&1` in
9652: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9653: ld_shlibs=no
9654: cat <<_LT_EOF 1>&2
9655:
9656: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9657: *** reliably create shared libraries on SCO systems. Therefore, libtool
9658: *** is disabling shared libraries support. We urge you to upgrade GNU
9659: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9660: *** your PATH or compiler configuration so that the native linker is
9661: *** used, and then restart.
9662:
9663: _LT_EOF
9664: ;;
9665: *)
9666: # For security reasons, it is highly recommended that you always
9667: # use absolute paths for naming shared libraries, and exclude the
9668: # DT_RUNPATH tag from executables and libraries. But doing so
9669: # requires that you compile everything twice, which is a pain.
9670: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9671: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9672: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9674: else
9675: ld_shlibs=no
9676: fi
9677: ;;
9678: esac
9679: ;;
9680:
9681: sunos4*)
9682: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9683: wlarc=
9684: hardcode_direct=yes
9685: hardcode_shlibpath_var=no
9686: ;;
9687:
9688: *)
9689: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9690: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9692: else
9693: ld_shlibs=no
9694: fi
9695: ;;
9696: esac
9697:
9698: if test "$ld_shlibs" = no; then
9699: runpath_var=
9700: hardcode_libdir_flag_spec=
9701: export_dynamic_flag_spec=
9702: whole_archive_flag_spec=
9703: fi
9704: else
9705: # PORTME fill in a description of your system's linker (not GNU ld)
9706: case $host_os in
9707: aix3*)
9708: allow_undefined_flag=unsupported
9709: always_export_symbols=yes
9710: 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'
9711: # Note: this linker hardcodes the directories in LIBPATH if there
9712: # are no directories specified by -L.
9713: hardcode_minus_L=yes
9714: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9715: # Neither direct hardcoding nor static linking is supported with a
9716: # broken collect2.
9717: hardcode_direct=unsupported
9718: fi
9719: ;;
9720:
9721: aix[4-9]*)
9722: if test "$host_cpu" = ia64; then
9723: # On IA64, the linker does run time linking by default, so we don't
9724: # have to do anything special.
9725: aix_use_runtimelinking=no
9726: exp_sym_flag='-Bexport'
9727: no_entry_flag=""
9728: else
9729: # If we're using GNU nm, then we don't want the "-C" option.
9730: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9731: # Also, AIX nm treats weak defined symbols like other global
9732: # defined symbols, whereas GNU nm marks them as "W".
9733: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9734: 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'
9735: else
9736: 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'
9737: fi
9738: aix_use_runtimelinking=no
9739:
9740: # Test if we are trying to use run time linking or normal
9741: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9742: # need to do runtime linking.
9743: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9744: for ld_flag in $LDFLAGS; do
9745: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9746: aix_use_runtimelinking=yes
9747: break
9748: fi
9749: done
9750: ;;
9751: esac
9752:
9753: exp_sym_flag='-bexport'
9754: no_entry_flag='-bnoentry'
9755: fi
9756:
9757: # When large executables or shared objects are built, AIX ld can
9758: # have problems creating the table of contents. If linking a library
9759: # or program results in "error TOC overflow" add -mminimal-toc to
9760: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9761: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9762:
9763: archive_cmds=''
9764: hardcode_direct=yes
9765: hardcode_direct_absolute=yes
9766: hardcode_libdir_separator=':'
9767: link_all_deplibs=yes
9768: file_list_spec='${wl}-f,'
9769:
9770: if test "$GCC" = yes; then
9771: case $host_os in aix4.[012]|aix4.[012].*)
9772: # We only want to do this on AIX 4.2 and lower, the check
9773: # below for broken collect2 doesn't work under 4.3+
9774: collect2name=`${CC} -print-prog-name=collect2`
9775: if test -f "$collect2name" &&
9776: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9777: then
9778: # We have reworked collect2
9779: :
9780: else
9781: # We have old collect2
9782: hardcode_direct=unsupported
9783: # It fails to find uninstalled libraries when the uninstalled
9784: # path is not listed in the libpath. Setting hardcode_minus_L
9785: # to unsupported forces relinking
9786: hardcode_minus_L=yes
9787: hardcode_libdir_flag_spec='-L$libdir'
9788: hardcode_libdir_separator=
9789: fi
9790: ;;
9791: esac
9792: shared_flag='-shared'
9793: if test "$aix_use_runtimelinking" = yes; then
9794: shared_flag="$shared_flag "'${wl}-G'
9795: fi
9796: else
9797: # not using gcc
9798: if test "$host_cpu" = ia64; then
9799: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9800: # chokes on -Wl,-G. The following line is correct:
9801: shared_flag='-G'
9802: else
9803: if test "$aix_use_runtimelinking" = yes; then
9804: shared_flag='${wl}-G'
9805: else
9806: shared_flag='${wl}-bM:SRE'
9807: fi
9808: fi
9809: fi
9810:
9811: export_dynamic_flag_spec='${wl}-bexpall'
9812: # It seems that -bexpall does not export symbols beginning with
9813: # underscore (_), so it is better to generate a list of symbols to export.
9814: always_export_symbols=yes
9815: if test "$aix_use_runtimelinking" = yes; then
9816: # Warning - without using the other runtime loading flags (-brtl),
9817: # -berok will link without error, but may produce a broken library.
9818: allow_undefined_flag='-berok'
9819: # Determine the default libpath from the value encoded in an
9820: # empty executable.
9821: if test "${lt_cv_aix_libpath+set}" = set; then
9822: aix_libpath=$lt_cv_aix_libpath
9823: else
1.32 moko 9824: if ${lt_cv_aix_libpath_+:} false; then :
9825: $as_echo_n "(cached) " >&6
1.25 moko 9826: else
1.32 moko 9827: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 9828: /* end confdefs.h. */
1.1 parser 9829:
1.11 paf 9830: int
9831: main ()
9832: {
1.1 parser 9833:
1.11 paf 9834: ;
9835: return 0;
9836: }
9837: _ACEOF
1.32 moko 9838: if ac_fn_c_try_link "$LINENO"; then :
1.11 paf 9839:
1.25 moko 9840: lt_aix_libpath_sed='
9841: /Import File Strings/,/^$/ {
9842: /^0/ {
9843: s/^0 *\([^ ]*\) *$/\1/
9844: p
9845: }
9846: }'
9847: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9848: # Check for a 64-bit object if we didn't find anything.
9849: if test -z "$lt_cv_aix_libpath_"; then
9850: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9851: fi
1.11 paf 9852: fi
1.32 moko 9853: rm -f core conftest.err conftest.$ac_objext \
9854: conftest$ac_exeext conftest.$ac_ext
1.25 moko 9855: if test -z "$lt_cv_aix_libpath_"; then
9856: lt_cv_aix_libpath_="/usr/lib:/lib"
9857: fi
1.11 paf 9858:
9859: fi
9860:
1.25 moko 9861: aix_libpath=$lt_cv_aix_libpath_
9862: fi
1.11 paf 9863:
1.25 moko 9864: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9865: 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"
9866: else
9867: if test "$host_cpu" = ia64; then
9868: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9869: allow_undefined_flag="-z nodefs"
9870: 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"
9871: else
9872: # Determine the default libpath from the value encoded in an
9873: # empty executable.
9874: if test "${lt_cv_aix_libpath+set}" = set; then
9875: aix_libpath=$lt_cv_aix_libpath
9876: else
1.32 moko 9877: if ${lt_cv_aix_libpath_+:} false; then :
9878: $as_echo_n "(cached) " >&6
1.11 paf 9879: else
1.32 moko 9880: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 9881: /* end confdefs.h. */
1.25 moko 9882:
1.11 paf 9883: int
9884: main ()
9885: {
1.25 moko 9886:
1.11 paf 9887: ;
9888: return 0;
9889: }
9890: _ACEOF
1.32 moko 9891: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 9892:
9893: lt_aix_libpath_sed='
9894: /Import File Strings/,/^$/ {
9895: /^0/ {
9896: s/^0 *\([^ ]*\) *$/\1/
9897: p
9898: }
9899: }'
9900: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9901: # Check for a 64-bit object if we didn't find anything.
9902: if test -z "$lt_cv_aix_libpath_"; then
9903: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9904: fi
1.11 paf 9905: fi
1.32 moko 9906: rm -f core conftest.err conftest.$ac_objext \
9907: conftest$ac_exeext conftest.$ac_ext
1.25 moko 9908: if test -z "$lt_cv_aix_libpath_"; then
9909: lt_cv_aix_libpath_="/usr/lib:/lib"
9910: fi
9911:
9912: fi
9913:
9914: aix_libpath=$lt_cv_aix_libpath_
1.1 parser 9915: fi
9916:
1.25 moko 9917: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9918: # Warning - without using the other run time loading flags,
9919: # -berok will link without error, but may produce a broken library.
9920: no_undefined_flag=' ${wl}-bernotok'
9921: allow_undefined_flag=' ${wl}-berok'
9922: if test "$with_gnu_ld" = yes; then
9923: # We only use this code for GNU lds that support --whole-archive.
9924: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9925: else
9926: # Exported symbols can be pulled into shared objects from archives
9927: whole_archive_flag_spec='$convenience'
9928: fi
9929: archive_cmds_need_lc=yes
9930: # This is similar to how AIX traditionally builds its shared libraries.
9931: 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'
9932: fi
9933: fi
9934: ;;
1.1 parser 9935:
1.25 moko 9936: amigaos*)
9937: case $host_cpu in
9938: powerpc)
9939: # see comment about AmigaOS4 .so support
9940: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9941: archive_expsym_cmds=''
9942: ;;
9943: m68k)
9944: 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)'
9945: hardcode_libdir_flag_spec='-L$libdir'
9946: hardcode_minus_L=yes
9947: ;;
9948: esac
9949: ;;
1.1 parser 9950:
1.25 moko 9951: bsdi[45]*)
9952: export_dynamic_flag_spec=-rdynamic
9953: ;;
1.1 parser 9954:
1.25 moko 9955: cygwin* | mingw* | pw32* | cegcc*)
9956: # When not using gcc, we currently assume that we are using
9957: # Microsoft Visual C++.
9958: # hardcode_libdir_flag_spec is actually meaningless, as there is
9959: # no search path for DLLs.
9960: case $cc_basename in
9961: cl*)
9962: # Native MSVC
9963: hardcode_libdir_flag_spec=' '
9964: allow_undefined_flag=unsupported
9965: always_export_symbols=yes
9966: file_list_spec='@'
9967: # Tell ltmain to make .lib files, not .a files.
9968: libext=lib
9969: # Tell ltmain to make .dll files, not .so files.
9970: shrext_cmds=".dll"
9971: # FIXME: Setting linknames here is a bad hack.
9972: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9973: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9974: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9975: else
9976: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9977: fi~
9978: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9979: linknames='
9980: # The linker will not automatically build a static lib if we build a DLL.
9981: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9982: enable_shared_with_static_runtimes=yes
9983: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9984: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9985: # Don't use ranlib
9986: old_postinstall_cmds='chmod 644 $oldlib'
9987: postlink_cmds='lt_outputfile="@OUTPUT@"~
9988: lt_tool_outputfile="@TOOL_OUTPUT@"~
9989: case $lt_outputfile in
9990: *.exe|*.EXE) ;;
9991: *)
9992: lt_outputfile="$lt_outputfile.exe"
9993: lt_tool_outputfile="$lt_tool_outputfile.exe"
9994: ;;
9995: esac~
9996: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9997: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9998: $RM "$lt_outputfile.manifest";
9999: fi'
10000: ;;
10001: *)
10002: # Assume MSVC wrapper
10003: hardcode_libdir_flag_spec=' '
10004: allow_undefined_flag=unsupported
10005: # Tell ltmain to make .lib files, not .a files.
10006: libext=lib
10007: # Tell ltmain to make .dll files, not .so files.
10008: shrext_cmds=".dll"
10009: # FIXME: Setting linknames here is a bad hack.
10010: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10011: # The linker will automatically build a .lib file if we build a DLL.
10012: old_archive_from_new_cmds='true'
10013: # FIXME: Should let the user specify the lib program.
10014: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10015: enable_shared_with_static_runtimes=yes
10016: ;;
10017: esac
10018: ;;
1.1 parser 10019:
1.25 moko 10020: darwin* | rhapsody*)
1.1 parser 10021:
1.11 paf 10022:
1.25 moko 10023: archive_cmds_need_lc=no
10024: hardcode_direct=no
10025: hardcode_automatic=yes
10026: hardcode_shlibpath_var=unsupported
10027: if test "$lt_cv_ld_force_load" = "yes"; then
10028: 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.11 paf 10029:
1.1 parser 10030: else
1.25 moko 10031: whole_archive_flag_spec=''
1.1 parser 10032: fi
1.25 moko 10033: link_all_deplibs=yes
10034: allow_undefined_flag="$_lt_dar_allow_undefined"
10035: case $cc_basename in
10036: ifort*) _lt_dar_can_shared=yes ;;
10037: *) _lt_dar_can_shared=$GCC ;;
10038: esac
10039: if test "$_lt_dar_can_shared" = "yes"; then
10040: output_verbose_link_cmd=func_echo_all
10041: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10042: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10043: 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}"
10044: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.1 parser 10045:
1.25 moko 10046: else
10047: ld_shlibs=no
10048: fi
1.1 parser 10049:
1.25 moko 10050: ;;
1.1 parser 10051:
1.25 moko 10052: dgux*)
10053: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054: hardcode_libdir_flag_spec='-L$libdir'
10055: hardcode_shlibpath_var=no
10056: ;;
1.11 paf 10057:
1.25 moko 10058: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10059: # support. Future versions do this automatically, but an explicit c++rt0.o
10060: # does not break anything, and helps significantly (at the cost of a little
10061: # extra space).
10062: freebsd2.2*)
10063: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10064: hardcode_libdir_flag_spec='-R$libdir'
10065: hardcode_direct=yes
10066: hardcode_shlibpath_var=no
10067: ;;
1.11 paf 10068:
1.25 moko 10069: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10070: freebsd2.*)
10071: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10072: hardcode_direct=yes
10073: hardcode_minus_L=yes
10074: hardcode_shlibpath_var=no
10075: ;;
1.11 paf 10076:
1.25 moko 10077: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10078: freebsd* | dragonfly*)
10079: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10080: hardcode_libdir_flag_spec='-R$libdir'
10081: hardcode_direct=yes
10082: hardcode_shlibpath_var=no
10083: ;;
1.1 parser 10084:
1.25 moko 10085: hpux9*)
10086: if test "$GCC" = yes; then
10087: 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'
10088: else
10089: 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'
10090: fi
10091: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10092: hardcode_libdir_separator=:
10093: hardcode_direct=yes
10094:
10095: # hardcode_minus_L: Not really in the search PATH,
10096: # but as the default location of the library.
10097: hardcode_minus_L=yes
10098: export_dynamic_flag_spec='${wl}-E'
10099: ;;
1.1 parser 10100:
1.25 moko 10101: hpux10*)
10102: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10103: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10104: else
10105: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10106: fi
10107: if test "$with_gnu_ld" = no; then
10108: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10109: hardcode_libdir_separator=:
10110: hardcode_direct=yes
10111: hardcode_direct_absolute=yes
10112: export_dynamic_flag_spec='${wl}-E'
10113: # hardcode_minus_L: Not really in the search PATH,
10114: # but as the default location of the library.
10115: hardcode_minus_L=yes
10116: fi
10117: ;;
1.11 paf 10118:
1.25 moko 10119: hpux11*)
10120: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10121: case $host_cpu in
10122: hppa*64*)
10123: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10124: ;;
10125: ia64*)
10126: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10127: ;;
10128: *)
10129: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10130: ;;
10131: esac
10132: else
10133: case $host_cpu in
10134: hppa*64*)
10135: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10136: ;;
10137: ia64*)
10138: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10139: ;;
10140: *)
1.11 paf 10141:
1.25 moko 10142: # Older versions of the 11.00 compiler do not understand -b yet
10143: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.32 moko 10144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10145: $as_echo_n "checking if $CC understands -b... " >&6; }
10146: if ${lt_cv_prog_compiler__b+:} false; then :
10147: $as_echo_n "(cached) " >&6
1.25 moko 10148: else
10149: lt_cv_prog_compiler__b=no
10150: save_LDFLAGS="$LDFLAGS"
10151: LDFLAGS="$LDFLAGS -b"
10152: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10153: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10154: # The linker can only warn and ignore the option if not recognized
10155: # So say no if there are warnings
10156: if test -s conftest.err; then
10157: # Append any errors to the config.log.
10158: cat conftest.err 1>&5
10159: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10160: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10161: if diff conftest.exp conftest.er2 >/dev/null; then
10162: lt_cv_prog_compiler__b=yes
10163: fi
10164: else
10165: lt_cv_prog_compiler__b=yes
10166: fi
10167: fi
10168: $RM -r conftest*
10169: LDFLAGS="$save_LDFLAGS"
1.11 paf 10170:
10171: fi
1.32 moko 10172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10173: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.11 paf 10174:
1.25 moko 10175: if test x"$lt_cv_prog_compiler__b" = xyes; then
10176: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.11 paf 10177: else
1.25 moko 10178: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.11 paf 10179: fi
10180:
1.25 moko 10181: ;;
10182: esac
10183: fi
10184: if test "$with_gnu_ld" = no; then
10185: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10186: hardcode_libdir_separator=:
10187:
10188: case $host_cpu in
10189: hppa*64*|ia64*)
10190: hardcode_direct=no
10191: hardcode_shlibpath_var=no
10192: ;;
10193: *)
10194: hardcode_direct=yes
10195: hardcode_direct_absolute=yes
10196: export_dynamic_flag_spec='${wl}-E'
1.11 paf 10197:
1.25 moko 10198: # hardcode_minus_L: Not really in the search PATH,
10199: # but as the default location of the library.
10200: hardcode_minus_L=yes
10201: ;;
10202: esac
10203: fi
10204: ;;
1.11 paf 10205:
1.25 moko 10206: irix5* | irix6* | nonstopux*)
10207: if test "$GCC" = yes; then
10208: 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'
10209: # Try to use the -exported_symbol ld option, if it does not
10210: # work, assume that -exports_file does not work either and
10211: # implicitly export all symbols.
10212: # This should be the same for all languages, so no per-tag cache variable.
1.32 moko 10213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10214: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10215: if ${lt_cv_irix_exported_symbol+:} false; then :
10216: $as_echo_n "(cached) " >&6
1.25 moko 10217: else
10218: save_LDFLAGS="$LDFLAGS"
10219: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.32 moko 10220: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 10221: /* end confdefs.h. */
10222: int foo (void) { return 0; }
10223: _ACEOF
1.32 moko 10224: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 10225: lt_cv_irix_exported_symbol=yes
10226: else
1.32 moko 10227: lt_cv_irix_exported_symbol=no
1.11 paf 10228: fi
1.32 moko 10229: rm -f core conftest.err conftest.$ac_objext \
10230: conftest$ac_exeext conftest.$ac_ext
1.25 moko 10231: LDFLAGS="$save_LDFLAGS"
1.11 paf 10232: fi
1.32 moko 10233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10234: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.25 moko 10235: if test "$lt_cv_irix_exported_symbol" = yes; then
10236: 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'
10237: fi
10238: else
10239: 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'
10240: 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'
10241: fi
10242: archive_cmds_need_lc='no'
10243: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10244: hardcode_libdir_separator=:
10245: inherit_rpath=yes
10246: link_all_deplibs=yes
10247: ;;
1.11 paf 10248:
1.25 moko 10249: netbsd*)
10250: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10251: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10252: else
10253: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10254: fi
10255: hardcode_libdir_flag_spec='-R$libdir'
10256: hardcode_direct=yes
10257: hardcode_shlibpath_var=no
10258: ;;
1.11 paf 10259:
1.25 moko 10260: newsos6)
10261: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10262: hardcode_direct=yes
10263: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10264: hardcode_libdir_separator=:
10265: hardcode_shlibpath_var=no
10266: ;;
1.11 paf 10267:
1.25 moko 10268: *nto* | *qnx*)
10269: ;;
1.11 paf 10270:
1.25 moko 10271: openbsd*)
10272: if test -f /usr/libexec/ld.so; then
10273: hardcode_direct=yes
10274: hardcode_shlibpath_var=no
10275: hardcode_direct_absolute=yes
10276: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10277: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10278: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10279: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10280: export_dynamic_flag_spec='${wl}-E'
10281: else
10282: case $host_os in
10283: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10284: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10285: hardcode_libdir_flag_spec='-R$libdir'
10286: ;;
10287: *)
10288: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10289: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10290: ;;
10291: esac
10292: fi
10293: else
10294: ld_shlibs=no
10295: fi
10296: ;;
10297:
10298: os2*)
10299: hardcode_libdir_flag_spec='-L$libdir'
10300: hardcode_minus_L=yes
10301: allow_undefined_flag=unsupported
10302: 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'
10303: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10304: ;;
10305:
10306: osf3*)
10307: if test "$GCC" = yes; then
10308: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10309: 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'
10310: else
10311: allow_undefined_flag=' -expect_unresolved \*'
10312: 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'
10313: fi
10314: archive_cmds_need_lc='no'
10315: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10316: hardcode_libdir_separator=:
10317: ;;
10318:
10319: osf4* | osf5*) # as osf3* with the addition of -msym flag
10320: if test "$GCC" = yes; then
10321: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10322: 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'
10323: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10324: else
10325: allow_undefined_flag=' -expect_unresolved \*'
10326: 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'
10327: 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~
10328: $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'
10329:
10330: # Both c and cxx compiler support -rpath directly
10331: hardcode_libdir_flag_spec='-rpath $libdir'
10332: fi
10333: archive_cmds_need_lc='no'
10334: hardcode_libdir_separator=:
10335: ;;
10336:
10337: solaris*)
10338: no_undefined_flag=' -z defs'
10339: if test "$GCC" = yes; then
10340: wlarc='${wl}'
10341: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10342: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10343: $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'
10344: else
10345: case `$CC -V 2>&1` in
10346: *"Compilers 5.0"*)
10347: wlarc=''
10348: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10350: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10351: ;;
10352: *)
10353: wlarc='${wl}'
10354: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10355: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10356: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10357: ;;
10358: esac
10359: fi
10360: hardcode_libdir_flag_spec='-R$libdir'
10361: hardcode_shlibpath_var=no
10362: case $host_os in
10363: solaris2.[0-5] | solaris2.[0-5].*) ;;
10364: *)
10365: # The compiler driver will combine and reorder linker options,
10366: # but understands `-z linker_flag'. GCC discards it without `$wl',
10367: # but is careful enough not to reorder.
10368: # Supported since Solaris 2.6 (maybe 2.5.1?)
10369: if test "$GCC" = yes; then
10370: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10371: else
10372: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10373: fi
10374: ;;
10375: esac
10376: link_all_deplibs=yes
10377: ;;
10378:
10379: sunos4*)
10380: if test "x$host_vendor" = xsequent; then
10381: # Use $CC to link under sequent, because it throws in some extra .o
10382: # files that make .init and .fini sections work.
10383: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10384: else
10385: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10386: fi
10387: hardcode_libdir_flag_spec='-L$libdir'
10388: hardcode_direct=yes
10389: hardcode_minus_L=yes
10390: hardcode_shlibpath_var=no
10391: ;;
10392:
10393: sysv4)
10394: case $host_vendor in
10395: sni)
10396: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10397: hardcode_direct=yes # is this really true???
10398: ;;
10399: siemens)
10400: ## LD is ld it makes a PLAMLIB
10401: ## CC just makes a GrossModule.
10402: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10403: reload_cmds='$CC -r -o $output$reload_objs'
10404: hardcode_direct=no
10405: ;;
10406: motorola)
10407: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10408: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10409: ;;
10410: esac
10411: runpath_var='LD_RUN_PATH'
10412: hardcode_shlibpath_var=no
10413: ;;
10414:
10415: sysv4.3*)
10416: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10417: hardcode_shlibpath_var=no
10418: export_dynamic_flag_spec='-Bexport'
10419: ;;
10420:
10421: sysv4*MP*)
10422: if test -d /usr/nec; then
10423: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424: hardcode_shlibpath_var=no
10425: runpath_var=LD_RUN_PATH
10426: hardcode_runpath_var=yes
10427: ld_shlibs=yes
10428: fi
10429: ;;
10430:
10431: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10432: no_undefined_flag='${wl}-z,text'
10433: archive_cmds_need_lc=no
10434: hardcode_shlibpath_var=no
10435: runpath_var='LD_RUN_PATH'
10436:
10437: if test "$GCC" = yes; then
10438: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10439: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10440: else
10441: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10442: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443: fi
10444: ;;
10445:
10446: sysv5* | sco3.2v5* | sco5v6*)
10447: # Note: We can NOT use -z defs as we might desire, because we do not
10448: # link with -lc, and that would cause any symbols used from libc to
10449: # always be unresolved, which means just about no library would
10450: # ever link correctly. If we're not using GNU ld we use -z text
10451: # though, which does catch some bad symbols but isn't as heavy-handed
10452: # as -z defs.
10453: no_undefined_flag='${wl}-z,text'
10454: allow_undefined_flag='${wl}-z,nodefs'
10455: archive_cmds_need_lc=no
10456: hardcode_shlibpath_var=no
10457: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10458: hardcode_libdir_separator=':'
10459: link_all_deplibs=yes
10460: export_dynamic_flag_spec='${wl}-Bexport'
10461: runpath_var='LD_RUN_PATH'
10462:
10463: if test "$GCC" = yes; then
10464: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10465: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10466: else
10467: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10468: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10469: fi
10470: ;;
10471:
10472: uts4*)
10473: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10474: hardcode_libdir_flag_spec='-L$libdir'
10475: hardcode_shlibpath_var=no
10476: ;;
10477:
10478: *)
10479: ld_shlibs=no
10480: ;;
10481: esac
10482:
10483: if test x$host_vendor = xsni; then
10484: case $host in
10485: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10486: export_dynamic_flag_spec='${wl}-Blargedynsym'
10487: ;;
10488: esac
10489: fi
10490: fi
10491:
1.32 moko 10492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10493: $as_echo "$ld_shlibs" >&6; }
1.25 moko 10494: test "$ld_shlibs" = no && can_build_shared=no
10495:
10496: with_gnu_ld=$with_gnu_ld
10497:
10498:
10499:
10500:
10501:
10502:
10503:
10504:
10505:
10506:
10507:
10508:
10509:
10510:
10511:
10512: #
10513: # Do we need to explicitly link libc?
10514: #
10515: case "x$archive_cmds_need_lc" in
10516: x|xyes)
10517: # Assume -lc should be added
10518: archive_cmds_need_lc=yes
10519:
10520: if test "$enable_shared" = yes && test "$GCC" = yes; then
10521: case $archive_cmds in
10522: *'~'*)
10523: # FIXME: we may have to deal with multi-command sequences.
10524: ;;
10525: '$CC '*)
10526: # Test whether the compiler implicitly links with -lc since on some
10527: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10528: # to ld, don't add -lc before -lgcc.
1.32 moko 10529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10530: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10531: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10532: $as_echo_n "(cached) " >&6
1.25 moko 10533: else
10534: $RM conftest*
10535: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10536:
1.32 moko 10537: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 10538: (eval $ac_compile) 2>&5
10539: ac_status=$?
1.32 moko 10540: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10541: test $ac_status = 0; } 2>conftest.err; then
1.25 moko 10542: soname=conftest
10543: lib=conftest
10544: libobjs=conftest.$ac_objext
10545: deplibs=
10546: wl=$lt_prog_compiler_wl
10547: pic_flag=$lt_prog_compiler_pic
10548: compiler_flags=-v
10549: linker_flags=-v
10550: verstring=
10551: output_objdir=.
10552: libname=conftest
10553: lt_save_allow_undefined_flag=$allow_undefined_flag
10554: allow_undefined_flag=
1.32 moko 10555: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.25 moko 10556: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10557: ac_status=$?
1.32 moko 10558: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10559: test $ac_status = 0; }
1.25 moko 10560: then
10561: lt_cv_archive_cmds_need_lc=no
10562: else
10563: lt_cv_archive_cmds_need_lc=yes
10564: fi
10565: allow_undefined_flag=$lt_save_allow_undefined_flag
10566: else
10567: cat conftest.err 1>&5
10568: fi
10569: $RM conftest*
10570:
10571: fi
1.32 moko 10572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10573: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.25 moko 10574: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10575: ;;
10576: esac
10577: fi
10578: ;;
10579: esac
1.11 paf 10580:
10581:
10582:
10583:
10584:
10585:
10586:
10587:
10588:
10589:
10590:
10591:
10592:
10593:
10594:
10595:
10596:
10597:
10598:
10599:
10600:
10601:
10602:
10603:
10604:
10605:
10606:
10607:
10608:
10609:
10610:
10611:
10612:
10613:
10614:
10615:
10616:
10617:
10618:
10619:
1.1 parser 10620:
1.11 paf 10621:
10622:
10623:
10624:
10625:
1.1 parser 10626:
1.11 paf 10627:
10628:
10629:
10630:
1.1 parser 10631:
1.11 paf 10632:
10633:
10634:
10635:
1.1 parser 10636:
10637:
10638:
10639:
10640:
10641:
10642:
1.11 paf 10643:
10644:
10645:
1.18 paf 10646:
1.11 paf 10647:
10648:
1.1 parser 10649:
1.11 paf 10650:
10651:
10652:
1.1 parser 10653:
10654:
10655:
10656:
1.11 paf 10657:
10658:
1.1 parser 10659:
1.11 paf 10660:
10661:
10662:
1.25 moko 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:
1.32 moko 10732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10733: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.25 moko 10734:
10735: if test "$GCC" = yes; then
10736: case $host_os in
10737: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10738: *) lt_awk_arg="/^libraries:/" ;;
10739: esac
10740: case $host_os in
10741: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10742: *) lt_sed_strip_eq="s,=/,/,g" ;;
10743: esac
10744: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10745: case $lt_search_path_spec in
10746: *\;*)
10747: # if the path contains ";" then we assume it to be the separator
10748: # otherwise default to the standard path separator (i.e. ":") - it is
10749: # assumed that no part of a normal pathname contains ";" but that should
10750: # okay in the real world where ";" in dirpaths is itself problematic.
10751: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10752: ;;
10753: *)
10754: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10755: ;;
10756: esac
10757: # Ok, now we have the path, separated by spaces, we can step through it
10758: # and add multilib dir if necessary.
10759: lt_tmp_lt_search_path_spec=
10760: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10761: for lt_sys_path in $lt_search_path_spec; do
10762: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10763: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10764: else
10765: test -d "$lt_sys_path" && \
10766: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10767: fi
10768: done
10769: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10770: BEGIN {RS=" "; FS="/|\n";} {
10771: lt_foo="";
10772: lt_count=0;
10773: for (lt_i = NF; lt_i > 0; lt_i--) {
10774: if ($lt_i != "" && $lt_i != ".") {
10775: if ($lt_i == "..") {
10776: lt_count++;
10777: } else {
10778: if (lt_count == 0) {
10779: lt_foo="/" $lt_i lt_foo;
10780: } else {
10781: lt_count--;
10782: }
10783: }
10784: }
10785: }
10786: if (lt_foo != "") { lt_freq[lt_foo]++; }
10787: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10788: }'`
10789: # AWK program above erroneously prepends '/' to C:/dos/paths
10790: # for these hosts.
10791: case $host_os in
10792: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10793: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10794: esac
10795: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10796: else
10797: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10798: fi
10799: library_names_spec=
10800: libname_spec='lib$name'
10801: soname_spec=
10802: shrext_cmds=".so"
10803: postinstall_cmds=
10804: postuninstall_cmds=
10805: finish_cmds=
10806: finish_eval=
10807: shlibpath_var=
10808: shlibpath_overrides_runpath=unknown
10809: version_type=none
10810: dynamic_linker="$host_os ld.so"
10811: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10812: need_lib_prefix=unknown
10813: hardcode_into_libs=no
10814:
10815: # when you set need_version to no, make sure it does not cause -set_version
10816: # flags to be left without arguments
10817: need_version=unknown
10818:
10819: case $host_os in
10820: aix3*)
10821: version_type=linux # correct to gnu/linux during the next big refactor
10822: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10823: shlibpath_var=LIBPATH
10824:
10825: # AIX 3 has no versioning support, so we append a major version to the name.
10826: soname_spec='${libname}${release}${shared_ext}$major'
10827: ;;
10828:
10829: aix[4-9]*)
10830: version_type=linux # correct to gnu/linux during the next big refactor
10831: need_lib_prefix=no
10832: need_version=no
10833: hardcode_into_libs=yes
10834: if test "$host_cpu" = ia64; then
10835: # AIX 5 supports IA64
10836: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10837: shlibpath_var=LD_LIBRARY_PATH
10838: else
10839: # With GCC up to 2.95.x, collect2 would create an import file
10840: # for dependence libraries. The import file would start with
10841: # the line `#! .'. This would cause the generated library to
10842: # depend on `.', always an invalid library. This was fixed in
10843: # development snapshots of GCC prior to 3.0.
10844: case $host_os in
10845: aix4 | aix4.[01] | aix4.[01].*)
10846: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10847: echo ' yes '
10848: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10849: :
10850: else
10851: can_build_shared=no
10852: fi
10853: ;;
10854: esac
10855: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10856: # soname into executable. Probably we can add versioning support to
10857: # collect2, so additional links can be useful in future.
10858: if test "$aix_use_runtimelinking" = yes; then
10859: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10860: # instead of lib<name>.a to let people know that these are not
10861: # typical AIX shared libraries.
10862: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863: else
10864: # We preserve .a as extension for shared libraries through AIX4.2
10865: # and later when we are not doing run time linking.
10866: library_names_spec='${libname}${release}.a $libname.a'
10867: soname_spec='${libname}${release}${shared_ext}$major'
10868: fi
10869: shlibpath_var=LIBPATH
10870: fi
10871: ;;
10872:
10873: amigaos*)
10874: case $host_cpu in
10875: powerpc)
10876: # Since July 2007 AmigaOS4 officially supports .so libraries.
10877: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10878: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879: ;;
10880: m68k)
10881: library_names_spec='$libname.ixlibrary $libname.a'
10882: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10883: 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'
10884: ;;
10885: esac
10886: ;;
10887:
10888: beos*)
10889: library_names_spec='${libname}${shared_ext}'
10890: dynamic_linker="$host_os ld.so"
10891: shlibpath_var=LIBRARY_PATH
10892: ;;
10893:
10894: bsdi[45]*)
10895: version_type=linux # correct to gnu/linux during the next big refactor
10896: need_version=no
10897: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898: soname_spec='${libname}${release}${shared_ext}$major'
10899: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10900: shlibpath_var=LD_LIBRARY_PATH
10901: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10902: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10903: # the default ld.so.conf also contains /usr/contrib/lib and
10904: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10905: # libtool to hard-code these into programs
10906: ;;
10907:
10908: cygwin* | mingw* | pw32* | cegcc*)
10909: version_type=windows
10910: shrext_cmds=".dll"
10911: need_version=no
10912: need_lib_prefix=no
10913:
10914: case $GCC,$cc_basename in
10915: yes,*)
10916: # gcc
10917: library_names_spec='$libname.dll.a'
10918: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10919: postinstall_cmds='base_file=`basename \${file}`~
10920: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10921: dldir=$destdir/`dirname \$dlpath`~
10922: test -d \$dldir || mkdir -p \$dldir~
10923: $install_prog $dir/$dlname \$dldir/$dlname~
10924: chmod a+x \$dldir/$dlname~
10925: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10926: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10927: fi'
10928: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10929: dlpath=$dir/\$dldll~
10930: $RM \$dlpath'
10931: shlibpath_overrides_runpath=yes
10932:
10933: case $host_os in
10934: cygwin*)
10935: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10936: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10937:
10938: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10939: ;;
10940: mingw* | cegcc*)
10941: # MinGW DLLs use traditional 'lib' prefix
10942: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10943: ;;
10944: pw32*)
10945: # pw32 DLLs use 'pw' prefix rather than 'lib'
10946: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10947: ;;
10948: esac
10949: dynamic_linker='Win32 ld.exe'
10950: ;;
10951:
10952: *,cl*)
10953: # Native MSVC
10954: libname_spec='$name'
10955: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10956: library_names_spec='${libname}.dll.lib'
10957:
10958: case $build_os in
10959: mingw*)
10960: sys_lib_search_path_spec=
10961: lt_save_ifs=$IFS
10962: IFS=';'
10963: for lt_path in $LIB
10964: do
10965: IFS=$lt_save_ifs
10966: # Let DOS variable expansion print the short 8.3 style file name.
10967: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10968: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10969: done
10970: IFS=$lt_save_ifs
10971: # Convert to MSYS style.
10972: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10973: ;;
10974: cygwin*)
10975: # Convert to unix form, then to dos form, then back to unix form
10976: # but this time dos style (no spaces!) so that the unix form looks
10977: # like /cygdrive/c/PROGRA~1:/cygdr...
10978: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10979: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10980: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10981: ;;
10982: *)
10983: sys_lib_search_path_spec="$LIB"
10984: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10985: # It is most probably a Windows format PATH.
10986: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10987: else
10988: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10989: fi
10990: # FIXME: find the short name or the path components, as spaces are
10991: # common. (e.g. "Program Files" -> "PROGRA~1")
10992: ;;
10993: esac
10994:
10995: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10996: postinstall_cmds='base_file=`basename \${file}`~
10997: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10998: dldir=$destdir/`dirname \$dlpath`~
10999: test -d \$dldir || mkdir -p \$dldir~
11000: $install_prog $dir/$dlname \$dldir/$dlname'
11001: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11002: dlpath=$dir/\$dldll~
11003: $RM \$dlpath'
11004: shlibpath_overrides_runpath=yes
11005: dynamic_linker='Win32 link.exe'
11006: ;;
11007:
11008: *)
11009: # Assume MSVC wrapper
11010: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11011: dynamic_linker='Win32 ld.exe'
11012: ;;
11013: esac
11014: # FIXME: first we should search . and the directory the executable is in
11015: shlibpath_var=PATH
11016: ;;
11017:
11018: darwin* | rhapsody*)
11019: dynamic_linker="$host_os dyld"
11020: version_type=darwin
11021: need_lib_prefix=no
11022: need_version=no
11023: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11024: soname_spec='${libname}${release}${major}$shared_ext'
11025: shlibpath_overrides_runpath=yes
11026: shlibpath_var=DYLD_LIBRARY_PATH
11027: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11028:
11029: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11030: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11031: ;;
11032:
11033: dgux*)
11034: version_type=linux # correct to gnu/linux during the next big refactor
11035: need_lib_prefix=no
11036: need_version=no
11037: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11038: soname_spec='${libname}${release}${shared_ext}$major'
11039: shlibpath_var=LD_LIBRARY_PATH
11040: ;;
11041:
11042: freebsd* | dragonfly*)
11043: # DragonFly does not have aout. When/if they implement a new
11044: # versioning mechanism, adjust this.
11045: if test -x /usr/bin/objformat; then
11046: objformat=`/usr/bin/objformat`
1.11 paf 11047: else
1.25 moko 11048: case $host_os in
11049: freebsd[23].*) objformat=aout ;;
11050: *) objformat=elf ;;
11051: esac
1.11 paf 11052: fi
1.25 moko 11053: version_type=freebsd-$objformat
11054: case $version_type in
11055: freebsd-elf*)
11056: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11057: need_version=no
11058: need_lib_prefix=no
11059: ;;
11060: freebsd-*)
11061: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11062: need_version=yes
11063: ;;
11064: esac
11065: shlibpath_var=LD_LIBRARY_PATH
11066: case $host_os in
11067: freebsd2.*)
11068: shlibpath_overrides_runpath=yes
11069: ;;
11070: freebsd3.[01]* | freebsdelf3.[01]*)
11071: shlibpath_overrides_runpath=yes
11072: hardcode_into_libs=yes
11073: ;;
11074: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11075: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11076: shlibpath_overrides_runpath=no
11077: hardcode_into_libs=yes
11078: ;;
11079: *) # from 4.6 on, and DragonFly
11080: shlibpath_overrides_runpath=yes
11081: hardcode_into_libs=yes
11082: ;;
11083: esac
11084: ;;
11085:
11086: gnu*)
11087: version_type=linux # correct to gnu/linux during the next big refactor
11088: need_lib_prefix=no
11089: need_version=no
11090: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11091: soname_spec='${libname}${release}${shared_ext}$major'
11092: shlibpath_var=LD_LIBRARY_PATH
11093: shlibpath_overrides_runpath=no
11094: hardcode_into_libs=yes
11095: ;;
11096:
11097: haiku*)
11098: version_type=linux # correct to gnu/linux during the next big refactor
11099: need_lib_prefix=no
11100: need_version=no
11101: dynamic_linker="$host_os runtime_loader"
11102: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11103: soname_spec='${libname}${release}${shared_ext}$major'
11104: shlibpath_var=LIBRARY_PATH
11105: shlibpath_overrides_runpath=yes
11106: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11107: hardcode_into_libs=yes
11108: ;;
11109:
11110: hpux9* | hpux10* | hpux11*)
11111: # Give a soname corresponding to the major version so that dld.sl refuses to
11112: # link against other versions.
11113: version_type=sunos
11114: need_lib_prefix=no
11115: need_version=no
11116: case $host_cpu in
11117: ia64*)
11118: shrext_cmds='.so'
11119: hardcode_into_libs=yes
11120: dynamic_linker="$host_os dld.so"
11121: shlibpath_var=LD_LIBRARY_PATH
11122: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11123: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124: soname_spec='${libname}${release}${shared_ext}$major'
11125: if test "X$HPUX_IA64_MODE" = X32; then
11126: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.11 paf 11127: else
1.25 moko 11128: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11129: fi
11130: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11131: ;;
11132: hppa*64*)
11133: shrext_cmds='.sl'
11134: hardcode_into_libs=yes
11135: dynamic_linker="$host_os dld.sl"
11136: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11137: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11138: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139: soname_spec='${libname}${release}${shared_ext}$major'
11140: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11141: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11142: ;;
11143: *)
11144: shrext_cmds='.sl'
11145: dynamic_linker="$host_os dld.sl"
11146: shlibpath_var=SHLIB_PATH
11147: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11148: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149: soname_spec='${libname}${release}${shared_ext}$major'
11150: ;;
11151: esac
11152: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11153: postinstall_cmds='chmod 555 $lib'
11154: # or fails outright, so override atomically:
11155: install_override_mode=555
11156: ;;
11157:
11158: interix[3-9]*)
11159: version_type=linux # correct to gnu/linux during the next big refactor
11160: need_lib_prefix=no
11161: need_version=no
11162: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11163: soname_spec='${libname}${release}${shared_ext}$major'
11164: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11165: shlibpath_var=LD_LIBRARY_PATH
11166: shlibpath_overrides_runpath=no
11167: hardcode_into_libs=yes
11168: ;;
11169:
11170: irix5* | irix6* | nonstopux*)
11171: case $host_os in
11172: nonstopux*) version_type=nonstopux ;;
11173: *)
11174: if test "$lt_cv_prog_gnu_ld" = yes; then
11175: version_type=linux # correct to gnu/linux during the next big refactor
11176: else
11177: version_type=irix
11178: fi ;;
11179: esac
11180: need_lib_prefix=no
11181: need_version=no
11182: soname_spec='${libname}${release}${shared_ext}$major'
11183: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11184: case $host_os in
11185: irix5* | nonstopux*)
11186: libsuff= shlibsuff=
11187: ;;
11188: *)
11189: case $LD in # libtool.m4 will add one of these switches to LD
11190: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11191: libsuff= shlibsuff= libmagic=32-bit;;
11192: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11193: libsuff=32 shlibsuff=N32 libmagic=N32;;
11194: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11195: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11196: *) libsuff= shlibsuff= libmagic=never-match;;
11197: esac
11198: ;;
11199: esac
11200: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11201: shlibpath_overrides_runpath=no
11202: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11203: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11204: hardcode_into_libs=yes
11205: ;;
11206:
11207: # No shared lib support for Linux oldld, aout, or coff.
11208: linux*oldld* | linux*aout* | linux*coff*)
11209: dynamic_linker=no
11210: ;;
11211:
11212: # This must be glibc/ELF.
11213: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11214: version_type=linux # correct to gnu/linux during the next big refactor
11215: need_lib_prefix=no
11216: need_version=no
11217: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218: soname_spec='${libname}${release}${shared_ext}$major'
11219: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11220: shlibpath_var=LD_LIBRARY_PATH
11221: shlibpath_overrides_runpath=no
11222:
11223: # Some binutils ld are patched to set DT_RUNPATH
1.32 moko 11224: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11225: $as_echo_n "(cached) " >&6
1.25 moko 11226: else
11227: lt_cv_shlibpath_overrides_runpath=no
11228: save_LDFLAGS=$LDFLAGS
11229: save_libdir=$libdir
11230: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11231: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.32 moko 11232: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11233: /* end confdefs.h. */
11234:
11235: int
11236: main ()
11237: {
11238:
11239: ;
11240: return 0;
11241: }
11242: _ACEOF
1.32 moko 11243: if ac_fn_c_try_link "$LINENO"; then :
11244: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.25 moko 11245: lt_cv_shlibpath_overrides_runpath=yes
11246: fi
11247: fi
1.32 moko 11248: rm -f core conftest.err conftest.$ac_objext \
11249: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11250: LDFLAGS=$save_LDFLAGS
11251: libdir=$save_libdir
11252:
11253: fi
11254:
11255: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11256:
11257: # This implies no fast_install, which is unacceptable.
11258: # Some rework will be needed to allow for fast_install
11259: # before this can be enabled.
11260: hardcode_into_libs=yes
11261:
11262: # Append ld.so.conf contents to the search path
11263: if test -f /etc/ld.so.conf; then
11264: 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' ' '`
11265: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11266: fi
11267:
11268: # We used to test for /lib/ld.so.1 and disable shared libraries on
11269: # powerpc, because MkLinux only supported shared libraries with the
11270: # GNU dynamic linker. Since this was broken with cross compilers,
11271: # most powerpc-linux boxes support dynamic linking these days and
11272: # people can always --disable-shared, the test was removed, and we
11273: # assume the GNU/Linux dynamic linker is in use.
11274: dynamic_linker='GNU/Linux ld.so'
11275: ;;
11276:
11277: netbsd*)
11278: version_type=sunos
11279: need_lib_prefix=no
11280: need_version=no
11281: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11282: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11283: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11284: dynamic_linker='NetBSD (a.out) ld.so'
11285: else
11286: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11287: soname_spec='${libname}${release}${shared_ext}$major'
11288: dynamic_linker='NetBSD ld.elf_so'
11289: fi
11290: shlibpath_var=LD_LIBRARY_PATH
11291: shlibpath_overrides_runpath=yes
11292: hardcode_into_libs=yes
11293: ;;
11294:
11295: newsos6)
11296: version_type=linux # correct to gnu/linux during the next big refactor
11297: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298: shlibpath_var=LD_LIBRARY_PATH
11299: shlibpath_overrides_runpath=yes
11300: ;;
11301:
11302: *nto* | *qnx*)
11303: version_type=qnx
11304: need_lib_prefix=no
11305: need_version=no
11306: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307: soname_spec='${libname}${release}${shared_ext}$major'
11308: shlibpath_var=LD_LIBRARY_PATH
11309: shlibpath_overrides_runpath=no
11310: hardcode_into_libs=yes
11311: dynamic_linker='ldqnx.so'
11312: ;;
11313:
11314: openbsd*)
11315: version_type=sunos
11316: sys_lib_dlsearch_path_spec="/usr/lib"
11317: need_lib_prefix=no
11318: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11319: case $host_os in
11320: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11321: *) need_version=no ;;
11322: esac
11323: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11324: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11325: shlibpath_var=LD_LIBRARY_PATH
11326: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11327: case $host_os in
11328: openbsd2.[89] | openbsd2.[89].*)
11329: shlibpath_overrides_runpath=no
11330: ;;
11331: *)
11332: shlibpath_overrides_runpath=yes
11333: ;;
11334: esac
11335: else
11336: shlibpath_overrides_runpath=yes
11337: fi
11338: ;;
11339:
11340: os2*)
11341: libname_spec='$name'
11342: shrext_cmds=".dll"
11343: need_lib_prefix=no
11344: library_names_spec='$libname${shared_ext} $libname.a'
11345: dynamic_linker='OS/2 ld.exe'
11346: shlibpath_var=LIBPATH
11347: ;;
11348:
11349: osf3* | osf4* | osf5*)
11350: version_type=osf
11351: need_lib_prefix=no
11352: need_version=no
11353: soname_spec='${libname}${release}${shared_ext}$major'
11354: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355: shlibpath_var=LD_LIBRARY_PATH
11356: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11357: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11358: ;;
11359:
11360: rdos*)
11361: dynamic_linker=no
11362: ;;
11363:
11364: solaris*)
11365: version_type=linux # correct to gnu/linux during the next big refactor
11366: need_lib_prefix=no
11367: need_version=no
11368: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369: soname_spec='${libname}${release}${shared_ext}$major'
11370: shlibpath_var=LD_LIBRARY_PATH
11371: shlibpath_overrides_runpath=yes
11372: hardcode_into_libs=yes
11373: # ldd complains unless libraries are executable
11374: postinstall_cmds='chmod +x $lib'
11375: ;;
11376:
11377: sunos4*)
11378: version_type=sunos
11379: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11380: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11381: shlibpath_var=LD_LIBRARY_PATH
11382: shlibpath_overrides_runpath=yes
11383: if test "$with_gnu_ld" = yes; then
11384: need_lib_prefix=no
11385: fi
11386: need_version=yes
11387: ;;
11388:
11389: sysv4 | sysv4.3*)
11390: version_type=linux # correct to gnu/linux during the next big refactor
11391: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392: soname_spec='${libname}${release}${shared_ext}$major'
11393: shlibpath_var=LD_LIBRARY_PATH
11394: case $host_vendor in
11395: sni)
11396: shlibpath_overrides_runpath=no
11397: need_lib_prefix=no
11398: runpath_var=LD_RUN_PATH
11399: ;;
11400: siemens)
11401: need_lib_prefix=no
11402: ;;
11403: motorola)
11404: need_lib_prefix=no
11405: need_version=no
11406: shlibpath_overrides_runpath=no
11407: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11408: ;;
11409: esac
11410: ;;
11411:
11412: sysv4*MP*)
11413: if test -d /usr/nec ;then
11414: version_type=linux # correct to gnu/linux during the next big refactor
11415: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11416: soname_spec='$libname${shared_ext}.$major'
11417: shlibpath_var=LD_LIBRARY_PATH
11418: fi
11419: ;;
11420:
11421: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11422: version_type=freebsd-elf
11423: need_lib_prefix=no
11424: need_version=no
11425: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11426: soname_spec='${libname}${release}${shared_ext}$major'
11427: shlibpath_var=LD_LIBRARY_PATH
11428: shlibpath_overrides_runpath=yes
11429: hardcode_into_libs=yes
11430: if test "$with_gnu_ld" = yes; then
11431: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11432: else
11433: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11434: case $host_os in
11435: sco3.2v5*)
11436: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11437: ;;
11438: esac
11439: fi
11440: sys_lib_dlsearch_path_spec='/usr/lib'
11441: ;;
11442:
11443: tpf*)
11444: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11445: version_type=linux # correct to gnu/linux during the next big refactor
11446: need_lib_prefix=no
11447: need_version=no
11448: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449: shlibpath_var=LD_LIBRARY_PATH
11450: shlibpath_overrides_runpath=no
11451: hardcode_into_libs=yes
11452: ;;
11453:
11454: uts4*)
11455: version_type=linux # correct to gnu/linux during the next big refactor
11456: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457: soname_spec='${libname}${release}${shared_ext}$major'
11458: shlibpath_var=LD_LIBRARY_PATH
11459: ;;
11460:
11461: *)
11462: dynamic_linker=no
11463: ;;
11464: esac
1.32 moko 11465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11466: $as_echo "$dynamic_linker" >&6; }
1.25 moko 11467: test "$dynamic_linker" = no && can_build_shared=no
11468:
11469: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11470: if test "$GCC" = yes; then
11471: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11472: fi
11473:
11474: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11475: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11476: fi
11477: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11478: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11479: fi
11480:
11481:
11482:
11483:
11484:
11485:
11486:
11487:
11488:
11489:
11490:
11491:
11492:
11493:
11494:
11495:
11496:
11497:
11498:
11499:
11500:
11501:
11502:
11503:
11504:
11505:
11506:
11507:
11508:
11509:
11510:
11511:
11512:
11513:
11514:
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:
1.32 moko 11572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11573: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.25 moko 11574: hardcode_action=
11575: if test -n "$hardcode_libdir_flag_spec" ||
11576: test -n "$runpath_var" ||
11577: test "X$hardcode_automatic" = "Xyes" ; then
11578:
11579: # We can hardcode non-existent directories.
11580: if test "$hardcode_direct" != no &&
11581: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11582: # have to relink, otherwise we might link with an installed library
11583: # when we should be linking with a yet-to-be-installed one
11584: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11585: test "$hardcode_minus_L" != no; then
11586: # Linking always hardcodes the temporary library directory.
11587: hardcode_action=relink
11588: else
11589: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11590: hardcode_action=immediate
11591: fi
11592: else
11593: # We cannot hardcode anything, or else we can only hardcode existing
11594: # directories.
11595: hardcode_action=unsupported
11596: fi
1.32 moko 11597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11598: $as_echo "$hardcode_action" >&6; }
1.25 moko 11599:
11600: if test "$hardcode_action" = relink ||
11601: test "$inherit_rpath" = yes; then
11602: # Fast installation is not supported
11603: enable_fast_install=no
11604: elif test "$shlibpath_overrides_runpath" = yes ||
11605: test "$enable_shared" = no; then
11606: # Fast installation is not necessary
11607: enable_fast_install=needless
11608: fi
11609:
11610:
11611:
11612:
11613:
11614:
11615: if test "x$enable_dlopen" != xyes; then
11616: enable_dlopen=unknown
11617: enable_dlopen_self=unknown
11618: enable_dlopen_self_static=unknown
11619: else
11620: lt_cv_dlopen=no
11621: lt_cv_dlopen_libs=
11622:
11623: case $host_os in
11624: beos*)
11625: lt_cv_dlopen="load_add_on"
11626: lt_cv_dlopen_libs=
11627: lt_cv_dlopen_self=yes
11628: ;;
11629:
11630: mingw* | pw32* | cegcc*)
11631: lt_cv_dlopen="LoadLibrary"
11632: lt_cv_dlopen_libs=
11633: ;;
11634:
11635: cygwin*)
11636: lt_cv_dlopen="dlopen"
11637: lt_cv_dlopen_libs=
11638: ;;
11639:
11640: darwin*)
11641: # if libdl is installed we need to link against it
1.32 moko 11642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11643: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11644: if ${ac_cv_lib_dl_dlopen+:} false; then :
11645: $as_echo_n "(cached) " >&6
1.25 moko 11646: else
11647: ac_check_lib_save_LIBS=$LIBS
11648: LIBS="-ldl $LIBS"
1.32 moko 11649: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11650: /* end confdefs.h. */
11651:
1.32 moko 11652: /* Override any GCC internal prototype to avoid an error.
11653: Use char because int might match the return type of a GCC
11654: builtin and then its argument prototype would still apply. */
1.25 moko 11655: #ifdef __cplusplus
11656: extern "C"
11657: #endif
11658: char dlopen ();
11659: int
11660: main ()
11661: {
1.32 moko 11662: return dlopen ();
1.25 moko 11663: ;
11664: return 0;
11665: }
11666: _ACEOF
1.32 moko 11667: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 11668: ac_cv_lib_dl_dlopen=yes
11669: else
1.32 moko 11670: ac_cv_lib_dl_dlopen=no
1.25 moko 11671: fi
1.32 moko 11672: rm -f core conftest.err conftest.$ac_objext \
11673: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11674: LIBS=$ac_check_lib_save_LIBS
11675: fi
1.32 moko 11676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11677: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11678: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.25 moko 11679: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11680: else
11681:
11682: lt_cv_dlopen="dyld"
11683: lt_cv_dlopen_libs=
11684: lt_cv_dlopen_self=yes
11685:
11686: fi
11687:
11688: ;;
11689:
11690: *)
1.32 moko 11691: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11692: if test "x$ac_cv_func_shl_load" = xyes; then :
1.25 moko 11693: lt_cv_dlopen="shl_load"
11694: else
1.32 moko 11695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11696: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11697: if ${ac_cv_lib_dld_shl_load+:} false; then :
11698: $as_echo_n "(cached) " >&6
1.25 moko 11699: else
1.32 moko 11700: ac_check_lib_save_LIBS=$LIBS
11701: LIBS="-ldld $LIBS"
11702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11703: /* end confdefs.h. */
11704:
1.32 moko 11705: /* Override any GCC internal prototype to avoid an error.
11706: Use char because int might match the return type of a GCC
11707: builtin and then its argument prototype would still apply. */
1.25 moko 11708: #ifdef __cplusplus
11709: extern "C"
11710: #endif
1.32 moko 11711: char shl_load ();
1.25 moko 11712: int
11713: main ()
11714: {
1.32 moko 11715: return shl_load ();
1.25 moko 11716: ;
11717: return 0;
11718: }
11719: _ACEOF
1.32 moko 11720: if ac_fn_c_try_link "$LINENO"; then :
11721: ac_cv_lib_dld_shl_load=yes
1.25 moko 11722: else
1.32 moko 11723: ac_cv_lib_dld_shl_load=no
1.25 moko 11724: fi
1.32 moko 11725: rm -f core conftest.err conftest.$ac_objext \
11726: conftest$ac_exeext conftest.$ac_ext
11727: LIBS=$ac_check_lib_save_LIBS
1.25 moko 11728: fi
1.32 moko 11729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11730: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11731: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11732: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11733: else
11734: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11735: if test "x$ac_cv_func_dlopen" = xyes; then :
1.25 moko 11736: lt_cv_dlopen="dlopen"
11737: else
1.32 moko 11738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11739: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11740: if ${ac_cv_lib_dl_dlopen+:} false; then :
11741: $as_echo_n "(cached) " >&6
1.25 moko 11742: else
11743: ac_check_lib_save_LIBS=$LIBS
11744: LIBS="-ldl $LIBS"
1.32 moko 11745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11746: /* end confdefs.h. */
11747:
1.32 moko 11748: /* Override any GCC internal prototype to avoid an error.
11749: Use char because int might match the return type of a GCC
11750: builtin and then its argument prototype would still apply. */
1.25 moko 11751: #ifdef __cplusplus
11752: extern "C"
11753: #endif
11754: char dlopen ();
11755: int
11756: main ()
11757: {
1.32 moko 11758: return dlopen ();
1.25 moko 11759: ;
11760: return 0;
11761: }
11762: _ACEOF
1.32 moko 11763: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 11764: ac_cv_lib_dl_dlopen=yes
11765: else
1.32 moko 11766: ac_cv_lib_dl_dlopen=no
1.25 moko 11767: fi
1.32 moko 11768: rm -f core conftest.err conftest.$ac_objext \
11769: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11770: LIBS=$ac_check_lib_save_LIBS
11771: fi
1.32 moko 11772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11773: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11774: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.25 moko 11775: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11776: else
1.32 moko 11777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11778: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11779: if ${ac_cv_lib_svld_dlopen+:} false; then :
11780: $as_echo_n "(cached) " >&6
1.25 moko 11781: else
11782: ac_check_lib_save_LIBS=$LIBS
11783: LIBS="-lsvld $LIBS"
1.32 moko 11784: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11785: /* end confdefs.h. */
11786:
1.32 moko 11787: /* Override any GCC internal prototype to avoid an error.
11788: Use char because int might match the return type of a GCC
11789: builtin and then its argument prototype would still apply. */
1.25 moko 11790: #ifdef __cplusplus
11791: extern "C"
11792: #endif
11793: char dlopen ();
11794: int
11795: main ()
11796: {
1.32 moko 11797: return dlopen ();
1.25 moko 11798: ;
11799: return 0;
11800: }
11801: _ACEOF
1.32 moko 11802: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 11803: ac_cv_lib_svld_dlopen=yes
11804: else
1.32 moko 11805: ac_cv_lib_svld_dlopen=no
1.25 moko 11806: fi
1.32 moko 11807: rm -f core conftest.err conftest.$ac_objext \
11808: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11809: LIBS=$ac_check_lib_save_LIBS
11810: fi
1.32 moko 11811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11812: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11813: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.25 moko 11814: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11815: else
1.32 moko 11816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11817: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11818: if ${ac_cv_lib_dld_dld_link+:} false; then :
11819: $as_echo_n "(cached) " >&6
1.25 moko 11820: else
11821: ac_check_lib_save_LIBS=$LIBS
11822: LIBS="-ldld $LIBS"
1.32 moko 11823: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11824: /* end confdefs.h. */
11825:
1.32 moko 11826: /* Override any GCC internal prototype to avoid an error.
11827: Use char because int might match the return type of a GCC
11828: builtin and then its argument prototype would still apply. */
1.25 moko 11829: #ifdef __cplusplus
11830: extern "C"
11831: #endif
11832: char dld_link ();
11833: int
11834: main ()
11835: {
1.32 moko 11836: return dld_link ();
1.25 moko 11837: ;
11838: return 0;
11839: }
11840: _ACEOF
1.32 moko 11841: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 11842: ac_cv_lib_dld_dld_link=yes
11843: else
1.32 moko 11844: ac_cv_lib_dld_dld_link=no
1.25 moko 11845: fi
1.32 moko 11846: rm -f core conftest.err conftest.$ac_objext \
11847: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11848: LIBS=$ac_check_lib_save_LIBS
11849: fi
1.32 moko 11850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11851: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11852: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.25 moko 11853: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11854: fi
11855:
11856:
11857: fi
11858:
11859:
11860: fi
11861:
11862:
11863: fi
11864:
11865:
11866: fi
11867:
11868:
11869: fi
11870:
11871: ;;
11872: esac
11873:
11874: if test "x$lt_cv_dlopen" != xno; then
11875: enable_dlopen=yes
11876: else
11877: enable_dlopen=no
11878: fi
11879:
11880: case $lt_cv_dlopen in
11881: dlopen)
11882: save_CPPFLAGS="$CPPFLAGS"
11883: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11884:
11885: save_LDFLAGS="$LDFLAGS"
11886: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11887:
11888: save_LIBS="$LIBS"
11889: LIBS="$lt_cv_dlopen_libs $LIBS"
11890:
1.32 moko 11891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11892: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11893: if ${lt_cv_dlopen_self+:} false; then :
11894: $as_echo_n "(cached) " >&6
1.25 moko 11895: else
11896: if test "$cross_compiling" = yes; then :
11897: lt_cv_dlopen_self=cross
11898: else
11899: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11900: lt_status=$lt_dlunknown
11901: cat > conftest.$ac_ext <<_LT_EOF
11902: #line $LINENO "configure"
11903: #include "confdefs.h"
11904:
11905: #if HAVE_DLFCN_H
11906: #include <dlfcn.h>
11907: #endif
11908:
11909: #include <stdio.h>
11910:
11911: #ifdef RTLD_GLOBAL
11912: # define LT_DLGLOBAL RTLD_GLOBAL
11913: #else
11914: # ifdef DL_GLOBAL
11915: # define LT_DLGLOBAL DL_GLOBAL
11916: # else
11917: # define LT_DLGLOBAL 0
11918: # endif
11919: #endif
11920:
11921: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11922: find out it does not work in some platform. */
11923: #ifndef LT_DLLAZY_OR_NOW
11924: # ifdef RTLD_LAZY
11925: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11926: # else
11927: # ifdef DL_LAZY
11928: # define LT_DLLAZY_OR_NOW DL_LAZY
11929: # else
11930: # ifdef RTLD_NOW
11931: # define LT_DLLAZY_OR_NOW RTLD_NOW
11932: # else
11933: # ifdef DL_NOW
11934: # define LT_DLLAZY_OR_NOW DL_NOW
11935: # else
11936: # define LT_DLLAZY_OR_NOW 0
11937: # endif
11938: # endif
11939: # endif
11940: # endif
11941: #endif
11942:
11943: /* When -fvisbility=hidden is used, assume the code has been annotated
11944: correspondingly for the symbols needed. */
11945: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11946: int fnord () __attribute__((visibility("default")));
11947: #endif
11948:
11949: int fnord () { return 42; }
11950: int main ()
11951: {
11952: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11953: int status = $lt_dlunknown;
11954:
11955: if (self)
11956: {
11957: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11958: else
11959: {
11960: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11961: else puts (dlerror ());
11962: }
11963: /* dlclose (self); */
11964: }
11965: else
11966: puts (dlerror ());
11967:
11968: return status;
11969: }
11970: _LT_EOF
1.32 moko 11971: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.25 moko 11972: (eval $ac_link) 2>&5
11973: ac_status=$?
1.32 moko 11974: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11975: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.25 moko 11976: (./conftest; exit; ) >&5 2>/dev/null
11977: lt_status=$?
11978: case x$lt_status in
11979: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11980: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11981: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11982: esac
11983: else :
11984: # compilation failed
11985: lt_cv_dlopen_self=no
11986: fi
11987: fi
11988: rm -fr conftest*
11989:
11990:
11991: fi
1.32 moko 11992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11993: $as_echo "$lt_cv_dlopen_self" >&6; }
1.25 moko 11994:
11995: if test "x$lt_cv_dlopen_self" = xyes; then
11996: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.32 moko 11997: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11998: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11999: if ${lt_cv_dlopen_self_static+:} false; then :
12000: $as_echo_n "(cached) " >&6
1.25 moko 12001: else
12002: if test "$cross_compiling" = yes; then :
12003: lt_cv_dlopen_self_static=cross
12004: else
12005: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12006: lt_status=$lt_dlunknown
12007: cat > conftest.$ac_ext <<_LT_EOF
12008: #line $LINENO "configure"
12009: #include "confdefs.h"
12010:
12011: #if HAVE_DLFCN_H
12012: #include <dlfcn.h>
12013: #endif
12014:
12015: #include <stdio.h>
12016:
12017: #ifdef RTLD_GLOBAL
12018: # define LT_DLGLOBAL RTLD_GLOBAL
12019: #else
12020: # ifdef DL_GLOBAL
12021: # define LT_DLGLOBAL DL_GLOBAL
12022: # else
12023: # define LT_DLGLOBAL 0
12024: # endif
12025: #endif
12026:
12027: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12028: find out it does not work in some platform. */
12029: #ifndef LT_DLLAZY_OR_NOW
12030: # ifdef RTLD_LAZY
12031: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12032: # else
12033: # ifdef DL_LAZY
12034: # define LT_DLLAZY_OR_NOW DL_LAZY
12035: # else
12036: # ifdef RTLD_NOW
12037: # define LT_DLLAZY_OR_NOW RTLD_NOW
12038: # else
12039: # ifdef DL_NOW
12040: # define LT_DLLAZY_OR_NOW DL_NOW
12041: # else
12042: # define LT_DLLAZY_OR_NOW 0
12043: # endif
12044: # endif
12045: # endif
12046: # endif
12047: #endif
12048:
12049: /* When -fvisbility=hidden is used, assume the code has been annotated
12050: correspondingly for the symbols needed. */
12051: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12052: int fnord () __attribute__((visibility("default")));
12053: #endif
12054:
12055: int fnord () { return 42; }
12056: int main ()
12057: {
12058: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12059: int status = $lt_dlunknown;
12060:
12061: if (self)
12062: {
12063: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12064: else
12065: {
12066: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12067: else puts (dlerror ());
12068: }
12069: /* dlclose (self); */
12070: }
12071: else
12072: puts (dlerror ());
12073:
12074: return status;
12075: }
12076: _LT_EOF
1.32 moko 12077: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.25 moko 12078: (eval $ac_link) 2>&5
12079: ac_status=$?
1.32 moko 12080: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12081: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.25 moko 12082: (./conftest; exit; ) >&5 2>/dev/null
12083: lt_status=$?
12084: case x$lt_status in
12085: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12086: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12087: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12088: esac
12089: else :
12090: # compilation failed
12091: lt_cv_dlopen_self_static=no
12092: fi
12093: fi
12094: rm -fr conftest*
12095:
12096:
12097: fi
1.32 moko 12098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12099: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.25 moko 12100: fi
12101:
12102: CPPFLAGS="$save_CPPFLAGS"
12103: LDFLAGS="$save_LDFLAGS"
12104: LIBS="$save_LIBS"
12105: ;;
12106: esac
12107:
12108: case $lt_cv_dlopen_self in
12109: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12110: *) enable_dlopen_self=unknown ;;
12111: esac
12112:
12113: case $lt_cv_dlopen_self_static in
12114: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12115: *) enable_dlopen_self_static=unknown ;;
12116: esac
12117: fi
12118:
12119:
12120:
12121:
12122:
12123:
12124:
12125:
12126:
12127:
12128:
12129:
12130:
12131:
12132:
12133:
12134:
12135: striplib=
12136: old_striplib=
1.32 moko 12137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12138: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.25 moko 12139: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12140: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12141: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.32 moko 12142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12143: $as_echo "yes" >&6; }
1.25 moko 12144: else
12145: # FIXME - insert some real tests, host_os isn't really good enough
12146: case $host_os in
12147: darwin*)
12148: if test -n "$STRIP" ; then
12149: striplib="$STRIP -x"
12150: old_striplib="$STRIP -S"
1.32 moko 12151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152: $as_echo "yes" >&6; }
1.25 moko 12153: else
1.32 moko 12154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155: $as_echo "no" >&6; }
1.25 moko 12156: fi
12157: ;;
12158: *)
1.32 moko 12159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160: $as_echo "no" >&6; }
1.25 moko 12161: ;;
12162: esac
12163: fi
12164:
12165:
12166:
12167:
12168:
12169:
12170:
12171:
12172:
12173:
12174:
12175:
12176: # Report which library types will actually be built
1.32 moko 12177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12178: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12180: $as_echo "$can_build_shared" >&6; }
1.25 moko 12181:
1.32 moko 12182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12183: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.25 moko 12184: test "$can_build_shared" = "no" && enable_shared=no
12185:
12186: # On AIX, shared libraries and static libraries use the same namespace, and
12187: # are all built from PIC.
12188: case $host_os in
12189: aix3*)
12190: test "$enable_shared" = yes && enable_static=no
12191: if test -n "$RANLIB"; then
12192: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12193: postinstall_cmds='$RANLIB $lib'
12194: fi
12195: ;;
12196:
12197: aix[4-9]*)
12198: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12199: test "$enable_shared" = yes && enable_static=no
12200: fi
12201: ;;
12202: esac
1.32 moko 12203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12204: $as_echo "$enable_shared" >&6; }
1.25 moko 12205:
1.32 moko 12206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12207: $as_echo_n "checking whether to build static libraries... " >&6; }
1.25 moko 12208: # Make sure either enable_shared or enable_static is yes.
12209: test "$enable_shared" = yes || enable_static=yes
1.32 moko 12210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12211: $as_echo "$enable_static" >&6; }
1.25 moko 12212:
12213:
12214:
12215:
12216: fi
12217: ac_ext=c
12218: ac_cpp='$CPP $CPPFLAGS'
12219: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12222:
12223: CC="$lt_save_CC"
12224:
12225: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12226: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12227: (test "X$CXX" != "Xg++"))) ; then
1.32 moko 12228: ac_ext=cpp
1.25 moko 12229: ac_cpp='$CXXCPP $CPPFLAGS'
12230: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.32 moko 12233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12234: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.25 moko 12235: if test -z "$CXXCPP"; then
1.32 moko 12236: if ${ac_cv_prog_CXXCPP+:} false; then :
12237: $as_echo_n "(cached) " >&6
1.25 moko 12238: else
12239: # Double quotes because CXXCPP needs to be expanded
12240: for CXXCPP in "$CXX -E" "/lib/cpp"
12241: do
12242: ac_preproc_ok=false
12243: for ac_cxx_preproc_warn_flag in '' yes
12244: do
12245: # Use a header file that comes with gcc, so configuring glibc
12246: # with a fresh cross-compiler works.
12247: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12248: # <limits.h> exists even on freestanding compilers.
12249: # On the NeXT, cc -E runs the code through the compiler's parser,
12250: # not just through cpp. "Syntax error" is here to catch this case.
1.32 moko 12251: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12252: /* end confdefs.h. */
12253: #ifdef __STDC__
12254: # include <limits.h>
12255: #else
12256: # include <assert.h>
12257: #endif
12258: Syntax error
12259: _ACEOF
1.32 moko 12260: if ac_fn_cxx_try_cpp "$LINENO"; then :
12261:
1.25 moko 12262: else
12263: # Broken: fails on valid input.
12264: continue
12265: fi
1.32 moko 12266: rm -f conftest.err conftest.i conftest.$ac_ext
1.25 moko 12267:
1.32 moko 12268: # OK, works on sane cases. Now check whether nonexistent headers
1.25 moko 12269: # can be detected and how.
1.32 moko 12270: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12271: /* end confdefs.h. */
12272: #include <ac_nonexistent.h>
12273: _ACEOF
1.32 moko 12274: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.25 moko 12275: # Broken: success on invalid input.
12276: continue
12277: else
12278: # Passes both tests.
12279: ac_preproc_ok=:
12280: break
12281: fi
1.32 moko 12282: rm -f conftest.err conftest.i conftest.$ac_ext
1.25 moko 12283:
12284: done
12285: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.32 moko 12286: rm -f conftest.i conftest.err conftest.$ac_ext
12287: if $ac_preproc_ok; then :
1.25 moko 12288: break
12289: fi
12290:
12291: done
12292: ac_cv_prog_CXXCPP=$CXXCPP
12293:
12294: fi
12295: CXXCPP=$ac_cv_prog_CXXCPP
12296: else
12297: ac_cv_prog_CXXCPP=$CXXCPP
12298: fi
1.32 moko 12299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12300: $as_echo "$CXXCPP" >&6; }
1.25 moko 12301: ac_preproc_ok=false
12302: for ac_cxx_preproc_warn_flag in '' yes
12303: do
12304: # Use a header file that comes with gcc, so configuring glibc
12305: # with a fresh cross-compiler works.
12306: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12307: # <limits.h> exists even on freestanding compilers.
12308: # On the NeXT, cc -E runs the code through the compiler's parser,
12309: # not just through cpp. "Syntax error" is here to catch this case.
1.32 moko 12310: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12311: /* end confdefs.h. */
12312: #ifdef __STDC__
12313: # include <limits.h>
12314: #else
12315: # include <assert.h>
12316: #endif
12317: Syntax error
12318: _ACEOF
1.32 moko 12319: if ac_fn_cxx_try_cpp "$LINENO"; then :
12320:
1.25 moko 12321: else
12322: # Broken: fails on valid input.
12323: continue
12324: fi
1.32 moko 12325: rm -f conftest.err conftest.i conftest.$ac_ext
1.25 moko 12326:
1.32 moko 12327: # OK, works on sane cases. Now check whether nonexistent headers
1.25 moko 12328: # can be detected and how.
1.32 moko 12329: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12330: /* end confdefs.h. */
12331: #include <ac_nonexistent.h>
12332: _ACEOF
1.32 moko 12333: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.25 moko 12334: # Broken: success on invalid input.
12335: continue
12336: else
12337: # Passes both tests.
12338: ac_preproc_ok=:
12339: break
12340: fi
1.32 moko 12341: rm -f conftest.err conftest.i conftest.$ac_ext
1.25 moko 12342:
12343: done
12344: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.32 moko 12345: rm -f conftest.i conftest.err conftest.$ac_ext
12346: if $ac_preproc_ok; then :
12347:
1.25 moko 12348: else
1.32 moko 12349: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12350: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12351: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12352: See \`config.log' for more details" "$LINENO" 5; }
1.25 moko 12353: fi
12354:
12355: ac_ext=c
12356: ac_cpp='$CPP $CPPFLAGS'
12357: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12358: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12359: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12360:
12361: else
12362: _lt_caught_CXX_error=yes
12363: fi
12364:
1.32 moko 12365: ac_ext=cpp
1.25 moko 12366: ac_cpp='$CXXCPP $CPPFLAGS'
12367: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12368: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12370:
12371: archive_cmds_need_lc_CXX=no
12372: allow_undefined_flag_CXX=
12373: always_export_symbols_CXX=no
12374: archive_expsym_cmds_CXX=
12375: compiler_needs_object_CXX=no
12376: export_dynamic_flag_spec_CXX=
12377: hardcode_direct_CXX=no
12378: hardcode_direct_absolute_CXX=no
12379: hardcode_libdir_flag_spec_CXX=
12380: hardcode_libdir_separator_CXX=
12381: hardcode_minus_L_CXX=no
12382: hardcode_shlibpath_var_CXX=unsupported
12383: hardcode_automatic_CXX=no
12384: inherit_rpath_CXX=no
12385: module_cmds_CXX=
12386: module_expsym_cmds_CXX=
12387: link_all_deplibs_CXX=unknown
12388: old_archive_cmds_CXX=$old_archive_cmds
12389: reload_flag_CXX=$reload_flag
12390: reload_cmds_CXX=$reload_cmds
12391: no_undefined_flag_CXX=
12392: whole_archive_flag_spec_CXX=
12393: enable_shared_with_static_runtimes_CXX=no
12394:
12395: # Source file extension for C++ test sources.
12396: ac_ext=cpp
12397:
12398: # Object file extension for compiled C++ test sources.
12399: objext=o
12400: objext_CXX=$objext
12401:
12402: # No sense in running all these tests if we already determined that
12403: # the CXX compiler isn't working. Some variables (like enable_shared)
12404: # are currently assumed to apply to all compilers on this platform,
12405: # and will be corrupted by setting them based on a non-working compiler.
12406: if test "$_lt_caught_CXX_error" != yes; then
12407: # Code to be used in simple compile tests
12408: lt_simple_compile_test_code="int some_variable = 0;"
12409:
12410: # Code to be used in simple link tests
12411: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12412:
12413: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12414:
12415:
12416:
12417:
12418:
12419:
12420: # If no C compiler was specified, use CC.
12421: LTCC=${LTCC-"$CC"}
12422:
12423: # If no C compiler flags were specified, use CFLAGS.
12424: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12425:
12426: # Allow CC to be a program name with arguments.
12427: compiler=$CC
12428:
12429:
12430: # save warnings/boilerplate of simple test code
12431: ac_outfile=conftest.$ac_objext
12432: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12433: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12434: _lt_compiler_boilerplate=`cat conftest.err`
12435: $RM conftest*
12436:
12437: ac_outfile=conftest.$ac_objext
12438: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12439: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12440: _lt_linker_boilerplate=`cat conftest.err`
12441: $RM -r conftest*
12442:
12443:
12444: # Allow CC to be a program name with arguments.
12445: lt_save_CC=$CC
12446: lt_save_CFLAGS=$CFLAGS
12447: lt_save_LD=$LD
12448: lt_save_GCC=$GCC
12449: GCC=$GXX
12450: lt_save_with_gnu_ld=$with_gnu_ld
12451: lt_save_path_LD=$lt_cv_path_LD
12452: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12453: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12454: else
12455: $as_unset lt_cv_prog_gnu_ld
12456: fi
12457: if test -n "${lt_cv_path_LDCXX+set}"; then
12458: lt_cv_path_LD=$lt_cv_path_LDCXX
12459: else
12460: $as_unset lt_cv_path_LD
12461: fi
12462: test -z "${LDCXX+set}" || LD=$LDCXX
12463: CC=${CXX-"c++"}
12464: CFLAGS=$CXXFLAGS
12465: compiler=$CC
12466: compiler_CXX=$CC
12467: for cc_temp in $compiler""; do
12468: case $cc_temp in
12469: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12470: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12471: \-*) ;;
12472: *) break;;
12473: esac
12474: done
12475: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12476:
12477:
12478: if test -n "$compiler"; then
12479: # We don't want -fno-exception when compiling C++ code, so set the
12480: # no_builtin_flag separately
12481: if test "$GXX" = yes; then
12482: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12483: else
12484: lt_prog_compiler_no_builtin_flag_CXX=
12485: fi
12486:
12487: if test "$GXX" = yes; then
12488: # Set up default GNU C++ configuration
12489:
12490:
12491:
1.32 moko 12492: # Check whether --with-gnu-ld was given.
12493: if test "${with_gnu_ld+set}" = set; then :
12494: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.25 moko 12495: else
12496: with_gnu_ld=no
1.32 moko 12497: fi
12498:
1.25 moko 12499: ac_prog=ld
12500: if test "$GCC" = yes; then
12501: # Check if gcc -print-prog-name=ld gives a path.
1.32 moko 12502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12503: $as_echo_n "checking for ld used by $CC... " >&6; }
1.25 moko 12504: case $host in
12505: *-*-mingw*)
12506: # gcc leaves a trailing carriage return which upsets mingw
12507: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12508: *)
12509: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12510: esac
12511: case $ac_prog in
12512: # Accept absolute paths.
12513: [\\/]* | ?:[\\/]*)
12514: re_direlt='/[^/][^/]*/\.\./'
12515: # Canonicalize the pathname of ld
12516: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12517: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12518: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12519: done
12520: test -z "$LD" && LD="$ac_prog"
12521: ;;
12522: "")
12523: # If it fails, then pretend we aren't using GCC.
12524: ac_prog=ld
12525: ;;
12526: *)
12527: # If it is relative, then search for the first ld in PATH.
12528: with_gnu_ld=unknown
12529: ;;
12530: esac
12531: elif test "$with_gnu_ld" = yes; then
1.32 moko 12532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12533: $as_echo_n "checking for GNU ld... " >&6; }
1.25 moko 12534: else
1.32 moko 12535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12536: $as_echo_n "checking for non-GNU ld... " >&6; }
1.25 moko 12537: fi
1.32 moko 12538: if ${lt_cv_path_LD+:} false; then :
12539: $as_echo_n "(cached) " >&6
1.25 moko 12540: else
12541: if test -z "$LD"; then
12542: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12543: for ac_dir in $PATH; do
12544: IFS="$lt_save_ifs"
12545: test -z "$ac_dir" && ac_dir=.
12546: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12547: lt_cv_path_LD="$ac_dir/$ac_prog"
12548: # Check to see if the program is GNU ld. I'd rather use --version,
12549: # but apparently some variants of GNU ld only accept -v.
12550: # Break only if it was the GNU/non-GNU ld that we prefer.
12551: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12552: *GNU* | *'with BFD'*)
12553: test "$with_gnu_ld" != no && break
12554: ;;
12555: *)
12556: test "$with_gnu_ld" != yes && break
12557: ;;
12558: esac
12559: fi
12560: done
12561: IFS="$lt_save_ifs"
12562: else
12563: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12564: fi
12565: fi
12566:
12567: LD="$lt_cv_path_LD"
12568: if test -n "$LD"; then
1.32 moko 12569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12570: $as_echo "$LD" >&6; }
1.25 moko 12571: else
1.32 moko 12572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573: $as_echo "no" >&6; }
1.25 moko 12574: fi
1.32 moko 12575: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12577: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12578: if ${lt_cv_prog_gnu_ld+:} false; then :
12579: $as_echo_n "(cached) " >&6
1.25 moko 12580: else
12581: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12582: case `$LD -v 2>&1 </dev/null` in
12583: *GNU* | *'with BFD'*)
12584: lt_cv_prog_gnu_ld=yes
12585: ;;
12586: *)
12587: lt_cv_prog_gnu_ld=no
12588: ;;
12589: esac
12590: fi
1.32 moko 12591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12592: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.25 moko 12593: with_gnu_ld=$lt_cv_prog_gnu_ld
12594:
12595:
12596:
12597:
12598:
12599:
12600:
12601: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12602: # archiving commands below assume that GNU ld is being used.
12603: if test "$with_gnu_ld" = yes; then
12604: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12605: 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'
12606:
12607: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12608: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12609:
12610: # If archive_cmds runs LD, not CC, wlarc should be empty
12611: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12612: # investigate it a little bit more. (MM)
12613: wlarc='${wl}'
12614:
12615: # ancient GNU ld didn't support --whole-archive et. al.
12616: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12617: $GREP 'no-whole-archive' > /dev/null; then
12618: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12619: else
12620: whole_archive_flag_spec_CXX=
12621: fi
12622: else
12623: with_gnu_ld=no
12624: wlarc=
12625:
12626: # A generic and very simple default shared library creation
12627: # command for GNU C++ for the case where it uses the native
12628: # linker, instead of GNU ld. If possible, this setting should
12629: # overridden to take advantage of the native linker features on
12630: # the platform it is being used on.
12631: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12632: fi
12633:
12634: # Commands to make compiler produce verbose output that lists
12635: # what "hidden" libraries, object files and flags are used when
12636: # linking a shared library.
12637: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12638:
12639: else
12640: GXX=no
12641: with_gnu_ld=no
12642: wlarc=
12643: fi
12644:
12645: # PORTME: fill in a description of your system's C++ link characteristics
1.32 moko 12646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12647: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.25 moko 12648: ld_shlibs_CXX=yes
12649: case $host_os in
12650: aix3*)
12651: # FIXME: insert proper C++ library support
12652: ld_shlibs_CXX=no
12653: ;;
12654: aix[4-9]*)
12655: if test "$host_cpu" = ia64; then
12656: # On IA64, the linker does run time linking by default, so we don't
12657: # have to do anything special.
12658: aix_use_runtimelinking=no
12659: exp_sym_flag='-Bexport'
12660: no_entry_flag=""
12661: else
12662: aix_use_runtimelinking=no
12663:
12664: # Test if we are trying to use run time linking or normal
12665: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12666: # need to do runtime linking.
12667: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12668: for ld_flag in $LDFLAGS; do
12669: case $ld_flag in
12670: *-brtl*)
12671: aix_use_runtimelinking=yes
12672: break
12673: ;;
12674: esac
12675: done
12676: ;;
12677: esac
12678:
12679: exp_sym_flag='-bexport'
12680: no_entry_flag='-bnoentry'
12681: fi
12682:
12683: # When large executables or shared objects are built, AIX ld can
12684: # have problems creating the table of contents. If linking a library
12685: # or program results in "error TOC overflow" add -mminimal-toc to
12686: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12687: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12688:
12689: archive_cmds_CXX=''
12690: hardcode_direct_CXX=yes
12691: hardcode_direct_absolute_CXX=yes
12692: hardcode_libdir_separator_CXX=':'
12693: link_all_deplibs_CXX=yes
12694: file_list_spec_CXX='${wl}-f,'
12695:
12696: if test "$GXX" = yes; then
12697: case $host_os in aix4.[012]|aix4.[012].*)
12698: # We only want to do this on AIX 4.2 and lower, the check
12699: # below for broken collect2 doesn't work under 4.3+
12700: collect2name=`${CC} -print-prog-name=collect2`
12701: if test -f "$collect2name" &&
12702: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12703: then
12704: # We have reworked collect2
12705: :
12706: else
12707: # We have old collect2
12708: hardcode_direct_CXX=unsupported
12709: # It fails to find uninstalled libraries when the uninstalled
12710: # path is not listed in the libpath. Setting hardcode_minus_L
12711: # to unsupported forces relinking
12712: hardcode_minus_L_CXX=yes
12713: hardcode_libdir_flag_spec_CXX='-L$libdir'
12714: hardcode_libdir_separator_CXX=
12715: fi
12716: esac
12717: shared_flag='-shared'
12718: if test "$aix_use_runtimelinking" = yes; then
12719: shared_flag="$shared_flag "'${wl}-G'
12720: fi
12721: else
12722: # not using gcc
12723: if test "$host_cpu" = ia64; then
12724: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12725: # chokes on -Wl,-G. The following line is correct:
12726: shared_flag='-G'
12727: else
12728: if test "$aix_use_runtimelinking" = yes; then
12729: shared_flag='${wl}-G'
12730: else
12731: shared_flag='${wl}-bM:SRE'
12732: fi
12733: fi
12734: fi
12735:
12736: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12737: # It seems that -bexpall does not export symbols beginning with
12738: # underscore (_), so it is better to generate a list of symbols to
12739: # export.
12740: always_export_symbols_CXX=yes
12741: if test "$aix_use_runtimelinking" = yes; then
12742: # Warning - without using the other runtime loading flags (-brtl),
12743: # -berok will link without error, but may produce a broken library.
12744: allow_undefined_flag_CXX='-berok'
12745: # Determine the default libpath from the value encoded in an empty
12746: # executable.
12747: if test "${lt_cv_aix_libpath+set}" = set; then
12748: aix_libpath=$lt_cv_aix_libpath
12749: else
1.32 moko 12750: if ${lt_cv_aix_libpath__CXX+:} false; then :
12751: $as_echo_n "(cached) " >&6
1.25 moko 12752: else
1.32 moko 12753: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12754: /* end confdefs.h. */
12755:
12756: int
12757: main ()
12758: {
12759:
12760: ;
12761: return 0;
12762: }
12763: _ACEOF
1.32 moko 12764: if ac_fn_cxx_try_link "$LINENO"; then :
1.25 moko 12765:
12766: lt_aix_libpath_sed='
12767: /Import File Strings/,/^$/ {
12768: /^0/ {
12769: s/^0 *\([^ ]*\) *$/\1/
12770: p
12771: }
12772: }'
12773: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12774: # Check for a 64-bit object if we didn't find anything.
12775: if test -z "$lt_cv_aix_libpath__CXX"; then
12776: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12777: fi
12778: fi
1.32 moko 12779: rm -f core conftest.err conftest.$ac_objext \
12780: conftest$ac_exeext conftest.$ac_ext
1.25 moko 12781: if test -z "$lt_cv_aix_libpath__CXX"; then
12782: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12783: fi
12784:
12785: fi
12786:
12787: aix_libpath=$lt_cv_aix_libpath__CXX
12788: fi
12789:
12790: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12791:
12792: 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"
12793: else
12794: if test "$host_cpu" = ia64; then
12795: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12796: allow_undefined_flag_CXX="-z nodefs"
12797: 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"
12798: else
12799: # Determine the default libpath from the value encoded in an
12800: # empty executable.
12801: if test "${lt_cv_aix_libpath+set}" = set; then
12802: aix_libpath=$lt_cv_aix_libpath
12803: else
1.32 moko 12804: if ${lt_cv_aix_libpath__CXX+:} false; then :
12805: $as_echo_n "(cached) " >&6
1.25 moko 12806: else
1.32 moko 12807: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12808: /* end confdefs.h. */
12809:
12810: int
12811: main ()
12812: {
12813:
12814: ;
12815: return 0;
12816: }
12817: _ACEOF
1.32 moko 12818: if ac_fn_cxx_try_link "$LINENO"; then :
1.25 moko 12819:
12820: lt_aix_libpath_sed='
12821: /Import File Strings/,/^$/ {
12822: /^0/ {
12823: s/^0 *\([^ ]*\) *$/\1/
12824: p
12825: }
12826: }'
12827: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12828: # Check for a 64-bit object if we didn't find anything.
12829: if test -z "$lt_cv_aix_libpath__CXX"; then
12830: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12831: fi
12832: fi
1.32 moko 12833: rm -f core conftest.err conftest.$ac_objext \
12834: conftest$ac_exeext conftest.$ac_ext
1.25 moko 12835: if test -z "$lt_cv_aix_libpath__CXX"; then
12836: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12837: fi
12838:
12839: fi
12840:
12841: aix_libpath=$lt_cv_aix_libpath__CXX
12842: fi
12843:
12844: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12845: # Warning - without using the other run time loading flags,
12846: # -berok will link without error, but may produce a broken library.
12847: no_undefined_flag_CXX=' ${wl}-bernotok'
12848: allow_undefined_flag_CXX=' ${wl}-berok'
12849: if test "$with_gnu_ld" = yes; then
12850: # We only use this code for GNU lds that support --whole-archive.
12851: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12852: else
12853: # Exported symbols can be pulled into shared objects from archives
12854: whole_archive_flag_spec_CXX='$convenience'
12855: fi
12856: archive_cmds_need_lc_CXX=yes
12857: # This is similar to how AIX traditionally builds its shared
12858: # libraries.
12859: 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'
12860: fi
12861: fi
12862: ;;
12863:
12864: beos*)
12865: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12866: allow_undefined_flag_CXX=unsupported
12867: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12868: # support --undefined. This deserves some investigation. FIXME
12869: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12870: else
12871: ld_shlibs_CXX=no
12872: fi
12873: ;;
12874:
12875: chorus*)
12876: case $cc_basename in
12877: *)
12878: # FIXME: insert proper C++ library support
12879: ld_shlibs_CXX=no
12880: ;;
12881: esac
12882: ;;
12883:
12884: cygwin* | mingw* | pw32* | cegcc*)
12885: case $GXX,$cc_basename in
12886: ,cl* | no,cl*)
12887: # Native MSVC
12888: # hardcode_libdir_flag_spec is actually meaningless, as there is
12889: # no search path for DLLs.
12890: hardcode_libdir_flag_spec_CXX=' '
12891: allow_undefined_flag_CXX=unsupported
12892: always_export_symbols_CXX=yes
12893: file_list_spec_CXX='@'
12894: # Tell ltmain to make .lib files, not .a files.
12895: libext=lib
12896: # Tell ltmain to make .dll files, not .so files.
12897: shrext_cmds=".dll"
12898: # FIXME: Setting linknames here is a bad hack.
12899: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12900: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12901: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12902: else
12903: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12904: fi~
12905: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12906: linknames='
12907: # The linker will not automatically build a static lib if we build a DLL.
12908: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12909: enable_shared_with_static_runtimes_CXX=yes
12910: # Don't use ranlib
12911: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12912: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12913: lt_tool_outputfile="@TOOL_OUTPUT@"~
12914: case $lt_outputfile in
12915: *.exe|*.EXE) ;;
12916: *)
12917: lt_outputfile="$lt_outputfile.exe"
12918: lt_tool_outputfile="$lt_tool_outputfile.exe"
12919: ;;
12920: esac~
12921: func_to_tool_file "$lt_outputfile"~
12922: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12923: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12924: $RM "$lt_outputfile.manifest";
12925: fi'
12926: ;;
12927: *)
12928: # g++
12929: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12930: # as there is no search path for DLLs.
12931: hardcode_libdir_flag_spec_CXX='-L$libdir'
12932: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12933: allow_undefined_flag_CXX=unsupported
12934: always_export_symbols_CXX=no
12935: enable_shared_with_static_runtimes_CXX=yes
12936:
12937: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12938: 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'
12939: # If the export-symbols file already is a .def file (1st line
12940: # is EXPORTS), use it as is; otherwise, prepend...
12941: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12942: cp $export_symbols $output_objdir/$soname.def;
12943: else
12944: echo EXPORTS > $output_objdir/$soname.def;
12945: cat $export_symbols >> $output_objdir/$soname.def;
12946: fi~
12947: $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'
12948: else
12949: ld_shlibs_CXX=no
12950: fi
12951: ;;
12952: esac
12953: ;;
12954: darwin* | rhapsody*)
12955:
12956:
12957: archive_cmds_need_lc_CXX=no
12958: hardcode_direct_CXX=no
12959: hardcode_automatic_CXX=yes
12960: hardcode_shlibpath_var_CXX=unsupported
12961: if test "$lt_cv_ld_force_load" = "yes"; then
12962: 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\"`'
12963:
12964: else
12965: whole_archive_flag_spec_CXX=''
12966: fi
12967: link_all_deplibs_CXX=yes
12968: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12969: case $cc_basename in
12970: ifort*) _lt_dar_can_shared=yes ;;
12971: *) _lt_dar_can_shared=$GCC ;;
12972: esac
12973: if test "$_lt_dar_can_shared" = "yes"; then
12974: output_verbose_link_cmd=func_echo_all
12975: 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}"
12976: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12977: 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}"
12978: 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}"
12979: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12980: 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}"
12981: 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}"
12982: fi
12983:
12984: else
12985: ld_shlibs_CXX=no
12986: fi
12987:
12988: ;;
12989:
12990: dgux*)
12991: case $cc_basename in
12992: ec++*)
12993: # FIXME: insert proper C++ library support
12994: ld_shlibs_CXX=no
12995: ;;
12996: ghcx*)
12997: # Green Hills C++ Compiler
12998: # FIXME: insert proper C++ library support
12999: ld_shlibs_CXX=no
13000: ;;
13001: *)
13002: # FIXME: insert proper C++ library support
13003: ld_shlibs_CXX=no
13004: ;;
13005: esac
13006: ;;
13007:
13008: freebsd2.*)
13009: # C++ shared libraries reported to be fairly broken before
13010: # switch to ELF
13011: ld_shlibs_CXX=no
13012: ;;
13013:
13014: freebsd-elf*)
13015: archive_cmds_need_lc_CXX=no
13016: ;;
13017:
13018: freebsd* | dragonfly*)
13019: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13020: # conventions
13021: ld_shlibs_CXX=yes
13022: ;;
13023:
13024: gnu*)
13025: ;;
13026:
13027: haiku*)
13028: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13029: link_all_deplibs_CXX=yes
13030: ;;
13031:
13032: hpux9*)
13033: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13034: hardcode_libdir_separator_CXX=:
13035: export_dynamic_flag_spec_CXX='${wl}-E'
13036: hardcode_direct_CXX=yes
13037: hardcode_minus_L_CXX=yes # Not in the search PATH,
13038: # but as the default
13039: # location of the library.
13040:
13041: case $cc_basename in
13042: CC*)
13043: # FIXME: insert proper C++ library support
13044: ld_shlibs_CXX=no
13045: ;;
13046: aCC*)
13047: 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'
13048: # Commands to make compiler produce verbose output that lists
13049: # what "hidden" libraries, object files and flags are used when
13050: # linking a shared library.
13051: #
13052: # There doesn't appear to be a way to prevent this compiler from
13053: # explicitly linking system object files so we need to strip them
13054: # from the output so that they don't get included in the library
13055: # dependencies.
13056: 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"'
13057: ;;
13058: *)
13059: if test "$GXX" = yes; then
13060: 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'
13061: else
13062: # FIXME: insert proper C++ library support
13063: ld_shlibs_CXX=no
13064: fi
13065: ;;
13066: esac
13067: ;;
13068:
13069: hpux10*|hpux11*)
13070: if test $with_gnu_ld = no; then
13071: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13072: hardcode_libdir_separator_CXX=:
13073:
13074: case $host_cpu in
13075: hppa*64*|ia64*)
13076: ;;
13077: *)
13078: export_dynamic_flag_spec_CXX='${wl}-E'
13079: ;;
13080: esac
13081: fi
13082: case $host_cpu in
13083: hppa*64*|ia64*)
13084: hardcode_direct_CXX=no
13085: hardcode_shlibpath_var_CXX=no
13086: ;;
13087: *)
13088: hardcode_direct_CXX=yes
13089: hardcode_direct_absolute_CXX=yes
13090: hardcode_minus_L_CXX=yes # Not in the search PATH,
13091: # but as the default
13092: # location of the library.
13093: ;;
13094: esac
13095:
13096: case $cc_basename in
13097: CC*)
13098: # FIXME: insert proper C++ library support
13099: ld_shlibs_CXX=no
13100: ;;
13101: aCC*)
13102: case $host_cpu in
13103: hppa*64*)
13104: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13105: ;;
13106: ia64*)
13107: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13108: ;;
13109: *)
13110: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13111: ;;
13112: esac
13113: # Commands to make compiler produce verbose output that lists
13114: # what "hidden" libraries, object files and flags are used when
13115: # linking a shared library.
13116: #
13117: # There doesn't appear to be a way to prevent this compiler from
13118: # explicitly linking system object files so we need to strip them
13119: # from the output so that they don't get included in the library
13120: # dependencies.
13121: 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"'
13122: ;;
13123: *)
13124: if test "$GXX" = yes; then
13125: if test $with_gnu_ld = no; then
13126: case $host_cpu in
13127: hppa*64*)
13128: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13129: ;;
13130: ia64*)
13131: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13132: ;;
13133: *)
13134: 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'
13135: ;;
13136: esac
13137: fi
13138: else
13139: # FIXME: insert proper C++ library support
13140: ld_shlibs_CXX=no
13141: fi
13142: ;;
13143: esac
13144: ;;
13145:
13146: interix[3-9]*)
13147: hardcode_direct_CXX=no
13148: hardcode_shlibpath_var_CXX=no
13149: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13150: export_dynamic_flag_spec_CXX='${wl}-E'
13151: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13152: # Instead, shared libraries are loaded at an image base (0x10000000 by
13153: # default) and relocated if they conflict, which is a slow very memory
13154: # consuming and fragmenting process. To avoid this, we pick a random,
13155: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13156: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13157: 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'
13158: 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'
13159: ;;
13160: irix5* | irix6*)
13161: case $cc_basename in
13162: CC*)
13163: # SGI C++
13164: 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'
13165:
13166: # Archives containing C++ object files must be created using
13167: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13168: # necessary to make sure instantiated templates are included
13169: # in the archive.
13170: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13171: ;;
13172: *)
13173: if test "$GXX" = yes; then
13174: if test "$with_gnu_ld" = no; then
13175: 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'
13176: else
13177: 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'
13178: fi
13179: fi
13180: link_all_deplibs_CXX=yes
13181: ;;
13182: esac
13183: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13184: hardcode_libdir_separator_CXX=:
13185: inherit_rpath_CXX=yes
13186: ;;
13187:
13188: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13189: case $cc_basename in
13190: KCC*)
13191: # Kuck and Associates, Inc. (KAI) C++ Compiler
13192:
13193: # KCC will only create a shared library if the output file
13194: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13195: # to its proper name (with version) after linking.
13196: 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'
13197: 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'
13198: # Commands to make compiler produce verbose output that lists
13199: # what "hidden" libraries, object files and flags are used when
13200: # linking a shared library.
13201: #
13202: # There doesn't appear to be a way to prevent this compiler from
13203: # explicitly linking system object files so we need to strip them
13204: # from the output so that they don't get included in the library
13205: # dependencies.
13206: 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"'
13207:
13208: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13210:
13211: # Archives containing C++ object files must be created using
13212: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13213: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13214: ;;
13215: icpc* | ecpc* )
13216: # Intel C++
13217: with_gnu_ld=yes
13218: # version 8.0 and above of icpc choke on multiply defined symbols
13219: # if we add $predep_objects and $postdep_objects, however 7.1 and
13220: # earlier do not add the objects themselves.
13221: case `$CC -V 2>&1` in
13222: *"Version 7."*)
13223: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13224: 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'
13225: ;;
13226: *) # Version 8.0 or newer
13227: tmp_idyn=
13228: case $host_cpu in
13229: ia64*) tmp_idyn=' -i_dynamic';;
13230: esac
13231: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13232: 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'
13233: ;;
13234: esac
13235: archive_cmds_need_lc_CXX=no
13236: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13237: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13238: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13239: ;;
13240: pgCC* | pgcpp*)
13241: # Portland Group C++ compiler
13242: case `$CC -V` in
13243: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13244: prelink_cmds_CXX='tpldir=Template.dir~
13245: rm -rf $tpldir~
13246: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13247: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13248: old_archive_cmds_CXX='tpldir=Template.dir~
13249: rm -rf $tpldir~
13250: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13251: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13252: $RANLIB $oldlib'
13253: archive_cmds_CXX='tpldir=Template.dir~
13254: rm -rf $tpldir~
13255: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13256: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13257: archive_expsym_cmds_CXX='tpldir=Template.dir~
13258: rm -rf $tpldir~
13259: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13260: $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'
13261: ;;
13262: *) # Version 6 and above use weak symbols
13263: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13264: 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'
13265: ;;
13266: esac
13267:
13268: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13269: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13270: 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'
13271: ;;
13272: cxx*)
13273: # Compaq C++
13274: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13275: 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'
13276:
13277: runpath_var=LD_RUN_PATH
13278: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13279: hardcode_libdir_separator_CXX=:
13280:
13281: # Commands to make compiler produce verbose output that lists
13282: # what "hidden" libraries, object files and flags are used when
13283: # linking a shared library.
13284: #
13285: # There doesn't appear to be a way to prevent this compiler from
13286: # explicitly linking system object files so we need to strip them
13287: # from the output so that they don't get included in the library
13288: # dependencies.
13289: 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'
13290: ;;
13291: xl* | mpixl* | bgxl*)
13292: # IBM XL 8.0 on PPC, with GNU ld
13293: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13294: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13295: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13296: if test "x$supports_anon_versioning" = xyes; then
13297: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13298: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13299: echo "local: *; };" >> $output_objdir/$libname.ver~
13300: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13301: fi
13302: ;;
13303: *)
13304: case `$CC -V 2>&1 | sed 5q` in
13305: *Sun\ C*)
13306: # Sun C++ 5.9
13307: no_undefined_flag_CXX=' -zdefs'
13308: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13309: 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'
13310: hardcode_libdir_flag_spec_CXX='-R$libdir'
13311: 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'
13312: compiler_needs_object_CXX=yes
13313:
13314: # Not sure whether something based on
13315: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13316: # would be better.
13317: output_verbose_link_cmd='func_echo_all'
13318:
13319: # Archives containing C++ object files must be created using
13320: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13321: # necessary to make sure instantiated templates are included
13322: # in the archive.
13323: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13324: ;;
13325: esac
13326: ;;
13327: esac
13328: ;;
13329:
13330: lynxos*)
13331: # FIXME: insert proper C++ library support
13332: ld_shlibs_CXX=no
13333: ;;
13334:
13335: m88k*)
13336: # FIXME: insert proper C++ library support
13337: ld_shlibs_CXX=no
13338: ;;
13339:
13340: mvs*)
13341: case $cc_basename in
13342: cxx*)
13343: # FIXME: insert proper C++ library support
13344: ld_shlibs_CXX=no
13345: ;;
13346: *)
13347: # FIXME: insert proper C++ library support
13348: ld_shlibs_CXX=no
13349: ;;
13350: esac
13351: ;;
13352:
13353: netbsd*)
13354: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13355: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13356: wlarc=
13357: hardcode_libdir_flag_spec_CXX='-R$libdir'
13358: hardcode_direct_CXX=yes
13359: hardcode_shlibpath_var_CXX=no
13360: fi
13361: # Workaround some broken pre-1.5 toolchains
13362: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13363: ;;
13364:
13365: *nto* | *qnx*)
13366: ld_shlibs_CXX=yes
13367: ;;
13368:
13369: openbsd2*)
13370: # C++ shared libraries are fairly broken
13371: ld_shlibs_CXX=no
13372: ;;
13373:
13374: openbsd*)
13375: if test -f /usr/libexec/ld.so; then
13376: hardcode_direct_CXX=yes
13377: hardcode_shlibpath_var_CXX=no
13378: hardcode_direct_absolute_CXX=yes
13379: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13380: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13381: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13382: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13383: export_dynamic_flag_spec_CXX='${wl}-E'
13384: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13385: fi
13386: output_verbose_link_cmd=func_echo_all
13387: else
13388: ld_shlibs_CXX=no
13389: fi
13390: ;;
13391:
13392: osf3* | osf4* | osf5*)
13393: case $cc_basename in
13394: KCC*)
13395: # Kuck and Associates, Inc. (KAI) C++ Compiler
13396:
13397: # KCC will only create a shared library if the output file
13398: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13399: # to its proper name (with version) after linking.
13400: 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'
13401:
13402: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13403: hardcode_libdir_separator_CXX=:
13404:
13405: # Archives containing C++ object files must be created using
13406: # the KAI C++ compiler.
13407: case $host in
13408: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13409: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13410: esac
13411: ;;
13412: RCC*)
13413: # Rational C++ 2.4.1
13414: # FIXME: insert proper C++ library support
13415: ld_shlibs_CXX=no
13416: ;;
13417: cxx*)
13418: case $host in
13419: osf3*)
13420: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13421: 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'
13422: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13423: ;;
13424: *)
13425: allow_undefined_flag_CXX=' -expect_unresolved \*'
13426: 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'
13427: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13428: echo "-hidden">> $lib.exp~
13429: $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~
13430: $RM $lib.exp'
13431: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13432: ;;
13433: esac
13434:
13435: hardcode_libdir_separator_CXX=:
13436:
13437: # Commands to make compiler produce verbose output that lists
13438: # what "hidden" libraries, object files and flags are used when
13439: # linking a shared library.
13440: #
13441: # There doesn't appear to be a way to prevent this compiler from
13442: # explicitly linking system object files so we need to strip them
13443: # from the output so that they don't get included in the library
13444: # dependencies.
13445: 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"'
13446: ;;
13447: *)
13448: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13449: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13450: case $host in
13451: osf3*)
13452: 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'
13453: ;;
13454: *)
13455: 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'
13456: ;;
13457: esac
13458:
13459: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13460: hardcode_libdir_separator_CXX=:
13461:
13462: # Commands to make compiler produce verbose output that lists
13463: # what "hidden" libraries, object files and flags are used when
13464: # linking a shared library.
13465: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13466:
13467: else
13468: # FIXME: insert proper C++ library support
13469: ld_shlibs_CXX=no
13470: fi
13471: ;;
13472: esac
13473: ;;
13474:
13475: psos*)
13476: # FIXME: insert proper C++ library support
13477: ld_shlibs_CXX=no
13478: ;;
13479:
13480: sunos4*)
13481: case $cc_basename in
13482: CC*)
13483: # Sun C++ 4.x
13484: # FIXME: insert proper C++ library support
13485: ld_shlibs_CXX=no
13486: ;;
13487: lcc*)
13488: # Lucid
13489: # FIXME: insert proper C++ library support
13490: ld_shlibs_CXX=no
13491: ;;
13492: *)
13493: # FIXME: insert proper C++ library support
13494: ld_shlibs_CXX=no
13495: ;;
13496: esac
13497: ;;
13498:
13499: solaris*)
13500: case $cc_basename in
13501: CC* | sunCC*)
13502: # Sun C++ 4.2, 5.x and Centerline C++
13503: archive_cmds_need_lc_CXX=yes
13504: no_undefined_flag_CXX=' -zdefs'
13505: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13506: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13507: $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'
13508:
13509: hardcode_libdir_flag_spec_CXX='-R$libdir'
13510: hardcode_shlibpath_var_CXX=no
13511: case $host_os in
13512: solaris2.[0-5] | solaris2.[0-5].*) ;;
13513: *)
13514: # The compiler driver will combine and reorder linker options,
13515: # but understands `-z linker_flag'.
13516: # Supported since Solaris 2.6 (maybe 2.5.1?)
13517: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13518: ;;
13519: esac
13520: link_all_deplibs_CXX=yes
13521:
13522: output_verbose_link_cmd='func_echo_all'
13523:
13524: # Archives containing C++ object files must be created using
13525: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13526: # necessary to make sure instantiated templates are included
13527: # in the archive.
13528: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13529: ;;
13530: gcx*)
13531: # Green Hills C++ Compiler
13532: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13533:
13534: # The C++ compiler must be used to create the archive.
13535: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13536: ;;
13537: *)
13538: # GNU C++ compiler with Solaris linker
13539: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13540: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13541: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13542: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13543: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13544: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13545:
13546: # Commands to make compiler produce verbose output that lists
13547: # what "hidden" libraries, object files and flags are used when
13548: # linking a shared library.
13549: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13550: else
13551: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13552: # platform.
13553: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13554: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13555: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13556:
13557: # Commands to make compiler produce verbose output that lists
13558: # what "hidden" libraries, object files and flags are used when
13559: # linking a shared library.
13560: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13561: fi
13562:
13563: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13564: case $host_os in
13565: solaris2.[0-5] | solaris2.[0-5].*) ;;
13566: *)
13567: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13568: ;;
13569: esac
13570: fi
13571: ;;
13572: esac
13573: ;;
13574:
13575: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13576: no_undefined_flag_CXX='${wl}-z,text'
13577: archive_cmds_need_lc_CXX=no
13578: hardcode_shlibpath_var_CXX=no
13579: runpath_var='LD_RUN_PATH'
13580:
13581: case $cc_basename in
13582: CC*)
13583: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13584: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13585: ;;
13586: *)
13587: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13588: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589: ;;
13590: esac
13591: ;;
13592:
13593: sysv5* | sco3.2v5* | sco5v6*)
13594: # Note: We can NOT use -z defs as we might desire, because we do not
13595: # link with -lc, and that would cause any symbols used from libc to
13596: # always be unresolved, which means just about no library would
13597: # ever link correctly. If we're not using GNU ld we use -z text
13598: # though, which does catch some bad symbols but isn't as heavy-handed
13599: # as -z defs.
13600: no_undefined_flag_CXX='${wl}-z,text'
13601: allow_undefined_flag_CXX='${wl}-z,nodefs'
13602: archive_cmds_need_lc_CXX=no
13603: hardcode_shlibpath_var_CXX=no
13604: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13605: hardcode_libdir_separator_CXX=':'
13606: link_all_deplibs_CXX=yes
13607: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13608: runpath_var='LD_RUN_PATH'
13609:
13610: case $cc_basename in
13611: CC*)
13612: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13613: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13614: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13615: '"$old_archive_cmds_CXX"
13616: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13617: '"$reload_cmds_CXX"
13618: ;;
13619: *)
13620: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13621: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13622: ;;
13623: esac
13624: ;;
13625:
13626: tandem*)
13627: case $cc_basename in
13628: NCC*)
13629: # NonStop-UX NCC 3.20
13630: # FIXME: insert proper C++ library support
13631: ld_shlibs_CXX=no
13632: ;;
13633: *)
13634: # FIXME: insert proper C++ library support
13635: ld_shlibs_CXX=no
13636: ;;
13637: esac
13638: ;;
13639:
13640: vxworks*)
13641: # FIXME: insert proper C++ library support
13642: ld_shlibs_CXX=no
13643: ;;
13644:
13645: *)
13646: # FIXME: insert proper C++ library support
13647: ld_shlibs_CXX=no
13648: ;;
13649: esac
13650:
1.32 moko 13651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13652: $as_echo "$ld_shlibs_CXX" >&6; }
1.25 moko 13653: test "$ld_shlibs_CXX" = no && can_build_shared=no
13654:
13655: GCC_CXX="$GXX"
13656: LD_CXX="$LD"
13657:
13658: ## CAVEAT EMPTOR:
13659: ## There is no encapsulation within the following macros, do not change
13660: ## the running order or otherwise move them around unless you know exactly
13661: ## what you are doing...
13662: # Dependencies to place before and after the object being linked:
13663: predep_objects_CXX=
13664: postdep_objects_CXX=
13665: predeps_CXX=
13666: postdeps_CXX=
13667: compiler_lib_search_path_CXX=
13668:
13669: cat > conftest.$ac_ext <<_LT_EOF
13670: class Foo
13671: {
13672: public:
13673: Foo (void) { a = 0; }
13674: private:
13675: int a;
13676: };
13677: _LT_EOF
13678:
13679:
13680: _lt_libdeps_save_CFLAGS=$CFLAGS
13681: case "$CC $CFLAGS " in #(
13682: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13683: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13684: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13685: esac
13686:
1.32 moko 13687: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 13688: (eval $ac_compile) 2>&5
13689: ac_status=$?
1.32 moko 13690: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13691: test $ac_status = 0; }; then
1.25 moko 13692: # Parse the compiler output and extract the necessary
13693: # objects, libraries and library flags.
13694:
13695: # Sentinel used to keep track of whether or not we are before
13696: # the conftest object file.
13697: pre_test_object_deps_done=no
13698:
13699: for p in `eval "$output_verbose_link_cmd"`; do
13700: case ${prev}${p} in
13701:
13702: -L* | -R* | -l*)
13703: # Some compilers place space between "-{L,R}" and the path.
13704: # Remove the space.
13705: if test $p = "-L" ||
13706: test $p = "-R"; then
13707: prev=$p
13708: continue
13709: fi
13710:
13711: # Expand the sysroot to ease extracting the directories later.
13712: if test -z "$prev"; then
13713: case $p in
13714: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13715: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13716: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13717: esac
13718: fi
13719: case $p in
13720: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13721: esac
13722: if test "$pre_test_object_deps_done" = no; then
13723: case ${prev} in
13724: -L | -R)
13725: # Internal compiler library paths should come after those
13726: # provided the user. The postdeps already come after the
13727: # user supplied libs so there is no need to process them.
13728: if test -z "$compiler_lib_search_path_CXX"; then
13729: compiler_lib_search_path_CXX="${prev}${p}"
13730: else
13731: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13732: fi
13733: ;;
13734: # The "-l" case would never come before the object being
13735: # linked, so don't bother handling this case.
13736: esac
13737: else
13738: if test -z "$postdeps_CXX"; then
13739: postdeps_CXX="${prev}${p}"
13740: else
13741: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13742: fi
13743: fi
13744: prev=
13745: ;;
13746:
13747: *.lto.$objext) ;; # Ignore GCC LTO objects
13748: *.$objext)
13749: # This assumes that the test object file only shows up
13750: # once in the compiler output.
13751: if test "$p" = "conftest.$objext"; then
13752: pre_test_object_deps_done=yes
13753: continue
13754: fi
13755:
13756: if test "$pre_test_object_deps_done" = no; then
13757: if test -z "$predep_objects_CXX"; then
13758: predep_objects_CXX="$p"
13759: else
13760: predep_objects_CXX="$predep_objects_CXX $p"
13761: fi
13762: else
13763: if test -z "$postdep_objects_CXX"; then
13764: postdep_objects_CXX="$p"
13765: else
13766: postdep_objects_CXX="$postdep_objects_CXX $p"
13767: fi
13768: fi
13769: ;;
13770:
13771: *) ;; # Ignore the rest.
13772:
13773: esac
13774: done
13775:
13776: # Clean up.
13777: rm -f a.out a.exe
13778: else
13779: echo "libtool.m4: error: problem compiling CXX test program"
13780: fi
13781:
13782: $RM -f confest.$objext
13783: CFLAGS=$_lt_libdeps_save_CFLAGS
13784:
13785: # PORTME: override above test on systems where it is broken
13786: case $host_os in
13787: interix[3-9]*)
13788: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13789: # hack all around it, let's just trust "g++" to DTRT.
13790: predep_objects_CXX=
13791: postdep_objects_CXX=
13792: postdeps_CXX=
13793: ;;
13794:
13795: linux*)
13796: case `$CC -V 2>&1 | sed 5q` in
13797: *Sun\ C*)
13798: # Sun C++ 5.9
13799:
13800: # The more standards-conforming stlport4 library is
13801: # incompatible with the Cstd library. Avoid specifying
13802: # it if it's in CXXFLAGS. Ignore libCrun as
13803: # -library=stlport4 depends on it.
13804: case " $CXX $CXXFLAGS " in
13805: *" -library=stlport4 "*)
13806: solaris_use_stlport4=yes
13807: ;;
13808: esac
13809:
13810: if test "$solaris_use_stlport4" != yes; then
13811: postdeps_CXX='-library=Cstd -library=Crun'
13812: fi
13813: ;;
13814: esac
13815: ;;
13816:
13817: solaris*)
13818: case $cc_basename in
13819: CC* | sunCC*)
13820: # The more standards-conforming stlport4 library is
13821: # incompatible with the Cstd library. Avoid specifying
13822: # it if it's in CXXFLAGS. Ignore libCrun as
13823: # -library=stlport4 depends on it.
13824: case " $CXX $CXXFLAGS " in
13825: *" -library=stlport4 "*)
13826: solaris_use_stlport4=yes
13827: ;;
13828: esac
13829:
13830: # Adding this requires a known-good setup of shared libraries for
13831: # Sun compiler versions before 5.6, else PIC objects from an old
13832: # archive will be linked into the output, leading to subtle bugs.
13833: if test "$solaris_use_stlport4" != yes; then
13834: postdeps_CXX='-library=Cstd -library=Crun'
13835: fi
13836: ;;
13837: esac
13838: ;;
13839: esac
13840:
13841:
13842: case " $postdeps_CXX " in
13843: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13844: esac
13845: compiler_lib_search_dirs_CXX=
13846: if test -n "${compiler_lib_search_path_CXX}"; then
13847: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13848: fi
13849:
13850:
13851:
13852:
13853:
13854:
13855:
13856:
13857:
13858:
13859:
13860:
13861:
13862:
13863:
13864:
13865:
13866:
13867:
13868:
13869:
13870:
13871:
13872:
13873:
13874:
13875:
13876:
13877:
13878:
13879:
13880: lt_prog_compiler_wl_CXX=
13881: lt_prog_compiler_pic_CXX=
13882: lt_prog_compiler_static_CXX=
13883:
13884:
13885: # C++ specific cases for pic, static, wl, etc.
13886: if test "$GXX" = yes; then
13887: lt_prog_compiler_wl_CXX='-Wl,'
13888: lt_prog_compiler_static_CXX='-static'
13889:
13890: case $host_os in
13891: aix*)
13892: # All AIX code is PIC.
13893: if test "$host_cpu" = ia64; then
13894: # AIX 5 now supports IA64 processor
13895: lt_prog_compiler_static_CXX='-Bstatic'
13896: fi
13897: ;;
13898:
13899: amigaos*)
13900: case $host_cpu in
13901: powerpc)
13902: # see comment about AmigaOS4 .so support
13903: lt_prog_compiler_pic_CXX='-fPIC'
13904: ;;
13905: m68k)
13906: # FIXME: we need at least 68020 code to build shared libraries, but
13907: # adding the `-m68020' flag to GCC prevents building anything better,
13908: # like `-m68040'.
13909: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13910: ;;
13911: esac
13912: ;;
13913:
13914: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13915: # PIC is the default for these OSes.
13916: ;;
13917: mingw* | cygwin* | os2* | pw32* | cegcc*)
13918: # This hack is so that the source file can tell whether it is being
13919: # built for inclusion in a dll (and should export symbols for example).
13920: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13921: # (--disable-auto-import) libraries
13922: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13923: ;;
13924: darwin* | rhapsody*)
13925: # PIC is the default on this platform
13926: # Common symbols not allowed in MH_DYLIB files
13927: lt_prog_compiler_pic_CXX='-fno-common'
13928: ;;
13929: *djgpp*)
13930: # DJGPP does not support shared libraries at all
13931: lt_prog_compiler_pic_CXX=
13932: ;;
13933: haiku*)
13934: # PIC is the default for Haiku.
13935: # The "-static" flag exists, but is broken.
13936: lt_prog_compiler_static_CXX=
13937: ;;
13938: interix[3-9]*)
13939: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13940: # Instead, we relocate shared libraries at runtime.
13941: ;;
13942: sysv4*MP*)
13943: if test -d /usr/nec; then
13944: lt_prog_compiler_pic_CXX=-Kconform_pic
13945: fi
13946: ;;
13947: hpux*)
13948: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13949: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13950: # sets the default TLS model and affects inlining.
13951: case $host_cpu in
13952: hppa*64*)
13953: ;;
13954: *)
13955: lt_prog_compiler_pic_CXX='-fPIC'
13956: ;;
13957: esac
13958: ;;
13959: *qnx* | *nto*)
13960: # QNX uses GNU C++, but need to define -shared option too, otherwise
13961: # it will coredump.
13962: lt_prog_compiler_pic_CXX='-fPIC -shared'
13963: ;;
13964: *)
13965: lt_prog_compiler_pic_CXX='-fPIC'
13966: ;;
13967: esac
13968: else
13969: case $host_os in
13970: aix[4-9]*)
13971: # All AIX code is PIC.
13972: if test "$host_cpu" = ia64; then
13973: # AIX 5 now supports IA64 processor
13974: lt_prog_compiler_static_CXX='-Bstatic'
13975: else
13976: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13977: fi
13978: ;;
13979: chorus*)
13980: case $cc_basename in
13981: cxch68*)
13982: # Green Hills C++ Compiler
13983: # _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"
13984: ;;
13985: esac
13986: ;;
13987: mingw* | cygwin* | os2* | pw32* | cegcc*)
13988: # This hack is so that the source file can tell whether it is being
13989: # built for inclusion in a dll (and should export symbols for example).
13990: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13991: ;;
13992: dgux*)
13993: case $cc_basename in
13994: ec++*)
13995: lt_prog_compiler_pic_CXX='-KPIC'
13996: ;;
13997: ghcx*)
13998: # Green Hills C++ Compiler
13999: lt_prog_compiler_pic_CXX='-pic'
14000: ;;
14001: *)
14002: ;;
14003: esac
14004: ;;
14005: freebsd* | dragonfly*)
14006: # FreeBSD uses GNU C++
14007: ;;
14008: hpux9* | hpux10* | hpux11*)
14009: case $cc_basename in
14010: CC*)
14011: lt_prog_compiler_wl_CXX='-Wl,'
14012: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14013: if test "$host_cpu" != ia64; then
14014: lt_prog_compiler_pic_CXX='+Z'
14015: fi
14016: ;;
14017: aCC*)
14018: lt_prog_compiler_wl_CXX='-Wl,'
14019: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14020: case $host_cpu in
14021: hppa*64*|ia64*)
14022: # +Z the default
14023: ;;
14024: *)
14025: lt_prog_compiler_pic_CXX='+Z'
14026: ;;
14027: esac
14028: ;;
14029: *)
14030: ;;
14031: esac
14032: ;;
14033: interix*)
14034: # This is c89, which is MS Visual C++ (no shared libs)
14035: # Anyone wants to do a port?
14036: ;;
14037: irix5* | irix6* | nonstopux*)
14038: case $cc_basename in
14039: CC*)
14040: lt_prog_compiler_wl_CXX='-Wl,'
14041: lt_prog_compiler_static_CXX='-non_shared'
14042: # CC pic flag -KPIC is the default.
14043: ;;
14044: *)
14045: ;;
14046: esac
14047: ;;
14048: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14049: case $cc_basename in
14050: KCC*)
14051: # KAI C++ Compiler
14052: lt_prog_compiler_wl_CXX='--backend -Wl,'
14053: lt_prog_compiler_pic_CXX='-fPIC'
14054: ;;
14055: ecpc* )
14056: # old Intel C++ for x86_64 which still supported -KPIC.
14057: lt_prog_compiler_wl_CXX='-Wl,'
14058: lt_prog_compiler_pic_CXX='-KPIC'
14059: lt_prog_compiler_static_CXX='-static'
14060: ;;
14061: icpc* )
14062: # Intel C++, used to be incompatible with GCC.
14063: # ICC 10 doesn't accept -KPIC any more.
14064: lt_prog_compiler_wl_CXX='-Wl,'
14065: lt_prog_compiler_pic_CXX='-fPIC'
14066: lt_prog_compiler_static_CXX='-static'
14067: ;;
14068: pgCC* | pgcpp*)
14069: # Portland Group C++ compiler
14070: lt_prog_compiler_wl_CXX='-Wl,'
14071: lt_prog_compiler_pic_CXX='-fpic'
14072: lt_prog_compiler_static_CXX='-Bstatic'
14073: ;;
14074: cxx*)
14075: # Compaq C++
14076: # Make sure the PIC flag is empty. It appears that all Alpha
14077: # Linux and Compaq Tru64 Unix objects are PIC.
14078: lt_prog_compiler_pic_CXX=
14079: lt_prog_compiler_static_CXX='-non_shared'
14080: ;;
14081: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14082: # IBM XL 8.0, 9.0 on PPC and BlueGene
14083: lt_prog_compiler_wl_CXX='-Wl,'
14084: lt_prog_compiler_pic_CXX='-qpic'
14085: lt_prog_compiler_static_CXX='-qstaticlink'
14086: ;;
14087: *)
14088: case `$CC -V 2>&1 | sed 5q` in
14089: *Sun\ C*)
14090: # Sun C++ 5.9
14091: lt_prog_compiler_pic_CXX='-KPIC'
14092: lt_prog_compiler_static_CXX='-Bstatic'
14093: lt_prog_compiler_wl_CXX='-Qoption ld '
14094: ;;
14095: esac
14096: ;;
14097: esac
14098: ;;
14099: lynxos*)
14100: ;;
14101: m88k*)
14102: ;;
14103: mvs*)
14104: case $cc_basename in
14105: cxx*)
14106: lt_prog_compiler_pic_CXX='-W c,exportall'
14107: ;;
14108: *)
14109: ;;
14110: esac
14111: ;;
14112: netbsd*)
14113: ;;
14114: *qnx* | *nto*)
14115: # QNX uses GNU C++, but need to define -shared option too, otherwise
14116: # it will coredump.
14117: lt_prog_compiler_pic_CXX='-fPIC -shared'
14118: ;;
14119: osf3* | osf4* | osf5*)
14120: case $cc_basename in
14121: KCC*)
14122: lt_prog_compiler_wl_CXX='--backend -Wl,'
14123: ;;
14124: RCC*)
14125: # Rational C++ 2.4.1
14126: lt_prog_compiler_pic_CXX='-pic'
14127: ;;
14128: cxx*)
14129: # Digital/Compaq C++
14130: lt_prog_compiler_wl_CXX='-Wl,'
14131: # Make sure the PIC flag is empty. It appears that all Alpha
14132: # Linux and Compaq Tru64 Unix objects are PIC.
14133: lt_prog_compiler_pic_CXX=
14134: lt_prog_compiler_static_CXX='-non_shared'
14135: ;;
14136: *)
14137: ;;
14138: esac
14139: ;;
14140: psos*)
14141: ;;
14142: solaris*)
14143: case $cc_basename in
14144: CC* | sunCC*)
14145: # Sun C++ 4.2, 5.x and Centerline C++
14146: lt_prog_compiler_pic_CXX='-KPIC'
14147: lt_prog_compiler_static_CXX='-Bstatic'
14148: lt_prog_compiler_wl_CXX='-Qoption ld '
14149: ;;
14150: gcx*)
14151: # Green Hills C++ Compiler
14152: lt_prog_compiler_pic_CXX='-PIC'
14153: ;;
14154: *)
14155: ;;
14156: esac
14157: ;;
14158: sunos4*)
14159: case $cc_basename in
14160: CC*)
14161: # Sun C++ 4.x
14162: lt_prog_compiler_pic_CXX='-pic'
14163: lt_prog_compiler_static_CXX='-Bstatic'
14164: ;;
14165: lcc*)
14166: # Lucid
14167: lt_prog_compiler_pic_CXX='-pic'
14168: ;;
14169: *)
14170: ;;
14171: esac
14172: ;;
14173: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14174: case $cc_basename in
14175: CC*)
14176: lt_prog_compiler_wl_CXX='-Wl,'
14177: lt_prog_compiler_pic_CXX='-KPIC'
14178: lt_prog_compiler_static_CXX='-Bstatic'
14179: ;;
14180: esac
14181: ;;
14182: tandem*)
14183: case $cc_basename in
14184: NCC*)
14185: # NonStop-UX NCC 3.20
14186: lt_prog_compiler_pic_CXX='-KPIC'
14187: ;;
14188: *)
14189: ;;
14190: esac
14191: ;;
14192: vxworks*)
14193: ;;
14194: *)
14195: lt_prog_compiler_can_build_shared_CXX=no
14196: ;;
14197: esac
14198: fi
14199:
14200: case $host_os in
14201: # For platforms which do not support PIC, -DPIC is meaningless:
14202: *djgpp*)
14203: lt_prog_compiler_pic_CXX=
14204: ;;
14205: *)
14206: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14207: ;;
14208: esac
14209:
1.32 moko 14210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14211: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14212: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14213: $as_echo_n "(cached) " >&6
1.25 moko 14214: else
14215: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14216: fi
1.32 moko 14217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14218: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.25 moko 14219: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14220:
14221: #
14222: # Check to make sure the PIC flag actually works.
14223: #
14224: if test -n "$lt_prog_compiler_pic_CXX"; then
1.32 moko 14225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14226: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14227: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14228: $as_echo_n "(cached) " >&6
1.25 moko 14229: else
14230: lt_cv_prog_compiler_pic_works_CXX=no
14231: ac_outfile=conftest.$ac_objext
14232: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14233: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14234: # Insert the option either (1) after the last *FLAGS variable, or
14235: # (2) before a word containing "conftest.", or (3) at the end.
14236: # Note that $ac_compile itself does not contain backslashes and begins
14237: # with a dollar sign (not a hyphen), so the echo should work correctly.
14238: # The option is referenced via a variable to avoid confusing sed.
14239: lt_compile=`echo "$ac_compile" | $SED \
14240: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14241: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14242: -e 's:$: $lt_compiler_flag:'`
14243: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14244: (eval "$lt_compile" 2>conftest.err)
14245: ac_status=$?
14246: cat conftest.err >&5
14247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248: if (exit $ac_status) && test -s "$ac_outfile"; then
14249: # The compiler can only warn and ignore the option if not recognized
14250: # So say no if there are warnings other than the usual output.
14251: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14252: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14253: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14254: lt_cv_prog_compiler_pic_works_CXX=yes
14255: fi
14256: fi
14257: $RM conftest*
14258:
14259: fi
1.32 moko 14260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14261: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.25 moko 14262:
14263: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14264: case $lt_prog_compiler_pic_CXX in
14265: "" | " "*) ;;
14266: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14267: esac
14268: else
14269: lt_prog_compiler_pic_CXX=
14270: lt_prog_compiler_can_build_shared_CXX=no
14271: fi
14272:
14273: fi
14274:
14275:
14276:
14277:
14278:
14279: #
14280: # Check to make sure the static flag actually works.
14281: #
14282: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.32 moko 14283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14284: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14285: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14286: $as_echo_n "(cached) " >&6
1.25 moko 14287: else
14288: lt_cv_prog_compiler_static_works_CXX=no
14289: save_LDFLAGS="$LDFLAGS"
14290: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14291: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14292: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14293: # The linker can only warn and ignore the option if not recognized
14294: # So say no if there are warnings
14295: if test -s conftest.err; then
14296: # Append any errors to the config.log.
14297: cat conftest.err 1>&5
14298: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14299: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14300: if diff conftest.exp conftest.er2 >/dev/null; then
14301: lt_cv_prog_compiler_static_works_CXX=yes
14302: fi
14303: else
14304: lt_cv_prog_compiler_static_works_CXX=yes
14305: fi
14306: fi
14307: $RM -r conftest*
14308: LDFLAGS="$save_LDFLAGS"
14309:
14310: fi
1.32 moko 14311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14312: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.25 moko 14313:
14314: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14315: :
14316: else
14317: lt_prog_compiler_static_CXX=
14318: fi
14319:
14320:
14321:
14322:
1.32 moko 14323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14324: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14325: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14326: $as_echo_n "(cached) " >&6
1.25 moko 14327: else
14328: lt_cv_prog_compiler_c_o_CXX=no
14329: $RM -r conftest 2>/dev/null
14330: mkdir conftest
14331: cd conftest
14332: mkdir out
14333: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14334:
14335: lt_compiler_flag="-o out/conftest2.$ac_objext"
14336: # Insert the option either (1) after the last *FLAGS variable, or
14337: # (2) before a word containing "conftest.", or (3) at the end.
14338: # Note that $ac_compile itself does not contain backslashes and begins
14339: # with a dollar sign (not a hyphen), so the echo should work correctly.
14340: lt_compile=`echo "$ac_compile" | $SED \
14341: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14342: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14343: -e 's:$: $lt_compiler_flag:'`
14344: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14345: (eval "$lt_compile" 2>out/conftest.err)
14346: ac_status=$?
14347: cat out/conftest.err >&5
14348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14350: then
14351: # The compiler can only warn and ignore the option if not recognized
14352: # So say no if there are warnings
14353: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14354: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14355: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14356: lt_cv_prog_compiler_c_o_CXX=yes
14357: fi
14358: fi
14359: chmod u+w . 2>&5
14360: $RM conftest*
14361: # SGI C++ compiler will create directory out/ii_files/ for
14362: # template instantiation
14363: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14364: $RM out/* && rmdir out
14365: cd ..
14366: $RM -r conftest
14367: $RM conftest*
14368:
14369: fi
1.32 moko 14370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14371: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.25 moko 14372:
14373:
14374:
1.32 moko 14375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14376: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14377: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14378: $as_echo_n "(cached) " >&6
1.25 moko 14379: else
14380: lt_cv_prog_compiler_c_o_CXX=no
14381: $RM -r conftest 2>/dev/null
14382: mkdir conftest
14383: cd conftest
14384: mkdir out
14385: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14386:
14387: lt_compiler_flag="-o out/conftest2.$ac_objext"
14388: # Insert the option either (1) after the last *FLAGS variable, or
14389: # (2) before a word containing "conftest.", or (3) at the end.
14390: # Note that $ac_compile itself does not contain backslashes and begins
14391: # with a dollar sign (not a hyphen), so the echo should work correctly.
14392: lt_compile=`echo "$ac_compile" | $SED \
14393: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14394: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14395: -e 's:$: $lt_compiler_flag:'`
14396: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14397: (eval "$lt_compile" 2>out/conftest.err)
14398: ac_status=$?
14399: cat out/conftest.err >&5
14400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14402: then
14403: # The compiler can only warn and ignore the option if not recognized
14404: # So say no if there are warnings
14405: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14406: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14407: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14408: lt_cv_prog_compiler_c_o_CXX=yes
14409: fi
14410: fi
14411: chmod u+w . 2>&5
14412: $RM conftest*
14413: # SGI C++ compiler will create directory out/ii_files/ for
14414: # template instantiation
14415: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14416: $RM out/* && rmdir out
14417: cd ..
14418: $RM -r conftest
14419: $RM conftest*
14420:
14421: fi
1.32 moko 14422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14423: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.25 moko 14424:
14425:
14426:
14427:
14428: hard_links="nottested"
14429: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14430: # do not overwrite the value of need_locks provided by the user
1.32 moko 14431: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14432: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.25 moko 14433: hard_links=yes
14434: $RM conftest*
14435: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14436: touch conftest.a
14437: ln conftest.a conftest.b 2>&5 || hard_links=no
14438: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.32 moko 14439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14440: $as_echo "$hard_links" >&6; }
1.25 moko 14441: if test "$hard_links" = no; then
1.32 moko 14442: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14443: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.25 moko 14444: need_locks=warn
14445: fi
14446: else
14447: need_locks=no
14448: fi
14449:
14450:
14451:
1.32 moko 14452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14453: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.25 moko 14454:
14455: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14456: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14457: case $host_os in
14458: aix[4-9]*)
14459: # If we're using GNU nm, then we don't want the "-C" option.
14460: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14461: # Also, AIX nm treats weak defined symbols like other global defined
14462: # symbols, whereas GNU nm marks them as "W".
14463: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14464: 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'
14465: else
14466: 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'
14467: fi
14468: ;;
14469: pw32*)
14470: export_symbols_cmds_CXX="$ltdll_cmds"
14471: ;;
14472: cygwin* | mingw* | cegcc*)
14473: case $cc_basename in
14474: cl*)
14475: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14476: ;;
14477: *)
14478: 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'
14479: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14480: ;;
14481: esac
14482: ;;
14483: *)
14484: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14485: ;;
14486: esac
14487:
1.32 moko 14488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14489: $as_echo "$ld_shlibs_CXX" >&6; }
1.25 moko 14490: test "$ld_shlibs_CXX" = no && can_build_shared=no
14491:
14492: with_gnu_ld_CXX=$with_gnu_ld
14493:
14494:
14495:
14496:
14497:
14498:
14499: #
14500: # Do we need to explicitly link libc?
14501: #
14502: case "x$archive_cmds_need_lc_CXX" in
14503: x|xyes)
14504: # Assume -lc should be added
14505: archive_cmds_need_lc_CXX=yes
14506:
14507: if test "$enable_shared" = yes && test "$GCC" = yes; then
14508: case $archive_cmds_CXX in
14509: *'~'*)
14510: # FIXME: we may have to deal with multi-command sequences.
14511: ;;
14512: '$CC '*)
14513: # Test whether the compiler implicitly links with -lc since on some
14514: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14515: # to ld, don't add -lc before -lgcc.
1.32 moko 14516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14517: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14518: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14519: $as_echo_n "(cached) " >&6
1.25 moko 14520: else
14521: $RM conftest*
14522: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14523:
1.32 moko 14524: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 14525: (eval $ac_compile) 2>&5
14526: ac_status=$?
1.32 moko 14527: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14528: test $ac_status = 0; } 2>conftest.err; then
1.25 moko 14529: soname=conftest
14530: lib=conftest
14531: libobjs=conftest.$ac_objext
14532: deplibs=
14533: wl=$lt_prog_compiler_wl_CXX
14534: pic_flag=$lt_prog_compiler_pic_CXX
14535: compiler_flags=-v
14536: linker_flags=-v
14537: verstring=
14538: output_objdir=.
14539: libname=conftest
14540: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14541: allow_undefined_flag_CXX=
1.32 moko 14542: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.25 moko 14543: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14544: ac_status=$?
1.32 moko 14545: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14546: test $ac_status = 0; }
1.25 moko 14547: then
14548: lt_cv_archive_cmds_need_lc_CXX=no
14549: else
14550: lt_cv_archive_cmds_need_lc_CXX=yes
14551: fi
14552: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14553: else
14554: cat conftest.err 1>&5
14555: fi
14556: $RM conftest*
14557:
14558: fi
1.32 moko 14559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14560: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.25 moko 14561: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14562: ;;
14563: esac
14564: fi
14565: ;;
14566: esac
14567:
14568:
14569:
14570:
14571:
14572:
14573:
14574:
14575:
14576:
14577:
14578:
14579:
14580:
14581:
14582:
14583:
14584:
14585:
14586:
14587:
14588:
14589:
14590:
14591:
14592:
14593:
14594:
14595:
14596:
14597:
14598:
14599:
14600:
14601:
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:
1.32 moko 14629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14630: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.25 moko 14631:
14632: library_names_spec=
14633: libname_spec='lib$name'
14634: soname_spec=
14635: shrext_cmds=".so"
14636: postinstall_cmds=
14637: postuninstall_cmds=
14638: finish_cmds=
14639: finish_eval=
14640: shlibpath_var=
14641: shlibpath_overrides_runpath=unknown
14642: version_type=none
14643: dynamic_linker="$host_os ld.so"
14644: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14645: need_lib_prefix=unknown
14646: hardcode_into_libs=no
14647:
14648: # when you set need_version to no, make sure it does not cause -set_version
14649: # flags to be left without arguments
14650: need_version=unknown
14651:
14652: case $host_os in
14653: aix3*)
14654: version_type=linux # correct to gnu/linux during the next big refactor
14655: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14656: shlibpath_var=LIBPATH
14657:
14658: # AIX 3 has no versioning support, so we append a major version to the name.
14659: soname_spec='${libname}${release}${shared_ext}$major'
14660: ;;
14661:
14662: aix[4-9]*)
14663: version_type=linux # correct to gnu/linux during the next big refactor
14664: need_lib_prefix=no
14665: need_version=no
14666: hardcode_into_libs=yes
14667: if test "$host_cpu" = ia64; then
14668: # AIX 5 supports IA64
14669: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14670: shlibpath_var=LD_LIBRARY_PATH
14671: else
14672: # With GCC up to 2.95.x, collect2 would create an import file
14673: # for dependence libraries. The import file would start with
14674: # the line `#! .'. This would cause the generated library to
14675: # depend on `.', always an invalid library. This was fixed in
14676: # development snapshots of GCC prior to 3.0.
14677: case $host_os in
14678: aix4 | aix4.[01] | aix4.[01].*)
14679: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14680: echo ' yes '
14681: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14682: :
14683: else
14684: can_build_shared=no
14685: fi
14686: ;;
14687: esac
14688: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14689: # soname into executable. Probably we can add versioning support to
14690: # collect2, so additional links can be useful in future.
14691: if test "$aix_use_runtimelinking" = yes; then
14692: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14693: # instead of lib<name>.a to let people know that these are not
14694: # typical AIX shared libraries.
14695: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696: else
14697: # We preserve .a as extension for shared libraries through AIX4.2
14698: # and later when we are not doing run time linking.
14699: library_names_spec='${libname}${release}.a $libname.a'
14700: soname_spec='${libname}${release}${shared_ext}$major'
14701: fi
14702: shlibpath_var=LIBPATH
14703: fi
14704: ;;
14705:
14706: amigaos*)
14707: case $host_cpu in
14708: powerpc)
14709: # Since July 2007 AmigaOS4 officially supports .so libraries.
14710: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14711: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14712: ;;
14713: m68k)
14714: library_names_spec='$libname.ixlibrary $libname.a'
14715: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14716: 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'
14717: ;;
14718: esac
14719: ;;
14720:
14721: beos*)
14722: library_names_spec='${libname}${shared_ext}'
14723: dynamic_linker="$host_os ld.so"
14724: shlibpath_var=LIBRARY_PATH
14725: ;;
14726:
14727: bsdi[45]*)
14728: version_type=linux # correct to gnu/linux during the next big refactor
14729: need_version=no
14730: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731: soname_spec='${libname}${release}${shared_ext}$major'
14732: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14733: shlibpath_var=LD_LIBRARY_PATH
14734: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14735: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14736: # the default ld.so.conf also contains /usr/contrib/lib and
14737: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14738: # libtool to hard-code these into programs
14739: ;;
14740:
14741: cygwin* | mingw* | pw32* | cegcc*)
14742: version_type=windows
14743: shrext_cmds=".dll"
14744: need_version=no
14745: need_lib_prefix=no
14746:
14747: case $GCC,$cc_basename in
14748: yes,*)
14749: # gcc
14750: library_names_spec='$libname.dll.a'
14751: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14752: postinstall_cmds='base_file=`basename \${file}`~
14753: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14754: dldir=$destdir/`dirname \$dlpath`~
14755: test -d \$dldir || mkdir -p \$dldir~
14756: $install_prog $dir/$dlname \$dldir/$dlname~
14757: chmod a+x \$dldir/$dlname~
14758: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14759: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14760: fi'
14761: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14762: dlpath=$dir/\$dldll~
14763: $RM \$dlpath'
14764: shlibpath_overrides_runpath=yes
14765:
14766: case $host_os in
14767: cygwin*)
14768: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14769: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14770:
14771: ;;
14772: mingw* | cegcc*)
14773: # MinGW DLLs use traditional 'lib' prefix
14774: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14775: ;;
14776: pw32*)
14777: # pw32 DLLs use 'pw' prefix rather than 'lib'
14778: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14779: ;;
14780: esac
14781: dynamic_linker='Win32 ld.exe'
14782: ;;
14783:
14784: *,cl*)
14785: # Native MSVC
14786: libname_spec='$name'
14787: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14788: library_names_spec='${libname}.dll.lib'
14789:
14790: case $build_os in
14791: mingw*)
14792: sys_lib_search_path_spec=
14793: lt_save_ifs=$IFS
14794: IFS=';'
14795: for lt_path in $LIB
14796: do
14797: IFS=$lt_save_ifs
14798: # Let DOS variable expansion print the short 8.3 style file name.
14799: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14800: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14801: done
14802: IFS=$lt_save_ifs
14803: # Convert to MSYS style.
14804: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14805: ;;
14806: cygwin*)
14807: # Convert to unix form, then to dos form, then back to unix form
14808: # but this time dos style (no spaces!) so that the unix form looks
14809: # like /cygdrive/c/PROGRA~1:/cygdr...
14810: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14811: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14812: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14813: ;;
14814: *)
14815: sys_lib_search_path_spec="$LIB"
14816: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14817: # It is most probably a Windows format PATH.
14818: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14819: else
14820: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14821: fi
14822: # FIXME: find the short name or the path components, as spaces are
14823: # common. (e.g. "Program Files" -> "PROGRA~1")
14824: ;;
14825: esac
14826:
14827: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14828: postinstall_cmds='base_file=`basename \${file}`~
14829: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14830: dldir=$destdir/`dirname \$dlpath`~
14831: test -d \$dldir || mkdir -p \$dldir~
14832: $install_prog $dir/$dlname \$dldir/$dlname'
14833: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14834: dlpath=$dir/\$dldll~
14835: $RM \$dlpath'
14836: shlibpath_overrides_runpath=yes
14837: dynamic_linker='Win32 link.exe'
14838: ;;
14839:
14840: *)
14841: # Assume MSVC wrapper
14842: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14843: dynamic_linker='Win32 ld.exe'
14844: ;;
14845: esac
14846: # FIXME: first we should search . and the directory the executable is in
14847: shlibpath_var=PATH
14848: ;;
14849:
14850: darwin* | rhapsody*)
14851: dynamic_linker="$host_os dyld"
14852: version_type=darwin
14853: need_lib_prefix=no
14854: need_version=no
14855: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14856: soname_spec='${libname}${release}${major}$shared_ext'
14857: shlibpath_overrides_runpath=yes
14858: shlibpath_var=DYLD_LIBRARY_PATH
14859: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14860:
14861: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14862: ;;
14863:
14864: dgux*)
14865: version_type=linux # correct to gnu/linux during the next big refactor
14866: need_lib_prefix=no
14867: need_version=no
14868: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14869: soname_spec='${libname}${release}${shared_ext}$major'
14870: shlibpath_var=LD_LIBRARY_PATH
14871: ;;
14872:
14873: freebsd* | dragonfly*)
14874: # DragonFly does not have aout. When/if they implement a new
14875: # versioning mechanism, adjust this.
14876: if test -x /usr/bin/objformat; then
14877: objformat=`/usr/bin/objformat`
14878: else
14879: case $host_os in
14880: freebsd[23].*) objformat=aout ;;
14881: *) objformat=elf ;;
14882: esac
14883: fi
14884: version_type=freebsd-$objformat
14885: case $version_type in
14886: freebsd-elf*)
14887: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14888: need_version=no
14889: need_lib_prefix=no
14890: ;;
14891: freebsd-*)
14892: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14893: need_version=yes
14894: ;;
14895: esac
14896: shlibpath_var=LD_LIBRARY_PATH
14897: case $host_os in
14898: freebsd2.*)
14899: shlibpath_overrides_runpath=yes
14900: ;;
14901: freebsd3.[01]* | freebsdelf3.[01]*)
14902: shlibpath_overrides_runpath=yes
14903: hardcode_into_libs=yes
14904: ;;
14905: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14906: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14907: shlibpath_overrides_runpath=no
14908: hardcode_into_libs=yes
14909: ;;
14910: *) # from 4.6 on, and DragonFly
14911: shlibpath_overrides_runpath=yes
14912: hardcode_into_libs=yes
14913: ;;
14914: esac
14915: ;;
14916:
14917: gnu*)
14918: version_type=linux # correct to gnu/linux during the next big refactor
14919: need_lib_prefix=no
14920: need_version=no
14921: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14922: soname_spec='${libname}${release}${shared_ext}$major'
14923: shlibpath_var=LD_LIBRARY_PATH
14924: shlibpath_overrides_runpath=no
14925: hardcode_into_libs=yes
14926: ;;
14927:
14928: haiku*)
14929: version_type=linux # correct to gnu/linux during the next big refactor
14930: need_lib_prefix=no
14931: need_version=no
14932: dynamic_linker="$host_os runtime_loader"
14933: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14934: soname_spec='${libname}${release}${shared_ext}$major'
14935: shlibpath_var=LIBRARY_PATH
14936: shlibpath_overrides_runpath=yes
14937: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14938: hardcode_into_libs=yes
14939: ;;
14940:
14941: hpux9* | hpux10* | hpux11*)
14942: # Give a soname corresponding to the major version so that dld.sl refuses to
14943: # link against other versions.
14944: version_type=sunos
14945: need_lib_prefix=no
14946: need_version=no
14947: case $host_cpu in
14948: ia64*)
14949: shrext_cmds='.so'
14950: hardcode_into_libs=yes
14951: dynamic_linker="$host_os dld.so"
14952: shlibpath_var=LD_LIBRARY_PATH
14953: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14954: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955: soname_spec='${libname}${release}${shared_ext}$major'
14956: if test "X$HPUX_IA64_MODE" = X32; then
14957: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14958: else
14959: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14960: fi
14961: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14962: ;;
14963: hppa*64*)
14964: shrext_cmds='.sl'
14965: hardcode_into_libs=yes
14966: dynamic_linker="$host_os dld.sl"
14967: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14968: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14969: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970: soname_spec='${libname}${release}${shared_ext}$major'
14971: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14972: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14973: ;;
14974: *)
14975: shrext_cmds='.sl'
14976: dynamic_linker="$host_os dld.sl"
14977: shlibpath_var=SHLIB_PATH
14978: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14979: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980: soname_spec='${libname}${release}${shared_ext}$major'
14981: ;;
14982: esac
14983: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14984: postinstall_cmds='chmod 555 $lib'
14985: # or fails outright, so override atomically:
14986: install_override_mode=555
14987: ;;
14988:
14989: interix[3-9]*)
14990: version_type=linux # correct to gnu/linux during the next big refactor
14991: need_lib_prefix=no
14992: need_version=no
14993: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14994: soname_spec='${libname}${release}${shared_ext}$major'
14995: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14996: shlibpath_var=LD_LIBRARY_PATH
14997: shlibpath_overrides_runpath=no
14998: hardcode_into_libs=yes
14999: ;;
15000:
15001: irix5* | irix6* | nonstopux*)
15002: case $host_os in
15003: nonstopux*) version_type=nonstopux ;;
15004: *)
15005: if test "$lt_cv_prog_gnu_ld" = yes; then
15006: version_type=linux # correct to gnu/linux during the next big refactor
15007: else
15008: version_type=irix
15009: fi ;;
15010: esac
15011: need_lib_prefix=no
15012: need_version=no
15013: soname_spec='${libname}${release}${shared_ext}$major'
15014: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15015: case $host_os in
15016: irix5* | nonstopux*)
15017: libsuff= shlibsuff=
15018: ;;
15019: *)
15020: case $LD in # libtool.m4 will add one of these switches to LD
15021: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15022: libsuff= shlibsuff= libmagic=32-bit;;
15023: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15024: libsuff=32 shlibsuff=N32 libmagic=N32;;
15025: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15026: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15027: *) libsuff= shlibsuff= libmagic=never-match;;
15028: esac
15029: ;;
15030: esac
15031: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15032: shlibpath_overrides_runpath=no
15033: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15034: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15035: hardcode_into_libs=yes
15036: ;;
15037:
15038: # No shared lib support for Linux oldld, aout, or coff.
15039: linux*oldld* | linux*aout* | linux*coff*)
15040: dynamic_linker=no
15041: ;;
15042:
15043: # This must be glibc/ELF.
15044: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15045: version_type=linux # correct to gnu/linux during the next big refactor
15046: need_lib_prefix=no
15047: need_version=no
15048: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049: soname_spec='${libname}${release}${shared_ext}$major'
15050: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15051: shlibpath_var=LD_LIBRARY_PATH
15052: shlibpath_overrides_runpath=no
15053:
15054: # Some binutils ld are patched to set DT_RUNPATH
1.32 moko 15055: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15056: $as_echo_n "(cached) " >&6
1.25 moko 15057: else
15058: lt_cv_shlibpath_overrides_runpath=no
15059: save_LDFLAGS=$LDFLAGS
15060: save_libdir=$libdir
15061: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15062: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.32 moko 15063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15064: /* end confdefs.h. */
15065:
15066: int
15067: main ()
15068: {
15069:
15070: ;
15071: return 0;
15072: }
15073: _ACEOF
1.32 moko 15074: if ac_fn_cxx_try_link "$LINENO"; then :
15075: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.25 moko 15076: lt_cv_shlibpath_overrides_runpath=yes
15077: fi
15078: fi
1.32 moko 15079: rm -f core conftest.err conftest.$ac_objext \
15080: conftest$ac_exeext conftest.$ac_ext
1.25 moko 15081: LDFLAGS=$save_LDFLAGS
15082: libdir=$save_libdir
15083:
15084: fi
15085:
15086: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15087:
15088: # This implies no fast_install, which is unacceptable.
15089: # Some rework will be needed to allow for fast_install
15090: # before this can be enabled.
15091: hardcode_into_libs=yes
15092:
15093: # Append ld.so.conf contents to the search path
15094: if test -f /etc/ld.so.conf; then
15095: 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' ' '`
15096: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15097: fi
15098:
15099: # We used to test for /lib/ld.so.1 and disable shared libraries on
15100: # powerpc, because MkLinux only supported shared libraries with the
15101: # GNU dynamic linker. Since this was broken with cross compilers,
15102: # most powerpc-linux boxes support dynamic linking these days and
15103: # people can always --disable-shared, the test was removed, and we
15104: # assume the GNU/Linux dynamic linker is in use.
15105: dynamic_linker='GNU/Linux ld.so'
15106: ;;
15107:
15108: netbsd*)
15109: version_type=sunos
15110: need_lib_prefix=no
15111: need_version=no
15112: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15113: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15114: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15115: dynamic_linker='NetBSD (a.out) ld.so'
15116: else
15117: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15118: soname_spec='${libname}${release}${shared_ext}$major'
15119: dynamic_linker='NetBSD ld.elf_so'
15120: fi
15121: shlibpath_var=LD_LIBRARY_PATH
15122: shlibpath_overrides_runpath=yes
15123: hardcode_into_libs=yes
15124: ;;
15125:
15126: newsos6)
15127: version_type=linux # correct to gnu/linux during the next big refactor
15128: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15129: shlibpath_var=LD_LIBRARY_PATH
15130: shlibpath_overrides_runpath=yes
15131: ;;
15132:
15133: *nto* | *qnx*)
15134: version_type=qnx
15135: need_lib_prefix=no
15136: need_version=no
15137: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138: soname_spec='${libname}${release}${shared_ext}$major'
15139: shlibpath_var=LD_LIBRARY_PATH
15140: shlibpath_overrides_runpath=no
15141: hardcode_into_libs=yes
15142: dynamic_linker='ldqnx.so'
15143: ;;
15144:
15145: openbsd*)
15146: version_type=sunos
15147: sys_lib_dlsearch_path_spec="/usr/lib"
15148: need_lib_prefix=no
15149: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15150: case $host_os in
15151: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15152: *) need_version=no ;;
15153: esac
15154: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15155: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15156: shlibpath_var=LD_LIBRARY_PATH
15157: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15158: case $host_os in
15159: openbsd2.[89] | openbsd2.[89].*)
15160: shlibpath_overrides_runpath=no
15161: ;;
15162: *)
15163: shlibpath_overrides_runpath=yes
15164: ;;
15165: esac
15166: else
15167: shlibpath_overrides_runpath=yes
15168: fi
15169: ;;
15170:
15171: os2*)
15172: libname_spec='$name'
15173: shrext_cmds=".dll"
15174: need_lib_prefix=no
15175: library_names_spec='$libname${shared_ext} $libname.a'
15176: dynamic_linker='OS/2 ld.exe'
15177: shlibpath_var=LIBPATH
15178: ;;
15179:
15180: osf3* | osf4* | osf5*)
15181: version_type=osf
15182: need_lib_prefix=no
15183: need_version=no
15184: soname_spec='${libname}${release}${shared_ext}$major'
15185: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186: shlibpath_var=LD_LIBRARY_PATH
15187: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15188: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15189: ;;
15190:
15191: rdos*)
15192: dynamic_linker=no
15193: ;;
15194:
15195: solaris*)
15196: version_type=linux # correct to gnu/linux during the next big refactor
15197: need_lib_prefix=no
15198: need_version=no
15199: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200: soname_spec='${libname}${release}${shared_ext}$major'
15201: shlibpath_var=LD_LIBRARY_PATH
15202: shlibpath_overrides_runpath=yes
15203: hardcode_into_libs=yes
15204: # ldd complains unless libraries are executable
15205: postinstall_cmds='chmod +x $lib'
15206: ;;
15207:
15208: sunos4*)
15209: version_type=sunos
15210: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15211: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15212: shlibpath_var=LD_LIBRARY_PATH
15213: shlibpath_overrides_runpath=yes
15214: if test "$with_gnu_ld" = yes; then
15215: need_lib_prefix=no
15216: fi
15217: need_version=yes
15218: ;;
15219:
15220: sysv4 | sysv4.3*)
15221: version_type=linux # correct to gnu/linux during the next big refactor
15222: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223: soname_spec='${libname}${release}${shared_ext}$major'
15224: shlibpath_var=LD_LIBRARY_PATH
15225: case $host_vendor in
15226: sni)
15227: shlibpath_overrides_runpath=no
15228: need_lib_prefix=no
15229: runpath_var=LD_RUN_PATH
15230: ;;
15231: siemens)
15232: need_lib_prefix=no
15233: ;;
15234: motorola)
15235: need_lib_prefix=no
15236: need_version=no
15237: shlibpath_overrides_runpath=no
15238: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15239: ;;
15240: esac
15241: ;;
15242:
15243: sysv4*MP*)
15244: if test -d /usr/nec ;then
15245: version_type=linux # correct to gnu/linux during the next big refactor
15246: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15247: soname_spec='$libname${shared_ext}.$major'
15248: shlibpath_var=LD_LIBRARY_PATH
15249: fi
15250: ;;
15251:
15252: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15253: version_type=freebsd-elf
15254: need_lib_prefix=no
15255: need_version=no
15256: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15257: soname_spec='${libname}${release}${shared_ext}$major'
15258: shlibpath_var=LD_LIBRARY_PATH
15259: shlibpath_overrides_runpath=yes
15260: hardcode_into_libs=yes
15261: if test "$with_gnu_ld" = yes; then
15262: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15263: else
15264: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15265: case $host_os in
15266: sco3.2v5*)
15267: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15268: ;;
15269: esac
15270: fi
15271: sys_lib_dlsearch_path_spec='/usr/lib'
15272: ;;
15273:
15274: tpf*)
15275: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15276: version_type=linux # correct to gnu/linux during the next big refactor
15277: need_lib_prefix=no
15278: need_version=no
15279: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280: shlibpath_var=LD_LIBRARY_PATH
15281: shlibpath_overrides_runpath=no
15282: hardcode_into_libs=yes
15283: ;;
15284:
15285: uts4*)
15286: version_type=linux # correct to gnu/linux during the next big refactor
15287: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288: soname_spec='${libname}${release}${shared_ext}$major'
15289: shlibpath_var=LD_LIBRARY_PATH
15290: ;;
15291:
15292: *)
15293: dynamic_linker=no
15294: ;;
15295: esac
1.32 moko 15296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15297: $as_echo "$dynamic_linker" >&6; }
1.25 moko 15298: test "$dynamic_linker" = no && can_build_shared=no
15299:
15300: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15301: if test "$GCC" = yes; then
15302: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15303: fi
15304:
15305: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15306: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15307: fi
15308: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15309: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15310: fi
15311:
15312:
15313:
15314:
15315:
15316:
15317:
15318:
15319:
15320:
15321:
15322:
15323:
15324:
15325:
15326:
15327:
15328:
15329:
15330:
15331:
15332:
15333:
15334:
15335:
15336:
15337:
15338:
15339:
15340:
15341:
15342:
15343:
15344:
15345:
15346:
15347:
15348:
1.32 moko 15349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15350: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.25 moko 15351: hardcode_action_CXX=
15352: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15353: test -n "$runpath_var_CXX" ||
15354: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15355:
15356: # We can hardcode non-existent directories.
15357: if test "$hardcode_direct_CXX" != no &&
15358: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15359: # have to relink, otherwise we might link with an installed library
15360: # when we should be linking with a yet-to-be-installed one
15361: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15362: test "$hardcode_minus_L_CXX" != no; then
15363: # Linking always hardcodes the temporary library directory.
15364: hardcode_action_CXX=relink
15365: else
15366: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15367: hardcode_action_CXX=immediate
15368: fi
15369: else
15370: # We cannot hardcode anything, or else we can only hardcode existing
15371: # directories.
15372: hardcode_action_CXX=unsupported
15373: fi
1.32 moko 15374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15375: $as_echo "$hardcode_action_CXX" >&6; }
1.25 moko 15376:
15377: if test "$hardcode_action_CXX" = relink ||
15378: test "$inherit_rpath_CXX" = yes; then
15379: # Fast installation is not supported
15380: enable_fast_install=no
15381: elif test "$shlibpath_overrides_runpath" = yes ||
15382: test "$enable_shared" = no; then
15383: # Fast installation is not necessary
15384: enable_fast_install=needless
15385: fi
15386:
15387:
15388:
15389:
15390:
15391:
15392:
15393: fi # test -n "$compiler"
15394:
15395: CC=$lt_save_CC
15396: CFLAGS=$lt_save_CFLAGS
15397: LDCXX=$LD
15398: LD=$lt_save_LD
15399: GCC=$lt_save_GCC
15400: with_gnu_ld=$lt_save_with_gnu_ld
15401: lt_cv_path_LDCXX=$lt_cv_path_LD
15402: lt_cv_path_LD=$lt_save_path_LD
15403: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15404: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15405: fi # test "$_lt_caught_CXX_error" != yes
15406:
15407: ac_ext=c
15408: ac_cpp='$CPP $CPPFLAGS'
15409: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15410: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15411: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15412:
15413:
15414:
15415:
15416:
15417:
15418:
15419:
15420:
15421:
15422:
15423:
15424:
15425:
15426:
1.32 moko 15427: ac_config_commands="$ac_config_commands libtool"
1.25 moko 15428:
15429:
15430:
15431:
15432: # Only expand once:
15433:
15434:
1.32 moko 15435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15436: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15437: if ${libltdl_cv_shlibext+:} false; then :
15438: $as_echo_n "(cached) " >&6
1.25 moko 15439: else
15440:
15441: module=yes
15442: eval libltdl_cv_shlibext=$shrext_cmds
15443: module=no
15444: eval libltdl_cv_shrext=$shrext_cmds
15445:
15446: fi
1.32 moko 15447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15448: $as_echo "$libltdl_cv_shlibext" >&6; }
1.25 moko 15449: if test -n "$libltdl_cv_shlibext"; then
15450:
15451: cat >>confdefs.h <<_ACEOF
15452: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15453: _ACEOF
15454:
15455: fi
15456: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15457:
15458: cat >>confdefs.h <<_ACEOF
15459: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15460: _ACEOF
15461:
15462: fi
15463:
1.32 moko 15464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15465: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15466: if ${lt_cv_module_path_var+:} false; then :
15467: $as_echo_n "(cached) " >&6
1.25 moko 15468: else
15469: lt_cv_module_path_var="$shlibpath_var"
15470: fi
1.32 moko 15471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15472: $as_echo "$lt_cv_module_path_var" >&6; }
1.25 moko 15473: if test -n "$lt_cv_module_path_var"; then
15474:
15475: cat >>confdefs.h <<_ACEOF
15476: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15477: _ACEOF
15478:
15479: fi
15480:
1.32 moko 15481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15482: $as_echo_n "checking for the default library search path... " >&6; }
15483: if ${lt_cv_sys_dlsearch_path+:} false; then :
15484: $as_echo_n "(cached) " >&6
1.25 moko 15485: else
15486: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15487: fi
1.32 moko 15488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15489: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.25 moko 15490: if test -n "$lt_cv_sys_dlsearch_path"; then
15491: sys_dlsearch_path=
15492: for dir in $lt_cv_sys_dlsearch_path; do
15493: if test -z "$sys_dlsearch_path"; then
15494: sys_dlsearch_path="$dir"
15495: else
15496: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15497: fi
15498: done
15499:
15500: cat >>confdefs.h <<_ACEOF
15501: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15502: _ACEOF
15503:
15504: fi
15505:
15506:
15507: LT_DLLOADERS=
15508:
15509:
15510: ac_ext=c
15511: ac_cpp='$CPP $CPPFLAGS'
15512: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15513: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15514: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15515:
15516:
15517: LIBADD_DLOPEN=
1.32 moko 15518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15519: $as_echo_n "checking for library containing dlopen... " >&6; }
15520: if ${ac_cv_search_dlopen+:} false; then :
15521: $as_echo_n "(cached) " >&6
1.25 moko 15522: else
15523: ac_func_search_save_LIBS=$LIBS
1.32 moko 15524: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15525: /* end confdefs.h. */
15526:
1.32 moko 15527: /* Override any GCC internal prototype to avoid an error.
15528: Use char because int might match the return type of a GCC
15529: builtin and then its argument prototype would still apply. */
1.25 moko 15530: #ifdef __cplusplus
15531: extern "C"
15532: #endif
15533: char dlopen ();
15534: int
15535: main ()
15536: {
1.32 moko 15537: return dlopen ();
1.25 moko 15538: ;
15539: return 0;
15540: }
15541: _ACEOF
1.32 moko 15542: for ac_lib in '' dl; do
15543: if test -z "$ac_lib"; then
15544: ac_res="none required"
15545: else
15546: ac_res=-l$ac_lib
15547: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15548: fi
15549: if ac_fn_c_try_link "$LINENO"; then :
15550: ac_cv_search_dlopen=$ac_res
15551: fi
15552: rm -f core conftest.err conftest.$ac_objext \
15553: conftest$ac_exeext
15554: if ${ac_cv_search_dlopen+:} false; then :
15555: break
1.25 moko 15556: fi
1.32 moko 15557: done
15558: if ${ac_cv_search_dlopen+:} false; then :
1.25 moko 15559:
15560: else
1.32 moko 15561: ac_cv_search_dlopen=no
1.25 moko 15562: fi
1.32 moko 15563: rm conftest.$ac_ext
1.25 moko 15564: LIBS=$ac_func_search_save_LIBS
15565: fi
1.32 moko 15566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15567: $as_echo "$ac_cv_search_dlopen" >&6; }
15568: ac_res=$ac_cv_search_dlopen
15569: if test "$ac_res" != no; then :
15570: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.25 moko 15571:
1.32 moko 15572: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.25 moko 15573:
15574: if test "$ac_cv_search_dlopen" != "none required" ; then
15575: LIBADD_DLOPEN="-ldl"
15576: fi
15577: libltdl_cv_lib_dl_dlopen="yes"
15578: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15579: else
1.32 moko 15580: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15581: /* end confdefs.h. */
15582: #if HAVE_DLFCN_H
15583: # include <dlfcn.h>
15584: #endif
15585:
15586: int
15587: main ()
15588: {
15589: dlopen(0, 0);
15590: ;
15591: return 0;
15592: }
15593: _ACEOF
1.32 moko 15594: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 15595:
1.32 moko 15596: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.25 moko 15597:
15598: libltdl_cv_func_dlopen="yes"
15599: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15600: else
1.32 moko 15601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15602: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15603: if ${ac_cv_lib_svld_dlopen+:} false; then :
15604: $as_echo_n "(cached) " >&6
1.25 moko 15605: else
15606: ac_check_lib_save_LIBS=$LIBS
15607: LIBS="-lsvld $LIBS"
1.32 moko 15608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15609: /* end confdefs.h. */
15610:
1.32 moko 15611: /* Override any GCC internal prototype to avoid an error.
15612: Use char because int might match the return type of a GCC
1.25 moko 15613: builtin and then its argument prototype would still apply. */
15614: #ifdef __cplusplus
1.32 moko 15615: extern "C"
1.25 moko 15616: #endif
1.32 moko 15617: char dlopen ();
1.25 moko 15618: int
15619: main ()
15620: {
1.32 moko 15621: return dlopen ();
1.25 moko 15622: ;
15623: return 0;
15624: }
15625: _ACEOF
1.32 moko 15626: if ac_fn_c_try_link "$LINENO"; then :
15627: ac_cv_lib_svld_dlopen=yes
1.25 moko 15628: else
1.32 moko 15629: ac_cv_lib_svld_dlopen=no
15630: fi
15631: rm -f core conftest.err conftest.$ac_objext \
15632: conftest$ac_exeext conftest.$ac_ext
15633: LIBS=$ac_check_lib_save_LIBS
15634: fi
15635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15636: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15637: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15638:
15639: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15640:
15641: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15642: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15643: fi
1.25 moko 15644:
15645: fi
1.32 moko 15646: rm -f core conftest.err conftest.$ac_objext \
15647: conftest$ac_exeext conftest.$ac_ext
1.25 moko 15648: fi
1.32 moko 15649:
15650: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15651: then
15652: lt_save_LIBS="$LIBS"
15653: LIBS="$LIBS $LIBADD_DLOPEN"
15654: for ac_func in dlerror
15655: do :
15656: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15657: if test "x$ac_cv_func_dlerror" = xyes; then :
1.25 moko 15658: cat >>confdefs.h <<_ACEOF
1.32 moko 15659: #define HAVE_DLERROR 1
1.25 moko 15660: _ACEOF
15661:
15662: fi
15663: done
15664:
15665: LIBS="$lt_save_LIBS"
15666: fi
15667:
15668:
15669: LIBADD_SHL_LOAD=
1.32 moko 15670: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15671: if test "x$ac_cv_func_shl_load" = xyes; then :
1.25 moko 15672:
1.32 moko 15673: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.25 moko 15674:
15675: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15676: else
1.32 moko 15677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15678: $as_echo_n "checking for shl_load in -ldld... " >&6; }
15679: if ${ac_cv_lib_dld_shl_load+:} false; then :
15680: $as_echo_n "(cached) " >&6
1.25 moko 15681: else
15682: ac_check_lib_save_LIBS=$LIBS
15683: LIBS="-ldld $LIBS"
1.32 moko 15684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15685: /* end confdefs.h. */
15686:
1.32 moko 15687: /* Override any GCC internal prototype to avoid an error.
15688: Use char because int might match the return type of a GCC
15689: builtin and then its argument prototype would still apply. */
1.25 moko 15690: #ifdef __cplusplus
15691: extern "C"
15692: #endif
15693: char shl_load ();
15694: int
15695: main ()
15696: {
1.32 moko 15697: return shl_load ();
1.25 moko 15698: ;
15699: return 0;
15700: }
15701: _ACEOF
1.32 moko 15702: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 15703: ac_cv_lib_dld_shl_load=yes
15704: else
1.32 moko 15705: ac_cv_lib_dld_shl_load=no
1.25 moko 15706: fi
1.32 moko 15707: rm -f core conftest.err conftest.$ac_objext \
15708: conftest$ac_exeext conftest.$ac_ext
1.25 moko 15709: LIBS=$ac_check_lib_save_LIBS
15710: fi
1.32 moko 15711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15712: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15713: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.25 moko 15714:
1.32 moko 15715: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.25 moko 15716:
15717: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15718: LIBADD_SHL_LOAD="-ldld"
15719: fi
15720:
15721: fi
15722:
15723:
15724:
15725: case $host_os in
15726: darwin[1567].*)
15727: # We only want this for pre-Mac OS X 10.4.
1.32 moko 15728: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15729: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
1.25 moko 15730:
1.32 moko 15731: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.25 moko 15732:
15733: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15734: fi
15735:
15736: ;;
15737: beos*)
15738: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15739: ;;
15740: cygwin* | mingw* | os2* | pw32*)
1.32 moko 15741: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15742: "
15743: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15744: ac_have_decl=1
1.25 moko 15745: else
1.32 moko 15746: ac_have_decl=0
1.25 moko 15747: fi
15748:
15749: cat >>confdefs.h <<_ACEOF
1.32 moko 15750: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.25 moko 15751: _ACEOF
15752:
15753: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15754: ;;
15755: esac
15756:
1.32 moko 15757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15758: $as_echo_n "checking for dld_link in -ldld... " >&6; }
15759: if ${ac_cv_lib_dld_dld_link+:} false; then :
15760: $as_echo_n "(cached) " >&6
1.25 moko 15761: else
15762: ac_check_lib_save_LIBS=$LIBS
15763: LIBS="-ldld $LIBS"
1.32 moko 15764: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15765: /* end confdefs.h. */
15766:
1.32 moko 15767: /* Override any GCC internal prototype to avoid an error.
15768: Use char because int might match the return type of a GCC
15769: builtin and then its argument prototype would still apply. */
1.25 moko 15770: #ifdef __cplusplus
15771: extern "C"
15772: #endif
15773: char dld_link ();
15774: int
15775: main ()
15776: {
1.32 moko 15777: return dld_link ();
1.25 moko 15778: ;
15779: return 0;
15780: }
15781: _ACEOF
1.32 moko 15782: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 15783: ac_cv_lib_dld_dld_link=yes
15784: else
1.32 moko 15785: ac_cv_lib_dld_dld_link=no
1.25 moko 15786: fi
1.32 moko 15787: rm -f core conftest.err conftest.$ac_objext \
15788: conftest$ac_exeext conftest.$ac_ext
1.25 moko 15789: LIBS=$ac_check_lib_save_LIBS
15790: fi
1.32 moko 15791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15792: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15793: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.25 moko 15794:
1.32 moko 15795: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.25 moko 15796:
15797: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15798: fi
15799:
15800:
15801:
15802:
15803: LT_DLPREOPEN=
15804: if test -n "$LT_DLLOADERS"
15805: then
15806: for lt_loader in $LT_DLLOADERS; do
15807: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15808: done
15809:
1.32 moko 15810: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.25 moko 15811:
15812: fi
15813:
15814:
15815: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15816:
15817:
15818: ac_ext=c
15819: ac_cpp='$CPP $CPPFLAGS'
15820: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15821: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15822: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15823:
15824:
1.32 moko 15825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15826: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15827: if ${lt_cv_sys_symbol_underscore+:} false; then :
15828: $as_echo_n "(cached) " >&6
1.25 moko 15829: else
15830: lt_cv_sys_symbol_underscore=no
15831: cat > conftest.$ac_ext <<_LT_EOF
15832: void nm_test_func(){}
15833: int main(){nm_test_func;return 0;}
15834: _LT_EOF
1.32 moko 15835: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 15836: (eval $ac_compile) 2>&5
15837: ac_status=$?
1.32 moko 15838: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15839: test $ac_status = 0; }; then
1.25 moko 15840: # Now try to grab the symbols.
15841: ac_nlist=conftest.nm
1.32 moko 15842: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.25 moko 15843: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15844: ac_status=$?
1.32 moko 15845: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15846: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.25 moko 15847: # See whether the symbols have a leading underscore.
15848: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15849: lt_cv_sys_symbol_underscore=yes
15850: else
15851: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15852: :
15853: else
15854: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15855: fi
15856: fi
15857: else
15858: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15859: fi
15860: else
15861: echo "configure: failed program was:" >&5
15862: cat conftest.c >&5
15863: fi
15864: rm -rf conftest*
15865:
15866: fi
1.32 moko 15867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15868: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.25 moko 15869: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15870:
15871:
15872: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15873: if test x"$libltdl_cv_func_dlopen" = xyes ||
15874: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.32 moko 15875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15876: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15877: if ${libltdl_cv_need_uscore+:} false; then :
15878: $as_echo_n "(cached) " >&6
1.25 moko 15879: else
15880: libltdl_cv_need_uscore=unknown
15881: save_LIBS="$LIBS"
15882: LIBS="$LIBS $LIBADD_DLOPEN"
15883: if test "$cross_compiling" = yes; then :
15884: libltdl_cv_need_uscore=cross
15885: else
15886: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15887: lt_status=$lt_dlunknown
15888: cat > conftest.$ac_ext <<_LT_EOF
15889: #line $LINENO "configure"
15890: #include "confdefs.h"
15891:
15892: #if HAVE_DLFCN_H
15893: #include <dlfcn.h>
15894: #endif
15895:
15896: #include <stdio.h>
15897:
15898: #ifdef RTLD_GLOBAL
15899: # define LT_DLGLOBAL RTLD_GLOBAL
15900: #else
15901: # ifdef DL_GLOBAL
15902: # define LT_DLGLOBAL DL_GLOBAL
15903: # else
15904: # define LT_DLGLOBAL 0
15905: # endif
15906: #endif
15907:
15908: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15909: find out it does not work in some platform. */
15910: #ifndef LT_DLLAZY_OR_NOW
15911: # ifdef RTLD_LAZY
15912: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15913: # else
15914: # ifdef DL_LAZY
15915: # define LT_DLLAZY_OR_NOW DL_LAZY
15916: # else
15917: # ifdef RTLD_NOW
15918: # define LT_DLLAZY_OR_NOW RTLD_NOW
15919: # else
15920: # ifdef DL_NOW
15921: # define LT_DLLAZY_OR_NOW DL_NOW
15922: # else
15923: # define LT_DLLAZY_OR_NOW 0
15924: # endif
15925: # endif
15926: # endif
15927: # endif
15928: #endif
15929:
15930: /* When -fvisbility=hidden is used, assume the code has been annotated
15931: correspondingly for the symbols needed. */
15932: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15933: int fnord () __attribute__((visibility("default")));
15934: #endif
15935:
15936: int fnord () { return 42; }
15937: int main ()
15938: {
15939: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15940: int status = $lt_dlunknown;
15941:
15942: if (self)
15943: {
15944: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15945: else
15946: {
15947: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15948: else puts (dlerror ());
15949: }
15950: /* dlclose (self); */
15951: }
15952: else
15953: puts (dlerror ());
15954:
15955: return status;
15956: }
15957: _LT_EOF
1.32 moko 15958: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.25 moko 15959: (eval $ac_link) 2>&5
15960: ac_status=$?
1.32 moko 15961: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15962: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.25 moko 15963: (./conftest; exit; ) >&5 2>/dev/null
15964: lt_status=$?
15965: case x$lt_status in
15966: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15967: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15968: x$lt_dlunknown|x*) ;;
15969: esac
15970: else :
15971: # compilation failed
15972:
15973: fi
15974: fi
15975: rm -fr conftest*
15976:
15977: LIBS="$save_LIBS"
15978:
15979: fi
1.32 moko 15980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
15981: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.25 moko 15982: fi
15983: fi
15984:
15985: if test x"$libltdl_cv_need_uscore" = xyes; then
15986:
1.32 moko 15987: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.25 moko 15988:
15989: fi
15990:
1.32 moko 15991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
15992: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
15993: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
15994: $as_echo_n "(cached) " >&6
1.25 moko 15995: else
15996: # PORTME does your system automatically load deplibs for dlopen?
15997: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
15998: # For now, we just catch OSes we know something about -- in the
15999: # future, we'll try test this programmatically.
16000: lt_cv_sys_dlopen_deplibs=unknown
16001: case $host_os in
16002: aix3*|aix4.1.*|aix4.2.*)
16003: # Unknown whether this is true for these versions of AIX, but
16004: # we want this `case' here to explicitly catch those versions.
16005: lt_cv_sys_dlopen_deplibs=unknown
16006: ;;
16007: aix[4-9]*)
16008: lt_cv_sys_dlopen_deplibs=yes
16009: ;;
16010: amigaos*)
16011: case $host_cpu in
16012: powerpc)
16013: lt_cv_sys_dlopen_deplibs=no
16014: ;;
16015: esac
16016: ;;
16017: darwin*)
16018: # Assuming the user has installed a libdl from somewhere, this is true
16019: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16020: lt_cv_sys_dlopen_deplibs=yes
16021: ;;
16022: freebsd* | dragonfly*)
16023: lt_cv_sys_dlopen_deplibs=yes
16024: ;;
16025: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16026: # GNU and its variants, using gnu ld.so (Glibc)
16027: lt_cv_sys_dlopen_deplibs=yes
16028: ;;
16029: hpux10*|hpux11*)
16030: lt_cv_sys_dlopen_deplibs=yes
16031: ;;
16032: interix*)
16033: lt_cv_sys_dlopen_deplibs=yes
16034: ;;
16035: irix[12345]*|irix6.[01]*)
16036: # Catch all versions of IRIX before 6.2, and indicate that we don't
16037: # know how it worked for any of those versions.
16038: lt_cv_sys_dlopen_deplibs=unknown
16039: ;;
16040: irix*)
16041: # The case above catches anything before 6.2, and it's known that
16042: # at 6.2 and later dlopen does load deplibs.
16043: lt_cv_sys_dlopen_deplibs=yes
16044: ;;
16045: netbsd*)
16046: lt_cv_sys_dlopen_deplibs=yes
16047: ;;
16048: openbsd*)
16049: lt_cv_sys_dlopen_deplibs=yes
16050: ;;
16051: osf[1234]*)
16052: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16053: # it did *not* use an RPATH in a shared library to find objects the
16054: # library depends on, so we explicitly say `no'.
16055: lt_cv_sys_dlopen_deplibs=no
16056: ;;
16057: osf5.0|osf5.0a|osf5.1)
16058: # dlopen *does* load deplibs and with the right loader patch applied
16059: # it even uses RPATH in a shared library to search for shared objects
16060: # that the library depends on, but there's no easy way to know if that
16061: # patch is installed. Since this is the case, all we can really
16062: # say is unknown -- it depends on the patch being installed. If
16063: # it is, this changes to `yes'. Without it, it would be `no'.
16064: lt_cv_sys_dlopen_deplibs=unknown
16065: ;;
16066: osf*)
16067: # the two cases above should catch all versions of osf <= 5.1. Read
16068: # the comments above for what we know about them.
16069: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16070: # is used to find them so we can finally say `yes'.
16071: lt_cv_sys_dlopen_deplibs=yes
16072: ;;
16073: qnx*)
16074: lt_cv_sys_dlopen_deplibs=yes
16075: ;;
16076: solaris*)
16077: lt_cv_sys_dlopen_deplibs=yes
16078: ;;
16079: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16080: libltdl_cv_sys_dlopen_deplibs=yes
16081: ;;
16082: esac
16083:
16084: fi
1.32 moko 16085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16086: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.25 moko 16087: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16088:
1.32 moko 16089: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.25 moko 16090:
16091: fi
16092:
16093: :
16094:
16095: for ac_header in argz.h
1.32 moko 16096: do :
16097: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16098: "
16099: if test "x$ac_cv_header_argz_h" = xyes; then :
1.25 moko 16100: cat >>confdefs.h <<_ACEOF
1.32 moko 16101: #define HAVE_ARGZ_H 1
1.25 moko 16102: _ACEOF
16103:
16104: fi
16105:
16106: done
16107:
16108:
1.32 moko 16109: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.25 moko 16110: # include <argz.h>
16111: #endif
1.32 moko 16112: "
16113: if test "x$ac_cv_type_error_t" = xyes; then :
1.25 moko 16114:
1.32 moko 16115: cat >>confdefs.h <<_ACEOF
16116: #define HAVE_ERROR_T 1
1.25 moko 16117: _ACEOF
1.32 moko 16118:
16119:
1.25 moko 16120: else
16121:
1.32 moko 16122: $as_echo "#define error_t int" >>confdefs.h
16123:
16124:
16125: $as_echo "#define __error_t_defined 1" >>confdefs.h
16126:
1.25 moko 16127: fi
1.32 moko 16128:
16129:
16130: ARGZ_H=
16131: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16132: argz_next argz_stringify
16133: do :
16134: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16135: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16136: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.25 moko 16137: cat >>confdefs.h <<_ACEOF
1.32 moko 16138: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.25 moko 16139: _ACEOF
16140:
16141: else
16142: ARGZ_H=argz.h;
16143:
16144: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16145:
16146: fi
16147: done
16148:
16149:
1.32 moko 16150: if test -z "$ARGZ_H"; then :
16151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16152: $as_echo_n "checking if argz actually works... " >&6; }
16153: if ${lt_cv_sys_argz_works+:} false; then :
16154: $as_echo_n "(cached) " >&6
1.25 moko 16155: else
16156: case $host_os in #(
16157: *cygwin*)
16158: lt_cv_sys_argz_works=no
16159: if test "$cross_compiling" != no; then
16160: lt_cv_sys_argz_works="guessing no"
16161: else
16162: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16163: save_IFS=$IFS
16164: IFS=-.
16165: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16166: IFS=$save_IFS
16167: lt_os_major=${2-0}
16168: lt_os_minor=${3-0}
16169: lt_os_micro=${4-0}
16170: if test "$lt_os_major" -gt 1 \
16171: || { test "$lt_os_major" -eq 1 \
16172: && { test "$lt_os_minor" -gt 5 \
16173: || { test "$lt_os_minor" -eq 5 \
16174: && test "$lt_os_micro" -gt 24; }; }; }; then
16175: lt_cv_sys_argz_works=yes
16176: fi
16177: fi
16178: ;; #(
16179: *) lt_cv_sys_argz_works=yes ;;
16180: esac
16181: fi
1.32 moko 16182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16183: $as_echo "$lt_cv_sys_argz_works" >&6; }
16184: if test "$lt_cv_sys_argz_works" = yes; then :
1.25 moko 16185:
1.32 moko 16186: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.25 moko 16187:
16188: else
16189: ARGZ_H=argz.h
16190:
16191:
16192: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16193:
16194: fi
16195: fi
16196:
16197:
16198:
1.32 moko 16199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16200: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16201: if ${libltdl_cv_preloaded_symbols+:} false; then :
16202: $as_echo_n "(cached) " >&6
1.25 moko 16203: else
16204: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16205: libltdl_cv_preloaded_symbols=yes
16206: else
16207: libltdl_cv_preloaded_symbols=no
16208: fi
16209:
16210: fi
1.32 moko 16211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16212: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.25 moko 16213: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16214:
1.32 moko 16215: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.25 moko 16216:
16217: fi
16218:
1.32 moko 16219:
16220:
1.25 moko 16221: # Set options
16222:
16223:
16224:
16225:
16226:
16227:
16228:
16229:
16230:
16231:
16232:
16233:
1.32 moko 16234: # Check whether --with-included_ltdl was given.
16235: if test "${with_included_ltdl+set}" = set; then :
16236: withval=$with_included_ltdl;
16237: fi
1.25 moko 16238:
16239:
16240: if test "x$with_included_ltdl" != xyes; then
16241: # We are not being forced to use the included libltdl sources, so
16242: # decide whether there is a useful installed version we can use.
1.32 moko 16243: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.25 moko 16244:
1.32 moko 16245: "
16246: if test "x$ac_cv_header_ltdl_h" = xyes; then :
16247: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.25 moko 16248: #include <ltdl.h>
1.32 moko 16249: "
16250: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16251: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16252: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16253: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16254: $as_echo_n "(cached) " >&6
1.25 moko 16255: else
16256: ac_check_lib_save_LIBS=$LIBS
16257: LIBS="-lltdl $LIBS"
1.32 moko 16258: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 16259: /* end confdefs.h. */
16260:
1.32 moko 16261: /* Override any GCC internal prototype to avoid an error.
16262: Use char because int might match the return type of a GCC
16263: builtin and then its argument prototype would still apply. */
1.25 moko 16264: #ifdef __cplusplus
16265: extern "C"
16266: #endif
16267: char lt_dladvise_preload ();
16268: int
16269: main ()
16270: {
1.32 moko 16271: return lt_dladvise_preload ();
1.25 moko 16272: ;
16273: return 0;
16274: }
16275: _ACEOF
1.32 moko 16276: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 16277: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16278: else
1.32 moko 16279: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.25 moko 16280: fi
1.32 moko 16281: rm -f core conftest.err conftest.$ac_objext \
16282: conftest$ac_exeext conftest.$ac_ext
1.25 moko 16283: LIBS=$ac_check_lib_save_LIBS
16284: fi
1.32 moko 16285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16286: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16287: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.25 moko 16288: with_included_ltdl=no
16289: else
16290: with_included_ltdl=yes
16291: fi
16292:
16293: else
16294: with_included_ltdl=yes
16295: fi
16296:
16297: else
16298: with_included_ltdl=yes
16299: fi
16300:
16301:
16302: fi
16303:
16304:
16305:
16306:
1.32 moko 16307: # Check whether --with-ltdl_include was given.
16308: if test "${with_ltdl_include+set}" = set; then :
16309: withval=$with_ltdl_include;
16310: fi
1.25 moko 16311:
16312:
16313: if test -n "$with_ltdl_include"; then
16314: if test -f "$with_ltdl_include/ltdl.h"; then :
16315: else
1.32 moko 16316: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.25 moko 16317: fi
16318: else
16319: with_ltdl_include=no
16320: fi
16321:
16322:
1.32 moko 16323: # Check whether --with-ltdl_lib was given.
16324: if test "${with_ltdl_lib+set}" = set; then :
16325: withval=$with_ltdl_lib;
16326: fi
1.25 moko 16327:
16328:
16329: if test -n "$with_ltdl_lib"; then
16330: if test -f "$with_ltdl_lib/libltdl.la"; then :
16331: else
1.32 moko 16332: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.25 moko 16333: fi
16334: else
16335: with_ltdl_lib=no
16336: fi
16337:
16338: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16339: ,yes,no,no,)
16340: case $enable_ltdl_convenience in
1.32 moko 16341: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.25 moko 16342: "") enable_ltdl_convenience=yes
16343: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16344: esac
1.32 moko 16345: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.25 moko 16346: LTDLDEPS=$LIBLTDL
16347: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16348:
16349:
16350:
16351:
16352:
16353: # For backwards non-gettext consistent compatibility...
16354: INCLTDL="$LTDLINCL"
16355:
16356:
16357: ;;
16358: ,no,no,no,)
16359: # If the included ltdl is not to be used, then use the
16360: # preinstalled libltdl we found.
16361:
1.32 moko 16362: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.25 moko 16363:
16364: LIBLTDL=-lltdl
16365: LTDLDEPS=
16366: LTDLINCL=
16367: ;;
16368: ,no*,no,*)
1.32 moko 16369: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.25 moko 16370: ;;
16371: *) with_included_ltdl=no
16372: LIBLTDL="-L$with_ltdl_lib -lltdl"
16373: LTDLDEPS=
16374: LTDLINCL="-I$with_ltdl_include"
16375: ;;
16376: esac
16377: INCLTDL="$LTDLINCL"
16378:
16379: # Report our decision...
1.32 moko 16380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16381: $as_echo_n "checking where to find libltdl headers... " >&6; }
16382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16383: $as_echo "$LTDLINCL" >&6; }
16384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16385: $as_echo_n "checking where to find libltdl library... " >&6; }
16386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16387: $as_echo "$LIBLTDL" >&6; }
1.25 moko 16388:
16389:
16390:
1.32 moko 16391: # Check whether --enable-ltdl-install was given.
16392: if test "${enable_ltdl_install+set}" = set; then :
16393: enableval=$enable_ltdl_install;
16394: fi
1.25 moko 16395:
16396:
16397: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16398: *yes*) ;;
16399: *) enable_ltdl_convenience=yes ;;
16400: esac
16401:
1.32 moko 16402: if test x"${enable_ltdl_install-no}" != xno; then
1.25 moko 16403: INSTALL_LTDL_TRUE=
16404: INSTALL_LTDL_FALSE='#'
16405: else
16406: INSTALL_LTDL_TRUE='#'
16407: INSTALL_LTDL_FALSE=
16408: fi
16409:
1.32 moko 16410: if test x"${enable_ltdl_convenience-no}" != xno; then
1.25 moko 16411: CONVENIENCE_LTDL_TRUE=
16412: CONVENIENCE_LTDL_FALSE='#'
16413: else
16414: CONVENIENCE_LTDL_TRUE='#'
16415: CONVENIENCE_LTDL_FALSE=
16416: fi
16417:
16418:
16419:
1.32 moko 16420: subdirs="$subdirs libltdl"
1.25 moko 16421:
16422:
16423:
16424:
16425: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16426: # the user used. This is so that ltdl.h can pick up the parent projects
16427: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16428: # definitions required by ltdl.c.
16429: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16430:
16431:
16432:
16433: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
1.32 moko 16434: do :
16435: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16436: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16437: "
16438: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.25 moko 16439: cat >>confdefs.h <<_ACEOF
1.32 moko 16440: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.25 moko 16441: _ACEOF
16442:
16443: fi
16444:
16445: done
16446:
16447:
16448: for ac_func in closedir opendir readdir
1.32 moko 16449: do :
16450: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16451: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16452: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.25 moko 16453: cat >>confdefs.h <<_ACEOF
1.32 moko 16454: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.25 moko 16455: _ACEOF
16456:
16457: else
16458:
16459:
16460: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16461:
16462: fi
16463: done
16464:
16465: for ac_func in strlcat strlcpy
1.32 moko 16466: do :
16467: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16468: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16469: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.25 moko 16470: cat >>confdefs.h <<_ACEOF
1.32 moko 16471: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.25 moko 16472: _ACEOF
16473:
16474: else
16475:
16476:
16477: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16478:
16479: fi
16480: done
16481:
16482:
16483:
16484: cat >>confdefs.h <<_ACEOF
16485: #define LT_LIBEXT "$libext"
16486: _ACEOF
16487:
16488:
16489: name=
16490: eval "lt_libprefix=\"$libname_spec\""
16491:
16492: cat >>confdefs.h <<_ACEOF
16493: #define LT_LIBPREFIX "$lt_libprefix"
16494: _ACEOF
16495:
16496:
16497: name=ltdl
16498: eval "LTDLOPEN=\"$libname_spec\""
16499:
16500:
16501:
16502:
16503:
16504:
16505:
16506:
16507: # Only expand once:
16508:
16509:
16510:
16511:
16512: for ac_header in stdio.h \
16513: stdlib.h \
16514: string.h \
16515: setjmp.h \
16516: ctype.h \
16517: setjmp.h
16518:
1.32 moko 16519: do :
16520: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16521: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16522: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.25 moko 16523: cat >>confdefs.h <<_ACEOF
1.32 moko 16524: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.25 moko 16525: _ACEOF
16526:
16527: fi
16528:
16529: done
16530:
16531:
1.32 moko 16532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD setenv/getenv/unsetenv" >&5
16533: $as_echo_n "checking for BSD setenv/getenv/unsetenv... " >&6; }
16534: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 16535: /* end confdefs.h. */
16536: #ifdef HAVE_STDLIB_H
16537: # include <stdlib.h>
16538: #endif
16539: #ifdef HAVE_STRING_H
16540: # include <string.h>
16541: #endif
16542:
16543: int
16544: main ()
16545: {
16546: #define TEST_NAME "oracle-configure-test-var"
16547: #define TEST_VALUE "oracle-configure-test-value"
16548: int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
16549: char *getenv_value=getenv(TEST_NAME);
16550: if(!getenv_value)
16551: return 1;
16552: if(strcmp(getenv_value, TEST_VALUE)!=0)
16553: return 2;
16554: unsetenv(TEST_NAME);
16555:
16556: ;
16557: return 0;
16558: }
16559: _ACEOF
1.32 moko 16560: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 16561:
1.32 moko 16562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16563: $as_echo "yes" >&6; }
1.25 moko 16564:
1.32 moko 16565: $as_echo "#define HAVE_SETENV /**/" >>confdefs.h
1.25 moko 16566:
16567:
16568: else
1.32 moko 16569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16570: $as_echo "no" >&6; }
1.25 moko 16571:
1.32 moko 16572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX putenv/getenv" >&5
16573: $as_echo_n "checking for POSIX putenv/getenv... " >&6; }
16574: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 16575: /* end confdefs.h. */
16576: #ifdef HAVE_STDLIB_H
16577: # include <stdlib.h>
16578: #endif
16579: #ifdef HAVE_STRING_H
16580: # include <string.h>
16581: #endif
16582:
16583: int
16584: main ()
16585: {
16586: #define TEST_NAME "oracle-configure-test-var"
16587: #define TEST_VALUE "oracle-configure-test-value"
16588: int result=putenv(TEST_NAME"="TEST_VALUE);
16589: char *getenv_value=getenv(TEST_NAME);
16590: if(!getenv_value)
16591: return 1;
16592: if(strcmp(getenv_value, TEST_NAME)!=0)
16593: return 2;
16594:
16595: ;
16596: return 0;
16597: }
16598: _ACEOF
1.32 moko 16599: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 16600:
1.32 moko 16601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16602: $as_echo "yes" >&6; }
1.25 moko 16603:
1.32 moko 16604: $as_echo "#define HAVE_PUTENV /**/" >>confdefs.h
1.25 moko 16605:
16606:
16607: else
1.32 moko 16608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609: $as_echo "no" >&6; }
16610: as_fn_error $? "\"there must be some function to modify environment\"" "$LINENO" 5
1.25 moko 16611:
16612: fi
1.32 moko 16613: rm -f core conftest.err conftest.$ac_objext \
16614: conftest$ac_exeext conftest.$ac_ext
1.25 moko 16615:
16616: fi
1.32 moko 16617: rm -f core conftest.err conftest.$ac_objext \
16618: conftest$ac_exeext conftest.$ac_ext
1.25 moko 16619:
1.32 moko 16620: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16621: if test "x$ac_cv_type_size_t" = xyes; then :
1.25 moko 16622:
16623: else
16624:
16625: cat >>confdefs.h <<_ACEOF
1.32 moko 16626: #define size_t unsigned int
1.25 moko 16627: _ACEOF
16628:
16629: fi
16630:
16631:
16632:
1.32 moko 16633: ac_config_files="$ac_config_files Makefile"
16634:
1.25 moko 16635: cat >confcache <<\_ACEOF
16636: # This file is a shell script that caches the results of configure
16637: # tests run on this system so they can be shared between configure
16638: # scripts and configure runs, see configure's option --config-cache.
16639: # It is not useful on other systems. If it contains results you don't
16640: # want to keep, you may remove or edit it.
16641: #
16642: # config.status only pays attention to the cache file if you give it
16643: # the --recheck option to rerun configure.
16644: #
16645: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16646: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16647: # following values.
16648:
16649: _ACEOF
16650:
16651: # The following way of writing the cache mishandles newlines in values,
16652: # but we know of no workaround that is simple, portable, and efficient.
1.32 moko 16653: # So, we kill variables containing newlines.
1.25 moko 16654: # Ultrix sh set writes to stderr and can't be redirected directly,
16655: # and sets the high bit in the cache file unless we assign to the vars.
1.32 moko 16656: (
16657: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16658: eval ac_val=\$$ac_var
16659: case $ac_val in #(
16660: *${as_nl}*)
16661: case $ac_var in #(
16662: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16663: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16664: esac
16665: case $ac_var in #(
16666: _ | IFS | as_nl) ;; #(
16667: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16668: *) { eval $ac_var=; unset $ac_var;} ;;
16669: esac ;;
16670: esac
16671: done
16672:
1.25 moko 16673: (set) 2>&1 |
1.32 moko 16674: case $as_nl`(ac_space=' '; set) 2>&1` in #(
16675: *${as_nl}ac_space=\ *)
16676: # `set' does not quote correctly, so add quotes: double-quote
16677: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.25 moko 16678: sed -n \
16679: "s/'/'\\\\''/g;
16680: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.32 moko 16681: ;; #(
1.25 moko 16682: *)
16683: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.32 moko 16684: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.25 moko 16685: ;;
1.32 moko 16686: esac |
16687: sort
16688: ) |
1.25 moko 16689: sed '
1.32 moko 16690: /^ac_cv_env_/b end
1.25 moko 16691: t clear
1.32 moko 16692: :clear
1.25 moko 16693: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16694: t end
1.32 moko 16695: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16696: :end' >>confcache
16697: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16698: if test -w "$cache_file"; then
16699: if test "x$cache_file" != "x/dev/null"; then
16700: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16701: $as_echo "$as_me: updating cache $cache_file" >&6;}
16702: if test ! -f "$cache_file" || test -h "$cache_file"; then
16703: cat confcache >"$cache_file"
16704: else
16705: case $cache_file in #(
16706: */* | ?:*)
16707: mv -f confcache "$cache_file"$$ &&
16708: mv -f "$cache_file"$$ "$cache_file" ;; #(
16709: *)
16710: mv -f confcache "$cache_file" ;;
16711: esac
16712: fi
16713: fi
1.25 moko 16714: else
1.32 moko 16715: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16716: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.25 moko 16717: fi
16718: fi
16719: rm -f confcache
16720:
16721: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16722: # Let make expand exec_prefix.
16723: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16724:
16725: DEFS=-DHAVE_CONFIG_H
16726:
16727: ac_libobjs=
16728: ac_ltlibobjs=
1.32 moko 16729: U=
1.25 moko 16730: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16731: # 1. Remove the extension, and $U if already installed.
1.32 moko 16732: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16733: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16734: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16735: # will be set to the directory where LIBOBJS objects are built.
16736: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16737: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.25 moko 16738: done
16739: LIBOBJS=$ac_libobjs
16740:
16741: LTLIBOBJS=$ac_ltlibobjs
16742:
16743:
1.32 moko 16744: if test -n "$EXEEXT"; then
16745: am__EXEEXT_TRUE=
16746: am__EXEEXT_FALSE='#'
16747: else
16748: am__EXEEXT_TRUE='#'
16749: am__EXEEXT_FALSE=
16750: fi
16751:
1.25 moko 16752: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.32 moko 16753: as_fn_error $? "conditional \"AMDEP\" was never defined.
16754: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16755: fi
16756: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.32 moko 16757: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16758: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16759: fi
16760: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.32 moko 16761: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16762: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16763: fi
16764: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.32 moko 16765: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16766: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16767: fi
16768: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.32 moko 16769: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16770: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16771: fi
1.32 moko 16772: LT_CONFIG_H=config_auto.h
1.25 moko 16773:
16774: _ltdl_libobjs=
16775: _ltdl_ltlibobjs=
16776: if test -n "$_LT_LIBOBJS"; then
16777: # Remove the extension.
16778: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16779: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16780: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16781: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16782: done
16783: fi
16784: ltdl_LIBOBJS=$_ltdl_libobjs
16785:
16786: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16787:
16788:
16789:
1.32 moko 16790: : "${CONFIG_STATUS=./config.status}"
16791: ac_write_fail=0
1.25 moko 16792: ac_clean_files_save=$ac_clean_files
16793: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.32 moko 16794: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16795: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16796: as_write_fail=0
16797: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.25 moko 16798: #! $SHELL
16799: # Generated by $as_me.
16800: # Run this file to recreate the current configuration.
16801: # Compiler output produced by configure, useful for debugging
16802: # configure, is in config.log if it exists.
16803:
16804: debug=false
16805: ac_cs_recheck=false
16806: ac_cs_silent=false
1.32 moko 16807:
1.25 moko 16808: SHELL=\${CONFIG_SHELL-$SHELL}
1.32 moko 16809: export SHELL
16810: _ASEOF
16811: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16812: ## -------------------- ##
16813: ## M4sh Initialization. ##
16814: ## -------------------- ##
1.25 moko 16815:
1.32 moko 16816: # Be more Bourne compatible
16817: DUALCASE=1; export DUALCASE # for MKS sh
16818: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.25 moko 16819: emulate sh
16820: NULLCMD=:
1.32 moko 16821: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.25 moko 16822: # is contrary to our usage. Disable this feature.
16823: alias -g '${1+"$@"}'='"$@"'
1.32 moko 16824: setopt NO_GLOB_SUBST
16825: else
16826: case `(set -o) 2>/dev/null` in #(
16827: *posix*) :
16828: set -o posix ;; #(
16829: *) :
16830: ;;
16831: esac
16832: fi
16833:
16834:
16835: as_nl='
16836: '
16837: export as_nl
16838: # Printing a long string crashes Solaris 7 /usr/bin/printf.
16839: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16840: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16841: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16842: # Prefer a ksh shell builtin over an external printf program on Solaris,
16843: # but without wasting forks for bash or zsh.
16844: if test -z "$BASH_VERSION$ZSH_VERSION" \
16845: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16846: as_echo='print -r --'
16847: as_echo_n='print -rn --'
16848: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16849: as_echo='printf %s\n'
16850: as_echo_n='printf %s'
16851: else
16852: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16853: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16854: as_echo_n='/usr/ucb/echo -n'
16855: else
16856: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16857: as_echo_n_body='eval
16858: arg=$1;
16859: case $arg in #(
16860: *"$as_nl"*)
16861: expr "X$arg" : "X\\(.*\\)$as_nl";
16862: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16863: esac;
16864: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16865: '
16866: export as_echo_n_body
16867: as_echo_n='sh -c $as_echo_n_body as_echo'
16868: fi
16869: export as_echo_body
16870: as_echo='sh -c $as_echo_body as_echo'
1.25 moko 16871: fi
16872:
1.32 moko 16873: # The user is always right.
16874: if test "${PATH_SEPARATOR+set}" != set; then
16875: PATH_SEPARATOR=:
16876: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16877: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16878: PATH_SEPARATOR=';'
16879: }
1.25 moko 16880: fi
16881:
16882:
1.32 moko 16883: # IFS
16884: # We need space, tab and new line, in precisely that order. Quoting is
16885: # there to prevent editors from complaining about space-tab.
16886: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16887: # splitting by setting IFS to empty value.)
16888: IFS=" "" $as_nl"
16889:
16890: # Find who we are. Look in the path if we contain no directory separator.
16891: as_myself=
16892: case $0 in #((
16893: *[\\/]* ) as_myself=$0 ;;
16894: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16895: for as_dir in $PATH
16896: do
16897: IFS=$as_save_IFS
16898: test -z "$as_dir" && as_dir=.
16899: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16900: done
16901: IFS=$as_save_IFS
16902:
16903: ;;
16904: esac
16905: # We did not find ourselves, most probably we were run as `sh COMMAND'
16906: # in which case we are not to be found in the path.
16907: if test "x$as_myself" = x; then
16908: as_myself=$0
16909: fi
16910: if test ! -f "$as_myself"; then
16911: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16912: exit 1
16913: fi
16914:
16915: # Unset variables that we do not need and which cause bugs (e.g. in
16916: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16917: # suppresses any "Segmentation fault" message there. '((' could
16918: # trigger a bug in pdksh 5.2.14.
16919: for as_var in BASH_ENV ENV MAIL MAILPATH
16920: do eval test x\${$as_var+set} = xset \
16921: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16922: done
1.25 moko 16923: PS1='$ '
16924: PS2='> '
16925: PS4='+ '
16926:
16927: # NLS nuisances.
1.32 moko 16928: LC_ALL=C
16929: export LC_ALL
16930: LANGUAGE=C
16931: export LANGUAGE
16932:
16933: # CDPATH.
16934: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16935:
16936:
16937: # as_fn_error STATUS ERROR [LINENO LOG_FD]
16938: # ----------------------------------------
16939: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16940: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16941: # script with STATUS, using 1 if that was 0.
16942: as_fn_error ()
16943: {
16944: as_status=$1; test $as_status -eq 0 && as_status=1
16945: if test "$4"; then
16946: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16947: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16948: fi
16949: $as_echo "$as_me: error: $2" >&2
16950: as_fn_exit $as_status
16951: } # as_fn_error
16952:
16953:
16954: # as_fn_set_status STATUS
16955: # -----------------------
16956: # Set $? to STATUS, without forking.
16957: as_fn_set_status ()
16958: {
16959: return $1
16960: } # as_fn_set_status
16961:
16962: # as_fn_exit STATUS
16963: # -----------------
16964: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16965: as_fn_exit ()
16966: {
16967: set +e
16968: as_fn_set_status $1
16969: exit $1
16970: } # as_fn_exit
16971:
16972: # as_fn_unset VAR
16973: # ---------------
16974: # Portably unset VAR.
16975: as_fn_unset ()
16976: {
16977: { eval $1=; unset $1;}
16978: }
16979: as_unset=as_fn_unset
16980: # as_fn_append VAR VALUE
16981: # ----------------------
16982: # Append the text in VALUE to the end of the definition contained in VAR. Take
16983: # advantage of any shell optimizations that allow amortized linear growth over
16984: # repeated appends, instead of the typical quadratic growth present in naive
16985: # implementations.
16986: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16987: eval 'as_fn_append ()
16988: {
16989: eval $1+=\$2
16990: }'
16991: else
16992: as_fn_append ()
16993: {
16994: eval $1=\$$1\$2
16995: }
16996: fi # as_fn_append
16997:
16998: # as_fn_arith ARG...
16999: # ------------------
17000: # Perform arithmetic evaluation on the ARGs, and store the result in the
17001: # global $as_val. Take advantage of shells that can avoid forks. The arguments
17002: # must be portable across $(()) and expr.
17003: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17004: eval 'as_fn_arith ()
17005: {
17006: as_val=$(( $* ))
17007: }'
17008: else
17009: as_fn_arith ()
17010: {
17011: as_val=`expr "$@" || test $? -eq 1`
17012: }
17013: fi # as_fn_arith
17014:
1.25 moko 17015:
1.32 moko 17016: if expr a : '\(a\)' >/dev/null 2>&1 &&
17017: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.25 moko 17018: as_expr=expr
17019: else
17020: as_expr=false
17021: fi
17022:
1.32 moko 17023: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.25 moko 17024: as_basename=basename
17025: else
17026: as_basename=false
17027: fi
17028:
1.32 moko 17029: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17030: as_dirname=dirname
17031: else
17032: as_dirname=false
17033: fi
1.25 moko 17034:
1.32 moko 17035: as_me=`$as_basename -- "$0" ||
1.25 moko 17036: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17037: X"$0" : 'X\(//\)$' \| \
1.32 moko 17038: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17039: $as_echo X/"$0" |
17040: sed '/^.*\/\([^/][^/]*\)\/*$/{
17041: s//\1/
17042: q
17043: }
17044: /^X\/\(\/\/\)$/{
17045: s//\1/
17046: q
17047: }
17048: /^X\/\(\/\).*/{
17049: s//\1/
17050: q
17051: }
17052: s/.*/./; q'`
1.25 moko 17053:
17054: # Avoid depending upon Character Ranges.
17055: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17056: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17057: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17058: as_cr_digits='0123456789'
17059: as_cr_alnum=$as_cr_Letters$as_cr_digits
17060:
1.32 moko 17061: ECHO_C= ECHO_N= ECHO_T=
17062: case `echo -n x` in #(((((
17063: -n*)
17064: case `echo 'xy\c'` in
17065: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17066: xy) ECHO_C='\c';;
17067: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17068: ECHO_T=' ';;
17069: esac;;
17070: *)
17071: ECHO_N='-n';;
1.25 moko 17072: esac
17073:
1.32 moko 17074: rm -f conf$$ conf$$.exe conf$$.file
17075: if test -d conf$$.dir; then
17076: rm -f conf$$.dir/conf$$.file
1.25 moko 17077: else
1.32 moko 17078: rm -f conf$$.dir
17079: mkdir conf$$.dir 2>/dev/null
1.25 moko 17080: fi
1.32 moko 17081: if (echo >conf$$.file) 2>/dev/null; then
17082: if ln -s conf$$.file conf$$ 2>/dev/null; then
17083: as_ln_s='ln -s'
17084: # ... but there are two gotchas:
17085: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17086: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17087: # In both cases, we have to default to `cp -p'.
17088: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17089: as_ln_s='cp -p'
17090: elif ln conf$$.file conf$$ 2>/dev/null; then
17091: as_ln_s=ln
17092: else
1.25 moko 17093: as_ln_s='cp -p'
17094: fi
17095: else
17096: as_ln_s='cp -p'
17097: fi
1.32 moko 17098: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17099: rmdir conf$$.dir 2>/dev/null
17100:
17101:
17102: # as_fn_mkdir_p
17103: # -------------
17104: # Create "$as_dir" as a directory, including parents if necessary.
17105: as_fn_mkdir_p ()
17106: {
17107:
17108: case $as_dir in #(
17109: -*) as_dir=./$as_dir;;
17110: esac
17111: test -d "$as_dir" || eval $as_mkdir_p || {
17112: as_dirs=
17113: while :; do
17114: case $as_dir in #(
17115: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17116: *) as_qdir=$as_dir;;
17117: esac
17118: as_dirs="'$as_qdir' $as_dirs"
17119: as_dir=`$as_dirname -- "$as_dir" ||
17120: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17121: X"$as_dir" : 'X\(//\)[^/]' \| \
17122: X"$as_dir" : 'X\(//\)$' \| \
17123: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17124: $as_echo X"$as_dir" |
17125: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17126: s//\1/
17127: q
17128: }
17129: /^X\(\/\/\)[^/].*/{
17130: s//\1/
17131: q
17132: }
17133: /^X\(\/\/\)$/{
17134: s//\1/
17135: q
17136: }
17137: /^X\(\/\).*/{
17138: s//\1/
17139: q
17140: }
17141: s/.*/./; q'`
17142: test -d "$as_dir" && break
17143: done
17144: test -z "$as_dirs" || eval "mkdir $as_dirs"
17145: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17146:
1.25 moko 17147:
1.32 moko 17148: } # as_fn_mkdir_p
1.25 moko 17149: if mkdir -p . 2>/dev/null; then
1.32 moko 17150: as_mkdir_p='mkdir -p "$as_dir"'
1.25 moko 17151: else
17152: test -d ./-p && rmdir ./-p
17153: as_mkdir_p=false
17154: fi
17155:
1.32 moko 17156: if test -x / >/dev/null 2>&1; then
17157: as_test_x='test -x'
17158: else
17159: if ls -dL / >/dev/null 2>&1; then
17160: as_ls_L_option=L
17161: else
17162: as_ls_L_option=
17163: fi
17164: as_test_x='
17165: eval sh -c '\''
17166: if test -d "$1"; then
17167: test -d "$1/.";
17168: else
17169: case $1 in #(
17170: -*)set "./$1";;
17171: esac;
17172: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17173: ???[sx]*):;;*)false;;esac;fi
17174: '\'' sh
17175: '
17176: fi
17177: as_executable_p=$as_test_x
1.25 moko 17178:
17179: # Sed expression to map a string onto a valid CPP name.
17180: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17181:
17182: # Sed expression to map a string onto a valid variable name.
17183: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17184:
17185:
17186: exec 6>&1
1.32 moko 17187: ## ----------------------------------- ##
17188: ## Main body of $CONFIG_STATUS script. ##
17189: ## ----------------------------------- ##
17190: _ASEOF
17191: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.25 moko 17192:
1.32 moko 17193: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17194: # Save the log message, to keep $0 and so on meaningful, and to
1.25 moko 17195: # report actual input values of CONFIG_FILES etc. instead of their
1.32 moko 17196: # values after options handling.
17197: ac_log="
1.33 ! moko 17198: This file was extended by parser3 $as_me 10.3, which was
1.32 moko 17199: generated by GNU Autoconf 2.68. Invocation command line was
1.25 moko 17200:
17201: CONFIG_FILES = $CONFIG_FILES
17202: CONFIG_HEADERS = $CONFIG_HEADERS
17203: CONFIG_LINKS = $CONFIG_LINKS
17204: CONFIG_COMMANDS = $CONFIG_COMMANDS
17205: $ $0 $@
17206:
1.32 moko 17207: on `(hostname || uname -n) 2>/dev/null | sed 1q`
17208: "
17209:
1.25 moko 17210: _ACEOF
17211:
1.32 moko 17212: case $ac_config_files in *"
17213: "*) set x $ac_config_files; shift; ac_config_files=$*;;
17214: esac
1.25 moko 17215:
1.32 moko 17216: case $ac_config_headers in *"
17217: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17218: esac
1.25 moko 17219:
17220:
1.32 moko 17221: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17222: # Files that config.status was made for.
17223: config_files="$ac_config_files"
17224: config_headers="$ac_config_headers"
17225: config_commands="$ac_config_commands"
1.25 moko 17226:
1.32 moko 17227: _ACEOF
1.25 moko 17228:
1.32 moko 17229: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.25 moko 17230: ac_cs_usage="\
1.32 moko 17231: \`$as_me' instantiates files and other configuration actions
17232: from templates according to the current configuration. Unless the files
17233: and actions are specified as TAGs, all are instantiated by default.
1.25 moko 17234:
1.32 moko 17235: Usage: $0 [OPTION]... [TAG]...
1.25 moko 17236:
17237: -h, --help print this help, then exit
1.32 moko 17238: -V, --version print version number and configuration settings, then exit
17239: --config print configuration, then exit
17240: -q, --quiet, --silent
17241: do not print progress messages
1.25 moko 17242: -d, --debug don't remove temporary files
17243: --recheck update $as_me by reconfiguring in the same conditions
1.32 moko 17244: --file=FILE[:TEMPLATE]
17245: instantiate the configuration file FILE
17246: --header=FILE[:TEMPLATE]
17247: instantiate the configuration header FILE
1.25 moko 17248:
17249: Configuration files:
17250: $config_files
17251:
17252: Configuration headers:
17253: $config_headers
17254:
17255: Configuration commands:
17256: $config_commands
17257:
1.32 moko 17258: Report bugs to the package provider."
17259:
1.25 moko 17260: _ACEOF
1.32 moko 17261: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17262: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.25 moko 17263: ac_cs_version="\\
1.33 ! moko 17264: parser3 config.status 10.3
1.32 moko 17265: configured by $0, generated by GNU Autoconf 2.68,
17266: with options \\"\$ac_cs_config\\"
1.25 moko 17267:
1.32 moko 17268: Copyright (C) 2010 Free Software Foundation, Inc.
1.25 moko 17269: This config.status script is free software; the Free Software Foundation
17270: gives unlimited permission to copy, distribute and modify it."
1.32 moko 17271:
17272: ac_pwd='$ac_pwd'
17273: srcdir='$srcdir'
17274: INSTALL='$INSTALL'
17275: MKDIR_P='$MKDIR_P'
17276: AWK='$AWK'
17277: test -n "\$AWK" || AWK=awk
1.25 moko 17278: _ACEOF
17279:
1.32 moko 17280: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17281: # The default lists apply if the user does not specify any file.
1.25 moko 17282: ac_need_defaults=:
17283: while test $# != 0
17284: do
17285: case $1 in
1.32 moko 17286: --*=?*)
17287: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17288: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17289: ac_shift=:
17290: ;;
17291: --*=)
17292: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17293: ac_optarg=
1.25 moko 17294: ac_shift=:
17295: ;;
1.32 moko 17296: *)
1.25 moko 17297: ac_option=$1
17298: ac_optarg=$2
17299: ac_shift=shift
17300: ;;
17301: esac
17302:
17303: case $ac_option in
17304: # Handling of the options.
17305: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17306: ac_cs_recheck=: ;;
1.32 moko 17307: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17308: $as_echo "$ac_cs_version"; exit ;;
17309: --config | --confi | --conf | --con | --co | --c )
17310: $as_echo "$ac_cs_config"; exit ;;
17311: --debug | --debu | --deb | --de | --d | -d )
1.25 moko 17312: debug=: ;;
17313: --file | --fil | --fi | --f )
17314: $ac_shift
1.32 moko 17315: case $ac_optarg in
17316: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17317: '') as_fn_error $? "missing file argument" ;;
17318: esac
17319: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.25 moko 17320: ac_need_defaults=false;;
17321: --header | --heade | --head | --hea )
17322: $ac_shift
1.32 moko 17323: case $ac_optarg in
17324: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17325: esac
17326: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.25 moko 17327: ac_need_defaults=false;;
1.32 moko 17328: --he | --h)
17329: # Conflict between --help and --header
17330: as_fn_error $? "ambiguous option: \`$1'
17331: Try \`$0 --help' for more information.";;
17332: --help | --hel | -h )
17333: $as_echo "$ac_cs_usage"; exit ;;
1.25 moko 17334: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17335: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17336: ac_cs_silent=: ;;
17337:
17338: # This is an error.
1.32 moko 17339: -*) as_fn_error $? "unrecognized option: \`$1'
17340: Try \`$0 --help' for more information." ;;
1.25 moko 17341:
1.32 moko 17342: *) as_fn_append ac_config_targets " $1"
17343: ac_need_defaults=false ;;
1.25 moko 17344:
17345: esac
17346: shift
17347: done
17348:
17349: ac_configure_extra_args=
17350:
17351: if $ac_cs_silent; then
17352: exec 6>/dev/null
17353: ac_configure_extra_args="$ac_configure_extra_args --silent"
17354: fi
17355:
17356: _ACEOF
1.32 moko 17357: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.25 moko 17358: if \$ac_cs_recheck; then
1.32 moko 17359: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17360: shift
17361: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17362: CONFIG_SHELL='$SHELL'
17363: export CONFIG_SHELL
17364: exec "\$@"
1.25 moko 17365: fi
17366:
17367: _ACEOF
1.32 moko 17368: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17369: exec 5>>config.log
17370: {
17371: echo
17372: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17373: ## Running $as_me. ##
17374: _ASBOX
17375: $as_echo "$ac_log"
17376: } >&5
17377:
17378: _ACEOF
17379: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.25 moko 17380: #
1.32 moko 17381: # INIT-COMMANDS
1.25 moko 17382: #
17383: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17384:
17385:
17386: # The HP-UX ksh and POSIX shell print the target directory to stdout
17387: # if CDPATH is set.
17388: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17389:
17390: sed_quote_subst='$sed_quote_subst'
17391: double_quote_subst='$double_quote_subst'
17392: delay_variable_subst='$delay_variable_subst'
17393: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17394: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.31 moko 17395: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.25 moko 17396: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17397: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17398: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17399: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17400: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17401: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17402: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17403: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17404: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17405: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17406: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17407: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17408: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17409: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17410: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17411: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17412: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17413: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17414: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17415: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17416: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17417: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17418: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17419: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17420: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17421: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17422: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17423: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17424: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17425: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17426: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17427: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17428: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17429: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17430: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17431: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17432: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17433: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17434: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17435: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17436: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17437: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17438: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17439: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17440: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17441: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17442: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17443: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17444: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17445: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17446: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17447: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17448: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17449: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17450: 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"`'
17451: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17452: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17453: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17454: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17455: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17456: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17457: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17458: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17459: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17460: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17461: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17462: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17463: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17464: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17465: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17466: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17467: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17468: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17469: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17470: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17471: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17472: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17473: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17474: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17475: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17476: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17477: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17478: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17479: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17480: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17481: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17482: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17483: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17484: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17485: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17486: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17487: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17488: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17489: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17490: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17491: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17492: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17493: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17494: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17495: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17496: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17497: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17498: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17499: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17500: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17501: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17502: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17503: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17504: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17505: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17506: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17507: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17508: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17509: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17510: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17511: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17512: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17513: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17514: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17515: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17516: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17517: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17518: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17519: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17520: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17521: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17522: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17523: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17524: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17525: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17526: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17527: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17528: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17529: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17530: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17531: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17532: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17533: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17534: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17535: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17536: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17537: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17538: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17539: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17540: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17541: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17542: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17543: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17544: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17545: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17546: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17547: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17548: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17549: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17550: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17551: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17552: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17553: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17554: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17555: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17556: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17557: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17558: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17559: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17560: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17561: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17562: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17563: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17564: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17565: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17566: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17567: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17568: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17569: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17570: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17571: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17572: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17573: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17574: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17575: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17576: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17577: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17578:
17579: LTCC='$LTCC'
17580: LTCFLAGS='$LTCFLAGS'
17581: compiler='$compiler_DEFAULT'
17582:
17583: # A function that is used when there is no print builtin or printf.
17584: func_fallback_echo ()
17585: {
17586: eval 'cat <<_LTECHO_EOF
17587: \$1
17588: _LTECHO_EOF'
17589: }
17590:
17591: # Quote evaled strings.
17592: for var in AS \
17593: DLLTOOL \
17594: OBJDUMP \
17595: SHELL \
17596: ECHO \
17597: PATH_SEPARATOR \
17598: SED \
17599: GREP \
17600: EGREP \
17601: FGREP \
17602: LD \
17603: NM \
17604: LN_S \
17605: lt_SP2NL \
17606: lt_NL2SP \
17607: reload_flag \
17608: deplibs_check_method \
17609: file_magic_cmd \
17610: file_magic_glob \
17611: want_nocaseglob \
17612: sharedlib_from_linklib_cmd \
17613: AR \
17614: AR_FLAGS \
17615: archiver_list_spec \
17616: STRIP \
17617: RANLIB \
17618: CC \
17619: CFLAGS \
17620: compiler \
17621: lt_cv_sys_global_symbol_pipe \
17622: lt_cv_sys_global_symbol_to_cdecl \
17623: lt_cv_sys_global_symbol_to_c_name_address \
17624: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17625: nm_file_list_spec \
17626: lt_prog_compiler_no_builtin_flag \
17627: lt_prog_compiler_pic \
17628: lt_prog_compiler_wl \
17629: lt_prog_compiler_static \
17630: lt_cv_prog_compiler_c_o \
17631: need_locks \
17632: MANIFEST_TOOL \
17633: DSYMUTIL \
17634: NMEDIT \
17635: LIPO \
17636: OTOOL \
17637: OTOOL64 \
17638: shrext_cmds \
17639: export_dynamic_flag_spec \
17640: whole_archive_flag_spec \
17641: compiler_needs_object \
17642: with_gnu_ld \
17643: allow_undefined_flag \
17644: no_undefined_flag \
17645: hardcode_libdir_flag_spec \
17646: hardcode_libdir_separator \
17647: exclude_expsyms \
17648: include_expsyms \
17649: file_list_spec \
17650: variables_saved_for_relink \
17651: libname_spec \
17652: library_names_spec \
17653: soname_spec \
17654: install_override_mode \
17655: finish_eval \
17656: old_striplib \
17657: striplib \
17658: compiler_lib_search_dirs \
17659: predep_objects \
17660: postdep_objects \
17661: predeps \
17662: postdeps \
17663: compiler_lib_search_path \
17664: LD_CXX \
17665: reload_flag_CXX \
17666: compiler_CXX \
17667: lt_prog_compiler_no_builtin_flag_CXX \
17668: lt_prog_compiler_pic_CXX \
17669: lt_prog_compiler_wl_CXX \
17670: lt_prog_compiler_static_CXX \
17671: lt_cv_prog_compiler_c_o_CXX \
17672: export_dynamic_flag_spec_CXX \
17673: whole_archive_flag_spec_CXX \
17674: compiler_needs_object_CXX \
17675: with_gnu_ld_CXX \
17676: allow_undefined_flag_CXX \
17677: no_undefined_flag_CXX \
17678: hardcode_libdir_flag_spec_CXX \
17679: hardcode_libdir_separator_CXX \
17680: exclude_expsyms_CXX \
17681: include_expsyms_CXX \
17682: file_list_spec_CXX \
17683: compiler_lib_search_dirs_CXX \
17684: predep_objects_CXX \
17685: postdep_objects_CXX \
17686: predeps_CXX \
17687: postdeps_CXX \
17688: compiler_lib_search_path_CXX; do
17689: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17690: *[\\\\\\\`\\"\\\$]*)
17691: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17692: ;;
17693: *)
17694: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17695: ;;
17696: esac
17697: done
17698:
17699: # Double-quote double-evaled strings.
17700: for var in reload_cmds \
17701: old_postinstall_cmds \
17702: old_postuninstall_cmds \
17703: old_archive_cmds \
17704: extract_expsyms_cmds \
17705: old_archive_from_new_cmds \
17706: old_archive_from_expsyms_cmds \
17707: archive_cmds \
17708: archive_expsym_cmds \
17709: module_cmds \
17710: module_expsym_cmds \
17711: export_symbols_cmds \
17712: prelink_cmds \
17713: postlink_cmds \
17714: postinstall_cmds \
17715: postuninstall_cmds \
17716: finish_cmds \
17717: sys_lib_search_path_spec \
17718: sys_lib_dlsearch_path_spec \
17719: reload_cmds_CXX \
17720: old_archive_cmds_CXX \
17721: old_archive_from_new_cmds_CXX \
17722: old_archive_from_expsyms_cmds_CXX \
17723: archive_cmds_CXX \
17724: archive_expsym_cmds_CXX \
17725: module_cmds_CXX \
17726: module_expsym_cmds_CXX \
17727: export_symbols_cmds_CXX \
17728: prelink_cmds_CXX \
17729: postlink_cmds_CXX; do
17730: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17731: *[\\\\\\\`\\"\\\$]*)
17732: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17733: ;;
17734: *)
17735: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17736: ;;
17737: esac
17738: done
17739:
17740: ac_aux_dir='$ac_aux_dir'
17741: xsi_shell='$xsi_shell'
17742: lt_shell_append='$lt_shell_append'
17743:
17744: # See if we are running on zsh, and set the options which allow our
17745: # commands through without removal of \ escapes INIT.
17746: if test -n "\${ZSH_VERSION+set}" ; then
17747: setopt NO_GLOB_SUBST
17748: fi
17749:
17750:
17751: PACKAGE='$PACKAGE'
17752: VERSION='$VERSION'
17753: TIMESTAMP='$TIMESTAMP'
17754: RM='$RM'
17755: ofile='$ofile'
17756:
17757:
17758:
17759:
17760:
17761:
17762: _ACEOF
17763:
1.32 moko 17764: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.25 moko 17765:
1.32 moko 17766: # Handling of arguments.
1.25 moko 17767: for ac_config_target in $ac_config_targets
17768: do
1.32 moko 17769: case $ac_config_target in
17770: "config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
17771: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17772: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17773: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17774:
17775: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.25 moko 17776: esac
17777: done
17778:
1.32 moko 17779:
1.25 moko 17780: # If the user did not use the arguments to specify the items to instantiate,
17781: # then the envvar interface is used. Set only those that are not.
17782: # We use the long form for the default assignment because of an extremely
17783: # bizarre bug on SunOS 4.1.3.
17784: if $ac_need_defaults; then
17785: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17786: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17787: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17788: fi
17789:
17790: # Have a temporary directory for convenience. Make it in the build tree
1.32 moko 17791: # simply because there is no reason against having it here, and in addition,
1.25 moko 17792: # creating and moving files from /tmp can sometimes cause problems.
1.32 moko 17793: # Hook for its removal unless debugging.
17794: # Note that there is a small window in which the directory will not be cleaned:
17795: # after its creation but before its name has been assigned to `$tmp'.
1.25 moko 17796: $debug ||
17797: {
1.32 moko 17798: tmp= ac_tmp=
17799: trap 'exit_status=$?
17800: : "${ac_tmp:=$tmp}"
17801: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17802: ' 0
17803: trap 'as_fn_exit 1' 1 2 13 15
1.25 moko 17804: }
17805: # Create a (secure) tmp directory for tmp files.
17806:
17807: {
1.32 moko 17808: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17809: test -d "$tmp"
1.25 moko 17810: } ||
17811: {
1.32 moko 17812: tmp=./conf$$-$RANDOM
17813: (umask 077 && mkdir "$tmp")
17814: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17815: ac_tmp=$tmp
17816:
17817: # Set up the scripts for CONFIG_FILES section.
17818: # No need to generate them if there are no CONFIG_FILES.
17819: # This happens for instance with `./config.status config.h'.
17820: if test -n "$CONFIG_FILES"; then
17821:
17822:
17823: ac_cr=`echo X | tr X '\015'`
17824: # On cygwin, bash can eat \r inside `` if the user requested igncr.
17825: # But we know of no other shell where ac_cr would be empty at this
17826: # point, so we can use a bashism as a fallback.
17827: if test "x$ac_cr" = x; then
17828: eval ac_cr=\$\'\\r\'
17829: fi
17830: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17831: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17832: ac_cs_awk_cr='\\r'
17833: else
17834: ac_cs_awk_cr=$ac_cr
17835: fi
17836:
17837: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17838: _ACEOF
17839:
17840:
17841: {
17842: echo "cat >conf$$subs.awk <<_ACEOF" &&
17843: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17844: echo "_ACEOF"
17845: } >conf$$subs.sh ||
17846: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17847: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17848: ac_delim='%!_!# '
17849: for ac_last_try in false false false false false :; do
17850: . ./conf$$subs.sh ||
17851: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17852:
17853: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17854: if test $ac_delim_n = $ac_delim_num; then
17855: break
17856: elif $ac_last_try; then
17857: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17858: else
17859: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17860: fi
17861: done
17862: rm -f conf$$subs.sh
17863:
17864: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17865: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17866: _ACEOF
17867: sed -n '
17868: h
17869: s/^/S["/; s/!.*/"]=/
17870: p
17871: g
17872: s/^[^!]*!//
17873: :repl
17874: t repl
17875: s/'"$ac_delim"'$//
17876: t delim
17877: :nl
17878: h
17879: s/\(.\{148\}\)..*/\1/
17880: t more1
17881: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17882: p
17883: n
17884: b repl
17885: :more1
17886: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17887: p
17888: g
17889: s/.\{148\}//
17890: t nl
17891: :delim
17892: h
17893: s/\(.\{148\}\)..*/\1/
17894: t more2
17895: s/["\\]/\\&/g; s/^/"/; s/$/"/
17896: p
17897: b
17898: :more2
17899: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17900: p
17901: g
17902: s/.\{148\}//
17903: t delim
17904: ' <conf$$subs.awk | sed '
17905: /^[^""]/{
17906: N
17907: s/\n//
17908: }
17909: ' >>$CONFIG_STATUS || ac_write_fail=1
17910: rm -f conf$$subs.awk
17911: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17912: _ACAWK
17913: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17914: for (key in S) S_is_set[key] = 1
17915: FS = ""
17916:
17917: }
1.25 moko 17918: {
1.32 moko 17919: line = $ 0
17920: nfields = split(line, field, "@")
17921: substed = 0
17922: len = length(field[1])
17923: for (i = 2; i < nfields; i++) {
17924: key = field[i]
17925: keylen = length(key)
17926: if (S_is_set[key]) {
17927: value = S[key]
17928: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17929: len += length(value) + length(field[++i])
17930: substed = 1
17931: } else
17932: len += 1 + keylen
17933: }
17934:
17935: print line
1.25 moko 17936: }
17937:
1.32 moko 17938: _ACAWK
17939: _ACEOF
17940: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17941: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17942: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17943: else
17944: cat
17945: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17946: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.25 moko 17947: _ACEOF
17948:
1.32 moko 17949: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17950: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17951: # trailing colons and then remove the whole line if VPATH becomes empty
17952: # (actually we leave an empty line to preserve line numbers).
17953: if test "x$srcdir" = x.; then
17954: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17955: h
17956: s///
17957: s/^/:/
17958: s/[ ]*$/:/
17959: s/:\$(srcdir):/:/g
17960: s/:\${srcdir}:/:/g
17961: s/:@srcdir@:/:/g
17962: s/^:*//
17963: s/:*$//
17964: x
17965: s/\(=[ ]*\).*/\1/
17966: G
17967: s/\n//
17968: s/^[^=]*=[ ]*$//
17969: }'
17970: fi
1.25 moko 17971:
1.32 moko 17972: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17973: fi # test -n "$CONFIG_FILES"
1.25 moko 17974:
1.32 moko 17975: # Set up the scripts for CONFIG_HEADERS section.
17976: # No need to generate them if there are no CONFIG_HEADERS.
17977: # This happens for instance with `./config.status Makefile'.
17978: if test -n "$CONFIG_HEADERS"; then
17979: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17980: BEGIN {
17981: _ACEOF
17982:
17983: # Transform confdefs.h into an awk script `defines.awk', embedded as
17984: # here-document in config.status, that substitutes the proper values into
17985: # config.h.in to produce config.h.
17986:
17987: # Create a delimiter string that does not exist in confdefs.h, to ease
17988: # handling of long lines.
17989: ac_delim='%!_!# '
17990: for ac_last_try in false false :; do
17991: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17992: if test -z "$ac_tt"; then
17993: break
17994: elif $ac_last_try; then
17995: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17996: else
17997: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.25 moko 17998: fi
1.32 moko 17999: done
1.25 moko 18000:
1.32 moko 18001: # For the awk script, D is an array of macro values keyed by name,
18002: # likewise P contains macro parameters if any. Preserve backslash
18003: # newline sequences.
18004:
18005: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18006: sed -n '
18007: s/.\{148\}/&'"$ac_delim"'/g
18008: t rset
18009: :rset
18010: s/^[ ]*#[ ]*define[ ][ ]*/ /
18011: t def
18012: d
18013: :def
18014: s/\\$//
18015: t bsnl
18016: s/["\\]/\\&/g
18017: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18018: D["\1"]=" \3"/p
18019: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18020: d
18021: :bsnl
18022: s/["\\]/\\&/g
18023: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18024: D["\1"]=" \3\\\\\\n"\\/p
18025: t cont
18026: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18027: t cont
18028: d
18029: :cont
18030: n
18031: s/.\{148\}/&'"$ac_delim"'/g
18032: t clear
18033: :clear
18034: s/\\$//
18035: t bsnlc
18036: s/["\\]/\\&/g; s/^/"/; s/$/"/p
18037: d
18038: :bsnlc
18039: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18040: b cont
18041: ' <confdefs.h | sed '
18042: s/'"$ac_delim"'/"\\\
18043: "/g' >>$CONFIG_STATUS || ac_write_fail=1
18044:
18045: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18046: for (key in D) D_is_set[key] = 1
18047: FS = ""
18048: }
18049: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18050: line = \$ 0
18051: split(line, arg, " ")
18052: if (arg[1] == "#") {
18053: defundef = arg[2]
18054: mac1 = arg[3]
18055: } else {
18056: defundef = substr(arg[1], 2)
18057: mac1 = arg[2]
18058: }
18059: split(mac1, mac2, "(") #)
18060: macro = mac2[1]
18061: prefix = substr(line, 1, index(line, defundef) - 1)
18062: if (D_is_set[macro]) {
18063: # Preserve the white space surrounding the "#".
18064: print prefix "define", macro P[macro] D[macro]
18065: next
18066: } else {
18067: # Replace #undef with comments. This is necessary, for example,
18068: # in the case of _POSIX_SOURCE, which is predefined and required
18069: # on some systems where configure will not decide to define it.
18070: if (defundef == "undef") {
18071: print "/*", prefix defundef, macro, "*/"
18072: next
18073: }
18074: }
18075: }
18076: { print }
18077: _ACAWK
1.25 moko 18078: _ACEOF
1.32 moko 18079: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18080: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18081: fi # test -n "$CONFIG_HEADERS"
18082:
18083:
18084: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18085: shift
18086: for ac_tag
18087: do
18088: case $ac_tag in
18089: :[FHLC]) ac_mode=$ac_tag; continue;;
18090: esac
18091: case $ac_mode$ac_tag in
18092: :[FHL]*:*);;
18093: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18094: :[FH]-) ac_tag=-:-;;
18095: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18096: esac
18097: ac_save_IFS=$IFS
18098: IFS=:
18099: set x $ac_tag
18100: IFS=$ac_save_IFS
18101: shift
18102: ac_file=$1
18103: shift
18104:
18105: case $ac_mode in
18106: :L) ac_source=$1;;
18107: :[FH])
18108: ac_file_inputs=
18109: for ac_f
18110: do
18111: case $ac_f in
18112: -) ac_f="$ac_tmp/stdin";;
18113: *) # Look for the file first in the build tree, then in the source tree
18114: # (if the path is not absolute). The absolute path cannot be DOS-style,
18115: # because $ac_f cannot contain `:'.
18116: test -f "$ac_f" ||
18117: case $ac_f in
18118: [\\/$]*) false;;
18119: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18120: esac ||
18121: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18122: esac
18123: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18124: as_fn_append ac_file_inputs " '$ac_f'"
18125: done
18126:
18127: # Let's still pretend it is `configure' which instantiates (i.e., don't
18128: # use $as_me), people would be surprised to read:
18129: # /* config.h. Generated by config.status. */
18130: configure_input='Generated from '`
18131: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18132: `' by configure.'
18133: if test x"$ac_file" != x-; then
18134: configure_input="$ac_file. $configure_input"
18135: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18136: $as_echo "$as_me: creating $ac_file" >&6;}
18137: fi
18138: # Neutralize special characters interpreted by sed in replacement strings.
18139: case $configure_input in #(
18140: *\&* | *\|* | *\\* )
18141: ac_sed_conf_input=`$as_echo "$configure_input" |
18142: sed 's/[\\\\&|]/\\\\&/g'`;; #(
18143: *) ac_sed_conf_input=$configure_input;;
18144: esac
18145:
18146: case $ac_tag in
18147: *:-:* | *:-) cat >"$ac_tmp/stdin" \
18148: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18149: esac
18150: ;;
1.25 moko 18151: esac
18152:
1.32 moko 18153: ac_dir=`$as_dirname -- "$ac_file" ||
1.25 moko 18154: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18155: X"$ac_file" : 'X\(//\)[^/]' \| \
18156: X"$ac_file" : 'X\(//\)$' \| \
1.32 moko 18157: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18158: $as_echo X"$ac_file" |
18159: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18160: s//\1/
18161: q
18162: }
18163: /^X\(\/\/\)[^/].*/{
18164: s//\1/
18165: q
18166: }
18167: /^X\(\/\/\)$/{
18168: s//\1/
18169: q
18170: }
18171: /^X\(\/\).*/{
18172: s//\1/
18173: q
18174: }
18175: s/.*/./; q'`
18176: as_dir="$ac_dir"; as_fn_mkdir_p
1.25 moko 18177: ac_builddir=.
18178:
1.32 moko 18179: case "$ac_dir" in
18180: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18181: *)
18182: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18183: # A ".." for each directory in $ac_dir_suffix.
18184: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18185: case $ac_top_builddir_sub in
18186: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18187: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18188: esac ;;
18189: esac
18190: ac_abs_top_builddir=$ac_pwd
18191: ac_abs_builddir=$ac_pwd$ac_dir_suffix
18192: # for backward compatibility:
18193: ac_top_builddir=$ac_top_build_prefix
1.25 moko 18194:
18195: case $srcdir in
1.32 moko 18196: .) # We are building in place.
1.25 moko 18197: ac_srcdir=.
1.32 moko 18198: ac_top_srcdir=$ac_top_builddir_sub
18199: ac_abs_top_srcdir=$ac_pwd ;;
18200: [\\/]* | ?:[\\/]* ) # Absolute name.
1.25 moko 18201: ac_srcdir=$srcdir$ac_dir_suffix;
1.32 moko 18202: ac_top_srcdir=$srcdir
18203: ac_abs_top_srcdir=$srcdir ;;
18204: *) # Relative name.
18205: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18206: ac_top_srcdir=$ac_top_build_prefix$srcdir
18207: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.25 moko 18208: esac
1.32 moko 18209: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.25 moko 18210:
18211:
1.32 moko 18212: case $ac_mode in
18213: :F)
18214: #
18215: # CONFIG_FILE
18216: #
1.25 moko 18217:
18218: case $INSTALL in
18219: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.32 moko 18220: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18221: esac
18222: ac_MKDIR_P=$MKDIR_P
18223: case $MKDIR_P in
18224: [\\/$]* | ?:[\\/]* ) ;;
18225: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.25 moko 18226: esac
1.32 moko 18227: _ACEOF
1.25 moko 18228:
1.32 moko 18229: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18230: # If the template does not know about datarootdir, expand it.
18231: # FIXME: This hack should be removed a few years after 2.60.
18232: ac_datarootdir_hack=; ac_datarootdir_seen=
18233: ac_sed_dataroot='
18234: /datarootdir/ {
18235: p
18236: q
18237: }
18238: /@datadir@/p
18239: /@docdir@/p
18240: /@infodir@/p
18241: /@localedir@/p
18242: /@mandir@/p'
18243: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18244: *datarootdir*) ac_datarootdir_seen=yes;;
18245: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18246: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18247: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18248: _ACEOF
18249: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18250: ac_datarootdir_hack='
18251: s&@datadir@&$datadir&g
18252: s&@docdir@&$docdir&g
18253: s&@infodir@&$infodir&g
18254: s&@localedir@&$localedir&g
18255: s&@mandir@&$mandir&g
18256: s&\\\${datarootdir}&$datarootdir&g' ;;
18257: esac
18258: _ACEOF
1.25 moko 18259:
1.32 moko 18260: # Neutralize VPATH when `$srcdir' = `.'.
18261: # Shell code in configure.ac might set extrasub.
18262: # FIXME: do we really want to maintain this feature?
18263: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18264: ac_sed_extra="$ac_vpsub
1.25 moko 18265: $extrasub
18266: _ACEOF
1.32 moko 18267: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.25 moko 18268: :t
18269: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.32 moko 18270: s|@configure_input@|$ac_sed_conf_input|;t t
18271: s&@top_builddir@&$ac_top_builddir_sub&;t t
18272: s&@top_build_prefix@&$ac_top_build_prefix&;t t
18273: s&@srcdir@&$ac_srcdir&;t t
18274: s&@abs_srcdir@&$ac_abs_srcdir&;t t
18275: s&@top_srcdir@&$ac_top_srcdir&;t t
18276: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18277: s&@builddir@&$ac_builddir&;t t
18278: s&@abs_builddir@&$ac_abs_builddir&;t t
18279: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18280: s&@INSTALL@&$ac_INSTALL&;t t
18281: s&@MKDIR_P@&$ac_MKDIR_P&;t t
18282: $ac_datarootdir_hack
18283: "
18284: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18285: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18286:
18287: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18288: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18289: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18290: "$ac_tmp/out"`; test -z "$ac_out"; } &&
18291: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18292: which seems to be undefined. Please make sure it is defined" >&5
18293: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18294: which seems to be undefined. Please make sure it is defined" >&2;}
1.25 moko 18295:
1.32 moko 18296: rm -f "$ac_tmp/stdin"
1.25 moko 18297: case $ac_file in
1.32 moko 18298: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18299: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18300: esac \
18301: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18302: ;;
18303: :H)
18304: #
18305: # CONFIG_HEADER
18306: #
1.25 moko 18307: if test x"$ac_file" != x-; then
1.32 moko 18308: {
18309: $as_echo "/* $configure_input */" \
18310: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18311: } >"$ac_tmp/config.h" \
18312: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18313: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18314: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18315: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.25 moko 18316: else
1.32 moko 18317: rm -f "$ac_file"
18318: mv "$ac_tmp/config.h" "$ac_file" \
18319: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.25 moko 18320: fi
18321: else
1.32 moko 18322: $as_echo "/* $configure_input */" \
18323: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18324: || as_fn_error $? "could not create -" "$LINENO" 5
1.25 moko 18325: fi
1.32 moko 18326: # Compute "$ac_file"'s index in $config_headers.
18327: _am_arg="$ac_file"
1.25 moko 18328: _am_stamp_count=1
18329: for _am_header in $config_headers :; do
18330: case $_am_header in
1.32 moko 18331: $_am_arg | $_am_arg:* )
1.25 moko 18332: break ;;
18333: * )
18334: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18335: esac
18336: done
1.32 moko 18337: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18338: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18339: X"$_am_arg" : 'X\(//\)[^/]' \| \
18340: X"$_am_arg" : 'X\(//\)$' \| \
18341: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18342: $as_echo X"$_am_arg" |
18343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18344: s//\1/
18345: q
18346: }
18347: /^X\(\/\/\)[^/].*/{
18348: s//\1/
18349: q
18350: }
18351: /^X\(\/\/\)$/{
18352: s//\1/
18353: q
18354: }
18355: /^X\(\/\).*/{
18356: s//\1/
18357: q
18358: }
18359: s/.*/./; q'`/stamp-h$_am_stamp_count
18360: ;;
1.25 moko 18361:
1.32 moko 18362: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18363: $as_echo "$as_me: executing $ac_file commands" >&6;}
18364: ;;
18365: esac
1.25 moko 18366:
18367:
1.32 moko 18368: case $ac_file$ac_mode in
18369: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18370: # Autoconf 2.62 quotes --file arguments for eval, but not when files
18371: # are listed without --file. Let's play safe and only enable the eval
18372: # if we detect the quoting.
18373: case $CONFIG_FILES in
18374: *\'*) eval set x "$CONFIG_FILES" ;;
18375: *) set x $CONFIG_FILES ;;
18376: esac
18377: shift
18378: for mf
18379: do
18380: # Strip MF so we end up with the name of the file.
18381: mf=`echo "$mf" | sed -e 's/:.*$//'`
18382: # Check whether this is an Automake generated Makefile or not.
18383: # We used to match only the files named `Makefile.in', but
18384: # some people rename them; so instead we look at the file content.
18385: # Grep'ing the first line is not enough: some people post-process
18386: # each Makefile.in and add a new line on top of each file to say so.
18387: # Grep'ing the whole file is not good either: AIX grep has a line
18388: # limit of 2048, but all sed's we know have understand at least 4000.
18389: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18390: dirpart=`$as_dirname -- "$mf" ||
1.25 moko 18391: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18392: X"$mf" : 'X\(//\)[^/]' \| \
18393: X"$mf" : 'X\(//\)$' \| \
1.32 moko 18394: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18395: $as_echo X"$mf" |
18396: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18397: s//\1/
18398: q
18399: }
18400: /^X\(\/\/\)[^/].*/{
18401: s//\1/
18402: q
18403: }
18404: /^X\(\/\/\)$/{
18405: s//\1/
18406: q
18407: }
18408: /^X\(\/\).*/{
18409: s//\1/
18410: q
18411: }
18412: s/.*/./; q'`
18413: else
18414: continue
18415: fi
18416: # Extract the definition of DEPDIR, am__include, and am__quote
18417: # from the Makefile without running `make'.
18418: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18419: test -z "$DEPDIR" && continue
18420: am__include=`sed -n 's/^am__include = //p' < "$mf"`
18421: test -z "am__include" && continue
18422: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18423: # When using ansi2knr, U may be empty or an underscore; expand it
18424: U=`sed -n 's/^U = //p' < "$mf"`
18425: # Find all dependency output files, they are included files with
18426: # $(DEPDIR) in their names. We invoke sed twice because it is the
18427: # simplest approach to changing $(DEPDIR) to its actual value in the
18428: # expansion.
18429: for file in `sed -n "
18430: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18431: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18432: # Make sure the directory exists.
18433: test -f "$dirpart/$file" && continue
18434: fdir=`$as_dirname -- "$file" ||
1.25 moko 18435: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18436: X"$file" : 'X\(//\)[^/]' \| \
18437: X"$file" : 'X\(//\)$' \| \
1.32 moko 18438: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18439: $as_echo X"$file" |
18440: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18441: s//\1/
18442: q
18443: }
18444: /^X\(\/\/\)[^/].*/{
18445: s//\1/
18446: q
18447: }
18448: /^X\(\/\/\)$/{
18449: s//\1/
18450: q
18451: }
18452: /^X\(\/\).*/{
18453: s//\1/
18454: q
18455: }
18456: s/.*/./; q'`
18457: as_dir=$dirpart/$fdir; as_fn_mkdir_p
18458: # echo "creating $dirpart/$file"
18459: echo '# dummy' > "$dirpart/$file"
1.25 moko 18460: done
18461: done
1.32 moko 18462: }
1.25 moko 18463: ;;
1.32 moko 18464: "libtool":C)
1.25 moko 18465:
18466: # See if we are running on zsh, and set the options which allow our
18467: # commands through without removal of \ escapes.
18468: if test -n "${ZSH_VERSION+set}" ; then
18469: setopt NO_GLOB_SUBST
18470: fi
18471:
18472: cfgfile="${ofile}T"
18473: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18474: $RM "$cfgfile"
18475:
18476: cat <<_LT_EOF >> "$cfgfile"
18477: #! $SHELL
18478:
18479: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18480: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18481: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18482: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18483: #
18484: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18485: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18486: # Foundation, Inc.
18487: # Written by Gordon Matzigkeit, 1996
18488: #
18489: # This file is part of GNU Libtool.
18490: #
18491: # GNU Libtool is free software; you can redistribute it and/or
18492: # modify it under the terms of the GNU General Public License as
18493: # published by the Free Software Foundation; either version 2 of
18494: # the License, or (at your option) any later version.
18495: #
18496: # As a special exception to the GNU General Public License,
18497: # if you distribute this file as part of a program or library that
18498: # is built using GNU Libtool, you may include this file under the
18499: # same distribution terms that you use for the rest of that program.
18500: #
18501: # GNU Libtool is distributed in the hope that it will be useful,
18502: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18503: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18504: # GNU General Public License for more details.
18505: #
18506: # You should have received a copy of the GNU General Public License
18507: # along with GNU Libtool; see the file COPYING. If not, a copy
18508: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18509: # obtained by writing to the Free Software Foundation, Inc.,
18510: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18511:
18512:
18513: # The names of the tagged configurations supported by this script.
18514: available_tags="CXX "
18515:
18516: # ### BEGIN LIBTOOL CONFIG
18517:
18518: # Which release of libtool.m4 was used?
18519: macro_version=$macro_version
18520: macro_revision=$macro_revision
18521:
1.31 moko 18522: # Whether or not to build static libraries.
18523: build_old_libs=$enable_static
18524:
1.25 moko 18525: # Assembler program.
18526: AS=$lt_AS
18527:
18528: # DLL creation program.
18529: DLLTOOL=$lt_DLLTOOL
18530:
18531: # Object dumper program.
18532: OBJDUMP=$lt_OBJDUMP
18533:
18534: # Whether or not to build shared libraries.
18535: build_libtool_libs=$enable_shared
18536:
18537: # What type of objects to build.
18538: pic_mode=$pic_mode
18539:
18540: # Whether or not to optimize for fast installation.
18541: fast_install=$enable_fast_install
18542:
18543: # Shell to use when invoking shell scripts.
18544: SHELL=$lt_SHELL
18545:
18546: # An echo program that protects backslashes.
18547: ECHO=$lt_ECHO
18548:
18549: # The PATH separator for the build system.
18550: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18551:
18552: # The host system.
18553: host_alias=$host_alias
18554: host=$host
18555: host_os=$host_os
18556:
18557: # The build system.
18558: build_alias=$build_alias
18559: build=$build
18560: build_os=$build_os
18561:
18562: # A sed program that does not truncate output.
18563: SED=$lt_SED
18564:
18565: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18566: Xsed="\$SED -e 1s/^X//"
18567:
18568: # A grep program that handles long lines.
18569: GREP=$lt_GREP
18570:
18571: # An ERE matcher.
18572: EGREP=$lt_EGREP
18573:
18574: # A literal string matcher.
18575: FGREP=$lt_FGREP
18576:
18577: # A BSD- or MS-compatible name lister.
18578: NM=$lt_NM
18579:
18580: # Whether we need soft or hard links.
18581: LN_S=$lt_LN_S
18582:
18583: # What is the maximum length of a command?
18584: max_cmd_len=$max_cmd_len
18585:
18586: # Object file suffix (normally "o").
18587: objext=$ac_objext
18588:
18589: # Executable file suffix (normally "").
18590: exeext=$exeext
18591:
18592: # whether the shell understands "unset".
18593: lt_unset=$lt_unset
18594:
18595: # turn spaces into newlines.
18596: SP2NL=$lt_lt_SP2NL
18597:
18598: # turn newlines into spaces.
18599: NL2SP=$lt_lt_NL2SP
18600:
18601: # convert \$build file names to \$host format.
18602: to_host_file_cmd=$lt_cv_to_host_file_cmd
18603:
18604: # convert \$build files to toolchain format.
18605: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18606:
18607: # Method to check whether dependent libraries are shared objects.
18608: deplibs_check_method=$lt_deplibs_check_method
18609:
18610: # Command to use when deplibs_check_method = "file_magic".
18611: file_magic_cmd=$lt_file_magic_cmd
18612:
18613: # How to find potential files when deplibs_check_method = "file_magic".
18614: file_magic_glob=$lt_file_magic_glob
18615:
18616: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18617: want_nocaseglob=$lt_want_nocaseglob
18618:
18619: # Command to associate shared and link libraries.
18620: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18621:
18622: # The archiver.
18623: AR=$lt_AR
18624:
18625: # Flags to create an archive.
18626: AR_FLAGS=$lt_AR_FLAGS
18627:
18628: # How to feed a file listing to the archiver.
18629: archiver_list_spec=$lt_archiver_list_spec
18630:
18631: # A symbol stripping program.
18632: STRIP=$lt_STRIP
18633:
18634: # Commands used to install an old-style archive.
18635: RANLIB=$lt_RANLIB
18636: old_postinstall_cmds=$lt_old_postinstall_cmds
18637: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18638:
18639: # Whether to use a lock for old archive extraction.
18640: lock_old_archive_extraction=$lock_old_archive_extraction
18641:
18642: # A C compiler.
18643: LTCC=$lt_CC
18644:
18645: # LTCC compiler flags.
18646: LTCFLAGS=$lt_CFLAGS
18647:
18648: # Take the output of nm and produce a listing of raw symbols and C names.
18649: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18650:
18651: # Transform the output of nm in a proper C declaration.
18652: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18653:
18654: # Transform the output of nm in a C name address pair.
18655: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18656:
18657: # Transform the output of nm in a C name address pair when lib prefix is needed.
18658: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18659:
18660: # Specify filename containing input files for \$NM.
18661: nm_file_list_spec=$lt_nm_file_list_spec
18662:
18663: # The root where to search for dependent libraries,and in which our libraries should be installed.
18664: lt_sysroot=$lt_sysroot
18665:
18666: # The name of the directory that contains temporary libtool files.
18667: objdir=$objdir
18668:
18669: # Used to examine libraries when file_magic_cmd begins with "file".
18670: MAGIC_CMD=$MAGIC_CMD
18671:
18672: # Must we lock files when doing compilation?
18673: need_locks=$lt_need_locks
18674:
18675: # Manifest tool.
18676: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18677:
18678: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18679: DSYMUTIL=$lt_DSYMUTIL
18680:
18681: # Tool to change global to local symbols on Mac OS X.
18682: NMEDIT=$lt_NMEDIT
18683:
18684: # Tool to manipulate fat objects and archives on Mac OS X.
18685: LIPO=$lt_LIPO
18686:
18687: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18688: OTOOL=$lt_OTOOL
18689:
18690: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18691: OTOOL64=$lt_OTOOL64
18692:
18693: # Old archive suffix (normally "a").
18694: libext=$libext
18695:
18696: # Shared library suffix (normally ".so").
18697: shrext_cmds=$lt_shrext_cmds
18698:
18699: # The commands to extract the exported symbol list from a shared archive.
18700: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18701:
18702: # Variables whose values should be saved in libtool wrapper scripts and
18703: # restored at link time.
18704: variables_saved_for_relink=$lt_variables_saved_for_relink
18705:
18706: # Do we need the "lib" prefix for modules?
18707: need_lib_prefix=$need_lib_prefix
18708:
18709: # Do we need a version for libraries?
18710: need_version=$need_version
18711:
18712: # Library versioning type.
18713: version_type=$version_type
18714:
18715: # Shared library runtime path variable.
18716: runpath_var=$runpath_var
18717:
18718: # Shared library path variable.
18719: shlibpath_var=$shlibpath_var
18720:
18721: # Is shlibpath searched before the hard-coded library search path?
18722: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18723:
18724: # Format of library name prefix.
18725: libname_spec=$lt_libname_spec
18726:
18727: # List of archive names. First name is the real one, the rest are links.
18728: # The last name is the one that the linker finds with -lNAME
18729: library_names_spec=$lt_library_names_spec
18730:
18731: # The coded name of the library, if different from the real name.
18732: soname_spec=$lt_soname_spec
18733:
18734: # Permission mode override for installation of shared libraries.
18735: install_override_mode=$lt_install_override_mode
18736:
18737: # Command to use after installation of a shared archive.
18738: postinstall_cmds=$lt_postinstall_cmds
18739:
18740: # Command to use after uninstallation of a shared archive.
18741: postuninstall_cmds=$lt_postuninstall_cmds
18742:
18743: # Commands used to finish a libtool library installation in a directory.
18744: finish_cmds=$lt_finish_cmds
18745:
18746: # As "finish_cmds", except a single script fragment to be evaled but
18747: # not shown.
18748: finish_eval=$lt_finish_eval
18749:
18750: # Whether we should hardcode library paths into libraries.
18751: hardcode_into_libs=$hardcode_into_libs
18752:
18753: # Compile-time system search path for libraries.
18754: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18755:
18756: # Run-time system search path for libraries.
18757: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18758:
18759: # Whether dlopen is supported.
18760: dlopen_support=$enable_dlopen
18761:
18762: # Whether dlopen of programs is supported.
18763: dlopen_self=$enable_dlopen_self
18764:
18765: # Whether dlopen of statically linked programs is supported.
18766: dlopen_self_static=$enable_dlopen_self_static
18767:
18768: # Commands to strip libraries.
18769: old_striplib=$lt_old_striplib
18770: striplib=$lt_striplib
18771:
18772:
18773: # The linker used to build libraries.
18774: LD=$lt_LD
18775:
18776: # How to create reloadable object files.
18777: reload_flag=$lt_reload_flag
18778: reload_cmds=$lt_reload_cmds
18779:
18780: # Commands used to build an old-style archive.
18781: old_archive_cmds=$lt_old_archive_cmds
18782:
18783: # A language specific compiler.
18784: CC=$lt_compiler
18785:
18786: # Is the compiler the GNU compiler?
18787: with_gcc=$GCC
18788:
18789: # Compiler flag to turn off builtin functions.
18790: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18791:
18792: # Additional compiler flags for building library objects.
18793: pic_flag=$lt_lt_prog_compiler_pic
18794:
18795: # How to pass a linker flag through the compiler.
18796: wl=$lt_lt_prog_compiler_wl
18797:
18798: # Compiler flag to prevent dynamic linking.
18799: link_static_flag=$lt_lt_prog_compiler_static
18800:
18801: # Does compiler simultaneously support -c and -o options?
18802: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18803:
18804: # Whether or not to add -lc for building shared libraries.
18805: build_libtool_need_lc=$archive_cmds_need_lc
18806:
18807: # Whether or not to disallow shared libs when runtime libs are static.
18808: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18809:
18810: # Compiler flag to allow reflexive dlopens.
18811: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18812:
18813: # Compiler flag to generate shared objects directly from archives.
18814: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18815:
18816: # Whether the compiler copes with passing no objects directly.
18817: compiler_needs_object=$lt_compiler_needs_object
18818:
18819: # Create an old-style archive from a shared archive.
18820: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18821:
18822: # Create a temporary old-style archive to link instead of a shared archive.
18823: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18824:
18825: # Commands used to build a shared archive.
18826: archive_cmds=$lt_archive_cmds
18827: archive_expsym_cmds=$lt_archive_expsym_cmds
18828:
18829: # Commands used to build a loadable module if different from building
18830: # a shared archive.
18831: module_cmds=$lt_module_cmds
18832: module_expsym_cmds=$lt_module_expsym_cmds
18833:
18834: # Whether we are building with GNU ld or not.
18835: with_gnu_ld=$lt_with_gnu_ld
18836:
18837: # Flag that allows shared libraries with undefined symbols to be built.
18838: allow_undefined_flag=$lt_allow_undefined_flag
18839:
18840: # Flag that enforces no undefined symbols.
18841: no_undefined_flag=$lt_no_undefined_flag
18842:
18843: # Flag to hardcode \$libdir into a binary during linking.
18844: # This must work even if \$libdir does not exist
18845: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18846:
18847: # Whether we need a single "-rpath" flag with a separated argument.
18848: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18849:
18850: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18851: # DIR into the resulting binary.
18852: hardcode_direct=$hardcode_direct
18853:
18854: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18855: # DIR into the resulting binary and the resulting library dependency is
18856: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18857: # library is relocated.
18858: hardcode_direct_absolute=$hardcode_direct_absolute
18859:
18860: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18861: # into the resulting binary.
18862: hardcode_minus_L=$hardcode_minus_L
18863:
18864: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18865: # into the resulting binary.
18866: hardcode_shlibpath_var=$hardcode_shlibpath_var
18867:
18868: # Set to "yes" if building a shared library automatically hardcodes DIR
18869: # into the library and all subsequent libraries and executables linked
18870: # against it.
18871: hardcode_automatic=$hardcode_automatic
18872:
18873: # Set to yes if linker adds runtime paths of dependent libraries
18874: # to runtime path list.
18875: inherit_rpath=$inherit_rpath
18876:
18877: # Whether libtool must link a program against all its dependency libraries.
18878: link_all_deplibs=$link_all_deplibs
18879:
18880: # Set to "yes" if exported symbols are required.
18881: always_export_symbols=$always_export_symbols
18882:
18883: # The commands to list exported symbols.
18884: export_symbols_cmds=$lt_export_symbols_cmds
18885:
18886: # Symbols that should not be listed in the preloaded symbols.
18887: exclude_expsyms=$lt_exclude_expsyms
18888:
18889: # Symbols that must always be exported.
18890: include_expsyms=$lt_include_expsyms
18891:
18892: # Commands necessary for linking programs (against libraries) with templates.
18893: prelink_cmds=$lt_prelink_cmds
18894:
18895: # Commands necessary for finishing linking programs.
18896: postlink_cmds=$lt_postlink_cmds
18897:
18898: # Specify filename containing input files.
18899: file_list_spec=$lt_file_list_spec
18900:
18901: # How to hardcode a shared library path into an executable.
18902: hardcode_action=$hardcode_action
18903:
18904: # The directories searched by this compiler when creating a shared library.
18905: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18906:
18907: # Dependencies to place before and after the objects being linked to
18908: # create a shared library.
18909: predep_objects=$lt_predep_objects
18910: postdep_objects=$lt_postdep_objects
18911: predeps=$lt_predeps
18912: postdeps=$lt_postdeps
18913:
18914: # The library search path used internally by the compiler when linking
18915: # a shared library.
18916: compiler_lib_search_path=$lt_compiler_lib_search_path
18917:
18918: # ### END LIBTOOL CONFIG
18919:
18920: _LT_EOF
18921:
18922: case $host_os in
18923: aix3*)
18924: cat <<\_LT_EOF >> "$cfgfile"
18925: # AIX sometimes has problems with the GCC collect2 program. For some
18926: # reason, if we set the COLLECT_NAMES environment variable, the problems
18927: # vanish in a puff of smoke.
18928: if test "X${COLLECT_NAMES+set}" != Xset; then
18929: COLLECT_NAMES=
18930: export COLLECT_NAMES
18931: fi
18932: _LT_EOF
18933: ;;
18934: esac
18935:
18936:
18937: ltmain="$ac_aux_dir/ltmain.sh"
18938:
18939:
18940: # We use sed instead of cat because bash on DJGPP gets confused if
18941: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18942: # text mode, it properly converts lines to CR/LF. This bash problem
18943: # is reportedly fixed, but why not run on old versions too?
18944: sed '$q' "$ltmain" >> "$cfgfile" \
18945: || (rm -f "$cfgfile"; exit 1)
18946:
18947: if test x"$xsi_shell" = xyes; then
18948: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18949: func_dirname ()\
18950: {\
18951: \ case ${1} in\
18952: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18953: \ * ) func_dirname_result="${3}" ;;\
18954: \ esac\
18955: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18956: && mv -f "$cfgfile.tmp" "$cfgfile" \
18957: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18958: test 0 -eq $? || _lt_function_replace_fail=:
18959:
18960:
18961: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18962: func_basename ()\
18963: {\
18964: \ func_basename_result="${1##*/}"\
18965: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18966: && mv -f "$cfgfile.tmp" "$cfgfile" \
18967: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18968: test 0 -eq $? || _lt_function_replace_fail=:
18969:
18970:
18971: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18972: func_dirname_and_basename ()\
18973: {\
18974: \ case ${1} in\
18975: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18976: \ * ) func_dirname_result="${3}" ;;\
18977: \ esac\
18978: \ func_basename_result="${1##*/}"\
18979: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18980: && mv -f "$cfgfile.tmp" "$cfgfile" \
18981: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18982: test 0 -eq $? || _lt_function_replace_fail=:
18983:
18984:
18985: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18986: func_stripname ()\
18987: {\
18988: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18989: \ # positional parameters, so assign one to ordinary parameter first.\
18990: \ func_stripname_result=${3}\
18991: \ func_stripname_result=${func_stripname_result#"${1}"}\
18992: \ func_stripname_result=${func_stripname_result%"${2}"}\
18993: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18994: && mv -f "$cfgfile.tmp" "$cfgfile" \
18995: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18996: test 0 -eq $? || _lt_function_replace_fail=:
18997:
18998:
18999: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19000: func_split_long_opt ()\
19001: {\
19002: \ func_split_long_opt_name=${1%%=*}\
19003: \ func_split_long_opt_arg=${1#*=}\
19004: } # Extended-shell func_split_long_opt 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_split_short_opt ()$/,/^} # func_split_short_opt /c\
19011: func_split_short_opt ()\
19012: {\
19013: \ func_split_short_opt_arg=${1#??}\
19014: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19015: } # Extended-shell func_split_short_opt 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: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19022: func_lo2o ()\
19023: {\
19024: \ case ${1} in\
19025: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19026: \ *) func_lo2o_result=${1} ;;\
19027: \ esac\
19028: } # Extended-shell func_lo2o implementation' "$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:
19033:
19034: sed -e '/^func_xform ()$/,/^} # func_xform /c\
19035: func_xform ()\
19036: {\
19037: func_xform_result=${1%.*}.lo\
19038: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19039: && mv -f "$cfgfile.tmp" "$cfgfile" \
19040: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19041: test 0 -eq $? || _lt_function_replace_fail=:
19042:
19043:
19044: sed -e '/^func_arith ()$/,/^} # func_arith /c\
19045: func_arith ()\
19046: {\
19047: func_arith_result=$(( $* ))\
19048: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19049: && mv -f "$cfgfile.tmp" "$cfgfile" \
19050: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19051: test 0 -eq $? || _lt_function_replace_fail=:
19052:
19053:
19054: sed -e '/^func_len ()$/,/^} # func_len /c\
19055: func_len ()\
19056: {\
19057: func_len_result=${#1}\
19058: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19059: && mv -f "$cfgfile.tmp" "$cfgfile" \
19060: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19061: test 0 -eq $? || _lt_function_replace_fail=:
19062:
19063: fi
19064:
19065: if test x"$lt_shell_append" = xyes; then
19066: sed -e '/^func_append ()$/,/^} # func_append /c\
19067: func_append ()\
19068: {\
19069: eval "${1}+=\\${2}"\
19070: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19071: && mv -f "$cfgfile.tmp" "$cfgfile" \
19072: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19073: test 0 -eq $? || _lt_function_replace_fail=:
19074:
19075:
19076: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19077: func_append_quoted ()\
19078: {\
19079: \ func_quote_for_eval "${2}"\
19080: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19081: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19082: && mv -f "$cfgfile.tmp" "$cfgfile" \
19083: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19084: test 0 -eq $? || _lt_function_replace_fail=:
19085:
19086:
19087: # Save a `func_append' function call where possible by direct use of '+='
19088: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19089: && mv -f "$cfgfile.tmp" "$cfgfile" \
19090: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19091: test 0 -eq $? || _lt_function_replace_fail=:
19092: else
19093: # Save a `func_append' function call even when '+=' is not available
19094: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19095: && mv -f "$cfgfile.tmp" "$cfgfile" \
19096: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19097: test 0 -eq $? || _lt_function_replace_fail=:
19098: fi
19099:
19100: if test x"$_lt_function_replace_fail" = x":"; then
1.32 moko 19101: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19102: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.25 moko 19103: fi
19104:
19105:
19106: mv -f "$cfgfile" "$ofile" ||
19107: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19108: chmod +x "$ofile"
19109:
19110:
19111: cat <<_LT_EOF >> "$ofile"
19112:
19113: # ### BEGIN LIBTOOL TAG CONFIG: CXX
19114:
19115: # The linker used to build libraries.
19116: LD=$lt_LD_CXX
19117:
19118: # How to create reloadable object files.
19119: reload_flag=$lt_reload_flag_CXX
19120: reload_cmds=$lt_reload_cmds_CXX
19121:
19122: # Commands used to build an old-style archive.
19123: old_archive_cmds=$lt_old_archive_cmds_CXX
19124:
19125: # A language specific compiler.
19126: CC=$lt_compiler_CXX
19127:
19128: # Is the compiler the GNU compiler?
19129: with_gcc=$GCC_CXX
19130:
19131: # Compiler flag to turn off builtin functions.
19132: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19133:
19134: # Additional compiler flags for building library objects.
19135: pic_flag=$lt_lt_prog_compiler_pic_CXX
19136:
19137: # How to pass a linker flag through the compiler.
19138: wl=$lt_lt_prog_compiler_wl_CXX
19139:
19140: # Compiler flag to prevent dynamic linking.
19141: link_static_flag=$lt_lt_prog_compiler_static_CXX
19142:
19143: # Does compiler simultaneously support -c and -o options?
19144: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19145:
19146: # Whether or not to add -lc for building shared libraries.
19147: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19148:
19149: # Whether or not to disallow shared libs when runtime libs are static.
19150: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19151:
19152: # Compiler flag to allow reflexive dlopens.
19153: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19154:
19155: # Compiler flag to generate shared objects directly from archives.
19156: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19157:
19158: # Whether the compiler copes with passing no objects directly.
19159: compiler_needs_object=$lt_compiler_needs_object_CXX
19160:
19161: # Create an old-style archive from a shared archive.
19162: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19163:
19164: # Create a temporary old-style archive to link instead of a shared archive.
19165: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19166:
19167: # Commands used to build a shared archive.
19168: archive_cmds=$lt_archive_cmds_CXX
19169: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19170:
19171: # Commands used to build a loadable module if different from building
19172: # a shared archive.
19173: module_cmds=$lt_module_cmds_CXX
19174: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19175:
19176: # Whether we are building with GNU ld or not.
19177: with_gnu_ld=$lt_with_gnu_ld_CXX
19178:
19179: # Flag that allows shared libraries with undefined symbols to be built.
19180: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19181:
19182: # Flag that enforces no undefined symbols.
19183: no_undefined_flag=$lt_no_undefined_flag_CXX
19184:
19185: # Flag to hardcode \$libdir into a binary during linking.
19186: # This must work even if \$libdir does not exist
19187: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19188:
19189: # Whether we need a single "-rpath" flag with a separated argument.
19190: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19191:
19192: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19193: # DIR into the resulting binary.
19194: hardcode_direct=$hardcode_direct_CXX
19195:
19196: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19197: # DIR into the resulting binary and the resulting library dependency is
19198: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19199: # library is relocated.
19200: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19201:
19202: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19203: # into the resulting binary.
19204: hardcode_minus_L=$hardcode_minus_L_CXX
19205:
19206: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19207: # into the resulting binary.
19208: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19209:
19210: # Set to "yes" if building a shared library automatically hardcodes DIR
19211: # into the library and all subsequent libraries and executables linked
19212: # against it.
19213: hardcode_automatic=$hardcode_automatic_CXX
19214:
19215: # Set to yes if linker adds runtime paths of dependent libraries
19216: # to runtime path list.
19217: inherit_rpath=$inherit_rpath_CXX
19218:
19219: # Whether libtool must link a program against all its dependency libraries.
19220: link_all_deplibs=$link_all_deplibs_CXX
19221:
19222: # Set to "yes" if exported symbols are required.
19223: always_export_symbols=$always_export_symbols_CXX
19224:
19225: # The commands to list exported symbols.
19226: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19227:
19228: # Symbols that should not be listed in the preloaded symbols.
19229: exclude_expsyms=$lt_exclude_expsyms_CXX
1.11 paf 19230:
1.25 moko 19231: # Symbols that must always be exported.
19232: include_expsyms=$lt_include_expsyms_CXX
1.1 parser 19233:
1.25 moko 19234: # Commands necessary for linking programs (against libraries) with templates.
19235: prelink_cmds=$lt_prelink_cmds_CXX
1.18 paf 19236:
1.25 moko 19237: # Commands necessary for finishing linking programs.
19238: postlink_cmds=$lt_postlink_cmds_CXX
1.11 paf 19239:
1.25 moko 19240: # Specify filename containing input files.
19241: file_list_spec=$lt_file_list_spec_CXX
1.11 paf 19242:
1.25 moko 19243: # How to hardcode a shared library path into an executable.
19244: hardcode_action=$hardcode_action_CXX
1.18 paf 19245:
1.25 moko 19246: # The directories searched by this compiler when creating a shared library.
19247: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
1.11 paf 19248:
1.25 moko 19249: # Dependencies to place before and after the objects being linked to
19250: # create a shared library.
19251: predep_objects=$lt_predep_objects_CXX
19252: postdep_objects=$lt_postdep_objects_CXX
19253: predeps=$lt_predeps_CXX
19254: postdeps=$lt_postdeps_CXX
19255:
19256: # The library search path used internally by the compiler when linking
19257: # a shared library.
19258: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.11 paf 19259:
1.25 moko 19260: # ### END LIBTOOL TAG CONFIG: CXX
19261: _LT_EOF
1.1 parser 19262:
1.11 paf 19263: ;;
1.32 moko 19264:
1.11 paf 19265: esac
1.32 moko 19266: done # for ac_tag
1.1 parser 19267:
19268:
1.32 moko 19269: as_fn_exit 0
1.11 paf 19270: _ACEOF
19271: ac_clean_files=$ac_clean_files_save
19272:
1.32 moko 19273: test $ac_write_fail = 0 ||
19274: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19275:
1.11 paf 19276:
19277: # configure is writing to config.log, and then calls config.status.
19278: # config.status does its own redirection, appending to config.log.
19279: # Unfortunately, on DOS this fails, as config.log is still kept open
19280: # by configure, so config.status won't be able to write to it; its
19281: # output is simply discarded. So we exec the FD to /dev/null,
19282: # effectively closing config.log, so it can be properly (re)opened and
19283: # appended to by config.status. When coming back to configure, we
19284: # need to make the FD available again.
19285: if test "$no_create" != yes; then
19286: ac_cs_success=:
19287: ac_config_status_args=
19288: test "$silent" = yes &&
19289: ac_config_status_args="$ac_config_status_args --quiet"
19290: exec 5>/dev/null
19291: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19292: exec 5>>config.log
19293: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19294: # would make configure fail if this is the last instruction.
1.32 moko 19295: $ac_cs_success || as_fn_exit 1
1.11 paf 19296: fi
1.1 parser 19297:
1.11 paf 19298: #
19299: # CONFIG_SUBDIRS section.
19300: #
1.1 parser 19301: if test "$no_recursion" != yes; then
19302:
1.32 moko 19303: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19304: # so they do not pile up.
1.1 parser 19305: ac_sub_configure_args=
19306: ac_prev=
1.32 moko 19307: eval "set x $ac_configure_args"
19308: shift
19309: for ac_arg
19310: do
1.1 parser 19311: if test -n "$ac_prev"; then
19312: ac_prev=
19313: continue
19314: fi
1.11 paf 19315: case $ac_arg in
1.1 parser 19316: -cache-file | --cache-file | --cache-fil | --cache-fi \
19317: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19318: ac_prev=cache_file ;;
19319: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.11 paf 19320: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19321: | --c=*)
19322: ;;
19323: --config-cache | -C)
1.1 parser 19324: ;;
19325: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19326: ac_prev=srcdir ;;
19327: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19328: ;;
1.11 paf 19329: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19330: ac_prev=prefix ;;
19331: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19332: ;;
1.32 moko 19333: --disable-option-checking)
19334: ;;
19335: *)
19336: case $ac_arg in
19337: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19338: esac
19339: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 parser 19340: esac
19341: done
19342:
1.11 paf 19343: # Always prepend --prefix to ensure using the same prefix
19344: # in subdir configurations.
1.32 moko 19345: ac_arg="--prefix=$prefix"
19346: case $ac_arg in
19347: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19348: esac
19349: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19350:
19351: # Pass --silent
19352: if test "$silent" = yes; then
19353: ac_sub_configure_args="--silent $ac_sub_configure_args"
19354: fi
19355:
19356: # Always prepend --disable-option-checking to silence warnings, since
19357: # different subdirs can have different --enable and --with options.
19358: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.11 paf 19359:
19360: ac_popdir=`pwd`
19361: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 19362:
19363: # Do not complain, so a configure script can configure whichever
19364: # parts of a large source tree are present.
1.32 moko 19365: test -d "$srcdir/$ac_dir" || continue
1.11 paf 19366:
1.32 moko 19367: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19368: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19369: $as_echo "$ac_msg" >&6
19370: as_dir="$ac_dir"; as_fn_mkdir_p
1.11 paf 19371: ac_builddir=.
19372:
1.32 moko 19373: case "$ac_dir" in
19374: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19375: *)
19376: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19377: # A ".." for each directory in $ac_dir_suffix.
19378: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19379: case $ac_top_builddir_sub in
19380: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19381: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19382: esac ;;
19383: esac
19384: ac_abs_top_builddir=$ac_pwd
19385: ac_abs_builddir=$ac_pwd$ac_dir_suffix
19386: # for backward compatibility:
19387: ac_top_builddir=$ac_top_build_prefix
1.11 paf 19388:
19389: case $srcdir in
1.32 moko 19390: .) # We are building in place.
1.11 paf 19391: ac_srcdir=.
1.32 moko 19392: ac_top_srcdir=$ac_top_builddir_sub
19393: ac_abs_top_srcdir=$ac_pwd ;;
19394: [\\/]* | ?:[\\/]* ) # Absolute name.
1.11 paf 19395: ac_srcdir=$srcdir$ac_dir_suffix;
1.32 moko 19396: ac_top_srcdir=$srcdir
19397: ac_abs_top_srcdir=$srcdir ;;
19398: *) # Relative name.
19399: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19400: ac_top_srcdir=$ac_top_build_prefix$srcdir
19401: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.18 paf 19402: esac
1.32 moko 19403: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 parser 19404:
19405:
1.32 moko 19406: cd "$ac_dir"
1.1 parser 19407:
19408: # Check for guested configure; otherwise get Cygnus style configure.
1.32 moko 19409: if test -f "$ac_srcdir/configure.gnu"; then
19410: ac_sub_configure=$ac_srcdir/configure.gnu
19411: elif test -f "$ac_srcdir/configure"; then
19412: ac_sub_configure=$ac_srcdir/configure
19413: elif test -f "$ac_srcdir/configure.in"; then
19414: # This should be Cygnus configure.
19415: ac_sub_configure=$ac_aux_dir/configure
1.1 parser 19416: else
1.32 moko 19417: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19418: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 19419: ac_sub_configure=
19420: fi
19421:
19422: # The recursion is here.
19423: if test -n "$ac_sub_configure"; then
19424: # Make the cache file name correct relative to the subdirectory.
1.11 paf 19425: case $cache_file in
19426: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.32 moko 19427: *) # Relative name.
19428: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 parser 19429: esac
19430:
1.32 moko 19431: { $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
19432: $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 19433: # The eval makes quoting arguments work.
1.32 moko 19434: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19435: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19436: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 parser 19437: fi
19438:
1.32 moko 19439: cd "$ac_popdir"
1.1 parser 19440: done
19441: fi
1.32 moko 19442: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19443: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19444: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19445: fi
1.1 parser 19446:
E-mail: