Annotation of parser3/configure, revision 1.159
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.157 moko 3: # Generated by GNU Autoconf 2.68 for parser 3.4.3b.
1.150 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 paf 10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.150 moko 13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
1.62 paf 16:
1.150 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.62 paf 20: emulate sh
21: NULLCMD=:
1.150 moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.150 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.62 paf 72: fi
73:
1.150 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.62 paf 81: fi
82:
83:
1.150 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.62 paf 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.150 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.62 paf 195: do
1.150 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.62 paf 246: else
1.150 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.62 paf 251: fi
1.150 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.62 paf 390:
1.150 moko 391: if expr a : '\(a\)' >/dev/null 2>&1 &&
392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
1.150 moko 398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
1.150 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.62 paf 409:
1.150 moko 410: as_me=`$as_basename -- "$0" ||
1.62 paf 411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
1.150 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.62 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.150 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.62 paf 446: sed '
1.150 moko 447: s/[$]LINENO.*/&-/
448: t lineno
449: b
450: :lineno
1.62 paf 451: N
1.150 moko 452: :loop
453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.62 paf 454: t loop
1.150 moko 455: s/-\n.*//
1.62 paf 456: ' >$as_me.lineno &&
1.150 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.62 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.150 moko 462: # original and so on. Autoconf is especially sensitive to this).
463: . "./$as_me.lineno"
1.62 paf 464: # Exit status is that of the last command.
465: exit
466: }
467:
1.150 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.62 paf 479: esac
480:
1.150 moko 481: rm -f conf$$ conf$$.exe conf$$.file
482: if test -d conf$$.dir; then
483: rm -f conf$$.dir/conf$$.file
1.62 paf 484: else
1.150 moko 485: rm -f conf$$.dir
486: mkdir conf$$.dir 2>/dev/null
1.62 paf 487: fi
1.150 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.62 paf 500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
504: fi
1.150 moko 505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506: rmdir conf$$.dir 2>/dev/null
1.62 paf 507:
508: if mkdir -p . 2>/dev/null; then
1.150 moko 509: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 510: else
1.86 paf 511: test -d ./-p && rmdir ./-p
1.62 paf 512: as_mkdir_p=false
513: fi
514:
1.150 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.62 paf 537:
538: # Sed expression to map a string onto a valid CPP name.
1.86 paf 539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 540:
541: # Sed expression to map a string onto a valid variable name.
1.86 paf 542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 543:
1.128 moko 544: lt_ltdl_dir='src/lib/ltdl'
545:
546: SHELL=${CONFIG_SHELL-/bin/sh}
547:
548: lt_dlopen_dir="$lt_ltdl_dir"
549:
1.1 paf 550:
1.150 moko 551: test -n "$DJDIR" || exec 7<&0 </dev/null
552: exec 6>&1
553:
1.62 paf 554: # Name of the host.
1.150 moko 555: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.62 paf 556: # so uname gets run too.
557: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558:
559: #
560: # Initializations.
561: #
1.1 paf 562: ac_default_prefix=/usr/local
1.150 moko 563: ac_clean_files=
1.62 paf 564: ac_config_libobj_dir=.
1.150 moko 565: LIBOBJS=
1.62 paf 566: cross_compiling=no
567: subdirs=
568: MFLAGS=
569: MAKEFLAGS=
570:
571: # Identity of this package.
1.128 moko 572: PACKAGE_NAME='parser'
573: PACKAGE_TARNAME='parser'
1.157 moko 574: PACKAGE_VERSION='3.4.3b'
575: PACKAGE_STRING='parser 3.4.3b'
1.128 moko 576: PACKAGE_BUGREPORT=''
1.150 moko 577: PACKAGE_URL=''
1.62 paf 578:
579: ac_unique_file="README"
580: # Factoring default headers for most tests.
581: ac_includes_default="\
582: #include <stdio.h>
1.150 moko 583: #ifdef HAVE_SYS_TYPES_H
1.62 paf 584: # include <sys/types.h>
585: #endif
1.150 moko 586: #ifdef HAVE_SYS_STAT_H
1.62 paf 587: # include <sys/stat.h>
588: #endif
1.150 moko 589: #ifdef STDC_HEADERS
1.62 paf 590: # include <stdlib.h>
591: # include <stddef.h>
592: #else
1.150 moko 593: # ifdef HAVE_STDLIB_H
1.62 paf 594: # include <stdlib.h>
595: # endif
596: #endif
1.150 moko 597: #ifdef HAVE_STRING_H
598: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.62 paf 599: # include <memory.h>
600: # endif
601: # include <string.h>
602: #endif
1.150 moko 603: #ifdef HAVE_STRINGS_H
1.62 paf 604: # include <strings.h>
605: #endif
1.150 moko 606: #ifdef HAVE_INTTYPES_H
1.62 paf 607: # include <inttypes.h>
608: #endif
1.150 moko 609: #ifdef HAVE_STDINT_H
610: # include <stdint.h>
611: #endif
612: #ifdef HAVE_UNISTD_H
1.62 paf 613: # include <unistd.h>
614: #endif"
615:
1.150 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: LIBTOOL
663: OBJDUMP
664: DLLTOOL
665: AS
666: COMPILE_APACHE_MODULE_FALSE
667: COMPILE_APACHE_MODULE_TRUE
668: APACHE_CFLAGS
669: APACHE_INC
670: APACHE
671: MIME_LIBS
672: MIME_INCLUDES
673: XML_LIBS
674: XML_INCLUDES
675: PCRE_LIBS
676: PCRE_INCLUDES
677: GC_LIBS
678: dll_extension
679: am__fastdepCC_FALSE
680: am__fastdepCC_TRUE
681: CCDEPMODE
682: ac_ct_CC
683: CFLAGS
684: CC
685: am__fastdepCXX_FALSE
686: am__fastdepCXX_TRUE
687: CXXDEPMODE
688: AMDEPBACKSLASH
689: AMDEP_FALSE
690: AMDEP_TRUE
691: am__quote
692: am__include
693: DEPDIR
694: OBJEXT
695: EXEEXT
696: ac_ct_CXX
697: CPPFLAGS
698: LDFLAGS
699: CXXFLAGS
700: CXX
701: YFLAGS
702: YACC
703: host_os
704: host_vendor
705: host_cpu
706: host
707: build_os
708: build_vendor
709: build_cpu
710: build
711: P3S
712: am__untar
713: am__tar
714: AMTAR
715: am__leading_dot
716: SET_MAKE
717: AWK
718: mkdir_p
719: MKDIR_P
720: INSTALL_STRIP_PROGRAM
721: STRIP
722: install_sh
723: MAKEINFO
724: AUTOHEADER
725: AUTOMAKE
726: AUTOCONF
727: ACLOCAL
728: VERSION
729: PACKAGE
730: CYGPATH_W
731: am__isrc
732: INSTALL_DATA
733: INSTALL_SCRIPT
734: INSTALL_PROGRAM
735: target_alias
736: host_alias
737: build_alias
738: LIBS
739: ECHO_T
740: ECHO_N
741: ECHO_C
742: DEFS
743: mandir
744: localedir
745: libdir
746: psdir
747: pdfdir
748: dvidir
749: htmldir
750: infodir
751: docdir
752: oldincludedir
753: includedir
754: localstatedir
755: sharedstatedir
756: sysconfdir
757: datadir
758: datarootdir
759: libexecdir
760: sbindir
761: bindir
762: program_transform_name
763: prefix
764: exec_prefix
765: PACKAGE_URL
766: PACKAGE_BUGREPORT
767: PACKAGE_STRING
768: PACKAGE_VERSION
769: PACKAGE_TARNAME
770: PACKAGE_NAME
771: PATH_SEPARATOR
772: SHELL'
1.62 paf 773: ac_subst_files=''
1.150 moko 774: ac_user_opts='
775: enable_option_checking
776: enable_dependency_tracking
777: with_build_warnings
778: with_assertions
779: with_sjlj_exceptions
780: enable_safe_mode
781: enable_execs
782: enable_stringstream
783: with_gc
784: with_pcre
785: with_xml
1.154 moko 786: with_mailreceive
1.150 moko 787: with_sendmail
788: with_apache
789: with_pic
790: enable_shared
791: enable_static
792: enable_fast_install
793: with_gnu_ld
794: with_sysroot
795: enable_libtool_lock
796: with_included_ltdl
797: with_ltdl_include
798: with_ltdl_lib
799: enable_ltdl_install
800: '
801: ac_precious_vars='build_alias
802: host_alias
803: target_alias
804: YACC
805: YFLAGS
806: CXX
807: CXXFLAGS
808: LDFLAGS
809: LIBS
810: CPPFLAGS
811: CCC
812: CC
813: CFLAGS
814: CPP
815: CXXCPP'
816: ac_subdirs_all='src/lib/ltdl'
1.1 paf 817:
818: # Initialize some variables set by options.
1.62 paf 819: ac_init_help=
820: ac_init_version=false
1.150 moko 821: ac_unrecognized_opts=
822: ac_unrecognized_sep=
1.1 paf 823: # The variables have the same names as the options, with
824: # dashes changed to underlines.
1.62 paf 825: cache_file=/dev/null
1.1 paf 826: exec_prefix=NONE
827: no_create=
828: no_recursion=
829: prefix=NONE
830: program_prefix=NONE
831: program_suffix=NONE
832: program_transform_name=s,x,x,
833: silent=
834: site=
835: srcdir=
836: verbose=
837: x_includes=NONE
838: x_libraries=NONE
1.62 paf 839:
840: # Installation directory options.
841: # These are left unexpanded so users can "make install exec_prefix=/foo"
842: # and all the variables that are supposed to be based on exec_prefix
843: # by default will actually change.
844: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 845: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 846: bindir='${exec_prefix}/bin'
847: sbindir='${exec_prefix}/sbin'
848: libexecdir='${exec_prefix}/libexec'
1.150 moko 849: datarootdir='${prefix}/share'
850: datadir='${datarootdir}'
1.1 paf 851: sysconfdir='${prefix}/etc'
852: sharedstatedir='${prefix}/com'
853: localstatedir='${prefix}/var'
854: includedir='${prefix}/include'
855: oldincludedir='/usr/include'
1.150 moko 856: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857: infodir='${datarootdir}/info'
858: htmldir='${docdir}'
859: dvidir='${docdir}'
860: pdfdir='${docdir}'
861: psdir='${docdir}'
862: libdir='${exec_prefix}/lib'
863: localedir='${datarootdir}/locale'
864: mandir='${datarootdir}/man'
1.1 paf 865:
866: ac_prev=
1.150 moko 867: ac_dashdash=
1.1 paf 868: for ac_option
869: do
870: # If the previous option needs an argument, assign it.
871: if test -n "$ac_prev"; then
1.150 moko 872: eval $ac_prev=\$ac_option
1.1 paf 873: ac_prev=
874: continue
875: fi
876:
1.150 moko 877: case $ac_option in
878: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879: *=) ac_optarg= ;;
880: *) ac_optarg=yes ;;
881: esac
1.1 paf 882:
883: # Accept the important Cygnus configure options, so we can diagnose typos.
884:
1.150 moko 885: case $ac_dashdash$ac_option in
886: --)
887: ac_dashdash=yes ;;
1.1 paf 888:
889: -bindir | --bindir | --bindi | --bind | --bin | --bi)
890: ac_prev=bindir ;;
891: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 892: bindir=$ac_optarg ;;
1.1 paf 893:
894: -build | --build | --buil | --bui | --bu)
1.62 paf 895: ac_prev=build_alias ;;
1.1 paf 896: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 897: build_alias=$ac_optarg ;;
1.1 paf 898:
899: -cache-file | --cache-file | --cache-fil | --cache-fi \
900: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901: ac_prev=cache_file ;;
902: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 904: cache_file=$ac_optarg ;;
905:
906: --config-cache | -C)
907: cache_file=config.cache ;;
1.1 paf 908:
1.150 moko 909: -datadir | --datadir | --datadi | --datad)
1.1 paf 910: ac_prev=datadir ;;
1.150 moko 911: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 912: datadir=$ac_optarg ;;
1.1 paf 913:
1.150 moko 914: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915: | --dataroo | --dataro | --datar)
916: ac_prev=datarootdir ;;
917: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919: datarootdir=$ac_optarg ;;
920:
1.1 paf 921: -disable-* | --disable-*)
1.150 moko 922: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 923: # Reject names that are not valid shell variable names.
1.150 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--disable-$ac_useropt_orig"
933: ac_unrecognized_sep=', ';;
934: esac
935: eval enable_$ac_useropt=no ;;
936:
937: -docdir | --docdir | --docdi | --doc | --do)
938: ac_prev=docdir ;;
939: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940: docdir=$ac_optarg ;;
941:
942: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943: ac_prev=dvidir ;;
944: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945: dvidir=$ac_optarg ;;
1.1 paf 946:
947: -enable-* | --enable-*)
1.150 moko 948: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 949: # Reject names that are not valid shell variable names.
1.150 moko 950: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951: as_fn_error $? "invalid feature name: $ac_useropt"
952: ac_useropt_orig=$ac_useropt
953: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954: case $ac_user_opts in
955: *"
956: "enable_$ac_useropt"
957: "*) ;;
958: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959: ac_unrecognized_sep=', ';;
1.1 paf 960: esac
1.150 moko 961: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 962:
963: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965: | --exec | --exe | --ex)
966: ac_prev=exec_prefix ;;
967: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969: | --exec=* | --exe=* | --ex=*)
1.62 paf 970: exec_prefix=$ac_optarg ;;
1.1 paf 971:
972: -gas | --gas | --ga | --g)
973: # Obsolete; use --with-gas.
974: with_gas=yes ;;
975:
1.62 paf 976: -help | --help | --hel | --he | -h)
977: ac_init_help=long ;;
978: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979: ac_init_help=recursive ;;
980: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981: ac_init_help=short ;;
1.1 paf 982:
983: -host | --host | --hos | --ho)
1.62 paf 984: ac_prev=host_alias ;;
1.1 paf 985: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 986: host_alias=$ac_optarg ;;
1.1 paf 987:
1.150 moko 988: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989: ac_prev=htmldir ;;
990: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991: | --ht=*)
992: htmldir=$ac_optarg ;;
993:
1.1 paf 994: -includedir | --includedir | --includedi | --included | --include \
995: | --includ | --inclu | --incl | --inc)
996: ac_prev=includedir ;;
997: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 999: includedir=$ac_optarg ;;
1.1 paf 1000:
1001: -infodir | --infodir | --infodi | --infod | --info | --inf)
1002: ac_prev=infodir ;;
1003: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1004: infodir=$ac_optarg ;;
1.1 paf 1005:
1006: -libdir | --libdir | --libdi | --libd)
1007: ac_prev=libdir ;;
1008: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1009: libdir=$ac_optarg ;;
1.1 paf 1010:
1011: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012: | --libexe | --libex | --libe)
1013: ac_prev=libexecdir ;;
1014: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1016: libexecdir=$ac_optarg ;;
1.1 paf 1017:
1.150 moko 1018: -localedir | --localedir | --localedi | --localed | --locale)
1019: ac_prev=localedir ;;
1020: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021: localedir=$ac_optarg ;;
1022:
1.1 paf 1023: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1024: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1025: ac_prev=localstatedir ;;
1026: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1027: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1028: localstatedir=$ac_optarg ;;
1.1 paf 1029:
1030: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031: ac_prev=mandir ;;
1032: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1033: mandir=$ac_optarg ;;
1.1 paf 1034:
1035: -nfp | --nfp | --nf)
1036: # Obsolete; use --without-fp.
1037: with_fp=no ;;
1038:
1039: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1040: | --no-cr | --no-c | -n)
1.1 paf 1041: no_create=yes ;;
1042:
1043: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045: no_recursion=yes ;;
1046:
1047: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049: | --oldin | --oldi | --old | --ol | --o)
1050: ac_prev=oldincludedir ;;
1051: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1054: oldincludedir=$ac_optarg ;;
1.1 paf 1055:
1056: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057: ac_prev=prefix ;;
1058: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1059: prefix=$ac_optarg ;;
1.1 paf 1060:
1061: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062: | --program-pre | --program-pr | --program-p)
1063: ac_prev=program_prefix ;;
1064: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1066: program_prefix=$ac_optarg ;;
1.1 paf 1067:
1068: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069: | --program-suf | --program-su | --program-s)
1070: ac_prev=program_suffix ;;
1071: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1073: program_suffix=$ac_optarg ;;
1.1 paf 1074:
1075: -program-transform-name | --program-transform-name \
1076: | --program-transform-nam | --program-transform-na \
1077: | --program-transform-n | --program-transform- \
1078: | --program-transform | --program-transfor \
1079: | --program-transfo | --program-transf \
1080: | --program-trans | --program-tran \
1081: | --progr-tra | --program-tr | --program-t)
1082: ac_prev=program_transform_name ;;
1083: -program-transform-name=* | --program-transform-name=* \
1084: | --program-transform-nam=* | --program-transform-na=* \
1085: | --program-transform-n=* | --program-transform-=* \
1086: | --program-transform=* | --program-transfor=* \
1087: | --program-transfo=* | --program-transf=* \
1088: | --program-trans=* | --program-tran=* \
1089: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1090: program_transform_name=$ac_optarg ;;
1.1 paf 1091:
1.150 moko 1092: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093: ac_prev=pdfdir ;;
1094: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095: pdfdir=$ac_optarg ;;
1096:
1097: -psdir | --psdir | --psdi | --psd | --ps)
1098: ac_prev=psdir ;;
1099: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100: psdir=$ac_optarg ;;
1101:
1.1 paf 1102: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103: | -silent | --silent | --silen | --sile | --sil)
1104: silent=yes ;;
1105:
1106: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107: ac_prev=sbindir ;;
1108: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109: | --sbi=* | --sb=*)
1.62 paf 1110: sbindir=$ac_optarg ;;
1.1 paf 1111:
1112: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114: | --sharedst | --shareds | --shared | --share | --shar \
1115: | --sha | --sh)
1116: ac_prev=sharedstatedir ;;
1117: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120: | --sha=* | --sh=*)
1.62 paf 1121: sharedstatedir=$ac_optarg ;;
1.1 paf 1122:
1123: -site | --site | --sit)
1124: ac_prev=site ;;
1125: -site=* | --site=* | --sit=*)
1.62 paf 1126: site=$ac_optarg ;;
1.1 paf 1127:
1128: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129: ac_prev=srcdir ;;
1130: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1131: srcdir=$ac_optarg ;;
1.1 paf 1132:
1133: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134: | --syscon | --sysco | --sysc | --sys | --sy)
1135: ac_prev=sysconfdir ;;
1136: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1138: sysconfdir=$ac_optarg ;;
1.1 paf 1139:
1140: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1141: ac_prev=target_alias ;;
1.1 paf 1142: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1143: target_alias=$ac_optarg ;;
1.1 paf 1144:
1145: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146: verbose=yes ;;
1147:
1.62 paf 1148: -version | --version | --versio | --versi | --vers | -V)
1149: ac_init_version=: ;;
1.1 paf 1150:
1151: -with-* | --with-*)
1.150 moko 1152: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1153: # Reject names that are not valid shell variable names.
1.150 moko 1154: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155: as_fn_error $? "invalid package name: $ac_useropt"
1156: ac_useropt_orig=$ac_useropt
1157: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158: case $ac_user_opts in
1159: *"
1160: "with_$ac_useropt"
1161: "*) ;;
1162: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163: ac_unrecognized_sep=', ';;
1.1 paf 1164: esac
1.150 moko 1165: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1166:
1167: -without-* | --without-*)
1.150 moko 1168: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1169: # Reject names that are not valid shell variable names.
1.150 moko 1170: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171: as_fn_error $? "invalid package name: $ac_useropt"
1172: ac_useropt_orig=$ac_useropt
1173: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174: case $ac_user_opts in
1175: *"
1176: "with_$ac_useropt"
1177: "*) ;;
1178: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179: ac_unrecognized_sep=', ';;
1180: esac
1181: eval with_$ac_useropt=no ;;
1.1 paf 1182:
1183: --x)
1184: # Obsolete; use --with-x.
1185: with_x=yes ;;
1186:
1187: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188: | --x-incl | --x-inc | --x-in | --x-i)
1189: ac_prev=x_includes ;;
1190: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1192: x_includes=$ac_optarg ;;
1.1 paf 1193:
1194: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196: ac_prev=x_libraries ;;
1197: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1199: x_libraries=$ac_optarg ;;
1.1 paf 1200:
1.150 moko 1201: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202: Try \`$0 --help' for more information"
1.1 paf 1203: ;;
1204:
1.62 paf 1205: *=*)
1206: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207: # Reject names that are not valid shell variable names.
1.150 moko 1208: case $ac_envvar in #(
1209: '' | [0-9]* | *[!_$as_cr_alnum]* )
1210: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211: esac
1212: eval $ac_envvar=\$ac_optarg
1.62 paf 1213: export $ac_envvar ;;
1214:
1.1 paf 1215: *)
1.62 paf 1216: # FIXME: should be removed in autoconf 3.0.
1.150 moko 1217: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1218: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.150 moko 1219: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1221: ;;
1222:
1223: esac
1224: done
1225:
1226: if test -n "$ac_prev"; then
1.62 paf 1227: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1228: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1229: fi
1230:
1.150 moko 1231: if test -n "$ac_unrecognized_opts"; then
1232: case $enable_option_checking in
1233: no) ;;
1234: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236: esac
1237: fi
1238:
1239: # Check all directory arguments for consistency.
1240: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241: datadir sysconfdir sharedstatedir localstatedir includedir \
1242: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243: libdir localedir mandir
1.62 paf 1244: do
1.150 moko 1245: eval ac_val=\$$ac_var
1246: # Remove trailing slashes.
1.62 paf 1247: case $ac_val in
1.150 moko 1248: */ )
1249: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250: eval $ac_var=\$ac_val;;
1.62 paf 1251: esac
1.150 moko 1252: # Be sure to have absolute directory names.
1.62 paf 1253: case $ac_val in
1.150 moko 1254: [\\/$]* | ?:[\\/]* ) continue;;
1255: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1256: esac
1.150 moko 1257: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1258: done
1259:
1.62 paf 1260: # There might be people who depend on the old broken behavior: `$host'
1261: # used to hold the argument of --host etc.
1262: # FIXME: To remove some day.
1263: build=$build_alias
1264: host=$host_alias
1265: target=$target_alias
1266:
1267: # FIXME: To remove some day.
1268: if test "x$host_alias" != x; then
1269: if test "x$build_alias" = x; then
1270: cross_compiling=maybe
1.150 moko 1271: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1272: If a cross compiler is detected then cross compile mode will be used" >&2
1.62 paf 1273: elif test "x$build_alias" != "x$host_alias"; then
1274: cross_compiling=yes
1275: fi
1276: fi
1277:
1278: ac_tool_prefix=
1279: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1280:
1.62 paf 1281: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1282:
1283:
1.150 moko 1284: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285: ac_ls_di=`ls -di .` &&
1286: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287: as_fn_error $? "working directory cannot be determined"
1288: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289: as_fn_error $? "pwd does not report name of working directory"
1290:
1291:
1.1 paf 1292: # Find the source files, if location was not specified.
1293: if test -z "$srcdir"; then
1294: ac_srcdir_defaulted=yes
1.150 moko 1295: # Try the directory containing this script, then the parent directory.
1296: ac_confdir=`$as_dirname -- "$as_myself" ||
1297: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298: X"$as_myself" : 'X\(//\)[^/]' \| \
1299: X"$as_myself" : 'X\(//\)$' \| \
1300: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301: $as_echo X"$as_myself" |
1302: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303: s//\1/
1304: q
1305: }
1306: /^X\(\/\/\)[^/].*/{
1307: s//\1/
1308: q
1309: }
1310: /^X\(\/\/\)$/{
1311: s//\1/
1312: q
1313: }
1314: /^X\(\/\).*/{
1315: s//\1/
1316: q
1317: }
1318: s/.*/./; q'`
1.1 paf 1319: srcdir=$ac_confdir
1.150 moko 1320: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1321: srcdir=..
1322: fi
1323: else
1324: ac_srcdir_defaulted=no
1325: fi
1.150 moko 1326: if test ! -r "$srcdir/$ac_unique_file"; then
1327: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329: fi
1330: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331: ac_abs_confdir=`(
1332: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333: pwd)`
1334: # When building in place, set srcdir=.
1335: if test "$ac_abs_confdir" = "$ac_pwd"; then
1336: srcdir=.
1337: fi
1338: # Remove unnecessary trailing slashes from srcdir.
1339: # Double slashes in file names in object file debugging info
1340: # mess up M-x gdb in Emacs.
1341: case $srcdir in
1342: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343: esac
1344: for ac_var in $ac_precious_vars; do
1345: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346: eval ac_env_${ac_var}_value=\$${ac_var}
1347: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349: done
1.62 paf 1350:
1351: #
1352: # Report the --help message.
1353: #
1354: if test "$ac_init_help" = "long"; then
1355: # Omit some internal or obsolete options to make the list less imposing.
1356: # This message is too long to be a string in the A/UX 3.1 sh.
1357: cat <<_ACEOF
1.157 moko 1358: \`configure' configures parser 3.4.3b to adapt to many kinds of systems.
1.62 paf 1359:
1360: Usage: $0 [OPTION]... [VAR=VALUE]...
1361:
1362: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363: VAR=VALUE. See below for descriptions of some of the useful variables.
1364:
1365: Defaults for the options are specified in brackets.
1366:
1367: Configuration:
1368: -h, --help display this help and exit
1369: --help=short display options specific to this package
1370: --help=recursive display the short help of all the included packages
1371: -V, --version display version information and exit
1.150 moko 1372: -q, --quiet, --silent do not print \`checking ...' messages
1.62 paf 1373: --cache-file=FILE cache test results in FILE [disabled]
1374: -C, --config-cache alias for \`--cache-file=config.cache'
1375: -n, --no-create do not create output files
1376: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377:
1378: Installation directories:
1379: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1380: [$ac_default_prefix]
1.62 paf 1381: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1382: [PREFIX]
1.62 paf 1383:
1384: By default, \`make install' will install all the files in
1385: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387: for instance \`--prefix=\$HOME'.
1388:
1389: For better control, use the options below.
1390:
1391: Fine tuning of the installation directories:
1.150 moko 1392: --bindir=DIR user executables [EPREFIX/bin]
1393: --sbindir=DIR system admin executables [EPREFIX/sbin]
1394: --libexecdir=DIR program executables [EPREFIX/libexec]
1395: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398: --libdir=DIR object code libraries [EPREFIX/lib]
1399: --includedir=DIR C header files [PREFIX/include]
1400: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403: --infodir=DIR info documentation [DATAROOTDIR/info]
1404: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405: --mandir=DIR man documentation [DATAROOTDIR/man]
1406: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1407: --htmldir=DIR html documentation [DOCDIR]
1408: --dvidir=DIR dvi documentation [DOCDIR]
1409: --pdfdir=DIR pdf documentation [DOCDIR]
1410: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1411: _ACEOF
1412:
1413: cat <<\_ACEOF
1414:
1415: Program names:
1416: --program-prefix=PREFIX prepend PREFIX to installed program names
1417: --program-suffix=SUFFIX append SUFFIX to installed program names
1418: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1419:
1420: System types:
1421: --build=BUILD configure for building on BUILD [guessed]
1422: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423: _ACEOF
1424: fi
1425:
1426: if test -n "$ac_init_help"; then
1.128 moko 1427: case $ac_init_help in
1.157 moko 1428: short | recursive ) echo "Configuration of parser 3.4.3b:";;
1.128 moko 1429: esac
1.62 paf 1430: cat <<\_ACEOF
1431:
1432: Optional Features:
1.150 moko 1433: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1434: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.86 paf 1436: --disable-dependency-tracking speeds up one-time build
1437: --enable-dependency-tracking do not reject slow dependency extractors
1.67 paf 1438: --disable-safe-mode to enable reading and executing
1.62 paf 1439: files belonging to group+user other then effective
1.146 moko 1440: --disable-execs to disable any execs
1.62 paf 1441: (file::exec, file::cgi, unix mail:send)
1.94 misha 1442: --disable-stringstream to disable stringstream usage.
1443: when disabled table.save use more memory but it's safer on freebsd 4.x
1.150 moko 1444: --enable-shared[=PKGS] build shared libraries [default=yes]
1445: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1446: --enable-fast-install[=PKGS]
1447: optimize for fast installation [default=yes]
1448: --disable-libtool-lock avoid locking (might break parallel builds)
1449: --enable-ltdl-install install libltdl
1.62 paf 1450:
1451: Optional Packages:
1452: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1454: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.67 paf 1455: --with-assertions to enable assertions
1.128 moko 1456: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.146 moko 1457: --with-gc=D D is the directory where
1.142 moko 1458: Boehm garbage collecting library is installed
1.146 moko 1459: --with-pcre=D D is the directory where
1.142 moko 1460: PCRE library is installed
1.146 moko 1461: --with-xml=D D is the directory where
1.142 moko 1462: Gnome XML libraries are installed
1.154 moko 1463: --with-mailreceive=D is the directory where
1464: Gnome MIME library is installed
1.62 paf 1465: \"--with-sendmail=COMMAND\" forces this command to send mail.
1466: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1467: (makes parser ignore user-defined sendmail commands)
1.146 moko 1468: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1469: builds apache DSO module using apxs
1.150 moko 1470: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.128 moko 1471: both]
1472: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473: --with-sysroot=DIR Search for dependent libraries within DIR
1474: (or the compiler's sysroot if not specified).
1475: --with-included-ltdl use the GNU ltdl sources included here
1476: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1477: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1478:
1479: Some influential environment variables:
1.150 moko 1480: YACC The `Yet Another Compiler Compiler' implementation to use.
1481: Defaults to the first program found out of: `bison -y', `byacc',
1482: `yacc'.
1483: YFLAGS The list of arguments that will be passed by default to $YACC.
1484: This script will default YFLAGS to the empty string to avoid a
1485: default value of `-d' given by some make applications.
1.66 paf 1486: CXX C++ compiler command
1487: CXXFLAGS C++ compiler flags
1.62 paf 1488: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489: nonstandard directory <lib dir>
1.150 moko 1490: LIBS libraries to pass to the linker, e.g. -l<library>
1491: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492: you have headers in a nonstandard directory <include dir>
1.66 paf 1493: CC C compiler command
1494: CFLAGS C compiler flags
1495: CPP C preprocessor
1.128 moko 1496: CXXCPP C++ preprocessor
1.62 paf 1497:
1498: Use these variables to override the choices made by `configure' or to help
1499: it to find libraries and programs with nonstandard names/locations.
1500:
1.150 moko 1501: Report bugs to the package provider.
1.62 paf 1502: _ACEOF
1.150 moko 1503: ac_status=$?
1.62 paf 1504: fi
1505:
1506: if test "$ac_init_help" = "recursive"; then
1507: # If there are subdirs, report their specific --help.
1508: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1509: test -d "$ac_dir" ||
1510: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511: continue
1.62 paf 1512: ac_builddir=.
1513:
1.150 moko 1514: case "$ac_dir" in
1515: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516: *)
1517: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518: # A ".." for each directory in $ac_dir_suffix.
1519: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520: case $ac_top_builddir_sub in
1521: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523: esac ;;
1524: esac
1525: ac_abs_top_builddir=$ac_pwd
1526: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527: # for backward compatibility:
1528: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1529:
1530: case $srcdir in
1.150 moko 1531: .) # We are building in place.
1.62 paf 1532: ac_srcdir=.
1.150 moko 1533: ac_top_srcdir=$ac_top_builddir_sub
1534: ac_abs_top_srcdir=$ac_pwd ;;
1535: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1536: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1537: ac_top_srcdir=$srcdir
1538: ac_abs_top_srcdir=$srcdir ;;
1539: *) # Relative name.
1540: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541: ac_top_srcdir=$ac_top_build_prefix$srcdir
1542: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1543: esac
1.150 moko 1544: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1545:
1.150 moko 1546: cd "$ac_dir" || { ac_status=$?; continue; }
1547: # Check for guested configure.
1548: if test -f "$ac_srcdir/configure.gnu"; then
1549: echo &&
1550: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551: elif test -f "$ac_srcdir/configure"; then
1552: echo &&
1553: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1554: else
1.150 moko 1555: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556: fi || ac_status=$?
1557: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1558: done
1559: fi
1560:
1.150 moko 1561: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1562: if $ac_init_version; then
1563: cat <<\_ACEOF
1.157 moko 1564: parser configure 3.4.3b
1.150 moko 1565: generated by GNU Autoconf 2.68
1.62 paf 1566:
1.150 moko 1567: Copyright (C) 2010 Free Software Foundation, Inc.
1.62 paf 1568: This configure script is free software; the Free Software Foundation
1569: gives unlimited permission to copy, distribute and modify it.
1570: _ACEOF
1.150 moko 1571: exit
1.62 paf 1572: fi
1573:
1.150 moko 1574: ## ------------------------ ##
1575: ## Autoconf initialization. ##
1576: ## ------------------------ ##
1577:
1578: # ac_fn_cxx_try_compile LINENO
1579: # ----------------------------
1580: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581: ac_fn_cxx_try_compile ()
1.62 paf 1582: {
1.150 moko 1583: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584: rm -f conftest.$ac_objext
1585: if { { ac_try="$ac_compile"
1586: case "(($ac_try" in
1587: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588: *) ac_try_echo=$ac_try;;
1589: esac
1590: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591: $as_echo "$ac_try_echo"; } >&5
1592: (eval "$ac_compile") 2>conftest.err
1593: ac_status=$?
1594: if test -s conftest.err; then
1595: grep -v '^ *+' conftest.err >conftest.er1
1596: cat conftest.er1 >&5
1597: mv -f conftest.er1 conftest.err
1598: fi
1599: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600: test $ac_status = 0; } && {
1601: test -z "$ac_cxx_werror_flag" ||
1602: test ! -s conftest.err
1603: } && test -s conftest.$ac_objext; then :
1604: ac_retval=0
1605: else
1606: $as_echo "$as_me: failed program was:" >&5
1607: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1608:
1.150 moko 1609: ac_retval=1
1610: fi
1611: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612: as_fn_set_status $ac_retval
1.62 paf 1613:
1.150 moko 1614: } # ac_fn_cxx_try_compile
1615:
1616: # ac_fn_c_try_compile LINENO
1617: # --------------------------
1618: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619: ac_fn_c_try_compile ()
1620: {
1621: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622: rm -f conftest.$ac_objext
1623: if { { ac_try="$ac_compile"
1624: case "(($ac_try" in
1625: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626: *) ac_try_echo=$ac_try;;
1627: esac
1628: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629: $as_echo "$ac_try_echo"; } >&5
1630: (eval "$ac_compile") 2>conftest.err
1631: ac_status=$?
1632: if test -s conftest.err; then
1633: grep -v '^ *+' conftest.err >conftest.er1
1634: cat conftest.er1 >&5
1635: mv -f conftest.er1 conftest.err
1636: fi
1637: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638: test $ac_status = 0; } && {
1639: test -z "$ac_c_werror_flag" ||
1640: test ! -s conftest.err
1641: } && test -s conftest.$ac_objext; then :
1642: ac_retval=0
1643: else
1644: $as_echo "$as_me: failed program was:" >&5
1645: sed 's/^/| /' conftest.$ac_ext >&5
1646:
1647: ac_retval=1
1648: fi
1649: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650: as_fn_set_status $ac_retval
1651:
1652: } # ac_fn_c_try_compile
1653:
1654: # ac_fn_c_try_link LINENO
1655: # -----------------------
1656: # Try to link conftest.$ac_ext, and return whether this succeeded.
1657: ac_fn_c_try_link ()
1658: {
1659: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660: rm -f conftest.$ac_objext conftest$ac_exeext
1661: if { { ac_try="$ac_link"
1662: case "(($ac_try" in
1663: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664: *) ac_try_echo=$ac_try;;
1665: esac
1666: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667: $as_echo "$ac_try_echo"; } >&5
1668: (eval "$ac_link") 2>conftest.err
1669: ac_status=$?
1670: if test -s conftest.err; then
1671: grep -v '^ *+' conftest.err >conftest.er1
1672: cat conftest.er1 >&5
1673: mv -f conftest.er1 conftest.err
1674: fi
1675: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676: test $ac_status = 0; } && {
1677: test -z "$ac_c_werror_flag" ||
1678: test ! -s conftest.err
1679: } && test -s conftest$ac_exeext && {
1680: test "$cross_compiling" = yes ||
1681: $as_test_x conftest$ac_exeext
1682: }; then :
1683: ac_retval=0
1684: else
1685: $as_echo "$as_me: failed program was:" >&5
1686: sed 's/^/| /' conftest.$ac_ext >&5
1687:
1688: ac_retval=1
1689: fi
1690: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692: # interfere with the next link command; also delete a directory that is
1693: # left behind by Apple's compiler. We do this before executing the actions.
1694: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696: as_fn_set_status $ac_retval
1697:
1698: } # ac_fn_c_try_link
1699:
1700: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701: # -------------------------------------------------------
1702: # Tests whether HEADER exists and can be compiled using the include files in
1703: # INCLUDES, setting the cache variable VAR accordingly.
1704: ac_fn_c_check_header_compile ()
1705: {
1706: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708: $as_echo_n "checking for $2... " >&6; }
1709: if eval \${$3+:} false; then :
1710: $as_echo_n "(cached) " >&6
1711: else
1712: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713: /* end confdefs.h. */
1714: $4
1715: #include <$2>
1716: _ACEOF
1717: if ac_fn_c_try_compile "$LINENO"; then :
1718: eval "$3=yes"
1719: else
1720: eval "$3=no"
1721: fi
1722: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723: fi
1724: eval ac_res=\$$3
1725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726: $as_echo "$ac_res" >&6; }
1727: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728:
1729: } # ac_fn_c_check_header_compile
1730:
1731: # ac_fn_c_try_cpp LINENO
1732: # ----------------------
1733: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734: ac_fn_c_try_cpp ()
1735: {
1736: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737: if { { ac_try="$ac_cpp conftest.$ac_ext"
1738: case "(($ac_try" in
1739: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740: *) ac_try_echo=$ac_try;;
1741: esac
1742: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743: $as_echo "$ac_try_echo"; } >&5
1744: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1745: ac_status=$?
1746: if test -s conftest.err; then
1747: grep -v '^ *+' conftest.err >conftest.er1
1748: cat conftest.er1 >&5
1749: mv -f conftest.er1 conftest.err
1750: fi
1751: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752: test $ac_status = 0; } > conftest.i && {
1753: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754: test ! -s conftest.err
1755: }; then :
1756: ac_retval=0
1757: else
1758: $as_echo "$as_me: failed program was:" >&5
1759: sed 's/^/| /' conftest.$ac_ext >&5
1760:
1761: ac_retval=1
1762: fi
1763: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764: as_fn_set_status $ac_retval
1765:
1766: } # ac_fn_c_try_cpp
1767:
1768: # ac_fn_c_try_run LINENO
1769: # ----------------------
1770: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771: # that executables *can* be run.
1772: ac_fn_c_try_run ()
1773: {
1774: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775: if { { ac_try="$ac_link"
1776: case "(($ac_try" in
1777: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778: *) ac_try_echo=$ac_try;;
1779: esac
1780: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781: $as_echo "$ac_try_echo"; } >&5
1782: (eval "$ac_link") 2>&5
1783: ac_status=$?
1784: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786: { { case "(($ac_try" in
1787: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788: *) ac_try_echo=$ac_try;;
1789: esac
1790: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791: $as_echo "$ac_try_echo"; } >&5
1792: (eval "$ac_try") 2>&5
1793: ac_status=$?
1794: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795: test $ac_status = 0; }; }; then :
1796: ac_retval=0
1797: else
1798: $as_echo "$as_me: program exited with status $ac_status" >&5
1799: $as_echo "$as_me: failed program was:" >&5
1800: sed 's/^/| /' conftest.$ac_ext >&5
1801:
1802: ac_retval=$ac_status
1803: fi
1804: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806: as_fn_set_status $ac_retval
1807:
1808: } # ac_fn_c_try_run
1809:
1810: # ac_fn_c_check_func LINENO FUNC VAR
1811: # ----------------------------------
1812: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813: ac_fn_c_check_func ()
1814: {
1815: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817: $as_echo_n "checking for $2... " >&6; }
1818: if eval \${$3+:} false; then :
1819: $as_echo_n "(cached) " >&6
1820: else
1821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822: /* end confdefs.h. */
1823: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825: #define $2 innocuous_$2
1826:
1827: /* System header to define __stub macros and hopefully few prototypes,
1828: which can conflict with char $2 (); below.
1829: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830: <limits.h> exists even on freestanding compilers. */
1831:
1832: #ifdef __STDC__
1833: # include <limits.h>
1834: #else
1835: # include <assert.h>
1836: #endif
1837:
1838: #undef $2
1839:
1840: /* Override any GCC internal prototype to avoid an error.
1841: Use char because int might match the return type of a GCC
1842: builtin and then its argument prototype would still apply. */
1843: #ifdef __cplusplus
1844: extern "C"
1845: #endif
1846: char $2 ();
1847: /* The GNU C library defines this for functions which it implements
1848: to always fail with ENOSYS. Some functions are actually named
1849: something starting with __ and the normal name is an alias. */
1850: #if defined __stub_$2 || defined __stub___$2
1851: choke me
1852: #endif
1853:
1854: int
1855: main ()
1856: {
1857: return $2 ();
1858: ;
1859: return 0;
1860: }
1861: _ACEOF
1862: if ac_fn_c_try_link "$LINENO"; then :
1863: eval "$3=yes"
1864: else
1865: eval "$3=no"
1866: fi
1867: rm -f core conftest.err conftest.$ac_objext \
1868: conftest$ac_exeext conftest.$ac_ext
1869: fi
1870: eval ac_res=\$$3
1871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872: $as_echo "$ac_res" >&6; }
1873: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874:
1875: } # ac_fn_c_check_func
1876:
1877: # ac_fn_cxx_try_cpp LINENO
1878: # ------------------------
1879: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1880: ac_fn_cxx_try_cpp ()
1881: {
1882: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883: if { { ac_try="$ac_cpp conftest.$ac_ext"
1884: case "(($ac_try" in
1885: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886: *) ac_try_echo=$ac_try;;
1887: esac
1888: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889: $as_echo "$ac_try_echo"; } >&5
1890: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1891: ac_status=$?
1892: if test -s conftest.err; then
1893: grep -v '^ *+' conftest.err >conftest.er1
1894: cat conftest.er1 >&5
1895: mv -f conftest.er1 conftest.err
1896: fi
1897: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898: test $ac_status = 0; } > conftest.i && {
1899: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1900: test ! -s conftest.err
1901: }; then :
1902: ac_retval=0
1903: else
1904: $as_echo "$as_me: failed program was:" >&5
1905: sed 's/^/| /' conftest.$ac_ext >&5
1906:
1907: ac_retval=1
1908: fi
1909: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910: as_fn_set_status $ac_retval
1911:
1912: } # ac_fn_cxx_try_cpp
1913:
1914: # ac_fn_cxx_try_link LINENO
1915: # -------------------------
1916: # Try to link conftest.$ac_ext, and return whether this succeeded.
1917: ac_fn_cxx_try_link ()
1918: {
1919: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920: rm -f conftest.$ac_objext conftest$ac_exeext
1921: if { { ac_try="$ac_link"
1922: case "(($ac_try" in
1923: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924: *) ac_try_echo=$ac_try;;
1925: esac
1926: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927: $as_echo "$ac_try_echo"; } >&5
1928: (eval "$ac_link") 2>conftest.err
1929: ac_status=$?
1930: if test -s conftest.err; then
1931: grep -v '^ *+' conftest.err >conftest.er1
1932: cat conftest.er1 >&5
1933: mv -f conftest.er1 conftest.err
1934: fi
1935: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936: test $ac_status = 0; } && {
1937: test -z "$ac_cxx_werror_flag" ||
1938: test ! -s conftest.err
1939: } && test -s conftest$ac_exeext && {
1940: test "$cross_compiling" = yes ||
1941: $as_test_x conftest$ac_exeext
1942: }; then :
1943: ac_retval=0
1944: else
1945: $as_echo "$as_me: failed program was:" >&5
1946: sed 's/^/| /' conftest.$ac_ext >&5
1947:
1948: ac_retval=1
1949: fi
1950: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952: # interfere with the next link command; also delete a directory that is
1953: # left behind by Apple's compiler. We do this before executing the actions.
1954: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956: as_fn_set_status $ac_retval
1957:
1958: } # ac_fn_cxx_try_link
1959:
1960: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1961: # ---------------------------------------------
1962: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1963: # accordingly.
1964: ac_fn_c_check_decl ()
1965: {
1966: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967: as_decl_name=`echo $2|sed 's/ *(.*//'`
1968: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1970: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1971: if eval \${$3+:} false; then :
1972: $as_echo_n "(cached) " >&6
1973: else
1974: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975: /* end confdefs.h. */
1976: $4
1977: int
1978: main ()
1979: {
1980: #ifndef $as_decl_name
1981: #ifdef __cplusplus
1982: (void) $as_decl_use;
1983: #else
1984: (void) $as_decl_name;
1985: #endif
1986: #endif
1987:
1988: ;
1989: return 0;
1990: }
1991: _ACEOF
1992: if ac_fn_c_try_compile "$LINENO"; then :
1993: eval "$3=yes"
1994: else
1995: eval "$3=no"
1996: fi
1997: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998: fi
1999: eval ac_res=\$$3
2000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001: $as_echo "$ac_res" >&6; }
2002: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003:
2004: } # ac_fn_c_check_decl
2005:
2006: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007: # -------------------------------------------
2008: # Tests whether TYPE exists after having included INCLUDES, setting cache
2009: # variable VAR accordingly.
2010: ac_fn_c_check_type ()
2011: {
2012: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014: $as_echo_n "checking for $2... " >&6; }
2015: if eval \${$3+:} false; then :
2016: $as_echo_n "(cached) " >&6
2017: else
2018: eval "$3=no"
2019: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020: /* end confdefs.h. */
2021: $4
2022: int
2023: main ()
2024: {
2025: if (sizeof ($2))
2026: return 0;
2027: ;
2028: return 0;
2029: }
2030: _ACEOF
2031: if ac_fn_c_try_compile "$LINENO"; then :
2032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033: /* end confdefs.h. */
2034: $4
2035: int
2036: main ()
2037: {
2038: if (sizeof (($2)))
2039: return 0;
2040: ;
2041: return 0;
2042: }
2043: _ACEOF
2044: if ac_fn_c_try_compile "$LINENO"; then :
2045:
2046: else
2047: eval "$3=yes"
2048: fi
2049: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050: fi
2051: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052: fi
2053: eval ac_res=\$$3
2054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055: $as_echo "$ac_res" >&6; }
2056: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057:
2058: } # ac_fn_c_check_type
2059:
1.156 moko 2060: # ac_fn_c_find_uintX_t LINENO BITS VAR
2061: # ------------------------------------
2062: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2063: # accordingly.
2064: ac_fn_c_find_uintX_t ()
2065: {
2066: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2068: $as_echo_n "checking for uint$2_t... " >&6; }
2069: if eval \${$3+:} false; then :
2070: $as_echo_n "(cached) " >&6
2071: else
2072: eval "$3=no"
2073: # Order is important - never check a type that is potentially smaller
2074: # than half of the expected target width.
2075: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2076: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2077: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078: /* end confdefs.h. */
2079: $ac_includes_default
2080: int
2081: main ()
2082: {
2083: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2084: test_array [0] = 0
2085:
2086: ;
2087: return 0;
2088: }
2089: _ACEOF
2090: if ac_fn_c_try_compile "$LINENO"; then :
2091: case $ac_type in #(
2092: uint$2_t) :
2093: eval "$3=yes" ;; #(
2094: *) :
2095: eval "$3=\$ac_type" ;;
2096: esac
2097: fi
2098: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099: if eval test \"x\$"$3"\" = x"no"; then :
2100:
2101: else
2102: break
2103: fi
2104: done
2105: fi
2106: eval ac_res=\$$3
2107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108: $as_echo "$ac_res" >&6; }
2109: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110:
2111: } # ac_fn_c_find_uintX_t
2112:
1.150 moko 2113: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2114: # -------------------------------------------------------
2115: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2116: # the include files in INCLUDES and setting the cache variable VAR
2117: # accordingly.
2118: ac_fn_c_check_header_mongrel ()
2119: {
2120: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121: if eval \${$3+:} false; then :
2122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123: $as_echo_n "checking for $2... " >&6; }
2124: if eval \${$3+:} false; then :
2125: $as_echo_n "(cached) " >&6
2126: fi
2127: eval ac_res=\$$3
2128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129: $as_echo "$ac_res" >&6; }
2130: else
2131: # Is the header compilable?
2132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2133: $as_echo_n "checking $2 usability... " >&6; }
2134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135: /* end confdefs.h. */
2136: $4
2137: #include <$2>
2138: _ACEOF
2139: if ac_fn_c_try_compile "$LINENO"; then :
2140: ac_header_compiler=yes
2141: else
2142: ac_header_compiler=no
2143: fi
2144: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2146: $as_echo "$ac_header_compiler" >&6; }
2147:
2148: # Is the header present?
2149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2150: $as_echo_n "checking $2 presence... " >&6; }
2151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152: /* end confdefs.h. */
2153: #include <$2>
2154: _ACEOF
2155: if ac_fn_c_try_cpp "$LINENO"; then :
2156: ac_header_preproc=yes
2157: else
2158: ac_header_preproc=no
2159: fi
2160: rm -f conftest.err conftest.i conftest.$ac_ext
2161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2162: $as_echo "$ac_header_preproc" >&6; }
2163:
2164: # So? What about this header?
2165: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2166: yes:no: )
2167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2168: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2169: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2171: ;;
2172: no:yes:* )
2173: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2174: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2175: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2176: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2177: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2178: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2179: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2180: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2181: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2182: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2183: ;;
2184: esac
2185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186: $as_echo_n "checking for $2... " >&6; }
2187: if eval \${$3+:} false; then :
2188: $as_echo_n "(cached) " >&6
2189: else
2190: eval "$3=\$ac_header_compiler"
2191: fi
2192: eval ac_res=\$$3
2193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194: $as_echo "$ac_res" >&6; }
2195: fi
2196: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197:
2198: } # ac_fn_c_check_header_mongrel
2199: cat >config.log <<_ACEOF
2200: This file contains any messages produced by compilers while
2201: running configure, to aid debugging if configure makes a mistake.
2202:
1.157 moko 2203: It was created by parser $as_me 3.4.3b, which was
1.150 moko 2204: generated by GNU Autoconf 2.68. Invocation command line was
2205:
2206: $ $0 $@
2207:
2208: _ACEOF
2209: exec 5>>config.log
2210: {
2211: cat <<_ASUNAME
2212: ## --------- ##
2213: ## Platform. ##
2214: ## --------- ##
2215:
2216: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2217: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2218: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2219: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2220: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2221:
2222: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2223: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2224:
2225: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2226: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2227: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2228: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2229: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2230: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2231: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2232:
2233: _ASUNAME
2234:
2235: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236: for as_dir in $PATH
2237: do
2238: IFS=$as_save_IFS
2239: test -z "$as_dir" && as_dir=.
1.150 moko 2240: $as_echo "PATH: $as_dir"
2241: done
2242: IFS=$as_save_IFS
1.1 paf 2243:
1.62 paf 2244: } >&5
2245:
2246: cat >&5 <<_ACEOF
2247:
2248:
2249: ## ----------- ##
2250: ## Core tests. ##
2251: ## ----------- ##
2252:
2253: _ACEOF
2254:
2255:
2256: # Keep a trace of the command line.
2257: # Strip out --no-create and --no-recursion so they do not pile up.
2258: # Strip out --silent because we don't want to record it for future runs.
2259: # Also quote any args containing shell meta-characters.
2260: # Make two passes to allow for proper duplicate-argument suppression.
2261: ac_configure_args=
2262: ac_configure_args0=
2263: ac_configure_args1=
2264: ac_must_keep_next=false
2265: for ac_pass in 1 2
2266: do
2267: for ac_arg
2268: do
2269: case $ac_arg in
2270: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2271: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2272: | -silent | --silent | --silen | --sile | --sil)
2273: continue ;;
1.150 moko 2274: *\'*)
2275: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2276: esac
2277: case $ac_pass in
1.150 moko 2278: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2279: 2)
1.150 moko 2280: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2281: if test $ac_must_keep_next = true; then
1.86 paf 2282: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2283: else
1.86 paf 2284: case $ac_arg in
2285: *=* | --config-cache | -C | -disable-* | --disable-* \
2286: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2287: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2288: | -with-* | --with-* | -without-* | --without-* | --x)
2289: case "$ac_configure_args0 " in
2290: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2291: esac
2292: ;;
2293: -* ) ac_must_keep_next=true ;;
2294: esac
1.62 paf 2295: fi
1.150 moko 2296: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2297: ;;
2298: esac
2299: done
2300: done
1.150 moko 2301: { ac_configure_args0=; unset ac_configure_args0;}
2302: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2303:
2304: # When interrupted or exit'd, cleanup temporary files, and complete
2305: # config.log. We remove comments because anyway the quotes in there
2306: # would cause problems or look ugly.
1.150 moko 2307: # WARNING: Use '\'' to represent an apostrophe within the trap.
2308: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2309: trap 'exit_status=$?
2310: # Save into config.log some information that might help in debugging.
2311: {
2312: echo
2313:
1.150 moko 2314: $as_echo "## ---------------- ##
1.62 paf 2315: ## Cache variables. ##
1.150 moko 2316: ## ---------------- ##"
1.62 paf 2317: echo
2318: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2319: (
2320: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321: eval ac_val=\$$ac_var
2322: case $ac_val in #(
2323: *${as_nl}*)
2324: case $ac_var in #(
2325: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327: esac
2328: case $ac_var in #(
2329: _ | IFS | as_nl) ;; #(
2330: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331: *) { eval $ac_var=; unset $ac_var;} ;;
2332: esac ;;
2333: esac
2334: done
1.62 paf 2335: (set) 2>&1 |
1.150 moko 2336: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337: *${as_nl}ac_space=\ *)
1.62 paf 2338: sed -n \
1.150 moko 2339: "s/'\''/'\''\\\\'\'''\''/g;
2340: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341: ;; #(
1.62 paf 2342: *)
1.150 moko 2343: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2344: ;;
1.150 moko 2345: esac |
2346: sort
2347: )
1.62 paf 2348: echo
2349:
1.150 moko 2350: $as_echo "## ----------------- ##
1.62 paf 2351: ## Output variables. ##
1.150 moko 2352: ## ----------------- ##"
1.62 paf 2353: echo
2354: for ac_var in $ac_subst_vars
2355: do
1.150 moko 2356: eval ac_val=\$$ac_var
2357: case $ac_val in
2358: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359: esac
2360: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2361: done | sort
2362: echo
2363:
2364: if test -n "$ac_subst_files"; then
1.150 moko 2365: $as_echo "## ------------------- ##
2366: ## File substitutions. ##
2367: ## ------------------- ##"
1.62 paf 2368: echo
2369: for ac_var in $ac_subst_files
2370: do
1.150 moko 2371: eval ac_val=\$$ac_var
2372: case $ac_val in
2373: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374: esac
2375: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2376: done | sort
2377: echo
2378: fi
2379:
2380: if test -s confdefs.h; then
1.150 moko 2381: $as_echo "## ----------- ##
1.62 paf 2382: ## confdefs.h. ##
1.150 moko 2383: ## ----------- ##"
1.62 paf 2384: echo
1.150 moko 2385: cat confdefs.h
1.62 paf 2386: echo
2387: fi
2388: test "$ac_signal" != 0 &&
1.150 moko 2389: $as_echo "$as_me: caught signal $ac_signal"
2390: $as_echo "$as_me: exit $exit_status"
1.62 paf 2391: } >&5
1.150 moko 2392: rm -f core *.core core.conftest.* &&
2393: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2394: exit $exit_status
1.150 moko 2395: ' 0
1.62 paf 2396: for ac_signal in 1 2 13 15; do
1.150 moko 2397: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2398: done
2399: ac_signal=0
2400:
2401: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2402: rm -f -r conftest* confdefs.h
2403:
2404: $as_echo "/* confdefs.h */" > confdefs.h
1.62 paf 2405:
2406: # Predefined preprocessor variables.
2407:
2408: cat >>confdefs.h <<_ACEOF
2409: #define PACKAGE_NAME "$PACKAGE_NAME"
2410: _ACEOF
2411:
2412: cat >>confdefs.h <<_ACEOF
2413: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414: _ACEOF
2415:
2416: cat >>confdefs.h <<_ACEOF
2417: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2418: _ACEOF
2419:
2420: cat >>confdefs.h <<_ACEOF
2421: #define PACKAGE_STRING "$PACKAGE_STRING"
2422: _ACEOF
2423:
1.150 moko 2424: cat >>confdefs.h <<_ACEOF
2425: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426: _ACEOF
1.62 paf 2427:
2428: cat >>confdefs.h <<_ACEOF
1.150 moko 2429: #define PACKAGE_URL "$PACKAGE_URL"
1.62 paf 2430: _ACEOF
2431:
2432:
2433: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2434: # Prefer an explicitly selected file to automatically selected ones.
2435: ac_site_file1=NONE
2436: ac_site_file2=NONE
2437: if test -n "$CONFIG_SITE"; then
2438: # We do not want a PATH search for config.site.
2439: case $CONFIG_SITE in #((
2440: -*) ac_site_file1=./$CONFIG_SITE;;
2441: */*) ac_site_file1=$CONFIG_SITE;;
2442: *) ac_site_file1=./$CONFIG_SITE;;
2443: esac
2444: elif test "x$prefix" != xNONE; then
2445: ac_site_file1=$prefix/share/config.site
2446: ac_site_file2=$prefix/etc/config.site
2447: else
2448: ac_site_file1=$ac_default_prefix/share/config.site
2449: ac_site_file2=$ac_default_prefix/etc/config.site
2450: fi
2451: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2452: do
2453: test "x$ac_site_file" = xNONE && continue
2454: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2455: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2457: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2458: . "$ac_site_file" \
2459: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461: as_fn_error $? "failed to load site script $ac_site_file
2462: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2463: fi
2464: done
2465:
2466: if test -r "$cache_file"; then
1.150 moko 2467: # Some versions of bash will fail to source /dev/null (special files
2468: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2469: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2470: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2472: case $cache_file in
1.150 moko 2473: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474: *) . "./$cache_file";;
1.62 paf 2475: esac
2476: fi
1.1 paf 2477: else
1.150 moko 2478: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2480: >$cache_file
2481: fi
2482:
2483: # Check that the precious variables saved in the cache have kept the same
2484: # value.
2485: ac_cache_corrupted=false
1.150 moko 2486: for ac_var in $ac_precious_vars; do
1.62 paf 2487: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2488: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 2489: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2490: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 2491: case $ac_old_set,$ac_new_set in
2492: set,)
1.150 moko 2493: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.62 paf 2495: ac_cache_corrupted=: ;;
2496: ,set)
1.150 moko 2497: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.62 paf 2499: ac_cache_corrupted=: ;;
2500: ,);;
2501: *)
2502: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 2503: # differences in whitespace do not lead to failure.
2504: ac_old_val_w=`echo x $ac_old_val`
2505: ac_new_val_w=`echo x $ac_new_val`
2506: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509: ac_cache_corrupted=:
2510: else
2511: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513: eval $ac_var=\$ac_old_val
2514: fi
2515: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2516: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2517: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2518: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.62 paf 2519: fi;;
2520: esac
2521: # Pass precious variables to config.status.
2522: if test "$ac_new_set" = set; then
2523: case $ac_new_val in
1.150 moko 2524: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2525: *) ac_arg=$ac_var=$ac_new_val ;;
2526: esac
2527: case " $ac_configure_args " in
2528: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 2529: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 2530: esac
2531: fi
2532: done
2533: if $ac_cache_corrupted; then
1.150 moko 2534: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2538: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2539: fi
2540: ## -------------------- ##
2541: ## Main body of script. ##
2542: ## -------------------- ##
1.1 paf 2543:
2544: ac_ext=c
2545: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 2546: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549:
2550:
2551:
2552:
2553:
1.150 moko 2554: am__api_version='1.11'
1.62 paf 2555:
1.1 paf 2556: ac_aux_dir=
1.150 moko 2557: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2558: if test -f "$ac_dir/install-sh"; then
1.1 paf 2559: ac_aux_dir=$ac_dir
2560: ac_install_sh="$ac_aux_dir/install-sh -c"
2561: break
1.150 moko 2562: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2563: ac_aux_dir=$ac_dir
2564: ac_install_sh="$ac_aux_dir/install.sh -c"
2565: break
1.150 moko 2566: elif test -f "$ac_dir/shtool"; then
1.62 paf 2567: ac_aux_dir=$ac_dir
2568: ac_install_sh="$ac_aux_dir/shtool install -c"
2569: break
1.1 paf 2570: fi
2571: done
2572: if test -z "$ac_aux_dir"; then
1.150 moko 2573: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2574: fi
2575:
2576: # These three variables are undocumented and unsupported,
2577: # and are intended to be withdrawn in a future Autoconf release.
2578: # They can cause serious problems if a builder's source tree is in a directory
2579: # whose full name contains unusual characters.
2580: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2581: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2582: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2583:
1.1 paf 2584:
2585: # Find a good install program. We prefer a C program (faster),
2586: # so one script is as good as another. But avoid the broken or
2587: # incompatible versions:
2588: # SysV /etc/install, /usr/sbin/install
2589: # SunOS /usr/etc/install
2590: # IRIX /sbin/install
2591: # AIX /bin/install
1.62 paf 2592: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2593: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2594: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2595: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 2596: # OS/2's system install, which has a completely different semantic
1.1 paf 2597: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 2598: # Reject install programs that cannot install multiple files.
2599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2600: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2601: if test -z "$INSTALL"; then
1.150 moko 2602: if ${ac_cv_path_install+:} false; then :
2603: $as_echo_n "(cached) " >&6
1.1 paf 2604: else
1.62 paf 2605: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606: for as_dir in $PATH
2607: do
2608: IFS=$as_save_IFS
2609: test -z "$as_dir" && as_dir=.
1.150 moko 2610: # Account for people who put trailing slashes in PATH elements.
2611: case $as_dir/ in #((
2612: ./ | .// | /[cC]/* | \
1.62 paf 2613: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 2614: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 2615: /usr/ucb/* ) ;;
2616: *)
2617: # OSF1 and SCO ODT 3.0 have their own names for install.
2618: # Don't use installbsd from OSF since it installs stuff as root
2619: # by default.
2620: for ac_prog in ginstall scoinst install; do
2621: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 2622: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.86 paf 2623: if test $ac_prog = install &&
2624: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2625: # AIX install. It has an incompatible calling convention.
2626: :
2627: elif test $ac_prog = install &&
2628: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2629: # program-specific install script used by HP pwplus--don't use.
2630: :
2631: else
1.150 moko 2632: rm -rf conftest.one conftest.two conftest.dir
2633: echo one > conftest.one
2634: echo two > conftest.two
2635: mkdir conftest.dir
2636: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2637: test -s conftest.one && test -s conftest.two &&
2638: test -s conftest.dir/conftest.one &&
2639: test -s conftest.dir/conftest.two
2640: then
2641: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2642: break 3
2643: fi
1.86 paf 2644: fi
2645: fi
1.1 paf 2646: done
1.62 paf 2647: done
2648: ;;
2649: esac
2650:
1.150 moko 2651: done
2652: IFS=$as_save_IFS
2653:
2654: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2655:
2656: fi
2657: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 2658: INSTALL=$ac_cv_path_install
1.1 paf 2659: else
1.150 moko 2660: # As a last resort, use the slow shell script. Don't cache a
2661: # value for INSTALL within a source directory, because that will
1.1 paf 2662: # break other packages using the cache if that directory is
1.150 moko 2663: # removed, or if the value is a relative name.
1.62 paf 2664: INSTALL=$ac_install_sh
1.1 paf 2665: fi
2666: fi
1.150 moko 2667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2668: $as_echo "$INSTALL" >&6; }
1.1 paf 2669:
2670: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2671: # It thinks the first close brace ends the variable substitution.
2672: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2673:
1.62 paf 2674: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2675:
2676: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2677:
1.150 moko 2678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2679: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 paf 2680: # Just in case
2681: sleep 1
1.62 paf 2682: echo timestamp > conftest.file
1.150 moko 2683: # Reject unsafe characters in $srcdir or the absolute working directory
2684: # name. Accept space and tab only in the latter.
2685: am_lf='
2686: '
2687: case `pwd` in
2688: *[\\\"\#\$\&\'\`$am_lf]*)
2689: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2690: esac
2691: case $srcdir in
2692: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2693: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2694: esac
2695:
1.1 paf 2696: # Do `set' in a subshell so we don't clobber the current shell's
2697: # arguments. Must try -L first in case configure is actually a
2698: # symlink; some systems play weird games with the mod time of symlinks
2699: # (eg FreeBSD returns the mod time of the symlink's containing
2700: # directory).
2701: if (
1.150 moko 2702: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 paf 2703: if test "$*" = "X"; then
2704: # -L didn't work.
1.150 moko 2705: set X `ls -t "$srcdir/configure" conftest.file`
1.1 paf 2706: fi
1.62 paf 2707: rm -f conftest.file
2708: if test "$*" != "X $srcdir/configure conftest.file" \
2709: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2710:
2711: # If neither matched, then we have a broken ls. This can happen
2712: # if, for instance, CONFIG_SHELL is bash and it inherits a
2713: # broken ls alias from the environment. This has actually
2714: # happened. Such a system could not be considered "sane".
1.150 moko 2715: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2716: alias in your environment" "$LINENO" 5
1.1 paf 2717: fi
2718:
1.62 paf 2719: test "$2" = conftest.file
1.1 paf 2720: )
2721: then
2722: # Ok.
2723: :
2724: else
1.150 moko 2725: as_fn_error $? "newly created file is older than distributed files!
2726: Check your system clock" "$LINENO" 5
1.1 paf 2727: fi
1.150 moko 2728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729: $as_echo "yes" >&6; }
1.1 paf 2730: test "$program_prefix" != NONE &&
1.150 moko 2731: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2732: # Use a double $ so make ignores it.
2733: test "$program_suffix" != NONE &&
1.150 moko 2734: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2735: # Double any \ or $.
1.62 paf 2736: # By default was `s,x,x', remove it if useless.
1.150 moko 2737: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2738: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.62 paf 2739:
2740: # expand $ac_aux_dir to an absolute path
2741: am_aux_dir=`cd $ac_aux_dir && pwd`
2742:
1.150 moko 2743: if test x"${MISSING+set}" != xset; then
2744: case $am_aux_dir in
2745: *\ * | *\ *)
2746: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2747: *)
2748: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2749: esac
2750: fi
1.62 paf 2751: # Use eval to expand $SHELL
2752: if eval "$MISSING --run true"; then
2753: am_missing_run="$MISSING --run "
2754: else
2755: am_missing_run=
1.150 moko 2756: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2757: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.62 paf 2758: fi
2759:
1.150 moko 2760: if test x"${install_sh}" != xset; then
2761: case $am_aux_dir in
2762: *\ * | *\ *)
2763: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2764: *)
2765: install_sh="\${SHELL} $am_aux_dir/install-sh"
2766: esac
1.86 paf 2767: fi
2768:
1.150 moko 2769: # Installed binaries are usually stripped using `strip' when the user
2770: # run `make install-strip'. However `strip' might not be the right
2771: # tool to use in cross-compilation environments, therefore Automake
2772: # will honor the `STRIP' environment variable to overrule this program.
2773: if test "$cross_compiling" != no; then
2774: if test -n "$ac_tool_prefix"; then
2775: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2776: set dummy ${ac_tool_prefix}strip; ac_word=$2
2777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778: $as_echo_n "checking for $ac_word... " >&6; }
2779: if ${ac_cv_prog_STRIP+:} false; then :
2780: $as_echo_n "(cached) " >&6
2781: else
2782: if test -n "$STRIP"; then
2783: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2784: else
2785: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786: for as_dir in $PATH
2787: do
2788: IFS=$as_save_IFS
2789: test -z "$as_dir" && as_dir=.
2790: for ac_exec_ext in '' $ac_executable_extensions; do
2791: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2793: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794: break 2
2795: fi
2796: done
2797: done
2798: IFS=$as_save_IFS
2799:
2800: fi
2801: fi
2802: STRIP=$ac_cv_prog_STRIP
2803: if test -n "$STRIP"; then
2804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2805: $as_echo "$STRIP" >&6; }
2806: else
2807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808: $as_echo "no" >&6; }
2809: fi
2810:
2811:
2812: fi
2813: if test -z "$ac_cv_prog_STRIP"; then
2814: ac_ct_STRIP=$STRIP
2815: # Extract the first word of "strip", so it can be a program name with args.
2816: set dummy strip; ac_word=$2
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_ac_ct_STRIP+:} false; then :
2820: $as_echo_n "(cached) " >&6
2821: else
2822: if test -n "$ac_ct_STRIP"; then
2823: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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=.
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
2832: ac_cv_prog_ac_ct_STRIP="strip"
2833: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834: break 2
2835: fi
2836: done
2837: done
2838: IFS=$as_save_IFS
2839:
2840: fi
2841: fi
2842: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2843: if test -n "$ac_ct_STRIP"; then
2844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2845: $as_echo "$ac_ct_STRIP" >&6; }
2846: else
2847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848: $as_echo "no" >&6; }
2849: fi
2850:
2851: if test "x$ac_ct_STRIP" = x; then
2852: STRIP=":"
2853: else
2854: case $cross_compiling:$ac_tool_warned in
2855: yes:)
2856: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2857: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2858: ac_tool_warned=yes ;;
2859: esac
2860: STRIP=$ac_ct_STRIP
2861: fi
2862: else
2863: STRIP="$ac_cv_prog_STRIP"
2864: fi
2865:
2866: fi
2867: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2868:
2869: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2870: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2871: if test -z "$MKDIR_P"; then
2872: if ${ac_cv_path_mkdir+:} false; then :
2873: $as_echo_n "(cached) " >&6
2874: else
2875: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2877: do
2878: IFS=$as_save_IFS
2879: test -z "$as_dir" && as_dir=.
2880: for ac_prog in mkdir gmkdir; do
2881: for ac_exec_ext in '' $ac_executable_extensions; do
2882: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2883: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2884: 'mkdir (GNU coreutils) '* | \
2885: 'mkdir (coreutils) '* | \
2886: 'mkdir (fileutils) '4.1*)
2887: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2888: break 3;;
2889: esac
2890: done
2891: done
2892: done
2893: IFS=$as_save_IFS
2894:
2895: fi
2896:
2897: test -d ./--version && rmdir ./--version
2898: if test "${ac_cv_path_mkdir+set}" = set; then
2899: MKDIR_P="$ac_cv_path_mkdir -p"
2900: else
2901: # As a last resort, use the slow shell script. Don't cache a
2902: # value for MKDIR_P within a source directory, because that will
2903: # break other packages using the cache if that directory is
2904: # removed, or if the value is a relative name.
2905: MKDIR_P="$ac_install_sh -d"
2906: fi
2907: fi
2908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2909: $as_echo "$MKDIR_P" >&6; }
2910:
2911: mkdir_p="$MKDIR_P"
2912: case $mkdir_p in
2913: [\\/$]* | ?:[\\/]*) ;;
2914: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2915: esac
2916:
2917: for ac_prog in gawk mawk nawk awk
1.62 paf 2918: do
2919: # Extract the first word of "$ac_prog", so it can be a program name with args.
2920: set dummy $ac_prog; ac_word=$2
1.150 moko 2921: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922: $as_echo_n "checking for $ac_word... " >&6; }
2923: if ${ac_cv_prog_AWK+:} false; then :
2924: $as_echo_n "(cached) " >&6
1.62 paf 2925: else
2926: if test -n "$AWK"; then
2927: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2928: else
2929: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930: for as_dir in $PATH
2931: do
2932: IFS=$as_save_IFS
2933: test -z "$as_dir" && as_dir=.
1.150 moko 2934: for ac_exec_ext in '' $ac_executable_extensions; do
2935: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.62 paf 2936: ac_cv_prog_AWK="$ac_prog"
1.150 moko 2937: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 2938: break 2
2939: fi
2940: done
1.150 moko 2941: done
2942: IFS=$as_save_IFS
1.62 paf 2943:
2944: fi
2945: fi
2946: AWK=$ac_cv_prog_AWK
2947: if test -n "$AWK"; then
1.150 moko 2948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2949: $as_echo "$AWK" >&6; }
1.62 paf 2950: else
1.150 moko 2951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952: $as_echo "no" >&6; }
1.62 paf 2953: fi
1.1 paf 2954:
1.150 moko 2955:
1.62 paf 2956: test -n "$AWK" && break
2957: done
1.1 paf 2958:
1.150 moko 2959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2960: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2961: set x ${MAKE-make}
2962: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2963: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2964: $as_echo_n "(cached) " >&6
1.1 paf 2965: else
1.62 paf 2966: cat >conftest.make <<\_ACEOF
1.150 moko 2967: SHELL = /bin/sh
1.1 paf 2968: all:
1.150 moko 2969: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 2970: _ACEOF
1.150 moko 2971: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2972: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2973: *@@@%%%=?*=@@@%%%*)
2974: eval ac_cv_prog_make_${ac_make}_set=yes;;
2975: *)
2976: eval ac_cv_prog_make_${ac_make}_set=no;;
2977: esac
1.62 paf 2978: rm -f conftest.make
1.1 paf 2979: fi
1.150 moko 2980: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2982: $as_echo "yes" >&6; }
1.1 paf 2983: SET_MAKE=
2984: else
1.150 moko 2985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986: $as_echo "no" >&6; }
1.1 paf 2987: SET_MAKE="MAKE=${MAKE-make}"
2988: fi
2989:
1.86 paf 2990: rm -rf .tst 2>/dev/null
2991: mkdir .tst 2>/dev/null
2992: if test -d .tst; then
2993: am__leading_dot=.
2994: else
2995: am__leading_dot=_
2996: fi
2997: rmdir .tst 2>/dev/null
2998:
1.150 moko 2999: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3000: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3001: # is not polluted with repeated "-I."
3002: am__isrc=' -I$(srcdir)'
3003: # test to see if srcdir already configured
3004: if test -f $srcdir/config.status; then
3005: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3006: fi
1.62 paf 3007: fi
3008:
3009: # test whether we have cygpath
3010: if test -z "$CYGPATH_W"; then
3011: if (cygpath --version) >/dev/null 2>/dev/null; then
3012: CYGPATH_W='cygpath -w'
3013: else
3014: CYGPATH_W=echo
3015: fi
3016: fi
3017:
3018:
3019: # Define the identity of the package.
1.128 moko 3020: PACKAGE='parser'
1.157 moko 3021: VERSION='3.4.3b'
1.128 moko 3022:
3023:
3024: cat >>confdefs.h <<_ACEOF
3025: #define PACKAGE "$PACKAGE"
3026: _ACEOF
1.1 paf 3027:
3028:
1.128 moko 3029: cat >>confdefs.h <<_ACEOF
3030: #define VERSION "$VERSION"
3031: _ACEOF
3032:
1.62 paf 3033: # Some tools Automake needs.
3034:
3035: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3036:
3037:
3038: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3039:
3040:
3041: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3042:
3043:
3044: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3045:
3046:
3047: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 3048:
1.62 paf 3049: # We need awk for the "check" target. The system "awk" is bad on
3050: # some platforms.
1.86 paf 3051: # Always define AMTAR for backward compatibility.
3052:
3053: AMTAR=${AMTAR-"${am_missing_run}tar"}
3054:
3055: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3056:
3057:
1.62 paf 3058:
1.1 paf 3059:
3060:
3061:
1.128 moko 3062:
1.12 paf 3063: P3S=`cd $srcdir/src ; pwd`
1.1 paf 3064:
3065:
1.128 moko 3066:
1.41 paf 3067: # Make sure we can run config.sub.
1.150 moko 3068: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3069: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.62 paf 3070:
1.150 moko 3071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3072: $as_echo_n "checking build system type... " >&6; }
3073: if ${ac_cv_build+:} false; then :
3074: $as_echo_n "(cached) " >&6
3075: else
3076: ac_build_alias=$build_alias
3077: test "x$ac_build_alias" = x &&
3078: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3079: test "x$ac_build_alias" = x &&
3080: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3081: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3083:
3084: fi
3085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3086: $as_echo "$ac_cv_build" >&6; }
3087: case $ac_cv_build in
3088: *-*-*) ;;
3089: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3090: esac
3091: build=$ac_cv_build
3092: ac_save_IFS=$IFS; IFS='-'
3093: set x $ac_cv_build
3094: shift
3095: build_cpu=$1
3096: build_vendor=$2
3097: shift; shift
3098: # Remember, the first character of IFS is used to create $*,
3099: # except with old shells:
3100: build_os=$*
3101: IFS=$ac_save_IFS
3102: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3103:
3104:
3105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3106: $as_echo_n "checking host system type... " >&6; }
3107: if ${ac_cv_host+:} false; then :
3108: $as_echo_n "(cached) " >&6
3109: else
3110: if test "x$host_alias" = x; then
3111: ac_cv_host=$ac_cv_build
3112: else
3113: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3114: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.62 paf 3115: fi
3116:
3117: fi
1.150 moko 3118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3119: $as_echo "$ac_cv_host" >&6; }
3120: case $ac_cv_host in
3121: *-*-*) ;;
3122: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3123: esac
1.62 paf 3124: host=$ac_cv_host
1.150 moko 3125: ac_save_IFS=$IFS; IFS='-'
3126: set x $ac_cv_host
3127: shift
3128: host_cpu=$1
3129: host_vendor=$2
3130: shift; shift
3131: # Remember, the first character of IFS is used to create $*,
3132: # except with old shells:
3133: host_os=$*
3134: IFS=$ac_save_IFS
3135: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 3136:
3137:
3138:
1.148 moko 3139: cat >>confdefs.h <<_ACEOF
3140: #define PARSER_VERSION "$VERSION (compiled on $host)"
1.147 moko 3141: _ACEOF
3142:
3143:
1.41 paf 3144:
1.67 paf 3145: case $host_os in
3146: *cygwin* )
1.150 moko 3147: $as_echo "#define CYGWIN /**/" >>confdefs.h
1.67 paf 3148: ;;
3149: esac
1.41 paf 3150:
1.128 moko 3151:
1.1 paf 3152:
1.62 paf 3153: for ac_prog in gawk mawk nawk awk
1.41 paf 3154: do
1.62 paf 3155: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3156: set dummy $ac_prog; ac_word=$2
1.150 moko 3157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158: $as_echo_n "checking for $ac_word... " >&6; }
3159: if ${ac_cv_prog_AWK+:} false; then :
3160: $as_echo_n "(cached) " >&6
1.41 paf 3161: else
3162: if test -n "$AWK"; then
3163: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3164: else
1.62 paf 3165: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166: for as_dir in $PATH
3167: do
3168: IFS=$as_save_IFS
3169: test -z "$as_dir" && as_dir=.
1.150 moko 3170: for ac_exec_ext in '' $ac_executable_extensions; do
3171: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.62 paf 3172: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3173: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3174: break 2
3175: fi
3176: done
1.150 moko 3177: done
3178: IFS=$as_save_IFS
1.62 paf 3179:
1.41 paf 3180: fi
3181: fi
1.62 paf 3182: AWK=$ac_cv_prog_AWK
1.41 paf 3183: if test -n "$AWK"; then
1.150 moko 3184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3185: $as_echo "$AWK" >&6; }
1.41 paf 3186: else
1.150 moko 3187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188: $as_echo "no" >&6; }
1.41 paf 3189: fi
3190:
1.150 moko 3191:
1.62 paf 3192: test -n "$AWK" && break
1.41 paf 3193: done
3194:
3195:
3196: for ac_prog in 'bison -y' byacc
3197: do
1.62 paf 3198: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3199: set dummy $ac_prog; ac_word=$2
1.150 moko 3200: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201: $as_echo_n "checking for $ac_word... " >&6; }
3202: if ${ac_cv_prog_YACC+:} false; then :
3203: $as_echo_n "(cached) " >&6
1.41 paf 3204: else
3205: if test -n "$YACC"; then
3206: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3207: else
1.62 paf 3208: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209: for as_dir in $PATH
3210: do
3211: IFS=$as_save_IFS
3212: test -z "$as_dir" && as_dir=.
1.150 moko 3213: for ac_exec_ext in '' $ac_executable_extensions; do
3214: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.62 paf 3215: ac_cv_prog_YACC="$ac_prog"
1.150 moko 3216: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3217: break 2
3218: fi
3219: done
1.150 moko 3220: done
3221: IFS=$as_save_IFS
1.62 paf 3222:
1.41 paf 3223: fi
3224: fi
1.62 paf 3225: YACC=$ac_cv_prog_YACC
1.41 paf 3226: if test -n "$YACC"; then
1.150 moko 3227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3228: $as_echo "$YACC" >&6; }
1.41 paf 3229: else
1.150 moko 3230: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231: $as_echo "no" >&6; }
1.41 paf 3232: fi
3233:
1.150 moko 3234:
1.62 paf 3235: test -n "$YACC" && break
1.41 paf 3236: done
3237: test -n "$YACC" || YACC="yacc"
3238:
3239: if test "$YACC" != "bison -y"; then
1.150 moko 3240: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
3241: $as_echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 3242: else
1.150 moko 3243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
3244: $as_echo_n "checking bison version... " >&6; }
1.67 paf 3245: oldIFS=$IFS; IFS=.
3246: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
3247: IFS=$oldIFS
3248: if test "$1" = "1" -a "$2" -lt "25"; then
1.150 moko 3249: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
3250: $as_echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 3251: fi
1.150 moko 3252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
3253: $as_echo "$1.$2 (ok)" >&6; }
1.62 paf 3254: fi
3255:
1.150 moko 3256: ac_ext=cpp
1.66 paf 3257: ac_cpp='$CXXCPP $CPPFLAGS'
3258: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 3261: if test -z "$CXX"; then
3262: if test -n "$CCC"; then
3263: CXX=$CCC
3264: else
3265: if test -n "$ac_tool_prefix"; then
3266: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3267: do
3268: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3269: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 3270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271: $as_echo_n "checking for $ac_word... " >&6; }
3272: if ${ac_cv_prog_CXX+:} false; then :
3273: $as_echo_n "(cached) " >&6
1.62 paf 3274: else
1.66 paf 3275: if test -n "$CXX"; then
3276: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 3277: else
3278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279: for as_dir in $PATH
3280: do
3281: IFS=$as_save_IFS
3282: test -z "$as_dir" && as_dir=.
1.150 moko 3283: for ac_exec_ext in '' $ac_executable_extensions; do
3284: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.66 paf 3285: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.150 moko 3286: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3287: break 2
3288: fi
3289: done
1.150 moko 3290: done
3291: IFS=$as_save_IFS
1.62 paf 3292:
3293: fi
3294: fi
1.66 paf 3295: CXX=$ac_cv_prog_CXX
3296: if test -n "$CXX"; then
1.150 moko 3297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3298: $as_echo "$CXX" >&6; }
1.62 paf 3299: else
1.150 moko 3300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301: $as_echo "no" >&6; }
1.41 paf 3302: fi
3303:
1.150 moko 3304:
1.66 paf 3305: test -n "$CXX" && break
3306: done
1.62 paf 3307: fi
1.66 paf 3308: if test -z "$CXX"; then
3309: ac_ct_CXX=$CXX
1.150 moko 3310: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3311: do
3312: # Extract the first word of "$ac_prog", so it can be a program name with args.
3313: set dummy $ac_prog; ac_word=$2
1.150 moko 3314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315: $as_echo_n "checking for $ac_word... " >&6; }
3316: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3317: $as_echo_n "(cached) " >&6
1.62 paf 3318: else
1.66 paf 3319: if test -n "$ac_ct_CXX"; then
3320: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 3321: else
3322: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323: for as_dir in $PATH
3324: do
3325: IFS=$as_save_IFS
3326: test -z "$as_dir" && as_dir=.
1.150 moko 3327: for ac_exec_ext in '' $ac_executable_extensions; do
3328: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.66 paf 3329: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.150 moko 3330: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3331: break 2
3332: fi
3333: done
1.150 moko 3334: done
3335: IFS=$as_save_IFS
1.62 paf 3336:
3337: fi
3338: fi
1.66 paf 3339: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3340: if test -n "$ac_ct_CXX"; then
1.150 moko 3341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3342: $as_echo "$ac_ct_CXX" >&6; }
1.62 paf 3343: else
1.150 moko 3344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345: $as_echo "no" >&6; }
1.62 paf 3346: fi
3347:
1.150 moko 3348:
1.66 paf 3349: test -n "$ac_ct_CXX" && break
3350: done
3351:
1.150 moko 3352: if test "x$ac_ct_CXX" = x; then
3353: CXX="g++"
3354: else
3355: case $cross_compiling:$ac_tool_warned in
3356: yes:)
3357: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3358: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3359: ac_tool_warned=yes ;;
3360: esac
3361: CXX=$ac_ct_CXX
3362: fi
1.62 paf 3363: fi
3364:
1.150 moko 3365: fi
3366: fi
1.66 paf 3367: # Provide some information about the compiler.
1.150 moko 3368: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3369: set X $ac_compile
3370: ac_compiler=$2
3371: for ac_option in --version -v -V -qversion; do
3372: { { ac_try="$ac_compiler $ac_option >&5"
3373: case "(($ac_try" in
3374: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375: *) ac_try_echo=$ac_try;;
3376: esac
3377: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378: $as_echo "$ac_try_echo"; } >&5
3379: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 3380: ac_status=$?
1.150 moko 3381: if test -s conftest.err; then
3382: sed '10a\
3383: ... rest of stderr output deleted ...
3384: 10q' conftest.err >conftest.er1
3385: cat conftest.er1 >&5
3386: fi
3387: rm -f conftest.er1 conftest.err
3388: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389: test $ac_status = 0; }
3390: done
1.66 paf 3391:
1.150 moko 3392: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3393: /* end confdefs.h. */
3394:
3395: int
3396: main ()
3397: {
3398:
3399: ;
3400: return 0;
3401: }
3402: _ACEOF
3403: ac_clean_files_save=$ac_clean_files
1.150 moko 3404: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 3405: # Try to create an executable without -o first, disregard a.out.
3406: # It will help us diagnose broken compilers, and finding out an intuition
3407: # of exeext.
1.150 moko 3408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3409: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3410: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3411:
3412: # The possible output files:
3413: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3414:
3415: ac_rmfiles=
3416: for ac_file in $ac_files
3417: do
3418: case $ac_file in
3419: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3420: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3421: esac
3422: done
3423: rm -f $ac_rmfiles
3424:
3425: if { { ac_try="$ac_link_default"
3426: case "(($ac_try" in
3427: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428: *) ac_try_echo=$ac_try;;
3429: esac
3430: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431: $as_echo "$ac_try_echo"; } >&5
3432: (eval "$ac_link_default") 2>&5
3433: ac_status=$?
3434: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435: test $ac_status = 0; }; then :
3436: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3437: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3438: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3439: # so that the user can short-circuit this test for compilers unknown to
3440: # Autoconf.
3441: for ac_file in $ac_files ''
1.62 paf 3442: do
1.66 paf 3443: test -f "$ac_file" || continue
3444: case $ac_file in
1.150 moko 3445: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 3446: ;;
1.66 paf 3447: [ab].out )
1.86 paf 3448: # We found the default executable, but exeext='' is most
3449: # certainly right.
3450: break;;
1.66 paf 3451: *.* )
1.150 moko 3452: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3453: then :; else
3454: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3455: fi
3456: # We set ac_cv_exeext here because the later test for it is not
3457: # safe: cross compilers may not add the suffix if given an `-o'
3458: # argument, so we may need to know it at that point already.
3459: # Even if this section looks crufty: it has the advantage of
3460: # actually working.
1.86 paf 3461: break;;
1.66 paf 3462: * )
1.86 paf 3463: break;;
1.66 paf 3464: esac
1.62 paf 3465: done
1.150 moko 3466: test "$ac_cv_exeext" = no && ac_cv_exeext=
3467:
1.66 paf 3468: else
1.150 moko 3469: ac_file=''
3470: fi
3471: if test -z "$ac_file"; then :
3472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473: $as_echo "no" >&6; }
3474: $as_echo "$as_me: failed program was:" >&5
1.66 paf 3475: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3476:
1.150 moko 3477: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479: as_fn_error 77 "C++ compiler cannot create executables
3480: See \`config.log' for more details" "$LINENO" 5; }
3481: else
3482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3483: $as_echo "yes" >&6; }
1.1 paf 3484: fi
1.150 moko 3485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3486: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3488: $as_echo "$ac_file" >&6; }
1.66 paf 3489: ac_exeext=$ac_cv_exeext
1.62 paf 3490:
1.150 moko 3491: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 3492: ac_clean_files=$ac_clean_files_save
1.150 moko 3493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3494: $as_echo_n "checking for suffix of executables... " >&6; }
3495: if { { ac_try="$ac_link"
3496: case "(($ac_try" in
3497: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498: *) ac_try_echo=$ac_try;;
3499: esac
3500: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501: $as_echo "$ac_try_echo"; } >&5
3502: (eval "$ac_link") 2>&5
1.62 paf 3503: ac_status=$?
1.150 moko 3504: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505: test $ac_status = 0; }; then :
1.62 paf 3506: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3507: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3508: # work properly (i.e., refer to `conftest.exe'), while it won't with
3509: # `rm'.
3510: for ac_file in conftest.exe conftest conftest.*; do
3511: test -f "$ac_file" || continue
3512: case $ac_file in
1.150 moko 3513: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 3514: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 3515: break;;
1.62 paf 3516: * ) break;;
3517: esac
3518: done
3519: else
1.150 moko 3520: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3523: See \`config.log' for more details" "$LINENO" 5; }
3524: fi
3525: rm -f conftest conftest$ac_cv_exeext
3526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3527: $as_echo "$ac_cv_exeext" >&6; }
1.62 paf 3528:
3529: rm -f conftest.$ac_ext
3530: EXEEXT=$ac_cv_exeext
3531: ac_exeext=$EXEEXT
1.150 moko 3532: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533: /* end confdefs.h. */
3534: #include <stdio.h>
3535: int
3536: main ()
3537: {
3538: FILE *f = fopen ("conftest.out", "w");
3539: return ferror (f) || fclose (f) != 0;
3540:
3541: ;
3542: return 0;
3543: }
3544: _ACEOF
3545: ac_clean_files="$ac_clean_files conftest.out"
3546: # Check that the compiler produces executables we can run. If not, either
3547: # the compiler is broken, or we cross compile.
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3549: $as_echo_n "checking whether we are cross compiling... " >&6; }
3550: if test "$cross_compiling" != yes; then
3551: { { ac_try="$ac_link"
3552: case "(($ac_try" in
3553: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554: *) ac_try_echo=$ac_try;;
3555: esac
3556: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557: $as_echo "$ac_try_echo"; } >&5
3558: (eval "$ac_link") 2>&5
3559: ac_status=$?
3560: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561: test $ac_status = 0; }
3562: if { ac_try='./conftest$ac_cv_exeext'
3563: { { case "(($ac_try" in
3564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565: *) ac_try_echo=$ac_try;;
3566: esac
3567: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568: $as_echo "$ac_try_echo"; } >&5
3569: (eval "$ac_try") 2>&5
3570: ac_status=$?
3571: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572: test $ac_status = 0; }; }; then
3573: cross_compiling=no
3574: else
3575: if test "$cross_compiling" = maybe; then
3576: cross_compiling=yes
3577: else
3578: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580: as_fn_error $? "cannot run C++ compiled programs.
3581: If you meant to cross compile, use \`--host'.
3582: See \`config.log' for more details" "$LINENO" 5; }
3583: fi
3584: fi
3585: fi
3586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3587: $as_echo "$cross_compiling" >&6; }
3588:
3589: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3590: ac_clean_files=$ac_clean_files_save
3591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3592: $as_echo_n "checking for suffix of object files... " >&6; }
3593: if ${ac_cv_objext+:} false; then :
3594: $as_echo_n "(cached) " >&6
1.62 paf 3595: else
1.150 moko 3596: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3597: /* end confdefs.h. */
3598:
3599: int
3600: main ()
3601: {
3602:
3603: ;
3604: return 0;
3605: }
3606: _ACEOF
3607: rm -f conftest.o conftest.obj
1.150 moko 3608: if { { ac_try="$ac_compile"
3609: case "(($ac_try" in
3610: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611: *) ac_try_echo=$ac_try;;
3612: esac
3613: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614: $as_echo "$ac_try_echo"; } >&5
3615: (eval "$ac_compile") 2>&5
3616: ac_status=$?
3617: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618: test $ac_status = 0; }; then :
3619: for ac_file in conftest.o conftest.obj conftest.*; do
3620: test -f "$ac_file" || continue;
1.62 paf 3621: case $ac_file in
1.150 moko 3622: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 3623: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3624: break;;
3625: esac
3626: done
3627: else
1.150 moko 3628: $as_echo "$as_me: failed program was:" >&5
1.62 paf 3629: sed 's/^/| /' conftest.$ac_ext >&5
3630:
1.150 moko 3631: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633: as_fn_error $? "cannot compute suffix of object files: cannot compile
3634: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 3635: fi
3636: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3637: fi
1.150 moko 3638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3639: $as_echo "$ac_cv_objext" >&6; }
1.66 paf 3640: OBJEXT=$ac_cv_objext
3641: ac_objext=$OBJEXT
1.150 moko 3642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3643: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3644: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3645: $as_echo_n "(cached) " >&6
1.62 paf 3646: else
1.150 moko 3647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3648: /* end confdefs.h. */
1.66 paf 3649:
1.62 paf 3650: int
3651: main ()
3652: {
1.66 paf 3653: #ifndef __GNUC__
3654: choke me
3655: #endif
3656:
1.62 paf 3657: ;
3658: return 0;
3659: }
3660: _ACEOF
1.150 moko 3661: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3662: ac_compiler_gnu=yes
1.62 paf 3663: else
1.150 moko 3664: ac_compiler_gnu=no
1.1 paf 3665: fi
1.150 moko 3666: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3667: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 3668:
3669: fi
1.150 moko 3670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3671: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3672: if test $ac_compiler_gnu = yes; then
3673: GXX=yes
3674: else
3675: GXX=
3676: fi
1.66 paf 3677: ac_test_CXXFLAGS=${CXXFLAGS+set}
3678: ac_save_CXXFLAGS=$CXXFLAGS
1.150 moko 3679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3680: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3681: if ${ac_cv_prog_cxx_g+:} false; then :
3682: $as_echo_n "(cached) " >&6
3683: else
3684: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3685: ac_cxx_werror_flag=yes
3686: ac_cv_prog_cxx_g=no
3687: CXXFLAGS="-g"
3688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3689: /* end confdefs.h. */
1.1 paf 3690:
1.66 paf 3691: int
3692: main ()
3693: {
1.1 paf 3694:
1.66 paf 3695: ;
3696: return 0;
3697: }
1.62 paf 3698: _ACEOF
1.150 moko 3699: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3700: ac_cv_prog_cxx_g=yes
3701: else
1.150 moko 3702: CXXFLAGS=""
3703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704: /* end confdefs.h. */
1.66 paf 3705:
1.62 paf 3706: int
3707: main ()
3708: {
1.150 moko 3709:
1.62 paf 3710: ;
3711: return 0;
3712: }
3713: _ACEOF
1.150 moko 3714: if ac_fn_cxx_try_compile "$LINENO"; then :
3715:
1.1 paf 3716: else
1.150 moko 3717: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3718: CXXFLAGS="-g"
3719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720: /* end confdefs.h. */
1.62 paf 3721:
3722: int
3723: main ()
3724: {
1.150 moko 3725:
1.62 paf 3726: ;
3727: return 0;
3728: }
3729: _ACEOF
1.150 moko 3730: if ac_fn_cxx_try_compile "$LINENO"; then :
3731: ac_cv_prog_cxx_g=yes
3732: fi
3733: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734: fi
3735: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736: fi
3737: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3739: fi
3740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3741: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3742: if test "$ac_test_CXXFLAGS" = set; then
3743: CXXFLAGS=$ac_save_CXXFLAGS
3744: elif test $ac_cv_prog_cxx_g = yes; then
3745: if test "$GXX" = yes; then
3746: CXXFLAGS="-g -O2"
3747: else
3748: CXXFLAGS="-g"
3749: fi
1.1 paf 3750: else
1.150 moko 3751: if test "$GXX" = yes; then
3752: CXXFLAGS="-O2"
3753: else
3754: CXXFLAGS=
3755: fi
1.1 paf 3756: fi
1.62 paf 3757: ac_ext=c
3758: ac_cpp='$CPP $CPPFLAGS'
3759: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 3762: DEPDIR="${am__leading_dot}deps"
1.62 paf 3763:
1.150 moko 3764: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 3765:
3766:
3767: am_make=${MAKE-make}
3768: cat > confinc << 'END'
1.86 paf 3769: am__doit:
1.150 moko 3770: @echo this is the am__doit target
1.86 paf 3771: .PHONY: am__doit
1.62 paf 3772: END
3773: # If we don't find an include directive, just comment out the code.
1.150 moko 3774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3775: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.62 paf 3776: am__include="#"
3777: am__quote=
3778: _am_result=none
3779: # First try GNU make style include.
3780: echo "include confinc" > confmf
1.150 moko 3781: # Ignore all kinds of additional output from `make'.
3782: case `$am_make -s -f confmf 2> /dev/null` in #(
3783: *the\ am__doit\ target*)
3784: am__include=include
3785: am__quote=
3786: _am_result=GNU
3787: ;;
3788: esac
1.62 paf 3789: # Now try BSD make style include.
3790: if test "$am__include" = "#"; then
3791: echo '.include "confinc"' > confmf
1.150 moko 3792: case `$am_make -s -f confmf 2> /dev/null` in #(
3793: *the\ am__doit\ target*)
3794: am__include=.include
3795: am__quote="\""
3796: _am_result=BSD
3797: ;;
3798: esac
1.62 paf 3799: fi
3800:
3801:
1.150 moko 3802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3803: $as_echo "$_am_result" >&6; }
1.62 paf 3804: rm -f confinc confmf
3805:
1.150 moko 3806: # Check whether --enable-dependency-tracking was given.
3807: if test "${enable_dependency_tracking+set}" = set; then :
3808: enableval=$enable_dependency_tracking;
3809: fi
1.62 paf 3810:
3811: if test "x$enable_dependency_tracking" != xno; then
3812: am_depcomp="$ac_aux_dir/depcomp"
3813: AMDEPBACKSLASH='\'
1.1 paf 3814: fi
1.150 moko 3815: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 3816: AMDEP_TRUE=
3817: AMDEP_FALSE='#'
3818: else
3819: AMDEP_TRUE='#'
3820: AMDEP_FALSE=
3821: fi
1.1 paf 3822:
3823:
3824:
1.66 paf 3825: depcc="$CXX" am_compiler_list=
1.1 paf 3826:
1.150 moko 3827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3828: $as_echo_n "checking dependency style of $depcc... " >&6; }
3829: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3830: $as_echo_n "(cached) " >&6
1.62 paf 3831: else
3832: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3833: # We make a subdir and do the tests there. Otherwise we can end up
3834: # making bogus files that we don't know about and never remove. For
3835: # instance it was reported that on HP-UX the gcc test will end up
3836: # making a dummy file named `D' -- because `-MD' means `put the output
3837: # in D'.
3838: mkdir conftest.dir
3839: # Copy depcomp to subdir because otherwise we won't find it if we're
3840: # using a relative directory.
3841: cp "$am_depcomp" conftest.dir
3842: cd conftest.dir
1.86 paf 3843: # We will build objects and dependencies in a subdirectory because
3844: # it helps to detect inapplicable dependency modes. For instance
3845: # both Tru64's cc and ICC support -MD to output dependencies as a
3846: # side effect of compilation, but ICC will put the dependencies in
3847: # the current directory while Tru64 will put them in the object
3848: # directory.
3849: mkdir sub
1.1 paf 3850:
1.66 paf 3851: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 3852: if test "$am_compiler_list" = ""; then
3853: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 3854: fi
1.150 moko 3855: am__universal=false
3856: case " $depcc " in #(
3857: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3858: esac
3859:
1.62 paf 3860: for depmode in $am_compiler_list; do
1.86 paf 3861: # Setup a source with many dependencies, because some compilers
3862: # like to wrap large dependency lists on column 80 (with \), and
3863: # we should not choose a depcomp mode which is confused by this.
3864: #
1.62 paf 3865: # We need to recreate these files for each test, as the compiler may
3866: # overwrite some of them when testing with obscure command lines.
3867: # This happens at least with the AIX C compiler.
1.86 paf 3868: : > sub/conftest.c
3869: for i in 1 2 3 4 5 6; do
3870: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3871: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3872: # Solaris 8's {/usr,}/bin/sh.
3873: touch sub/conftst$i.h
3874: done
3875: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 3876:
1.150 moko 3877: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3878: # mode. It turns out that the SunPro C++ compiler does not properly
3879: # handle `-M -o', and we need to detect this. Also, some Intel
3880: # versions had trouble with output in subdirs
3881: am__obj=sub/conftest.${OBJEXT-o}
3882: am__minus_obj="-o $am__obj"
1.62 paf 3883: case $depmode in
1.150 moko 3884: gcc)
3885: # This depmode causes a compiler race in universal mode.
3886: test "$am__universal" = false || continue
3887: ;;
1.62 paf 3888: nosideeffect)
3889: # after this tag, mechanisms are not by side-effect, so they'll
3890: # only be used when explicitly requested
3891: if test "x$enable_dependency_tracking" = xyes; then
3892: continue
3893: else
3894: break
3895: fi
3896: ;;
1.150 moko 3897: msvisualcpp | msvcmsys)
3898: # This compiler won't grok `-c -o', but also, the minuso test has
3899: # not run yet. These depmodes are late enough in the game, and
3900: # so weak that their functioning should not be impacted.
3901: am__obj=conftest.${OBJEXT-o}
3902: am__minus_obj=
3903: ;;
1.62 paf 3904: none) break ;;
3905: esac
3906: if depmode=$depmode \
1.150 moko 3907: source=sub/conftest.c object=$am__obj \
1.86 paf 3908: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 3909: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 3910: >/dev/null 2>conftest.err &&
1.150 moko 3911: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 3912: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 3913: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 3914: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 3915: # icc doesn't choke on unknown options, it will just issue warnings
3916: # or remarks (even with -Werror). So we grep stderr for any message
3917: # that says an option was ignored or not supported.
3918: # When given -MP, icc 7.0 and 7.1 complain thusly:
3919: # icc: Command line warning: ignoring option '-M'; no argument required
3920: # The diagnosis changed in icc 8.0:
3921: # icc: Command line remark: option '-MP' not supported
3922: if (grep 'ignoring option' conftest.err ||
3923: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3924: am_cv_CXX_dependencies_compiler_type=$depmode
3925: break
3926: fi
1.66 paf 3927: fi
3928: done
3929:
3930: cd ..
3931: rm -rf conftest.dir
3932: else
3933: am_cv_CXX_dependencies_compiler_type=none
3934: fi
3935:
3936: fi
1.150 moko 3937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3938: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 3939: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3940:
1.150 moko 3941: if
1.66 paf 3942: test "x$enable_dependency_tracking" != xno \
3943: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3944: am__fastdepCXX_TRUE=
3945: am__fastdepCXX_FALSE='#'
3946: else
3947: am__fastdepCXX_TRUE='#'
3948: am__fastdepCXX_FALSE=
3949: fi
3950:
3951:
3952: ac_ext=c
3953: ac_cpp='$CPP $CPPFLAGS'
3954: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957: if test -n "$ac_tool_prefix"; then
3958: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3959: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.150 moko 3960: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961: $as_echo_n "checking for $ac_word... " >&6; }
3962: if ${ac_cv_prog_CC+:} false; then :
3963: $as_echo_n "(cached) " >&6
1.66 paf 3964: else
3965: if test -n "$CC"; then
3966: ac_cv_prog_CC="$CC" # Let the user override the test.
3967: else
3968: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969: for as_dir in $PATH
3970: do
3971: IFS=$as_save_IFS
3972: test -z "$as_dir" && as_dir=.
1.150 moko 3973: for ac_exec_ext in '' $ac_executable_extensions; do
3974: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.66 paf 3975: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.150 moko 3976: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 3977: break 2
3978: fi
3979: done
1.150 moko 3980: done
3981: IFS=$as_save_IFS
1.66 paf 3982:
3983: fi
3984: fi
3985: CC=$ac_cv_prog_CC
3986: if test -n "$CC"; then
1.150 moko 3987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3988: $as_echo "$CC" >&6; }
1.66 paf 3989: else
1.150 moko 3990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991: $as_echo "no" >&6; }
1.66 paf 3992: fi
3993:
1.150 moko 3994:
1.66 paf 3995: fi
3996: if test -z "$ac_cv_prog_CC"; then
3997: ac_ct_CC=$CC
3998: # Extract the first word of "gcc", so it can be a program name with args.
3999: set dummy gcc; ac_word=$2
1.150 moko 4000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001: $as_echo_n "checking for $ac_word... " >&6; }
4002: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4003: $as_echo_n "(cached) " >&6
1.66 paf 4004: else
4005: if test -n "$ac_ct_CC"; then
4006: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4007: else
4008: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009: for as_dir in $PATH
4010: do
4011: IFS=$as_save_IFS
4012: test -z "$as_dir" && as_dir=.
1.150 moko 4013: for ac_exec_ext in '' $ac_executable_extensions; do
4014: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.66 paf 4015: ac_cv_prog_ac_ct_CC="gcc"
1.150 moko 4016: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4017: break 2
4018: fi
4019: done
1.150 moko 4020: done
4021: IFS=$as_save_IFS
1.66 paf 4022:
4023: fi
4024: fi
4025: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4026: if test -n "$ac_ct_CC"; then
1.150 moko 4027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4028: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4029: else
1.150 moko 4030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031: $as_echo "no" >&6; }
1.62 paf 4032: fi
4033:
1.150 moko 4034: if test "x$ac_ct_CC" = x; then
4035: CC=""
4036: else
4037: case $cross_compiling:$ac_tool_warned in
4038: yes:)
4039: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4040: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4041: ac_tool_warned=yes ;;
4042: esac
4043: CC=$ac_ct_CC
4044: fi
1.66 paf 4045: else
4046: CC="$ac_cv_prog_CC"
1.1 paf 4047: fi
1.62 paf 4048:
1.66 paf 4049: if test -z "$CC"; then
1.150 moko 4050: if test -n "$ac_tool_prefix"; then
4051: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 4052: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.150 moko 4053: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054: $as_echo_n "checking for $ac_word... " >&6; }
4055: if ${ac_cv_prog_CC+:} false; then :
4056: $as_echo_n "(cached) " >&6
1.66 paf 4057: else
4058: if test -n "$CC"; then
4059: ac_cv_prog_CC="$CC" # Let the user override the test.
4060: else
4061: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062: for as_dir in $PATH
4063: do
4064: IFS=$as_save_IFS
4065: test -z "$as_dir" && as_dir=.
1.150 moko 4066: for ac_exec_ext in '' $ac_executable_extensions; do
4067: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.66 paf 4068: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.150 moko 4069: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4070: break 2
4071: fi
4072: done
1.150 moko 4073: done
4074: IFS=$as_save_IFS
1.62 paf 4075:
1.66 paf 4076: fi
4077: fi
4078: CC=$ac_cv_prog_CC
4079: if test -n "$CC"; then
1.150 moko 4080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4081: $as_echo "$CC" >&6; }
1.62 paf 4082: else
1.150 moko 4083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084: $as_echo "no" >&6; }
1.1 paf 4085: fi
4086:
1.150 moko 4087:
1.66 paf 4088: fi
1.1 paf 4089: fi
1.66 paf 4090: if test -z "$CC"; then
4091: # Extract the first word of "cc", so it can be a program name with args.
4092: set dummy cc; ac_word=$2
1.150 moko 4093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094: $as_echo_n "checking for $ac_word... " >&6; }
4095: if ${ac_cv_prog_CC+:} false; then :
4096: $as_echo_n "(cached) " >&6
1.66 paf 4097: else
4098: if test -n "$CC"; then
4099: ac_cv_prog_CC="$CC" # Let the user override the test.
4100: else
4101: ac_prog_rejected=no
4102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103: for as_dir in $PATH
4104: do
4105: IFS=$as_save_IFS
4106: test -z "$as_dir" && as_dir=.
1.150 moko 4107: for ac_exec_ext in '' $ac_executable_extensions; do
4108: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.66 paf 4109: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4110: ac_prog_rejected=yes
4111: continue
4112: fi
4113: ac_cv_prog_CC="cc"
1.150 moko 4114: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4115: break 2
4116: fi
4117: done
1.150 moko 4118: done
4119: IFS=$as_save_IFS
1.62 paf 4120:
1.66 paf 4121: if test $ac_prog_rejected = yes; then
4122: # We found a bogon in the path, so make sure we never use it.
4123: set dummy $ac_cv_prog_CC
4124: shift
4125: if test $# != 0; then
4126: # We chose a different compiler from the bogus one.
4127: # However, it has the same basename, so the bogon will be chosen
4128: # first if we set CC to just the basename; use the full file name.
4129: shift
4130: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4131: fi
4132: fi
4133: fi
4134: fi
4135: CC=$ac_cv_prog_CC
4136: if test -n "$CC"; then
1.150 moko 4137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4138: $as_echo "$CC" >&6; }
1.66 paf 4139: else
1.150 moko 4140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141: $as_echo "no" >&6; }
1.1 paf 4142: fi
4143:
1.150 moko 4144:
1.66 paf 4145: fi
4146: if test -z "$CC"; then
4147: if test -n "$ac_tool_prefix"; then
1.150 moko 4148: for ac_prog in cl.exe
1.62 paf 4149: do
4150: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4151: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 4152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153: $as_echo_n "checking for $ac_word... " >&6; }
4154: if ${ac_cv_prog_CC+:} false; then :
4155: $as_echo_n "(cached) " >&6
1.62 paf 4156: else
1.66 paf 4157: if test -n "$CC"; then
4158: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 4159: else
4160: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161: for as_dir in $PATH
4162: do
4163: IFS=$as_save_IFS
4164: test -z "$as_dir" && as_dir=.
1.150 moko 4165: for ac_exec_ext in '' $ac_executable_extensions; do
4166: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.66 paf 4167: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.150 moko 4168: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4169: break 2
4170: fi
4171: done
1.150 moko 4172: done
4173: IFS=$as_save_IFS
1.1 paf 4174:
1.62 paf 4175: fi
4176: fi
1.66 paf 4177: CC=$ac_cv_prog_CC
4178: if test -n "$CC"; then
1.150 moko 4179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4180: $as_echo "$CC" >&6; }
1.1 paf 4181: else
1.150 moko 4182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183: $as_echo "no" >&6; }
1.1 paf 4184: fi
4185:
1.150 moko 4186:
1.66 paf 4187: test -n "$CC" && break
1.62 paf 4188: done
4189: fi
1.66 paf 4190: if test -z "$CC"; then
4191: ac_ct_CC=$CC
1.150 moko 4192: for ac_prog in cl.exe
1.62 paf 4193: do
4194: # Extract the first word of "$ac_prog", so it can be a program name with args.
4195: set dummy $ac_prog; ac_word=$2
1.150 moko 4196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197: $as_echo_n "checking for $ac_word... " >&6; }
4198: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4199: $as_echo_n "(cached) " >&6
1.62 paf 4200: else
1.66 paf 4201: if test -n "$ac_ct_CC"; then
4202: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 4203: else
1.62 paf 4204: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205: for as_dir in $PATH
4206: do
4207: IFS=$as_save_IFS
4208: test -z "$as_dir" && as_dir=.
1.150 moko 4209: for ac_exec_ext in '' $ac_executable_extensions; do
4210: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.66 paf 4211: ac_cv_prog_ac_ct_CC="$ac_prog"
1.150 moko 4212: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4213: break 2
4214: fi
4215: done
1.150 moko 4216: done
4217: IFS=$as_save_IFS
1.62 paf 4218:
4219: fi
4220: fi
1.66 paf 4221: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4222: if test -n "$ac_ct_CC"; then
1.150 moko 4223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4224: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4225: else
1.150 moko 4226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227: $as_echo "no" >&6; }
1.1 paf 4228: fi
4229:
1.150 moko 4230:
1.66 paf 4231: test -n "$ac_ct_CC" && break
4232: done
4233:
1.150 moko 4234: if test "x$ac_ct_CC" = x; then
4235: CC=""
4236: else
4237: case $cross_compiling:$ac_tool_warned in
4238: yes:)
4239: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4240: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4241: ac_tool_warned=yes ;;
4242: esac
4243: CC=$ac_ct_CC
4244: fi
1.66 paf 4245: fi
4246:
4247: fi
1.62 paf 4248:
1.1 paf 4249:
1.150 moko 4250: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4251: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4252: as_fn_error $? "no acceptable C compiler found in \$PATH
4253: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 4254:
4255: # Provide some information about the compiler.
1.150 moko 4256: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4257: set X $ac_compile
4258: ac_compiler=$2
4259: for ac_option in --version -v -V -qversion; do
4260: { { ac_try="$ac_compiler $ac_option >&5"
4261: case "(($ac_try" in
4262: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263: *) ac_try_echo=$ac_try;;
4264: esac
4265: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266: $as_echo "$ac_try_echo"; } >&5
4267: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 4268: ac_status=$?
1.150 moko 4269: if test -s conftest.err; then
4270: sed '10a\
4271: ... rest of stderr output deleted ...
4272: 10q' conftest.err >conftest.er1
4273: cat conftest.er1 >&5
4274: fi
4275: rm -f conftest.er1 conftest.err
4276: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277: test $ac_status = 0; }
4278: done
4279:
4280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4281: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4282: if ${ac_cv_c_compiler_gnu+:} false; then :
4283: $as_echo_n "(cached) " >&6
1.62 paf 4284: else
1.150 moko 4285: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4286: /* end confdefs.h. */
4287:
4288: int
4289: main ()
4290: {
4291: #ifndef __GNUC__
4292: choke me
4293: #endif
4294:
4295: ;
4296: return 0;
4297: }
4298: _ACEOF
1.150 moko 4299: if ac_fn_c_try_compile "$LINENO"; then :
1.62 paf 4300: ac_compiler_gnu=yes
4301: else
1.150 moko 4302: ac_compiler_gnu=no
1.62 paf 4303: fi
1.150 moko 4304: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 4305: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 4306:
4307: fi
1.150 moko 4308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4309: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4310: if test $ac_compiler_gnu = yes; then
4311: GCC=yes
4312: else
4313: GCC=
4314: fi
1.66 paf 4315: ac_test_CFLAGS=${CFLAGS+set}
4316: ac_save_CFLAGS=$CFLAGS
1.150 moko 4317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4318: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4319: if ${ac_cv_prog_cc_g+:} false; then :
4320: $as_echo_n "(cached) " >&6
4321: else
4322: ac_save_c_werror_flag=$ac_c_werror_flag
4323: ac_c_werror_flag=yes
4324: ac_cv_prog_cc_g=no
4325: CFLAGS="-g"
4326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4327: /* end confdefs.h. */
4328:
4329: int
4330: main ()
4331: {
4332:
4333: ;
4334: return 0;
4335: }
4336: _ACEOF
1.150 moko 4337: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 4338: ac_cv_prog_cc_g=yes
1.62 paf 4339: else
1.150 moko 4340: CFLAGS=""
4341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342: /* end confdefs.h. */
4343:
4344: int
4345: main ()
4346: {
1.62 paf 4347:
1.150 moko 4348: ;
4349: return 0;
4350: }
4351: _ACEOF
4352: if ac_fn_c_try_compile "$LINENO"; then :
4353:
4354: else
4355: ac_c_werror_flag=$ac_save_c_werror_flag
4356: CFLAGS="-g"
4357: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358: /* end confdefs.h. */
4359:
4360: int
4361: main ()
4362: {
4363:
4364: ;
4365: return 0;
4366: }
4367: _ACEOF
4368: if ac_fn_c_try_compile "$LINENO"; then :
4369: ac_cv_prog_cc_g=yes
4370: fi
4371: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4372: fi
1.150 moko 4373: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4374: fi
1.150 moko 4375: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376: ac_c_werror_flag=$ac_save_c_werror_flag
4377: fi
4378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4379: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.66 paf 4380: if test "$ac_test_CFLAGS" = set; then
4381: CFLAGS=$ac_save_CFLAGS
4382: elif test $ac_cv_prog_cc_g = yes; then
4383: if test "$GCC" = yes; then
4384: CFLAGS="-g -O2"
1.1 paf 4385: else
1.66 paf 4386: CFLAGS="-g"
1.1 paf 4387: fi
4388: else
1.66 paf 4389: if test "$GCC" = yes; then
4390: CFLAGS="-O2"
1.1 paf 4391: else
1.66 paf 4392: CFLAGS=
1.1 paf 4393: fi
4394: fi
1.150 moko 4395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4396: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4397: if ${ac_cv_prog_cc_c89+:} false; then :
4398: $as_echo_n "(cached) " >&6
1.66 paf 4399: else
1.150 moko 4400: ac_cv_prog_cc_c89=no
1.66 paf 4401: ac_save_CC=$CC
1.150 moko 4402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4403: /* end confdefs.h. */
4404: #include <stdarg.h>
4405: #include <stdio.h>
4406: #include <sys/types.h>
4407: #include <sys/stat.h>
4408: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4409: struct buf { int x; };
4410: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4411: static char *e (p, i)
4412: char **p;
4413: int i;
4414: {
4415: return p[i];
4416: }
4417: static char *f (char * (*g) (char **, int), char **p, ...)
4418: {
4419: char *s;
4420: va_list v;
4421: va_start (v,p);
4422: s = g (p, va_arg (v,int));
4423: va_end (v);
4424: return s;
4425: }
1.86 paf 4426:
4427: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4428: function prototypes and stuff, but not '\xHH' hex character constants.
4429: These don't provoke an error unfortunately, instead are silently treated
1.150 moko 4430: as 'x'. The following induces an error, until -std is added to get
1.86 paf 4431: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4432: array size at least. It's necessary to write '\x00'==0 to get something
1.150 moko 4433: that's true only with -std. */
1.86 paf 4434: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4435:
1.150 moko 4436: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4437: inside strings and character constants. */
4438: #define FOO(x) 'x'
4439: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4440:
1.66 paf 4441: int test (int i, double x);
4442: struct s1 {int (*f) (int a);};
4443: struct s2 {int (*f) (double a);};
4444: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4445: int argc;
4446: char **argv;
4447: int
4448: main ()
4449: {
4450: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4451: ;
4452: return 0;
4453: }
4454: _ACEOF
1.150 moko 4455: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4456: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 4457: do
4458: CC="$ac_save_CC $ac_arg"
1.150 moko 4459: if ac_fn_c_try_compile "$LINENO"; then :
4460: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 4461: fi
1.150 moko 4462: rm -f core conftest.err conftest.$ac_objext
4463: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 4464: done
1.150 moko 4465: rm -f conftest.$ac_ext
1.66 paf 4466: CC=$ac_save_CC
4467:
4468: fi
1.150 moko 4469: # AC_CACHE_VAL
4470: case "x$ac_cv_prog_cc_c89" in
4471: x)
4472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4473: $as_echo "none needed" >&6; } ;;
4474: xno)
4475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4476: $as_echo "unsupported" >&6; } ;;
1.66 paf 4477: *)
1.150 moko 4478: CC="$CC $ac_cv_prog_cc_c89"
4479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4480: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.66 paf 4481: esac
1.150 moko 4482: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.62 paf 4483:
4484: fi
1.66 paf 4485:
1.62 paf 4486: ac_ext=c
4487: ac_cpp='$CPP $CPPFLAGS'
4488: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491:
1.66 paf 4492: depcc="$CC" am_compiler_list=
1.62 paf 4493:
1.150 moko 4494: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4495: $as_echo_n "checking dependency style of $depcc... " >&6; }
4496: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4497: $as_echo_n "(cached) " >&6
1.62 paf 4498: else
4499: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4500: # We make a subdir and do the tests there. Otherwise we can end up
4501: # making bogus files that we don't know about and never remove. For
4502: # instance it was reported that on HP-UX the gcc test will end up
4503: # making a dummy file named `D' -- because `-MD' means `put the output
4504: # in D'.
4505: mkdir conftest.dir
4506: # Copy depcomp to subdir because otherwise we won't find it if we're
4507: # using a relative directory.
4508: cp "$am_depcomp" conftest.dir
4509: cd conftest.dir
1.86 paf 4510: # We will build objects and dependencies in a subdirectory because
4511: # it helps to detect inapplicable dependency modes. For instance
4512: # both Tru64's cc and ICC support -MD to output dependencies as a
4513: # side effect of compilation, but ICC will put the dependencies in
4514: # the current directory while Tru64 will put them in the object
4515: # directory.
4516: mkdir sub
1.62 paf 4517:
1.66 paf 4518: am_cv_CC_dependencies_compiler_type=none
1.62 paf 4519: if test "$am_compiler_list" = ""; then
4520: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4521: fi
1.150 moko 4522: am__universal=false
4523: case " $depcc " in #(
4524: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4525: esac
4526:
1.62 paf 4527: for depmode in $am_compiler_list; do
1.86 paf 4528: # Setup a source with many dependencies, because some compilers
4529: # like to wrap large dependency lists on column 80 (with \), and
4530: # we should not choose a depcomp mode which is confused by this.
4531: #
1.62 paf 4532: # We need to recreate these files for each test, as the compiler may
4533: # overwrite some of them when testing with obscure command lines.
4534: # This happens at least with the AIX C compiler.
1.86 paf 4535: : > sub/conftest.c
4536: for i in 1 2 3 4 5 6; do
4537: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4538: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4539: # Solaris 8's {/usr,}/bin/sh.
4540: touch sub/conftst$i.h
4541: done
4542: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4543:
1.150 moko 4544: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4545: # mode. It turns out that the SunPro C++ compiler does not properly
4546: # handle `-M -o', and we need to detect this. Also, some Intel
4547: # versions had trouble with output in subdirs
4548: am__obj=sub/conftest.${OBJEXT-o}
4549: am__minus_obj="-o $am__obj"
1.62 paf 4550: case $depmode in
1.150 moko 4551: gcc)
4552: # This depmode causes a compiler race in universal mode.
4553: test "$am__universal" = false || continue
4554: ;;
1.62 paf 4555: nosideeffect)
4556: # after this tag, mechanisms are not by side-effect, so they'll
4557: # only be used when explicitly requested
4558: if test "x$enable_dependency_tracking" = xyes; then
4559: continue
4560: else
4561: break
4562: fi
4563: ;;
1.150 moko 4564: msvisualcpp | msvcmsys)
4565: # This compiler won't grok `-c -o', but also, the minuso test has
4566: # not run yet. These depmodes are late enough in the game, and
4567: # so weak that their functioning should not be impacted.
4568: am__obj=conftest.${OBJEXT-o}
4569: am__minus_obj=
4570: ;;
1.62 paf 4571: none) break ;;
4572: esac
1.66 paf 4573: if depmode=$depmode \
1.150 moko 4574: source=sub/conftest.c object=$am__obj \
1.86 paf 4575: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4576: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4577: >/dev/null 2>conftest.err &&
1.150 moko 4578: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4579: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4580: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 4581: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4582: # icc doesn't choke on unknown options, it will just issue warnings
4583: # or remarks (even with -Werror). So we grep stderr for any message
4584: # that says an option was ignored or not supported.
4585: # When given -MP, icc 7.0 and 7.1 complain thusly:
4586: # icc: Command line warning: ignoring option '-M'; no argument required
4587: # The diagnosis changed in icc 8.0:
4588: # icc: Command line remark: option '-MP' not supported
4589: if (grep 'ignoring option' conftest.err ||
4590: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4591: am_cv_CC_dependencies_compiler_type=$depmode
4592: break
4593: fi
1.66 paf 4594: fi
4595: done
4596:
4597: cd ..
4598: rm -rf conftest.dir
4599: else
4600: am_cv_CC_dependencies_compiler_type=none
4601: fi
4602:
4603: fi
1.150 moko 4604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4605: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 4606: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4607:
1.150 moko 4608: if
1.66 paf 4609: test "x$enable_dependency_tracking" != xno \
4610: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4611: am__fastdepCC_TRUE=
4612: am__fastdepCC_FALSE='#'
4613: else
4614: am__fastdepCC_TRUE='#'
4615: am__fastdepCC_FALSE=
4616: fi
4617:
4618:
1.128 moko 4619:
1.66 paf 4620: ac_ext=c
4621: ac_cpp='$CPP $CPPFLAGS'
4622: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625:
1.67 paf 4626:
1.62 paf 4627:
1.150 moko 4628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
4629: $as_echo_n "checking for dynamic-link library extension... " >&6; }
1.128 moko 4630: case "$host_os" in
1.158 moko 4631: *cygwin* ) dll_extension=dll;;
4632: * ) dll_extension=so
1.66 paf 4633: esac
1.150 moko 4634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
4635: $as_echo "$dll_extension" >&6; }
1.1 paf 4636:
1.71 paf 4637:
4638:
4639:
1.150 moko 4640: # Check whether --with-build-warnings was given.
4641: if test "${with_build_warnings+set}" = set; then :
4642: withval=$with_build_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
4643: $as_echo "$as_me: WARNING: enabling compiler warnings" >&2;}
1.71 paf 4644: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4645:
1.150 moko 4646: fi
4647:
1.1 paf 4648:
4649:
1.150 moko 4650: # Check whether --with-assertions was given.
4651: if test "${with_assertions+set}" = set; then :
4652: withval=$with_assertions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
4653: $as_echo "$as_me: WARNING: enabling assertions" >&2;}
1.67 paf 4654:
4655: else
4656:
1.150 moko 4657: $as_echo "#define NDEBUG /**/" >>confdefs.h
4658:
1.67 paf 4659:
1.150 moko 4660: fi
1.67 paf 4661:
4662:
1.94 misha 4663:
1.150 moko 4664: # Check whether --with-sjlj-exceptions was given.
4665: if test "${with_sjlj_exceptions+set}" = set; then :
4666: withval=$with_sjlj_exceptions;
4667: $as_echo "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 4668:
4669:
1.150 moko 4670: fi
1.128 moko 4671:
4672:
1.62 paf 4673:
1.150 moko 4674: # Check whether --enable-safe-mode was given.
4675: if test "${enable_safe_mode+set}" = set; then :
4676: enableval=$enable_safe_mode;
1.67 paf 4677: SAFE_MODE=$enableval
1.60 paf 4678:
1.1 paf 4679:
1.150 moko 4680: fi
4681:
1.128 moko 4682:
1.60 paf 4683: if test "$SAFE_MODE" = "no"; then
1.150 moko 4684: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
4685: $as_echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 4686: else
1.62 paf 4687:
1.150 moko 4688: $as_echo "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 4689:
4690: fi
4691:
1.94 misha 4692:
1.150 moko 4693: # Check whether --enable-execs was given.
4694: if test "${enable_execs+set}" = set; then :
4695: enableval=$enable_execs;
1.13 paf 4696: if test "$enableval" = "no"; then
1.150 moko 4697: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
4698: $as_echo "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 4699:
1.150 moko 4700: $as_echo "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 4701:
4702: fi
4703:
4704:
1.150 moko 4705: fi
1.13 paf 4706:
1.60 paf 4707:
1.94 misha 4708:
1.150 moko 4709: # Check whether --enable-stringstream was given.
4710: if test "${enable_stringstream+set}" = set; then :
4711: enableval=$enable_stringstream;
1.94 misha 4712: if test "$enableval" = "no"; then
1.150 moko 4713: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
4714: $as_echo "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 4715:
1.150 moko 4716: $as_echo "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 4717:
4718: fi
4719:
4720:
1.150 moko 4721: fi
1.94 misha 4722:
4723:
1.62 paf 4724:
1.17 paf 4725:
1.150 moko 4726: # Check whether --with-gc was given.
4727: if test "${with_gc+set}" = set; then :
4728: withval=$with_gc;
1.17 paf 4729:
1.142 moko 4730: GC=$withval
4731: GC_LIBS="$GC/libgc.la"
4732:
4733: if test -f $GC_LIBS; then
4734: GC_OK="yes"
4735: else
4736: GC_LIBS="-L$GC -lgc"
4737: fi
1.62 paf 4738:
1.151 moko 4739: if test "$GC" = "yes"; then
4740: GC=""
4741: GC_LIBS="-lgc"
4742: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
4743: $as_echo "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
4744: fi
4745:
1.142 moko 4746: else
1.17 paf 4747:
1.142 moko 4748: GC_LIBS="-lgc"
1.150 moko 4749: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
4750: $as_echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
4751:
4752: fi
1.17 paf 4753:
4754:
1.142 moko 4755: if test -z "$GC_OK"; then
1.150 moko 4756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
4757: $as_echo_n "checking for libgc... " >&6; }
1.138 moko 4758: SAVE_LIBS=$LIBS
4759: LIBS="$LIBS $GC_LIBS"
1.128 moko 4760:
1.150 moko 4761: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 4762: /* end confdefs.h. */
1.142 moko 4763: extern int GC_dont_gc;
1.67 paf 4764: int
4765: main ()
4766: {
1.142 moko 4767: GC_dont_gc=0;
1.67 paf 4768: ;
4769: return 0;
4770: }
4771: _ACEOF
1.150 moko 4772: if ac_fn_c_try_link "$LINENO"; then :
4773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4774: $as_echo "yes" >&6; }
1.67 paf 4775:
4776: else
1.150 moko 4777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778: $as_echo "no" >&6; }
1.142 moko 4779: if test -z "$GC"; then
1.151 moko 4780: as_fn_error $? "please specify path to libgc: --with-gc=D" "$LINENO" 5
1.142 moko 4781: else
1.150 moko 4782: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 4783: fi
1.67 paf 4784:
4785: fi
1.150 moko 4786: rm -f core conftest.err conftest.$ac_objext \
4787: conftest$ac_exeext conftest.$ac_ext
1.138 moko 4788: LIBS=$SAVE_LIBS
4789: fi
1.67 paf 4790:
4791:
1.1 paf 4792:
1.15 paf 4793:
1.142 moko 4794:
1.150 moko 4795: # Check whether --with-pcre was given.
4796: if test "${with_pcre+set}" = set; then :
4797: withval=$with_pcre;
1.100 misha 4798: PCRE=$withval
1.142 moko 4799: PCRE_INCLUDES="-I$PCRE/include"
4800: PCRE_LIBS="$PCRE/lib/libpcre.la"
1.100 misha 4801:
1.142 moko 4802: if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
4803: PCRE_OK="yes"
4804: else
4805: PCRE_LIBS="-L$PCRE -lpcre"
1.100 misha 4806: fi
4807:
1.151 moko 4808: if test "$PCRE" = "yes"; then
4809: PCRE=""
4810: PCRE_LIBS="-lpcre"
4811: PCRE_INCLUDES=""
4812: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
4813: $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
4814: fi
1.142 moko 4815:
4816: else
4817:
4818: PCRE_LIBS="-lpcre"
1.149 moko 4819: PCRE_INCLUDES=""
1.150 moko 4820: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
4821: $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
4822:
4823: fi
1.100 misha 4824:
4825:
1.142 moko 4826: if test -z "$PCRE_OK"; then
1.150 moko 4827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prce" >&5
4828: $as_echo_n "checking for prce... " >&6; }
1.142 moko 4829: SAVE_LIBS=$LIBS
4830: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.150 moko 4831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 4832: /* end confdefs.h. */
4833: #include <pcre.h>
4834: int
4835: main ()
4836: {
4837: const char *v=pcre_version();
4838: ;
4839: return 0;
4840: }
4841: _ACEOF
1.150 moko 4842: if ac_fn_c_try_link "$LINENO"; then :
4843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4844: $as_echo "yes" >&6; }
1.142 moko 4845:
4846: else
1.150 moko 4847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848: $as_echo "no" >&6; }
1.142 moko 4849: if test -z "$PCRE"; then
1.151 moko 4850: as_fn_error $? "please specify path to PCRE: --with-pcre=D" "$LINENO" 5
1.142 moko 4851: else
1.150 moko 4852: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 4853: fi
4854:
4855: fi
1.150 moko 4856: rm -f core conftest.err conftest.$ac_objext \
4857: conftest$ac_exeext conftest.$ac_ext
1.142 moko 4858: LIBS=$SAVE_LIBS
4859: fi
1.100 misha 4860:
4861:
4862:
4863:
1.66 paf 4864:
4865:
1.150 moko 4866: # Check whether --with-xml was given.
4867: if test "${with_xml+set}" = set; then :
4868: withval=$with_xml;
1.66 paf 4869:
1.142 moko 4870: XML=$withval
4871: XML_LIBS="-lxml2 -lxslt -lexslt"
4872:
4873: if test -z "$XML" -o "$XML" = "yes"; then
4874: XML=""
4875: XML_INCLUDES="-I/usr/include/libxml2"
1.150 moko 4876: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
4877: $as_echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 4878: else
4879: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.67 paf 4880:
1.142 moko 4881: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
4882: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
4883: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
4884: XML_OK="yes"
4885: fi
1.67 paf 4886: fi
1.66 paf 4887:
1.142 moko 4888: if test -z "$XML_OK"; then
1.150 moko 4889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
4890: $as_echo_n "checking for xml... " >&6; }
1.142 moko 4891: SAVE_LIBS=$LIBS
4892: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.150 moko 4893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 4894: /* end confdefs.h. */
4895: #include <libxslt/xslt.h>
4896: int
4897: main ()
4898: {
4899: const char *v=xsltEngineVersion;
4900: ;
4901: return 0;
4902: }
4903: _ACEOF
1.150 moko 4904: if ac_fn_c_try_link "$LINENO"; then :
4905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4906: $as_echo "yes" >&6; }
1.142 moko 4907:
4908: else
1.150 moko 4909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910: $as_echo "no" >&6; }
1.142 moko 4911: if test -z "$XML"; then
1.151 moko 4912: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=D" "$LINENO" 5
1.142 moko 4913: else
1.150 moko 4914: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 4915: fi
4916:
4917: fi
1.150 moko 4918: rm -f core conftest.err conftest.$ac_objext \
4919: conftest$ac_exeext conftest.$ac_ext
1.142 moko 4920: LIBS=$SAVE_LIBS
1.67 paf 4921: fi
1.66 paf 4922:
1.150 moko 4923: $as_echo "#define XML /**/" >>confdefs.h
4924:
1.66 paf 4925:
1.150 moko 4926: fi
1.66 paf 4927:
1.90 paf 4928:
1.66 paf 4929:
4930:
4931:
4932:
1.90 paf 4933:
1.154 moko 4934: # Check whether --with-mailreceive was given.
4935: if test "${with_mailreceive+set}" = set; then :
4936: withval=$with_mailreceive;
4937: MIME=$withval
1.155 moko 4938: GLIB="glib-2.0"
1.154 moko 4939: GMIME="gmime-2.4"
4940:
4941: if test -z "$MIME" -o "$MIME" = "yes"; then
4942: MIME=""
4943: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
4944: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
4945: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
4946: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
4947: else
1.155 moko 4948: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 4949: MIME_LIBS="-l$GMIME"
4950: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
4951: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 4952: if test -f $MIME/lib/lib$GLIB.la; then
4953: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
4954: else
4955: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
4956: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
4957: fi
1.154 moko 4958: MIME_OK="yes"
4959: fi
1.67 paf 4960: fi
1.66 paf 4961:
1.154 moko 4962: if test -z "$MIME_OK"; then
4963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
4964: $as_echo_n "checking for mime... " >&6; }
4965: SAVE_LIBS=$LIBS
4966: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
4967: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968: /* end confdefs.h. */
4969: #include <gmime/gmime.h>
4970: int
4971: main ()
4972: {
4973: guint v=gmime_major_version;
4974: ;
4975: return 0;
4976: }
4977: _ACEOF
4978: if ac_fn_c_try_link "$LINENO"; then :
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4980: $as_echo "yes" >&6; }
1.66 paf 4981:
1.154 moko 4982: else
4983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984: $as_echo "no" >&6; }
4985: if test -z "$MIME"; then
4986: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=D" "$LINENO" 5
4987: else
4988: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 4989: fi
1.66 paf 4990:
1.150 moko 4991: fi
1.154 moko 4992: rm -f core conftest.err conftest.$ac_objext \
4993: conftest$ac_exeext conftest.$ac_ext
4994: LIBS=$SAVE_LIBS
1.67 paf 4995: fi
1.66 paf 4996:
1.150 moko 4997: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 4998:
4999:
1.154 moko 5000: fi
1.66 paf 5001:
5002:
5003:
5004:
5005:
5006:
5007:
1.150 moko 5008: # Check whether --with-sendmail was given.
5009: if test "${with_sendmail+set}" = set; then :
5010: withval=$with_sendmail;
1.66 paf 5011: cat >>confdefs.h <<_ACEOF
5012: #define PA_FORCED_SENDMAIL "$withval"
5013: _ACEOF
5014:
5015:
1.150 moko 5016: fi
1.66 paf 5017:
5018:
5019:
1.122 moko 5020:
1.150 moko 5021: # Check whether --with-apache was given.
5022: if test "${with_apache+set}" = set; then :
5023: withval=$with_apache;
1.122 moko 5024: APXS=$withval
5025:
5026: if test -z "$APXS" -o "$APXS" = "yes"; then
5027: APXS=`which apxs 2>/dev/null`
1.142 moko 5028: if test -z "$APXS"; then
5029: APXS=`which apxs2 2>/dev/null`
5030: fi
5031: fi
1.122 moko 5032:
5033: APACHE=`$APXS -q TARGET 2>/dev/null`
5034:
5035: if test -z "$APACHE"; then
1.150 moko 5036: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5037: fi
1.7 paf 5038:
1.122 moko 5039: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5040: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5041: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5042: APACHE_CFLAGS=`$APXS -q CFLAGS`
5043:
1.150 moko 5044: fi
1.7 paf 5045:
5046:
1.62 paf 5047:
1.122 moko 5048:
1.150 moko 5049: if test -n "$APACHE"; then
1.122 moko 5050: COMPILE_APACHE_MODULE_TRUE=
5051: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5052: else
1.122 moko 5053: COMPILE_APACHE_MODULE_TRUE='#'
5054: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5055: fi
1.1 paf 5056:
5057:
5058:
1.62 paf 5059:
5060:
1.7 paf 5061:
1.1 paf 5062:
5063:
5064:
1.62 paf 5065:
1.128 moko 5066: case `pwd` in
5067: *\ * | *\ *)
1.150 moko 5068: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5069: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5070: esac
5071:
5072:
5073:
5074: macro_version='2.4.2'
5075: macro_revision='1.3337'
5076:
5077:
5078:
5079:
5080:
5081:
5082:
5083:
5084:
5085:
5086:
5087:
5088:
5089: ltmain="$ac_aux_dir/ltmain.sh"
5090:
5091: # Backslashify metacharacters that are still active within
5092: # double-quoted strings.
5093: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5094:
1.128 moko 5095: # Same as above, but do not quote variable references.
5096: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5097:
1.128 moko 5098: # Sed substitution to delay expansion of an escaped shell variable in a
5099: # double_quote_subst'ed string.
5100: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5101:
1.128 moko 5102: # Sed substitution to delay expansion of an escaped single quote.
5103: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5104:
1.128 moko 5105: # Sed substitution to avoid accidental globbing in evaled expressions
5106: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5107:
1.128 moko 5108: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5109: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5110: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5111:
1.150 moko 5112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5113: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5114: # Test print first, because it will be a builtin if present.
5115: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5116: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5117: ECHO='print -r --'
5118: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5119: ECHO='printf %s\n'
5120: else
5121: # Use this function as a fallback that always works.
5122: func_fallback_echo ()
5123: {
5124: eval 'cat <<_LTECHO_EOF
5125: $1
5126: _LTECHO_EOF'
5127: }
5128: ECHO='func_fallback_echo'
5129: fi
1.86 paf 5130:
1.128 moko 5131: # func_echo_all arg...
5132: # Invoke $ECHO with all args, space-separated.
5133: func_echo_all ()
1.66 paf 5134: {
1.128 moko 5135: $ECHO ""
1.66 paf 5136: }
1.10 paf 5137:
1.128 moko 5138: case "$ECHO" in
1.150 moko 5139: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5140: $as_echo "printf" >&6; } ;;
5141: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5142: $as_echo "print -r" >&6; } ;;
5143: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5144: $as_echo "cat" >&6; } ;;
1.128 moko 5145: esac
5146:
5147:
5148:
5149:
5150:
5151:
5152:
5153:
5154:
5155:
5156:
5157:
5158:
5159:
1.150 moko 5160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5161: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5162: if ${ac_cv_path_SED+:} false; then :
5163: $as_echo_n "(cached) " >&6
5164: else
5165: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5166: for ac_i in 1 2 3 4 5 6 7; do
5167: ac_script="$ac_script$as_nl$ac_script"
5168: done
5169: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5170: { ac_script=; unset ac_script;}
5171: if test -z "$SED"; then
5172: ac_path_SED_found=false
5173: # Loop through the user's path and test for each of PROGNAME-LIST
5174: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5175: for as_dir in $PATH
5176: do
5177: IFS=$as_save_IFS
5178: test -z "$as_dir" && as_dir=.
1.150 moko 5179: for ac_prog in sed gsed; do
1.128 moko 5180: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5181: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5182: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5183: # Check for GNU ac_path_SED and select it if it is found.
5184: # Check for GNU $ac_path_SED
5185: case `"$ac_path_SED" --version 2>&1` in
5186: *GNU*)
5187: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5188: *)
5189: ac_count=0
5190: $as_echo_n 0123456789 >"conftest.in"
5191: while :
5192: do
5193: cat "conftest.in" "conftest.in" >"conftest.tmp"
5194: mv "conftest.tmp" "conftest.in"
5195: cp "conftest.in" "conftest.nl"
5196: $as_echo '' >> "conftest.nl"
5197: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199: as_fn_arith $ac_count + 1 && ac_count=$as_val
5200: if test $ac_count -gt ${ac_path_SED_max-0}; then
5201: # Best one so far, save it but keep looking for a better one
5202: ac_cv_path_SED="$ac_path_SED"
5203: ac_path_SED_max=$ac_count
5204: fi
5205: # 10*(2^10) chars as input seems more than enough
5206: test $ac_count -gt 10 && break
5207: done
5208: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209: esac
5210:
5211: $ac_path_SED_found && break 3
1.128 moko 5212: done
5213: done
1.150 moko 5214: done
1.128 moko 5215: IFS=$as_save_IFS
1.150 moko 5216: if test -z "$ac_cv_path_SED"; then
5217: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5218: fi
1.150 moko 5219: else
5220: ac_cv_path_SED=$SED
5221: fi
1.10 paf 5222:
1.66 paf 5223: fi
1.150 moko 5224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5225: $as_echo "$ac_cv_path_SED" >&6; }
5226: SED="$ac_cv_path_SED"
5227: rm -f conftest.sed
1.128 moko 5228:
5229: test -z "$SED" && SED=sed
5230: Xsed="$SED -e 1s/^X//"
1.10 paf 5231:
1.128 moko 5232:
5233:
5234:
5235:
5236:
5237:
5238:
5239:
5240:
5241:
1.150 moko 5242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5243: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5244: if ${ac_cv_path_GREP+:} false; then :
5245: $as_echo_n "(cached) " >&6
5246: else
5247: if test -z "$GREP"; then
5248: ac_path_GREP_found=false
5249: # Loop through the user's path and test for each of PROGNAME-LIST
5250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5252: do
5253: IFS=$as_save_IFS
5254: test -z "$as_dir" && as_dir=.
5255: for ac_prog in grep ggrep; do
5256: for ac_exec_ext in '' $ac_executable_extensions; do
5257: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5258: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5259: # Check for GNU ac_path_GREP and select it if it is found.
5260: # Check for GNU $ac_path_GREP
5261: case `"$ac_path_GREP" --version 2>&1` in
5262: *GNU*)
5263: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5264: *)
5265: ac_count=0
5266: $as_echo_n 0123456789 >"conftest.in"
5267: while :
5268: do
5269: cat "conftest.in" "conftest.in" >"conftest.tmp"
5270: mv "conftest.tmp" "conftest.in"
5271: cp "conftest.in" "conftest.nl"
5272: $as_echo 'GREP' >> "conftest.nl"
5273: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5274: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5275: as_fn_arith $ac_count + 1 && ac_count=$as_val
5276: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5277: # Best one so far, save it but keep looking for a better one
5278: ac_cv_path_GREP="$ac_path_GREP"
5279: ac_path_GREP_max=$ac_count
1.128 moko 5280: fi
1.150 moko 5281: # 10*(2^10) chars as input seems more than enough
5282: test $ac_count -gt 10 && break
5283: done
5284: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5285: esac
5286:
5287: $ac_path_GREP_found && break 3
5288: done
5289: done
5290: done
5291: IFS=$as_save_IFS
5292: if test -z "$ac_cv_path_GREP"; then
5293: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5294: fi
5295: else
5296: ac_cv_path_GREP=$GREP
5297: fi
5298:
1.128 moko 5299: fi
1.150 moko 5300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5301: $as_echo "$ac_cv_path_GREP" >&6; }
5302: GREP="$ac_cv_path_GREP"
5303:
5304:
5305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5306: $as_echo_n "checking for egrep... " >&6; }
5307: if ${ac_cv_path_EGREP+:} false; then :
5308: $as_echo_n "(cached) " >&6
5309: else
5310: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5311: then ac_cv_path_EGREP="$GREP -E"
5312: else
5313: if test -z "$EGREP"; then
5314: ac_path_EGREP_found=false
5315: # Loop through the user's path and test for each of PROGNAME-LIST
5316: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5318: do
5319: IFS=$as_save_IFS
5320: test -z "$as_dir" && as_dir=.
5321: for ac_prog in egrep; do
5322: for ac_exec_ext in '' $ac_executable_extensions; do
5323: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5324: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5325: # Check for GNU ac_path_EGREP and select it if it is found.
5326: # Check for GNU $ac_path_EGREP
5327: case `"$ac_path_EGREP" --version 2>&1` in
5328: *GNU*)
5329: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5330: *)
5331: ac_count=0
5332: $as_echo_n 0123456789 >"conftest.in"
5333: while :
5334: do
5335: cat "conftest.in" "conftest.in" >"conftest.tmp"
5336: mv "conftest.tmp" "conftest.in"
5337: cp "conftest.in" "conftest.nl"
5338: $as_echo 'EGREP' >> "conftest.nl"
5339: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5340: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5341: as_fn_arith $ac_count + 1 && ac_count=$as_val
5342: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5343: # Best one so far, save it but keep looking for a better one
5344: ac_cv_path_EGREP="$ac_path_EGREP"
5345: ac_path_EGREP_max=$ac_count
5346: fi
5347: # 10*(2^10) chars as input seems more than enough
5348: test $ac_count -gt 10 && break
5349: done
5350: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5351: esac
1.128 moko 5352:
1.150 moko 5353: $ac_path_EGREP_found && break 3
5354: done
5355: done
5356: done
5357: IFS=$as_save_IFS
5358: if test -z "$ac_cv_path_EGREP"; then
5359: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5360: fi
5361: else
5362: ac_cv_path_EGREP=$EGREP
5363: fi
1.128 moko 5364:
1.150 moko 5365: fi
5366: fi
5367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5368: $as_echo "$ac_cv_path_EGREP" >&6; }
5369: EGREP="$ac_cv_path_EGREP"
5370:
5371:
5372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5373: $as_echo_n "checking for fgrep... " >&6; }
5374: if ${ac_cv_path_FGREP+:} false; then :
5375: $as_echo_n "(cached) " >&6
5376: else
5377: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5378: then ac_cv_path_FGREP="$GREP -F"
5379: else
5380: if test -z "$FGREP"; then
5381: ac_path_FGREP_found=false
5382: # Loop through the user's path and test for each of PROGNAME-LIST
5383: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385: do
5386: IFS=$as_save_IFS
5387: test -z "$as_dir" && as_dir=.
5388: for ac_prog in fgrep; do
5389: for ac_exec_ext in '' $ac_executable_extensions; do
5390: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5391: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5392: # Check for GNU ac_path_FGREP and select it if it is found.
5393: # Check for GNU $ac_path_FGREP
5394: case `"$ac_path_FGREP" --version 2>&1` in
5395: *GNU*)
5396: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5397: *)
5398: ac_count=0
5399: $as_echo_n 0123456789 >"conftest.in"
5400: while :
5401: do
5402: cat "conftest.in" "conftest.in" >"conftest.tmp"
5403: mv "conftest.tmp" "conftest.in"
5404: cp "conftest.in" "conftest.nl"
5405: $as_echo 'FGREP' >> "conftest.nl"
5406: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408: as_fn_arith $ac_count + 1 && ac_count=$as_val
5409: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5410: # Best one so far, save it but keep looking for a better one
5411: ac_cv_path_FGREP="$ac_path_FGREP"
5412: ac_path_FGREP_max=$ac_count
1.128 moko 5413: fi
1.150 moko 5414: # 10*(2^10) chars as input seems more than enough
5415: test $ac_count -gt 10 && break
5416: done
5417: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418: esac
5419:
5420: $ac_path_FGREP_found && break 3
5421: done
5422: done
5423: done
5424: IFS=$as_save_IFS
5425: if test -z "$ac_cv_path_FGREP"; then
5426: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427: fi
5428: else
5429: ac_cv_path_FGREP=$FGREP
5430: fi
5431:
5432: fi
1.128 moko 5433: fi
1.150 moko 5434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5435: $as_echo "$ac_cv_path_FGREP" >&6; }
5436: FGREP="$ac_cv_path_FGREP"
1.128 moko 5437:
5438:
5439: test -z "$GREP" && GREP=grep
5440:
5441:
5442:
5443:
5444:
5445:
5446:
5447:
5448:
5449:
5450:
5451:
5452:
5453:
5454:
5455:
5456:
5457:
5458:
1.150 moko 5459: # Check whether --with-gnu-ld was given.
5460: if test "${with_gnu_ld+set}" = set; then :
5461: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5462: else
5463: with_gnu_ld=no
1.150 moko 5464: fi
5465:
1.128 moko 5466: ac_prog=ld
5467: if test "$GCC" = yes; then
5468: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5470: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5471: case $host in
5472: *-*-mingw*)
5473: # gcc leaves a trailing carriage return which upsets mingw
5474: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5475: *)
5476: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5477: esac
5478: case $ac_prog in
5479: # Accept absolute paths.
5480: [\\/]* | ?:[\\/]*)
5481: re_direlt='/[^/][^/]*/\.\./'
5482: # Canonicalize the pathname of ld
5483: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5484: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5485: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5486: done
5487: test -z "$LD" && LD="$ac_prog"
5488: ;;
5489: "")
5490: # If it fails, then pretend we aren't using GCC.
5491: ac_prog=ld
5492: ;;
5493: *)
5494: # If it is relative, then search for the first ld in PATH.
5495: with_gnu_ld=unknown
5496: ;;
5497: esac
5498: elif test "$with_gnu_ld" = yes; then
1.150 moko 5499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5500: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5501: else
1.150 moko 5502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5503: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5504: fi
1.150 moko 5505: if ${lt_cv_path_LD+:} false; then :
5506: $as_echo_n "(cached) " >&6
1.128 moko 5507: else
5508: if test -z "$LD"; then
5509: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5510: for ac_dir in $PATH; do
5511: IFS="$lt_save_ifs"
5512: test -z "$ac_dir" && ac_dir=.
5513: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5514: lt_cv_path_LD="$ac_dir/$ac_prog"
5515: # Check to see if the program is GNU ld. I'd rather use --version,
5516: # but apparently some variants of GNU ld only accept -v.
5517: # Break only if it was the GNU/non-GNU ld that we prefer.
5518: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5519: *GNU* | *'with BFD'*)
5520: test "$with_gnu_ld" != no && break
5521: ;;
5522: *)
5523: test "$with_gnu_ld" != yes && break
5524: ;;
5525: esac
5526: fi
5527: done
5528: IFS="$lt_save_ifs"
5529: else
5530: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5531: fi
5532: fi
5533:
5534: LD="$lt_cv_path_LD"
5535: if test -n "$LD"; then
1.150 moko 5536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5537: $as_echo "$LD" >&6; }
1.128 moko 5538: else
1.150 moko 5539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540: $as_echo "no" >&6; }
1.128 moko 5541: fi
1.150 moko 5542: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5543: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5544: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5545: if ${lt_cv_prog_gnu_ld+:} false; then :
5546: $as_echo_n "(cached) " >&6
1.128 moko 5547: else
5548: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5549: case `$LD -v 2>&1 </dev/null` in
5550: *GNU* | *'with BFD'*)
5551: lt_cv_prog_gnu_ld=yes
5552: ;;
5553: *)
5554: lt_cv_prog_gnu_ld=no
5555: ;;
5556: esac
5557: fi
1.150 moko 5558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5559: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5560: with_gnu_ld=$lt_cv_prog_gnu_ld
5561:
5562:
5563:
5564:
5565:
5566:
5567:
5568:
5569:
1.150 moko 5570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5571: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5572: if ${lt_cv_path_NM+:} false; then :
5573: $as_echo_n "(cached) " >&6
1.128 moko 5574: else
5575: if test -n "$NM"; then
5576: # Let the user override the test.
5577: lt_cv_path_NM="$NM"
5578: else
5579: lt_nm_to_check="${ac_tool_prefix}nm"
5580: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5581: lt_nm_to_check="$lt_nm_to_check nm"
5582: fi
5583: for lt_tmp_nm in $lt_nm_to_check; do
5584: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5585: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5586: IFS="$lt_save_ifs"
5587: test -z "$ac_dir" && ac_dir=.
5588: tmp_nm="$ac_dir/$lt_tmp_nm"
5589: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5590: # Check to see if the nm accepts a BSD-compat flag.
5591: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5592: # nm: unknown option "B" ignored
5593: # Tru64's nm complains that /dev/null is an invalid object file
5594: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5595: */dev/null* | *'Invalid file or object type'*)
5596: lt_cv_path_NM="$tmp_nm -B"
5597: break
5598: ;;
5599: *)
5600: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5601: */dev/null*)
5602: lt_cv_path_NM="$tmp_nm -p"
5603: break
5604: ;;
5605: *)
5606: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5607: continue # so that we can try to find one that supports BSD flags
5608: ;;
5609: esac
5610: ;;
5611: esac
5612: fi
5613: done
5614: IFS="$lt_save_ifs"
5615: done
5616: : ${lt_cv_path_NM=no}
5617: fi
5618: fi
1.150 moko 5619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5620: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5621: if test "$lt_cv_path_NM" != "no"; then
5622: NM="$lt_cv_path_NM"
5623: else
5624: # Didn't find any BSD compatible name lister, look for dumpbin.
5625: if test -n "$DUMPBIN"; then :
5626: # Let the user override the test.
5627: else
5628: if test -n "$ac_tool_prefix"; then
5629: for ac_prog in dumpbin "link -dump"
5630: do
5631: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5632: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634: $as_echo_n "checking for $ac_word... " >&6; }
5635: if ${ac_cv_prog_DUMPBIN+:} false; then :
5636: $as_echo_n "(cached) " >&6
1.128 moko 5637: else
5638: if test -n "$DUMPBIN"; then
5639: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5640: else
5641: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642: for as_dir in $PATH
5643: do
5644: IFS=$as_save_IFS
5645: test -z "$as_dir" && as_dir=.
1.150 moko 5646: for ac_exec_ext in '' $ac_executable_extensions; do
5647: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 5648: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 5649: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5650: break 2
5651: fi
5652: done
1.150 moko 5653: done
5654: IFS=$as_save_IFS
1.128 moko 5655:
5656: fi
5657: fi
5658: DUMPBIN=$ac_cv_prog_DUMPBIN
5659: if test -n "$DUMPBIN"; then
1.150 moko 5660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5661: $as_echo "$DUMPBIN" >&6; }
1.128 moko 5662: else
1.150 moko 5663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664: $as_echo "no" >&6; }
1.128 moko 5665: fi
5666:
1.150 moko 5667:
1.128 moko 5668: test -n "$DUMPBIN" && break
5669: done
5670: fi
5671: if test -z "$DUMPBIN"; then
5672: ac_ct_DUMPBIN=$DUMPBIN
5673: for ac_prog in dumpbin "link -dump"
5674: do
5675: # Extract the first word of "$ac_prog", so it can be a program name with args.
5676: set dummy $ac_prog; ac_word=$2
1.150 moko 5677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678: $as_echo_n "checking for $ac_word... " >&6; }
5679: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5680: $as_echo_n "(cached) " >&6
1.128 moko 5681: else
5682: if test -n "$ac_ct_DUMPBIN"; then
5683: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5684: else
5685: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686: for as_dir in $PATH
5687: do
5688: IFS=$as_save_IFS
5689: test -z "$as_dir" && as_dir=.
1.150 moko 5690: for ac_exec_ext in '' $ac_executable_extensions; do
5691: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 5692: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 5693: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5694: break 2
5695: fi
5696: done
1.150 moko 5697: done
5698: IFS=$as_save_IFS
1.128 moko 5699:
5700: fi
5701: fi
5702: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5703: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 5704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5705: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 5706: else
1.150 moko 5707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708: $as_echo "no" >&6; }
1.128 moko 5709: fi
5710:
1.150 moko 5711:
1.128 moko 5712: test -n "$ac_ct_DUMPBIN" && break
5713: done
5714:
1.150 moko 5715: if test "x$ac_ct_DUMPBIN" = x; then
5716: DUMPBIN=":"
5717: else
5718: case $cross_compiling:$ac_tool_warned in
5719: yes:)
5720: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722: ac_tool_warned=yes ;;
5723: esac
5724: DUMPBIN=$ac_ct_DUMPBIN
5725: fi
1.128 moko 5726: fi
5727:
5728: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5729: *COFF*)
5730: DUMPBIN="$DUMPBIN -symbols"
5731: ;;
5732: *)
5733: DUMPBIN=:
5734: ;;
5735: esac
5736: fi
5737:
5738: if test "$DUMPBIN" != ":"; then
5739: NM="$DUMPBIN"
5740: fi
5741: fi
5742: test -z "$NM" && NM=nm
5743:
5744:
5745:
5746:
5747:
5748:
1.150 moko 5749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5750: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5751: if ${lt_cv_nm_interface+:} false; then :
5752: $as_echo_n "(cached) " >&6
1.128 moko 5753: else
5754: lt_cv_nm_interface="BSD nm"
5755: echo "int some_variable = 0;" > conftest.$ac_ext
5756: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5757: (eval "$ac_compile" 2>conftest.err)
5758: cat conftest.err >&5
5759: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5760: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5761: cat conftest.err >&5
5762: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5763: cat conftest.out >&5
5764: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5765: lt_cv_nm_interface="MS dumpbin"
5766: fi
5767: rm -f conftest*
5768: fi
1.150 moko 5769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5770: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 5771:
1.150 moko 5772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5773: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 5774: LN_S=$as_ln_s
5775: if test "$LN_S" = "ln -s"; then
1.150 moko 5776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5777: $as_echo "yes" >&6; }
1.128 moko 5778: else
1.150 moko 5779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5780: $as_echo "no, using $LN_S" >&6; }
1.128 moko 5781: fi
5782:
5783: # find the maximum length of command line arguments
1.150 moko 5784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5785: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5786: if ${lt_cv_sys_max_cmd_len+:} false; then :
5787: $as_echo_n "(cached) " >&6
1.128 moko 5788: else
5789: i=0
5790: teststring="ABCD"
5791:
5792: case $build_os in
5793: msdosdjgpp*)
5794: # On DJGPP, this test can blow up pretty badly due to problems in libc
5795: # (any single argument exceeding 2000 bytes causes a buffer overrun
5796: # during glob expansion). Even if it were fixed, the result of this
5797: # check would be larger than it should be.
5798: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5799: ;;
5800:
5801: gnu*)
5802: # Under GNU Hurd, this test is not required because there is
5803: # no limit to the length of command line arguments.
5804: # Libtool will interpret -1 as no limit whatsoever
5805: lt_cv_sys_max_cmd_len=-1;
5806: ;;
5807:
5808: cygwin* | mingw* | cegcc*)
5809: # On Win9x/ME, this test blows up -- it succeeds, but takes
5810: # about 5 minutes as the teststring grows exponentially.
5811: # Worse, since 9x/ME are not pre-emptively multitasking,
5812: # you end up with a "frozen" computer, even though with patience
5813: # the test eventually succeeds (with a max line length of 256k).
5814: # Instead, let's just punt: use the minimum linelength reported by
5815: # all of the supported platforms: 8192 (on NT/2K/XP).
5816: lt_cv_sys_max_cmd_len=8192;
5817: ;;
5818:
5819: mint*)
5820: # On MiNT this can take a long time and run out of memory.
5821: lt_cv_sys_max_cmd_len=8192;
5822: ;;
5823:
5824: amigaos*)
5825: # On AmigaOS with pdksh, this test takes hours, literally.
5826: # So we just punt and use a minimum line length of 8192.
5827: lt_cv_sys_max_cmd_len=8192;
5828: ;;
5829:
5830: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5831: # This has been around since 386BSD, at least. Likely further.
5832: if test -x /sbin/sysctl; then
5833: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5834: elif test -x /usr/sbin/sysctl; then
5835: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5836: else
5837: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5838: fi
5839: # And add a safety zone
5840: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5841: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5842: ;;
5843:
5844: interix*)
5845: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5846: lt_cv_sys_max_cmd_len=196608
5847: ;;
5848:
5849: os2*)
5850: # The test takes a long time on OS/2.
5851: lt_cv_sys_max_cmd_len=8192
5852: ;;
5853:
5854: osf*)
5855: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5856: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5857: # nice to cause kernel panics so lets avoid the loop below.
5858: # First set a reasonable default.
5859: lt_cv_sys_max_cmd_len=16384
5860: #
5861: if test -x /sbin/sysconfig; then
5862: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5863: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5864: esac
5865: fi
5866: ;;
5867: sco3.2v5*)
5868: lt_cv_sys_max_cmd_len=102400
5869: ;;
5870: sysv5* | sco5v6* | sysv4.2uw2*)
5871: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5872: if test -n "$kargmax"; then
5873: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5874: else
5875: lt_cv_sys_max_cmd_len=32768
5876: fi
5877: ;;
5878: *)
5879: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5880: if test -n "$lt_cv_sys_max_cmd_len"; then
5881: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5882: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5883: else
5884: # Make teststring a little bigger before we do anything with it.
5885: # a 1K string should be a reasonable start.
5886: for i in 1 2 3 4 5 6 7 8 ; do
5887: teststring=$teststring$teststring
5888: done
5889: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5890: # If test is not a shell built-in, we'll probably end up computing a
5891: # maximum length that is only half of the actual maximum length, but
5892: # we can't tell.
5893: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5894: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5895: test $i != 17 # 1/2 MB should be enough
5896: do
5897: i=`expr $i + 1`
5898: teststring=$teststring$teststring
5899: done
5900: # Only check the string length outside the loop.
5901: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5902: teststring=
5903: # Add a significant safety factor because C++ compilers can tack on
5904: # massive amounts of additional arguments before passing them to the
5905: # linker. It appears as though 1/2 is a usable value.
5906: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5907: fi
5908: ;;
5909: esac
5910:
5911: fi
5912:
5913: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 5914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5915: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 5916: else
1.150 moko 5917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5918: $as_echo "none" >&6; }
1.128 moko 5919: fi
5920: max_cmd_len=$lt_cv_sys_max_cmd_len
5921:
5922:
5923:
5924:
5925:
5926:
5927: : ${CP="cp -f"}
5928: : ${MV="mv -f"}
5929: : ${RM="rm -f"}
5930:
1.150 moko 5931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5932: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 5933: # Try some XSI features
5934: xsi_shell=no
5935: ( _lt_dummy="a/b/c"
5936: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5937: = c,a/b,b/c, \
5938: && eval 'test $(( 1 + 1 )) -eq 2 \
5939: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5940: && xsi_shell=yes
1.150 moko 5941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5942: $as_echo "$xsi_shell" >&6; }
1.128 moko 5943:
5944:
1.150 moko 5945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5946: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 5947: lt_shell_append=no
5948: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5949: >/dev/null 2>&1 \
5950: && lt_shell_append=yes
1.150 moko 5951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5952: $as_echo "$lt_shell_append" >&6; }
1.128 moko 5953:
5954:
5955: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5956: lt_unset=unset
5957: else
5958: lt_unset=false
5959: fi
5960:
5961:
5962:
5963:
5964:
5965: # test EBCDIC or ASCII
5966: case `echo X|tr X '\101'` in
5967: A) # ASCII based system
5968: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5969: lt_SP2NL='tr \040 \012'
5970: lt_NL2SP='tr \015\012 \040\040'
5971: ;;
5972: *) # EBCDIC based system
5973: lt_SP2NL='tr \100 \n'
5974: lt_NL2SP='tr \r\n \100\100'
5975: ;;
5976: esac
5977:
5978:
5979:
5980:
5981:
5982:
5983:
5984:
5985:
1.150 moko 5986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5987: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5988: if ${lt_cv_to_host_file_cmd+:} false; then :
5989: $as_echo_n "(cached) " >&6
1.128 moko 5990: else
5991: case $host in
5992: *-*-mingw* )
5993: case $build in
5994: *-*-mingw* ) # actually msys
5995: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5996: ;;
5997: *-*-cygwin* )
5998: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5999: ;;
6000: * ) # otherwise, assume *nix
6001: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6002: ;;
6003: esac
6004: ;;
6005: *-*-cygwin* )
6006: case $build in
6007: *-*-mingw* ) # actually msys
6008: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6009: ;;
6010: *-*-cygwin* )
6011: lt_cv_to_host_file_cmd=func_convert_file_noop
6012: ;;
6013: * ) # otherwise, assume *nix
6014: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6015: ;;
6016: esac
6017: ;;
6018: * ) # unhandled hosts (and "normal" native builds)
6019: lt_cv_to_host_file_cmd=func_convert_file_noop
6020: ;;
6021: esac
6022:
6023: fi
6024:
6025: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6027: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6028:
6029:
6030:
6031:
6032:
1.150 moko 6033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6034: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6035: if ${lt_cv_to_tool_file_cmd+:} false; then :
6036: $as_echo_n "(cached) " >&6
1.128 moko 6037: else
6038: #assume ordinary cross tools, or native build.
6039: lt_cv_to_tool_file_cmd=func_convert_file_noop
6040: case $host in
6041: *-*-mingw* )
6042: case $build in
6043: *-*-mingw* ) # actually msys
6044: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6045: ;;
6046: esac
6047: ;;
6048: esac
6049:
6050: fi
6051:
6052: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6054: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6055:
6056:
6057:
6058:
6059:
1.150 moko 6060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6061: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6062: if ${lt_cv_ld_reload_flag+:} false; then :
6063: $as_echo_n "(cached) " >&6
1.128 moko 6064: else
6065: lt_cv_ld_reload_flag='-r'
6066: fi
1.150 moko 6067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6068: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6069: reload_flag=$lt_cv_ld_reload_flag
6070: case $reload_flag in
6071: "" | " "*) ;;
6072: *) reload_flag=" $reload_flag" ;;
6073: esac
6074: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6075: case $host_os in
6076: cygwin* | mingw* | pw32* | cegcc*)
6077: if test "$GCC" != yes; then
6078: reload_cmds=false
6079: fi
6080: ;;
6081: darwin*)
6082: if test "$GCC" = yes; then
6083: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6084: else
6085: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6086: fi
6087: ;;
6088: esac
6089:
6090:
6091:
6092:
6093:
6094:
6095:
6096:
6097:
6098: if test -n "$ac_tool_prefix"; then
6099: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6100: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102: $as_echo_n "checking for $ac_word... " >&6; }
6103: if ${ac_cv_prog_OBJDUMP+:} false; then :
6104: $as_echo_n "(cached) " >&6
1.128 moko 6105: else
6106: if test -n "$OBJDUMP"; then
6107: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6108: else
6109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110: for as_dir in $PATH
6111: do
6112: IFS=$as_save_IFS
6113: test -z "$as_dir" && as_dir=.
1.150 moko 6114: for ac_exec_ext in '' $ac_executable_extensions; do
6115: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6116: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6117: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6118: break 2
6119: fi
6120: done
1.150 moko 6121: done
6122: IFS=$as_save_IFS
1.128 moko 6123:
6124: fi
6125: fi
6126: OBJDUMP=$ac_cv_prog_OBJDUMP
6127: if test -n "$OBJDUMP"; then
1.150 moko 6128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6129: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6130: else
1.150 moko 6131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132: $as_echo "no" >&6; }
1.128 moko 6133: fi
6134:
1.150 moko 6135:
1.128 moko 6136: fi
6137: if test -z "$ac_cv_prog_OBJDUMP"; then
6138: ac_ct_OBJDUMP=$OBJDUMP
6139: # Extract the first word of "objdump", so it can be a program name with args.
6140: set dummy objdump; ac_word=$2
1.150 moko 6141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142: $as_echo_n "checking for $ac_word... " >&6; }
6143: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6144: $as_echo_n "(cached) " >&6
1.128 moko 6145: else
6146: if test -n "$ac_ct_OBJDUMP"; then
6147: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6148: else
6149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150: for as_dir in $PATH
6151: do
6152: IFS=$as_save_IFS
6153: test -z "$as_dir" && as_dir=.
1.150 moko 6154: for ac_exec_ext in '' $ac_executable_extensions; do
6155: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6156: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6157: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6158: break 2
6159: fi
6160: done
1.150 moko 6161: done
6162: IFS=$as_save_IFS
1.128 moko 6163:
6164: fi
6165: fi
6166: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6167: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6168: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6169: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6170: else
1.150 moko 6171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172: $as_echo "no" >&6; }
1.128 moko 6173: fi
6174:
1.150 moko 6175: if test "x$ac_ct_OBJDUMP" = x; then
6176: OBJDUMP="false"
6177: else
6178: case $cross_compiling:$ac_tool_warned in
6179: yes:)
6180: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182: ac_tool_warned=yes ;;
6183: esac
6184: OBJDUMP=$ac_ct_OBJDUMP
6185: fi
1.128 moko 6186: else
6187: OBJDUMP="$ac_cv_prog_OBJDUMP"
6188: fi
6189:
6190: test -z "$OBJDUMP" && OBJDUMP=objdump
6191:
6192:
6193:
6194:
6195:
6196:
1.150 moko 6197: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6198: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6199: if ${lt_cv_deplibs_check_method+:} false; then :
6200: $as_echo_n "(cached) " >&6
1.128 moko 6201: else
6202: lt_cv_file_magic_cmd='$MAGIC_CMD'
6203: lt_cv_file_magic_test_file=
6204: lt_cv_deplibs_check_method='unknown'
6205: # Need to set the preceding variable on all platforms that support
6206: # interlibrary dependencies.
6207: # 'none' -- dependencies not supported.
6208: # `unknown' -- same as none, but documents that we really don't know.
6209: # 'pass_all' -- all dependencies passed with no checks.
6210: # 'test_compile' -- check by making test program.
6211: # 'file_magic [[regex]]' -- check by looking for files in library path
6212: # which responds to the $file_magic_cmd with a given extended regex.
6213: # If you have `file' or equivalent on your system and you're not sure
6214: # whether `pass_all' will *always* work, you probably want this one.
6215:
6216: case $host_os in
6217: aix[4-9]*)
6218: lt_cv_deplibs_check_method=pass_all
6219: ;;
6220:
6221: beos*)
6222: lt_cv_deplibs_check_method=pass_all
6223: ;;
6224:
6225: bsdi[45]*)
6226: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6227: lt_cv_file_magic_cmd='/usr/bin/file -L'
6228: lt_cv_file_magic_test_file=/shlib/libc.so
6229: ;;
6230:
6231: cygwin*)
6232: # func_win32_libid is a shell function defined in ltmain.sh
6233: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6234: lt_cv_file_magic_cmd='func_win32_libid'
6235: ;;
6236:
6237: mingw* | pw32*)
6238: # Base MSYS/MinGW do not provide the 'file' command needed by
6239: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6240: # unless we find 'file', for example because we are cross-compiling.
6241: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6242: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6243: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6244: lt_cv_file_magic_cmd='func_win32_libid'
6245: else
6246: # Keep this pattern in sync with the one in func_win32_libid.
6247: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6248: lt_cv_file_magic_cmd='$OBJDUMP -f'
6249: fi
6250: ;;
6251:
6252: cegcc*)
6253: # use the weaker test based on 'objdump'. See mingw*.
6254: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6255: lt_cv_file_magic_cmd='$OBJDUMP -f'
6256: ;;
6257:
6258: darwin* | rhapsody*)
6259: lt_cv_deplibs_check_method=pass_all
6260: ;;
6261:
6262: freebsd* | dragonfly*)
6263: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264: case $host_cpu in
6265: i*86 )
6266: # Not sure whether the presence of OpenBSD here was a mistake.
6267: # Let's accept both of them until this is cleared up.
6268: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6269: lt_cv_file_magic_cmd=/usr/bin/file
6270: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6271: ;;
6272: esac
6273: else
6274: lt_cv_deplibs_check_method=pass_all
6275: fi
6276: ;;
6277:
6278: gnu*)
6279: lt_cv_deplibs_check_method=pass_all
6280: ;;
6281:
6282: haiku*)
6283: lt_cv_deplibs_check_method=pass_all
6284: ;;
6285:
6286: hpux10.20* | hpux11*)
6287: lt_cv_file_magic_cmd=/usr/bin/file
6288: case $host_cpu in
6289: ia64*)
6290: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6291: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6292: ;;
6293: hppa*64*)
6294: 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]'
6295: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6296: ;;
6297: *)
6298: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6299: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6300: ;;
6301: esac
6302: ;;
6303:
6304: interix[3-9]*)
6305: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6306: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6307: ;;
6308:
6309: irix5* | irix6* | nonstopux*)
6310: case $LD in
6311: *-32|*"-32 ") libmagic=32-bit;;
6312: *-n32|*"-n32 ") libmagic=N32;;
6313: *-64|*"-64 ") libmagic=64-bit;;
6314: *) libmagic=never-match;;
6315: esac
6316: lt_cv_deplibs_check_method=pass_all
6317: ;;
6318:
6319: # This must be glibc/ELF.
6320: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6321: lt_cv_deplibs_check_method=pass_all
6322: ;;
6323:
6324: netbsd*)
6325: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6326: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6327: else
6328: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6329: fi
6330: ;;
6331:
6332: newos6*)
6333: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6334: lt_cv_file_magic_cmd=/usr/bin/file
6335: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6336: ;;
6337:
6338: *nto* | *qnx*)
6339: lt_cv_deplibs_check_method=pass_all
6340: ;;
6341:
6342: openbsd*)
6343: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6344: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6345: else
6346: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6347: fi
6348: ;;
6349:
6350: osf3* | osf4* | osf5*)
6351: lt_cv_deplibs_check_method=pass_all
6352: ;;
6353:
6354: rdos*)
6355: lt_cv_deplibs_check_method=pass_all
6356: ;;
6357:
6358: solaris*)
6359: lt_cv_deplibs_check_method=pass_all
6360: ;;
6361:
6362: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6363: lt_cv_deplibs_check_method=pass_all
6364: ;;
6365:
6366: sysv4 | sysv4.3*)
6367: case $host_vendor in
6368: motorola)
6369: 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]'
6370: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6371: ;;
6372: ncr)
6373: lt_cv_deplibs_check_method=pass_all
6374: ;;
6375: sequent)
6376: lt_cv_file_magic_cmd='/bin/file'
6377: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6378: ;;
6379: sni)
6380: lt_cv_file_magic_cmd='/bin/file'
6381: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6382: lt_cv_file_magic_test_file=/lib/libc.so
6383: ;;
6384: siemens)
6385: lt_cv_deplibs_check_method=pass_all
6386: ;;
6387: pc)
6388: lt_cv_deplibs_check_method=pass_all
6389: ;;
6390: esac
6391: ;;
6392:
6393: tpf*)
6394: lt_cv_deplibs_check_method=pass_all
6395: ;;
6396: esac
6397:
6398: fi
1.150 moko 6399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6400: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6401:
6402: file_magic_glob=
6403: want_nocaseglob=no
6404: if test "$build" = "$host"; then
6405: case $host_os in
6406: mingw* | pw32*)
6407: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6408: want_nocaseglob=yes
6409: else
6410: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6411: fi
6412: ;;
6413: esac
6414: fi
6415:
6416: file_magic_cmd=$lt_cv_file_magic_cmd
6417: deplibs_check_method=$lt_cv_deplibs_check_method
6418: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6419:
6420:
6421:
6422:
6423:
6424:
6425:
6426:
6427:
6428:
6429:
6430:
6431:
6432:
6433:
6434:
6435:
6436:
6437:
6438:
6439:
6440:
6441: if test -n "$ac_tool_prefix"; then
6442: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6443: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445: $as_echo_n "checking for $ac_word... " >&6; }
6446: if ${ac_cv_prog_DLLTOOL+:} false; then :
6447: $as_echo_n "(cached) " >&6
1.128 moko 6448: else
6449: if test -n "$DLLTOOL"; then
6450: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6451: else
6452: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453: for as_dir in $PATH
6454: do
6455: IFS=$as_save_IFS
6456: test -z "$as_dir" && as_dir=.
1.150 moko 6457: for ac_exec_ext in '' $ac_executable_extensions; do
6458: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6459: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6460: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6461: break 2
6462: fi
6463: done
1.150 moko 6464: done
6465: IFS=$as_save_IFS
1.128 moko 6466:
6467: fi
6468: fi
6469: DLLTOOL=$ac_cv_prog_DLLTOOL
6470: if test -n "$DLLTOOL"; then
1.150 moko 6471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6472: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6473: else
1.150 moko 6474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475: $as_echo "no" >&6; }
1.128 moko 6476: fi
6477:
1.150 moko 6478:
1.128 moko 6479: fi
6480: if test -z "$ac_cv_prog_DLLTOOL"; then
6481: ac_ct_DLLTOOL=$DLLTOOL
6482: # Extract the first word of "dlltool", so it can be a program name with args.
6483: set dummy dlltool; ac_word=$2
1.150 moko 6484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485: $as_echo_n "checking for $ac_word... " >&6; }
6486: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6487: $as_echo_n "(cached) " >&6
1.128 moko 6488: else
6489: if test -n "$ac_ct_DLLTOOL"; then
6490: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6491: else
6492: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493: for as_dir in $PATH
6494: do
6495: IFS=$as_save_IFS
6496: test -z "$as_dir" && as_dir=.
1.150 moko 6497: for ac_exec_ext in '' $ac_executable_extensions; do
6498: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6499: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6500: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6501: break 2
6502: fi
6503: done
1.150 moko 6504: done
6505: IFS=$as_save_IFS
1.128 moko 6506:
6507: fi
6508: fi
6509: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6510: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6512: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6513: else
1.150 moko 6514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515: $as_echo "no" >&6; }
1.128 moko 6516: fi
6517:
1.150 moko 6518: if test "x$ac_ct_DLLTOOL" = x; then
6519: DLLTOOL="false"
6520: else
6521: case $cross_compiling:$ac_tool_warned in
6522: yes:)
6523: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525: ac_tool_warned=yes ;;
6526: esac
6527: DLLTOOL=$ac_ct_DLLTOOL
6528: fi
1.128 moko 6529: else
6530: DLLTOOL="$ac_cv_prog_DLLTOOL"
6531: fi
6532:
6533: test -z "$DLLTOOL" && DLLTOOL=dlltool
6534:
6535:
6536:
6537:
6538:
6539:
6540:
1.150 moko 6541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6542: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6543: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6544: $as_echo_n "(cached) " >&6
1.128 moko 6545: else
6546: lt_cv_sharedlib_from_linklib_cmd='unknown'
6547:
6548: case $host_os in
6549: cygwin* | mingw* | pw32* | cegcc*)
6550: # two different shell functions defined in ltmain.sh
6551: # decide which to use based on capabilities of $DLLTOOL
6552: case `$DLLTOOL --help 2>&1` in
6553: *--identify-strict*)
6554: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6555: ;;
6556: *)
6557: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6558: ;;
6559: esac
6560: ;;
6561: *)
6562: # fallback: assume linklib IS sharedlib
6563: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6564: ;;
6565: esac
6566:
6567: fi
1.150 moko 6568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6569: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6570: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6571: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6572:
6573:
6574:
6575:
6576:
6577:
6578:
6579: if test -n "$ac_tool_prefix"; then
6580: for ac_prog in ar
6581: do
6582: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6583: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585: $as_echo_n "checking for $ac_word... " >&6; }
6586: if ${ac_cv_prog_AR+:} false; then :
6587: $as_echo_n "(cached) " >&6
1.128 moko 6588: else
6589: if test -n "$AR"; then
6590: ac_cv_prog_AR="$AR" # Let the user override the test.
6591: else
6592: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593: for as_dir in $PATH
6594: do
6595: IFS=$as_save_IFS
6596: test -z "$as_dir" && as_dir=.
1.150 moko 6597: for ac_exec_ext in '' $ac_executable_extensions; do
6598: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6599: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6600: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6601: break 2
6602: fi
6603: done
1.150 moko 6604: done
6605: IFS=$as_save_IFS
1.128 moko 6606:
6607: fi
6608: fi
6609: AR=$ac_cv_prog_AR
6610: if test -n "$AR"; then
1.150 moko 6611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6612: $as_echo "$AR" >&6; }
1.128 moko 6613: else
1.150 moko 6614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615: $as_echo "no" >&6; }
1.128 moko 6616: fi
6617:
1.150 moko 6618:
1.128 moko 6619: test -n "$AR" && break
6620: done
6621: fi
6622: if test -z "$AR"; then
6623: ac_ct_AR=$AR
6624: for ac_prog in ar
6625: do
6626: # Extract the first word of "$ac_prog", so it can be a program name with args.
6627: set dummy $ac_prog; ac_word=$2
1.150 moko 6628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629: $as_echo_n "checking for $ac_word... " >&6; }
6630: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6631: $as_echo_n "(cached) " >&6
1.128 moko 6632: else
6633: if test -n "$ac_ct_AR"; then
6634: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6635: else
6636: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637: for as_dir in $PATH
6638: do
6639: IFS=$as_save_IFS
6640: test -z "$as_dir" && as_dir=.
1.150 moko 6641: for ac_exec_ext in '' $ac_executable_extensions; do
6642: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6643: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 6644: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6645: break 2
6646: fi
6647: done
1.150 moko 6648: done
6649: IFS=$as_save_IFS
1.128 moko 6650:
6651: fi
6652: fi
6653: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6654: if test -n "$ac_ct_AR"; then
1.150 moko 6655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6656: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 6657: else
1.150 moko 6658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659: $as_echo "no" >&6; }
1.128 moko 6660: fi
6661:
1.150 moko 6662:
1.128 moko 6663: test -n "$ac_ct_AR" && break
6664: done
6665:
1.150 moko 6666: if test "x$ac_ct_AR" = x; then
6667: AR="false"
6668: else
6669: case $cross_compiling:$ac_tool_warned in
6670: yes:)
6671: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673: ac_tool_warned=yes ;;
6674: esac
6675: AR=$ac_ct_AR
6676: fi
1.128 moko 6677: fi
6678:
6679: : ${AR=ar}
6680: : ${AR_FLAGS=cru}
6681:
6682:
6683:
6684:
6685:
6686:
6687:
6688:
6689:
6690:
6691:
1.150 moko 6692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6693: $as_echo_n "checking for archiver @FILE support... " >&6; }
6694: if ${lt_cv_ar_at_file+:} false; then :
6695: $as_echo_n "(cached) " >&6
1.128 moko 6696: else
6697: lt_cv_ar_at_file=no
1.150 moko 6698: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 6699: /* end confdefs.h. */
6700:
6701: int
6702: main ()
6703: {
6704:
6705: ;
6706: return 0;
6707: }
6708: _ACEOF
1.150 moko 6709: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 6710: echo conftest.$ac_objext > conftest.lst
6711: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 6712: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 6713: (eval $lt_ar_try) 2>&5
6714: ac_status=$?
1.150 moko 6715: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6716: test $ac_status = 0; }
1.128 moko 6717: if test "$ac_status" -eq 0; then
6718: # Ensure the archiver fails upon bogus file names.
6719: rm -f conftest.$ac_objext libconftest.a
1.150 moko 6720: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 6721: (eval $lt_ar_try) 2>&5
6722: ac_status=$?
1.150 moko 6723: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724: test $ac_status = 0; }
1.128 moko 6725: if test "$ac_status" -ne 0; then
6726: lt_cv_ar_at_file=@
6727: fi
6728: fi
6729: rm -f conftest.* libconftest.a
6730:
6731: fi
1.150 moko 6732: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 6733:
6734: fi
1.150 moko 6735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6736: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 6737:
6738: if test "x$lt_cv_ar_at_file" = xno; then
6739: archiver_list_spec=
6740: else
6741: archiver_list_spec=$lt_cv_ar_at_file
6742: fi
6743:
6744:
6745:
6746:
6747:
6748:
6749:
6750: if test -n "$ac_tool_prefix"; then
6751: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6752: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 6753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754: $as_echo_n "checking for $ac_word... " >&6; }
6755: if ${ac_cv_prog_STRIP+:} false; then :
6756: $as_echo_n "(cached) " >&6
1.128 moko 6757: else
6758: if test -n "$STRIP"; then
6759: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6760: else
6761: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762: for as_dir in $PATH
6763: do
6764: IFS=$as_save_IFS
6765: test -z "$as_dir" && as_dir=.
1.150 moko 6766: for ac_exec_ext in '' $ac_executable_extensions; do
6767: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6768: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 6769: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6770: break 2
6771: fi
6772: done
1.150 moko 6773: done
6774: IFS=$as_save_IFS
1.128 moko 6775:
6776: fi
6777: fi
6778: STRIP=$ac_cv_prog_STRIP
6779: if test -n "$STRIP"; then
1.150 moko 6780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6781: $as_echo "$STRIP" >&6; }
1.128 moko 6782: else
1.150 moko 6783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784: $as_echo "no" >&6; }
1.128 moko 6785: fi
6786:
1.150 moko 6787:
1.128 moko 6788: fi
6789: if test -z "$ac_cv_prog_STRIP"; then
6790: ac_ct_STRIP=$STRIP
6791: # Extract the first word of "strip", so it can be a program name with args.
6792: set dummy strip; ac_word=$2
1.150 moko 6793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794: $as_echo_n "checking for $ac_word... " >&6; }
6795: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6796: $as_echo_n "(cached) " >&6
1.128 moko 6797: else
6798: if test -n "$ac_ct_STRIP"; then
6799: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6800: else
6801: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802: for as_dir in $PATH
6803: do
6804: IFS=$as_save_IFS
6805: test -z "$as_dir" && as_dir=.
1.150 moko 6806: for ac_exec_ext in '' $ac_executable_extensions; do
6807: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6808: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 6809: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6810: break 2
6811: fi
6812: done
1.150 moko 6813: done
6814: IFS=$as_save_IFS
1.128 moko 6815:
6816: fi
6817: fi
6818: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6819: if test -n "$ac_ct_STRIP"; then
1.150 moko 6820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6821: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 6822: else
1.150 moko 6823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824: $as_echo "no" >&6; }
1.128 moko 6825: fi
6826:
1.150 moko 6827: if test "x$ac_ct_STRIP" = x; then
6828: STRIP=":"
6829: else
6830: case $cross_compiling:$ac_tool_warned in
6831: yes:)
6832: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834: ac_tool_warned=yes ;;
6835: esac
6836: STRIP=$ac_ct_STRIP
6837: fi
1.128 moko 6838: else
6839: STRIP="$ac_cv_prog_STRIP"
6840: fi
6841:
6842: test -z "$STRIP" && STRIP=:
6843:
6844:
6845:
6846:
6847:
6848:
6849: if test -n "$ac_tool_prefix"; then
6850: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6851: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 6852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853: $as_echo_n "checking for $ac_word... " >&6; }
6854: if ${ac_cv_prog_RANLIB+:} false; then :
6855: $as_echo_n "(cached) " >&6
1.128 moko 6856: else
6857: if test -n "$RANLIB"; then
6858: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6859: else
6860: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861: for as_dir in $PATH
6862: do
6863: IFS=$as_save_IFS
6864: test -z "$as_dir" && as_dir=.
1.150 moko 6865: for ac_exec_ext in '' $ac_executable_extensions; do
6866: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6867: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 6868: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6869: break 2
6870: fi
6871: done
1.150 moko 6872: done
6873: IFS=$as_save_IFS
1.128 moko 6874:
6875: fi
6876: fi
6877: RANLIB=$ac_cv_prog_RANLIB
6878: if test -n "$RANLIB"; then
1.150 moko 6879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6880: $as_echo "$RANLIB" >&6; }
1.128 moko 6881: else
1.150 moko 6882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883: $as_echo "no" >&6; }
1.128 moko 6884: fi
6885:
1.150 moko 6886:
1.128 moko 6887: fi
6888: if test -z "$ac_cv_prog_RANLIB"; then
6889: ac_ct_RANLIB=$RANLIB
6890: # Extract the first word of "ranlib", so it can be a program name with args.
6891: set dummy ranlib; ac_word=$2
1.150 moko 6892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893: $as_echo_n "checking for $ac_word... " >&6; }
6894: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6895: $as_echo_n "(cached) " >&6
1.128 moko 6896: else
6897: if test -n "$ac_ct_RANLIB"; then
6898: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6899: else
6900: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901: for as_dir in $PATH
6902: do
6903: IFS=$as_save_IFS
6904: test -z "$as_dir" && as_dir=.
1.150 moko 6905: for ac_exec_ext in '' $ac_executable_extensions; do
6906: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 6907: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 6908: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6909: break 2
6910: fi
6911: done
1.150 moko 6912: done
6913: IFS=$as_save_IFS
1.128 moko 6914:
6915: fi
6916: fi
6917: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6918: if test -n "$ac_ct_RANLIB"; then
1.150 moko 6919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6920: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 6921: else
1.150 moko 6922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923: $as_echo "no" >&6; }
1.128 moko 6924: fi
6925:
1.150 moko 6926: if test "x$ac_ct_RANLIB" = x; then
6927: RANLIB=":"
6928: else
6929: case $cross_compiling:$ac_tool_warned in
6930: yes:)
6931: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933: ac_tool_warned=yes ;;
6934: esac
6935: RANLIB=$ac_ct_RANLIB
6936: fi
1.128 moko 6937: else
6938: RANLIB="$ac_cv_prog_RANLIB"
6939: fi
6940:
6941: test -z "$RANLIB" && RANLIB=:
6942:
6943:
6944:
6945:
6946:
6947:
6948: # Determine commands to create old-style static archives.
6949: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6950: old_postinstall_cmds='chmod 644 $oldlib'
6951: old_postuninstall_cmds=
6952:
6953: if test -n "$RANLIB"; then
6954: case $host_os in
6955: openbsd*)
6956: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6957: ;;
6958: *)
6959: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6960: ;;
6961: esac
6962: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6963: fi
6964:
6965: case $host_os in
6966: darwin*)
6967: lock_old_archive_extraction=yes ;;
6968: *)
6969: lock_old_archive_extraction=no ;;
6970: esac
6971:
6972:
6973:
6974:
6975:
6976:
6977:
6978:
6979:
6980:
6981:
6982:
6983:
6984:
6985:
6986:
6987:
6988:
6989:
6990:
6991:
6992:
6993:
6994:
6995:
6996:
6997:
6998:
6999:
7000:
7001:
7002:
7003:
7004:
7005:
7006:
7007:
7008:
7009:
7010: # If no C compiler was specified, use CC.
7011: LTCC=${LTCC-"$CC"}
7012:
7013: # If no C compiler flags were specified, use CFLAGS.
7014: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7015:
7016: # Allow CC to be a program name with arguments.
7017: compiler=$CC
7018:
7019:
7020: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7021: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7022: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7023: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7024: $as_echo_n "(cached) " >&6
1.128 moko 7025: else
7026:
7027: # These are sane defaults that work on at least a few old systems.
7028: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7029:
7030: # Character class describing NM global symbol codes.
7031: symcode='[BCDEGRST]'
7032:
7033: # Regexp to match symbols that can be accessed directly from C.
7034: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7035:
7036: # Define system-specific variables.
7037: case $host_os in
7038: aix*)
7039: symcode='[BCDT]'
7040: ;;
7041: cygwin* | mingw* | pw32* | cegcc*)
7042: symcode='[ABCDGISTW]'
7043: ;;
7044: hpux*)
7045: if test "$host_cpu" = ia64; then
7046: symcode='[ABCDEGRST]'
7047: fi
7048: ;;
7049: irix* | nonstopux*)
7050: symcode='[BCDEGRST]'
7051: ;;
7052: osf*)
7053: symcode='[BCDEGQRST]'
7054: ;;
7055: solaris*)
7056: symcode='[BDRT]'
7057: ;;
7058: sco3.2v5*)
7059: symcode='[DT]'
7060: ;;
7061: sysv4.2uw2*)
7062: symcode='[DT]'
7063: ;;
7064: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7065: symcode='[ABDT]'
7066: ;;
7067: sysv4)
7068: symcode='[DFNSTU]'
7069: ;;
7070: esac
7071:
7072: # If we're using GNU nm, then use its standard symbol codes.
7073: case `$NM -V 2>&1` in
7074: *GNU* | *'with BFD'*)
7075: symcode='[ABCDGIRSTW]' ;;
7076: esac
7077:
7078: # Transform an extracted symbol line into a proper C declaration.
7079: # Some systems (esp. on ia64) link data and code symbols differently,
7080: # so use this general approach.
7081: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7082:
7083: # Transform an extracted symbol line into symbol name and symbol address
7084: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7085: 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'"
7086:
7087: # Handle CRLF in mingw tool chain
7088: opt_cr=
7089: case $build_os in
7090: mingw*)
7091: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7092: ;;
7093: esac
7094:
7095: # Try without a prefix underscore, then with it.
7096: for ac_symprfx in "" "_"; do
7097:
7098: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7099: symxfrm="\\1 $ac_symprfx\\2 \\2"
7100:
7101: # Write the raw and C identifiers.
7102: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7103: # Fake it for dumpbin and say T for any non-static function
7104: # and D for any global variable.
7105: # Also find C++ and __fastcall symbols from MSVC++,
7106: # which start with @ or ?.
7107: lt_cv_sys_global_symbol_pipe="$AWK '"\
7108: " {last_section=section; section=\$ 3};"\
7109: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7110: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7111: " \$ 0!~/External *\|/{next};"\
7112: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7113: " {if(hide[section]) next};"\
7114: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7115: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7116: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7117: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7118: " ' prfx=^$ac_symprfx"
7119: else
7120: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7121: fi
7122: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7123:
7124: # Check to see that the pipe works correctly.
7125: pipe_works=no
7126:
7127: rm -f conftest*
7128: cat > conftest.$ac_ext <<_LT_EOF
7129: #ifdef __cplusplus
7130: extern "C" {
7131: #endif
7132: char nm_test_var;
7133: void nm_test_func(void);
7134: void nm_test_func(void){}
7135: #ifdef __cplusplus
7136: }
7137: #endif
7138: int main(){nm_test_var='a';nm_test_func();return(0);}
7139: _LT_EOF
7140:
1.150 moko 7141: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7142: (eval $ac_compile) 2>&5
7143: ac_status=$?
1.150 moko 7144: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145: test $ac_status = 0; }; then
1.128 moko 7146: # Now try to grab the symbols.
7147: nlist=conftest.nm
1.150 moko 7148: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7149: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7150: ac_status=$?
1.150 moko 7151: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7153: # Try sorting and uniquifying the output.
7154: if sort "$nlist" | uniq > "$nlist"T; then
7155: mv -f "$nlist"T "$nlist"
7156: else
7157: rm -f "$nlist"T
7158: fi
7159:
7160: # Make sure that we snagged all the symbols we need.
7161: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7162: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7163: cat <<_LT_EOF > conftest.$ac_ext
7164: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7165: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7166: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7167: relocations are performed -- see ld's documentation on pseudo-relocs. */
7168: # define LT_DLSYM_CONST
7169: #elif defined(__osf__)
7170: /* This system does not cope well with relocations in const data. */
7171: # define LT_DLSYM_CONST
7172: #else
7173: # define LT_DLSYM_CONST const
7174: #endif
7175:
7176: #ifdef __cplusplus
7177: extern "C" {
7178: #endif
7179:
7180: _LT_EOF
7181: # Now generate the symbol file.
7182: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7183:
7184: cat <<_LT_EOF >> conftest.$ac_ext
7185:
7186: /* The mapping between symbol names and symbols. */
7187: LT_DLSYM_CONST struct {
7188: const char *name;
7189: void *address;
7190: }
7191: lt__PROGRAM__LTX_preloaded_symbols[] =
7192: {
7193: { "@PROGRAM@", (void *) 0 },
7194: _LT_EOF
7195: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7196: cat <<\_LT_EOF >> conftest.$ac_ext
7197: {0, (void *) 0}
7198: };
7199:
7200: /* This works around a problem in FreeBSD linker */
7201: #ifdef FREEBSD_WORKAROUND
7202: static const void *lt_preloaded_setup() {
7203: return lt__PROGRAM__LTX_preloaded_symbols;
7204: }
7205: #endif
7206:
7207: #ifdef __cplusplus
7208: }
7209: #endif
7210: _LT_EOF
7211: # Now try linking the two files.
7212: mv conftest.$ac_objext conftstm.$ac_objext
7213: lt_globsym_save_LIBS=$LIBS
7214: lt_globsym_save_CFLAGS=$CFLAGS
7215: LIBS="conftstm.$ac_objext"
7216: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7217: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7218: (eval $ac_link) 2>&5
7219: ac_status=$?
1.150 moko 7220: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7222: pipe_works=yes
7223: fi
7224: LIBS=$lt_globsym_save_LIBS
7225: CFLAGS=$lt_globsym_save_CFLAGS
7226: else
7227: echo "cannot find nm_test_func in $nlist" >&5
7228: fi
7229: else
7230: echo "cannot find nm_test_var in $nlist" >&5
7231: fi
7232: else
7233: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7234: fi
7235: else
7236: echo "$progname: failed program was:" >&5
7237: cat conftest.$ac_ext >&5
7238: fi
7239: rm -rf conftest* conftst*
7240:
7241: # Do not use the global_symbol_pipe unless it works.
7242: if test "$pipe_works" = yes; then
7243: break
7244: else
7245: lt_cv_sys_global_symbol_pipe=
7246: fi
7247: done
7248:
7249: fi
7250:
7251: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7252: lt_cv_sys_global_symbol_to_cdecl=
7253: fi
7254: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7256: $as_echo "failed" >&6; }
1.128 moko 7257: else
1.150 moko 7258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7259: $as_echo "ok" >&6; }
1.128 moko 7260: fi
7261:
7262: # Response file support.
7263: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7264: nm_file_list_spec='@'
7265: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7266: nm_file_list_spec='@'
7267: fi
7268:
7269:
7270:
7271:
7272:
7273:
7274:
7275:
7276:
7277:
7278:
7279:
7280:
7281:
7282:
7283:
7284:
7285:
7286:
7287:
7288:
7289:
7290:
7291:
7292:
7293:
7294:
1.150 moko 7295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7296: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7297:
1.150 moko 7298: # Check whether --with-sysroot was given.
7299: if test "${with_sysroot+set}" = set; then :
7300: withval=$with_sysroot;
1.128 moko 7301: else
7302: with_sysroot=no
1.150 moko 7303: fi
7304:
1.128 moko 7305:
7306: lt_sysroot=
7307: case ${with_sysroot} in #(
7308: yes)
7309: if test "$GCC" = yes; then
7310: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7311: fi
7312: ;; #(
7313: /*)
7314: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7315: ;; #(
7316: no|'')
7317: ;; #(
7318: *)
1.150 moko 7319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7320: $as_echo "${with_sysroot}" >&6; }
7321: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7322: ;;
7323: esac
7324:
1.150 moko 7325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7326: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7327:
7328:
7329:
7330:
7331:
1.150 moko 7332: # Check whether --enable-libtool-lock was given.
7333: if test "${enable_libtool_lock+set}" = set; then :
7334: enableval=$enable_libtool_lock;
7335: fi
1.128 moko 7336:
7337: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7338:
7339: # Some flags need to be propagated to the compiler or linker for good
7340: # libtool support.
7341: case $host in
7342: ia64-*-hpux*)
7343: # Find out which ABI we are using.
7344: echo 'int i;' > conftest.$ac_ext
1.150 moko 7345: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7346: (eval $ac_compile) 2>&5
7347: ac_status=$?
1.150 moko 7348: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349: test $ac_status = 0; }; then
1.128 moko 7350: case `/usr/bin/file conftest.$ac_objext` in
7351: *ELF-32*)
7352: HPUX_IA64_MODE="32"
7353: ;;
7354: *ELF-64*)
7355: HPUX_IA64_MODE="64"
7356: ;;
7357: esac
7358: fi
7359: rm -rf conftest*
7360: ;;
7361: *-*-irix6*)
7362: # Find out which ABI we are using.
7363: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7364: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7365: (eval $ac_compile) 2>&5
7366: ac_status=$?
1.150 moko 7367: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368: test $ac_status = 0; }; then
1.128 moko 7369: if test "$lt_cv_prog_gnu_ld" = yes; then
7370: case `/usr/bin/file conftest.$ac_objext` in
7371: *32-bit*)
7372: LD="${LD-ld} -melf32bsmip"
7373: ;;
7374: *N32*)
7375: LD="${LD-ld} -melf32bmipn32"
7376: ;;
7377: *64-bit*)
7378: LD="${LD-ld} -melf64bmip"
7379: ;;
7380: esac
7381: else
7382: case `/usr/bin/file conftest.$ac_objext` in
7383: *32-bit*)
7384: LD="${LD-ld} -32"
7385: ;;
7386: *N32*)
7387: LD="${LD-ld} -n32"
7388: ;;
7389: *64-bit*)
7390: LD="${LD-ld} -64"
7391: ;;
7392: esac
7393: fi
7394: fi
7395: rm -rf conftest*
7396: ;;
7397:
7398: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7399: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7400: # Find out which ABI we are using.
7401: echo 'int i;' > conftest.$ac_ext
1.150 moko 7402: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7403: (eval $ac_compile) 2>&5
7404: ac_status=$?
1.150 moko 7405: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406: test $ac_status = 0; }; then
1.128 moko 7407: case `/usr/bin/file conftest.o` in
7408: *32-bit*)
7409: case $host in
7410: x86_64-*kfreebsd*-gnu)
7411: LD="${LD-ld} -m elf_i386_fbsd"
7412: ;;
7413: x86_64-*linux*)
7414: LD="${LD-ld} -m elf_i386"
7415: ;;
7416: ppc64-*linux*|powerpc64-*linux*)
7417: LD="${LD-ld} -m elf32ppclinux"
7418: ;;
7419: s390x-*linux*)
7420: LD="${LD-ld} -m elf_s390"
7421: ;;
7422: sparc64-*linux*)
7423: LD="${LD-ld} -m elf32_sparc"
7424: ;;
7425: esac
7426: ;;
7427: *64-bit*)
7428: case $host in
7429: x86_64-*kfreebsd*-gnu)
7430: LD="${LD-ld} -m elf_x86_64_fbsd"
7431: ;;
7432: x86_64-*linux*)
7433: LD="${LD-ld} -m elf_x86_64"
7434: ;;
7435: ppc*-*linux*|powerpc*-*linux*)
7436: LD="${LD-ld} -m elf64ppc"
7437: ;;
7438: s390*-*linux*|s390*-*tpf*)
7439: LD="${LD-ld} -m elf64_s390"
7440: ;;
7441: sparc*-*linux*)
7442: LD="${LD-ld} -m elf64_sparc"
7443: ;;
7444: esac
7445: ;;
7446: esac
7447: fi
7448: rm -rf conftest*
7449: ;;
7450:
7451: *-*-sco3.2v5*)
7452: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7453: SAVE_CFLAGS="$CFLAGS"
7454: CFLAGS="$CFLAGS -belf"
1.150 moko 7455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7456: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7457: if ${lt_cv_cc_needs_belf+:} false; then :
7458: $as_echo_n "(cached) " >&6
1.128 moko 7459: else
7460: ac_ext=c
7461: ac_cpp='$CPP $CPPFLAGS'
7462: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7465:
1.150 moko 7466: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7467: /* end confdefs.h. */
7468:
7469: int
7470: main ()
7471: {
7472:
7473: ;
7474: return 0;
7475: }
7476: _ACEOF
1.150 moko 7477: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7478: lt_cv_cc_needs_belf=yes
7479: else
1.150 moko 7480: lt_cv_cc_needs_belf=no
1.128 moko 7481: fi
1.150 moko 7482: rm -f core conftest.err conftest.$ac_objext \
7483: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7484: ac_ext=c
7485: ac_cpp='$CPP $CPPFLAGS'
7486: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489:
7490: fi
1.150 moko 7491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7492: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7493: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7494: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7495: CFLAGS="$SAVE_CFLAGS"
7496: fi
7497: ;;
7498: *-*solaris*)
7499: # Find out which ABI we are using.
7500: echo 'int i;' > conftest.$ac_ext
1.150 moko 7501: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7502: (eval $ac_compile) 2>&5
7503: ac_status=$?
1.150 moko 7504: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505: test $ac_status = 0; }; then
1.128 moko 7506: case `/usr/bin/file conftest.o` in
7507: *64-bit*)
7508: case $lt_cv_prog_gnu_ld in
7509: yes*)
7510: case $host in
7511: i?86-*-solaris*)
7512: LD="${LD-ld} -m elf_x86_64"
7513: ;;
7514: sparc*-*-solaris*)
7515: LD="${LD-ld} -m elf64_sparc"
7516: ;;
7517: esac
7518: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7519: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7520: LD="${LD-ld}_sol2"
7521: fi
7522: ;;
7523: *)
7524: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7525: LD="${LD-ld} -64"
7526: fi
7527: ;;
7528: esac
7529: ;;
7530: esac
7531: fi
7532: rm -rf conftest*
7533: ;;
7534: esac
7535:
7536: need_locks="$enable_libtool_lock"
7537:
7538: if test -n "$ac_tool_prefix"; then
7539: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7540: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542: $as_echo_n "checking for $ac_word... " >&6; }
7543: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7544: $as_echo_n "(cached) " >&6
1.128 moko 7545: else
7546: if test -n "$MANIFEST_TOOL"; then
7547: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7548: else
7549: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550: for as_dir in $PATH
7551: do
7552: IFS=$as_save_IFS
7553: test -z "$as_dir" && as_dir=.
1.150 moko 7554: for ac_exec_ext in '' $ac_executable_extensions; do
7555: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7556: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7557: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7558: break 2
7559: fi
7560: done
1.150 moko 7561: done
7562: IFS=$as_save_IFS
1.128 moko 7563:
7564: fi
7565: fi
7566: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7567: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7569: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7570: else
1.150 moko 7571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572: $as_echo "no" >&6; }
1.128 moko 7573: fi
7574:
1.150 moko 7575:
1.128 moko 7576: fi
7577: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7578: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7579: # Extract the first word of "mt", so it can be a program name with args.
7580: set dummy mt; ac_word=$2
1.150 moko 7581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582: $as_echo_n "checking for $ac_word... " >&6; }
7583: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7584: $as_echo_n "(cached) " >&6
1.128 moko 7585: else
7586: if test -n "$ac_ct_MANIFEST_TOOL"; then
7587: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7588: else
7589: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590: for as_dir in $PATH
7591: do
7592: IFS=$as_save_IFS
7593: test -z "$as_dir" && as_dir=.
1.150 moko 7594: for ac_exec_ext in '' $ac_executable_extensions; do
7595: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7596: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7597: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7598: break 2
7599: fi
7600: done
1.150 moko 7601: done
7602: IFS=$as_save_IFS
1.128 moko 7603:
7604: fi
7605: fi
7606: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7607: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7609: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7610: else
1.150 moko 7611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612: $as_echo "no" >&6; }
1.128 moko 7613: fi
7614:
1.150 moko 7615: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7616: MANIFEST_TOOL=":"
7617: else
7618: case $cross_compiling:$ac_tool_warned in
7619: yes:)
7620: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622: ac_tool_warned=yes ;;
7623: esac
7624: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7625: fi
1.128 moko 7626: else
7627: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7628: fi
7629:
7630: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7631: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7632: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7633: if ${lt_cv_path_mainfest_tool+:} false; then :
7634: $as_echo_n "(cached) " >&6
1.128 moko 7635: else
7636: lt_cv_path_mainfest_tool=no
7637: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7638: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7639: cat conftest.err >&5
7640: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7641: lt_cv_path_mainfest_tool=yes
7642: fi
7643: rm -f conftest*
7644: fi
1.150 moko 7645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7646: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 7647: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7648: MANIFEST_TOOL=:
7649: fi
7650:
7651:
7652:
7653:
7654:
7655:
7656: case $host_os in
7657: rhapsody* | darwin*)
7658: if test -n "$ac_tool_prefix"; then
7659: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7660: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 7661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662: $as_echo_n "checking for $ac_word... " >&6; }
7663: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7664: $as_echo_n "(cached) " >&6
1.128 moko 7665: else
7666: if test -n "$DSYMUTIL"; then
7667: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7668: else
7669: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670: for as_dir in $PATH
7671: do
7672: IFS=$as_save_IFS
7673: test -z "$as_dir" && as_dir=.
1.150 moko 7674: for ac_exec_ext in '' $ac_executable_extensions; do
7675: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7676: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 7677: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7678: break 2
7679: fi
7680: done
1.150 moko 7681: done
7682: IFS=$as_save_IFS
1.128 moko 7683:
7684: fi
7685: fi
7686: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7687: if test -n "$DSYMUTIL"; then
1.150 moko 7688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7689: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 7690: else
1.150 moko 7691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692: $as_echo "no" >&6; }
1.128 moko 7693: fi
7694:
1.150 moko 7695:
1.128 moko 7696: fi
7697: if test -z "$ac_cv_prog_DSYMUTIL"; then
7698: ac_ct_DSYMUTIL=$DSYMUTIL
7699: # Extract the first word of "dsymutil", so it can be a program name with args.
7700: set dummy dsymutil; ac_word=$2
1.150 moko 7701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702: $as_echo_n "checking for $ac_word... " >&6; }
7703: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7704: $as_echo_n "(cached) " >&6
1.128 moko 7705: else
7706: if test -n "$ac_ct_DSYMUTIL"; then
7707: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7708: else
7709: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710: for as_dir in $PATH
7711: do
7712: IFS=$as_save_IFS
7713: test -z "$as_dir" && as_dir=.
1.150 moko 7714: for ac_exec_ext in '' $ac_executable_extensions; do
7715: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7716: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 7717: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7718: break 2
7719: fi
7720: done
1.150 moko 7721: done
7722: IFS=$as_save_IFS
1.128 moko 7723:
7724: fi
7725: fi
7726: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7727: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 7728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7729: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 7730: else
1.150 moko 7731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732: $as_echo "no" >&6; }
1.128 moko 7733: fi
7734:
1.150 moko 7735: if test "x$ac_ct_DSYMUTIL" = x; then
7736: DSYMUTIL=":"
7737: else
7738: case $cross_compiling:$ac_tool_warned in
7739: yes:)
7740: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7741: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7742: ac_tool_warned=yes ;;
7743: esac
7744: DSYMUTIL=$ac_ct_DSYMUTIL
7745: fi
1.128 moko 7746: else
7747: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7748: fi
7749:
7750: if test -n "$ac_tool_prefix"; then
7751: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7752: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 7753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754: $as_echo_n "checking for $ac_word... " >&6; }
7755: if ${ac_cv_prog_NMEDIT+:} false; then :
7756: $as_echo_n "(cached) " >&6
1.128 moko 7757: else
7758: if test -n "$NMEDIT"; then
7759: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7760: else
7761: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762: for as_dir in $PATH
7763: do
7764: IFS=$as_save_IFS
7765: test -z "$as_dir" && as_dir=.
1.150 moko 7766: for ac_exec_ext in '' $ac_executable_extensions; do
7767: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7768: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 7769: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7770: break 2
7771: fi
7772: done
1.150 moko 7773: done
7774: IFS=$as_save_IFS
1.128 moko 7775:
7776: fi
7777: fi
7778: NMEDIT=$ac_cv_prog_NMEDIT
7779: if test -n "$NMEDIT"; then
1.150 moko 7780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7781: $as_echo "$NMEDIT" >&6; }
1.128 moko 7782: else
1.150 moko 7783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784: $as_echo "no" >&6; }
1.128 moko 7785: fi
7786:
1.150 moko 7787:
1.128 moko 7788: fi
7789: if test -z "$ac_cv_prog_NMEDIT"; then
7790: ac_ct_NMEDIT=$NMEDIT
7791: # Extract the first word of "nmedit", so it can be a program name with args.
7792: set dummy nmedit; ac_word=$2
1.150 moko 7793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794: $as_echo_n "checking for $ac_word... " >&6; }
7795: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7796: $as_echo_n "(cached) " >&6
1.128 moko 7797: else
7798: if test -n "$ac_ct_NMEDIT"; then
7799: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7800: else
7801: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802: for as_dir in $PATH
7803: do
7804: IFS=$as_save_IFS
7805: test -z "$as_dir" && as_dir=.
1.150 moko 7806: for ac_exec_ext in '' $ac_executable_extensions; do
7807: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7808: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 7809: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7810: break 2
7811: fi
7812: done
1.150 moko 7813: done
7814: IFS=$as_save_IFS
1.128 moko 7815:
7816: fi
7817: fi
7818: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7819: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 7820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7821: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 7822: else
1.150 moko 7823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824: $as_echo "no" >&6; }
1.128 moko 7825: fi
7826:
1.150 moko 7827: if test "x$ac_ct_NMEDIT" = x; then
7828: NMEDIT=":"
7829: else
7830: case $cross_compiling:$ac_tool_warned in
7831: yes:)
7832: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834: ac_tool_warned=yes ;;
7835: esac
7836: NMEDIT=$ac_ct_NMEDIT
7837: fi
1.128 moko 7838: else
7839: NMEDIT="$ac_cv_prog_NMEDIT"
7840: fi
7841:
7842: if test -n "$ac_tool_prefix"; then
7843: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7844: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 7845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846: $as_echo_n "checking for $ac_word... " >&6; }
7847: if ${ac_cv_prog_LIPO+:} false; then :
7848: $as_echo_n "(cached) " >&6
1.128 moko 7849: else
7850: if test -n "$LIPO"; then
7851: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7852: else
7853: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854: for as_dir in $PATH
7855: do
7856: IFS=$as_save_IFS
7857: test -z "$as_dir" && as_dir=.
1.150 moko 7858: for ac_exec_ext in '' $ac_executable_extensions; do
7859: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7860: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 7861: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7862: break 2
7863: fi
7864: done
1.150 moko 7865: done
7866: IFS=$as_save_IFS
1.128 moko 7867:
7868: fi
7869: fi
7870: LIPO=$ac_cv_prog_LIPO
7871: if test -n "$LIPO"; then
1.150 moko 7872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7873: $as_echo "$LIPO" >&6; }
1.128 moko 7874: else
1.150 moko 7875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876: $as_echo "no" >&6; }
1.128 moko 7877: fi
7878:
1.150 moko 7879:
1.128 moko 7880: fi
7881: if test -z "$ac_cv_prog_LIPO"; then
7882: ac_ct_LIPO=$LIPO
7883: # Extract the first word of "lipo", so it can be a program name with args.
7884: set dummy lipo; ac_word=$2
1.150 moko 7885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886: $as_echo_n "checking for $ac_word... " >&6; }
7887: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7888: $as_echo_n "(cached) " >&6
1.128 moko 7889: else
7890: if test -n "$ac_ct_LIPO"; then
7891: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7892: else
7893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894: for as_dir in $PATH
7895: do
7896: IFS=$as_save_IFS
7897: test -z "$as_dir" && as_dir=.
1.150 moko 7898: for ac_exec_ext in '' $ac_executable_extensions; do
7899: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7900: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 7901: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7902: break 2
7903: fi
7904: done
1.150 moko 7905: done
7906: IFS=$as_save_IFS
1.128 moko 7907:
7908: fi
7909: fi
7910: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7911: if test -n "$ac_ct_LIPO"; then
1.150 moko 7912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7913: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 7914: else
1.150 moko 7915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916: $as_echo "no" >&6; }
1.128 moko 7917: fi
7918:
1.150 moko 7919: if test "x$ac_ct_LIPO" = x; then
7920: LIPO=":"
7921: else
7922: case $cross_compiling:$ac_tool_warned in
7923: yes:)
7924: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7925: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7926: ac_tool_warned=yes ;;
7927: esac
7928: LIPO=$ac_ct_LIPO
7929: fi
1.128 moko 7930: else
7931: LIPO="$ac_cv_prog_LIPO"
7932: fi
7933:
7934: if test -n "$ac_tool_prefix"; then
7935: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7936: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 7937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938: $as_echo_n "checking for $ac_word... " >&6; }
7939: if ${ac_cv_prog_OTOOL+:} false; then :
7940: $as_echo_n "(cached) " >&6
1.128 moko 7941: else
7942: if test -n "$OTOOL"; then
7943: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7944: else
7945: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946: for as_dir in $PATH
7947: do
7948: IFS=$as_save_IFS
7949: test -z "$as_dir" && as_dir=.
1.150 moko 7950: for ac_exec_ext in '' $ac_executable_extensions; do
7951: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7952: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 7953: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7954: break 2
7955: fi
7956: done
1.150 moko 7957: done
7958: IFS=$as_save_IFS
1.128 moko 7959:
7960: fi
7961: fi
7962: OTOOL=$ac_cv_prog_OTOOL
7963: if test -n "$OTOOL"; then
1.150 moko 7964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7965: $as_echo "$OTOOL" >&6; }
1.128 moko 7966: else
1.150 moko 7967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968: $as_echo "no" >&6; }
1.128 moko 7969: fi
7970:
1.150 moko 7971:
1.128 moko 7972: fi
7973: if test -z "$ac_cv_prog_OTOOL"; then
7974: ac_ct_OTOOL=$OTOOL
7975: # Extract the first word of "otool", so it can be a program name with args.
7976: set dummy otool; ac_word=$2
1.150 moko 7977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978: $as_echo_n "checking for $ac_word... " >&6; }
7979: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7980: $as_echo_n "(cached) " >&6
1.128 moko 7981: else
7982: if test -n "$ac_ct_OTOOL"; then
7983: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7984: else
7985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986: for as_dir in $PATH
7987: do
7988: IFS=$as_save_IFS
7989: test -z "$as_dir" && as_dir=.
1.150 moko 7990: for ac_exec_ext in '' $ac_executable_extensions; do
7991: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 7992: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 7993: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7994: break 2
7995: fi
7996: done
1.150 moko 7997: done
7998: IFS=$as_save_IFS
1.128 moko 7999:
8000: fi
8001: fi
8002: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8003: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8005: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8006: else
1.150 moko 8007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008: $as_echo "no" >&6; }
1.128 moko 8009: fi
8010:
1.150 moko 8011: if test "x$ac_ct_OTOOL" = x; then
8012: OTOOL=":"
8013: else
8014: case $cross_compiling:$ac_tool_warned in
8015: yes:)
8016: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018: ac_tool_warned=yes ;;
8019: esac
8020: OTOOL=$ac_ct_OTOOL
8021: fi
1.128 moko 8022: else
8023: OTOOL="$ac_cv_prog_OTOOL"
8024: fi
8025:
8026: if test -n "$ac_tool_prefix"; then
8027: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8028: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030: $as_echo_n "checking for $ac_word... " >&6; }
8031: if ${ac_cv_prog_OTOOL64+:} false; then :
8032: $as_echo_n "(cached) " >&6
1.128 moko 8033: else
8034: if test -n "$OTOOL64"; then
8035: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8036: else
8037: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038: for as_dir in $PATH
8039: do
8040: IFS=$as_save_IFS
8041: test -z "$as_dir" && as_dir=.
1.150 moko 8042: for ac_exec_ext in '' $ac_executable_extensions; do
8043: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 8044: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8045: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8046: break 2
8047: fi
8048: done
1.150 moko 8049: done
8050: IFS=$as_save_IFS
1.128 moko 8051:
8052: fi
8053: fi
8054: OTOOL64=$ac_cv_prog_OTOOL64
8055: if test -n "$OTOOL64"; then
1.150 moko 8056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8057: $as_echo "$OTOOL64" >&6; }
1.128 moko 8058: else
1.150 moko 8059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060: $as_echo "no" >&6; }
1.128 moko 8061: fi
8062:
1.150 moko 8063:
1.128 moko 8064: fi
8065: if test -z "$ac_cv_prog_OTOOL64"; then
8066: ac_ct_OTOOL64=$OTOOL64
8067: # Extract the first word of "otool64", so it can be a program name with args.
8068: set dummy otool64; ac_word=$2
1.150 moko 8069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070: $as_echo_n "checking for $ac_word... " >&6; }
8071: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8072: $as_echo_n "(cached) " >&6
1.128 moko 8073: else
8074: if test -n "$ac_ct_OTOOL64"; then
8075: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8076: else
8077: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078: for as_dir in $PATH
8079: do
8080: IFS=$as_save_IFS
8081: test -z "$as_dir" && as_dir=.
1.150 moko 8082: for ac_exec_ext in '' $ac_executable_extensions; do
8083: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 8084: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8085: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8086: break 2
8087: fi
8088: done
1.150 moko 8089: done
8090: IFS=$as_save_IFS
1.128 moko 8091:
8092: fi
8093: fi
8094: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8095: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8097: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8098: else
1.150 moko 8099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100: $as_echo "no" >&6; }
1.128 moko 8101: fi
8102:
1.150 moko 8103: if test "x$ac_ct_OTOOL64" = x; then
8104: OTOOL64=":"
8105: else
8106: case $cross_compiling:$ac_tool_warned in
8107: yes:)
8108: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8109: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8110: ac_tool_warned=yes ;;
8111: esac
8112: OTOOL64=$ac_ct_OTOOL64
8113: fi
1.128 moko 8114: else
8115: OTOOL64="$ac_cv_prog_OTOOL64"
8116: fi
8117:
8118:
8119:
8120:
8121:
8122:
8123:
8124:
8125:
8126:
8127:
8128:
8129:
8130:
8131:
8132:
8133:
8134:
8135:
8136:
8137:
8138:
8139:
8140:
8141:
8142:
8143:
1.150 moko 8144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8145: $as_echo_n "checking for -single_module linker flag... " >&6; }
8146: if ${lt_cv_apple_cc_single_mod+:} false; then :
8147: $as_echo_n "(cached) " >&6
1.128 moko 8148: else
8149: lt_cv_apple_cc_single_mod=no
8150: if test -z "${LT_MULTI_MODULE}"; then
8151: # By default we will add the -single_module flag. You can override
8152: # by either setting the environment variable LT_MULTI_MODULE
8153: # non-empty at configure time, or by adding -multi_module to the
8154: # link flags.
8155: rm -rf libconftest.dylib*
8156: echo "int foo(void){return 1;}" > conftest.c
8157: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8158: -dynamiclib -Wl,-single_module conftest.c" >&5
8159: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8160: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8161: _lt_result=$?
8162: # If there is a non-empty error log, and "single_module"
8163: # appears in it, assume the flag caused a linker warning
8164: if test -s conftest.err && $GREP single_module conftest.err; then
8165: cat conftest.err >&5
8166: # Otherwise, if the output was created with a 0 exit code from
8167: # the compiler, it worked.
8168: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8169: lt_cv_apple_cc_single_mod=yes
8170: else
8171: cat conftest.err >&5
8172: fi
8173: rm -rf libconftest.dylib*
8174: rm -f conftest.*
8175: fi
8176: fi
1.150 moko 8177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8178: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8179:
1.150 moko 8180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8181: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8182: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8183: $as_echo_n "(cached) " >&6
1.128 moko 8184: else
8185: lt_cv_ld_exported_symbols_list=no
8186: save_LDFLAGS=$LDFLAGS
8187: echo "_main" > conftest.sym
8188: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8189: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8190: /* end confdefs.h. */
8191:
8192: int
8193: main ()
8194: {
8195:
8196: ;
8197: return 0;
8198: }
8199: _ACEOF
1.150 moko 8200: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8201: lt_cv_ld_exported_symbols_list=yes
8202: else
1.150 moko 8203: lt_cv_ld_exported_symbols_list=no
1.128 moko 8204: fi
1.150 moko 8205: rm -f core conftest.err conftest.$ac_objext \
8206: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8207: LDFLAGS="$save_LDFLAGS"
8208:
8209: fi
1.150 moko 8210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8211: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8212:
1.150 moko 8213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8214: $as_echo_n "checking for -force_load linker flag... " >&6; }
8215: if ${lt_cv_ld_force_load+:} false; then :
8216: $as_echo_n "(cached) " >&6
1.128 moko 8217: else
8218: lt_cv_ld_force_load=no
8219: cat > conftest.c << _LT_EOF
8220: int forced_loaded() { return 2;}
8221: _LT_EOF
8222: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8223: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8224: echo "$AR cru libconftest.a conftest.o" >&5
8225: $AR cru libconftest.a conftest.o 2>&5
8226: echo "$RANLIB libconftest.a" >&5
8227: $RANLIB libconftest.a 2>&5
8228: cat > conftest.c << _LT_EOF
8229: int main() { return 0;}
8230: _LT_EOF
8231: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8232: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8233: _lt_result=$?
8234: if test -s conftest.err && $GREP force_load conftest.err; then
8235: cat conftest.err >&5
8236: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8237: lt_cv_ld_force_load=yes
8238: else
8239: cat conftest.err >&5
8240: fi
8241: rm -f conftest.err libconftest.a conftest conftest.c
8242: rm -rf conftest.dSYM
8243:
8244: fi
1.150 moko 8245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8246: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8247: case $host_os in
8248: rhapsody* | darwin1.[012])
8249: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8250: darwin1.*)
8251: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8252: darwin*) # darwin 5.x on
8253: # if running on 10.5 or later, the deployment target defaults
8254: # to the OS version, if on x86, and 10.4, the deployment
8255: # target defaults to 10.4. Don't you love it?
8256: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8257: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8258: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8259: 10.[012]*)
8260: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8261: 10.*)
8262: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8263: esac
8264: ;;
8265: esac
8266: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8267: _lt_dar_single_mod='$single_module'
8268: fi
8269: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8270: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8271: else
8272: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8273: fi
8274: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8275: _lt_dsymutil='~$DSYMUTIL $lib || :'
8276: else
8277: _lt_dsymutil=
8278: fi
8279: ;;
8280: esac
8281:
8282: ac_ext=c
8283: ac_cpp='$CPP $CPPFLAGS'
8284: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8288: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8289: # On Suns, sometimes $CPP names a directory.
8290: if test -n "$CPP" && test -d "$CPP"; then
8291: CPP=
8292: fi
8293: if test -z "$CPP"; then
1.150 moko 8294: if ${ac_cv_prog_CPP+:} false; then :
8295: $as_echo_n "(cached) " >&6
1.128 moko 8296: else
8297: # Double quotes because CPP needs to be expanded
8298: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8299: do
8300: ac_preproc_ok=false
8301: for ac_c_preproc_warn_flag in '' yes
8302: do
8303: # Use a header file that comes with gcc, so configuring glibc
8304: # with a fresh cross-compiler works.
8305: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8306: # <limits.h> exists even on freestanding compilers.
8307: # On the NeXT, cc -E runs the code through the compiler's parser,
8308: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8310: /* end confdefs.h. */
8311: #ifdef __STDC__
8312: # include <limits.h>
8313: #else
8314: # include <assert.h>
8315: #endif
8316: Syntax error
8317: _ACEOF
1.150 moko 8318: if ac_fn_c_try_cpp "$LINENO"; then :
8319:
1.128 moko 8320: else
8321: # Broken: fails on valid input.
8322: continue
8323: fi
1.150 moko 8324: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8325:
1.150 moko 8326: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8327: # can be detected and how.
1.150 moko 8328: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8329: /* end confdefs.h. */
8330: #include <ac_nonexistent.h>
8331: _ACEOF
1.150 moko 8332: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8333: # Broken: success on invalid input.
8334: continue
8335: else
8336: # Passes both tests.
8337: ac_preproc_ok=:
8338: break
8339: fi
1.150 moko 8340: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8341:
8342: done
8343: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8344: rm -f conftest.i conftest.err conftest.$ac_ext
8345: if $ac_preproc_ok; then :
1.128 moko 8346: break
8347: fi
8348:
8349: done
8350: ac_cv_prog_CPP=$CPP
8351:
8352: fi
8353: CPP=$ac_cv_prog_CPP
8354: else
8355: ac_cv_prog_CPP=$CPP
8356: fi
1.150 moko 8357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8358: $as_echo "$CPP" >&6; }
1.128 moko 8359: ac_preproc_ok=false
8360: for ac_c_preproc_warn_flag in '' yes
8361: do
8362: # Use a header file that comes with gcc, so configuring glibc
8363: # with a fresh cross-compiler works.
8364: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8365: # <limits.h> exists even on freestanding compilers.
8366: # On the NeXT, cc -E runs the code through the compiler's parser,
8367: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8368: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8369: /* end confdefs.h. */
8370: #ifdef __STDC__
8371: # include <limits.h>
8372: #else
8373: # include <assert.h>
8374: #endif
8375: Syntax error
8376: _ACEOF
1.150 moko 8377: if ac_fn_c_try_cpp "$LINENO"; then :
8378:
1.128 moko 8379: else
8380: # Broken: fails on valid input.
8381: continue
8382: fi
1.150 moko 8383: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8384:
1.150 moko 8385: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8386: # can be detected and how.
1.150 moko 8387: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8388: /* end confdefs.h. */
8389: #include <ac_nonexistent.h>
8390: _ACEOF
1.150 moko 8391: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8392: # Broken: success on invalid input.
8393: continue
8394: else
8395: # Passes both tests.
8396: ac_preproc_ok=:
8397: break
8398: fi
1.150 moko 8399: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8400:
8401: done
8402: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8403: rm -f conftest.i conftest.err conftest.$ac_ext
8404: if $ac_preproc_ok; then :
8405:
1.128 moko 8406: else
1.150 moko 8407: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8408: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8409: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8410: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8411: fi
8412:
8413: ac_ext=c
8414: ac_cpp='$CPP $CPPFLAGS'
8415: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8416: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8417: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8418:
8419:
1.150 moko 8420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8421: $as_echo_n "checking for ANSI C header files... " >&6; }
8422: if ${ac_cv_header_stdc+:} false; then :
8423: $as_echo_n "(cached) " >&6
1.128 moko 8424: else
1.150 moko 8425: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8426: /* end confdefs.h. */
8427: #include <stdlib.h>
8428: #include <stdarg.h>
8429: #include <string.h>
8430: #include <float.h>
8431:
8432: int
8433: main ()
8434: {
8435:
8436: ;
8437: return 0;
8438: }
8439: _ACEOF
1.150 moko 8440: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8441: ac_cv_header_stdc=yes
8442: else
1.150 moko 8443: ac_cv_header_stdc=no
1.128 moko 8444: fi
1.150 moko 8445: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8446:
8447: if test $ac_cv_header_stdc = yes; then
8448: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8450: /* end confdefs.h. */
8451: #include <string.h>
8452:
8453: _ACEOF
8454: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8455: $EGREP "memchr" >/dev/null 2>&1; then :
8456:
1.128 moko 8457: else
8458: ac_cv_header_stdc=no
8459: fi
8460: rm -f conftest*
8461:
8462: fi
8463:
8464: if test $ac_cv_header_stdc = yes; then
8465: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8466: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8467: /* end confdefs.h. */
8468: #include <stdlib.h>
8469:
8470: _ACEOF
8471: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8472: $EGREP "free" >/dev/null 2>&1; then :
8473:
1.128 moko 8474: else
8475: ac_cv_header_stdc=no
8476: fi
8477: rm -f conftest*
8478:
8479: fi
8480:
8481: if test $ac_cv_header_stdc = yes; then
8482: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8483: if test "$cross_compiling" = yes; then :
1.128 moko 8484: :
8485: else
1.150 moko 8486: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8487: /* end confdefs.h. */
8488: #include <ctype.h>
1.150 moko 8489: #include <stdlib.h>
1.128 moko 8490: #if ((' ' & 0x0FF) == 0x020)
8491: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8492: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8493: #else
8494: # define ISLOWER(c) \
8495: (('a' <= (c) && (c) <= 'i') \
8496: || ('j' <= (c) && (c) <= 'r') \
8497: || ('s' <= (c) && (c) <= 'z'))
8498: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8499: #endif
8500:
8501: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8502: int
8503: main ()
8504: {
8505: int i;
8506: for (i = 0; i < 256; i++)
8507: if (XOR (islower (i), ISLOWER (i))
8508: || toupper (i) != TOUPPER (i))
1.150 moko 8509: return 2;
8510: return 0;
1.128 moko 8511: }
8512: _ACEOF
1.150 moko 8513: if ac_fn_c_try_run "$LINENO"; then :
8514:
1.128 moko 8515: else
1.150 moko 8516: ac_cv_header_stdc=no
1.128 moko 8517: fi
1.150 moko 8518: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8519: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8520: fi
1.150 moko 8521:
1.128 moko 8522: fi
8523: fi
1.150 moko 8524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8525: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8526: if test $ac_cv_header_stdc = yes; then
8527:
1.150 moko 8528: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8529:
8530: fi
8531:
8532: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8533: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8534: inttypes.h stdint.h unistd.h
8535: do :
8536: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8537: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8538: "
8539: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8540: cat >>confdefs.h <<_ACEOF
8541: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8542: _ACEOF
1.128 moko 8543:
1.150 moko 8544: fi
1.128 moko 8545:
1.150 moko 8546: done
1.128 moko 8547:
8548:
1.150 moko 8549: for ac_header in dlfcn.h
8550: do :
8551: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8552: "
8553: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8554: cat >>confdefs.h <<_ACEOF
8555: #define HAVE_DLFCN_H 1
8556: _ACEOF
1.128 moko 8557:
1.150 moko 8558: fi
1.128 moko 8559:
1.150 moko 8560: done
1.128 moko 8561:
8562:
8563:
8564:
1.150 moko 8565: func_stripname_cnf ()
8566: {
8567: case ${2} in
8568: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8569: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8570: esac
8571: } # func_stripname_cnf
1.128 moko 8572:
8573:
8574:
8575:
8576:
8577: # Set options
8578: enable_dlopen=yes
8579: enable_win32_dll=yes
8580:
8581: case $host in
8582: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8583: if test -n "$ac_tool_prefix"; then
8584: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8585: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587: $as_echo_n "checking for $ac_word... " >&6; }
8588: if ${ac_cv_prog_AS+:} false; then :
8589: $as_echo_n "(cached) " >&6
1.128 moko 8590: else
8591: if test -n "$AS"; then
8592: ac_cv_prog_AS="$AS" # Let the user override the test.
8593: else
8594: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595: for as_dir in $PATH
8596: do
8597: IFS=$as_save_IFS
8598: test -z "$as_dir" && as_dir=.
1.150 moko 8599: for ac_exec_ext in '' $ac_executable_extensions; do
8600: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 8601: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8602: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8603: break 2
8604: fi
8605: done
1.150 moko 8606: done
8607: IFS=$as_save_IFS
1.128 moko 8608:
8609: fi
8610: fi
8611: AS=$ac_cv_prog_AS
8612: if test -n "$AS"; then
1.150 moko 8613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8614: $as_echo "$AS" >&6; }
1.128 moko 8615: else
1.150 moko 8616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617: $as_echo "no" >&6; }
1.128 moko 8618: fi
8619:
1.150 moko 8620:
1.128 moko 8621: fi
8622: if test -z "$ac_cv_prog_AS"; then
8623: ac_ct_AS=$AS
8624: # Extract the first word of "as", so it can be a program name with args.
8625: set dummy as; ac_word=$2
1.150 moko 8626: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627: $as_echo_n "checking for $ac_word... " >&6; }
8628: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8629: $as_echo_n "(cached) " >&6
1.128 moko 8630: else
8631: if test -n "$ac_ct_AS"; then
8632: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8633: else
8634: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635: for as_dir in $PATH
8636: do
8637: IFS=$as_save_IFS
8638: test -z "$as_dir" && as_dir=.
1.150 moko 8639: for ac_exec_ext in '' $ac_executable_extensions; do
8640: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 8641: ac_cv_prog_ac_ct_AS="as"
1.150 moko 8642: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8643: break 2
8644: fi
8645: done
1.150 moko 8646: done
8647: IFS=$as_save_IFS
1.128 moko 8648:
8649: fi
8650: fi
8651: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8652: if test -n "$ac_ct_AS"; then
1.150 moko 8653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8654: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 8655: else
1.150 moko 8656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657: $as_echo "no" >&6; }
1.128 moko 8658: fi
8659:
1.150 moko 8660: if test "x$ac_ct_AS" = x; then
8661: AS="false"
8662: else
8663: case $cross_compiling:$ac_tool_warned in
8664: yes:)
8665: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8666: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8667: ac_tool_warned=yes ;;
8668: esac
8669: AS=$ac_ct_AS
8670: fi
1.128 moko 8671: else
8672: AS="$ac_cv_prog_AS"
8673: fi
8674:
8675: if test -n "$ac_tool_prefix"; then
8676: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8677: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 8678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679: $as_echo_n "checking for $ac_word... " >&6; }
8680: if ${ac_cv_prog_DLLTOOL+:} false; then :
8681: $as_echo_n "(cached) " >&6
1.128 moko 8682: else
8683: if test -n "$DLLTOOL"; then
8684: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8685: else
8686: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687: for as_dir in $PATH
8688: do
8689: IFS=$as_save_IFS
8690: test -z "$as_dir" && as_dir=.
1.150 moko 8691: for ac_exec_ext in '' $ac_executable_extensions; do
8692: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 8693: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 8694: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8695: break 2
8696: fi
8697: done
1.150 moko 8698: done
8699: IFS=$as_save_IFS
1.128 moko 8700:
8701: fi
8702: fi
8703: DLLTOOL=$ac_cv_prog_DLLTOOL
8704: if test -n "$DLLTOOL"; then
1.150 moko 8705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8706: $as_echo "$DLLTOOL" >&6; }
1.128 moko 8707: else
1.150 moko 8708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709: $as_echo "no" >&6; }
1.128 moko 8710: fi
8711:
1.150 moko 8712:
1.128 moko 8713: fi
8714: if test -z "$ac_cv_prog_DLLTOOL"; then
8715: ac_ct_DLLTOOL=$DLLTOOL
8716: # Extract the first word of "dlltool", so it can be a program name with args.
8717: set dummy dlltool; ac_word=$2
1.150 moko 8718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719: $as_echo_n "checking for $ac_word... " >&6; }
8720: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8721: $as_echo_n "(cached) " >&6
1.128 moko 8722: else
8723: if test -n "$ac_ct_DLLTOOL"; then
8724: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8725: else
8726: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727: for as_dir in $PATH
8728: do
8729: IFS=$as_save_IFS
8730: test -z "$as_dir" && as_dir=.
1.150 moko 8731: for ac_exec_ext in '' $ac_executable_extensions; do
8732: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 8733: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 8734: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8735: break 2
8736: fi
8737: done
1.150 moko 8738: done
8739: IFS=$as_save_IFS
1.128 moko 8740:
8741: fi
8742: fi
8743: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8744: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 8745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8746: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 8747: else
1.150 moko 8748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749: $as_echo "no" >&6; }
1.128 moko 8750: fi
8751:
1.150 moko 8752: if test "x$ac_ct_DLLTOOL" = x; then
8753: DLLTOOL="false"
8754: else
8755: case $cross_compiling:$ac_tool_warned in
8756: yes:)
8757: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8758: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8759: ac_tool_warned=yes ;;
8760: esac
8761: DLLTOOL=$ac_ct_DLLTOOL
8762: fi
1.128 moko 8763: else
8764: DLLTOOL="$ac_cv_prog_DLLTOOL"
8765: fi
8766:
8767: if test -n "$ac_tool_prefix"; then
8768: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8769: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 8770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771: $as_echo_n "checking for $ac_word... " >&6; }
8772: if ${ac_cv_prog_OBJDUMP+:} false; then :
8773: $as_echo_n "(cached) " >&6
1.128 moko 8774: else
8775: if test -n "$OBJDUMP"; then
8776: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8777: else
8778: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779: for as_dir in $PATH
8780: do
8781: IFS=$as_save_IFS
8782: test -z "$as_dir" && as_dir=.
1.150 moko 8783: for ac_exec_ext in '' $ac_executable_extensions; do
8784: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 8785: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 8786: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8787: break 2
8788: fi
8789: done
1.150 moko 8790: done
8791: IFS=$as_save_IFS
1.128 moko 8792:
8793: fi
8794: fi
8795: OBJDUMP=$ac_cv_prog_OBJDUMP
8796: if test -n "$OBJDUMP"; then
1.150 moko 8797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8798: $as_echo "$OBJDUMP" >&6; }
1.128 moko 8799: else
1.150 moko 8800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801: $as_echo "no" >&6; }
1.128 moko 8802: fi
8803:
1.150 moko 8804:
1.128 moko 8805: fi
8806: if test -z "$ac_cv_prog_OBJDUMP"; then
8807: ac_ct_OBJDUMP=$OBJDUMP
8808: # Extract the first word of "objdump", so it can be a program name with args.
8809: set dummy objdump; ac_word=$2
1.150 moko 8810: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811: $as_echo_n "checking for $ac_word... " >&6; }
8812: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8813: $as_echo_n "(cached) " >&6
1.128 moko 8814: else
8815: if test -n "$ac_ct_OBJDUMP"; then
8816: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8817: else
8818: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819: for as_dir in $PATH
8820: do
8821: IFS=$as_save_IFS
8822: test -z "$as_dir" && as_dir=.
1.150 moko 8823: for ac_exec_ext in '' $ac_executable_extensions; do
8824: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.128 moko 8825: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 8826: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8827: break 2
8828: fi
8829: done
1.150 moko 8830: done
8831: IFS=$as_save_IFS
1.128 moko 8832:
8833: fi
8834: fi
8835: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8836: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 8837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8838: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 8839: else
1.150 moko 8840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841: $as_echo "no" >&6; }
1.128 moko 8842: fi
8843:
1.150 moko 8844: if test "x$ac_ct_OBJDUMP" = x; then
8845: OBJDUMP="false"
8846: else
8847: case $cross_compiling:$ac_tool_warned in
8848: yes:)
8849: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851: ac_tool_warned=yes ;;
8852: esac
8853: OBJDUMP=$ac_ct_OBJDUMP
8854: fi
1.128 moko 8855: else
8856: OBJDUMP="$ac_cv_prog_OBJDUMP"
8857: fi
8858:
8859: ;;
8860: esac
8861:
8862: test -z "$AS" && AS=as
8863:
8864:
8865:
8866:
8867:
8868: test -z "$DLLTOOL" && DLLTOOL=dlltool
8869:
8870:
8871:
8872:
8873:
8874: test -z "$OBJDUMP" && OBJDUMP=objdump
8875:
8876:
8877:
8878:
8879:
1.150 moko 8880: # Check whether --with-pic was given.
8881: if test "${with_pic+set}" = set; then :
8882: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 8883: case $withval in
8884: yes|no) pic_mode=$withval ;;
8885: *)
8886: pic_mode=default
8887: # Look at the argument we got. We use all the common list separators.
8888: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889: for lt_pkg in $withval; do
8890: IFS="$lt_save_ifs"
8891: if test "X$lt_pkg" = "X$lt_p"; then
8892: pic_mode=yes
8893: fi
8894: done
8895: IFS="$lt_save_ifs"
8896: ;;
8897: esac
8898: else
8899: pic_mode=default
1.150 moko 8900: fi
8901:
1.145 moko 8902:
8903: test -z "$pic_mode" && pic_mode=no
8904:
8905:
8906:
8907:
8908:
8909:
1.128 moko 8910:
8911:
8912:
8913:
1.150 moko 8914: # Check whether --enable-shared was given.
8915: if test "${enable_shared+set}" = set; then :
8916: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 8917: case $enableval in
8918: yes) enable_shared=yes ;;
8919: no) enable_shared=no ;;
8920: *)
8921: enable_shared=no
8922: # Look at the argument we got. We use all the common list separators.
8923: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8924: for pkg in $enableval; do
8925: IFS="$lt_save_ifs"
8926: if test "X$pkg" = "X$p"; then
8927: enable_shared=yes
8928: fi
8929: done
8930: IFS="$lt_save_ifs"
8931: ;;
8932: esac
8933: else
8934: enable_shared=yes
1.150 moko 8935: fi
8936:
1.128 moko 8937:
8938:
8939:
8940:
8941:
8942:
8943:
8944:
1.150 moko 8945: # Check whether --enable-static was given.
8946: if test "${enable_static+set}" = set; then :
8947: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 8948: case $enableval in
8949: yes) enable_static=yes ;;
8950: no) enable_static=no ;;
8951: *)
8952: enable_static=no
8953: # Look at the argument we got. We use all the common list separators.
8954: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8955: for pkg in $enableval; do
8956: IFS="$lt_save_ifs"
8957: if test "X$pkg" = "X$p"; then
8958: enable_static=yes
8959: fi
8960: done
8961: IFS="$lt_save_ifs"
8962: ;;
8963: esac
8964: else
8965: enable_static=yes
1.150 moko 8966: fi
8967:
1.138 moko 8968:
8969:
8970:
8971:
8972:
8973:
8974:
1.128 moko 8975:
8976:
1.150 moko 8977: # Check whether --enable-fast-install was given.
8978: if test "${enable_fast_install+set}" = set; then :
8979: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 8980: case $enableval in
8981: yes) enable_fast_install=yes ;;
8982: no) enable_fast_install=no ;;
8983: *)
8984: enable_fast_install=no
8985: # Look at the argument we got. We use all the common list separators.
8986: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8987: for pkg in $enableval; do
8988: IFS="$lt_save_ifs"
8989: if test "X$pkg" = "X$p"; then
8990: enable_fast_install=yes
8991: fi
8992: done
8993: IFS="$lt_save_ifs"
8994: ;;
8995: esac
8996: else
8997: enable_fast_install=yes
1.150 moko 8998: fi
8999:
1.128 moko 9000:
9001:
9002:
9003:
9004:
9005:
9006:
9007:
9008:
9009:
9010: # This can be used to rebuild libtool when needed
9011: LIBTOOL_DEPS="$ltmain"
9012:
9013: # Always use our own libtool.
9014: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9015:
9016:
9017:
9018:
9019:
9020:
9021:
9022:
9023:
9024:
9025:
9026:
9027:
9028:
9029:
9030:
9031:
9032:
9033:
9034:
9035:
9036:
9037:
9038:
9039:
9040:
9041:
9042:
9043:
9044:
9045: test -z "$LN_S" && LN_S="ln -s"
9046:
9047:
9048:
9049:
9050:
9051:
9052:
9053:
9054:
9055:
9056:
9057:
9058:
9059:
9060: if test -n "${ZSH_VERSION+set}" ; then
9061: setopt NO_GLOB_SUBST
9062: fi
9063:
1.150 moko 9064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9065: $as_echo_n "checking for objdir... " >&6; }
9066: if ${lt_cv_objdir+:} false; then :
9067: $as_echo_n "(cached) " >&6
1.128 moko 9068: else
9069: rm -f .libs 2>/dev/null
9070: mkdir .libs 2>/dev/null
9071: if test -d .libs; then
9072: lt_cv_objdir=.libs
9073: else
9074: # MS-DOS does not allow filenames that begin with a dot.
9075: lt_cv_objdir=_libs
9076: fi
9077: rmdir .libs 2>/dev/null
9078: fi
1.150 moko 9079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9080: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9081: objdir=$lt_cv_objdir
9082:
9083:
9084:
9085:
9086:
9087: cat >>confdefs.h <<_ACEOF
9088: #define LT_OBJDIR "$lt_cv_objdir/"
9089: _ACEOF
9090:
9091:
9092:
9093:
9094: case $host_os in
9095: aix3*)
9096: # AIX sometimes has problems with the GCC collect2 program. For some
9097: # reason, if we set the COLLECT_NAMES environment variable, the problems
9098: # vanish in a puff of smoke.
9099: if test "X${COLLECT_NAMES+set}" != Xset; then
9100: COLLECT_NAMES=
9101: export COLLECT_NAMES
9102: fi
9103: ;;
9104: esac
9105:
9106: # Global variables:
9107: ofile=libtool
9108: can_build_shared=yes
9109:
9110: # All known linkers require a `.a' archive for static linking (except MSVC,
9111: # which needs '.lib').
9112: libext=a
9113:
9114: with_gnu_ld="$lt_cv_prog_gnu_ld"
9115:
9116: old_CC="$CC"
9117: old_CFLAGS="$CFLAGS"
9118:
9119: # Set sane defaults for various variables
9120: test -z "$CC" && CC=cc
9121: test -z "$LTCC" && LTCC=$CC
9122: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9123: test -z "$LD" && LD=ld
9124: test -z "$ac_objext" && ac_objext=o
9125:
9126: for cc_temp in $compiler""; do
9127: case $cc_temp in
9128: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9129: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9130: \-*) ;;
9131: *) break;;
9132: esac
9133: done
9134: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9135:
9136:
9137: # Only perform the check for file, if the check method requires it
9138: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9139: case $deplibs_check_method in
9140: file_magic*)
9141: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9143: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9144: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9145: $as_echo_n "(cached) " >&6
1.128 moko 9146: else
9147: case $MAGIC_CMD in
9148: [\\/*] | ?:[\\/]*)
9149: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9150: ;;
9151: *)
9152: lt_save_MAGIC_CMD="$MAGIC_CMD"
9153: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9154: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9155: for ac_dir in $ac_dummy; do
9156: IFS="$lt_save_ifs"
9157: test -z "$ac_dir" && ac_dir=.
9158: if test -f $ac_dir/${ac_tool_prefix}file; then
9159: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9160: if test -n "$file_magic_test_file"; then
9161: case $deplibs_check_method in
9162: "file_magic "*)
9163: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9164: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9165: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9166: $EGREP "$file_magic_regex" > /dev/null; then
9167: :
9168: else
9169: cat <<_LT_EOF 1>&2
9170:
9171: *** Warning: the command libtool uses to detect shared libraries,
9172: *** $file_magic_cmd, produces output that libtool cannot recognize.
9173: *** The result is that libtool may fail to recognize shared libraries
9174: *** as such. This will affect the creation of libtool libraries that
9175: *** depend on shared libraries, but programs linked with such libtool
9176: *** libraries will work regardless of this problem. Nevertheless, you
9177: *** may want to report the problem to your system manager and/or to
9178: *** bug-libtool@gnu.org
9179:
9180: _LT_EOF
9181: fi ;;
9182: esac
9183: fi
9184: break
9185: fi
9186: done
9187: IFS="$lt_save_ifs"
9188: MAGIC_CMD="$lt_save_MAGIC_CMD"
9189: ;;
9190: esac
9191: fi
9192:
9193: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9194: if test -n "$MAGIC_CMD"; then
1.150 moko 9195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9196: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9197: else
1.150 moko 9198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199: $as_echo "no" >&6; }
1.128 moko 9200: fi
9201:
9202:
9203:
9204:
9205:
9206: if test -z "$lt_cv_path_MAGIC_CMD"; then
9207: if test -n "$ac_tool_prefix"; then
1.150 moko 9208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9209: $as_echo_n "checking for file... " >&6; }
9210: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9211: $as_echo_n "(cached) " >&6
1.128 moko 9212: else
9213: case $MAGIC_CMD in
9214: [\\/*] | ?:[\\/]*)
9215: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9216: ;;
9217: *)
9218: lt_save_MAGIC_CMD="$MAGIC_CMD"
9219: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9220: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9221: for ac_dir in $ac_dummy; do
9222: IFS="$lt_save_ifs"
9223: test -z "$ac_dir" && ac_dir=.
9224: if test -f $ac_dir/file; then
9225: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9226: if test -n "$file_magic_test_file"; then
9227: case $deplibs_check_method in
9228: "file_magic "*)
9229: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9230: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9231: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9232: $EGREP "$file_magic_regex" > /dev/null; then
9233: :
9234: else
9235: cat <<_LT_EOF 1>&2
9236:
9237: *** Warning: the command libtool uses to detect shared libraries,
9238: *** $file_magic_cmd, produces output that libtool cannot recognize.
9239: *** The result is that libtool may fail to recognize shared libraries
9240: *** as such. This will affect the creation of libtool libraries that
9241: *** depend on shared libraries, but programs linked with such libtool
9242: *** libraries will work regardless of this problem. Nevertheless, you
9243: *** may want to report the problem to your system manager and/or to
9244: *** bug-libtool@gnu.org
9245:
9246: _LT_EOF
9247: fi ;;
9248: esac
9249: fi
9250: break
9251: fi
9252: done
9253: IFS="$lt_save_ifs"
9254: MAGIC_CMD="$lt_save_MAGIC_CMD"
9255: ;;
9256: esac
9257: fi
9258:
9259: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9260: if test -n "$MAGIC_CMD"; then
1.150 moko 9261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9262: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9263: else
1.150 moko 9264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265: $as_echo "no" >&6; }
1.128 moko 9266: fi
9267:
9268:
9269: else
9270: MAGIC_CMD=:
9271: fi
9272: fi
9273:
9274: fi
9275: ;;
9276: esac
9277:
9278: # Use C for the default configuration in the libtool script
9279:
9280: lt_save_CC="$CC"
9281: ac_ext=c
9282: ac_cpp='$CPP $CPPFLAGS'
9283: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9284: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9285: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9286:
9287:
9288: # Source file extension for C test sources.
9289: ac_ext=c
9290:
9291: # Object file extension for compiled C test sources.
9292: objext=o
9293: objext=$objext
9294:
9295: # Code to be used in simple compile tests
9296: lt_simple_compile_test_code="int some_variable = 0;"
9297:
9298: # Code to be used in simple link tests
9299: lt_simple_link_test_code='int main(){return(0);}'
9300:
9301:
9302:
9303:
9304:
9305:
9306:
9307: # If no C compiler was specified, use CC.
9308: LTCC=${LTCC-"$CC"}
9309:
9310: # If no C compiler flags were specified, use CFLAGS.
9311: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9312:
9313: # Allow CC to be a program name with arguments.
9314: compiler=$CC
9315:
9316: # Save the default compiler, since it gets overwritten when the other
9317: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9318: compiler_DEFAULT=$CC
9319:
9320: # save warnings/boilerplate of simple test code
9321: ac_outfile=conftest.$ac_objext
9322: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9323: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9324: _lt_compiler_boilerplate=`cat conftest.err`
9325: $RM conftest*
9326:
9327: ac_outfile=conftest.$ac_objext
9328: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9329: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9330: _lt_linker_boilerplate=`cat conftest.err`
9331: $RM -r conftest*
9332:
9333:
9334: ## CAVEAT EMPTOR:
9335: ## There is no encapsulation within the following macros, do not change
9336: ## the running order or otherwise move them around unless you know exactly
9337: ## what you are doing...
9338: if test -n "$compiler"; then
9339:
9340: lt_prog_compiler_no_builtin_flag=
9341:
9342: if test "$GCC" = yes; then
9343: case $cc_basename in
9344: nvcc*)
9345: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9346: *)
9347: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9348: esac
9349:
1.150 moko 9350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9351: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9352: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9353: $as_echo_n "(cached) " >&6
1.128 moko 9354: else
9355: lt_cv_prog_compiler_rtti_exceptions=no
9356: ac_outfile=conftest.$ac_objext
9357: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9358: lt_compiler_flag="-fno-rtti -fno-exceptions"
9359: # Insert the option either (1) after the last *FLAGS variable, or
9360: # (2) before a word containing "conftest.", or (3) at the end.
9361: # Note that $ac_compile itself does not contain backslashes and begins
9362: # with a dollar sign (not a hyphen), so the echo should work correctly.
9363: # The option is referenced via a variable to avoid confusing sed.
9364: lt_compile=`echo "$ac_compile" | $SED \
9365: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9366: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9367: -e 's:$: $lt_compiler_flag:'`
9368: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9369: (eval "$lt_compile" 2>conftest.err)
9370: ac_status=$?
9371: cat conftest.err >&5
9372: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373: if (exit $ac_status) && test -s "$ac_outfile"; then
9374: # The compiler can only warn and ignore the option if not recognized
9375: # So say no if there are warnings other than the usual output.
9376: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9377: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9378: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9379: lt_cv_prog_compiler_rtti_exceptions=yes
9380: fi
9381: fi
9382: $RM conftest*
9383:
9384: fi
1.150 moko 9385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9386: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9387:
9388: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9389: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9390: else
9391: :
9392: fi
9393:
9394: fi
9395:
9396:
9397:
9398:
9399:
9400:
9401: lt_prog_compiler_wl=
9402: lt_prog_compiler_pic=
9403: lt_prog_compiler_static=
9404:
9405:
9406: if test "$GCC" = yes; then
9407: lt_prog_compiler_wl='-Wl,'
9408: lt_prog_compiler_static='-static'
9409:
9410: case $host_os in
9411: aix*)
9412: # All AIX code is PIC.
9413: if test "$host_cpu" = ia64; then
9414: # AIX 5 now supports IA64 processor
9415: lt_prog_compiler_static='-Bstatic'
9416: fi
9417: ;;
9418:
9419: amigaos*)
9420: case $host_cpu in
9421: powerpc)
9422: # see comment about AmigaOS4 .so support
9423: lt_prog_compiler_pic='-fPIC'
9424: ;;
9425: m68k)
9426: # FIXME: we need at least 68020 code to build shared libraries, but
9427: # adding the `-m68020' flag to GCC prevents building anything better,
9428: # like `-m68040'.
9429: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9430: ;;
9431: esac
9432: ;;
9433:
9434: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9435: # PIC is the default for these OSes.
9436: ;;
9437:
9438: mingw* | cygwin* | pw32* | os2* | cegcc*)
9439: # This hack is so that the source file can tell whether it is being
9440: # built for inclusion in a dll (and should export symbols for example).
9441: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9442: # (--disable-auto-import) libraries
9443: lt_prog_compiler_pic='-DDLL_EXPORT'
9444: ;;
9445:
9446: darwin* | rhapsody*)
9447: # PIC is the default on this platform
9448: # Common symbols not allowed in MH_DYLIB files
9449: lt_prog_compiler_pic='-fno-common'
9450: ;;
9451:
9452: haiku*)
9453: # PIC is the default for Haiku.
9454: # The "-static" flag exists, but is broken.
9455: lt_prog_compiler_static=
9456: ;;
9457:
9458: hpux*)
9459: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9460: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9461: # sets the default TLS model and affects inlining.
9462: case $host_cpu in
9463: hppa*64*)
9464: # +Z the default
9465: ;;
9466: *)
9467: lt_prog_compiler_pic='-fPIC'
9468: ;;
9469: esac
9470: ;;
9471:
9472: interix[3-9]*)
9473: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9474: # Instead, we relocate shared libraries at runtime.
9475: ;;
9476:
9477: msdosdjgpp*)
9478: # Just because we use GCC doesn't mean we suddenly get shared libraries
9479: # on systems that don't support them.
9480: lt_prog_compiler_can_build_shared=no
9481: enable_shared=no
9482: ;;
9483:
9484: *nto* | *qnx*)
9485: # QNX uses GNU C++, but need to define -shared option too, otherwise
9486: # it will coredump.
9487: lt_prog_compiler_pic='-fPIC -shared'
9488: ;;
9489:
9490: sysv4*MP*)
9491: if test -d /usr/nec; then
9492: lt_prog_compiler_pic=-Kconform_pic
9493: fi
9494: ;;
9495:
9496: *)
9497: lt_prog_compiler_pic='-fPIC'
9498: ;;
9499: esac
9500:
9501: case $cc_basename in
9502: nvcc*) # Cuda Compiler Driver 2.2
9503: lt_prog_compiler_wl='-Xlinker '
9504: if test -n "$lt_prog_compiler_pic"; then
9505: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9506: fi
9507: ;;
9508: esac
9509: else
9510: # PORTME Check for flag to pass linker flags through the system compiler.
9511: case $host_os in
9512: aix*)
9513: lt_prog_compiler_wl='-Wl,'
9514: if test "$host_cpu" = ia64; then
9515: # AIX 5 now supports IA64 processor
9516: lt_prog_compiler_static='-Bstatic'
9517: else
9518: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9519: fi
9520: ;;
9521:
9522: mingw* | cygwin* | pw32* | os2* | cegcc*)
9523: # This hack is so that the source file can tell whether it is being
9524: # built for inclusion in a dll (and should export symbols for example).
9525: lt_prog_compiler_pic='-DDLL_EXPORT'
9526: ;;
9527:
9528: hpux9* | hpux10* | hpux11*)
9529: lt_prog_compiler_wl='-Wl,'
9530: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9531: # not for PA HP-UX.
9532: case $host_cpu in
9533: hppa*64*|ia64*)
9534: # +Z the default
9535: ;;
9536: *)
9537: lt_prog_compiler_pic='+Z'
9538: ;;
9539: esac
9540: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9541: lt_prog_compiler_static='${wl}-a ${wl}archive'
9542: ;;
9543:
9544: irix5* | irix6* | nonstopux*)
9545: lt_prog_compiler_wl='-Wl,'
9546: # PIC (with -KPIC) is the default.
9547: lt_prog_compiler_static='-non_shared'
9548: ;;
9549:
9550: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9551: case $cc_basename in
9552: # old Intel for x86_64 which still supported -KPIC.
9553: ecc*)
9554: lt_prog_compiler_wl='-Wl,'
9555: lt_prog_compiler_pic='-KPIC'
9556: lt_prog_compiler_static='-static'
9557: ;;
9558: # icc used to be incompatible with GCC.
9559: # ICC 10 doesn't accept -KPIC any more.
9560: icc* | ifort*)
9561: lt_prog_compiler_wl='-Wl,'
9562: lt_prog_compiler_pic='-fPIC'
9563: lt_prog_compiler_static='-static'
9564: ;;
9565: # Lahey Fortran 8.1.
9566: lf95*)
9567: lt_prog_compiler_wl='-Wl,'
9568: lt_prog_compiler_pic='--shared'
9569: lt_prog_compiler_static='--static'
9570: ;;
9571: nagfor*)
9572: # NAG Fortran compiler
9573: lt_prog_compiler_wl='-Wl,-Wl,,'
9574: lt_prog_compiler_pic='-PIC'
9575: lt_prog_compiler_static='-Bstatic'
9576: ;;
9577: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9578: # Portland Group compilers (*not* the Pentium gcc compiler,
9579: # which looks to be a dead project)
9580: lt_prog_compiler_wl='-Wl,'
9581: lt_prog_compiler_pic='-fpic'
9582: lt_prog_compiler_static='-Bstatic'
9583: ;;
9584: ccc*)
9585: lt_prog_compiler_wl='-Wl,'
9586: # All Alpha code is PIC.
9587: lt_prog_compiler_static='-non_shared'
9588: ;;
9589: xl* | bgxl* | bgf* | mpixl*)
9590: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9591: lt_prog_compiler_wl='-Wl,'
9592: lt_prog_compiler_pic='-qpic'
9593: lt_prog_compiler_static='-qstaticlink'
9594: ;;
9595: *)
9596: case `$CC -V 2>&1 | sed 5q` in
9597: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9598: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9599: lt_prog_compiler_pic='-KPIC'
9600: lt_prog_compiler_static='-Bstatic'
9601: lt_prog_compiler_wl=''
9602: ;;
9603: *Sun\ F* | *Sun*Fortran*)
9604: lt_prog_compiler_pic='-KPIC'
9605: lt_prog_compiler_static='-Bstatic'
9606: lt_prog_compiler_wl='-Qoption ld '
9607: ;;
9608: *Sun\ C*)
9609: # Sun C 5.9
9610: lt_prog_compiler_pic='-KPIC'
9611: lt_prog_compiler_static='-Bstatic'
9612: lt_prog_compiler_wl='-Wl,'
9613: ;;
9614: *Intel*\ [CF]*Compiler*)
9615: lt_prog_compiler_wl='-Wl,'
9616: lt_prog_compiler_pic='-fPIC'
9617: lt_prog_compiler_static='-static'
9618: ;;
9619: *Portland\ Group*)
9620: lt_prog_compiler_wl='-Wl,'
9621: lt_prog_compiler_pic='-fpic'
9622: lt_prog_compiler_static='-Bstatic'
9623: ;;
9624: esac
9625: ;;
9626: esac
9627: ;;
9628:
9629: newsos6)
9630: lt_prog_compiler_pic='-KPIC'
9631: lt_prog_compiler_static='-Bstatic'
9632: ;;
9633:
9634: *nto* | *qnx*)
9635: # QNX uses GNU C++, but need to define -shared option too, otherwise
9636: # it will coredump.
9637: lt_prog_compiler_pic='-fPIC -shared'
9638: ;;
9639:
9640: osf3* | osf4* | osf5*)
9641: lt_prog_compiler_wl='-Wl,'
9642: # All OSF/1 code is PIC.
9643: lt_prog_compiler_static='-non_shared'
9644: ;;
9645:
9646: rdos*)
9647: lt_prog_compiler_static='-non_shared'
9648: ;;
9649:
9650: solaris*)
9651: lt_prog_compiler_pic='-KPIC'
9652: lt_prog_compiler_static='-Bstatic'
9653: case $cc_basename in
9654: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9655: lt_prog_compiler_wl='-Qoption ld ';;
9656: *)
9657: lt_prog_compiler_wl='-Wl,';;
9658: esac
9659: ;;
9660:
9661: sunos4*)
9662: lt_prog_compiler_wl='-Qoption ld '
9663: lt_prog_compiler_pic='-PIC'
9664: lt_prog_compiler_static='-Bstatic'
9665: ;;
9666:
9667: sysv4 | sysv4.2uw2* | sysv4.3*)
9668: lt_prog_compiler_wl='-Wl,'
9669: lt_prog_compiler_pic='-KPIC'
9670: lt_prog_compiler_static='-Bstatic'
9671: ;;
9672:
9673: sysv4*MP*)
9674: if test -d /usr/nec ;then
9675: lt_prog_compiler_pic='-Kconform_pic'
9676: lt_prog_compiler_static='-Bstatic'
9677: fi
9678: ;;
9679:
9680: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9681: lt_prog_compiler_wl='-Wl,'
9682: lt_prog_compiler_pic='-KPIC'
9683: lt_prog_compiler_static='-Bstatic'
9684: ;;
9685:
9686: unicos*)
9687: lt_prog_compiler_wl='-Wl,'
9688: lt_prog_compiler_can_build_shared=no
9689: ;;
9690:
9691: uts4*)
9692: lt_prog_compiler_pic='-pic'
9693: lt_prog_compiler_static='-Bstatic'
9694: ;;
9695:
9696: *)
9697: lt_prog_compiler_can_build_shared=no
9698: ;;
9699: esac
9700: fi
9701:
9702: case $host_os in
9703: # For platforms which do not support PIC, -DPIC is meaningless:
9704: *djgpp*)
9705: lt_prog_compiler_pic=
9706: ;;
9707: *)
9708: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9709: ;;
9710: esac
9711:
1.150 moko 9712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9713: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9714: if ${lt_cv_prog_compiler_pic+:} false; then :
9715: $as_echo_n "(cached) " >&6
1.128 moko 9716: else
9717: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9718: fi
1.150 moko 9719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9720: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 9721: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9722:
9723: #
9724: # Check to make sure the PIC flag actually works.
9725: #
9726: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 9727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9728: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9729: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9730: $as_echo_n "(cached) " >&6
1.128 moko 9731: else
9732: lt_cv_prog_compiler_pic_works=no
9733: ac_outfile=conftest.$ac_objext
9734: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9735: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9736: # Insert the option either (1) after the last *FLAGS variable, or
9737: # (2) before a word containing "conftest.", or (3) at the end.
9738: # Note that $ac_compile itself does not contain backslashes and begins
9739: # with a dollar sign (not a hyphen), so the echo should work correctly.
9740: # The option is referenced via a variable to avoid confusing sed.
9741: lt_compile=`echo "$ac_compile" | $SED \
9742: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9743: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9744: -e 's:$: $lt_compiler_flag:'`
9745: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9746: (eval "$lt_compile" 2>conftest.err)
9747: ac_status=$?
9748: cat conftest.err >&5
9749: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750: if (exit $ac_status) && test -s "$ac_outfile"; then
9751: # The compiler can only warn and ignore the option if not recognized
9752: # So say no if there are warnings other than the usual output.
9753: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9754: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9755: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9756: lt_cv_prog_compiler_pic_works=yes
9757: fi
9758: fi
9759: $RM conftest*
9760:
9761: fi
1.150 moko 9762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9763: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 9764:
9765: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9766: case $lt_prog_compiler_pic in
9767: "" | " "*) ;;
9768: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9769: esac
9770: else
9771: lt_prog_compiler_pic=
9772: lt_prog_compiler_can_build_shared=no
9773: fi
9774:
9775: fi
9776:
9777:
9778:
9779:
9780:
9781:
9782:
9783:
9784:
9785:
9786:
9787: #
9788: # Check to make sure the static flag actually works.
9789: #
9790: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 9791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9792: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9793: if ${lt_cv_prog_compiler_static_works+:} false; then :
9794: $as_echo_n "(cached) " >&6
1.128 moko 9795: else
9796: lt_cv_prog_compiler_static_works=no
9797: save_LDFLAGS="$LDFLAGS"
9798: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9799: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9800: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9801: # The linker can only warn and ignore the option if not recognized
9802: # So say no if there are warnings
9803: if test -s conftest.err; then
9804: # Append any errors to the config.log.
9805: cat conftest.err 1>&5
9806: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9807: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9808: if diff conftest.exp conftest.er2 >/dev/null; then
9809: lt_cv_prog_compiler_static_works=yes
9810: fi
9811: else
9812: lt_cv_prog_compiler_static_works=yes
9813: fi
9814: fi
9815: $RM -r conftest*
9816: LDFLAGS="$save_LDFLAGS"
9817:
9818: fi
1.150 moko 9819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9820: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 9821:
9822: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9823: :
9824: else
9825: lt_prog_compiler_static=
9826: fi
9827:
9828:
9829:
9830:
9831:
9832:
9833:
1.150 moko 9834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9835: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9836: if ${lt_cv_prog_compiler_c_o+:} false; then :
9837: $as_echo_n "(cached) " >&6
1.128 moko 9838: else
9839: lt_cv_prog_compiler_c_o=no
9840: $RM -r conftest 2>/dev/null
9841: mkdir conftest
9842: cd conftest
9843: mkdir out
9844: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9845:
9846: lt_compiler_flag="-o out/conftest2.$ac_objext"
9847: # Insert the option either (1) after the last *FLAGS variable, or
9848: # (2) before a word containing "conftest.", or (3) at the end.
9849: # Note that $ac_compile itself does not contain backslashes and begins
9850: # with a dollar sign (not a hyphen), so the echo should work correctly.
9851: lt_compile=`echo "$ac_compile" | $SED \
9852: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9853: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9854: -e 's:$: $lt_compiler_flag:'`
9855: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9856: (eval "$lt_compile" 2>out/conftest.err)
9857: ac_status=$?
9858: cat out/conftest.err >&5
9859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9861: then
9862: # The compiler can only warn and ignore the option if not recognized
9863: # So say no if there are warnings
9864: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9865: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9866: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9867: lt_cv_prog_compiler_c_o=yes
9868: fi
9869: fi
9870: chmod u+w . 2>&5
9871: $RM conftest*
9872: # SGI C++ compiler will create directory out/ii_files/ for
9873: # template instantiation
9874: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9875: $RM out/* && rmdir out
9876: cd ..
9877: $RM -r conftest
9878: $RM conftest*
9879:
9880: fi
1.150 moko 9881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9882: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 9883:
9884:
9885:
9886:
9887:
9888:
1.150 moko 9889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9890: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9891: if ${lt_cv_prog_compiler_c_o+:} false; then :
9892: $as_echo_n "(cached) " >&6
1.128 moko 9893: else
9894: lt_cv_prog_compiler_c_o=no
9895: $RM -r conftest 2>/dev/null
9896: mkdir conftest
9897: cd conftest
9898: mkdir out
9899: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9900:
9901: lt_compiler_flag="-o out/conftest2.$ac_objext"
9902: # Insert the option either (1) after the last *FLAGS variable, or
9903: # (2) before a word containing "conftest.", or (3) at the end.
9904: # Note that $ac_compile itself does not contain backslashes and begins
9905: # with a dollar sign (not a hyphen), so the echo should work correctly.
9906: lt_compile=`echo "$ac_compile" | $SED \
9907: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9908: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9909: -e 's:$: $lt_compiler_flag:'`
9910: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9911: (eval "$lt_compile" 2>out/conftest.err)
9912: ac_status=$?
9913: cat out/conftest.err >&5
9914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9916: then
9917: # The compiler can only warn and ignore the option if not recognized
9918: # So say no if there are warnings
9919: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9920: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9921: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9922: lt_cv_prog_compiler_c_o=yes
9923: fi
9924: fi
9925: chmod u+w . 2>&5
9926: $RM conftest*
9927: # SGI C++ compiler will create directory out/ii_files/ for
9928: # template instantiation
9929: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9930: $RM out/* && rmdir out
9931: cd ..
9932: $RM -r conftest
9933: $RM conftest*
9934:
9935: fi
1.150 moko 9936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9937: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 9938:
9939:
9940:
9941:
9942: hard_links="nottested"
9943: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9944: # do not overwrite the value of need_locks provided by the user
1.150 moko 9945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9946: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 9947: hard_links=yes
9948: $RM conftest*
9949: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9950: touch conftest.a
9951: ln conftest.a conftest.b 2>&5 || hard_links=no
9952: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 9953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9954: $as_echo "$hard_links" >&6; }
1.128 moko 9955: if test "$hard_links" = no; then
1.150 moko 9956: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9957: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 9958: need_locks=warn
9959: fi
9960: else
9961: need_locks=no
9962: fi
9963:
9964:
9965:
9966:
9967:
9968:
1.150 moko 9969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9970: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 9971:
9972: runpath_var=
9973: allow_undefined_flag=
9974: always_export_symbols=no
9975: archive_cmds=
9976: archive_expsym_cmds=
9977: compiler_needs_object=no
9978: enable_shared_with_static_runtimes=no
9979: export_dynamic_flag_spec=
9980: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9981: hardcode_automatic=no
9982: hardcode_direct=no
9983: hardcode_direct_absolute=no
9984: hardcode_libdir_flag_spec=
9985: hardcode_libdir_separator=
9986: hardcode_minus_L=no
9987: hardcode_shlibpath_var=unsupported
9988: inherit_rpath=no
9989: link_all_deplibs=unknown
9990: module_cmds=
9991: module_expsym_cmds=
9992: old_archive_from_new_cmds=
9993: old_archive_from_expsyms_cmds=
9994: thread_safe_flag_spec=
9995: whole_archive_flag_spec=
9996: # include_expsyms should be a list of space-separated symbols to be *always*
9997: # included in the symbol list
9998: include_expsyms=
9999: # exclude_expsyms can be an extended regexp of symbols to exclude
10000: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10001: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10002: # as well as any symbol that contains `d'.
10003: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10004: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10005: # platforms (ab)use it in PIC code, but their linkers get confused if
10006: # the symbol is explicitly referenced. Since portable code cannot
10007: # rely on this symbol name, it's probably fine to never include it in
10008: # preloaded symbol tables.
10009: # Exclude shared library initialization/finalization symbols.
10010: extract_expsyms_cmds=
10011:
10012: case $host_os in
10013: cygwin* | mingw* | pw32* | cegcc*)
10014: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10015: # When not using gcc, we currently assume that we are using
10016: # Microsoft Visual C++.
10017: if test "$GCC" != yes; then
10018: with_gnu_ld=no
10019: fi
10020: ;;
10021: interix*)
10022: # we just hope/assume this is gcc and not c89 (= MSVC++)
10023: with_gnu_ld=yes
10024: ;;
10025: openbsd*)
10026: with_gnu_ld=no
10027: ;;
10028: esac
10029:
10030: ld_shlibs=yes
10031:
10032: # On some targets, GNU ld is compatible enough with the native linker
10033: # that we're better off using the native interface for both.
10034: lt_use_gnu_ld_interface=no
10035: if test "$with_gnu_ld" = yes; then
10036: case $host_os in
10037: aix*)
10038: # The AIX port of GNU ld has always aspired to compatibility
10039: # with the native linker. However, as the warning in the GNU ld
10040: # block says, versions before 2.19.5* couldn't really create working
10041: # shared libraries, regardless of the interface used.
10042: case `$LD -v 2>&1` in
10043: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10044: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10045: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10046: *)
10047: lt_use_gnu_ld_interface=yes
10048: ;;
10049: esac
10050: ;;
10051: *)
10052: lt_use_gnu_ld_interface=yes
10053: ;;
10054: esac
10055: fi
10056:
10057: if test "$lt_use_gnu_ld_interface" = yes; then
10058: # If archive_cmds runs LD, not CC, wlarc should be empty
10059: wlarc='${wl}'
10060:
10061: # Set some defaults for GNU ld with shared library support. These
10062: # are reset later if shared libraries are not supported. Putting them
10063: # here allows them to be overridden if necessary.
10064: runpath_var=LD_RUN_PATH
10065: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066: export_dynamic_flag_spec='${wl}--export-dynamic'
10067: # ancient GNU ld didn't support --whole-archive et. al.
10068: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10069: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10070: else
10071: whole_archive_flag_spec=
10072: fi
10073: supports_anon_versioning=no
10074: case `$LD -v 2>&1` in
10075: *GNU\ gold*) supports_anon_versioning=yes ;;
10076: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10077: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10078: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10079: *\ 2.11.*) ;; # other 2.11 versions
10080: *) supports_anon_versioning=yes ;;
10081: esac
10082:
10083: # See if GNU ld supports shared libraries.
10084: case $host_os in
10085: aix[3-9]*)
10086: # On AIX/PPC, the GNU linker is very broken
10087: if test "$host_cpu" != ia64; then
10088: ld_shlibs=no
10089: cat <<_LT_EOF 1>&2
10090:
10091: *** Warning: the GNU linker, at least up to release 2.19, is reported
10092: *** to be unable to reliably create shared libraries on AIX.
10093: *** Therefore, libtool is disabling shared libraries support. If you
10094: *** really care for shared libraries, you may want to install binutils
10095: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10096: *** You will then need to restart the configuration process.
10097:
10098: _LT_EOF
10099: fi
10100: ;;
10101:
10102: amigaos*)
10103: case $host_cpu in
10104: powerpc)
10105: # see comment about AmigaOS4 .so support
10106: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10107: archive_expsym_cmds=''
10108: ;;
10109: m68k)
10110: 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)'
10111: hardcode_libdir_flag_spec='-L$libdir'
10112: hardcode_minus_L=yes
10113: ;;
10114: esac
10115: ;;
10116:
10117: beos*)
10118: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10119: allow_undefined_flag=unsupported
10120: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10121: # support --undefined. This deserves some investigation. FIXME
10122: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123: else
10124: ld_shlibs=no
10125: fi
10126: ;;
10127:
10128: cygwin* | mingw* | pw32* | cegcc*)
10129: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10130: # as there is no search path for DLLs.
10131: hardcode_libdir_flag_spec='-L$libdir'
10132: export_dynamic_flag_spec='${wl}--export-all-symbols'
10133: allow_undefined_flag=unsupported
10134: always_export_symbols=no
10135: enable_shared_with_static_runtimes=yes
10136: 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'
10137: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10138:
10139: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10140: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10141: # If the export-symbols file already is a .def file (1st line
10142: # is EXPORTS), use it as is; otherwise, prepend...
10143: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10144: cp $export_symbols $output_objdir/$soname.def;
10145: else
10146: echo EXPORTS > $output_objdir/$soname.def;
10147: cat $export_symbols >> $output_objdir/$soname.def;
10148: fi~
10149: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10150: else
10151: ld_shlibs=no
10152: fi
10153: ;;
10154:
10155: haiku*)
10156: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157: link_all_deplibs=yes
10158: ;;
10159:
10160: interix[3-9]*)
10161: hardcode_direct=no
10162: hardcode_shlibpath_var=no
10163: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10164: export_dynamic_flag_spec='${wl}-E'
10165: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10166: # Instead, shared libraries are loaded at an image base (0x10000000 by
10167: # default) and relocated if they conflict, which is a slow very memory
10168: # consuming and fragmenting process. To avoid this, we pick a random,
10169: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10170: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10171: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10172: 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'
10173: ;;
10174:
10175: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10176: tmp_diet=no
10177: if test "$host_os" = linux-dietlibc; then
10178: case $cc_basename in
10179: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10180: esac
10181: fi
10182: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10183: && test "$tmp_diet" = no
10184: then
10185: tmp_addflag=' $pic_flag'
10186: tmp_sharedflag='-shared'
10187: case $cc_basename,$host_cpu in
10188: pgcc*) # Portland Group C compiler
10189: 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'
10190: tmp_addflag=' $pic_flag'
10191: ;;
10192: pgf77* | pgf90* | pgf95* | pgfortran*)
10193: # Portland Group f77 and f90 compilers
10194: 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'
10195: tmp_addflag=' $pic_flag -Mnomain' ;;
10196: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10197: tmp_addflag=' -i_dynamic' ;;
10198: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10199: tmp_addflag=' -i_dynamic -nofor_main' ;;
10200: ifc* | ifort*) # Intel Fortran compiler
10201: tmp_addflag=' -nofor_main' ;;
10202: lf95*) # Lahey Fortran 8.1
10203: whole_archive_flag_spec=
10204: tmp_sharedflag='--shared' ;;
10205: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10206: tmp_sharedflag='-qmkshrobj'
10207: tmp_addflag= ;;
10208: nvcc*) # Cuda Compiler Driver 2.2
10209: 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'
10210: compiler_needs_object=yes
10211: ;;
10212: esac
10213: case `$CC -V 2>&1 | sed 5q` in
10214: *Sun\ C*) # Sun C 5.9
10215: 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'
10216: compiler_needs_object=yes
10217: tmp_sharedflag='-G' ;;
10218: *Sun\ F*) # Sun Fortran 8.3
10219: tmp_sharedflag='-G' ;;
10220: esac
10221: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10222:
10223: if test "x$supports_anon_versioning" = xyes; then
10224: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10225: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10226: echo "local: *; };" >> $output_objdir/$libname.ver~
10227: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10228: fi
10229:
10230: case $cc_basename in
10231: xlf* | bgf* | bgxlf* | mpixlf*)
10232: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10233: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10234: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10235: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10236: if test "x$supports_anon_versioning" = xyes; then
10237: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10238: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10239: echo "local: *; };" >> $output_objdir/$libname.ver~
10240: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10241: fi
10242: ;;
10243: esac
10244: else
10245: ld_shlibs=no
10246: fi
10247: ;;
10248:
10249: netbsd*)
10250: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10251: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10252: wlarc=
10253: else
10254: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10255: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10256: fi
10257: ;;
10258:
10259: solaris*)
10260: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10261: ld_shlibs=no
10262: cat <<_LT_EOF 1>&2
10263:
10264: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10265: *** create shared libraries on Solaris systems. Therefore, libtool
10266: *** is disabling shared libraries support. We urge you to upgrade GNU
10267: *** binutils to release 2.9.1 or newer. Another option is to modify
10268: *** your PATH or compiler configuration so that the native linker is
10269: *** used, and then restart.
10270:
10271: _LT_EOF
10272: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10273: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10274: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10275: else
10276: ld_shlibs=no
10277: fi
10278: ;;
10279:
10280: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10281: case `$LD -v 2>&1` in
10282: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10283: ld_shlibs=no
10284: cat <<_LT_EOF 1>&2
10285:
10286: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10287: *** reliably create shared libraries on SCO systems. Therefore, libtool
10288: *** is disabling shared libraries support. We urge you to upgrade GNU
10289: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10290: *** your PATH or compiler configuration so that the native linker is
10291: *** used, and then restart.
10292:
10293: _LT_EOF
10294: ;;
10295: *)
10296: # For security reasons, it is highly recommended that you always
10297: # use absolute paths for naming shared libraries, and exclude the
10298: # DT_RUNPATH tag from executables and libraries. But doing so
10299: # requires that you compile everything twice, which is a pain.
10300: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10301: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10302: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10303: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10304: else
10305: ld_shlibs=no
10306: fi
10307: ;;
10308: esac
10309: ;;
10310:
10311: sunos4*)
10312: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10313: wlarc=
10314: hardcode_direct=yes
10315: hardcode_shlibpath_var=no
10316: ;;
10317:
10318: *)
10319: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10320: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10321: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10322: else
10323: ld_shlibs=no
10324: fi
10325: ;;
10326: esac
10327:
10328: if test "$ld_shlibs" = no; then
10329: runpath_var=
10330: hardcode_libdir_flag_spec=
10331: export_dynamic_flag_spec=
10332: whole_archive_flag_spec=
10333: fi
10334: else
10335: # PORTME fill in a description of your system's linker (not GNU ld)
10336: case $host_os in
10337: aix3*)
10338: allow_undefined_flag=unsupported
10339: always_export_symbols=yes
10340: 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'
10341: # Note: this linker hardcodes the directories in LIBPATH if there
10342: # are no directories specified by -L.
10343: hardcode_minus_L=yes
10344: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10345: # Neither direct hardcoding nor static linking is supported with a
10346: # broken collect2.
10347: hardcode_direct=unsupported
10348: fi
10349: ;;
10350:
10351: aix[4-9]*)
10352: if test "$host_cpu" = ia64; then
10353: # On IA64, the linker does run time linking by default, so we don't
10354: # have to do anything special.
10355: aix_use_runtimelinking=no
10356: exp_sym_flag='-Bexport'
10357: no_entry_flag=""
10358: else
10359: # If we're using GNU nm, then we don't want the "-C" option.
10360: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10361: # Also, AIX nm treats weak defined symbols like other global
10362: # defined symbols, whereas GNU nm marks them as "W".
10363: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10364: 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'
10365: else
10366: 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'
10367: fi
10368: aix_use_runtimelinking=no
10369:
10370: # Test if we are trying to use run time linking or normal
10371: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10372: # need to do runtime linking.
10373: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10374: for ld_flag in $LDFLAGS; do
10375: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10376: aix_use_runtimelinking=yes
10377: break
10378: fi
10379: done
10380: ;;
10381: esac
10382:
10383: exp_sym_flag='-bexport'
10384: no_entry_flag='-bnoentry'
10385: fi
10386:
10387: # When large executables or shared objects are built, AIX ld can
10388: # have problems creating the table of contents. If linking a library
10389: # or program results in "error TOC overflow" add -mminimal-toc to
10390: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10391: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10392:
10393: archive_cmds=''
10394: hardcode_direct=yes
10395: hardcode_direct_absolute=yes
10396: hardcode_libdir_separator=':'
10397: link_all_deplibs=yes
10398: file_list_spec='${wl}-f,'
10399:
10400: if test "$GCC" = yes; then
10401: case $host_os in aix4.[012]|aix4.[012].*)
10402: # We only want to do this on AIX 4.2 and lower, the check
10403: # below for broken collect2 doesn't work under 4.3+
10404: collect2name=`${CC} -print-prog-name=collect2`
10405: if test -f "$collect2name" &&
10406: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10407: then
10408: # We have reworked collect2
10409: :
10410: else
10411: # We have old collect2
10412: hardcode_direct=unsupported
10413: # It fails to find uninstalled libraries when the uninstalled
10414: # path is not listed in the libpath. Setting hardcode_minus_L
10415: # to unsupported forces relinking
10416: hardcode_minus_L=yes
10417: hardcode_libdir_flag_spec='-L$libdir'
10418: hardcode_libdir_separator=
10419: fi
10420: ;;
10421: esac
10422: shared_flag='-shared'
10423: if test "$aix_use_runtimelinking" = yes; then
10424: shared_flag="$shared_flag "'${wl}-G'
10425: fi
10426: else
10427: # not using gcc
10428: if test "$host_cpu" = ia64; then
10429: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10430: # chokes on -Wl,-G. The following line is correct:
10431: shared_flag='-G'
10432: else
10433: if test "$aix_use_runtimelinking" = yes; then
10434: shared_flag='${wl}-G'
10435: else
10436: shared_flag='${wl}-bM:SRE'
10437: fi
10438: fi
10439: fi
10440:
10441: export_dynamic_flag_spec='${wl}-bexpall'
10442: # It seems that -bexpall does not export symbols beginning with
10443: # underscore (_), so it is better to generate a list of symbols to export.
10444: always_export_symbols=yes
10445: if test "$aix_use_runtimelinking" = yes; then
10446: # Warning - without using the other runtime loading flags (-brtl),
10447: # -berok will link without error, but may produce a broken library.
10448: allow_undefined_flag='-berok'
10449: # Determine the default libpath from the value encoded in an
10450: # empty executable.
10451: if test "${lt_cv_aix_libpath+set}" = set; then
10452: aix_libpath=$lt_cv_aix_libpath
10453: else
1.150 moko 10454: if ${lt_cv_aix_libpath_+:} false; then :
10455: $as_echo_n "(cached) " >&6
1.128 moko 10456: else
1.150 moko 10457: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10458: /* end confdefs.h. */
10459:
10460: int
10461: main ()
10462: {
10463:
10464: ;
10465: return 0;
10466: }
10467: _ACEOF
1.150 moko 10468: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10469:
10470: lt_aix_libpath_sed='
10471: /Import File Strings/,/^$/ {
10472: /^0/ {
10473: s/^0 *\([^ ]*\) *$/\1/
10474: p
10475: }
10476: }'
10477: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478: # Check for a 64-bit object if we didn't find anything.
10479: if test -z "$lt_cv_aix_libpath_"; then
10480: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481: fi
10482: fi
1.150 moko 10483: rm -f core conftest.err conftest.$ac_objext \
10484: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10485: if test -z "$lt_cv_aix_libpath_"; then
10486: lt_cv_aix_libpath_="/usr/lib:/lib"
10487: fi
10488:
10489: fi
10490:
10491: aix_libpath=$lt_cv_aix_libpath_
10492: fi
10493:
10494: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10495: 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"
10496: else
10497: if test "$host_cpu" = ia64; then
10498: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10499: allow_undefined_flag="-z nodefs"
10500: 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"
10501: else
10502: # Determine the default libpath from the value encoded in an
10503: # empty executable.
10504: if test "${lt_cv_aix_libpath+set}" = set; then
10505: aix_libpath=$lt_cv_aix_libpath
10506: else
1.150 moko 10507: if ${lt_cv_aix_libpath_+:} false; then :
10508: $as_echo_n "(cached) " >&6
1.128 moko 10509: else
1.150 moko 10510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10511: /* end confdefs.h. */
10512:
10513: int
10514: main ()
10515: {
10516:
10517: ;
10518: return 0;
10519: }
10520: _ACEOF
1.150 moko 10521: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10522:
10523: lt_aix_libpath_sed='
10524: /Import File Strings/,/^$/ {
10525: /^0/ {
10526: s/^0 *\([^ ]*\) *$/\1/
10527: p
10528: }
10529: }'
10530: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10531: # Check for a 64-bit object if we didn't find anything.
10532: if test -z "$lt_cv_aix_libpath_"; then
10533: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534: fi
10535: fi
1.150 moko 10536: rm -f core conftest.err conftest.$ac_objext \
10537: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10538: if test -z "$lt_cv_aix_libpath_"; then
10539: lt_cv_aix_libpath_="/usr/lib:/lib"
10540: fi
10541:
10542: fi
10543:
10544: aix_libpath=$lt_cv_aix_libpath_
10545: fi
10546:
10547: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10548: # Warning - without using the other run time loading flags,
10549: # -berok will link without error, but may produce a broken library.
10550: no_undefined_flag=' ${wl}-bernotok'
10551: allow_undefined_flag=' ${wl}-berok'
10552: if test "$with_gnu_ld" = yes; then
10553: # We only use this code for GNU lds that support --whole-archive.
10554: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10555: else
10556: # Exported symbols can be pulled into shared objects from archives
10557: whole_archive_flag_spec='$convenience'
10558: fi
10559: archive_cmds_need_lc=yes
10560: # This is similar to how AIX traditionally builds its shared libraries.
10561: 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'
10562: fi
10563: fi
10564: ;;
10565:
10566: amigaos*)
10567: case $host_cpu in
10568: powerpc)
10569: # see comment about AmigaOS4 .so support
10570: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571: archive_expsym_cmds=''
10572: ;;
10573: m68k)
10574: 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)'
10575: hardcode_libdir_flag_spec='-L$libdir'
10576: hardcode_minus_L=yes
10577: ;;
10578: esac
10579: ;;
10580:
10581: bsdi[45]*)
10582: export_dynamic_flag_spec=-rdynamic
10583: ;;
10584:
10585: cygwin* | mingw* | pw32* | cegcc*)
10586: # When not using gcc, we currently assume that we are using
10587: # Microsoft Visual C++.
10588: # hardcode_libdir_flag_spec is actually meaningless, as there is
10589: # no search path for DLLs.
10590: case $cc_basename in
10591: cl*)
10592: # Native MSVC
10593: hardcode_libdir_flag_spec=' '
10594: allow_undefined_flag=unsupported
10595: always_export_symbols=yes
10596: file_list_spec='@'
10597: # Tell ltmain to make .lib files, not .a files.
10598: libext=lib
10599: # Tell ltmain to make .dll files, not .so files.
10600: shrext_cmds=".dll"
10601: # FIXME: Setting linknames here is a bad hack.
10602: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10603: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10604: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10605: else
10606: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10607: fi~
10608: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10609: linknames='
10610: # The linker will not automatically build a static lib if we build a DLL.
10611: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10612: enable_shared_with_static_runtimes=yes
10613: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10614: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10615: # Don't use ranlib
10616: old_postinstall_cmds='chmod 644 $oldlib'
10617: postlink_cmds='lt_outputfile="@OUTPUT@"~
10618: lt_tool_outputfile="@TOOL_OUTPUT@"~
10619: case $lt_outputfile in
10620: *.exe|*.EXE) ;;
10621: *)
10622: lt_outputfile="$lt_outputfile.exe"
10623: lt_tool_outputfile="$lt_tool_outputfile.exe"
10624: ;;
10625: esac~
10626: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10627: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10628: $RM "$lt_outputfile.manifest";
10629: fi'
10630: ;;
10631: *)
10632: # Assume MSVC wrapper
10633: hardcode_libdir_flag_spec=' '
10634: allow_undefined_flag=unsupported
10635: # Tell ltmain to make .lib files, not .a files.
10636: libext=lib
10637: # Tell ltmain to make .dll files, not .so files.
10638: shrext_cmds=".dll"
10639: # FIXME: Setting linknames here is a bad hack.
10640: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10641: # The linker will automatically build a .lib file if we build a DLL.
10642: old_archive_from_new_cmds='true'
10643: # FIXME: Should let the user specify the lib program.
10644: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10645: enable_shared_with_static_runtimes=yes
10646: ;;
10647: esac
10648: ;;
10649:
10650: darwin* | rhapsody*)
10651:
10652:
10653: archive_cmds_need_lc=no
10654: hardcode_direct=no
10655: hardcode_automatic=yes
10656: hardcode_shlibpath_var=unsupported
10657: if test "$lt_cv_ld_force_load" = "yes"; then
10658: 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\"`'
10659:
10660: else
10661: whole_archive_flag_spec=''
10662: fi
10663: link_all_deplibs=yes
10664: allow_undefined_flag="$_lt_dar_allow_undefined"
10665: case $cc_basename in
10666: ifort*) _lt_dar_can_shared=yes ;;
10667: *) _lt_dar_can_shared=$GCC ;;
10668: esac
10669: if test "$_lt_dar_can_shared" = "yes"; then
10670: output_verbose_link_cmd=func_echo_all
10671: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10672: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10673: 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}"
10674: 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}"
10675:
10676: else
10677: ld_shlibs=no
10678: fi
10679:
10680: ;;
10681:
10682: dgux*)
10683: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10684: hardcode_libdir_flag_spec='-L$libdir'
10685: hardcode_shlibpath_var=no
10686: ;;
10687:
10688: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10689: # support. Future versions do this automatically, but an explicit c++rt0.o
10690: # does not break anything, and helps significantly (at the cost of a little
10691: # extra space).
10692: freebsd2.2*)
10693: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10694: hardcode_libdir_flag_spec='-R$libdir'
10695: hardcode_direct=yes
10696: hardcode_shlibpath_var=no
10697: ;;
10698:
10699: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10700: freebsd2.*)
10701: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10702: hardcode_direct=yes
10703: hardcode_minus_L=yes
10704: hardcode_shlibpath_var=no
10705: ;;
10706:
10707: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10708: freebsd* | dragonfly*)
10709: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10710: hardcode_libdir_flag_spec='-R$libdir'
10711: hardcode_direct=yes
10712: hardcode_shlibpath_var=no
10713: ;;
10714:
10715: hpux9*)
10716: if test "$GCC" = yes; then
10717: 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'
10718: else
10719: 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'
10720: fi
10721: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10722: hardcode_libdir_separator=:
10723: hardcode_direct=yes
10724:
10725: # hardcode_minus_L: Not really in the search PATH,
10726: # but as the default location of the library.
10727: hardcode_minus_L=yes
10728: export_dynamic_flag_spec='${wl}-E'
10729: ;;
10730:
10731: hpux10*)
10732: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10733: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10734: else
10735: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10736: fi
10737: if test "$with_gnu_ld" = no; then
10738: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10739: hardcode_libdir_separator=:
10740: hardcode_direct=yes
10741: hardcode_direct_absolute=yes
10742: export_dynamic_flag_spec='${wl}-E'
10743: # hardcode_minus_L: Not really in the search PATH,
10744: # but as the default location of the library.
10745: hardcode_minus_L=yes
10746: fi
10747: ;;
10748:
10749: hpux11*)
10750: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10751: case $host_cpu in
10752: hppa*64*)
10753: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10754: ;;
10755: ia64*)
10756: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10757: ;;
10758: *)
10759: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10760: ;;
10761: esac
10762: else
10763: case $host_cpu in
10764: hppa*64*)
10765: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10766: ;;
10767: ia64*)
10768: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10769: ;;
10770: *)
10771:
10772: # Older versions of the 11.00 compiler do not understand -b yet
10773: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 10774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10775: $as_echo_n "checking if $CC understands -b... " >&6; }
10776: if ${lt_cv_prog_compiler__b+:} false; then :
10777: $as_echo_n "(cached) " >&6
1.128 moko 10778: else
10779: lt_cv_prog_compiler__b=no
10780: save_LDFLAGS="$LDFLAGS"
10781: LDFLAGS="$LDFLAGS -b"
10782: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10783: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10784: # The linker can only warn and ignore the option if not recognized
10785: # So say no if there are warnings
10786: if test -s conftest.err; then
10787: # Append any errors to the config.log.
10788: cat conftest.err 1>&5
10789: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10790: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10791: if diff conftest.exp conftest.er2 >/dev/null; then
10792: lt_cv_prog_compiler__b=yes
10793: fi
10794: else
10795: lt_cv_prog_compiler__b=yes
10796: fi
10797: fi
10798: $RM -r conftest*
10799: LDFLAGS="$save_LDFLAGS"
10800:
10801: fi
1.150 moko 10802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10803: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 10804:
10805: if test x"$lt_cv_prog_compiler__b" = xyes; then
10806: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10807: else
10808: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10809: fi
10810:
10811: ;;
10812: esac
10813: fi
10814: if test "$with_gnu_ld" = no; then
10815: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10816: hardcode_libdir_separator=:
10817:
10818: case $host_cpu in
10819: hppa*64*|ia64*)
10820: hardcode_direct=no
10821: hardcode_shlibpath_var=no
10822: ;;
10823: *)
10824: hardcode_direct=yes
10825: hardcode_direct_absolute=yes
10826: export_dynamic_flag_spec='${wl}-E'
10827:
10828: # hardcode_minus_L: Not really in the search PATH,
10829: # but as the default location of the library.
10830: hardcode_minus_L=yes
10831: ;;
10832: esac
10833: fi
10834: ;;
10835:
10836: irix5* | irix6* | nonstopux*)
10837: if test "$GCC" = yes; then
10838: 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'
10839: # Try to use the -exported_symbol ld option, if it does not
10840: # work, assume that -exports_file does not work either and
10841: # implicitly export all symbols.
10842: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 10843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10844: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10845: if ${lt_cv_irix_exported_symbol+:} false; then :
10846: $as_echo_n "(cached) " >&6
1.128 moko 10847: else
10848: save_LDFLAGS="$LDFLAGS"
10849: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 10850: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10851: /* end confdefs.h. */
10852: int foo (void) { return 0; }
10853: _ACEOF
1.150 moko 10854: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10855: lt_cv_irix_exported_symbol=yes
10856: else
1.150 moko 10857: lt_cv_irix_exported_symbol=no
1.128 moko 10858: fi
1.150 moko 10859: rm -f core conftest.err conftest.$ac_objext \
10860: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10861: LDFLAGS="$save_LDFLAGS"
10862: fi
1.150 moko 10863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10864: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 10865: if test "$lt_cv_irix_exported_symbol" = yes; then
10866: 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'
10867: fi
10868: else
10869: 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'
10870: 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'
10871: fi
10872: archive_cmds_need_lc='no'
10873: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10874: hardcode_libdir_separator=:
10875: inherit_rpath=yes
10876: link_all_deplibs=yes
10877: ;;
10878:
10879: netbsd*)
10880: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10881: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10882: else
10883: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10884: fi
10885: hardcode_libdir_flag_spec='-R$libdir'
10886: hardcode_direct=yes
10887: hardcode_shlibpath_var=no
10888: ;;
10889:
10890: newsos6)
10891: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892: hardcode_direct=yes
10893: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10894: hardcode_libdir_separator=:
10895: hardcode_shlibpath_var=no
10896: ;;
10897:
10898: *nto* | *qnx*)
10899: ;;
10900:
10901: openbsd*)
10902: if test -f /usr/libexec/ld.so; then
10903: hardcode_direct=yes
10904: hardcode_shlibpath_var=no
10905: hardcode_direct_absolute=yes
10906: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10907: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10908: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10909: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10910: export_dynamic_flag_spec='${wl}-E'
10911: else
10912: case $host_os in
10913: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10914: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10915: hardcode_libdir_flag_spec='-R$libdir'
10916: ;;
10917: *)
10918: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10919: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10920: ;;
10921: esac
10922: fi
10923: else
10924: ld_shlibs=no
10925: fi
10926: ;;
10927:
10928: os2*)
10929: hardcode_libdir_flag_spec='-L$libdir'
10930: hardcode_minus_L=yes
10931: allow_undefined_flag=unsupported
10932: 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'
10933: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10934: ;;
10935:
10936: osf3*)
10937: if test "$GCC" = yes; then
10938: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10939: 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'
10940: else
10941: allow_undefined_flag=' -expect_unresolved \*'
10942: 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'
10943: fi
10944: archive_cmds_need_lc='no'
10945: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946: hardcode_libdir_separator=:
10947: ;;
10948:
10949: osf4* | osf5*) # as osf3* with the addition of -msym flag
10950: if test "$GCC" = yes; then
10951: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10952: 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'
10953: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10954: else
10955: allow_undefined_flag=' -expect_unresolved \*'
10956: 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'
10957: 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~
10958: $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'
10959:
10960: # Both c and cxx compiler support -rpath directly
10961: hardcode_libdir_flag_spec='-rpath $libdir'
10962: fi
10963: archive_cmds_need_lc='no'
10964: hardcode_libdir_separator=:
10965: ;;
10966:
10967: solaris*)
10968: no_undefined_flag=' -z defs'
10969: if test "$GCC" = yes; then
10970: wlarc='${wl}'
10971: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10972: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10973: $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'
10974: else
10975: case `$CC -V 2>&1` in
10976: *"Compilers 5.0"*)
10977: wlarc=''
10978: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10980: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10981: ;;
10982: *)
10983: wlarc='${wl}'
10984: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10985: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10986: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10987: ;;
10988: esac
10989: fi
10990: hardcode_libdir_flag_spec='-R$libdir'
10991: hardcode_shlibpath_var=no
10992: case $host_os in
10993: solaris2.[0-5] | solaris2.[0-5].*) ;;
10994: *)
10995: # The compiler driver will combine and reorder linker options,
10996: # but understands `-z linker_flag'. GCC discards it without `$wl',
10997: # but is careful enough not to reorder.
10998: # Supported since Solaris 2.6 (maybe 2.5.1?)
10999: if test "$GCC" = yes; then
11000: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11001: else
11002: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11003: fi
11004: ;;
11005: esac
11006: link_all_deplibs=yes
11007: ;;
11008:
11009: sunos4*)
11010: if test "x$host_vendor" = xsequent; then
11011: # Use $CC to link under sequent, because it throws in some extra .o
11012: # files that make .init and .fini sections work.
11013: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11014: else
11015: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11016: fi
11017: hardcode_libdir_flag_spec='-L$libdir'
11018: hardcode_direct=yes
11019: hardcode_minus_L=yes
11020: hardcode_shlibpath_var=no
11021: ;;
11022:
11023: sysv4)
11024: case $host_vendor in
11025: sni)
11026: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027: hardcode_direct=yes # is this really true???
11028: ;;
11029: siemens)
11030: ## LD is ld it makes a PLAMLIB
11031: ## CC just makes a GrossModule.
11032: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11033: reload_cmds='$CC -r -o $output$reload_objs'
11034: hardcode_direct=no
11035: ;;
11036: motorola)
11037: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11039: ;;
11040: esac
11041: runpath_var='LD_RUN_PATH'
11042: hardcode_shlibpath_var=no
11043: ;;
11044:
11045: sysv4.3*)
11046: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11047: hardcode_shlibpath_var=no
11048: export_dynamic_flag_spec='-Bexport'
11049: ;;
11050:
11051: sysv4*MP*)
11052: if test -d /usr/nec; then
11053: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11054: hardcode_shlibpath_var=no
11055: runpath_var=LD_RUN_PATH
11056: hardcode_runpath_var=yes
11057: ld_shlibs=yes
11058: fi
11059: ;;
11060:
11061: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11062: no_undefined_flag='${wl}-z,text'
11063: archive_cmds_need_lc=no
11064: hardcode_shlibpath_var=no
11065: runpath_var='LD_RUN_PATH'
11066:
11067: if test "$GCC" = yes; then
11068: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11069: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11070: else
11071: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11072: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11073: fi
11074: ;;
11075:
11076: sysv5* | sco3.2v5* | sco5v6*)
11077: # Note: We can NOT use -z defs as we might desire, because we do not
11078: # link with -lc, and that would cause any symbols used from libc to
11079: # always be unresolved, which means just about no library would
11080: # ever link correctly. If we're not using GNU ld we use -z text
11081: # though, which does catch some bad symbols but isn't as heavy-handed
11082: # as -z defs.
11083: no_undefined_flag='${wl}-z,text'
11084: allow_undefined_flag='${wl}-z,nodefs'
11085: archive_cmds_need_lc=no
11086: hardcode_shlibpath_var=no
11087: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11088: hardcode_libdir_separator=':'
11089: link_all_deplibs=yes
11090: export_dynamic_flag_spec='${wl}-Bexport'
11091: runpath_var='LD_RUN_PATH'
11092:
11093: if test "$GCC" = yes; then
11094: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11095: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11096: else
11097: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11099: fi
11100: ;;
11101:
11102: uts4*)
11103: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11104: hardcode_libdir_flag_spec='-L$libdir'
11105: hardcode_shlibpath_var=no
11106: ;;
11107:
11108: *)
11109: ld_shlibs=no
11110: ;;
11111: esac
11112:
11113: if test x$host_vendor = xsni; then
11114: case $host in
11115: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11116: export_dynamic_flag_spec='${wl}-Blargedynsym'
11117: ;;
11118: esac
11119: fi
11120: fi
11121:
1.150 moko 11122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11123: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11124: test "$ld_shlibs" = no && can_build_shared=no
11125:
11126: with_gnu_ld=$with_gnu_ld
11127:
11128:
11129:
11130:
11131:
11132:
11133:
11134:
11135:
11136:
11137:
11138:
11139:
11140:
11141:
11142: #
11143: # Do we need to explicitly link libc?
11144: #
11145: case "x$archive_cmds_need_lc" in
11146: x|xyes)
11147: # Assume -lc should be added
11148: archive_cmds_need_lc=yes
11149:
11150: if test "$enable_shared" = yes && test "$GCC" = yes; then
11151: case $archive_cmds in
11152: *'~'*)
11153: # FIXME: we may have to deal with multi-command sequences.
11154: ;;
11155: '$CC '*)
11156: # Test whether the compiler implicitly links with -lc since on some
11157: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11158: # to ld, don't add -lc before -lgcc.
1.150 moko 11159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11160: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11161: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11162: $as_echo_n "(cached) " >&6
1.128 moko 11163: else
11164: $RM conftest*
11165: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11166:
1.150 moko 11167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11168: (eval $ac_compile) 2>&5
11169: ac_status=$?
1.150 moko 11170: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11171: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11172: soname=conftest
11173: lib=conftest
11174: libobjs=conftest.$ac_objext
11175: deplibs=
11176: wl=$lt_prog_compiler_wl
11177: pic_flag=$lt_prog_compiler_pic
11178: compiler_flags=-v
11179: linker_flags=-v
11180: verstring=
11181: output_objdir=.
11182: libname=conftest
11183: lt_save_allow_undefined_flag=$allow_undefined_flag
11184: allow_undefined_flag=
1.150 moko 11185: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11186: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11187: ac_status=$?
1.150 moko 11188: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11189: test $ac_status = 0; }
1.128 moko 11190: then
11191: lt_cv_archive_cmds_need_lc=no
11192: else
11193: lt_cv_archive_cmds_need_lc=yes
11194: fi
11195: allow_undefined_flag=$lt_save_allow_undefined_flag
11196: else
11197: cat conftest.err 1>&5
11198: fi
11199: $RM conftest*
11200:
11201: fi
1.150 moko 11202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11203: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11204: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11205: ;;
11206: esac
11207: fi
11208: ;;
11209: esac
11210:
11211:
11212:
11213:
11214:
11215:
11216:
11217:
11218:
11219:
11220:
11221:
11222:
11223:
11224:
11225:
11226:
11227:
11228:
11229:
11230:
11231:
11232:
11233:
11234:
11235:
11236:
11237:
11238:
11239:
11240:
11241:
11242:
11243:
11244:
11245:
11246:
11247:
11248:
11249:
11250:
11251:
11252:
11253:
11254:
11255:
11256:
11257:
11258:
11259:
11260:
11261:
11262:
11263:
11264:
11265:
11266:
11267:
11268:
11269:
11270:
11271:
11272:
11273:
11274:
11275:
11276:
11277:
11278:
11279:
11280:
11281:
11282:
11283:
11284:
11285:
11286:
11287:
11288:
11289:
11290:
11291:
11292:
11293:
11294:
11295:
11296:
11297:
11298:
11299:
11300:
11301:
11302:
11303:
11304:
11305:
11306:
11307:
11308:
11309:
11310:
11311:
11312:
11313:
11314:
11315:
11316:
11317:
11318:
11319:
11320:
11321:
11322:
11323:
11324:
11325:
11326:
11327:
11328:
11329:
11330:
11331:
11332:
11333:
11334:
11335:
11336:
11337:
11338:
11339:
11340:
11341:
11342:
11343:
11344:
11345:
11346:
11347:
11348:
11349:
11350:
11351:
11352:
11353:
11354:
11355:
11356:
11357:
11358:
11359:
11360:
11361:
1.150 moko 11362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11363: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11364:
11365: if test "$GCC" = yes; then
11366: case $host_os in
11367: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11368: *) lt_awk_arg="/^libraries:/" ;;
11369: esac
11370: case $host_os in
11371: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11372: *) lt_sed_strip_eq="s,=/,/,g" ;;
11373: esac
11374: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11375: case $lt_search_path_spec in
11376: *\;*)
11377: # if the path contains ";" then we assume it to be the separator
11378: # otherwise default to the standard path separator (i.e. ":") - it is
11379: # assumed that no part of a normal pathname contains ";" but that should
11380: # okay in the real world where ";" in dirpaths is itself problematic.
11381: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11382: ;;
11383: *)
11384: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11385: ;;
11386: esac
11387: # Ok, now we have the path, separated by spaces, we can step through it
11388: # and add multilib dir if necessary.
11389: lt_tmp_lt_search_path_spec=
11390: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11391: for lt_sys_path in $lt_search_path_spec; do
11392: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11393: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11394: else
11395: test -d "$lt_sys_path" && \
11396: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11397: fi
11398: done
11399: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11400: BEGIN {RS=" "; FS="/|\n";} {
11401: lt_foo="";
11402: lt_count=0;
11403: for (lt_i = NF; lt_i > 0; lt_i--) {
11404: if ($lt_i != "" && $lt_i != ".") {
11405: if ($lt_i == "..") {
11406: lt_count++;
11407: } else {
11408: if (lt_count == 0) {
11409: lt_foo="/" $lt_i lt_foo;
11410: } else {
11411: lt_count--;
11412: }
11413: }
11414: }
11415: }
11416: if (lt_foo != "") { lt_freq[lt_foo]++; }
11417: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11418: }'`
11419: # AWK program above erroneously prepends '/' to C:/dos/paths
11420: # for these hosts.
11421: case $host_os in
11422: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11423: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11424: esac
11425: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11426: else
11427: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11428: fi
11429: library_names_spec=
11430: libname_spec='lib$name'
11431: soname_spec=
11432: shrext_cmds=".so"
11433: postinstall_cmds=
11434: postuninstall_cmds=
11435: finish_cmds=
11436: finish_eval=
11437: shlibpath_var=
11438: shlibpath_overrides_runpath=unknown
11439: version_type=none
11440: dynamic_linker="$host_os ld.so"
11441: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11442: need_lib_prefix=unknown
11443: hardcode_into_libs=no
11444:
11445: # when you set need_version to no, make sure it does not cause -set_version
11446: # flags to be left without arguments
11447: need_version=unknown
11448:
11449: case $host_os in
11450: aix3*)
11451: version_type=linux # correct to gnu/linux during the next big refactor
11452: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11453: shlibpath_var=LIBPATH
11454:
11455: # AIX 3 has no versioning support, so we append a major version to the name.
11456: soname_spec='${libname}${release}${shared_ext}$major'
11457: ;;
11458:
11459: aix[4-9]*)
11460: version_type=linux # correct to gnu/linux during the next big refactor
11461: need_lib_prefix=no
11462: need_version=no
11463: hardcode_into_libs=yes
11464: if test "$host_cpu" = ia64; then
11465: # AIX 5 supports IA64
11466: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11467: shlibpath_var=LD_LIBRARY_PATH
11468: else
11469: # With GCC up to 2.95.x, collect2 would create an import file
11470: # for dependence libraries. The import file would start with
11471: # the line `#! .'. This would cause the generated library to
11472: # depend on `.', always an invalid library. This was fixed in
11473: # development snapshots of GCC prior to 3.0.
11474: case $host_os in
11475: aix4 | aix4.[01] | aix4.[01].*)
11476: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11477: echo ' yes '
11478: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11479: :
11480: else
11481: can_build_shared=no
11482: fi
11483: ;;
11484: esac
11485: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11486: # soname into executable. Probably we can add versioning support to
11487: # collect2, so additional links can be useful in future.
11488: if test "$aix_use_runtimelinking" = yes; then
11489: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11490: # instead of lib<name>.a to let people know that these are not
11491: # typical AIX shared libraries.
11492: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493: else
11494: # We preserve .a as extension for shared libraries through AIX4.2
11495: # and later when we are not doing run time linking.
11496: library_names_spec='${libname}${release}.a $libname.a'
11497: soname_spec='${libname}${release}${shared_ext}$major'
11498: fi
11499: shlibpath_var=LIBPATH
11500: fi
11501: ;;
11502:
11503: amigaos*)
11504: case $host_cpu in
11505: powerpc)
11506: # Since July 2007 AmigaOS4 officially supports .so libraries.
11507: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11508: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509: ;;
11510: m68k)
11511: library_names_spec='$libname.ixlibrary $libname.a'
11512: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11513: 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'
11514: ;;
11515: esac
11516: ;;
11517:
11518: beos*)
11519: library_names_spec='${libname}${shared_ext}'
11520: dynamic_linker="$host_os ld.so"
11521: shlibpath_var=LIBRARY_PATH
11522: ;;
11523:
11524: bsdi[45]*)
11525: version_type=linux # correct to gnu/linux during the next big refactor
11526: need_version=no
11527: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528: soname_spec='${libname}${release}${shared_ext}$major'
11529: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11530: shlibpath_var=LD_LIBRARY_PATH
11531: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11532: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11533: # the default ld.so.conf also contains /usr/contrib/lib and
11534: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11535: # libtool to hard-code these into programs
11536: ;;
11537:
11538: cygwin* | mingw* | pw32* | cegcc*)
11539: version_type=windows
11540: shrext_cmds=".dll"
11541: need_version=no
11542: need_lib_prefix=no
11543:
11544: case $GCC,$cc_basename in
11545: yes,*)
11546: # gcc
11547: library_names_spec='$libname.dll.a'
11548: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11549: postinstall_cmds='base_file=`basename \${file}`~
11550: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11551: dldir=$destdir/`dirname \$dlpath`~
11552: test -d \$dldir || mkdir -p \$dldir~
11553: $install_prog $dir/$dlname \$dldir/$dlname~
11554: chmod a+x \$dldir/$dlname~
11555: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11556: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11557: fi'
11558: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11559: dlpath=$dir/\$dldll~
11560: $RM \$dlpath'
11561: shlibpath_overrides_runpath=yes
11562:
11563: case $host_os in
11564: cygwin*)
11565: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11566: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11567:
11568: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11569: ;;
11570: mingw* | cegcc*)
11571: # MinGW DLLs use traditional 'lib' prefix
11572: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11573: ;;
11574: pw32*)
11575: # pw32 DLLs use 'pw' prefix rather than 'lib'
11576: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11577: ;;
11578: esac
11579: dynamic_linker='Win32 ld.exe'
11580: ;;
11581:
11582: *,cl*)
11583: # Native MSVC
11584: libname_spec='$name'
11585: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11586: library_names_spec='${libname}.dll.lib'
11587:
11588: case $build_os in
11589: mingw*)
11590: sys_lib_search_path_spec=
11591: lt_save_ifs=$IFS
11592: IFS=';'
11593: for lt_path in $LIB
11594: do
11595: IFS=$lt_save_ifs
11596: # Let DOS variable expansion print the short 8.3 style file name.
11597: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11598: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11599: done
11600: IFS=$lt_save_ifs
11601: # Convert to MSYS style.
11602: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11603: ;;
11604: cygwin*)
11605: # Convert to unix form, then to dos form, then back to unix form
11606: # but this time dos style (no spaces!) so that the unix form looks
11607: # like /cygdrive/c/PROGRA~1:/cygdr...
11608: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11609: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11610: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11611: ;;
11612: *)
11613: sys_lib_search_path_spec="$LIB"
11614: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11615: # It is most probably a Windows format PATH.
11616: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11617: else
11618: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11619: fi
11620: # FIXME: find the short name or the path components, as spaces are
11621: # common. (e.g. "Program Files" -> "PROGRA~1")
11622: ;;
11623: esac
11624:
11625: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11626: postinstall_cmds='base_file=`basename \${file}`~
11627: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11628: dldir=$destdir/`dirname \$dlpath`~
11629: test -d \$dldir || mkdir -p \$dldir~
11630: $install_prog $dir/$dlname \$dldir/$dlname'
11631: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11632: dlpath=$dir/\$dldll~
11633: $RM \$dlpath'
11634: shlibpath_overrides_runpath=yes
11635: dynamic_linker='Win32 link.exe'
11636: ;;
11637:
11638: *)
11639: # Assume MSVC wrapper
11640: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11641: dynamic_linker='Win32 ld.exe'
11642: ;;
11643: esac
11644: # FIXME: first we should search . and the directory the executable is in
11645: shlibpath_var=PATH
11646: ;;
11647:
11648: darwin* | rhapsody*)
11649: dynamic_linker="$host_os dyld"
11650: version_type=darwin
11651: need_lib_prefix=no
11652: need_version=no
11653: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11654: soname_spec='${libname}${release}${major}$shared_ext'
11655: shlibpath_overrides_runpath=yes
11656: shlibpath_var=DYLD_LIBRARY_PATH
11657: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11658:
11659: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11660: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11661: ;;
11662:
11663: dgux*)
11664: version_type=linux # correct to gnu/linux during the next big refactor
11665: need_lib_prefix=no
11666: need_version=no
11667: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11668: soname_spec='${libname}${release}${shared_ext}$major'
11669: shlibpath_var=LD_LIBRARY_PATH
11670: ;;
11671:
11672: freebsd* | dragonfly*)
11673: # DragonFly does not have aout. When/if they implement a new
11674: # versioning mechanism, adjust this.
11675: if test -x /usr/bin/objformat; then
11676: objformat=`/usr/bin/objformat`
11677: else
11678: case $host_os in
11679: freebsd[23].*) objformat=aout ;;
11680: *) objformat=elf ;;
11681: esac
11682: fi
11683: version_type=freebsd-$objformat
11684: case $version_type in
11685: freebsd-elf*)
11686: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11687: need_version=no
11688: need_lib_prefix=no
11689: ;;
11690: freebsd-*)
11691: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11692: need_version=yes
11693: ;;
11694: esac
11695: shlibpath_var=LD_LIBRARY_PATH
11696: case $host_os in
11697: freebsd2.*)
11698: shlibpath_overrides_runpath=yes
11699: ;;
11700: freebsd3.[01]* | freebsdelf3.[01]*)
11701: shlibpath_overrides_runpath=yes
11702: hardcode_into_libs=yes
11703: ;;
11704: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11705: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11706: shlibpath_overrides_runpath=no
11707: hardcode_into_libs=yes
11708: ;;
11709: *) # from 4.6 on, and DragonFly
11710: shlibpath_overrides_runpath=yes
11711: hardcode_into_libs=yes
11712: ;;
11713: esac
11714: ;;
11715:
11716: gnu*)
11717: version_type=linux # correct to gnu/linux during the next big refactor
11718: need_lib_prefix=no
11719: need_version=no
11720: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11721: soname_spec='${libname}${release}${shared_ext}$major'
11722: shlibpath_var=LD_LIBRARY_PATH
11723: shlibpath_overrides_runpath=no
11724: hardcode_into_libs=yes
11725: ;;
11726:
11727: haiku*)
11728: version_type=linux # correct to gnu/linux during the next big refactor
11729: need_lib_prefix=no
11730: need_version=no
11731: dynamic_linker="$host_os runtime_loader"
11732: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11733: soname_spec='${libname}${release}${shared_ext}$major'
11734: shlibpath_var=LIBRARY_PATH
11735: shlibpath_overrides_runpath=yes
11736: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11737: hardcode_into_libs=yes
11738: ;;
11739:
11740: hpux9* | hpux10* | hpux11*)
11741: # Give a soname corresponding to the major version so that dld.sl refuses to
11742: # link against other versions.
11743: version_type=sunos
11744: need_lib_prefix=no
11745: need_version=no
11746: case $host_cpu in
11747: ia64*)
11748: shrext_cmds='.so'
11749: hardcode_into_libs=yes
11750: dynamic_linker="$host_os dld.so"
11751: shlibpath_var=LD_LIBRARY_PATH
11752: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11753: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754: soname_spec='${libname}${release}${shared_ext}$major'
11755: if test "X$HPUX_IA64_MODE" = X32; then
11756: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11757: else
11758: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11759: fi
11760: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11761: ;;
11762: hppa*64*)
11763: shrext_cmds='.sl'
11764: hardcode_into_libs=yes
11765: dynamic_linker="$host_os dld.sl"
11766: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11767: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11768: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769: soname_spec='${libname}${release}${shared_ext}$major'
11770: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11771: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11772: ;;
11773: *)
11774: shrext_cmds='.sl'
11775: dynamic_linker="$host_os dld.sl"
11776: shlibpath_var=SHLIB_PATH
11777: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11778: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779: soname_spec='${libname}${release}${shared_ext}$major'
11780: ;;
11781: esac
11782: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11783: postinstall_cmds='chmod 555 $lib'
11784: # or fails outright, so override atomically:
11785: install_override_mode=555
11786: ;;
11787:
11788: interix[3-9]*)
11789: version_type=linux # correct to gnu/linux during the next big refactor
11790: need_lib_prefix=no
11791: need_version=no
11792: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11793: soname_spec='${libname}${release}${shared_ext}$major'
11794: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11795: shlibpath_var=LD_LIBRARY_PATH
11796: shlibpath_overrides_runpath=no
11797: hardcode_into_libs=yes
11798: ;;
11799:
11800: irix5* | irix6* | nonstopux*)
11801: case $host_os in
11802: nonstopux*) version_type=nonstopux ;;
11803: *)
11804: if test "$lt_cv_prog_gnu_ld" = yes; then
11805: version_type=linux # correct to gnu/linux during the next big refactor
11806: else
11807: version_type=irix
11808: fi ;;
11809: esac
11810: need_lib_prefix=no
11811: need_version=no
11812: soname_spec='${libname}${release}${shared_ext}$major'
11813: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11814: case $host_os in
11815: irix5* | nonstopux*)
11816: libsuff= shlibsuff=
11817: ;;
11818: *)
11819: case $LD in # libtool.m4 will add one of these switches to LD
11820: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11821: libsuff= shlibsuff= libmagic=32-bit;;
11822: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11823: libsuff=32 shlibsuff=N32 libmagic=N32;;
11824: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11825: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11826: *) libsuff= shlibsuff= libmagic=never-match;;
11827: esac
11828: ;;
11829: esac
11830: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11831: shlibpath_overrides_runpath=no
11832: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11833: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11834: hardcode_into_libs=yes
11835: ;;
11836:
11837: # No shared lib support for Linux oldld, aout, or coff.
11838: linux*oldld* | linux*aout* | linux*coff*)
11839: dynamic_linker=no
11840: ;;
11841:
11842: # This must be glibc/ELF.
11843: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11844: version_type=linux # correct to gnu/linux during the next big refactor
11845: need_lib_prefix=no
11846: need_version=no
11847: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848: soname_spec='${libname}${release}${shared_ext}$major'
11849: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11850: shlibpath_var=LD_LIBRARY_PATH
11851: shlibpath_overrides_runpath=no
11852:
11853: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 11854: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11855: $as_echo_n "(cached) " >&6
1.128 moko 11856: else
11857: lt_cv_shlibpath_overrides_runpath=no
11858: save_LDFLAGS=$LDFLAGS
11859: save_libdir=$libdir
11860: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11861: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 11862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11863: /* end confdefs.h. */
11864:
11865: int
11866: main ()
11867: {
11868:
11869: ;
11870: return 0;
11871: }
11872: _ACEOF
1.150 moko 11873: if ac_fn_c_try_link "$LINENO"; then :
11874: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 11875: lt_cv_shlibpath_overrides_runpath=yes
11876: fi
11877: fi
1.150 moko 11878: rm -f core conftest.err conftest.$ac_objext \
11879: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11880: LDFLAGS=$save_LDFLAGS
11881: libdir=$save_libdir
11882:
11883: fi
11884:
11885: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11886:
11887: # This implies no fast_install, which is unacceptable.
11888: # Some rework will be needed to allow for fast_install
11889: # before this can be enabled.
11890: hardcode_into_libs=yes
11891:
11892: # Append ld.so.conf contents to the search path
11893: if test -f /etc/ld.so.conf; then
11894: 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' ' '`
11895: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11896: fi
11897:
11898: # We used to test for /lib/ld.so.1 and disable shared libraries on
11899: # powerpc, because MkLinux only supported shared libraries with the
11900: # GNU dynamic linker. Since this was broken with cross compilers,
11901: # most powerpc-linux boxes support dynamic linking these days and
11902: # people can always --disable-shared, the test was removed, and we
11903: # assume the GNU/Linux dynamic linker is in use.
11904: dynamic_linker='GNU/Linux ld.so'
11905: ;;
11906:
11907: netbsd*)
11908: version_type=sunos
11909: need_lib_prefix=no
11910: need_version=no
11911: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11912: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11913: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11914: dynamic_linker='NetBSD (a.out) ld.so'
11915: else
11916: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11917: soname_spec='${libname}${release}${shared_ext}$major'
11918: dynamic_linker='NetBSD ld.elf_so'
11919: fi
11920: shlibpath_var=LD_LIBRARY_PATH
11921: shlibpath_overrides_runpath=yes
11922: hardcode_into_libs=yes
11923: ;;
11924:
11925: newsos6)
11926: version_type=linux # correct to gnu/linux during the next big refactor
11927: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928: shlibpath_var=LD_LIBRARY_PATH
11929: shlibpath_overrides_runpath=yes
11930: ;;
11931:
11932: *nto* | *qnx*)
11933: version_type=qnx
11934: need_lib_prefix=no
11935: need_version=no
11936: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11937: soname_spec='${libname}${release}${shared_ext}$major'
11938: shlibpath_var=LD_LIBRARY_PATH
11939: shlibpath_overrides_runpath=no
11940: hardcode_into_libs=yes
11941: dynamic_linker='ldqnx.so'
11942: ;;
11943:
11944: openbsd*)
11945: version_type=sunos
11946: sys_lib_dlsearch_path_spec="/usr/lib"
11947: need_lib_prefix=no
11948: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11949: case $host_os in
11950: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11951: *) need_version=no ;;
11952: esac
11953: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11954: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11955: shlibpath_var=LD_LIBRARY_PATH
11956: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11957: case $host_os in
11958: openbsd2.[89] | openbsd2.[89].*)
11959: shlibpath_overrides_runpath=no
11960: ;;
11961: *)
11962: shlibpath_overrides_runpath=yes
11963: ;;
11964: esac
11965: else
11966: shlibpath_overrides_runpath=yes
11967: fi
11968: ;;
11969:
11970: os2*)
11971: libname_spec='$name'
11972: shrext_cmds=".dll"
11973: need_lib_prefix=no
11974: library_names_spec='$libname${shared_ext} $libname.a'
11975: dynamic_linker='OS/2 ld.exe'
11976: shlibpath_var=LIBPATH
11977: ;;
11978:
11979: osf3* | osf4* | osf5*)
11980: version_type=osf
11981: need_lib_prefix=no
11982: need_version=no
11983: soname_spec='${libname}${release}${shared_ext}$major'
11984: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985: shlibpath_var=LD_LIBRARY_PATH
11986: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11987: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11988: ;;
11989:
11990: rdos*)
11991: dynamic_linker=no
11992: ;;
11993:
11994: solaris*)
11995: version_type=linux # correct to gnu/linux during the next big refactor
11996: need_lib_prefix=no
11997: need_version=no
11998: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999: soname_spec='${libname}${release}${shared_ext}$major'
12000: shlibpath_var=LD_LIBRARY_PATH
12001: shlibpath_overrides_runpath=yes
12002: hardcode_into_libs=yes
12003: # ldd complains unless libraries are executable
12004: postinstall_cmds='chmod +x $lib'
12005: ;;
12006:
12007: sunos4*)
12008: version_type=sunos
12009: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12010: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12011: shlibpath_var=LD_LIBRARY_PATH
12012: shlibpath_overrides_runpath=yes
12013: if test "$with_gnu_ld" = yes; then
12014: need_lib_prefix=no
12015: fi
12016: need_version=yes
12017: ;;
12018:
12019: sysv4 | sysv4.3*)
12020: version_type=linux # correct to gnu/linux during the next big refactor
12021: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12022: soname_spec='${libname}${release}${shared_ext}$major'
12023: shlibpath_var=LD_LIBRARY_PATH
12024: case $host_vendor in
12025: sni)
12026: shlibpath_overrides_runpath=no
12027: need_lib_prefix=no
12028: runpath_var=LD_RUN_PATH
12029: ;;
12030: siemens)
12031: need_lib_prefix=no
12032: ;;
12033: motorola)
12034: need_lib_prefix=no
12035: need_version=no
12036: shlibpath_overrides_runpath=no
12037: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12038: ;;
12039: esac
12040: ;;
12041:
12042: sysv4*MP*)
12043: if test -d /usr/nec ;then
12044: version_type=linux # correct to gnu/linux during the next big refactor
12045: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12046: soname_spec='$libname${shared_ext}.$major'
12047: shlibpath_var=LD_LIBRARY_PATH
12048: fi
12049: ;;
12050:
12051: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12052: version_type=freebsd-elf
12053: need_lib_prefix=no
12054: need_version=no
12055: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12056: soname_spec='${libname}${release}${shared_ext}$major'
12057: shlibpath_var=LD_LIBRARY_PATH
12058: shlibpath_overrides_runpath=yes
12059: hardcode_into_libs=yes
12060: if test "$with_gnu_ld" = yes; then
12061: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12062: else
12063: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12064: case $host_os in
12065: sco3.2v5*)
12066: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12067: ;;
12068: esac
12069: fi
12070: sys_lib_dlsearch_path_spec='/usr/lib'
12071: ;;
12072:
12073: tpf*)
12074: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12075: version_type=linux # correct to gnu/linux during the next big refactor
12076: need_lib_prefix=no
12077: need_version=no
12078: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12079: shlibpath_var=LD_LIBRARY_PATH
12080: shlibpath_overrides_runpath=no
12081: hardcode_into_libs=yes
12082: ;;
12083:
12084: uts4*)
12085: version_type=linux # correct to gnu/linux during the next big refactor
12086: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12087: soname_spec='${libname}${release}${shared_ext}$major'
12088: shlibpath_var=LD_LIBRARY_PATH
12089: ;;
12090:
12091: *)
12092: dynamic_linker=no
12093: ;;
12094: esac
1.150 moko 12095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12096: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12097: test "$dynamic_linker" = no && can_build_shared=no
12098:
12099: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12100: if test "$GCC" = yes; then
12101: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12102: fi
12103:
12104: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12105: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12106: fi
12107: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12108: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12109: fi
12110:
12111:
12112:
12113:
12114:
12115:
12116:
12117:
12118:
12119:
12120:
12121:
12122:
12123:
12124:
12125:
12126:
12127:
12128:
12129:
12130:
12131:
12132:
12133:
12134:
12135:
12136:
12137:
12138:
12139:
12140:
12141:
12142:
12143:
12144:
12145:
12146:
12147:
12148:
12149:
12150:
12151:
12152:
12153:
12154:
12155:
12156:
12157:
12158:
12159:
12160:
12161:
12162:
12163:
12164:
12165:
12166:
12167:
12168:
12169:
12170:
12171:
12172:
12173:
12174:
12175:
12176:
12177:
12178:
12179:
12180:
12181:
12182:
12183:
12184:
12185:
12186:
12187:
12188:
12189:
12190:
12191:
12192:
12193:
12194:
12195:
12196:
12197:
12198:
12199:
12200:
12201:
1.150 moko 12202: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12203: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12204: hardcode_action=
12205: if test -n "$hardcode_libdir_flag_spec" ||
12206: test -n "$runpath_var" ||
12207: test "X$hardcode_automatic" = "Xyes" ; then
12208:
12209: # We can hardcode non-existent directories.
12210: if test "$hardcode_direct" != no &&
12211: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12212: # have to relink, otherwise we might link with an installed library
12213: # when we should be linking with a yet-to-be-installed one
12214: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12215: test "$hardcode_minus_L" != no; then
12216: # Linking always hardcodes the temporary library directory.
12217: hardcode_action=relink
12218: else
12219: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12220: hardcode_action=immediate
12221: fi
12222: else
12223: # We cannot hardcode anything, or else we can only hardcode existing
12224: # directories.
12225: hardcode_action=unsupported
12226: fi
1.150 moko 12227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12228: $as_echo "$hardcode_action" >&6; }
1.128 moko 12229:
12230: if test "$hardcode_action" = relink ||
12231: test "$inherit_rpath" = yes; then
12232: # Fast installation is not supported
12233: enable_fast_install=no
12234: elif test "$shlibpath_overrides_runpath" = yes ||
12235: test "$enable_shared" = no; then
12236: # Fast installation is not necessary
12237: enable_fast_install=needless
12238: fi
12239:
12240:
12241:
12242:
12243:
12244:
12245: if test "x$enable_dlopen" != xyes; then
12246: enable_dlopen=unknown
12247: enable_dlopen_self=unknown
12248: enable_dlopen_self_static=unknown
12249: else
12250: lt_cv_dlopen=no
12251: lt_cv_dlopen_libs=
12252:
12253: case $host_os in
12254: beos*)
12255: lt_cv_dlopen="load_add_on"
12256: lt_cv_dlopen_libs=
12257: lt_cv_dlopen_self=yes
12258: ;;
12259:
12260: mingw* | pw32* | cegcc*)
12261: lt_cv_dlopen="LoadLibrary"
12262: lt_cv_dlopen_libs=
12263: ;;
12264:
12265: cygwin*)
12266: lt_cv_dlopen="dlopen"
12267: lt_cv_dlopen_libs=
12268: ;;
12269:
12270: darwin*)
12271: # if libdl is installed we need to link against it
1.150 moko 12272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12273: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12274: if ${ac_cv_lib_dl_dlopen+:} false; then :
12275: $as_echo_n "(cached) " >&6
1.128 moko 12276: else
12277: ac_check_lib_save_LIBS=$LIBS
12278: LIBS="-ldl $LIBS"
1.150 moko 12279: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12280: /* end confdefs.h. */
12281:
1.150 moko 12282: /* Override any GCC internal prototype to avoid an error.
12283: Use char because int might match the return type of a GCC
12284: builtin and then its argument prototype would still apply. */
1.128 moko 12285: #ifdef __cplusplus
12286: extern "C"
12287: #endif
12288: char dlopen ();
12289: int
12290: main ()
12291: {
1.150 moko 12292: return dlopen ();
1.128 moko 12293: ;
12294: return 0;
12295: }
12296: _ACEOF
1.150 moko 12297: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12298: ac_cv_lib_dl_dlopen=yes
12299: else
1.150 moko 12300: ac_cv_lib_dl_dlopen=no
1.128 moko 12301: fi
1.150 moko 12302: rm -f core conftest.err conftest.$ac_objext \
12303: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12304: LIBS=$ac_check_lib_save_LIBS
12305: fi
1.150 moko 12306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12307: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12308: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12309: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12310: else
12311:
12312: lt_cv_dlopen="dyld"
12313: lt_cv_dlopen_libs=
12314: lt_cv_dlopen_self=yes
12315:
12316: fi
12317:
12318: ;;
12319:
12320: *)
1.150 moko 12321: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12322: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12323: lt_cv_dlopen="shl_load"
12324: else
1.150 moko 12325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12326: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12327: if ${ac_cv_lib_dld_shl_load+:} false; then :
12328: $as_echo_n "(cached) " >&6
1.128 moko 12329: else
12330: ac_check_lib_save_LIBS=$LIBS
12331: LIBS="-ldld $LIBS"
1.150 moko 12332: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12333: /* end confdefs.h. */
12334:
1.150 moko 12335: /* Override any GCC internal prototype to avoid an error.
12336: Use char because int might match the return type of a GCC
12337: builtin and then its argument prototype would still apply. */
1.128 moko 12338: #ifdef __cplusplus
12339: extern "C"
12340: #endif
12341: char shl_load ();
12342: int
12343: main ()
12344: {
1.150 moko 12345: return shl_load ();
1.128 moko 12346: ;
12347: return 0;
12348: }
12349: _ACEOF
1.150 moko 12350: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12351: ac_cv_lib_dld_shl_load=yes
12352: else
1.150 moko 12353: ac_cv_lib_dld_shl_load=no
1.128 moko 12354: fi
1.150 moko 12355: rm -f core conftest.err conftest.$ac_objext \
12356: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12357: LIBS=$ac_check_lib_save_LIBS
12358: fi
1.150 moko 12359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12360: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12361: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12362: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12363: else
1.150 moko 12364: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12365: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12366: lt_cv_dlopen="dlopen"
12367: else
1.150 moko 12368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12369: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12370: if ${ac_cv_lib_dl_dlopen+:} false; then :
12371: $as_echo_n "(cached) " >&6
1.128 moko 12372: else
12373: ac_check_lib_save_LIBS=$LIBS
12374: LIBS="-ldl $LIBS"
1.150 moko 12375: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12376: /* end confdefs.h. */
12377:
1.150 moko 12378: /* Override any GCC internal prototype to avoid an error.
12379: Use char because int might match the return type of a GCC
12380: builtin and then its argument prototype would still apply. */
1.128 moko 12381: #ifdef __cplusplus
12382: extern "C"
12383: #endif
12384: char dlopen ();
12385: int
12386: main ()
12387: {
1.150 moko 12388: return dlopen ();
1.128 moko 12389: ;
12390: return 0;
12391: }
12392: _ACEOF
1.150 moko 12393: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12394: ac_cv_lib_dl_dlopen=yes
12395: else
1.150 moko 12396: ac_cv_lib_dl_dlopen=no
1.128 moko 12397: fi
1.150 moko 12398: rm -f core conftest.err conftest.$ac_objext \
12399: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12400: LIBS=$ac_check_lib_save_LIBS
12401: fi
1.150 moko 12402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12403: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12404: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12405: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12406: else
1.150 moko 12407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12408: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12409: if ${ac_cv_lib_svld_dlopen+:} false; then :
12410: $as_echo_n "(cached) " >&6
1.128 moko 12411: else
12412: ac_check_lib_save_LIBS=$LIBS
12413: LIBS="-lsvld $LIBS"
1.150 moko 12414: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12415: /* end confdefs.h. */
12416:
1.150 moko 12417: /* Override any GCC internal prototype to avoid an error.
12418: Use char because int might match the return type of a GCC
12419: builtin and then its argument prototype would still apply. */
1.128 moko 12420: #ifdef __cplusplus
12421: extern "C"
12422: #endif
12423: char dlopen ();
12424: int
12425: main ()
12426: {
1.150 moko 12427: return dlopen ();
1.128 moko 12428: ;
12429: return 0;
12430: }
12431: _ACEOF
1.150 moko 12432: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12433: ac_cv_lib_svld_dlopen=yes
12434: else
1.150 moko 12435: ac_cv_lib_svld_dlopen=no
1.128 moko 12436: fi
1.150 moko 12437: rm -f core conftest.err conftest.$ac_objext \
12438: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12439: LIBS=$ac_check_lib_save_LIBS
12440: fi
1.150 moko 12441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12442: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12443: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12444: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12445: else
1.150 moko 12446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12447: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12448: if ${ac_cv_lib_dld_dld_link+:} false; then :
12449: $as_echo_n "(cached) " >&6
1.128 moko 12450: else
12451: ac_check_lib_save_LIBS=$LIBS
12452: LIBS="-ldld $LIBS"
1.150 moko 12453: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12454: /* end confdefs.h. */
12455:
1.150 moko 12456: /* Override any GCC internal prototype to avoid an error.
12457: Use char because int might match the return type of a GCC
12458: builtin and then its argument prototype would still apply. */
1.128 moko 12459: #ifdef __cplusplus
12460: extern "C"
12461: #endif
12462: char dld_link ();
12463: int
12464: main ()
12465: {
1.150 moko 12466: return dld_link ();
1.128 moko 12467: ;
12468: return 0;
12469: }
12470: _ACEOF
1.150 moko 12471: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12472: ac_cv_lib_dld_dld_link=yes
12473: else
1.150 moko 12474: ac_cv_lib_dld_dld_link=no
12475: fi
12476: rm -f core conftest.err conftest.$ac_objext \
12477: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12478: LIBS=$ac_check_lib_save_LIBS
12479: fi
1.150 moko 12480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12481: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12482: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12483: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12484: fi
12485:
12486:
12487: fi
12488:
12489:
12490: fi
12491:
12492:
12493: fi
12494:
12495:
12496: fi
12497:
12498:
12499: fi
12500:
12501: ;;
12502: esac
12503:
12504: if test "x$lt_cv_dlopen" != xno; then
12505: enable_dlopen=yes
12506: else
12507: enable_dlopen=no
12508: fi
12509:
12510: case $lt_cv_dlopen in
12511: dlopen)
12512: save_CPPFLAGS="$CPPFLAGS"
12513: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12514:
12515: save_LDFLAGS="$LDFLAGS"
12516: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12517:
12518: save_LIBS="$LIBS"
12519: LIBS="$lt_cv_dlopen_libs $LIBS"
12520:
1.150 moko 12521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12522: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12523: if ${lt_cv_dlopen_self+:} false; then :
12524: $as_echo_n "(cached) " >&6
1.128 moko 12525: else
12526: if test "$cross_compiling" = yes; then :
12527: lt_cv_dlopen_self=cross
12528: else
12529: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12530: lt_status=$lt_dlunknown
12531: cat > conftest.$ac_ext <<_LT_EOF
12532: #line $LINENO "configure"
12533: #include "confdefs.h"
12534:
12535: #if HAVE_DLFCN_H
12536: #include <dlfcn.h>
12537: #endif
12538:
12539: #include <stdio.h>
12540:
12541: #ifdef RTLD_GLOBAL
12542: # define LT_DLGLOBAL RTLD_GLOBAL
12543: #else
12544: # ifdef DL_GLOBAL
12545: # define LT_DLGLOBAL DL_GLOBAL
12546: # else
12547: # define LT_DLGLOBAL 0
12548: # endif
12549: #endif
12550:
12551: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12552: find out it does not work in some platform. */
12553: #ifndef LT_DLLAZY_OR_NOW
12554: # ifdef RTLD_LAZY
12555: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12556: # else
12557: # ifdef DL_LAZY
12558: # define LT_DLLAZY_OR_NOW DL_LAZY
12559: # else
12560: # ifdef RTLD_NOW
12561: # define LT_DLLAZY_OR_NOW RTLD_NOW
12562: # else
12563: # ifdef DL_NOW
12564: # define LT_DLLAZY_OR_NOW DL_NOW
12565: # else
12566: # define LT_DLLAZY_OR_NOW 0
12567: # endif
12568: # endif
12569: # endif
12570: # endif
12571: #endif
12572:
12573: /* When -fvisbility=hidden is used, assume the code has been annotated
12574: correspondingly for the symbols needed. */
12575: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12576: int fnord () __attribute__((visibility("default")));
12577: #endif
12578:
12579: int fnord () { return 42; }
12580: int main ()
12581: {
12582: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12583: int status = $lt_dlunknown;
12584:
12585: if (self)
12586: {
12587: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12588: else
12589: {
12590: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12591: else puts (dlerror ());
12592: }
12593: /* dlclose (self); */
12594: }
12595: else
12596: puts (dlerror ());
12597:
12598: return status;
12599: }
12600: _LT_EOF
1.150 moko 12601: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12602: (eval $ac_link) 2>&5
12603: ac_status=$?
1.150 moko 12604: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12605: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12606: (./conftest; exit; ) >&5 2>/dev/null
12607: lt_status=$?
12608: case x$lt_status in
12609: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12610: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12611: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12612: esac
12613: else :
12614: # compilation failed
12615: lt_cv_dlopen_self=no
12616: fi
12617: fi
12618: rm -fr conftest*
12619:
12620:
12621: fi
1.150 moko 12622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12623: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12624:
12625: if test "x$lt_cv_dlopen_self" = xyes; then
12626: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12628: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12629: if ${lt_cv_dlopen_self_static+:} false; then :
12630: $as_echo_n "(cached) " >&6
1.128 moko 12631: else
12632: if test "$cross_compiling" = yes; then :
12633: lt_cv_dlopen_self_static=cross
12634: else
12635: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12636: lt_status=$lt_dlunknown
12637: cat > conftest.$ac_ext <<_LT_EOF
12638: #line $LINENO "configure"
12639: #include "confdefs.h"
12640:
12641: #if HAVE_DLFCN_H
12642: #include <dlfcn.h>
12643: #endif
12644:
12645: #include <stdio.h>
12646:
12647: #ifdef RTLD_GLOBAL
12648: # define LT_DLGLOBAL RTLD_GLOBAL
12649: #else
12650: # ifdef DL_GLOBAL
12651: # define LT_DLGLOBAL DL_GLOBAL
12652: # else
12653: # define LT_DLGLOBAL 0
12654: # endif
12655: #endif
12656:
12657: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12658: find out it does not work in some platform. */
12659: #ifndef LT_DLLAZY_OR_NOW
12660: # ifdef RTLD_LAZY
12661: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12662: # else
12663: # ifdef DL_LAZY
12664: # define LT_DLLAZY_OR_NOW DL_LAZY
12665: # else
12666: # ifdef RTLD_NOW
12667: # define LT_DLLAZY_OR_NOW RTLD_NOW
12668: # else
12669: # ifdef DL_NOW
12670: # define LT_DLLAZY_OR_NOW DL_NOW
12671: # else
12672: # define LT_DLLAZY_OR_NOW 0
12673: # endif
12674: # endif
12675: # endif
12676: # endif
12677: #endif
12678:
12679: /* When -fvisbility=hidden is used, assume the code has been annotated
12680: correspondingly for the symbols needed. */
12681: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12682: int fnord () __attribute__((visibility("default")));
12683: #endif
12684:
12685: int fnord () { return 42; }
12686: int main ()
12687: {
12688: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12689: int status = $lt_dlunknown;
12690:
12691: if (self)
12692: {
12693: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12694: else
12695: {
12696: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12697: else puts (dlerror ());
12698: }
12699: /* dlclose (self); */
12700: }
12701: else
12702: puts (dlerror ());
12703:
12704: return status;
12705: }
12706: _LT_EOF
1.150 moko 12707: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12708: (eval $ac_link) 2>&5
12709: ac_status=$?
1.150 moko 12710: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12712: (./conftest; exit; ) >&5 2>/dev/null
12713: lt_status=$?
12714: case x$lt_status in
12715: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12716: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12717: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12718: esac
12719: else :
12720: # compilation failed
12721: lt_cv_dlopen_self_static=no
12722: fi
12723: fi
12724: rm -fr conftest*
12725:
12726:
12727: fi
1.150 moko 12728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12729: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 12730: fi
12731:
12732: CPPFLAGS="$save_CPPFLAGS"
12733: LDFLAGS="$save_LDFLAGS"
12734: LIBS="$save_LIBS"
12735: ;;
12736: esac
12737:
12738: case $lt_cv_dlopen_self in
12739: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12740: *) enable_dlopen_self=unknown ;;
12741: esac
12742:
12743: case $lt_cv_dlopen_self_static in
12744: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12745: *) enable_dlopen_self_static=unknown ;;
12746: esac
12747: fi
12748:
12749:
12750:
12751:
12752:
12753:
12754:
12755:
12756:
12757:
12758:
12759:
12760:
12761:
12762:
12763:
12764:
12765: striplib=
12766: old_striplib=
1.150 moko 12767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12768: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 12769: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12770: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12771: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 12772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12773: $as_echo "yes" >&6; }
1.128 moko 12774: else
12775: # FIXME - insert some real tests, host_os isn't really good enough
12776: case $host_os in
12777: darwin*)
12778: if test -n "$STRIP" ; then
12779: striplib="$STRIP -x"
12780: old_striplib="$STRIP -S"
1.150 moko 12781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12782: $as_echo "yes" >&6; }
1.128 moko 12783: else
1.150 moko 12784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785: $as_echo "no" >&6; }
1.128 moko 12786: fi
12787: ;;
12788: *)
1.150 moko 12789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790: $as_echo "no" >&6; }
1.128 moko 12791: ;;
12792: esac
12793: fi
12794:
12795:
12796:
12797:
12798:
12799:
12800:
12801:
12802:
12803:
12804:
12805:
12806: # Report which library types will actually be built
1.150 moko 12807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12808: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12810: $as_echo "$can_build_shared" >&6; }
1.128 moko 12811:
1.150 moko 12812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12813: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 12814: test "$can_build_shared" = "no" && enable_shared=no
12815:
12816: # On AIX, shared libraries and static libraries use the same namespace, and
12817: # are all built from PIC.
12818: case $host_os in
12819: aix3*)
12820: test "$enable_shared" = yes && enable_static=no
12821: if test -n "$RANLIB"; then
12822: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12823: postinstall_cmds='$RANLIB $lib'
12824: fi
12825: ;;
12826:
12827: aix[4-9]*)
12828: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12829: test "$enable_shared" = yes && enable_static=no
12830: fi
12831: ;;
12832: esac
1.150 moko 12833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12834: $as_echo "$enable_shared" >&6; }
1.128 moko 12835:
1.150 moko 12836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12837: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 12838: # Make sure either enable_shared or enable_static is yes.
12839: test "$enable_shared" = yes || enable_static=yes
1.150 moko 12840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12841: $as_echo "$enable_static" >&6; }
1.128 moko 12842:
12843:
12844:
12845:
12846: fi
12847: ac_ext=c
12848: ac_cpp='$CPP $CPPFLAGS'
12849: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12852:
12853: CC="$lt_save_CC"
12854:
12855: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12856: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12857: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 12858: ac_ext=cpp
1.128 moko 12859: ac_cpp='$CXXCPP $CPPFLAGS'
12860: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 12863: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12864: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 12865: if test -z "$CXXCPP"; then
1.150 moko 12866: if ${ac_cv_prog_CXXCPP+:} false; then :
12867: $as_echo_n "(cached) " >&6
1.128 moko 12868: else
12869: # Double quotes because CXXCPP needs to be expanded
12870: for CXXCPP in "$CXX -E" "/lib/cpp"
12871: do
12872: ac_preproc_ok=false
12873: for ac_cxx_preproc_warn_flag in '' yes
12874: do
12875: # Use a header file that comes with gcc, so configuring glibc
12876: # with a fresh cross-compiler works.
12877: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12878: # <limits.h> exists even on freestanding compilers.
12879: # On the NeXT, cc -E runs the code through the compiler's parser,
12880: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 12881: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12882: /* end confdefs.h. */
12883: #ifdef __STDC__
12884: # include <limits.h>
12885: #else
12886: # include <assert.h>
12887: #endif
12888: Syntax error
12889: _ACEOF
1.150 moko 12890: if ac_fn_cxx_try_cpp "$LINENO"; then :
12891:
1.128 moko 12892: else
12893: # Broken: fails on valid input.
12894: continue
12895: fi
1.150 moko 12896: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 12897:
1.150 moko 12898: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 12899: # can be detected and how.
1.150 moko 12900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12901: /* end confdefs.h. */
12902: #include <ac_nonexistent.h>
12903: _ACEOF
1.150 moko 12904: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 12905: # Broken: success on invalid input.
12906: continue
12907: else
12908: # Passes both tests.
12909: ac_preproc_ok=:
12910: break
12911: fi
1.150 moko 12912: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 12913:
12914: done
12915: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 12916: rm -f conftest.i conftest.err conftest.$ac_ext
12917: if $ac_preproc_ok; then :
1.128 moko 12918: break
12919: fi
12920:
12921: done
12922: ac_cv_prog_CXXCPP=$CXXCPP
12923:
12924: fi
12925: CXXCPP=$ac_cv_prog_CXXCPP
12926: else
12927: ac_cv_prog_CXXCPP=$CXXCPP
12928: fi
1.150 moko 12929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12930: $as_echo "$CXXCPP" >&6; }
1.128 moko 12931: ac_preproc_ok=false
12932: for ac_cxx_preproc_warn_flag in '' yes
12933: do
12934: # Use a header file that comes with gcc, so configuring glibc
12935: # with a fresh cross-compiler works.
12936: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937: # <limits.h> exists even on freestanding compilers.
12938: # On the NeXT, cc -E runs the code through the compiler's parser,
12939: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 12940: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12941: /* end confdefs.h. */
12942: #ifdef __STDC__
12943: # include <limits.h>
12944: #else
12945: # include <assert.h>
12946: #endif
12947: Syntax error
12948: _ACEOF
1.150 moko 12949: if ac_fn_cxx_try_cpp "$LINENO"; then :
12950:
1.128 moko 12951: else
12952: # Broken: fails on valid input.
12953: continue
12954: fi
1.150 moko 12955: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 12956:
1.150 moko 12957: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 12958: # can be detected and how.
1.150 moko 12959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12960: /* end confdefs.h. */
12961: #include <ac_nonexistent.h>
12962: _ACEOF
1.150 moko 12963: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 12964: # Broken: success on invalid input.
12965: continue
12966: else
12967: # Passes both tests.
12968: ac_preproc_ok=:
12969: break
12970: fi
1.150 moko 12971: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 12972:
12973: done
12974: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 12975: rm -f conftest.i conftest.err conftest.$ac_ext
12976: if $ac_preproc_ok; then :
12977:
1.128 moko 12978: else
1.150 moko 12979: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12980: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12981: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12982: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 12983: fi
12984:
12985: ac_ext=c
12986: ac_cpp='$CPP $CPPFLAGS'
12987: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12988: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12989: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12990:
12991: else
12992: _lt_caught_CXX_error=yes
12993: fi
12994:
1.150 moko 12995: ac_ext=cpp
1.128 moko 12996: ac_cpp='$CXXCPP $CPPFLAGS'
12997: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12998: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12999: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13000:
13001: archive_cmds_need_lc_CXX=no
13002: allow_undefined_flag_CXX=
13003: always_export_symbols_CXX=no
13004: archive_expsym_cmds_CXX=
13005: compiler_needs_object_CXX=no
13006: export_dynamic_flag_spec_CXX=
13007: hardcode_direct_CXX=no
13008: hardcode_direct_absolute_CXX=no
13009: hardcode_libdir_flag_spec_CXX=
13010: hardcode_libdir_separator_CXX=
13011: hardcode_minus_L_CXX=no
13012: hardcode_shlibpath_var_CXX=unsupported
13013: hardcode_automatic_CXX=no
13014: inherit_rpath_CXX=no
13015: module_cmds_CXX=
13016: module_expsym_cmds_CXX=
13017: link_all_deplibs_CXX=unknown
13018: old_archive_cmds_CXX=$old_archive_cmds
13019: reload_flag_CXX=$reload_flag
13020: reload_cmds_CXX=$reload_cmds
13021: no_undefined_flag_CXX=
13022: whole_archive_flag_spec_CXX=
13023: enable_shared_with_static_runtimes_CXX=no
13024:
13025: # Source file extension for C++ test sources.
13026: ac_ext=cpp
13027:
13028: # Object file extension for compiled C++ test sources.
13029: objext=o
13030: objext_CXX=$objext
13031:
13032: # No sense in running all these tests if we already determined that
13033: # the CXX compiler isn't working. Some variables (like enable_shared)
13034: # are currently assumed to apply to all compilers on this platform,
13035: # and will be corrupted by setting them based on a non-working compiler.
13036: if test "$_lt_caught_CXX_error" != yes; then
13037: # Code to be used in simple compile tests
13038: lt_simple_compile_test_code="int some_variable = 0;"
13039:
13040: # Code to be used in simple link tests
13041: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13042:
13043: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13044:
13045:
13046:
13047:
13048:
13049:
13050: # If no C compiler was specified, use CC.
13051: LTCC=${LTCC-"$CC"}
13052:
13053: # If no C compiler flags were specified, use CFLAGS.
13054: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13055:
13056: # Allow CC to be a program name with arguments.
13057: compiler=$CC
13058:
13059:
13060: # save warnings/boilerplate of simple test code
13061: ac_outfile=conftest.$ac_objext
13062: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13063: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13064: _lt_compiler_boilerplate=`cat conftest.err`
13065: $RM conftest*
13066:
13067: ac_outfile=conftest.$ac_objext
13068: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13069: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070: _lt_linker_boilerplate=`cat conftest.err`
13071: $RM -r conftest*
13072:
13073:
13074: # Allow CC to be a program name with arguments.
13075: lt_save_CC=$CC
13076: lt_save_CFLAGS=$CFLAGS
13077: lt_save_LD=$LD
13078: lt_save_GCC=$GCC
13079: GCC=$GXX
13080: lt_save_with_gnu_ld=$with_gnu_ld
13081: lt_save_path_LD=$lt_cv_path_LD
13082: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13083: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13084: else
13085: $as_unset lt_cv_prog_gnu_ld
13086: fi
13087: if test -n "${lt_cv_path_LDCXX+set}"; then
13088: lt_cv_path_LD=$lt_cv_path_LDCXX
13089: else
13090: $as_unset lt_cv_path_LD
13091: fi
13092: test -z "${LDCXX+set}" || LD=$LDCXX
13093: CC=${CXX-"c++"}
13094: CFLAGS=$CXXFLAGS
13095: compiler=$CC
13096: compiler_CXX=$CC
13097: for cc_temp in $compiler""; do
13098: case $cc_temp in
13099: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13100: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13101: \-*) ;;
13102: *) break;;
13103: esac
13104: done
13105: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13106:
13107:
13108: if test -n "$compiler"; then
13109: # We don't want -fno-exception when compiling C++ code, so set the
13110: # no_builtin_flag separately
13111: if test "$GXX" = yes; then
13112: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13113: else
13114: lt_prog_compiler_no_builtin_flag_CXX=
13115: fi
13116:
13117: if test "$GXX" = yes; then
13118: # Set up default GNU C++ configuration
13119:
13120:
13121:
1.150 moko 13122: # Check whether --with-gnu-ld was given.
13123: if test "${with_gnu_ld+set}" = set; then :
13124: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13125: else
13126: with_gnu_ld=no
1.150 moko 13127: fi
13128:
1.128 moko 13129: ac_prog=ld
13130: if test "$GCC" = yes; then
13131: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13133: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13134: case $host in
13135: *-*-mingw*)
13136: # gcc leaves a trailing carriage return which upsets mingw
13137: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13138: *)
13139: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13140: esac
13141: case $ac_prog in
13142: # Accept absolute paths.
13143: [\\/]* | ?:[\\/]*)
13144: re_direlt='/[^/][^/]*/\.\./'
13145: # Canonicalize the pathname of ld
13146: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13147: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13148: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13149: done
13150: test -z "$LD" && LD="$ac_prog"
13151: ;;
13152: "")
13153: # If it fails, then pretend we aren't using GCC.
13154: ac_prog=ld
13155: ;;
13156: *)
13157: # If it is relative, then search for the first ld in PATH.
13158: with_gnu_ld=unknown
13159: ;;
13160: esac
13161: elif test "$with_gnu_ld" = yes; then
1.150 moko 13162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13163: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13164: else
1.150 moko 13165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13166: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13167: fi
1.150 moko 13168: if ${lt_cv_path_LD+:} false; then :
13169: $as_echo_n "(cached) " >&6
1.128 moko 13170: else
13171: if test -z "$LD"; then
13172: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13173: for ac_dir in $PATH; do
13174: IFS="$lt_save_ifs"
13175: test -z "$ac_dir" && ac_dir=.
13176: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13177: lt_cv_path_LD="$ac_dir/$ac_prog"
13178: # Check to see if the program is GNU ld. I'd rather use --version,
13179: # but apparently some variants of GNU ld only accept -v.
13180: # Break only if it was the GNU/non-GNU ld that we prefer.
13181: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13182: *GNU* | *'with BFD'*)
13183: test "$with_gnu_ld" != no && break
13184: ;;
13185: *)
13186: test "$with_gnu_ld" != yes && break
13187: ;;
13188: esac
13189: fi
13190: done
13191: IFS="$lt_save_ifs"
13192: else
13193: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13194: fi
13195: fi
13196:
13197: LD="$lt_cv_path_LD"
13198: if test -n "$LD"; then
1.150 moko 13199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13200: $as_echo "$LD" >&6; }
1.128 moko 13201: else
1.150 moko 13202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203: $as_echo "no" >&6; }
1.128 moko 13204: fi
1.150 moko 13205: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13207: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13208: if ${lt_cv_prog_gnu_ld+:} false; then :
13209: $as_echo_n "(cached) " >&6
1.128 moko 13210: else
13211: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13212: case `$LD -v 2>&1 </dev/null` in
13213: *GNU* | *'with BFD'*)
13214: lt_cv_prog_gnu_ld=yes
13215: ;;
13216: *)
13217: lt_cv_prog_gnu_ld=no
13218: ;;
13219: esac
13220: fi
1.150 moko 13221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13222: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13223: with_gnu_ld=$lt_cv_prog_gnu_ld
13224:
13225:
13226:
13227:
13228:
13229:
13230:
13231: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13232: # archiving commands below assume that GNU ld is being used.
13233: if test "$with_gnu_ld" = yes; then
13234: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235: 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'
13236:
13237: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13238: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239:
13240: # If archive_cmds runs LD, not CC, wlarc should be empty
13241: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13242: # investigate it a little bit more. (MM)
13243: wlarc='${wl}'
13244:
13245: # ancient GNU ld didn't support --whole-archive et. al.
13246: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13247: $GREP 'no-whole-archive' > /dev/null; then
13248: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13249: else
13250: whole_archive_flag_spec_CXX=
13251: fi
13252: else
13253: with_gnu_ld=no
13254: wlarc=
13255:
13256: # A generic and very simple default shared library creation
13257: # command for GNU C++ for the case where it uses the native
13258: # linker, instead of GNU ld. If possible, this setting should
13259: # overridden to take advantage of the native linker features on
13260: # the platform it is being used on.
13261: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13262: fi
13263:
13264: # Commands to make compiler produce verbose output that lists
13265: # what "hidden" libraries, object files and flags are used when
13266: # linking a shared library.
13267: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13268:
13269: else
13270: GXX=no
13271: with_gnu_ld=no
13272: wlarc=
13273: fi
13274:
13275: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13277: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13278: ld_shlibs_CXX=yes
13279: case $host_os in
13280: aix3*)
13281: # FIXME: insert proper C++ library support
13282: ld_shlibs_CXX=no
13283: ;;
13284: aix[4-9]*)
13285: if test "$host_cpu" = ia64; then
13286: # On IA64, the linker does run time linking by default, so we don't
13287: # have to do anything special.
13288: aix_use_runtimelinking=no
13289: exp_sym_flag='-Bexport'
13290: no_entry_flag=""
13291: else
13292: aix_use_runtimelinking=no
13293:
13294: # Test if we are trying to use run time linking or normal
13295: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13296: # need to do runtime linking.
13297: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13298: for ld_flag in $LDFLAGS; do
13299: case $ld_flag in
13300: *-brtl*)
13301: aix_use_runtimelinking=yes
13302: break
13303: ;;
13304: esac
13305: done
13306: ;;
13307: esac
13308:
13309: exp_sym_flag='-bexport'
13310: no_entry_flag='-bnoentry'
13311: fi
13312:
13313: # When large executables or shared objects are built, AIX ld can
13314: # have problems creating the table of contents. If linking a library
13315: # or program results in "error TOC overflow" add -mminimal-toc to
13316: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13317: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13318:
13319: archive_cmds_CXX=''
13320: hardcode_direct_CXX=yes
13321: hardcode_direct_absolute_CXX=yes
13322: hardcode_libdir_separator_CXX=':'
13323: link_all_deplibs_CXX=yes
13324: file_list_spec_CXX='${wl}-f,'
13325:
13326: if test "$GXX" = yes; then
13327: case $host_os in aix4.[012]|aix4.[012].*)
13328: # We only want to do this on AIX 4.2 and lower, the check
13329: # below for broken collect2 doesn't work under 4.3+
13330: collect2name=`${CC} -print-prog-name=collect2`
13331: if test -f "$collect2name" &&
13332: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13333: then
13334: # We have reworked collect2
13335: :
13336: else
13337: # We have old collect2
13338: hardcode_direct_CXX=unsupported
13339: # It fails to find uninstalled libraries when the uninstalled
13340: # path is not listed in the libpath. Setting hardcode_minus_L
13341: # to unsupported forces relinking
13342: hardcode_minus_L_CXX=yes
13343: hardcode_libdir_flag_spec_CXX='-L$libdir'
13344: hardcode_libdir_separator_CXX=
13345: fi
13346: esac
13347: shared_flag='-shared'
13348: if test "$aix_use_runtimelinking" = yes; then
13349: shared_flag="$shared_flag "'${wl}-G'
13350: fi
13351: else
13352: # not using gcc
13353: if test "$host_cpu" = ia64; then
13354: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13355: # chokes on -Wl,-G. The following line is correct:
13356: shared_flag='-G'
13357: else
13358: if test "$aix_use_runtimelinking" = yes; then
13359: shared_flag='${wl}-G'
13360: else
13361: shared_flag='${wl}-bM:SRE'
13362: fi
13363: fi
13364: fi
13365:
13366: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13367: # It seems that -bexpall does not export symbols beginning with
13368: # underscore (_), so it is better to generate a list of symbols to
13369: # export.
13370: always_export_symbols_CXX=yes
13371: if test "$aix_use_runtimelinking" = yes; then
13372: # Warning - without using the other runtime loading flags (-brtl),
13373: # -berok will link without error, but may produce a broken library.
13374: allow_undefined_flag_CXX='-berok'
13375: # Determine the default libpath from the value encoded in an empty
13376: # executable.
13377: if test "${lt_cv_aix_libpath+set}" = set; then
13378: aix_libpath=$lt_cv_aix_libpath
13379: else
1.150 moko 13380: if ${lt_cv_aix_libpath__CXX+:} false; then :
13381: $as_echo_n "(cached) " >&6
1.128 moko 13382: else
1.150 moko 13383: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13384: /* end confdefs.h. */
13385:
13386: int
13387: main ()
13388: {
13389:
13390: ;
13391: return 0;
13392: }
13393: _ACEOF
1.150 moko 13394: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13395:
13396: lt_aix_libpath_sed='
13397: /Import File Strings/,/^$/ {
13398: /^0/ {
13399: s/^0 *\([^ ]*\) *$/\1/
13400: p
13401: }
13402: }'
13403: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13404: # Check for a 64-bit object if we didn't find anything.
13405: if test -z "$lt_cv_aix_libpath__CXX"; then
13406: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13407: fi
13408: fi
1.150 moko 13409: rm -f core conftest.err conftest.$ac_objext \
13410: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13411: if test -z "$lt_cv_aix_libpath__CXX"; then
13412: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13413: fi
13414:
13415: fi
13416:
13417: aix_libpath=$lt_cv_aix_libpath__CXX
13418: fi
13419:
13420: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13421:
13422: 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"
13423: else
13424: if test "$host_cpu" = ia64; then
13425: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13426: allow_undefined_flag_CXX="-z nodefs"
13427: 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"
13428: else
13429: # Determine the default libpath from the value encoded in an
13430: # empty executable.
13431: if test "${lt_cv_aix_libpath+set}" = set; then
13432: aix_libpath=$lt_cv_aix_libpath
13433: else
1.150 moko 13434: if ${lt_cv_aix_libpath__CXX+:} false; then :
13435: $as_echo_n "(cached) " >&6
1.128 moko 13436: else
1.150 moko 13437: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13438: /* end confdefs.h. */
13439:
13440: int
13441: main ()
13442: {
13443:
13444: ;
13445: return 0;
13446: }
13447: _ACEOF
1.150 moko 13448: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13449:
13450: lt_aix_libpath_sed='
13451: /Import File Strings/,/^$/ {
13452: /^0/ {
13453: s/^0 *\([^ ]*\) *$/\1/
13454: p
13455: }
13456: }'
13457: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13458: # Check for a 64-bit object if we didn't find anything.
13459: if test -z "$lt_cv_aix_libpath__CXX"; then
13460: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13461: fi
13462: fi
1.150 moko 13463: rm -f core conftest.err conftest.$ac_objext \
13464: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13465: if test -z "$lt_cv_aix_libpath__CXX"; then
13466: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13467: fi
13468:
13469: fi
13470:
13471: aix_libpath=$lt_cv_aix_libpath__CXX
13472: fi
13473:
13474: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13475: # Warning - without using the other run time loading flags,
13476: # -berok will link without error, but may produce a broken library.
13477: no_undefined_flag_CXX=' ${wl}-bernotok'
13478: allow_undefined_flag_CXX=' ${wl}-berok'
13479: if test "$with_gnu_ld" = yes; then
13480: # We only use this code for GNU lds that support --whole-archive.
13481: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13482: else
13483: # Exported symbols can be pulled into shared objects from archives
13484: whole_archive_flag_spec_CXX='$convenience'
13485: fi
13486: archive_cmds_need_lc_CXX=yes
13487: # This is similar to how AIX traditionally builds its shared
13488: # libraries.
13489: 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'
13490: fi
13491: fi
13492: ;;
13493:
13494: beos*)
13495: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13496: allow_undefined_flag_CXX=unsupported
13497: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13498: # support --undefined. This deserves some investigation. FIXME
13499: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13500: else
13501: ld_shlibs_CXX=no
13502: fi
13503: ;;
13504:
13505: chorus*)
13506: case $cc_basename in
13507: *)
13508: # FIXME: insert proper C++ library support
13509: ld_shlibs_CXX=no
13510: ;;
13511: esac
13512: ;;
13513:
13514: cygwin* | mingw* | pw32* | cegcc*)
13515: case $GXX,$cc_basename in
13516: ,cl* | no,cl*)
13517: # Native MSVC
13518: # hardcode_libdir_flag_spec is actually meaningless, as there is
13519: # no search path for DLLs.
13520: hardcode_libdir_flag_spec_CXX=' '
13521: allow_undefined_flag_CXX=unsupported
13522: always_export_symbols_CXX=yes
13523: file_list_spec_CXX='@'
13524: # Tell ltmain to make .lib files, not .a files.
13525: libext=lib
13526: # Tell ltmain to make .dll files, not .so files.
13527: shrext_cmds=".dll"
13528: # FIXME: Setting linknames here is a bad hack.
13529: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13530: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13531: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13532: else
13533: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13534: fi~
13535: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13536: linknames='
13537: # The linker will not automatically build a static lib if we build a DLL.
13538: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13539: enable_shared_with_static_runtimes_CXX=yes
13540: # Don't use ranlib
13541: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13542: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13543: lt_tool_outputfile="@TOOL_OUTPUT@"~
13544: case $lt_outputfile in
13545: *.exe|*.EXE) ;;
13546: *)
13547: lt_outputfile="$lt_outputfile.exe"
13548: lt_tool_outputfile="$lt_tool_outputfile.exe"
13549: ;;
13550: esac~
13551: func_to_tool_file "$lt_outputfile"~
13552: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13553: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13554: $RM "$lt_outputfile.manifest";
13555: fi'
13556: ;;
13557: *)
13558: # g++
13559: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13560: # as there is no search path for DLLs.
13561: hardcode_libdir_flag_spec_CXX='-L$libdir'
13562: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13563: allow_undefined_flag_CXX=unsupported
13564: always_export_symbols_CXX=no
13565: enable_shared_with_static_runtimes_CXX=yes
13566:
13567: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13568: 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'
13569: # If the export-symbols file already is a .def file (1st line
13570: # is EXPORTS), use it as is; otherwise, prepend...
13571: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13572: cp $export_symbols $output_objdir/$soname.def;
13573: else
13574: echo EXPORTS > $output_objdir/$soname.def;
13575: cat $export_symbols >> $output_objdir/$soname.def;
13576: fi~
13577: $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'
13578: else
13579: ld_shlibs_CXX=no
13580: fi
13581: ;;
13582: esac
13583: ;;
13584: darwin* | rhapsody*)
13585:
13586:
13587: archive_cmds_need_lc_CXX=no
13588: hardcode_direct_CXX=no
13589: hardcode_automatic_CXX=yes
13590: hardcode_shlibpath_var_CXX=unsupported
13591: if test "$lt_cv_ld_force_load" = "yes"; then
13592: 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\"`'
13593:
13594: else
13595: whole_archive_flag_spec_CXX=''
13596: fi
13597: link_all_deplibs_CXX=yes
13598: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13599: case $cc_basename in
13600: ifort*) _lt_dar_can_shared=yes ;;
13601: *) _lt_dar_can_shared=$GCC ;;
13602: esac
13603: if test "$_lt_dar_can_shared" = "yes"; then
13604: output_verbose_link_cmd=func_echo_all
13605: 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}"
13606: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13607: 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}"
13608: 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}"
13609: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13610: 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}"
13611: 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}"
13612: fi
13613:
13614: else
13615: ld_shlibs_CXX=no
13616: fi
13617:
13618: ;;
13619:
13620: dgux*)
13621: case $cc_basename in
13622: ec++*)
13623: # FIXME: insert proper C++ library support
13624: ld_shlibs_CXX=no
13625: ;;
13626: ghcx*)
13627: # Green Hills C++ Compiler
13628: # FIXME: insert proper C++ library support
13629: ld_shlibs_CXX=no
13630: ;;
13631: *)
13632: # FIXME: insert proper C++ library support
13633: ld_shlibs_CXX=no
13634: ;;
13635: esac
13636: ;;
13637:
13638: freebsd2.*)
13639: # C++ shared libraries reported to be fairly broken before
13640: # switch to ELF
13641: ld_shlibs_CXX=no
13642: ;;
13643:
13644: freebsd-elf*)
13645: archive_cmds_need_lc_CXX=no
13646: ;;
13647:
13648: freebsd* | dragonfly*)
13649: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13650: # conventions
13651: ld_shlibs_CXX=yes
13652: ;;
13653:
13654: gnu*)
13655: ;;
13656:
13657: haiku*)
13658: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13659: link_all_deplibs_CXX=yes
13660: ;;
13661:
13662: hpux9*)
13663: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13664: hardcode_libdir_separator_CXX=:
13665: export_dynamic_flag_spec_CXX='${wl}-E'
13666: hardcode_direct_CXX=yes
13667: hardcode_minus_L_CXX=yes # Not in the search PATH,
13668: # but as the default
13669: # location of the library.
13670:
13671: case $cc_basename in
13672: CC*)
13673: # FIXME: insert proper C++ library support
13674: ld_shlibs_CXX=no
13675: ;;
13676: aCC*)
13677: 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'
13678: # Commands to make compiler produce verbose output that lists
13679: # what "hidden" libraries, object files and flags are used when
13680: # linking a shared library.
13681: #
13682: # There doesn't appear to be a way to prevent this compiler from
13683: # explicitly linking system object files so we need to strip them
13684: # from the output so that they don't get included in the library
13685: # dependencies.
13686: 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"'
13687: ;;
13688: *)
13689: if test "$GXX" = yes; then
13690: 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'
13691: else
13692: # FIXME: insert proper C++ library support
13693: ld_shlibs_CXX=no
13694: fi
13695: ;;
13696: esac
13697: ;;
13698:
13699: hpux10*|hpux11*)
13700: if test $with_gnu_ld = no; then
13701: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13702: hardcode_libdir_separator_CXX=:
13703:
13704: case $host_cpu in
13705: hppa*64*|ia64*)
13706: ;;
13707: *)
13708: export_dynamic_flag_spec_CXX='${wl}-E'
13709: ;;
13710: esac
13711: fi
13712: case $host_cpu in
13713: hppa*64*|ia64*)
13714: hardcode_direct_CXX=no
13715: hardcode_shlibpath_var_CXX=no
13716: ;;
13717: *)
13718: hardcode_direct_CXX=yes
13719: hardcode_direct_absolute_CXX=yes
13720: hardcode_minus_L_CXX=yes # Not in the search PATH,
13721: # but as the default
13722: # location of the library.
13723: ;;
13724: esac
13725:
13726: case $cc_basename in
13727: CC*)
13728: # FIXME: insert proper C++ library support
13729: ld_shlibs_CXX=no
13730: ;;
13731: aCC*)
13732: case $host_cpu in
13733: hppa*64*)
13734: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13735: ;;
13736: ia64*)
13737: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13738: ;;
13739: *)
13740: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13741: ;;
13742: esac
13743: # Commands to make compiler produce verbose output that lists
13744: # what "hidden" libraries, object files and flags are used when
13745: # linking a shared library.
13746: #
13747: # There doesn't appear to be a way to prevent this compiler from
13748: # explicitly linking system object files so we need to strip them
13749: # from the output so that they don't get included in the library
13750: # dependencies.
13751: 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"'
13752: ;;
13753: *)
13754: if test "$GXX" = yes; then
13755: if test $with_gnu_ld = no; then
13756: case $host_cpu in
13757: hppa*64*)
13758: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13759: ;;
13760: ia64*)
13761: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13762: ;;
13763: *)
13764: 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'
13765: ;;
13766: esac
13767: fi
13768: else
13769: # FIXME: insert proper C++ library support
13770: ld_shlibs_CXX=no
13771: fi
13772: ;;
13773: esac
13774: ;;
13775:
13776: interix[3-9]*)
13777: hardcode_direct_CXX=no
13778: hardcode_shlibpath_var_CXX=no
13779: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13780: export_dynamic_flag_spec_CXX='${wl}-E'
13781: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13782: # Instead, shared libraries are loaded at an image base (0x10000000 by
13783: # default) and relocated if they conflict, which is a slow very memory
13784: # consuming and fragmenting process. To avoid this, we pick a random,
13785: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13786: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13787: 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'
13788: 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'
13789: ;;
13790: irix5* | irix6*)
13791: case $cc_basename in
13792: CC*)
13793: # SGI C++
13794: 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'
13795:
13796: # Archives containing C++ object files must be created using
13797: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13798: # necessary to make sure instantiated templates are included
13799: # in the archive.
13800: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13801: ;;
13802: *)
13803: if test "$GXX" = yes; then
13804: if test "$with_gnu_ld" = no; then
13805: 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'
13806: else
13807: 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'
13808: fi
13809: fi
13810: link_all_deplibs_CXX=yes
13811: ;;
13812: esac
13813: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13814: hardcode_libdir_separator_CXX=:
13815: inherit_rpath_CXX=yes
13816: ;;
13817:
13818: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13819: case $cc_basename in
13820: KCC*)
13821: # Kuck and Associates, Inc. (KAI) C++ Compiler
13822:
13823: # KCC will only create a shared library if the output file
13824: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13825: # to its proper name (with version) after linking.
13826: 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'
13827: 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'
13828: # Commands to make compiler produce verbose output that lists
13829: # what "hidden" libraries, object files and flags are used when
13830: # linking a shared library.
13831: #
13832: # There doesn't appear to be a way to prevent this compiler from
13833: # explicitly linking system object files so we need to strip them
13834: # from the output so that they don't get included in the library
13835: # dependencies.
13836: 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"'
13837:
13838: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13839: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13840:
13841: # Archives containing C++ object files must be created using
13842: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13843: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13844: ;;
13845: icpc* | ecpc* )
13846: # Intel C++
13847: with_gnu_ld=yes
13848: # version 8.0 and above of icpc choke on multiply defined symbols
13849: # if we add $predep_objects and $postdep_objects, however 7.1 and
13850: # earlier do not add the objects themselves.
13851: case `$CC -V 2>&1` in
13852: *"Version 7."*)
13853: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13854: 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'
13855: ;;
13856: *) # Version 8.0 or newer
13857: tmp_idyn=
13858: case $host_cpu in
13859: ia64*) tmp_idyn=' -i_dynamic';;
13860: esac
13861: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13862: 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'
13863: ;;
13864: esac
13865: archive_cmds_need_lc_CXX=no
13866: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13867: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13868: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13869: ;;
13870: pgCC* | pgcpp*)
13871: # Portland Group C++ compiler
13872: case `$CC -V` in
13873: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13874: prelink_cmds_CXX='tpldir=Template.dir~
13875: rm -rf $tpldir~
13876: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13877: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13878: old_archive_cmds_CXX='tpldir=Template.dir~
13879: rm -rf $tpldir~
13880: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13881: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13882: $RANLIB $oldlib'
13883: archive_cmds_CXX='tpldir=Template.dir~
13884: rm -rf $tpldir~
13885: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13886: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13887: archive_expsym_cmds_CXX='tpldir=Template.dir~
13888: rm -rf $tpldir~
13889: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13890: $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'
13891: ;;
13892: *) # Version 6 and above use weak symbols
13893: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13894: 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'
13895: ;;
13896: esac
13897:
13898: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13899: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13900: 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'
13901: ;;
13902: cxx*)
13903: # Compaq C++
13904: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13905: 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'
13906:
13907: runpath_var=LD_RUN_PATH
13908: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13909: hardcode_libdir_separator_CXX=:
13910:
13911: # Commands to make compiler produce verbose output that lists
13912: # what "hidden" libraries, object files and flags are used when
13913: # linking a shared library.
13914: #
13915: # There doesn't appear to be a way to prevent this compiler from
13916: # explicitly linking system object files so we need to strip them
13917: # from the output so that they don't get included in the library
13918: # dependencies.
13919: 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'
13920: ;;
13921: xl* | mpixl* | bgxl*)
13922: # IBM XL 8.0 on PPC, with GNU ld
13923: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13924: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13925: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13926: if test "x$supports_anon_versioning" = xyes; then
13927: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13928: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13929: echo "local: *; };" >> $output_objdir/$libname.ver~
13930: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13931: fi
13932: ;;
13933: *)
13934: case `$CC -V 2>&1 | sed 5q` in
13935: *Sun\ C*)
13936: # Sun C++ 5.9
13937: no_undefined_flag_CXX=' -zdefs'
13938: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13939: 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'
13940: hardcode_libdir_flag_spec_CXX='-R$libdir'
13941: 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'
13942: compiler_needs_object_CXX=yes
13943:
13944: # Not sure whether something based on
13945: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13946: # would be better.
13947: output_verbose_link_cmd='func_echo_all'
13948:
13949: # Archives containing C++ object files must be created using
13950: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13951: # necessary to make sure instantiated templates are included
13952: # in the archive.
13953: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13954: ;;
13955: esac
13956: ;;
13957: esac
13958: ;;
13959:
13960: lynxos*)
13961: # FIXME: insert proper C++ library support
13962: ld_shlibs_CXX=no
13963: ;;
13964:
13965: m88k*)
13966: # FIXME: insert proper C++ library support
13967: ld_shlibs_CXX=no
13968: ;;
13969:
13970: mvs*)
13971: case $cc_basename in
13972: cxx*)
13973: # FIXME: insert proper C++ library support
13974: ld_shlibs_CXX=no
13975: ;;
13976: *)
13977: # FIXME: insert proper C++ library support
13978: ld_shlibs_CXX=no
13979: ;;
13980: esac
13981: ;;
13982:
13983: netbsd*)
13984: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13985: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13986: wlarc=
13987: hardcode_libdir_flag_spec_CXX='-R$libdir'
13988: hardcode_direct_CXX=yes
13989: hardcode_shlibpath_var_CXX=no
13990: fi
13991: # Workaround some broken pre-1.5 toolchains
13992: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13993: ;;
13994:
13995: *nto* | *qnx*)
13996: ld_shlibs_CXX=yes
13997: ;;
13998:
13999: openbsd2*)
14000: # C++ shared libraries are fairly broken
14001: ld_shlibs_CXX=no
14002: ;;
14003:
14004: openbsd*)
14005: if test -f /usr/libexec/ld.so; then
14006: hardcode_direct_CXX=yes
14007: hardcode_shlibpath_var_CXX=no
14008: hardcode_direct_absolute_CXX=yes
14009: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14010: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14011: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14012: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14013: export_dynamic_flag_spec_CXX='${wl}-E'
14014: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14015: fi
14016: output_verbose_link_cmd=func_echo_all
14017: else
14018: ld_shlibs_CXX=no
14019: fi
14020: ;;
14021:
14022: osf3* | osf4* | osf5*)
14023: case $cc_basename in
14024: KCC*)
14025: # Kuck and Associates, Inc. (KAI) C++ Compiler
14026:
14027: # KCC will only create a shared library if the output file
14028: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14029: # to its proper name (with version) after linking.
14030: 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'
14031:
14032: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14033: hardcode_libdir_separator_CXX=:
14034:
14035: # Archives containing C++ object files must be created using
14036: # the KAI C++ compiler.
14037: case $host in
14038: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14039: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14040: esac
14041: ;;
14042: RCC*)
14043: # Rational C++ 2.4.1
14044: # FIXME: insert proper C++ library support
14045: ld_shlibs_CXX=no
14046: ;;
14047: cxx*)
14048: case $host in
14049: osf3*)
14050: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14051: 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'
14052: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14053: ;;
14054: *)
14055: allow_undefined_flag_CXX=' -expect_unresolved \*'
14056: 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'
14057: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14058: echo "-hidden">> $lib.exp~
14059: $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~
14060: $RM $lib.exp'
14061: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14062: ;;
14063: esac
14064:
14065: hardcode_libdir_separator_CXX=:
14066:
14067: # Commands to make compiler produce verbose output that lists
14068: # what "hidden" libraries, object files and flags are used when
14069: # linking a shared library.
14070: #
14071: # There doesn't appear to be a way to prevent this compiler from
14072: # explicitly linking system object files so we need to strip them
14073: # from the output so that they don't get included in the library
14074: # dependencies.
14075: 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"'
14076: ;;
14077: *)
14078: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14079: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14080: case $host in
14081: osf3*)
14082: 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'
14083: ;;
14084: *)
14085: 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'
14086: ;;
14087: esac
14088:
14089: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14090: hardcode_libdir_separator_CXX=:
14091:
14092: # Commands to make compiler produce verbose output that lists
14093: # what "hidden" libraries, object files and flags are used when
14094: # linking a shared library.
14095: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14096:
14097: else
14098: # FIXME: insert proper C++ library support
14099: ld_shlibs_CXX=no
14100: fi
14101: ;;
14102: esac
14103: ;;
14104:
14105: psos*)
14106: # FIXME: insert proper C++ library support
14107: ld_shlibs_CXX=no
14108: ;;
14109:
14110: sunos4*)
14111: case $cc_basename in
14112: CC*)
14113: # Sun C++ 4.x
14114: # FIXME: insert proper C++ library support
14115: ld_shlibs_CXX=no
14116: ;;
14117: lcc*)
14118: # Lucid
14119: # FIXME: insert proper C++ library support
14120: ld_shlibs_CXX=no
14121: ;;
14122: *)
14123: # FIXME: insert proper C++ library support
14124: ld_shlibs_CXX=no
14125: ;;
14126: esac
14127: ;;
14128:
14129: solaris*)
14130: case $cc_basename in
14131: CC* | sunCC*)
14132: # Sun C++ 4.2, 5.x and Centerline C++
14133: archive_cmds_need_lc_CXX=yes
14134: no_undefined_flag_CXX=' -zdefs'
14135: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14136: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14137: $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'
14138:
14139: hardcode_libdir_flag_spec_CXX='-R$libdir'
14140: hardcode_shlibpath_var_CXX=no
14141: case $host_os in
14142: solaris2.[0-5] | solaris2.[0-5].*) ;;
14143: *)
14144: # The compiler driver will combine and reorder linker options,
14145: # but understands `-z linker_flag'.
14146: # Supported since Solaris 2.6 (maybe 2.5.1?)
14147: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14148: ;;
14149: esac
14150: link_all_deplibs_CXX=yes
14151:
14152: output_verbose_link_cmd='func_echo_all'
14153:
14154: # Archives containing C++ object files must be created using
14155: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14156: # necessary to make sure instantiated templates are included
14157: # in the archive.
14158: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14159: ;;
14160: gcx*)
14161: # Green Hills C++ Compiler
14162: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14163:
14164: # The C++ compiler must be used to create the archive.
14165: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14166: ;;
14167: *)
14168: # GNU C++ compiler with Solaris linker
14169: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14170: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14171: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14172: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14173: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14174: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14175:
14176: # Commands to make compiler produce verbose output that lists
14177: # what "hidden" libraries, object files and flags are used when
14178: # linking a shared library.
14179: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14180: else
14181: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14182: # platform.
14183: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14184: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14185: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14186:
14187: # Commands to make compiler produce verbose output that lists
14188: # what "hidden" libraries, object files and flags are used when
14189: # linking a shared library.
14190: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14191: fi
14192:
14193: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14194: case $host_os in
14195: solaris2.[0-5] | solaris2.[0-5].*) ;;
14196: *)
14197: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14198: ;;
14199: esac
14200: fi
14201: ;;
14202: esac
14203: ;;
14204:
14205: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14206: no_undefined_flag_CXX='${wl}-z,text'
14207: archive_cmds_need_lc_CXX=no
14208: hardcode_shlibpath_var_CXX=no
14209: runpath_var='LD_RUN_PATH'
14210:
14211: case $cc_basename in
14212: CC*)
14213: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14214: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215: ;;
14216: *)
14217: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14218: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14219: ;;
14220: esac
14221: ;;
14222:
14223: sysv5* | sco3.2v5* | sco5v6*)
14224: # Note: We can NOT use -z defs as we might desire, because we do not
14225: # link with -lc, and that would cause any symbols used from libc to
14226: # always be unresolved, which means just about no library would
14227: # ever link correctly. If we're not using GNU ld we use -z text
14228: # though, which does catch some bad symbols but isn't as heavy-handed
14229: # as -z defs.
14230: no_undefined_flag_CXX='${wl}-z,text'
14231: allow_undefined_flag_CXX='${wl}-z,nodefs'
14232: archive_cmds_need_lc_CXX=no
14233: hardcode_shlibpath_var_CXX=no
14234: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14235: hardcode_libdir_separator_CXX=':'
14236: link_all_deplibs_CXX=yes
14237: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14238: runpath_var='LD_RUN_PATH'
14239:
14240: case $cc_basename in
14241: CC*)
14242: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14243: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14244: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14245: '"$old_archive_cmds_CXX"
14246: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14247: '"$reload_cmds_CXX"
14248: ;;
14249: *)
14250: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14251: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14252: ;;
14253: esac
14254: ;;
14255:
14256: tandem*)
14257: case $cc_basename in
14258: NCC*)
14259: # NonStop-UX NCC 3.20
14260: # FIXME: insert proper C++ library support
14261: ld_shlibs_CXX=no
14262: ;;
14263: *)
14264: # FIXME: insert proper C++ library support
14265: ld_shlibs_CXX=no
14266: ;;
14267: esac
14268: ;;
14269:
14270: vxworks*)
14271: # FIXME: insert proper C++ library support
14272: ld_shlibs_CXX=no
14273: ;;
14274:
14275: *)
14276: # FIXME: insert proper C++ library support
14277: ld_shlibs_CXX=no
14278: ;;
14279: esac
14280:
1.150 moko 14281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14282: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14283: test "$ld_shlibs_CXX" = no && can_build_shared=no
14284:
14285: GCC_CXX="$GXX"
14286: LD_CXX="$LD"
14287:
14288: ## CAVEAT EMPTOR:
14289: ## There is no encapsulation within the following macros, do not change
14290: ## the running order or otherwise move them around unless you know exactly
14291: ## what you are doing...
14292: # Dependencies to place before and after the object being linked:
14293: predep_objects_CXX=
14294: postdep_objects_CXX=
14295: predeps_CXX=
14296: postdeps_CXX=
14297: compiler_lib_search_path_CXX=
14298:
14299: cat > conftest.$ac_ext <<_LT_EOF
14300: class Foo
14301: {
14302: public:
14303: Foo (void) { a = 0; }
14304: private:
14305: int a;
14306: };
14307: _LT_EOF
14308:
14309:
14310: _lt_libdeps_save_CFLAGS=$CFLAGS
14311: case "$CC $CFLAGS " in #(
14312: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14313: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14314: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14315: esac
14316:
1.150 moko 14317: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14318: (eval $ac_compile) 2>&5
14319: ac_status=$?
1.150 moko 14320: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14321: test $ac_status = 0; }; then
1.128 moko 14322: # Parse the compiler output and extract the necessary
14323: # objects, libraries and library flags.
14324:
14325: # Sentinel used to keep track of whether or not we are before
14326: # the conftest object file.
14327: pre_test_object_deps_done=no
14328:
14329: for p in `eval "$output_verbose_link_cmd"`; do
14330: case ${prev}${p} in
14331:
14332: -L* | -R* | -l*)
14333: # Some compilers place space between "-{L,R}" and the path.
14334: # Remove the space.
14335: if test $p = "-L" ||
14336: test $p = "-R"; then
14337: prev=$p
14338: continue
14339: fi
14340:
14341: # Expand the sysroot to ease extracting the directories later.
14342: if test -z "$prev"; then
14343: case $p in
14344: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14345: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14346: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14347: esac
14348: fi
14349: case $p in
14350: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14351: esac
14352: if test "$pre_test_object_deps_done" = no; then
14353: case ${prev} in
14354: -L | -R)
14355: # Internal compiler library paths should come after those
14356: # provided the user. The postdeps already come after the
14357: # user supplied libs so there is no need to process them.
14358: if test -z "$compiler_lib_search_path_CXX"; then
14359: compiler_lib_search_path_CXX="${prev}${p}"
14360: else
14361: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14362: fi
14363: ;;
14364: # The "-l" case would never come before the object being
14365: # linked, so don't bother handling this case.
14366: esac
14367: else
14368: if test -z "$postdeps_CXX"; then
14369: postdeps_CXX="${prev}${p}"
14370: else
14371: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14372: fi
14373: fi
14374: prev=
14375: ;;
14376:
14377: *.lto.$objext) ;; # Ignore GCC LTO objects
14378: *.$objext)
14379: # This assumes that the test object file only shows up
14380: # once in the compiler output.
14381: if test "$p" = "conftest.$objext"; then
14382: pre_test_object_deps_done=yes
14383: continue
14384: fi
14385:
14386: if test "$pre_test_object_deps_done" = no; then
14387: if test -z "$predep_objects_CXX"; then
14388: predep_objects_CXX="$p"
14389: else
14390: predep_objects_CXX="$predep_objects_CXX $p"
14391: fi
14392: else
14393: if test -z "$postdep_objects_CXX"; then
14394: postdep_objects_CXX="$p"
14395: else
14396: postdep_objects_CXX="$postdep_objects_CXX $p"
14397: fi
14398: fi
14399: ;;
14400:
14401: *) ;; # Ignore the rest.
14402:
14403: esac
14404: done
14405:
14406: # Clean up.
14407: rm -f a.out a.exe
14408: else
14409: echo "libtool.m4: error: problem compiling CXX test program"
14410: fi
14411:
14412: $RM -f confest.$objext
14413: CFLAGS=$_lt_libdeps_save_CFLAGS
14414:
14415: # PORTME: override above test on systems where it is broken
14416: case $host_os in
14417: interix[3-9]*)
14418: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14419: # hack all around it, let's just trust "g++" to DTRT.
14420: predep_objects_CXX=
14421: postdep_objects_CXX=
14422: postdeps_CXX=
14423: ;;
14424:
14425: linux*)
14426: case `$CC -V 2>&1 | sed 5q` in
14427: *Sun\ C*)
14428: # Sun C++ 5.9
14429:
14430: # The more standards-conforming stlport4 library is
14431: # incompatible with the Cstd library. Avoid specifying
14432: # it if it's in CXXFLAGS. Ignore libCrun as
14433: # -library=stlport4 depends on it.
14434: case " $CXX $CXXFLAGS " in
14435: *" -library=stlport4 "*)
14436: solaris_use_stlport4=yes
14437: ;;
14438: esac
14439:
14440: if test "$solaris_use_stlport4" != yes; then
14441: postdeps_CXX='-library=Cstd -library=Crun'
14442: fi
14443: ;;
14444: esac
14445: ;;
14446:
14447: solaris*)
14448: case $cc_basename in
14449: CC* | sunCC*)
14450: # The more standards-conforming stlport4 library is
14451: # incompatible with the Cstd library. Avoid specifying
14452: # it if it's in CXXFLAGS. Ignore libCrun as
14453: # -library=stlport4 depends on it.
14454: case " $CXX $CXXFLAGS " in
14455: *" -library=stlport4 "*)
14456: solaris_use_stlport4=yes
14457: ;;
14458: esac
14459:
14460: # Adding this requires a known-good setup of shared libraries for
14461: # Sun compiler versions before 5.6, else PIC objects from an old
14462: # archive will be linked into the output, leading to subtle bugs.
14463: if test "$solaris_use_stlport4" != yes; then
14464: postdeps_CXX='-library=Cstd -library=Crun'
14465: fi
14466: ;;
14467: esac
14468: ;;
14469: esac
14470:
14471:
14472: case " $postdeps_CXX " in
14473: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14474: esac
14475: compiler_lib_search_dirs_CXX=
14476: if test -n "${compiler_lib_search_path_CXX}"; then
14477: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14478: fi
14479:
14480:
14481:
14482:
14483:
14484:
14485:
14486:
14487:
14488:
14489:
14490:
14491:
14492:
14493:
14494:
14495:
14496:
14497:
14498:
14499:
14500:
14501:
14502:
14503:
14504:
14505:
14506:
14507:
14508:
14509:
14510: lt_prog_compiler_wl_CXX=
14511: lt_prog_compiler_pic_CXX=
14512: lt_prog_compiler_static_CXX=
14513:
14514:
14515: # C++ specific cases for pic, static, wl, etc.
14516: if test "$GXX" = yes; then
14517: lt_prog_compiler_wl_CXX='-Wl,'
14518: lt_prog_compiler_static_CXX='-static'
14519:
14520: case $host_os in
14521: aix*)
14522: # All AIX code is PIC.
14523: if test "$host_cpu" = ia64; then
14524: # AIX 5 now supports IA64 processor
14525: lt_prog_compiler_static_CXX='-Bstatic'
14526: fi
14527: ;;
14528:
14529: amigaos*)
14530: case $host_cpu in
14531: powerpc)
14532: # see comment about AmigaOS4 .so support
14533: lt_prog_compiler_pic_CXX='-fPIC'
14534: ;;
14535: m68k)
14536: # FIXME: we need at least 68020 code to build shared libraries, but
14537: # adding the `-m68020' flag to GCC prevents building anything better,
14538: # like `-m68040'.
14539: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14540: ;;
14541: esac
14542: ;;
14543:
14544: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14545: # PIC is the default for these OSes.
14546: ;;
14547: mingw* | cygwin* | os2* | pw32* | cegcc*)
14548: # This hack is so that the source file can tell whether it is being
14549: # built for inclusion in a dll (and should export symbols for example).
14550: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14551: # (--disable-auto-import) libraries
14552: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14553: ;;
14554: darwin* | rhapsody*)
14555: # PIC is the default on this platform
14556: # Common symbols not allowed in MH_DYLIB files
14557: lt_prog_compiler_pic_CXX='-fno-common'
14558: ;;
14559: *djgpp*)
14560: # DJGPP does not support shared libraries at all
14561: lt_prog_compiler_pic_CXX=
14562: ;;
14563: haiku*)
14564: # PIC is the default for Haiku.
14565: # The "-static" flag exists, but is broken.
14566: lt_prog_compiler_static_CXX=
14567: ;;
14568: interix[3-9]*)
14569: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14570: # Instead, we relocate shared libraries at runtime.
14571: ;;
14572: sysv4*MP*)
14573: if test -d /usr/nec; then
14574: lt_prog_compiler_pic_CXX=-Kconform_pic
14575: fi
14576: ;;
14577: hpux*)
14578: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14579: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14580: # sets the default TLS model and affects inlining.
14581: case $host_cpu in
14582: hppa*64*)
14583: ;;
14584: *)
14585: lt_prog_compiler_pic_CXX='-fPIC'
14586: ;;
14587: esac
14588: ;;
14589: *qnx* | *nto*)
14590: # QNX uses GNU C++, but need to define -shared option too, otherwise
14591: # it will coredump.
14592: lt_prog_compiler_pic_CXX='-fPIC -shared'
14593: ;;
14594: *)
14595: lt_prog_compiler_pic_CXX='-fPIC'
14596: ;;
14597: esac
14598: else
14599: case $host_os in
14600: aix[4-9]*)
14601: # All AIX code is PIC.
14602: if test "$host_cpu" = ia64; then
14603: # AIX 5 now supports IA64 processor
14604: lt_prog_compiler_static_CXX='-Bstatic'
14605: else
14606: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14607: fi
14608: ;;
14609: chorus*)
14610: case $cc_basename in
14611: cxch68*)
14612: # Green Hills C++ Compiler
14613: # _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"
14614: ;;
14615: esac
14616: ;;
14617: mingw* | cygwin* | os2* | pw32* | cegcc*)
14618: # This hack is so that the source file can tell whether it is being
14619: # built for inclusion in a dll (and should export symbols for example).
14620: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14621: ;;
14622: dgux*)
14623: case $cc_basename in
14624: ec++*)
14625: lt_prog_compiler_pic_CXX='-KPIC'
14626: ;;
14627: ghcx*)
14628: # Green Hills C++ Compiler
14629: lt_prog_compiler_pic_CXX='-pic'
14630: ;;
14631: *)
14632: ;;
14633: esac
14634: ;;
14635: freebsd* | dragonfly*)
14636: # FreeBSD uses GNU C++
14637: ;;
14638: hpux9* | hpux10* | hpux11*)
14639: case $cc_basename in
14640: CC*)
14641: lt_prog_compiler_wl_CXX='-Wl,'
14642: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14643: if test "$host_cpu" != ia64; then
14644: lt_prog_compiler_pic_CXX='+Z'
14645: fi
14646: ;;
14647: aCC*)
14648: lt_prog_compiler_wl_CXX='-Wl,'
14649: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14650: case $host_cpu in
14651: hppa*64*|ia64*)
14652: # +Z the default
14653: ;;
14654: *)
14655: lt_prog_compiler_pic_CXX='+Z'
14656: ;;
14657: esac
14658: ;;
14659: *)
14660: ;;
14661: esac
14662: ;;
14663: interix*)
14664: # This is c89, which is MS Visual C++ (no shared libs)
14665: # Anyone wants to do a port?
14666: ;;
14667: irix5* | irix6* | nonstopux*)
14668: case $cc_basename in
14669: CC*)
14670: lt_prog_compiler_wl_CXX='-Wl,'
14671: lt_prog_compiler_static_CXX='-non_shared'
14672: # CC pic flag -KPIC is the default.
14673: ;;
14674: *)
14675: ;;
14676: esac
14677: ;;
14678: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14679: case $cc_basename in
14680: KCC*)
14681: # KAI C++ Compiler
14682: lt_prog_compiler_wl_CXX='--backend -Wl,'
14683: lt_prog_compiler_pic_CXX='-fPIC'
14684: ;;
14685: ecpc* )
14686: # old Intel C++ for x86_64 which still supported -KPIC.
14687: lt_prog_compiler_wl_CXX='-Wl,'
14688: lt_prog_compiler_pic_CXX='-KPIC'
14689: lt_prog_compiler_static_CXX='-static'
14690: ;;
14691: icpc* )
14692: # Intel C++, used to be incompatible with GCC.
14693: # ICC 10 doesn't accept -KPIC any more.
14694: lt_prog_compiler_wl_CXX='-Wl,'
14695: lt_prog_compiler_pic_CXX='-fPIC'
14696: lt_prog_compiler_static_CXX='-static'
14697: ;;
14698: pgCC* | pgcpp*)
14699: # Portland Group C++ compiler
14700: lt_prog_compiler_wl_CXX='-Wl,'
14701: lt_prog_compiler_pic_CXX='-fpic'
14702: lt_prog_compiler_static_CXX='-Bstatic'
14703: ;;
14704: cxx*)
14705: # Compaq C++
14706: # Make sure the PIC flag is empty. It appears that all Alpha
14707: # Linux and Compaq Tru64 Unix objects are PIC.
14708: lt_prog_compiler_pic_CXX=
14709: lt_prog_compiler_static_CXX='-non_shared'
14710: ;;
14711: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14712: # IBM XL 8.0, 9.0 on PPC and BlueGene
14713: lt_prog_compiler_wl_CXX='-Wl,'
14714: lt_prog_compiler_pic_CXX='-qpic'
14715: lt_prog_compiler_static_CXX='-qstaticlink'
14716: ;;
14717: *)
14718: case `$CC -V 2>&1 | sed 5q` in
14719: *Sun\ C*)
14720: # Sun C++ 5.9
14721: lt_prog_compiler_pic_CXX='-KPIC'
14722: lt_prog_compiler_static_CXX='-Bstatic'
14723: lt_prog_compiler_wl_CXX='-Qoption ld '
14724: ;;
14725: esac
14726: ;;
14727: esac
14728: ;;
14729: lynxos*)
14730: ;;
14731: m88k*)
14732: ;;
14733: mvs*)
14734: case $cc_basename in
14735: cxx*)
14736: lt_prog_compiler_pic_CXX='-W c,exportall'
14737: ;;
14738: *)
14739: ;;
14740: esac
14741: ;;
14742: netbsd*)
14743: ;;
14744: *qnx* | *nto*)
14745: # QNX uses GNU C++, but need to define -shared option too, otherwise
14746: # it will coredump.
14747: lt_prog_compiler_pic_CXX='-fPIC -shared'
14748: ;;
14749: osf3* | osf4* | osf5*)
14750: case $cc_basename in
14751: KCC*)
14752: lt_prog_compiler_wl_CXX='--backend -Wl,'
14753: ;;
14754: RCC*)
14755: # Rational C++ 2.4.1
14756: lt_prog_compiler_pic_CXX='-pic'
14757: ;;
14758: cxx*)
14759: # Digital/Compaq C++
14760: lt_prog_compiler_wl_CXX='-Wl,'
14761: # Make sure the PIC flag is empty. It appears that all Alpha
14762: # Linux and Compaq Tru64 Unix objects are PIC.
14763: lt_prog_compiler_pic_CXX=
14764: lt_prog_compiler_static_CXX='-non_shared'
14765: ;;
14766: *)
14767: ;;
14768: esac
14769: ;;
14770: psos*)
14771: ;;
14772: solaris*)
14773: case $cc_basename in
14774: CC* | sunCC*)
14775: # Sun C++ 4.2, 5.x and Centerline C++
14776: lt_prog_compiler_pic_CXX='-KPIC'
14777: lt_prog_compiler_static_CXX='-Bstatic'
14778: lt_prog_compiler_wl_CXX='-Qoption ld '
14779: ;;
14780: gcx*)
14781: # Green Hills C++ Compiler
14782: lt_prog_compiler_pic_CXX='-PIC'
14783: ;;
14784: *)
14785: ;;
14786: esac
14787: ;;
14788: sunos4*)
14789: case $cc_basename in
14790: CC*)
14791: # Sun C++ 4.x
14792: lt_prog_compiler_pic_CXX='-pic'
14793: lt_prog_compiler_static_CXX='-Bstatic'
14794: ;;
14795: lcc*)
14796: # Lucid
14797: lt_prog_compiler_pic_CXX='-pic'
14798: ;;
14799: *)
14800: ;;
14801: esac
14802: ;;
14803: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14804: case $cc_basename in
14805: CC*)
14806: lt_prog_compiler_wl_CXX='-Wl,'
14807: lt_prog_compiler_pic_CXX='-KPIC'
14808: lt_prog_compiler_static_CXX='-Bstatic'
14809: ;;
14810: esac
14811: ;;
14812: tandem*)
14813: case $cc_basename in
14814: NCC*)
14815: # NonStop-UX NCC 3.20
14816: lt_prog_compiler_pic_CXX='-KPIC'
14817: ;;
14818: *)
14819: ;;
14820: esac
14821: ;;
14822: vxworks*)
14823: ;;
14824: *)
14825: lt_prog_compiler_can_build_shared_CXX=no
14826: ;;
14827: esac
14828: fi
14829:
14830: case $host_os in
14831: # For platforms which do not support PIC, -DPIC is meaningless:
14832: *djgpp*)
14833: lt_prog_compiler_pic_CXX=
14834: ;;
14835: *)
14836: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14837: ;;
14838: esac
14839:
1.150 moko 14840: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14841: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14842: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14843: $as_echo_n "(cached) " >&6
1.128 moko 14844: else
14845: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14846: fi
1.150 moko 14847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14848: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 14849: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14850:
14851: #
14852: # Check to make sure the PIC flag actually works.
14853: #
14854: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 14855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14856: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14857: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14858: $as_echo_n "(cached) " >&6
1.128 moko 14859: else
14860: lt_cv_prog_compiler_pic_works_CXX=no
14861: ac_outfile=conftest.$ac_objext
14862: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14863: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14864: # Insert the option either (1) after the last *FLAGS variable, or
14865: # (2) before a word containing "conftest.", or (3) at the end.
14866: # Note that $ac_compile itself does not contain backslashes and begins
14867: # with a dollar sign (not a hyphen), so the echo should work correctly.
14868: # The option is referenced via a variable to avoid confusing sed.
14869: lt_compile=`echo "$ac_compile" | $SED \
14870: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14871: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14872: -e 's:$: $lt_compiler_flag:'`
14873: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14874: (eval "$lt_compile" 2>conftest.err)
14875: ac_status=$?
14876: cat conftest.err >&5
14877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878: if (exit $ac_status) && test -s "$ac_outfile"; then
14879: # The compiler can only warn and ignore the option if not recognized
14880: # So say no if there are warnings other than the usual output.
14881: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14882: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14883: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14884: lt_cv_prog_compiler_pic_works_CXX=yes
14885: fi
14886: fi
14887: $RM conftest*
14888:
14889: fi
1.150 moko 14890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14891: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 14892:
14893: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14894: case $lt_prog_compiler_pic_CXX in
14895: "" | " "*) ;;
14896: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14897: esac
14898: else
14899: lt_prog_compiler_pic_CXX=
14900: lt_prog_compiler_can_build_shared_CXX=no
14901: fi
14902:
14903: fi
14904:
14905:
14906:
14907:
14908:
14909: #
14910: # Check to make sure the static flag actually works.
14911: #
14912: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 14913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14914: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14915: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14916: $as_echo_n "(cached) " >&6
1.128 moko 14917: else
14918: lt_cv_prog_compiler_static_works_CXX=no
14919: save_LDFLAGS="$LDFLAGS"
14920: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14921: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14922: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14923: # The linker can only warn and ignore the option if not recognized
14924: # So say no if there are warnings
14925: if test -s conftest.err; then
14926: # Append any errors to the config.log.
14927: cat conftest.err 1>&5
14928: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14929: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14930: if diff conftest.exp conftest.er2 >/dev/null; then
14931: lt_cv_prog_compiler_static_works_CXX=yes
14932: fi
14933: else
14934: lt_cv_prog_compiler_static_works_CXX=yes
14935: fi
14936: fi
14937: $RM -r conftest*
14938: LDFLAGS="$save_LDFLAGS"
14939:
14940: fi
1.150 moko 14941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14942: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 14943:
14944: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14945: :
14946: else
14947: lt_prog_compiler_static_CXX=
14948: fi
14949:
14950:
14951:
14952:
1.150 moko 14953: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14954: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14955: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14956: $as_echo_n "(cached) " >&6
1.128 moko 14957: else
14958: lt_cv_prog_compiler_c_o_CXX=no
14959: $RM -r conftest 2>/dev/null
14960: mkdir conftest
14961: cd conftest
14962: mkdir out
14963: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14964:
14965: lt_compiler_flag="-o out/conftest2.$ac_objext"
14966: # Insert the option either (1) after the last *FLAGS variable, or
14967: # (2) before a word containing "conftest.", or (3) at the end.
14968: # Note that $ac_compile itself does not contain backslashes and begins
14969: # with a dollar sign (not a hyphen), so the echo should work correctly.
14970: lt_compile=`echo "$ac_compile" | $SED \
14971: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14972: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14973: -e 's:$: $lt_compiler_flag:'`
14974: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14975: (eval "$lt_compile" 2>out/conftest.err)
14976: ac_status=$?
14977: cat out/conftest.err >&5
14978: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14980: then
14981: # The compiler can only warn and ignore the option if not recognized
14982: # So say no if there are warnings
14983: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14984: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14985: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14986: lt_cv_prog_compiler_c_o_CXX=yes
14987: fi
14988: fi
14989: chmod u+w . 2>&5
14990: $RM conftest*
14991: # SGI C++ compiler will create directory out/ii_files/ for
14992: # template instantiation
14993: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14994: $RM out/* && rmdir out
14995: cd ..
14996: $RM -r conftest
14997: $RM conftest*
14998:
14999: fi
1.150 moko 15000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15001: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15002:
15003:
15004:
1.150 moko 15005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15006: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15007: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15008: $as_echo_n "(cached) " >&6
1.128 moko 15009: else
15010: lt_cv_prog_compiler_c_o_CXX=no
15011: $RM -r conftest 2>/dev/null
15012: mkdir conftest
15013: cd conftest
15014: mkdir out
15015: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15016:
15017: lt_compiler_flag="-o out/conftest2.$ac_objext"
15018: # Insert the option either (1) after the last *FLAGS variable, or
15019: # (2) before a word containing "conftest.", or (3) at the end.
15020: # Note that $ac_compile itself does not contain backslashes and begins
15021: # with a dollar sign (not a hyphen), so the echo should work correctly.
15022: lt_compile=`echo "$ac_compile" | $SED \
15023: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15024: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15025: -e 's:$: $lt_compiler_flag:'`
15026: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15027: (eval "$lt_compile" 2>out/conftest.err)
15028: ac_status=$?
15029: cat out/conftest.err >&5
15030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15032: then
15033: # The compiler can only warn and ignore the option if not recognized
15034: # So say no if there are warnings
15035: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15036: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15037: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15038: lt_cv_prog_compiler_c_o_CXX=yes
15039: fi
15040: fi
15041: chmod u+w . 2>&5
15042: $RM conftest*
15043: # SGI C++ compiler will create directory out/ii_files/ for
15044: # template instantiation
15045: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15046: $RM out/* && rmdir out
15047: cd ..
15048: $RM -r conftest
15049: $RM conftest*
15050:
15051: fi
1.150 moko 15052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15053: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15054:
15055:
15056:
15057:
15058: hard_links="nottested"
15059: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15060: # do not overwrite the value of need_locks provided by the user
1.150 moko 15061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15062: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15063: hard_links=yes
15064: $RM conftest*
15065: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15066: touch conftest.a
15067: ln conftest.a conftest.b 2>&5 || hard_links=no
15068: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15070: $as_echo "$hard_links" >&6; }
1.128 moko 15071: if test "$hard_links" = no; then
1.150 moko 15072: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15073: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15074: need_locks=warn
15075: fi
15076: else
15077: need_locks=no
15078: fi
15079:
15080:
15081:
1.150 moko 15082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15083: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15084:
15085: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15086: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15087: case $host_os in
15088: aix[4-9]*)
15089: # If we're using GNU nm, then we don't want the "-C" option.
15090: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15091: # Also, AIX nm treats weak defined symbols like other global defined
15092: # symbols, whereas GNU nm marks them as "W".
15093: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15094: 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'
15095: else
15096: 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'
15097: fi
15098: ;;
15099: pw32*)
15100: export_symbols_cmds_CXX="$ltdll_cmds"
15101: ;;
15102: cygwin* | mingw* | cegcc*)
15103: case $cc_basename in
15104: cl*)
15105: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15106: ;;
15107: *)
15108: 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'
15109: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15110: ;;
15111: esac
15112: ;;
15113: *)
15114: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15115: ;;
15116: esac
15117:
1.150 moko 15118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15119: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15120: test "$ld_shlibs_CXX" = no && can_build_shared=no
15121:
15122: with_gnu_ld_CXX=$with_gnu_ld
15123:
15124:
15125:
15126:
15127:
15128:
15129: #
15130: # Do we need to explicitly link libc?
15131: #
15132: case "x$archive_cmds_need_lc_CXX" in
15133: x|xyes)
15134: # Assume -lc should be added
15135: archive_cmds_need_lc_CXX=yes
15136:
15137: if test "$enable_shared" = yes && test "$GCC" = yes; then
15138: case $archive_cmds_CXX in
15139: *'~'*)
15140: # FIXME: we may have to deal with multi-command sequences.
15141: ;;
15142: '$CC '*)
15143: # Test whether the compiler implicitly links with -lc since on some
15144: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15145: # to ld, don't add -lc before -lgcc.
1.150 moko 15146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15147: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15148: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15149: $as_echo_n "(cached) " >&6
1.128 moko 15150: else
15151: $RM conftest*
15152: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15153:
1.150 moko 15154: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15155: (eval $ac_compile) 2>&5
15156: ac_status=$?
1.150 moko 15157: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15158: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15159: soname=conftest
15160: lib=conftest
15161: libobjs=conftest.$ac_objext
15162: deplibs=
15163: wl=$lt_prog_compiler_wl_CXX
15164: pic_flag=$lt_prog_compiler_pic_CXX
15165: compiler_flags=-v
15166: linker_flags=-v
15167: verstring=
15168: output_objdir=.
15169: libname=conftest
15170: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15171: allow_undefined_flag_CXX=
1.150 moko 15172: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15173: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15174: ac_status=$?
1.150 moko 15175: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15176: test $ac_status = 0; }
1.128 moko 15177: then
15178: lt_cv_archive_cmds_need_lc_CXX=no
15179: else
15180: lt_cv_archive_cmds_need_lc_CXX=yes
15181: fi
15182: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15183: else
15184: cat conftest.err 1>&5
15185: fi
15186: $RM conftest*
15187:
15188: fi
1.150 moko 15189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15190: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15191: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15192: ;;
15193: esac
15194: fi
15195: ;;
15196: esac
15197:
15198:
15199:
15200:
15201:
15202:
15203:
15204:
15205:
15206:
15207:
15208:
15209:
15210:
15211:
15212:
15213:
15214:
15215:
15216:
15217:
15218:
15219:
15220:
15221:
15222:
15223:
15224:
15225:
15226:
15227:
15228:
15229:
15230:
15231:
15232:
15233:
15234:
15235:
15236:
15237:
15238:
15239:
15240:
15241:
15242:
15243:
15244:
15245:
15246:
15247:
15248:
15249:
15250:
15251:
15252:
15253:
15254:
15255:
15256:
15257:
15258:
1.150 moko 15259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15260: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15261:
15262: library_names_spec=
15263: libname_spec='lib$name'
15264: soname_spec=
15265: shrext_cmds=".so"
15266: postinstall_cmds=
15267: postuninstall_cmds=
15268: finish_cmds=
15269: finish_eval=
15270: shlibpath_var=
15271: shlibpath_overrides_runpath=unknown
15272: version_type=none
15273: dynamic_linker="$host_os ld.so"
15274: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15275: need_lib_prefix=unknown
15276: hardcode_into_libs=no
15277:
15278: # when you set need_version to no, make sure it does not cause -set_version
15279: # flags to be left without arguments
15280: need_version=unknown
15281:
15282: case $host_os in
15283: aix3*)
15284: version_type=linux # correct to gnu/linux during the next big refactor
15285: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15286: shlibpath_var=LIBPATH
15287:
15288: # AIX 3 has no versioning support, so we append a major version to the name.
15289: soname_spec='${libname}${release}${shared_ext}$major'
15290: ;;
15291:
15292: aix[4-9]*)
15293: version_type=linux # correct to gnu/linux during the next big refactor
15294: need_lib_prefix=no
15295: need_version=no
15296: hardcode_into_libs=yes
15297: if test "$host_cpu" = ia64; then
15298: # AIX 5 supports IA64
15299: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15300: shlibpath_var=LD_LIBRARY_PATH
15301: else
15302: # With GCC up to 2.95.x, collect2 would create an import file
15303: # for dependence libraries. The import file would start with
15304: # the line `#! .'. This would cause the generated library to
15305: # depend on `.', always an invalid library. This was fixed in
15306: # development snapshots of GCC prior to 3.0.
15307: case $host_os in
15308: aix4 | aix4.[01] | aix4.[01].*)
15309: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15310: echo ' yes '
15311: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15312: :
15313: else
15314: can_build_shared=no
15315: fi
15316: ;;
15317: esac
15318: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15319: # soname into executable. Probably we can add versioning support to
15320: # collect2, so additional links can be useful in future.
15321: if test "$aix_use_runtimelinking" = yes; then
15322: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15323: # instead of lib<name>.a to let people know that these are not
15324: # typical AIX shared libraries.
15325: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326: else
15327: # We preserve .a as extension for shared libraries through AIX4.2
15328: # and later when we are not doing run time linking.
15329: library_names_spec='${libname}${release}.a $libname.a'
15330: soname_spec='${libname}${release}${shared_ext}$major'
15331: fi
15332: shlibpath_var=LIBPATH
15333: fi
15334: ;;
15335:
15336: amigaos*)
15337: case $host_cpu in
15338: powerpc)
15339: # Since July 2007 AmigaOS4 officially supports .so libraries.
15340: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15341: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342: ;;
15343: m68k)
15344: library_names_spec='$libname.ixlibrary $libname.a'
15345: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15346: 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'
15347: ;;
15348: esac
15349: ;;
15350:
15351: beos*)
15352: library_names_spec='${libname}${shared_ext}'
15353: dynamic_linker="$host_os ld.so"
15354: shlibpath_var=LIBRARY_PATH
15355: ;;
15356:
15357: bsdi[45]*)
15358: version_type=linux # correct to gnu/linux during the next big refactor
15359: need_version=no
15360: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361: soname_spec='${libname}${release}${shared_ext}$major'
15362: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15363: shlibpath_var=LD_LIBRARY_PATH
15364: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15365: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15366: # the default ld.so.conf also contains /usr/contrib/lib and
15367: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15368: # libtool to hard-code these into programs
15369: ;;
15370:
15371: cygwin* | mingw* | pw32* | cegcc*)
15372: version_type=windows
15373: shrext_cmds=".dll"
15374: need_version=no
15375: need_lib_prefix=no
15376:
15377: case $GCC,$cc_basename in
15378: yes,*)
15379: # gcc
15380: library_names_spec='$libname.dll.a'
15381: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15382: postinstall_cmds='base_file=`basename \${file}`~
15383: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15384: dldir=$destdir/`dirname \$dlpath`~
15385: test -d \$dldir || mkdir -p \$dldir~
15386: $install_prog $dir/$dlname \$dldir/$dlname~
15387: chmod a+x \$dldir/$dlname~
15388: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15389: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15390: fi'
15391: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15392: dlpath=$dir/\$dldll~
15393: $RM \$dlpath'
15394: shlibpath_overrides_runpath=yes
15395:
15396: case $host_os in
15397: cygwin*)
15398: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15399: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15400:
15401: ;;
15402: mingw* | cegcc*)
15403: # MinGW DLLs use traditional 'lib' prefix
15404: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15405: ;;
15406: pw32*)
15407: # pw32 DLLs use 'pw' prefix rather than 'lib'
15408: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15409: ;;
15410: esac
15411: dynamic_linker='Win32 ld.exe'
15412: ;;
15413:
15414: *,cl*)
15415: # Native MSVC
15416: libname_spec='$name'
15417: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15418: library_names_spec='${libname}.dll.lib'
15419:
15420: case $build_os in
15421: mingw*)
15422: sys_lib_search_path_spec=
15423: lt_save_ifs=$IFS
15424: IFS=';'
15425: for lt_path in $LIB
15426: do
15427: IFS=$lt_save_ifs
15428: # Let DOS variable expansion print the short 8.3 style file name.
15429: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15430: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15431: done
15432: IFS=$lt_save_ifs
15433: # Convert to MSYS style.
15434: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15435: ;;
15436: cygwin*)
15437: # Convert to unix form, then to dos form, then back to unix form
15438: # but this time dos style (no spaces!) so that the unix form looks
15439: # like /cygdrive/c/PROGRA~1:/cygdr...
15440: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15441: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15442: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15443: ;;
15444: *)
15445: sys_lib_search_path_spec="$LIB"
15446: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15447: # It is most probably a Windows format PATH.
15448: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15449: else
15450: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15451: fi
15452: # FIXME: find the short name or the path components, as spaces are
15453: # common. (e.g. "Program Files" -> "PROGRA~1")
15454: ;;
15455: esac
15456:
15457: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15458: postinstall_cmds='base_file=`basename \${file}`~
15459: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15460: dldir=$destdir/`dirname \$dlpath`~
15461: test -d \$dldir || mkdir -p \$dldir~
15462: $install_prog $dir/$dlname \$dldir/$dlname'
15463: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15464: dlpath=$dir/\$dldll~
15465: $RM \$dlpath'
15466: shlibpath_overrides_runpath=yes
15467: dynamic_linker='Win32 link.exe'
15468: ;;
15469:
15470: *)
15471: # Assume MSVC wrapper
15472: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15473: dynamic_linker='Win32 ld.exe'
15474: ;;
15475: esac
15476: # FIXME: first we should search . and the directory the executable is in
15477: shlibpath_var=PATH
15478: ;;
15479:
15480: darwin* | rhapsody*)
15481: dynamic_linker="$host_os dyld"
15482: version_type=darwin
15483: need_lib_prefix=no
15484: need_version=no
15485: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15486: soname_spec='${libname}${release}${major}$shared_ext'
15487: shlibpath_overrides_runpath=yes
15488: shlibpath_var=DYLD_LIBRARY_PATH
15489: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15490:
15491: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15492: ;;
15493:
15494: dgux*)
15495: version_type=linux # correct to gnu/linux during the next big refactor
15496: need_lib_prefix=no
15497: need_version=no
15498: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15499: soname_spec='${libname}${release}${shared_ext}$major'
15500: shlibpath_var=LD_LIBRARY_PATH
15501: ;;
15502:
15503: freebsd* | dragonfly*)
15504: # DragonFly does not have aout. When/if they implement a new
15505: # versioning mechanism, adjust this.
15506: if test -x /usr/bin/objformat; then
15507: objformat=`/usr/bin/objformat`
15508: else
15509: case $host_os in
15510: freebsd[23].*) objformat=aout ;;
15511: *) objformat=elf ;;
15512: esac
15513: fi
15514: version_type=freebsd-$objformat
15515: case $version_type in
15516: freebsd-elf*)
15517: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15518: need_version=no
15519: need_lib_prefix=no
15520: ;;
15521: freebsd-*)
15522: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15523: need_version=yes
15524: ;;
15525: esac
15526: shlibpath_var=LD_LIBRARY_PATH
15527: case $host_os in
15528: freebsd2.*)
15529: shlibpath_overrides_runpath=yes
15530: ;;
15531: freebsd3.[01]* | freebsdelf3.[01]*)
15532: shlibpath_overrides_runpath=yes
15533: hardcode_into_libs=yes
15534: ;;
15535: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15536: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15537: shlibpath_overrides_runpath=no
15538: hardcode_into_libs=yes
15539: ;;
15540: *) # from 4.6 on, and DragonFly
15541: shlibpath_overrides_runpath=yes
15542: hardcode_into_libs=yes
15543: ;;
15544: esac
15545: ;;
15546:
15547: gnu*)
15548: version_type=linux # correct to gnu/linux during the next big refactor
15549: need_lib_prefix=no
15550: need_version=no
15551: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15552: soname_spec='${libname}${release}${shared_ext}$major'
15553: shlibpath_var=LD_LIBRARY_PATH
15554: shlibpath_overrides_runpath=no
15555: hardcode_into_libs=yes
15556: ;;
15557:
15558: haiku*)
15559: version_type=linux # correct to gnu/linux during the next big refactor
15560: need_lib_prefix=no
15561: need_version=no
15562: dynamic_linker="$host_os runtime_loader"
15563: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15564: soname_spec='${libname}${release}${shared_ext}$major'
15565: shlibpath_var=LIBRARY_PATH
15566: shlibpath_overrides_runpath=yes
15567: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15568: hardcode_into_libs=yes
15569: ;;
15570:
15571: hpux9* | hpux10* | hpux11*)
15572: # Give a soname corresponding to the major version so that dld.sl refuses to
15573: # link against other versions.
15574: version_type=sunos
15575: need_lib_prefix=no
15576: need_version=no
15577: case $host_cpu in
15578: ia64*)
15579: shrext_cmds='.so'
15580: hardcode_into_libs=yes
15581: dynamic_linker="$host_os dld.so"
15582: shlibpath_var=LD_LIBRARY_PATH
15583: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15584: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585: soname_spec='${libname}${release}${shared_ext}$major'
15586: if test "X$HPUX_IA64_MODE" = X32; then
15587: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15588: else
15589: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15590: fi
15591: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15592: ;;
15593: hppa*64*)
15594: shrext_cmds='.sl'
15595: hardcode_into_libs=yes
15596: dynamic_linker="$host_os dld.sl"
15597: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15598: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15599: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600: soname_spec='${libname}${release}${shared_ext}$major'
15601: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15602: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15603: ;;
15604: *)
15605: shrext_cmds='.sl'
15606: dynamic_linker="$host_os dld.sl"
15607: shlibpath_var=SHLIB_PATH
15608: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15609: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610: soname_spec='${libname}${release}${shared_ext}$major'
15611: ;;
15612: esac
15613: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15614: postinstall_cmds='chmod 555 $lib'
15615: # or fails outright, so override atomically:
15616: install_override_mode=555
15617: ;;
15618:
15619: interix[3-9]*)
15620: version_type=linux # correct to gnu/linux during the next big refactor
15621: need_lib_prefix=no
15622: need_version=no
15623: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15624: soname_spec='${libname}${release}${shared_ext}$major'
15625: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15626: shlibpath_var=LD_LIBRARY_PATH
15627: shlibpath_overrides_runpath=no
15628: hardcode_into_libs=yes
15629: ;;
15630:
15631: irix5* | irix6* | nonstopux*)
15632: case $host_os in
15633: nonstopux*) version_type=nonstopux ;;
15634: *)
15635: if test "$lt_cv_prog_gnu_ld" = yes; then
15636: version_type=linux # correct to gnu/linux during the next big refactor
15637: else
15638: version_type=irix
15639: fi ;;
15640: esac
15641: need_lib_prefix=no
15642: need_version=no
15643: soname_spec='${libname}${release}${shared_ext}$major'
15644: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15645: case $host_os in
15646: irix5* | nonstopux*)
15647: libsuff= shlibsuff=
15648: ;;
15649: *)
15650: case $LD in # libtool.m4 will add one of these switches to LD
15651: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15652: libsuff= shlibsuff= libmagic=32-bit;;
15653: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15654: libsuff=32 shlibsuff=N32 libmagic=N32;;
15655: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15656: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15657: *) libsuff= shlibsuff= libmagic=never-match;;
15658: esac
15659: ;;
15660: esac
15661: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15662: shlibpath_overrides_runpath=no
15663: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15664: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15665: hardcode_into_libs=yes
15666: ;;
15667:
15668: # No shared lib support for Linux oldld, aout, or coff.
15669: linux*oldld* | linux*aout* | linux*coff*)
15670: dynamic_linker=no
15671: ;;
15672:
15673: # This must be glibc/ELF.
15674: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15675: version_type=linux # correct to gnu/linux during the next big refactor
15676: need_lib_prefix=no
15677: need_version=no
15678: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679: soname_spec='${libname}${release}${shared_ext}$major'
15680: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15681: shlibpath_var=LD_LIBRARY_PATH
15682: shlibpath_overrides_runpath=no
15683:
15684: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 15685: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15686: $as_echo_n "(cached) " >&6
1.128 moko 15687: else
15688: lt_cv_shlibpath_overrides_runpath=no
15689: save_LDFLAGS=$LDFLAGS
15690: save_libdir=$libdir
15691: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15692: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 15693: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15694: /* end confdefs.h. */
15695:
15696: int
15697: main ()
15698: {
15699:
15700: ;
15701: return 0;
15702: }
15703: _ACEOF
1.150 moko 15704: if ac_fn_cxx_try_link "$LINENO"; then :
15705: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 15706: lt_cv_shlibpath_overrides_runpath=yes
15707: fi
15708: fi
1.150 moko 15709: rm -f core conftest.err conftest.$ac_objext \
15710: conftest$ac_exeext conftest.$ac_ext
1.128 moko 15711: LDFLAGS=$save_LDFLAGS
15712: libdir=$save_libdir
15713:
15714: fi
15715:
15716: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15717:
15718: # This implies no fast_install, which is unacceptable.
15719: # Some rework will be needed to allow for fast_install
15720: # before this can be enabled.
15721: hardcode_into_libs=yes
15722:
15723: # Append ld.so.conf contents to the search path
15724: if test -f /etc/ld.so.conf; then
15725: 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' ' '`
15726: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15727: fi
15728:
15729: # We used to test for /lib/ld.so.1 and disable shared libraries on
15730: # powerpc, because MkLinux only supported shared libraries with the
15731: # GNU dynamic linker. Since this was broken with cross compilers,
15732: # most powerpc-linux boxes support dynamic linking these days and
15733: # people can always --disable-shared, the test was removed, and we
15734: # assume the GNU/Linux dynamic linker is in use.
15735: dynamic_linker='GNU/Linux ld.so'
15736: ;;
15737:
15738: netbsd*)
15739: version_type=sunos
15740: need_lib_prefix=no
15741: need_version=no
15742: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15743: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15744: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15745: dynamic_linker='NetBSD (a.out) ld.so'
15746: else
15747: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15748: soname_spec='${libname}${release}${shared_ext}$major'
15749: dynamic_linker='NetBSD ld.elf_so'
15750: fi
15751: shlibpath_var=LD_LIBRARY_PATH
15752: shlibpath_overrides_runpath=yes
15753: hardcode_into_libs=yes
15754: ;;
15755:
15756: newsos6)
15757: version_type=linux # correct to gnu/linux during the next big refactor
15758: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759: shlibpath_var=LD_LIBRARY_PATH
15760: shlibpath_overrides_runpath=yes
15761: ;;
15762:
15763: *nto* | *qnx*)
15764: version_type=qnx
15765: need_lib_prefix=no
15766: need_version=no
15767: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768: soname_spec='${libname}${release}${shared_ext}$major'
15769: shlibpath_var=LD_LIBRARY_PATH
15770: shlibpath_overrides_runpath=no
15771: hardcode_into_libs=yes
15772: dynamic_linker='ldqnx.so'
15773: ;;
15774:
15775: openbsd*)
15776: version_type=sunos
15777: sys_lib_dlsearch_path_spec="/usr/lib"
15778: need_lib_prefix=no
15779: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15780: case $host_os in
15781: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15782: *) need_version=no ;;
15783: esac
15784: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15785: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15786: shlibpath_var=LD_LIBRARY_PATH
15787: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15788: case $host_os in
15789: openbsd2.[89] | openbsd2.[89].*)
15790: shlibpath_overrides_runpath=no
15791: ;;
15792: *)
15793: shlibpath_overrides_runpath=yes
15794: ;;
15795: esac
15796: else
15797: shlibpath_overrides_runpath=yes
15798: fi
15799: ;;
15800:
15801: os2*)
15802: libname_spec='$name'
15803: shrext_cmds=".dll"
15804: need_lib_prefix=no
15805: library_names_spec='$libname${shared_ext} $libname.a'
15806: dynamic_linker='OS/2 ld.exe'
15807: shlibpath_var=LIBPATH
15808: ;;
15809:
15810: osf3* | osf4* | osf5*)
15811: version_type=osf
15812: need_lib_prefix=no
15813: need_version=no
15814: soname_spec='${libname}${release}${shared_ext}$major'
15815: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816: shlibpath_var=LD_LIBRARY_PATH
15817: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15818: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15819: ;;
15820:
15821: rdos*)
15822: dynamic_linker=no
15823: ;;
15824:
15825: solaris*)
15826: version_type=linux # correct to gnu/linux during the next big refactor
15827: need_lib_prefix=no
15828: need_version=no
15829: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830: soname_spec='${libname}${release}${shared_ext}$major'
15831: shlibpath_var=LD_LIBRARY_PATH
15832: shlibpath_overrides_runpath=yes
15833: hardcode_into_libs=yes
15834: # ldd complains unless libraries are executable
15835: postinstall_cmds='chmod +x $lib'
15836: ;;
15837:
15838: sunos4*)
15839: version_type=sunos
15840: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15841: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15842: shlibpath_var=LD_LIBRARY_PATH
15843: shlibpath_overrides_runpath=yes
15844: if test "$with_gnu_ld" = yes; then
15845: need_lib_prefix=no
15846: fi
15847: need_version=yes
15848: ;;
15849:
15850: sysv4 | sysv4.3*)
15851: version_type=linux # correct to gnu/linux during the next big refactor
15852: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853: soname_spec='${libname}${release}${shared_ext}$major'
15854: shlibpath_var=LD_LIBRARY_PATH
15855: case $host_vendor in
15856: sni)
15857: shlibpath_overrides_runpath=no
15858: need_lib_prefix=no
15859: runpath_var=LD_RUN_PATH
15860: ;;
15861: siemens)
15862: need_lib_prefix=no
15863: ;;
15864: motorola)
15865: need_lib_prefix=no
15866: need_version=no
15867: shlibpath_overrides_runpath=no
15868: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15869: ;;
15870: esac
15871: ;;
15872:
15873: sysv4*MP*)
15874: if test -d /usr/nec ;then
15875: version_type=linux # correct to gnu/linux during the next big refactor
15876: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15877: soname_spec='$libname${shared_ext}.$major'
15878: shlibpath_var=LD_LIBRARY_PATH
15879: fi
15880: ;;
15881:
15882: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15883: version_type=freebsd-elf
15884: need_lib_prefix=no
15885: need_version=no
15886: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15887: soname_spec='${libname}${release}${shared_ext}$major'
15888: shlibpath_var=LD_LIBRARY_PATH
15889: shlibpath_overrides_runpath=yes
15890: hardcode_into_libs=yes
15891: if test "$with_gnu_ld" = yes; then
15892: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15893: else
15894: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15895: case $host_os in
15896: sco3.2v5*)
15897: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15898: ;;
15899: esac
15900: fi
15901: sys_lib_dlsearch_path_spec='/usr/lib'
15902: ;;
15903:
15904: tpf*)
15905: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15906: version_type=linux # correct to gnu/linux during the next big refactor
15907: need_lib_prefix=no
15908: need_version=no
15909: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910: shlibpath_var=LD_LIBRARY_PATH
15911: shlibpath_overrides_runpath=no
15912: hardcode_into_libs=yes
15913: ;;
15914:
15915: uts4*)
15916: version_type=linux # correct to gnu/linux during the next big refactor
15917: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15918: soname_spec='${libname}${release}${shared_ext}$major'
15919: shlibpath_var=LD_LIBRARY_PATH
15920: ;;
15921:
15922: *)
15923: dynamic_linker=no
15924: ;;
15925: esac
1.150 moko 15926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15927: $as_echo "$dynamic_linker" >&6; }
1.128 moko 15928: test "$dynamic_linker" = no && can_build_shared=no
15929:
15930: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15931: if test "$GCC" = yes; then
15932: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15933: fi
15934:
15935: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15936: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15937: fi
15938: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15939: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15940: fi
15941:
15942:
15943:
15944:
15945:
15946:
15947:
15948:
15949:
15950:
15951:
15952:
15953:
15954:
15955:
15956:
15957:
15958:
15959:
15960:
15961:
15962:
15963:
15964:
15965:
15966:
15967:
15968:
15969:
15970:
15971:
15972:
15973:
15974:
15975:
15976:
15977:
15978:
1.150 moko 15979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15980: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 15981: hardcode_action_CXX=
15982: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15983: test -n "$runpath_var_CXX" ||
15984: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15985:
15986: # We can hardcode non-existent directories.
15987: if test "$hardcode_direct_CXX" != no &&
15988: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15989: # have to relink, otherwise we might link with an installed library
15990: # when we should be linking with a yet-to-be-installed one
15991: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15992: test "$hardcode_minus_L_CXX" != no; then
15993: # Linking always hardcodes the temporary library directory.
15994: hardcode_action_CXX=relink
15995: else
15996: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15997: hardcode_action_CXX=immediate
15998: fi
15999: else
16000: # We cannot hardcode anything, or else we can only hardcode existing
16001: # directories.
16002: hardcode_action_CXX=unsupported
16003: fi
1.150 moko 16004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16005: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16006:
16007: if test "$hardcode_action_CXX" = relink ||
16008: test "$inherit_rpath_CXX" = yes; then
16009: # Fast installation is not supported
16010: enable_fast_install=no
16011: elif test "$shlibpath_overrides_runpath" = yes ||
16012: test "$enable_shared" = no; then
16013: # Fast installation is not necessary
16014: enable_fast_install=needless
16015: fi
16016:
16017:
16018:
16019:
16020:
16021:
16022:
16023: fi # test -n "$compiler"
16024:
16025: CC=$lt_save_CC
16026: CFLAGS=$lt_save_CFLAGS
16027: LDCXX=$LD
16028: LD=$lt_save_LD
16029: GCC=$lt_save_GCC
16030: with_gnu_ld=$lt_save_with_gnu_ld
16031: lt_cv_path_LDCXX=$lt_cv_path_LD
16032: lt_cv_path_LD=$lt_save_path_LD
16033: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16034: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16035: fi # test "$_lt_caught_CXX_error" != yes
16036:
16037: ac_ext=c
16038: ac_cpp='$CPP $CPPFLAGS'
16039: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16040: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16041: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16042:
16043:
16044:
16045:
16046:
16047:
16048:
16049:
16050:
16051:
16052:
16053:
16054:
16055:
16056:
1.150 moko 16057: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16058:
16059:
16060:
16061:
16062: # Only expand once:
16063:
16064:
1.150 moko 16065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16066: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16067: if ${libltdl_cv_shlibext+:} false; then :
16068: $as_echo_n "(cached) " >&6
1.128 moko 16069: else
16070:
16071: module=yes
16072: eval libltdl_cv_shlibext=$shrext_cmds
16073: module=no
16074: eval libltdl_cv_shrext=$shrext_cmds
16075:
16076: fi
1.150 moko 16077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16078: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16079: if test -n "$libltdl_cv_shlibext"; then
16080:
16081: cat >>confdefs.h <<_ACEOF
16082: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16083: _ACEOF
16084:
16085: fi
16086: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16087:
16088: cat >>confdefs.h <<_ACEOF
16089: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16090: _ACEOF
16091:
16092: fi
16093:
1.150 moko 16094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16095: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16096: if ${lt_cv_module_path_var+:} false; then :
16097: $as_echo_n "(cached) " >&6
1.128 moko 16098: else
16099: lt_cv_module_path_var="$shlibpath_var"
16100: fi
1.150 moko 16101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16102: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16103: if test -n "$lt_cv_module_path_var"; then
16104:
16105: cat >>confdefs.h <<_ACEOF
16106: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16107: _ACEOF
16108:
16109: fi
16110:
1.150 moko 16111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16112: $as_echo_n "checking for the default library search path... " >&6; }
16113: if ${lt_cv_sys_dlsearch_path+:} false; then :
16114: $as_echo_n "(cached) " >&6
1.128 moko 16115: else
16116: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16117: fi
1.150 moko 16118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16119: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16120: if test -n "$lt_cv_sys_dlsearch_path"; then
16121: sys_dlsearch_path=
16122: for dir in $lt_cv_sys_dlsearch_path; do
16123: if test -z "$sys_dlsearch_path"; then
16124: sys_dlsearch_path="$dir"
16125: else
16126: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16127: fi
16128: done
16129:
16130: cat >>confdefs.h <<_ACEOF
16131: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16132: _ACEOF
16133:
16134: fi
16135:
16136:
16137: LT_DLLOADERS=
16138:
16139:
16140: ac_ext=c
16141: ac_cpp='$CPP $CPPFLAGS'
16142: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16143: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16144: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16145:
16146:
16147: LIBADD_DLOPEN=
1.150 moko 16148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16149: $as_echo_n "checking for library containing dlopen... " >&6; }
16150: if ${ac_cv_search_dlopen+:} false; then :
16151: $as_echo_n "(cached) " >&6
1.128 moko 16152: else
16153: ac_func_search_save_LIBS=$LIBS
1.150 moko 16154: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16155: /* end confdefs.h. */
16156:
1.150 moko 16157: /* Override any GCC internal prototype to avoid an error.
16158: Use char because int might match the return type of a GCC
16159: builtin and then its argument prototype would still apply. */
1.128 moko 16160: #ifdef __cplusplus
16161: extern "C"
16162: #endif
16163: char dlopen ();
16164: int
16165: main ()
16166: {
1.150 moko 16167: return dlopen ();
1.128 moko 16168: ;
16169: return 0;
16170: }
16171: _ACEOF
1.150 moko 16172: for ac_lib in '' dl; do
16173: if test -z "$ac_lib"; then
16174: ac_res="none required"
16175: else
16176: ac_res=-l$ac_lib
16177: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16178: fi
16179: if ac_fn_c_try_link "$LINENO"; then :
16180: ac_cv_search_dlopen=$ac_res
16181: fi
16182: rm -f core conftest.err conftest.$ac_objext \
16183: conftest$ac_exeext
16184: if ${ac_cv_search_dlopen+:} false; then :
16185: break
1.128 moko 16186: fi
1.150 moko 16187: done
16188: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16189:
16190: else
1.150 moko 16191: ac_cv_search_dlopen=no
1.128 moko 16192: fi
1.150 moko 16193: rm conftest.$ac_ext
1.128 moko 16194: LIBS=$ac_func_search_save_LIBS
16195: fi
1.150 moko 16196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16197: $as_echo "$ac_cv_search_dlopen" >&6; }
16198: ac_res=$ac_cv_search_dlopen
16199: if test "$ac_res" != no; then :
16200: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16201:
1.150 moko 16202: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16203:
16204: if test "$ac_cv_search_dlopen" != "none required" ; then
16205: LIBADD_DLOPEN="-ldl"
16206: fi
16207: libltdl_cv_lib_dl_dlopen="yes"
16208: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16209: else
1.150 moko 16210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16211: /* end confdefs.h. */
16212: #if HAVE_DLFCN_H
16213: # include <dlfcn.h>
16214: #endif
16215:
16216: int
16217: main ()
16218: {
16219: dlopen(0, 0);
16220: ;
16221: return 0;
16222: }
16223: _ACEOF
1.150 moko 16224: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16225:
1.150 moko 16226: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16227:
16228: libltdl_cv_func_dlopen="yes"
16229: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16230: else
1.150 moko 16231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16232: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16233: if ${ac_cv_lib_svld_dlopen+:} false; then :
16234: $as_echo_n "(cached) " >&6
1.128 moko 16235: else
16236: ac_check_lib_save_LIBS=$LIBS
16237: LIBS="-lsvld $LIBS"
1.150 moko 16238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16239: /* end confdefs.h. */
16240:
1.150 moko 16241: /* Override any GCC internal prototype to avoid an error.
16242: Use char because int might match the return type of a GCC
16243: builtin and then its argument prototype would still apply. */
1.128 moko 16244: #ifdef __cplusplus
16245: extern "C"
16246: #endif
16247: char dlopen ();
16248: int
16249: main ()
16250: {
1.150 moko 16251: return dlopen ();
1.128 moko 16252: ;
16253: return 0;
16254: }
16255: _ACEOF
1.150 moko 16256: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16257: ac_cv_lib_svld_dlopen=yes
16258: else
1.150 moko 16259: ac_cv_lib_svld_dlopen=no
1.128 moko 16260: fi
1.150 moko 16261: rm -f core conftest.err conftest.$ac_objext \
16262: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16263: LIBS=$ac_check_lib_save_LIBS
16264: fi
1.150 moko 16265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16266: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16267: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16268:
1.150 moko 16269: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16270:
16271: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16272: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16273: fi
16274:
16275: fi
1.150 moko 16276: rm -f core conftest.err conftest.$ac_objext \
16277: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16278: fi
16279:
16280: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16281: then
16282: lt_save_LIBS="$LIBS"
16283: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16284: for ac_func in dlerror
16285: do :
16286: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16287: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16288: cat >>confdefs.h <<_ACEOF
1.150 moko 16289: #define HAVE_DLERROR 1
1.128 moko 16290: _ACEOF
16291:
16292: fi
16293: done
16294:
16295: LIBS="$lt_save_LIBS"
16296: fi
16297:
16298:
16299: LIBADD_SHL_LOAD=
1.150 moko 16300: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16301: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16302:
1.150 moko 16303: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16304:
16305: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16306: else
1.150 moko 16307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16308: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16309: if ${ac_cv_lib_dld_shl_load+:} false; then :
16310: $as_echo_n "(cached) " >&6
1.66 paf 16311: else
16312: ac_check_lib_save_LIBS=$LIBS
16313: LIBS="-ldld $LIBS"
1.150 moko 16314: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16315: /* end confdefs.h. */
1.10 paf 16316:
1.150 moko 16317: /* Override any GCC internal prototype to avoid an error.
16318: Use char because int might match the return type of a GCC
16319: builtin and then its argument prototype would still apply. */
1.66 paf 16320: #ifdef __cplusplus
16321: extern "C"
16322: #endif
16323: char shl_load ();
16324: int
16325: main ()
16326: {
1.150 moko 16327: return shl_load ();
1.66 paf 16328: ;
16329: return 0;
16330: }
16331: _ACEOF
1.150 moko 16332: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16333: ac_cv_lib_dld_shl_load=yes
16334: else
1.150 moko 16335: ac_cv_lib_dld_shl_load=no
1.66 paf 16336: fi
1.150 moko 16337: rm -f core conftest.err conftest.$ac_objext \
16338: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16339: LIBS=$ac_check_lib_save_LIBS
16340: fi
1.150 moko 16341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16342: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16343: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16344:
1.150 moko 16345: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16346:
1.128 moko 16347: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16348: LIBADD_SHL_LOAD="-ldld"
16349: fi
16350:
16351: fi
16352:
16353:
16354:
16355: case $host_os in
16356: darwin[1567].*)
16357: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16358: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16359: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16360:
16361: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16362:
1.150 moko 16363: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16364: fi
1.128 moko 16365:
1.150 moko 16366: ;;
16367: beos*)
1.128 moko 16368: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16369: ;;
16370: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16371: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16372: "
16373: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16374: ac_have_decl=1
1.128 moko 16375: else
1.150 moko 16376: ac_have_decl=0
1.128 moko 16377: fi
16378:
16379: cat >>confdefs.h <<_ACEOF
1.150 moko 16380: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16381: _ACEOF
16382:
16383: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16384: ;;
16385: esac
16386:
1.150 moko 16387: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16388: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16389: if ${ac_cv_lib_dld_dld_link+:} false; then :
16390: $as_echo_n "(cached) " >&6
1.66 paf 16391: else
16392: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16393: LIBS="-ldld $LIBS"
1.150 moko 16394: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16395: /* end confdefs.h. */
1.62 paf 16396:
1.150 moko 16397: /* Override any GCC internal prototype to avoid an error.
16398: Use char because int might match the return type of a GCC
16399: builtin and then its argument prototype would still apply. */
1.66 paf 16400: #ifdef __cplusplus
16401: extern "C"
16402: #endif
1.128 moko 16403: char dld_link ();
1.66 paf 16404: int
16405: main ()
16406: {
1.150 moko 16407: return dld_link ();
1.66 paf 16408: ;
16409: return 0;
16410: }
16411: _ACEOF
1.150 moko 16412: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16413: ac_cv_lib_dld_dld_link=yes
1.66 paf 16414: else
1.150 moko 16415: ac_cv_lib_dld_dld_link=no
1.128 moko 16416: fi
1.150 moko 16417: rm -f core conftest.err conftest.$ac_objext \
16418: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16419: LIBS=$ac_check_lib_save_LIBS
16420: fi
1.150 moko 16421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16422: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16423: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16424:
1.150 moko 16425: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16426:
16427: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16428: fi
16429:
16430:
16431:
16432:
16433: LT_DLPREOPEN=
16434: if test -n "$LT_DLLOADERS"
16435: then
16436: for lt_loader in $LT_DLLOADERS; do
16437: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16438: done
16439:
1.150 moko 16440: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16441:
16442: fi
16443:
16444:
16445: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16446:
16447:
16448: ac_ext=c
16449: ac_cpp='$CPP $CPPFLAGS'
16450: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16451: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16452: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16453:
16454:
1.150 moko 16455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16456: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16457: if ${lt_cv_sys_symbol_underscore+:} false; then :
16458: $as_echo_n "(cached) " >&6
1.128 moko 16459: else
16460: lt_cv_sys_symbol_underscore=no
16461: cat > conftest.$ac_ext <<_LT_EOF
16462: void nm_test_func(){}
16463: int main(){nm_test_func;return 0;}
16464: _LT_EOF
1.150 moko 16465: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16466: (eval $ac_compile) 2>&5
16467: ac_status=$?
1.150 moko 16468: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16469: test $ac_status = 0; }; then
1.128 moko 16470: # Now try to grab the symbols.
16471: ac_nlist=conftest.nm
1.150 moko 16472: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16473: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16474: ac_status=$?
1.150 moko 16475: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16476: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16477: # See whether the symbols have a leading underscore.
16478: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16479: lt_cv_sys_symbol_underscore=yes
16480: else
16481: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16482: :
16483: else
16484: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16485: fi
16486: fi
16487: else
16488: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16489: fi
16490: else
16491: echo "configure: failed program was:" >&5
16492: cat conftest.c >&5
16493: fi
16494: rm -rf conftest*
1.29 paf 16495:
1.66 paf 16496: fi
1.150 moko 16497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16498: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16499: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16500:
1.62 paf 16501:
1.128 moko 16502: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16503: if test x"$libltdl_cv_func_dlopen" = xyes ||
16504: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16506: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16507: if ${libltdl_cv_need_uscore+:} false; then :
16508: $as_echo_n "(cached) " >&6
1.66 paf 16509: else
1.128 moko 16510: libltdl_cv_need_uscore=unknown
16511: save_LIBS="$LIBS"
16512: LIBS="$LIBS $LIBADD_DLOPEN"
16513: if test "$cross_compiling" = yes; then :
16514: libltdl_cv_need_uscore=cross
16515: else
16516: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16517: lt_status=$lt_dlunknown
16518: cat > conftest.$ac_ext <<_LT_EOF
16519: #line $LINENO "configure"
16520: #include "confdefs.h"
16521:
1.66 paf 16522: #if HAVE_DLFCN_H
1.128 moko 16523: #include <dlfcn.h>
16524: #endif
16525:
16526: #include <stdio.h>
16527:
16528: #ifdef RTLD_GLOBAL
16529: # define LT_DLGLOBAL RTLD_GLOBAL
16530: #else
16531: # ifdef DL_GLOBAL
16532: # define LT_DLGLOBAL DL_GLOBAL
16533: # else
16534: # define LT_DLGLOBAL 0
16535: # endif
16536: #endif
16537:
16538: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16539: find out it does not work in some platform. */
16540: #ifndef LT_DLLAZY_OR_NOW
16541: # ifdef RTLD_LAZY
16542: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16543: # else
16544: # ifdef DL_LAZY
16545: # define LT_DLLAZY_OR_NOW DL_LAZY
16546: # else
16547: # ifdef RTLD_NOW
16548: # define LT_DLLAZY_OR_NOW RTLD_NOW
16549: # else
16550: # ifdef DL_NOW
16551: # define LT_DLLAZY_OR_NOW DL_NOW
16552: # else
16553: # define LT_DLLAZY_OR_NOW 0
16554: # endif
16555: # endif
16556: # endif
16557: # endif
16558: #endif
16559:
16560: /* When -fvisbility=hidden is used, assume the code has been annotated
16561: correspondingly for the symbols needed. */
16562: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16563: int fnord () __attribute__((visibility("default")));
1.66 paf 16564: #endif
1.62 paf 16565:
1.128 moko 16566: int fnord () { return 42; }
16567: int main ()
1.66 paf 16568: {
1.128 moko 16569: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16570: int status = $lt_dlunknown;
16571:
16572: if (self)
16573: {
16574: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16575: else
16576: {
16577: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16578: else puts (dlerror ());
16579: }
16580: /* dlclose (self); */
16581: }
16582: else
16583: puts (dlerror ());
16584:
16585: return status;
1.66 paf 16586: }
1.128 moko 16587: _LT_EOF
1.150 moko 16588: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16589: (eval $ac_link) 2>&5
1.66 paf 16590: ac_status=$?
1.150 moko 16591: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16592: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16593: (./conftest; exit; ) >&5 2>/dev/null
16594: lt_status=$?
16595: case x$lt_status in
16596: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16597: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16598: x$lt_dlunknown|x*) ;;
16599: esac
16600: else :
16601: # compilation failed
16602:
16603: fi
16604: fi
16605: rm -fr conftest*
16606:
16607: LIBS="$save_LIBS"
16608:
16609: fi
1.150 moko 16610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16611: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16612: fi
16613: fi
16614:
16615: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16616:
1.150 moko 16617: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16618:
1.128 moko 16619: fi
16620:
1.150 moko 16621: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16622: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16623: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16624: $as_echo_n "(cached) " >&6
1.66 paf 16625: else
1.128 moko 16626: # PORTME does your system automatically load deplibs for dlopen?
16627: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16628: # For now, we just catch OSes we know something about -- in the
16629: # future, we'll try test this programmatically.
16630: lt_cv_sys_dlopen_deplibs=unknown
16631: case $host_os in
16632: aix3*|aix4.1.*|aix4.2.*)
16633: # Unknown whether this is true for these versions of AIX, but
16634: # we want this `case' here to explicitly catch those versions.
16635: lt_cv_sys_dlopen_deplibs=unknown
16636: ;;
16637: aix[4-9]*)
16638: lt_cv_sys_dlopen_deplibs=yes
16639: ;;
16640: amigaos*)
16641: case $host_cpu in
16642: powerpc)
16643: lt_cv_sys_dlopen_deplibs=no
16644: ;;
16645: esac
16646: ;;
16647: darwin*)
16648: # Assuming the user has installed a libdl from somewhere, this is true
16649: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16650: lt_cv_sys_dlopen_deplibs=yes
16651: ;;
16652: freebsd* | dragonfly*)
16653: lt_cv_sys_dlopen_deplibs=yes
16654: ;;
16655: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16656: # GNU and its variants, using gnu ld.so (Glibc)
16657: lt_cv_sys_dlopen_deplibs=yes
16658: ;;
16659: hpux10*|hpux11*)
16660: lt_cv_sys_dlopen_deplibs=yes
16661: ;;
16662: interix*)
16663: lt_cv_sys_dlopen_deplibs=yes
16664: ;;
16665: irix[12345]*|irix6.[01]*)
16666: # Catch all versions of IRIX before 6.2, and indicate that we don't
16667: # know how it worked for any of those versions.
16668: lt_cv_sys_dlopen_deplibs=unknown
16669: ;;
16670: irix*)
16671: # The case above catches anything before 6.2, and it's known that
16672: # at 6.2 and later dlopen does load deplibs.
16673: lt_cv_sys_dlopen_deplibs=yes
16674: ;;
16675: netbsd*)
16676: lt_cv_sys_dlopen_deplibs=yes
16677: ;;
16678: openbsd*)
16679: lt_cv_sys_dlopen_deplibs=yes
16680: ;;
16681: osf[1234]*)
16682: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16683: # it did *not* use an RPATH in a shared library to find objects the
16684: # library depends on, so we explicitly say `no'.
16685: lt_cv_sys_dlopen_deplibs=no
16686: ;;
16687: osf5.0|osf5.0a|osf5.1)
16688: # dlopen *does* load deplibs and with the right loader patch applied
16689: # it even uses RPATH in a shared library to search for shared objects
16690: # that the library depends on, but there's no easy way to know if that
16691: # patch is installed. Since this is the case, all we can really
16692: # say is unknown -- it depends on the patch being installed. If
16693: # it is, this changes to `yes'. Without it, it would be `no'.
16694: lt_cv_sys_dlopen_deplibs=unknown
16695: ;;
16696: osf*)
16697: # the two cases above should catch all versions of osf <= 5.1. Read
16698: # the comments above for what we know about them.
16699: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16700: # is used to find them so we can finally say `yes'.
16701: lt_cv_sys_dlopen_deplibs=yes
16702: ;;
16703: qnx*)
16704: lt_cv_sys_dlopen_deplibs=yes
16705: ;;
16706: solaris*)
16707: lt_cv_sys_dlopen_deplibs=yes
16708: ;;
16709: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16710: libltdl_cv_sys_dlopen_deplibs=yes
16711: ;;
16712: esac
16713:
16714: fi
1.150 moko 16715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16716: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 16717: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16718:
1.150 moko 16719: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 16720:
16721: fi
16722:
16723: :
16724:
16725: for ac_header in argz.h
1.150 moko 16726: do :
16727: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16728: "
16729: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 16730: cat >>confdefs.h <<_ACEOF
1.150 moko 16731: #define HAVE_ARGZ_H 1
1.128 moko 16732: _ACEOF
16733:
1.66 paf 16734: fi
1.62 paf 16735:
1.128 moko 16736: done
16737:
1.29 paf 16738:
1.150 moko 16739: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 16740: # include <argz.h>
16741: #endif
1.150 moko 16742: "
16743: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 16744:
1.128 moko 16745: cat >>confdefs.h <<_ACEOF
16746: #define HAVE_ERROR_T 1
1.62 paf 16747: _ACEOF
1.16 paf 16748:
16749:
1.128 moko 16750: else
1.16 paf 16751:
1.150 moko 16752: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 16753:
1.12 paf 16754:
1.150 moko 16755: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 16756:
1.66 paf 16757: fi
1.12 paf 16758:
1.128 moko 16759:
16760: ARGZ_H=
16761: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16762: argz_next argz_stringify
1.150 moko 16763: do :
16764: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16765: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16766: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 16767: cat >>confdefs.h <<_ACEOF
1.150 moko 16768: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 16769: _ACEOF
16770:
16771: else
16772: ARGZ_H=argz.h;
16773:
16774: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16775:
16776: fi
16777: done
16778:
16779:
1.150 moko 16780: if test -z "$ARGZ_H"; then :
16781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16782: $as_echo_n "checking if argz actually works... " >&6; }
16783: if ${lt_cv_sys_argz_works+:} false; then :
16784: $as_echo_n "(cached) " >&6
1.128 moko 16785: else
16786: case $host_os in #(
16787: *cygwin*)
16788: lt_cv_sys_argz_works=no
16789: if test "$cross_compiling" != no; then
16790: lt_cv_sys_argz_works="guessing no"
16791: else
16792: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16793: save_IFS=$IFS
16794: IFS=-.
16795: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16796: IFS=$save_IFS
16797: lt_os_major=${2-0}
16798: lt_os_minor=${3-0}
16799: lt_os_micro=${4-0}
16800: if test "$lt_os_major" -gt 1 \
16801: || { test "$lt_os_major" -eq 1 \
16802: && { test "$lt_os_minor" -gt 5 \
16803: || { test "$lt_os_minor" -eq 5 \
16804: && test "$lt_os_micro" -gt 24; }; }; }; then
16805: lt_cv_sys_argz_works=yes
16806: fi
16807: fi
16808: ;; #(
16809: *) lt_cv_sys_argz_works=yes ;;
16810: esac
16811: fi
1.150 moko 16812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16813: $as_echo "$lt_cv_sys_argz_works" >&6; }
16814: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 16815:
1.150 moko 16816: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 16817:
1.62 paf 16818: else
1.128 moko 16819: ARGZ_H=argz.h
16820:
16821:
16822: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16823:
16824: fi
1.62 paf 16825: fi
1.128 moko 16826:
16827:
16828:
1.150 moko 16829: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16830: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16831: if ${libltdl_cv_preloaded_symbols+:} false; then :
16832: $as_echo_n "(cached) " >&6
1.128 moko 16833: else
16834: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16835: libltdl_cv_preloaded_symbols=yes
16836: else
16837: libltdl_cv_preloaded_symbols=no
16838: fi
16839:
1.62 paf 16840: fi
1.150 moko 16841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16842: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 16843: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16844:
1.150 moko 16845: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 16846:
16847: fi
16848:
1.150 moko 16849:
16850:
1.128 moko 16851: # Set options
16852:
16853:
16854:
16855:
16856:
16857:
16858:
16859:
16860:
16861:
1.66 paf 16862:
16863:
1.150 moko 16864: # Check whether --with-included_ltdl was given.
16865: if test "${with_included_ltdl+set}" = set; then :
16866: withval=$with_included_ltdl;
16867: fi
1.64 paf 16868:
16869:
1.128 moko 16870: if test "x$with_included_ltdl" != xyes; then
16871: # We are not being forced to use the included libltdl sources, so
16872: # decide whether there is a useful installed version we can use.
1.150 moko 16873: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 16874:
1.150 moko 16875: "
16876: if test "x$ac_cv_header_ltdl_h" = xyes; then :
16877: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 16878: #include <ltdl.h>
1.150 moko 16879: "
16880: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16882: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16883: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16884: $as_echo_n "(cached) " >&6
1.79 paf 16885: else
1.128 moko 16886: ac_check_lib_save_LIBS=$LIBS
16887: LIBS="-lltdl $LIBS"
1.150 moko 16888: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 16889: /* end confdefs.h. */
1.128 moko 16890:
1.150 moko 16891: /* Override any GCC internal prototype to avoid an error.
16892: Use char because int might match the return type of a GCC
16893: builtin and then its argument prototype would still apply. */
1.128 moko 16894: #ifdef __cplusplus
16895: extern "C"
16896: #endif
16897: char lt_dladvise_preload ();
1.79 paf 16898: int
16899: main ()
16900: {
1.150 moko 16901: return lt_dladvise_preload ();
1.79 paf 16902: ;
16903: return 0;
16904: }
16905: _ACEOF
1.150 moko 16906: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16907: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 16908: else
1.150 moko 16909: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 16910: fi
1.150 moko 16911: rm -f core conftest.err conftest.$ac_objext \
16912: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16913: LIBS=$ac_check_lib_save_LIBS
1.79 paf 16914: fi
1.150 moko 16915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16916: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16917: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 16918: with_included_ltdl=no
1.79 paf 16919: else
1.128 moko 16920: with_included_ltdl=yes
16921: fi
16922:
1.79 paf 16923: else
1.128 moko 16924: with_included_ltdl=yes
16925: fi
1.79 paf 16926:
1.128 moko 16927: else
16928: with_included_ltdl=yes
1.79 paf 16929: fi
1.128 moko 16930:
16931:
1.79 paf 16932: fi
1.128 moko 16933:
16934:
16935:
16936:
1.150 moko 16937: # Check whether --with-ltdl_include was given.
16938: if test "${with_ltdl_include+set}" = set; then :
16939: withval=$with_ltdl_include;
16940: fi
1.128 moko 16941:
16942:
16943: if test -n "$with_ltdl_include"; then
16944: if test -f "$with_ltdl_include/ltdl.h"; then :
16945: else
1.150 moko 16946: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 16947: fi
16948: else
16949: with_ltdl_include=no
1.79 paf 16950: fi
1.128 moko 16951:
16952:
1.150 moko 16953: # Check whether --with-ltdl_lib was given.
16954: if test "${with_ltdl_lib+set}" = set; then :
16955: withval=$with_ltdl_lib;
16956: fi
1.128 moko 16957:
16958:
16959: if test -n "$with_ltdl_lib"; then
16960: if test -f "$with_ltdl_lib/libltdl.la"; then :
16961: else
1.150 moko 16962: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 16963: fi
16964: else
16965: with_ltdl_lib=no
1.79 paf 16966: fi
16967:
1.128 moko 16968: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16969: ,yes,no,no,)
16970: case $enable_ltdl_convenience in
1.150 moko 16971: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 16972: "") enable_ltdl_convenience=yes
16973: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16974: esac
1.150 moko 16975: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 16976: LTDLDEPS=$LIBLTDL
16977: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16978:
16979:
16980:
16981:
16982:
16983: # For backwards non-gettext consistent compatibility...
16984: INCLTDL="$LTDLINCL"
16985:
1.79 paf 16986:
1.128 moko 16987: ;;
16988: ,no,no,no,)
16989: # If the included ltdl is not to be used, then use the
16990: # preinstalled libltdl we found.
1.79 paf 16991:
1.150 moko 16992: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 16993:
1.128 moko 16994: LIBLTDL=-lltdl
16995: LTDLDEPS=
16996: LTDLINCL=
16997: ;;
16998: ,no*,no,*)
1.150 moko 16999: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17000: ;;
17001: *) with_included_ltdl=no
17002: LIBLTDL="-L$with_ltdl_lib -lltdl"
17003: LTDLDEPS=
17004: LTDLINCL="-I$with_ltdl_include"
17005: ;;
17006: esac
17007: INCLTDL="$LTDLINCL"
17008:
17009: # Report our decision...
1.150 moko 17010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17011: $as_echo_n "checking where to find libltdl headers... " >&6; }
17012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17013: $as_echo "$LTDLINCL" >&6; }
17014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17015: $as_echo_n "checking where to find libltdl library... " >&6; }
17016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17017: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17018:
17019:
17020:
1.150 moko 17021: # Check whether --enable-ltdl-install was given.
17022: if test "${enable_ltdl_install+set}" = set; then :
17023: enableval=$enable_ltdl_install;
17024: fi
1.128 moko 17025:
17026:
17027: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17028: *yes*) ;;
17029: *) enable_ltdl_convenience=yes ;;
17030: esac
17031:
1.150 moko 17032: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17033: INSTALL_LTDL_TRUE=
17034: INSTALL_LTDL_FALSE='#'
17035: else
17036: INSTALL_LTDL_TRUE='#'
17037: INSTALL_LTDL_FALSE=
17038: fi
17039:
1.150 moko 17040: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17041: CONVENIENCE_LTDL_TRUE=
17042: CONVENIENCE_LTDL_FALSE='#'
17043: else
17044: CONVENIENCE_LTDL_TRUE='#'
17045: CONVENIENCE_LTDL_FALSE=
17046: fi
17047:
17048:
17049:
1.150 moko 17050: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17051:
17052:
17053:
17054:
17055: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17056: # the user used. This is so that ltdl.h can pick up the parent projects
17057: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17058: # definitions required by ltdl.c.
17059: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17060:
17061:
17062:
1.150 moko 17063: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17064: do :
17065: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17066: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17067: "
17068: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17069: cat >>confdefs.h <<_ACEOF
17070: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17071: _ACEOF
1.128 moko 17072:
1.150 moko 17073: fi
1.128 moko 17074:
1.150 moko 17075: done
1.128 moko 17076:
17077:
1.150 moko 17078: for ac_func in closedir opendir readdir
17079: do :
17080: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17081: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17082: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17083: cat >>confdefs.h <<_ACEOF
17084: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17085: _ACEOF
1.66 paf 17086:
17087: else
1.64 paf 17088:
1.66 paf 17089:
1.128 moko 17090: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17091:
1.66 paf 17092: fi
1.128 moko 17093: done
17094:
17095: for ac_func in strlcat strlcpy
1.150 moko 17096: do :
17097: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17098: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17099: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17100: cat >>confdefs.h <<_ACEOF
1.150 moko 17101: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17102: _ACEOF
17103:
17104: else
17105:
17106:
17107: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17108:
1.62 paf 17109: fi
1.128 moko 17110: done
17111:
17112:
1.64 paf 17113:
1.128 moko 17114: cat >>confdefs.h <<_ACEOF
17115: #define LT_LIBEXT "$libext"
1.62 paf 17116: _ACEOF
1.64 paf 17117:
1.128 moko 17118:
17119: name=
17120: eval "lt_libprefix=\"$libname_spec\""
17121:
17122: cat >>confdefs.h <<_ACEOF
17123: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17124: _ACEOF
1.128 moko 17125:
17126:
17127: name=ltdl
17128: eval "LTDLOPEN=\"$libname_spec\""
17129:
17130:
17131:
17132:
17133:
17134:
17135:
17136:
17137: # Only expand once:
17138:
17139:
17140:
17141:
1.150 moko 17142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17143: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17144: if ${ac_cv_c_bigendian+:} false; then :
17145: $as_echo_n "(cached) " >&6
17146: else
17147: ac_cv_c_bigendian=unknown
17148: # See if we're dealing with a universal compiler.
17149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150: /* end confdefs.h. */
17151: #ifndef __APPLE_CC__
17152: not a universal capable compiler
17153: #endif
17154: typedef int dummy;
17155:
17156: _ACEOF
17157: if ac_fn_c_try_compile "$LINENO"; then :
17158:
17159: # Check for potential -arch flags. It is not universal unless
17160: # there are at least two -arch flags with different values.
17161: ac_arch=
17162: ac_prev=
17163: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17164: if test -n "$ac_prev"; then
17165: case $ac_word in
17166: i?86 | x86_64 | ppc | ppc64)
17167: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17168: ac_arch=$ac_word
17169: else
17170: ac_cv_c_bigendian=universal
17171: break
17172: fi
17173: ;;
17174: esac
17175: ac_prev=
17176: elif test "x$ac_word" = "x-arch"; then
17177: ac_prev=arch
17178: fi
17179: done
17180: fi
17181: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182: if test $ac_cv_c_bigendian = unknown; then
17183: # See if sys/param.h defines the BYTE_ORDER macro.
17184: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17185: /* end confdefs.h. */
1.128 moko 17186: #include <sys/types.h>
1.150 moko 17187: #include <sys/param.h>
1.128 moko 17188:
17189: int
17190: main ()
17191: {
1.150 moko 17192: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17193: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17194: && LITTLE_ENDIAN)
17195: bogus endian macros
17196: #endif
1.64 paf 17197:
1.128 moko 17198: ;
17199: return 0;
17200: }
1.66 paf 17201: _ACEOF
1.150 moko 17202: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17203: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17204: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17205: /* end confdefs.h. */
1.128 moko 17206: #include <sys/types.h>
1.150 moko 17207: #include <sys/param.h>
1.64 paf 17208:
17209: int
17210: main ()
1.128 moko 17211: {
17212: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17213: not big endian
17214: #endif
1.128 moko 17215:
17216: ;
17217: return 0;
1.64 paf 17218: }
17219: _ACEOF
1.150 moko 17220: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17221: ac_cv_c_bigendian=yes
1.64 paf 17222: else
1.150 moko 17223: ac_cv_c_bigendian=no
17224: fi
17225: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17226: fi
17227: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228: fi
17229: if test $ac_cv_c_bigendian = unknown; then
17230: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17231: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232: /* end confdefs.h. */
17233: #include <limits.h>
1.64 paf 17234:
1.150 moko 17235: int
17236: main ()
17237: {
17238: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17239: bogus endian macros
17240: #endif
1.66 paf 17241:
1.150 moko 17242: ;
17243: return 0;
17244: }
1.62 paf 17245: _ACEOF
1.150 moko 17246: if ac_fn_c_try_compile "$LINENO"; then :
17247: # It does; now see whether it defined to _BIG_ENDIAN or not.
17248: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17249: /* end confdefs.h. */
1.150 moko 17250: #include <limits.h>
17251:
1.128 moko 17252: int
17253: main ()
17254: {
1.150 moko 17255: #ifndef _BIG_ENDIAN
17256: not big endian
17257: #endif
17258:
1.128 moko 17259: ;
17260: return 0;
17261: }
1.62 paf 17262: _ACEOF
1.150 moko 17263: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17264: ac_cv_c_bigendian=yes
1.150 moko 17265: else
17266: ac_cv_c_bigendian=no
1.128 moko 17267: fi
1.150 moko 17268: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17269: fi
1.150 moko 17270: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271: fi
17272: if test $ac_cv_c_bigendian = unknown; then
17273: # Compile a test program.
17274: if test "$cross_compiling" = yes; then :
17275: # Try to guess by grepping values from an object file.
17276: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277: /* end confdefs.h. */
17278: short int ascii_mm[] =
17279: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17280: short int ascii_ii[] =
17281: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17282: int use_ascii (int i) {
17283: return ascii_mm[i] + ascii_ii[i];
17284: }
17285: short int ebcdic_ii[] =
17286: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17287: short int ebcdic_mm[] =
17288: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17289: int use_ebcdic (int i) {
17290: return ebcdic_mm[i] + ebcdic_ii[i];
17291: }
17292: extern int foo;
1.62 paf 17293:
1.150 moko 17294: int
17295: main ()
17296: {
17297: return use_ascii (foo) == use_ebcdic (foo);
17298: ;
17299: return 0;
17300: }
17301: _ACEOF
17302: if ac_fn_c_try_compile "$LINENO"; then :
17303: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17304: ac_cv_c_bigendian=yes
17305: fi
17306: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17307: if test "$ac_cv_c_bigendian" = unknown; then
17308: ac_cv_c_bigendian=no
17309: else
17310: # finding both strings is unlikely to happen, but who knows?
17311: ac_cv_c_bigendian=unknown
17312: fi
17313: fi
1.128 moko 17314: fi
1.150 moko 17315: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17316: else
1.150 moko 17317: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17318: /* end confdefs.h. */
1.150 moko 17319: $ac_includes_default
1.128 moko 17320: int
17321: main ()
17322: {
1.150 moko 17323:
17324: /* Are we little or big endian? From Harbison&Steele. */
17325: union
17326: {
17327: long int l;
17328: char c[sizeof (long int)];
17329: } u;
17330: u.l = 1;
17331: return u.c[sizeof (long int) - 1] == 1;
17332:
17333: ;
17334: return 0;
1.128 moko 17335: }
17336: _ACEOF
1.150 moko 17337: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17338: ac_cv_c_bigendian=no
17339: else
1.150 moko 17340: ac_cv_c_bigendian=yes
1.128 moko 17341: fi
1.150 moko 17342: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17343: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17344: fi
1.150 moko 17345:
17346: fi
1.66 paf 17347: fi
1.150 moko 17348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17349: $as_echo "$ac_cv_c_bigendian" >&6; }
17350: case $ac_cv_c_bigendian in #(
17351: yes)
17352:
17353: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17354:
17355: ;; #(
17356: no)
1.128 moko 17357:
1.150 moko 17358: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17359:
1.150 moko 17360: ;; #(
17361: universal)
1.128 moko 17362:
1.150 moko 17363: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17364:
1.150 moko 17365: ;; #(
17366: *)
17367: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17368: ;;
1.150 moko 17369: esac
1.66 paf 17370:
17371:
1.150 moko 17372: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17373: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17374:
1.66 paf 17375: else
1.1 paf 17376:
1.66 paf 17377: cat >>confdefs.h <<_ACEOF
1.150 moko 17378: #define size_t unsigned int
1.66 paf 17379: _ACEOF
1.62 paf 17380:
17381: fi
1.66 paf 17382:
1.156 moko 17383: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17384: if test "x$ac_cv_type_ssize_t" = xyes; then :
17385:
17386: else
17387:
17388: cat >>confdefs.h <<_ACEOF
17389: #define ssize_t int
17390: _ACEOF
17391:
17392: fi
17393:
1.159 ! moko 17394: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
! 17395: case $ac_cv_c_uint8_t in #(
! 17396: no|yes) ;; #(
! 17397: *)
! 17398:
! 17399: $as_echo "#define _UINT8_T 1" >>confdefs.h
! 17400:
! 17401:
! 17402: cat >>confdefs.h <<_ACEOF
! 17403: #define uint8_t $ac_cv_c_uint8_t
! 17404: _ACEOF
! 17405: ;;
! 17406: esac
! 17407:
1.156 moko 17408: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17409: case $ac_cv_c_uint32_t in #(
17410: no|yes) ;; #(
17411: *)
17412:
17413: $as_echo "#define _UINT32_T 1" >>confdefs.h
17414:
17415:
17416: cat >>confdefs.h <<_ACEOF
17417: #define uint32_t $ac_cv_c_uint32_t
17418: _ACEOF
17419: ;;
17420: esac
1.128 moko 17421:
1.159 ! moko 17422: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
! 17423: case $ac_cv_c_uint64_t in #(
! 17424: no|yes) ;; #(
! 17425: *)
! 17426:
! 17427: $as_echo "#define _UINT64_T 1" >>confdefs.h
! 17428:
! 17429:
! 17430: cat >>confdefs.h <<_ACEOF
! 17431: #define uint64_t $ac_cv_c_uint64_t
! 17432: _ACEOF
! 17433: ;;
! 17434: esac
! 17435:
! 17436:
! 17437:
! 17438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
! 17439: $as_echo_n "checking for ANSI C header files... " >&6; }
! 17440: if ${ac_cv_header_stdc+:} false; then :
! 17441: $as_echo_n "(cached) " >&6
! 17442: else
! 17443: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 17444: /* end confdefs.h. */
! 17445: #include <stdlib.h>
! 17446: #include <stdarg.h>
! 17447: #include <string.h>
! 17448: #include <float.h>
! 17449:
! 17450: int
! 17451: main ()
! 17452: {
! 17453:
! 17454: ;
! 17455: return 0;
! 17456: }
! 17457: _ACEOF
! 17458: if ac_fn_c_try_compile "$LINENO"; then :
! 17459: ac_cv_header_stdc=yes
! 17460: else
! 17461: ac_cv_header_stdc=no
! 17462: fi
! 17463: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 17464:
! 17465: if test $ac_cv_header_stdc = yes; then
! 17466: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 17467: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 17468: /* end confdefs.h. */
! 17469: #include <string.h>
! 17470:
! 17471: _ACEOF
! 17472: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 17473: $EGREP "memchr" >/dev/null 2>&1; then :
! 17474:
! 17475: else
! 17476: ac_cv_header_stdc=no
! 17477: fi
! 17478: rm -f conftest*
! 17479:
! 17480: fi
! 17481:
! 17482: if test $ac_cv_header_stdc = yes; then
! 17483: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 17484: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 17485: /* end confdefs.h. */
! 17486: #include <stdlib.h>
! 17487:
! 17488: _ACEOF
! 17489: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 17490: $EGREP "free" >/dev/null 2>&1; then :
! 17491:
! 17492: else
! 17493: ac_cv_header_stdc=no
! 17494: fi
! 17495: rm -f conftest*
! 17496:
! 17497: fi
! 17498:
! 17499: if test $ac_cv_header_stdc = yes; then
! 17500: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 17501: if test "$cross_compiling" = yes; then :
! 17502: :
! 17503: else
! 17504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 17505: /* end confdefs.h. */
! 17506: #include <ctype.h>
! 17507: #include <stdlib.h>
! 17508: #if ((' ' & 0x0FF) == 0x020)
! 17509: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 17510: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 17511: #else
! 17512: # define ISLOWER(c) \
! 17513: (('a' <= (c) && (c) <= 'i') \
! 17514: || ('j' <= (c) && (c) <= 'r') \
! 17515: || ('s' <= (c) && (c) <= 'z'))
! 17516: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 17517: #endif
! 17518:
! 17519: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 17520: int
! 17521: main ()
! 17522: {
! 17523: int i;
! 17524: for (i = 0; i < 256; i++)
! 17525: if (XOR (islower (i), ISLOWER (i))
! 17526: || toupper (i) != TOUPPER (i))
! 17527: return 2;
! 17528: return 0;
! 17529: }
! 17530: _ACEOF
! 17531: if ac_fn_c_try_run "$LINENO"; then :
! 17532:
! 17533: else
! 17534: ac_cv_header_stdc=no
! 17535: fi
! 17536: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 17537: conftest.$ac_objext conftest.beam conftest.$ac_ext
! 17538: fi
! 17539:
! 17540: fi
! 17541: fi
! 17542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
! 17543: $as_echo "$ac_cv_header_stdc" >&6; }
! 17544: if test $ac_cv_header_stdc = yes; then
! 17545:
! 17546: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
! 17547:
! 17548: fi
1.128 moko 17549:
1.150 moko 17550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17551: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17552: if ${ac_cv_header_time+:} false; then :
17553: $as_echo_n "(cached) " >&6
1.62 paf 17554: else
1.150 moko 17555: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17556: /* end confdefs.h. */
1.66 paf 17557: #include <sys/types.h>
17558: #include <sys/time.h>
17559: #include <time.h>
1.62 paf 17560:
17561: int
17562: main ()
17563: {
1.66 paf 17564: if ((struct tm *) 0)
17565: return 0;
1.62 paf 17566: ;
17567: return 0;
17568: }
17569: _ACEOF
1.150 moko 17570: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 17571: ac_cv_header_time=yes
1.1 paf 17572: else
1.150 moko 17573: ac_cv_header_time=no
1.1 paf 17574: fi
1.150 moko 17575: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 17576: fi
1.150 moko 17577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17578: $as_echo "$ac_cv_header_time" >&6; }
1.66 paf 17579: if test $ac_cv_header_time = yes; then
1.1 paf 17580:
1.150 moko 17581: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.66 paf 17582:
1.1 paf 17583: fi
1.66 paf 17584:
1.1 paf 17585:
1.159 ! moko 17586: for ac_header in stdio.h sys/types.h sys/stat.h stdlib.h stddef.h memory.h string.h strings.h inttypes.h stdint.h unistd.h
! 17587: do :
! 17588: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 17589: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
! 17590: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 17591: cat >>confdefs.h <<_ACEOF
! 17592: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 17593: _ACEOF
! 17594:
! 17595: fi
1.150 moko 17596:
1.159 ! moko 17597: done
! 17598:
! 17599: for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h
! 17600: do :
! 17601: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 17602: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
! 17603: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 17604: cat >>confdefs.h <<_ACEOF
! 17605: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 17606: _ACEOF
! 17607:
! 17608: fi
! 17609:
! 17610: done
! 17611:
! 17612: for ac_header in errno.h fcntl.h io.h sys/file.h sys/locking.h sys/select.h sys/resource.h
! 17613: do :
! 17614: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 17615: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
! 17616: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 17617: cat >>confdefs.h <<_ACEOF
! 17618: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 17619: _ACEOF
! 17620:
! 17621: fi
! 17622:
! 17623: done
! 17624:
! 17625: for ac_header in winsock.h sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 17626: do :
17627: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17628: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17629: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 17630: cat >>confdefs.h <<_ACEOF
1.150 moko 17631: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 17632: _ACEOF
17633:
17634: fi
17635:
1.66 paf 17636: done
1.62 paf 17637:
17638:
17639:
1.66 paf 17640: case "$host" in
1.107 misha 17641: *-freebsd4*)
17642:
1.150 moko 17643: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 17644:
17645: ;;
1.66 paf 17646: *-sunos5.6* | *-solaris2.6*)
1.150 moko 17647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
17648: $as_echo_n "checking for main in -lxnet... " >&6; }
17649: if ${ac_cv_lib_xnet_main+:} false; then :
17650: $as_echo_n "(cached) " >&6
1.62 paf 17651: else
1.66 paf 17652: ac_check_lib_save_LIBS=$LIBS
17653: LIBS="-lxnet $LIBS"
1.150 moko 17654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17655: /* end confdefs.h. */
17656:
1.66 paf 17657:
17658: int
17659: main ()
17660: {
1.150 moko 17661: return main ();
1.66 paf 17662: ;
17663: return 0;
17664: }
1.62 paf 17665: _ACEOF
1.150 moko 17666: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 17667: ac_cv_lib_xnet_main=yes
1.62 paf 17668: else
1.150 moko 17669: ac_cv_lib_xnet_main=no
1.62 paf 17670: fi
1.150 moko 17671: rm -f core conftest.err conftest.$ac_objext \
17672: conftest$ac_exeext conftest.$ac_ext
1.66 paf 17673: LIBS=$ac_check_lib_save_LIBS
1.62 paf 17674: fi
1.150 moko 17675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
17676: $as_echo "$ac_cv_lib_xnet_main" >&6; }
17677: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 17678: cat >>confdefs.h <<_ACEOF
1.66 paf 17679: #define HAVE_LIBXNET 1
1.62 paf 17680: _ACEOF
1.1 paf 17681:
1.66 paf 17682: LIBS="-lxnet $LIBS"
17683:
1.1 paf 17684: fi
17685:
1.66 paf 17686: ;;
17687: *-sunos5* | *-solaris2*)
1.150 moko 17688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
17689: $as_echo_n "checking for main in -lsocket... " >&6; }
17690: if ${ac_cv_lib_socket_main+:} false; then :
17691: $as_echo_n "(cached) " >&6
1.62 paf 17692: else
1.66 paf 17693: ac_check_lib_save_LIBS=$LIBS
17694: LIBS="-lsocket $LIBS"
1.150 moko 17695: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17696: /* end confdefs.h. */
1.66 paf 17697:
17698:
1.62 paf 17699: int
17700: main ()
17701: {
1.150 moko 17702: return main ();
1.62 paf 17703: ;
17704: return 0;
17705: }
17706: _ACEOF
1.150 moko 17707: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 17708: ac_cv_lib_socket_main=yes
1.1 paf 17709: else
1.150 moko 17710: ac_cv_lib_socket_main=no
1.1 paf 17711: fi
1.150 moko 17712: rm -f core conftest.err conftest.$ac_objext \
17713: conftest$ac_exeext conftest.$ac_ext
1.66 paf 17714: LIBS=$ac_check_lib_save_LIBS
1.62 paf 17715: fi
1.150 moko 17716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
17717: $as_echo "$ac_cv_lib_socket_main" >&6; }
17718: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 17719: cat >>confdefs.h <<_ACEOF
17720: #define HAVE_LIBSOCKET 1
17721: _ACEOF
1.1 paf 17722:
1.66 paf 17723: LIBS="-lsocket $LIBS"
1.1 paf 17724:
17725: fi
17726:
1.150 moko 17727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
17728: $as_echo_n "checking for main in -lnsl... " >&6; }
17729: if ${ac_cv_lib_nsl_main+:} false; then :
17730: $as_echo_n "(cached) " >&6
1.62 paf 17731: else
1.66 paf 17732: ac_check_lib_save_LIBS=$LIBS
17733: LIBS="-lnsl $LIBS"
1.150 moko 17734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17735: /* end confdefs.h. */
1.66 paf 17736:
17737:
1.62 paf 17738: int
17739: main ()
17740: {
1.150 moko 17741: return main ();
1.62 paf 17742: ;
17743: return 0;
17744: }
17745: _ACEOF
1.150 moko 17746: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 17747: ac_cv_lib_nsl_main=yes
1.30 paf 17748: else
1.150 moko 17749: ac_cv_lib_nsl_main=no
1.30 paf 17750: fi
1.150 moko 17751: rm -f core conftest.err conftest.$ac_objext \
17752: conftest$ac_exeext conftest.$ac_ext
1.66 paf 17753: LIBS=$ac_check_lib_save_LIBS
1.62 paf 17754: fi
1.150 moko 17755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
17756: $as_echo "$ac_cv_lib_nsl_main" >&6; }
17757: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 17758: cat >>confdefs.h <<_ACEOF
17759: #define HAVE_LIBNSL 1
17760: _ACEOF
1.30 paf 17761:
1.66 paf 17762: LIBS="-lnsl $LIBS"
1.30 paf 17763:
17764: fi
17765:
1.66 paf 17766: ;;
17767: *-nec-sysv4*)
1.150 moko 17768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17769: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17770: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17771: $as_echo_n "(cached) " >&6
1.62 paf 17772: else
1.66 paf 17773: ac_check_lib_save_LIBS=$LIBS
17774: LIBS="-lnsl $LIBS"
1.150 moko 17775: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17776: /* end confdefs.h. */
1.66 paf 17777:
1.150 moko 17778: /* Override any GCC internal prototype to avoid an error.
17779: Use char because int might match the return type of a GCC
17780: builtin and then its argument prototype would still apply. */
1.66 paf 17781: #ifdef __cplusplus
17782: extern "C"
17783: #endif
17784: char gethostbyname ();
1.62 paf 17785: int
17786: main ()
17787: {
1.150 moko 17788: return gethostbyname ();
1.62 paf 17789: ;
17790: return 0;
17791: }
17792: _ACEOF
1.150 moko 17793: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 17794: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 17795: else
1.150 moko 17796: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 17797: fi
1.150 moko 17798: rm -f core conftest.err conftest.$ac_objext \
17799: conftest$ac_exeext conftest.$ac_ext
1.66 paf 17800: LIBS=$ac_check_lib_save_LIBS
1.62 paf 17801: fi
1.150 moko 17802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17803: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17804: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 17805: cat >>confdefs.h <<_ACEOF
17806: #define HAVE_LIBNSL 1
17807: _ACEOF
1.30 paf 17808:
1.66 paf 17809: LIBS="-lnsl $LIBS"
1.30 paf 17810:
17811: fi
17812:
1.150 moko 17813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17814: $as_echo_n "checking for socket in -lsocket... " >&6; }
17815: if ${ac_cv_lib_socket_socket+:} false; then :
17816: $as_echo_n "(cached) " >&6
1.8 paf 17817: else
1.66 paf 17818: ac_check_lib_save_LIBS=$LIBS
17819: LIBS="-lsocket $LIBS"
1.150 moko 17820: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17821: /* end confdefs.h. */
17822:
1.150 moko 17823: /* Override any GCC internal prototype to avoid an error.
17824: Use char because int might match the return type of a GCC
17825: builtin and then its argument prototype would still apply. */
1.66 paf 17826: #ifdef __cplusplus
17827: extern "C"
17828: #endif
17829: char socket ();
1.62 paf 17830: int
17831: main ()
17832: {
1.150 moko 17833: return socket ();
1.62 paf 17834: ;
17835: return 0;
17836: }
17837: _ACEOF
1.150 moko 17838: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 17839: ac_cv_lib_socket_socket=yes
1.8 paf 17840: else
1.150 moko 17841: ac_cv_lib_socket_socket=no
1.8 paf 17842: fi
1.150 moko 17843: rm -f core conftest.err conftest.$ac_objext \
17844: conftest$ac_exeext conftest.$ac_ext
1.66 paf 17845: LIBS=$ac_check_lib_save_LIBS
1.8 paf 17846: fi
1.150 moko 17847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17848: $as_echo "$ac_cv_lib_socket_socket" >&6; }
17849: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 17850: cat >>confdefs.h <<_ACEOF
1.128 moko 17851: #define HAVE_LIBSOCKET 1
1.66 paf 17852: _ACEOF
17853:
1.128 moko 17854: LIBS="-lsocket $LIBS"
1.66 paf 17855:
1.62 paf 17856: fi
17857:
1.66 paf 17858: ;;
1.128 moko 17859: *-cygwin*)
17860:
1.150 moko 17861: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 17862:
1.150 moko 17863: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
17864: $as_echo_n "checking for socket in -lwsock32... " >&6; }
17865: if ${ac_cv_lib_wsock32_socket+:} false; then :
17866: $as_echo_n "(cached) " >&6
1.66 paf 17867: else
17868: ac_check_lib_save_LIBS=$LIBS
1.128 moko 17869: LIBS="-lwsock32 $LIBS"
1.150 moko 17870: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17871: /* end confdefs.h. */
1.66 paf 17872:
1.150 moko 17873: /* Override any GCC internal prototype to avoid an error.
17874: Use char because int might match the return type of a GCC
17875: builtin and then its argument prototype would still apply. */
1.128 moko 17876: #ifdef __cplusplus
17877: extern "C"
17878: #endif
17879: char socket ();
1.66 paf 17880: int
17881: main ()
17882: {
1.150 moko 17883: return socket ();
1.66 paf 17884: ;
17885: return 0;
17886: }
1.62 paf 17887: _ACEOF
1.150 moko 17888: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 17889: ac_cv_lib_wsock32_socket=yes
1.62 paf 17890: else
1.150 moko 17891: ac_cv_lib_wsock32_socket=no
1.62 paf 17892: fi
1.150 moko 17893: rm -f core conftest.err conftest.$ac_objext \
17894: conftest$ac_exeext conftest.$ac_ext
1.66 paf 17895: LIBS=$ac_check_lib_save_LIBS
1.1 paf 17896: fi
1.150 moko 17897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_socket" >&5
17898: $as_echo "$ac_cv_lib_wsock32_socket" >&6; }
17899: if test "x$ac_cv_lib_wsock32_socket" = xyes; then :
1.62 paf 17900: cat >>confdefs.h <<_ACEOF
1.128 moko 17901: #define HAVE_LIBWSOCK32 1
1.62 paf 17902: _ACEOF
17903:
1.128 moko 17904: LIBS="-lwsock32 $LIBS"
1.66 paf 17905:
1.1 paf 17906: fi
1.62 paf 17907:
1.66 paf 17908: ;;
17909: esac
1.1 paf 17910:
1.150 moko 17911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17912: $as_echo_n "checking for sin in -lm... " >&6; }
17913: if ${ac_cv_lib_m_sin+:} false; then :
17914: $as_echo_n "(cached) " >&6
1.1 paf 17915: else
1.62 paf 17916: ac_check_lib_save_LIBS=$LIBS
1.66 paf 17917: LIBS="-lm $LIBS"
1.150 moko 17918: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17919: /* end confdefs.h. */
17920:
1.150 moko 17921: /* Override any GCC internal prototype to avoid an error.
17922: Use char because int might match the return type of a GCC
17923: builtin and then its argument prototype would still apply. */
1.66 paf 17924: #ifdef __cplusplus
17925: extern "C"
17926: #endif
17927: char sin ();
1.62 paf 17928: int
17929: main ()
17930: {
1.150 moko 17931: return sin ();
1.62 paf 17932: ;
17933: return 0;
17934: }
17935: _ACEOF
1.150 moko 17936: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 17937: ac_cv_lib_m_sin=yes
1.62 paf 17938: else
1.150 moko 17939: ac_cv_lib_m_sin=no
1.62 paf 17940: fi
1.150 moko 17941: rm -f core conftest.err conftest.$ac_objext \
17942: conftest$ac_exeext conftest.$ac_ext
1.62 paf 17943: LIBS=$ac_check_lib_save_LIBS
17944: fi
1.150 moko 17945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17946: $as_echo "$ac_cv_lib_m_sin" >&6; }
17947: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 17948: cat >>confdefs.h <<_ACEOF
1.66 paf 17949: #define HAVE_LIBM 1
1.62 paf 17950: _ACEOF
1.1 paf 17951:
1.66 paf 17952: LIBS="-lm $LIBS"
1.1 paf 17953:
17954: fi
17955:
1.150 moko 17956: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17957: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17958: if ${ac_cv_lib_crypt_crypt+:} false; then :
17959: $as_echo_n "(cached) " >&6
1.1 paf 17960: else
1.62 paf 17961: ac_check_lib_save_LIBS=$LIBS
1.66 paf 17962: LIBS="-lcrypt $LIBS"
1.150 moko 17963: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17964: /* end confdefs.h. */
17965:
1.150 moko 17966: /* Override any GCC internal prototype to avoid an error.
17967: Use char because int might match the return type of a GCC
17968: builtin and then its argument prototype would still apply. */
1.66 paf 17969: #ifdef __cplusplus
17970: extern "C"
17971: #endif
17972: char crypt ();
1.62 paf 17973: int
17974: main ()
17975: {
1.150 moko 17976: return crypt ();
1.62 paf 17977: ;
17978: return 0;
17979: }
17980: _ACEOF
1.150 moko 17981: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 17982: ac_cv_lib_crypt_crypt=yes
1.62 paf 17983: else
1.150 moko 17984: ac_cv_lib_crypt_crypt=no
1.62 paf 17985: fi
1.150 moko 17986: rm -f core conftest.err conftest.$ac_objext \
17987: conftest$ac_exeext conftest.$ac_ext
1.62 paf 17988: LIBS=$ac_check_lib_save_LIBS
17989: fi
1.150 moko 17990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17991: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17992: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 17993: cat >>confdefs.h <<_ACEOF
1.66 paf 17994: #define HAVE_LIBCRYPT 1
1.62 paf 17995: _ACEOF
1.1 paf 17996:
1.66 paf 17997: LIBS="-lcrypt $LIBS"
17998:
17999: fi
18000:
18001:
18002:
1.159 ! moko 18003: for ac_func in flock _locking fcntl lockf ftruncate fchmod
! 18004: do :
! 18005: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 18006: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 18007: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 18008: cat >>confdefs.h <<_ACEOF
! 18009: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 18010: _ACEOF
! 18011:
! 18012: fi
! 18013: done
1.66 paf 18014:
1.159 ! moko 18015: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv
1.150 moko 18016: do :
18017: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18018: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18019: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18020: cat >>confdefs.h <<_ACEOF
1.150 moko 18021: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18022: _ACEOF
1.1 paf 18023:
1.66 paf 18024: fi
18025: done
18026:
1.1 paf 18027:
18028:
1.159 ! moko 18029:
1.67 paf 18030: pa_func=sigsetjmp
1.150 moko 18031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18032: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
18033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18034: /* end confdefs.h. */
18035:
18036: #ifdef HAVE_SETJMP_H
18037: # include <setjmp.h>
18038: #endif
18039:
18040: int
18041: main ()
18042: {
18043:
18044: $pa_func(0,0);
18045:
18046: ;
18047: return 0;
18048: }
18049: _ACEOF
1.150 moko 18050: if ac_fn_c_try_compile "$LINENO"; then :
18051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18052: $as_echo "yes" >&6; }
1.67 paf 18053: cat >>confdefs.h <<_ACEOF
1.150 moko 18054: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18055: _ACEOF
18056:
18057:
18058: else
1.150 moko 18059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18060: $as_echo "no" >&6; }
1.67 paf 18061:
18062: fi
1.150 moko 18063: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18064:
18065:
18066:
1.159 ! moko 18067:
1.150 moko 18068: ac_ext=cpp
1.67 paf 18069: ac_cpp='$CXXCPP $CPPFLAGS'
18070: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18071: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18072: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18073:
18074:
18075:
1.158 moko 18076: for pa_func in trunc round sign
1.67 paf 18077: do
18078:
1.150 moko 18079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18080: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
18081: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18082: /* end confdefs.h. */
18083:
18084: #ifdef HAVE_MATH_H
18085: # include <math.h>
18086: #endif
18087:
18088: int
18089: main ()
18090: {
18091:
18092: double result=$pa_func(1.6);
18093:
18094: ;
18095: return 0;
18096: }
18097: _ACEOF
1.150 moko 18098: if ac_fn_cxx_try_compile "$LINENO"; then :
18099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18100: $as_echo "yes" >&6; }
1.67 paf 18101: cat >>confdefs.h <<_ACEOF
1.150 moko 18102: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18103: _ACEOF
1.66 paf 18104:
1.62 paf 18105: else
1.150 moko 18106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107: $as_echo "no" >&6; }
1.62 paf 18108:
18109: fi
1.150 moko 18110: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111:
18112: done
18113:
18114: ac_ext=c
18115: ac_cpp='$CPP $CPPFLAGS'
18116: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18117: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18118: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18119:
18120:
18121:
18122: for ac_func in qsort
18123: do :
18124: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18125: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18126: cat >>confdefs.h <<_ACEOF
1.150 moko 18127: #define HAVE_QSORT 1
1.62 paf 18128: _ACEOF
1.1 paf 18129:
1.66 paf 18130: else
1.150 moko 18131: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18132: fi
1.66 paf 18133: done
1.1 paf 18134:
18135:
1.62 paf 18136:
1.159 ! moko 18137:
1.150 moko 18138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18139: $as_echo_n "checking for timezone variable... " >&6; }
18140: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18141: /* end confdefs.h. */
1.66 paf 18142: #include <time.h>
1.62 paf 18143: int
18144: main ()
18145: {
1.66 paf 18146: time_t test=timezone;
1.62 paf 18147: ;
18148: return 0;
18149: }
18150: _ACEOF
1.150 moko 18151: if ac_fn_c_try_compile "$LINENO"; then :
18152: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18154: $as_echo "yes" >&6; }
1.62 paf 18155: else
1.150 moko 18156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18157: $as_echo "no" >&6; }
1.62 paf 18158: fi
1.150 moko 18159: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18160:
1.150 moko 18161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
18162: $as_echo_n "checking for daylight variable... " >&6; }
18163: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18164: /* end confdefs.h. */
1.66 paf 18165: #include <time.h>
1.62 paf 18166: int
18167: main ()
18168: {
1.66 paf 18169: int test=daylight;
1.62 paf 18170: ;
18171: return 0;
18172: }
18173: _ACEOF
1.150 moko 18174: if ac_fn_c_try_compile "$LINENO"; then :
18175: $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
1.158 moko 18176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18177: $as_echo "yes" >&6; }
1.62 paf 18178: else
1.150 moko 18179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18180: $as_echo "no" >&6; }
1.62 paf 18181: fi
1.150 moko 18182: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18183:
1.150 moko 18184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18185: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
18186: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18187: /* end confdefs.h. */
1.66 paf 18188: #include <time.h>
1.62 paf 18189: int
18190: main ()
18191: {
1.158 moko 18192: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18193: ;
18194: return 0;
18195: }
18196: _ACEOF
1.150 moko 18197: if ac_fn_c_try_compile "$LINENO"; then :
18198: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18200: $as_echo "yes" >&6; }
1.62 paf 18201: else
1.150 moko 18202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18203: $as_echo "no" >&6; }
1.62 paf 18204: fi
1.150 moko 18205: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18206:
1.150 moko 18207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18208: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
18209: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18210: /* end confdefs.h. */
1.66 paf 18211: #include <time.h>
1.62 paf 18212: int
18213: main ()
18214: {
1.158 moko 18215: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18216: ;
18217: return 0;
18218: }
18219: _ACEOF
1.150 moko 18220: if ac_fn_c_try_compile "$LINENO"; then :
18221: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18223: $as_echo "yes" >&6; }
1.62 paf 18224: else
1.150 moko 18225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18226: $as_echo "no" >&6; }
1.62 paf 18227: fi
1.150 moko 18228: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.31 paf 18229:
1.1 paf 18230:
18231:
18232:
1.62 paf 18233:
18234:
18235:
1.150 moko 18236: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18237:
18238:
1.150 moko 18239: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/memcached/Makefile src/lib/curl/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"
1.62 paf 18240:
18241: cat >confcache <<\_ACEOF
1.1 paf 18242: # This file is a shell script that caches the results of configure
18243: # tests run on this system so they can be shared between configure
1.62 paf 18244: # scripts and configure runs, see configure's option --config-cache.
18245: # It is not useful on other systems. If it contains results you don't
18246: # want to keep, you may remove or edit it.
1.1 paf 18247: #
1.62 paf 18248: # config.status only pays attention to the cache file if you give it
18249: # the --recheck option to rerun configure.
1.1 paf 18250: #
1.62 paf 18251: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18252: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18253: # following values.
18254:
18255: _ACEOF
18256:
1.1 paf 18257: # The following way of writing the cache mishandles newlines in values,
18258: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 18259: # So, we kill variables containing newlines.
1.1 paf 18260: # Ultrix sh set writes to stderr and can't be redirected directly,
18261: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 18262: (
18263: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18264: eval ac_val=\$$ac_var
18265: case $ac_val in #(
18266: *${as_nl}*)
18267: case $ac_var in #(
18268: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18269: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18270: esac
18271: case $ac_var in #(
18272: _ | IFS | as_nl) ;; #(
18273: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18274: *) { eval $ac_var=; unset $ac_var;} ;;
18275: esac ;;
18276: esac
18277: done
18278:
1.62 paf 18279: (set) 2>&1 |
1.150 moko 18280: case $as_nl`(ac_space=' '; set) 2>&1` in #(
18281: *${as_nl}ac_space=\ *)
18282: # `set' does not quote correctly, so add quotes: double-quote
18283: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 18284: sed -n \
1.86 paf 18285: "s/'/'\\\\''/g;
18286: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 18287: ;; #(
1.62 paf 18288: *)
18289: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 18290: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 18291: ;;
1.150 moko 18292: esac |
18293: sort
18294: ) |
1.62 paf 18295: sed '
1.150 moko 18296: /^ac_cv_env_/b end
1.62 paf 18297: t clear
1.150 moko 18298: :clear
1.62 paf 18299: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18300: t end
1.150 moko 18301: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18302: :end' >>confcache
18303: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18304: if test -w "$cache_file"; then
18305: if test "x$cache_file" != "x/dev/null"; then
18306: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18307: $as_echo "$as_me: updating cache $cache_file" >&6;}
18308: if test ! -f "$cache_file" || test -h "$cache_file"; then
18309: cat confcache >"$cache_file"
18310: else
18311: case $cache_file in #(
18312: */* | ?:*)
18313: mv -f confcache "$cache_file"$$ &&
18314: mv -f "$cache_file"$$ "$cache_file" ;; #(
18315: *)
18316: mv -f confcache "$cache_file" ;;
18317: esac
18318: fi
18319: fi
1.1 paf 18320: else
1.150 moko 18321: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18322: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 18323: fi
18324: fi
18325: rm -f confcache
18326:
18327: test "x$prefix" = xNONE && prefix=$ac_default_prefix
18328: # Let make expand exec_prefix.
18329: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18330:
1.62 paf 18331: DEFS=-DHAVE_CONFIG_H
18332:
18333: ac_libobjs=
18334: ac_ltlibobjs=
1.150 moko 18335: U=
1.62 paf 18336: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18337: # 1. Remove the extension, and $U if already installed.
1.150 moko 18338: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18339: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18340: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18341: # will be set to the directory where LIBOBJS objects are built.
18342: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18343: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 18344: done
18345: LIBOBJS=$ac_libobjs
18346:
18347: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 18348:
18349:
1.150 moko 18350: if test -n "$EXEEXT"; then
18351: am__EXEEXT_TRUE=
18352: am__EXEEXT_FALSE='#'
18353: else
18354: am__EXEEXT_TRUE='#'
18355: am__EXEEXT_FALSE=
18356: fi
18357:
1.62 paf 18358: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 18359: as_fn_error $? "conditional \"AMDEP\" was never defined.
18360: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18361: fi
1.66 paf 18362: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 18363: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18364: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18365: fi
1.66 paf 18366: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 18367: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18368: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18369: fi
1.122 moko 18370: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 18371: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
18372: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18373: fi
1.128 moko 18374: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 18375: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
18376: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 18377: fi
18378: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 18379: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
18380: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 18381: fi
1.150 moko 18382: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 18383:
18384: _ltdl_libobjs=
18385: _ltdl_ltlibobjs=
18386: if test -n "$_LT_LIBOBJS"; then
18387: # Remove the extension.
18388: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
18389: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
18390: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
18391: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
18392: done
18393: fi
18394: ltdl_LIBOBJS=$_ltdl_libobjs
18395:
18396: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
18397:
18398:
1.62 paf 18399:
1.150 moko 18400:
18401: : "${CONFIG_STATUS=./config.status}"
18402: ac_write_fail=0
1.62 paf 18403: ac_clean_files_save=$ac_clean_files
18404: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 18405: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18406: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18407: as_write_fail=0
18408: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 18409: #! $SHELL
18410: # Generated by $as_me.
18411: # Run this file to recreate the current configuration.
18412: # Compiler output produced by configure, useful for debugging
18413: # configure, is in config.log if it exists.
18414:
18415: debug=false
18416: ac_cs_recheck=false
18417: ac_cs_silent=false
1.150 moko 18418:
1.62 paf 18419: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 18420: export SHELL
18421: _ASEOF
18422: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18423: ## -------------------- ##
18424: ## M4sh Initialization. ##
18425: ## -------------------- ##
1.62 paf 18426:
1.150 moko 18427: # Be more Bourne compatible
18428: DUALCASE=1; export DUALCASE # for MKS sh
18429: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 18430: emulate sh
18431: NULLCMD=:
1.150 moko 18432: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 18433: # is contrary to our usage. Disable this feature.
18434: alias -g '${1+"$@"}'='"$@"'
1.150 moko 18435: setopt NO_GLOB_SUBST
18436: else
18437: case `(set -o) 2>/dev/null` in #(
18438: *posix*) :
18439: set -o posix ;; #(
18440: *) :
18441: ;;
18442: esac
18443: fi
18444:
18445:
18446: as_nl='
18447: '
18448: export as_nl
18449: # Printing a long string crashes Solaris 7 /usr/bin/printf.
18450: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18451: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18452: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18453: # Prefer a ksh shell builtin over an external printf program on Solaris,
18454: # but without wasting forks for bash or zsh.
18455: if test -z "$BASH_VERSION$ZSH_VERSION" \
18456: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18457: as_echo='print -r --'
18458: as_echo_n='print -rn --'
18459: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18460: as_echo='printf %s\n'
18461: as_echo_n='printf %s'
18462: else
18463: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18464: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18465: as_echo_n='/usr/ucb/echo -n'
18466: else
18467: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18468: as_echo_n_body='eval
18469: arg=$1;
18470: case $arg in #(
18471: *"$as_nl"*)
18472: expr "X$arg" : "X\\(.*\\)$as_nl";
18473: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18474: esac;
18475: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18476: '
18477: export as_echo_n_body
18478: as_echo_n='sh -c $as_echo_n_body as_echo'
18479: fi
18480: export as_echo_body
18481: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 18482: fi
18483:
1.150 moko 18484: # The user is always right.
18485: if test "${PATH_SEPARATOR+set}" != set; then
18486: PATH_SEPARATOR=:
18487: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18488: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18489: PATH_SEPARATOR=';'
18490: }
1.62 paf 18491: fi
18492:
18493:
1.150 moko 18494: # IFS
18495: # We need space, tab and new line, in precisely that order. Quoting is
18496: # there to prevent editors from complaining about space-tab.
18497: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18498: # splitting by setting IFS to empty value.)
18499: IFS=" "" $as_nl"
18500:
18501: # Find who we are. Look in the path if we contain no directory separator.
18502: as_myself=
18503: case $0 in #((
18504: *[\\/]* ) as_myself=$0 ;;
18505: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18506: for as_dir in $PATH
18507: do
18508: IFS=$as_save_IFS
18509: test -z "$as_dir" && as_dir=.
18510: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18511: done
18512: IFS=$as_save_IFS
18513:
18514: ;;
18515: esac
18516: # We did not find ourselves, most probably we were run as `sh COMMAND'
18517: # in which case we are not to be found in the path.
18518: if test "x$as_myself" = x; then
18519: as_myself=$0
18520: fi
18521: if test ! -f "$as_myself"; then
18522: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18523: exit 1
18524: fi
18525:
18526: # Unset variables that we do not need and which cause bugs (e.g. in
18527: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18528: # suppresses any "Segmentation fault" message there. '((' could
18529: # trigger a bug in pdksh 5.2.14.
18530: for as_var in BASH_ENV ENV MAIL MAILPATH
18531: do eval test x\${$as_var+set} = xset \
18532: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18533: done
1.62 paf 18534: PS1='$ '
18535: PS2='> '
18536: PS4='+ '
18537:
18538: # NLS nuisances.
1.150 moko 18539: LC_ALL=C
18540: export LC_ALL
18541: LANGUAGE=C
18542: export LANGUAGE
18543:
18544: # CDPATH.
18545: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18546:
18547:
18548: # as_fn_error STATUS ERROR [LINENO LOG_FD]
18549: # ----------------------------------------
18550: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18551: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18552: # script with STATUS, using 1 if that was 0.
18553: as_fn_error ()
18554: {
18555: as_status=$1; test $as_status -eq 0 && as_status=1
18556: if test "$4"; then
18557: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18558: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18559: fi
18560: $as_echo "$as_me: error: $2" >&2
18561: as_fn_exit $as_status
18562: } # as_fn_error
18563:
18564:
18565: # as_fn_set_status STATUS
18566: # -----------------------
18567: # Set $? to STATUS, without forking.
18568: as_fn_set_status ()
18569: {
18570: return $1
18571: } # as_fn_set_status
18572:
18573: # as_fn_exit STATUS
18574: # -----------------
18575: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18576: as_fn_exit ()
18577: {
18578: set +e
18579: as_fn_set_status $1
18580: exit $1
18581: } # as_fn_exit
18582:
18583: # as_fn_unset VAR
18584: # ---------------
18585: # Portably unset VAR.
18586: as_fn_unset ()
18587: {
18588: { eval $1=; unset $1;}
18589: }
18590: as_unset=as_fn_unset
18591: # as_fn_append VAR VALUE
18592: # ----------------------
18593: # Append the text in VALUE to the end of the definition contained in VAR. Take
18594: # advantage of any shell optimizations that allow amortized linear growth over
18595: # repeated appends, instead of the typical quadratic growth present in naive
18596: # implementations.
18597: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18598: eval 'as_fn_append ()
18599: {
18600: eval $1+=\$2
18601: }'
18602: else
18603: as_fn_append ()
18604: {
18605: eval $1=\$$1\$2
18606: }
18607: fi # as_fn_append
18608:
18609: # as_fn_arith ARG...
18610: # ------------------
18611: # Perform arithmetic evaluation on the ARGs, and store the result in the
18612: # global $as_val. Take advantage of shells that can avoid forks. The arguments
18613: # must be portable across $(()) and expr.
18614: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18615: eval 'as_fn_arith ()
18616: {
18617: as_val=$(( $* ))
18618: }'
18619: else
18620: as_fn_arith ()
18621: {
18622: as_val=`expr "$@" || test $? -eq 1`
18623: }
18624: fi # as_fn_arith
18625:
1.1 paf 18626:
1.150 moko 18627: if expr a : '\(a\)' >/dev/null 2>&1 &&
18628: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 18629: as_expr=expr
18630: else
18631: as_expr=false
18632: fi
18633:
1.150 moko 18634: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 18635: as_basename=basename
18636: else
18637: as_basename=false
18638: fi
18639:
1.150 moko 18640: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18641: as_dirname=dirname
18642: else
18643: as_dirname=false
18644: fi
1.62 paf 18645:
1.150 moko 18646: as_me=`$as_basename -- "$0" ||
1.62 paf 18647: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18648: X"$0" : 'X\(//\)$' \| \
1.150 moko 18649: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18650: $as_echo X/"$0" |
18651: sed '/^.*\/\([^/][^/]*\)\/*$/{
18652: s//\1/
18653: q
18654: }
18655: /^X\/\(\/\/\)$/{
18656: s//\1/
18657: q
18658: }
18659: /^X\/\(\/\).*/{
18660: s//\1/
18661: q
18662: }
18663: s/.*/./; q'`
1.62 paf 18664:
18665: # Avoid depending upon Character Ranges.
18666: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18667: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18668: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18669: as_cr_digits='0123456789'
18670: as_cr_alnum=$as_cr_Letters$as_cr_digits
18671:
1.150 moko 18672: ECHO_C= ECHO_N= ECHO_T=
18673: case `echo -n x` in #(((((
18674: -n*)
18675: case `echo 'xy\c'` in
18676: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18677: xy) ECHO_C='\c';;
18678: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18679: ECHO_T=' ';;
18680: esac;;
18681: *)
18682: ECHO_N='-n';;
1.62 paf 18683: esac
18684:
1.150 moko 18685: rm -f conf$$ conf$$.exe conf$$.file
18686: if test -d conf$$.dir; then
18687: rm -f conf$$.dir/conf$$.file
1.62 paf 18688: else
1.150 moko 18689: rm -f conf$$.dir
18690: mkdir conf$$.dir 2>/dev/null
1.62 paf 18691: fi
1.150 moko 18692: if (echo >conf$$.file) 2>/dev/null; then
18693: if ln -s conf$$.file conf$$ 2>/dev/null; then
18694: as_ln_s='ln -s'
18695: # ... but there are two gotchas:
18696: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18697: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18698: # In both cases, we have to default to `cp -p'.
18699: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18700: as_ln_s='cp -p'
18701: elif ln conf$$.file conf$$ 2>/dev/null; then
18702: as_ln_s=ln
18703: else
1.62 paf 18704: as_ln_s='cp -p'
18705: fi
18706: else
18707: as_ln_s='cp -p'
18708: fi
1.150 moko 18709: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18710: rmdir conf$$.dir 2>/dev/null
18711:
18712:
18713: # as_fn_mkdir_p
18714: # -------------
18715: # Create "$as_dir" as a directory, including parents if necessary.
18716: as_fn_mkdir_p ()
18717: {
18718:
18719: case $as_dir in #(
18720: -*) as_dir=./$as_dir;;
18721: esac
18722: test -d "$as_dir" || eval $as_mkdir_p || {
18723: as_dirs=
18724: while :; do
18725: case $as_dir in #(
18726: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18727: *) as_qdir=$as_dir;;
18728: esac
18729: as_dirs="'$as_qdir' $as_dirs"
18730: as_dir=`$as_dirname -- "$as_dir" ||
18731: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18732: X"$as_dir" : 'X\(//\)[^/]' \| \
18733: X"$as_dir" : 'X\(//\)$' \| \
18734: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18735: $as_echo X"$as_dir" |
18736: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18737: s//\1/
18738: q
18739: }
18740: /^X\(\/\/\)[^/].*/{
18741: s//\1/
18742: q
18743: }
18744: /^X\(\/\/\)$/{
18745: s//\1/
18746: q
18747: }
18748: /^X\(\/\).*/{
18749: s//\1/
18750: q
18751: }
18752: s/.*/./; q'`
18753: test -d "$as_dir" && break
18754: done
18755: test -z "$as_dirs" || eval "mkdir $as_dirs"
18756: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18757:
1.62 paf 18758:
1.150 moko 18759: } # as_fn_mkdir_p
1.62 paf 18760: if mkdir -p . 2>/dev/null; then
1.150 moko 18761: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 18762: else
1.86 paf 18763: test -d ./-p && rmdir ./-p
1.62 paf 18764: as_mkdir_p=false
18765: fi
18766:
1.150 moko 18767: if test -x / >/dev/null 2>&1; then
18768: as_test_x='test -x'
18769: else
18770: if ls -dL / >/dev/null 2>&1; then
18771: as_ls_L_option=L
18772: else
18773: as_ls_L_option=
18774: fi
18775: as_test_x='
18776: eval sh -c '\''
18777: if test -d "$1"; then
18778: test -d "$1/.";
18779: else
18780: case $1 in #(
18781: -*)set "./$1";;
18782: esac;
18783: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18784: ???[sx]*):;;*)false;;esac;fi
18785: '\'' sh
18786: '
18787: fi
18788: as_executable_p=$as_test_x
1.62 paf 18789:
18790: # Sed expression to map a string onto a valid CPP name.
1.86 paf 18791: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 18792:
18793: # Sed expression to map a string onto a valid variable name.
1.86 paf 18794: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 18795:
18796:
18797: exec 6>&1
1.150 moko 18798: ## ----------------------------------- ##
18799: ## Main body of $CONFIG_STATUS script. ##
18800: ## ----------------------------------- ##
18801: _ASEOF
18802: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 18803:
1.150 moko 18804: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18805: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 18806: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 18807: # values after options handling.
18808: ac_log="
1.157 moko 18809: This file was extended by parser $as_me 3.4.3b, which was
1.150 moko 18810: generated by GNU Autoconf 2.68. Invocation command line was
1.62 paf 18811:
18812: CONFIG_FILES = $CONFIG_FILES
18813: CONFIG_HEADERS = $CONFIG_HEADERS
18814: CONFIG_LINKS = $CONFIG_LINKS
18815: CONFIG_COMMANDS = $CONFIG_COMMANDS
18816: $ $0 $@
18817:
1.150 moko 18818: on `(hostname || uname -n) 2>/dev/null | sed 1q`
18819: "
18820:
1.62 paf 18821: _ACEOF
18822:
1.150 moko 18823: case $ac_config_files in *"
18824: "*) set x $ac_config_files; shift; ac_config_files=$*;;
18825: esac
1.62 paf 18826:
1.150 moko 18827: case $ac_config_headers in *"
18828: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18829: esac
1.62 paf 18830:
18831:
1.150 moko 18832: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18833: # Files that config.status was made for.
18834: config_files="$ac_config_files"
18835: config_headers="$ac_config_headers"
18836: config_commands="$ac_config_commands"
1.62 paf 18837:
1.150 moko 18838: _ACEOF
1.62 paf 18839:
1.150 moko 18840: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 18841: ac_cs_usage="\
1.150 moko 18842: \`$as_me' instantiates files and other configuration actions
18843: from templates according to the current configuration. Unless the files
18844: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 18845:
1.150 moko 18846: Usage: $0 [OPTION]... [TAG]...
1.62 paf 18847:
18848: -h, --help print this help, then exit
1.150 moko 18849: -V, --version print version number and configuration settings, then exit
18850: --config print configuration, then exit
18851: -q, --quiet, --silent
18852: do not print progress messages
1.62 paf 18853: -d, --debug don't remove temporary files
18854: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 18855: --file=FILE[:TEMPLATE]
18856: instantiate the configuration file FILE
18857: --header=FILE[:TEMPLATE]
18858: instantiate the configuration header FILE
1.62 paf 18859:
18860: Configuration files:
18861: $config_files
18862:
18863: Configuration headers:
18864: $config_headers
18865:
18866: Configuration commands:
18867: $config_commands
18868:
1.150 moko 18869: Report bugs to the package provider."
18870:
1.62 paf 18871: _ACEOF
1.150 moko 18872: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18873: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 18874: ac_cs_version="\\
1.157 moko 18875: parser config.status 3.4.3b
1.150 moko 18876: configured by $0, generated by GNU Autoconf 2.68,
18877: with options \\"\$ac_cs_config\\"
1.62 paf 18878:
1.150 moko 18879: Copyright (C) 2010 Free Software Foundation, Inc.
1.62 paf 18880: This config.status script is free software; the Free Software Foundation
18881: gives unlimited permission to copy, distribute and modify it."
1.150 moko 18882:
18883: ac_pwd='$ac_pwd'
18884: srcdir='$srcdir'
18885: INSTALL='$INSTALL'
18886: MKDIR_P='$MKDIR_P'
18887: AWK='$AWK'
18888: test -n "\$AWK" || AWK=awk
1.62 paf 18889: _ACEOF
18890:
1.150 moko 18891: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18892: # The default lists apply if the user does not specify any file.
1.62 paf 18893: ac_need_defaults=:
18894: while test $# != 0
18895: do
18896: case $1 in
1.150 moko 18897: --*=?*)
18898: ac_option=`expr "X$1" : 'X\([^=]*\)='`
18899: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 18900: ac_shift=:
18901: ;;
1.150 moko 18902: --*=)
18903: ac_option=`expr "X$1" : 'X\([^=]*\)='`
18904: ac_optarg=
18905: ac_shift=:
18906: ;;
18907: *)
1.62 paf 18908: ac_option=$1
18909: ac_optarg=$2
18910: ac_shift=shift
18911: ;;
18912: esac
18913:
18914: case $ac_option in
18915: # Handling of the options.
18916: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18917: ac_cs_recheck=: ;;
1.150 moko 18918: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18919: $as_echo "$ac_cs_version"; exit ;;
18920: --config | --confi | --conf | --con | --co | --c )
18921: $as_echo "$ac_cs_config"; exit ;;
18922: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 18923: debug=: ;;
18924: --file | --fil | --fi | --f )
18925: $ac_shift
1.150 moko 18926: case $ac_optarg in
18927: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18928: '') as_fn_error $? "missing file argument" ;;
18929: esac
18930: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 18931: ac_need_defaults=false;;
18932: --header | --heade | --head | --hea )
18933: $ac_shift
1.150 moko 18934: case $ac_optarg in
18935: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18936: esac
18937: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 18938: ac_need_defaults=false;;
1.150 moko 18939: --he | --h)
18940: # Conflict between --help and --header
18941: as_fn_error $? "ambiguous option: \`$1'
18942: Try \`$0 --help' for more information.";;
18943: --help | --hel | -h )
18944: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 18945: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18946: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18947: ac_cs_silent=: ;;
18948:
18949: # This is an error.
1.150 moko 18950: -*) as_fn_error $? "unrecognized option: \`$1'
18951: Try \`$0 --help' for more information." ;;
1.62 paf 18952:
1.150 moko 18953: *) as_fn_append ac_config_targets " $1"
18954: ac_need_defaults=false ;;
1.62 paf 18955:
18956: esac
18957: shift
18958: done
18959:
18960: ac_configure_extra_args=
18961:
18962: if $ac_cs_silent; then
18963: exec 6>/dev/null
1.150 moko 18964: ac_configure_extra_args="$ac_configure_extra_args --silent"
18965: fi
18966:
18967: _ACEOF
18968: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18969: if \$ac_cs_recheck; then
18970: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18971: shift
18972: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18973: CONFIG_SHELL='$SHELL'
18974: export CONFIG_SHELL
18975: exec "\$@"
18976: fi
18977:
18978: _ACEOF
18979: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18980: exec 5>>config.log
18981: {
18982: echo
18983: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18984: ## Running $as_me. ##
18985: _ASBOX
18986: $as_echo "$ac_log"
18987: } >&5
1.62 paf 18988:
18989: _ACEOF
1.150 moko 18990: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 18991: #
1.150 moko 18992: # INIT-COMMANDS
1.1 paf 18993: #
1.62 paf 18994: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18995:
1.128 moko 18996:
18997: # The HP-UX ksh and POSIX shell print the target directory to stdout
18998: # if CDPATH is set.
18999: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19000:
19001: sed_quote_subst='$sed_quote_subst'
19002: double_quote_subst='$double_quote_subst'
19003: delay_variable_subst='$delay_variable_subst'
19004: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19005: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19006: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19007: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19008: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19009: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19010: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19011: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19012: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19013: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19014: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19015: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19016: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19017: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19018: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19019: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19020: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19021: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19022: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19023: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19024: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19025: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19026: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19027: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19028: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19029: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19030: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19031: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19032: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19033: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19034: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19035: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19036: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19037: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19038: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19039: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19040: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19041: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19042: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19043: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19044: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19045: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19046: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19047: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19048: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19049: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19050: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19051: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19052: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19053: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19054: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19055: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19056: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19057: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19058: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19059: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19060: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19061: 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"`'
19062: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19063: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19064: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19065: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19066: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19067: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19068: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19069: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19070: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19071: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19072: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19073: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19074: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19075: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19076: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19077: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19078: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19079: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19080: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19081: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19082: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19083: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19084: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19085: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19086: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19087: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19088: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19089: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19090: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19091: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19092: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19093: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19094: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19095: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19096: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19097: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19098: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19099: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19100: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19101: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19102: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19103: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19104: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19105: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19106: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19107: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19108: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19109: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19110: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19111: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19112: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19113: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19114: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19115: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19116: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19117: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19118: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19119: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19120: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19121: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19122: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19123: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19124: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19125: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19126: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19127: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19128: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19129: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19130: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19131: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19132: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19133: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19134: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19135: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19136: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19137: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19138: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19139: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19140: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19141: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19142: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19143: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19144: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19145: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19146: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19147: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19148: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19149: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19150: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19151: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19152: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19153: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19154: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19155: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19156: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19157: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19158: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19159: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19160: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19161: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19162: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19163: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19164: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19165: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19166: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19167: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19168: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19169: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19170: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19171: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19172: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19173: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19174: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19175: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19176: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19177: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19178: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19179: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19180: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19181: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19182: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19183: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19184: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19185: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19186: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19187: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19188: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19189:
19190: LTCC='$LTCC'
19191: LTCFLAGS='$LTCFLAGS'
19192: compiler='$compiler_DEFAULT'
19193:
19194: # A function that is used when there is no print builtin or printf.
19195: func_fallback_echo ()
19196: {
19197: eval 'cat <<_LTECHO_EOF
19198: \$1
19199: _LTECHO_EOF'
19200: }
19201:
19202: # Quote evaled strings.
19203: for var in AS \
19204: DLLTOOL \
19205: OBJDUMP \
19206: SHELL \
19207: ECHO \
19208: PATH_SEPARATOR \
19209: SED \
19210: GREP \
19211: EGREP \
19212: FGREP \
19213: LD \
19214: NM \
19215: LN_S \
19216: lt_SP2NL \
19217: lt_NL2SP \
19218: reload_flag \
19219: deplibs_check_method \
19220: file_magic_cmd \
19221: file_magic_glob \
19222: want_nocaseglob \
19223: sharedlib_from_linklib_cmd \
19224: AR \
19225: AR_FLAGS \
19226: archiver_list_spec \
19227: STRIP \
19228: RANLIB \
19229: CC \
19230: CFLAGS \
19231: compiler \
19232: lt_cv_sys_global_symbol_pipe \
19233: lt_cv_sys_global_symbol_to_cdecl \
19234: lt_cv_sys_global_symbol_to_c_name_address \
19235: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19236: nm_file_list_spec \
19237: lt_prog_compiler_no_builtin_flag \
19238: lt_prog_compiler_pic \
19239: lt_prog_compiler_wl \
19240: lt_prog_compiler_static \
19241: lt_cv_prog_compiler_c_o \
19242: need_locks \
19243: MANIFEST_TOOL \
19244: DSYMUTIL \
19245: NMEDIT \
19246: LIPO \
19247: OTOOL \
19248: OTOOL64 \
19249: shrext_cmds \
19250: export_dynamic_flag_spec \
19251: whole_archive_flag_spec \
19252: compiler_needs_object \
19253: with_gnu_ld \
19254: allow_undefined_flag \
19255: no_undefined_flag \
19256: hardcode_libdir_flag_spec \
19257: hardcode_libdir_separator \
19258: exclude_expsyms \
19259: include_expsyms \
19260: file_list_spec \
19261: variables_saved_for_relink \
19262: libname_spec \
19263: library_names_spec \
19264: soname_spec \
19265: install_override_mode \
19266: finish_eval \
19267: old_striplib \
19268: striplib \
19269: compiler_lib_search_dirs \
19270: predep_objects \
19271: postdep_objects \
19272: predeps \
19273: postdeps \
19274: compiler_lib_search_path \
19275: LD_CXX \
19276: reload_flag_CXX \
19277: compiler_CXX \
19278: lt_prog_compiler_no_builtin_flag_CXX \
19279: lt_prog_compiler_pic_CXX \
19280: lt_prog_compiler_wl_CXX \
19281: lt_prog_compiler_static_CXX \
19282: lt_cv_prog_compiler_c_o_CXX \
19283: export_dynamic_flag_spec_CXX \
19284: whole_archive_flag_spec_CXX \
19285: compiler_needs_object_CXX \
19286: with_gnu_ld_CXX \
19287: allow_undefined_flag_CXX \
19288: no_undefined_flag_CXX \
19289: hardcode_libdir_flag_spec_CXX \
19290: hardcode_libdir_separator_CXX \
19291: exclude_expsyms_CXX \
19292: include_expsyms_CXX \
19293: file_list_spec_CXX \
19294: compiler_lib_search_dirs_CXX \
19295: predep_objects_CXX \
19296: postdep_objects_CXX \
19297: predeps_CXX \
19298: postdeps_CXX \
19299: compiler_lib_search_path_CXX; do
19300: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19301: *[\\\\\\\`\\"\\\$]*)
19302: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19303: ;;
19304: *)
19305: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19306: ;;
19307: esac
19308: done
19309:
19310: # Double-quote double-evaled strings.
19311: for var in reload_cmds \
19312: old_postinstall_cmds \
19313: old_postuninstall_cmds \
19314: old_archive_cmds \
19315: extract_expsyms_cmds \
19316: old_archive_from_new_cmds \
19317: old_archive_from_expsyms_cmds \
19318: archive_cmds \
19319: archive_expsym_cmds \
19320: module_cmds \
19321: module_expsym_cmds \
19322: export_symbols_cmds \
19323: prelink_cmds \
19324: postlink_cmds \
19325: postinstall_cmds \
19326: postuninstall_cmds \
19327: finish_cmds \
19328: sys_lib_search_path_spec \
19329: sys_lib_dlsearch_path_spec \
19330: reload_cmds_CXX \
19331: old_archive_cmds_CXX \
19332: old_archive_from_new_cmds_CXX \
19333: old_archive_from_expsyms_cmds_CXX \
19334: archive_cmds_CXX \
19335: archive_expsym_cmds_CXX \
19336: module_cmds_CXX \
19337: module_expsym_cmds_CXX \
19338: export_symbols_cmds_CXX \
19339: prelink_cmds_CXX \
19340: postlink_cmds_CXX; do
19341: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19342: *[\\\\\\\`\\"\\\$]*)
19343: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19344: ;;
19345: *)
19346: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19347: ;;
19348: esac
19349: done
19350:
19351: ac_aux_dir='$ac_aux_dir'
19352: xsi_shell='$xsi_shell'
19353: lt_shell_append='$lt_shell_append'
19354:
19355: # See if we are running on zsh, and set the options which allow our
19356: # commands through without removal of \ escapes INIT.
19357: if test -n "\${ZSH_VERSION+set}" ; then
19358: setopt NO_GLOB_SUBST
19359: fi
19360:
19361:
19362: PACKAGE='$PACKAGE'
19363: VERSION='$VERSION'
19364: TIMESTAMP='$TIMESTAMP'
19365: RM='$RM'
19366: ofile='$ofile'
19367:
19368:
19369:
19370:
19371:
19372:
1.62 paf 19373: _ACEOF
19374:
1.150 moko 19375: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19376:
1.150 moko 19377: # Handling of arguments.
1.62 paf 19378: for ac_config_target in $ac_config_targets
1.1 paf 19379: do
1.150 moko 19380: case $ac_config_target in
19381: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19382: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19383: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
19384: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19385: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19386: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
19387: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
19388: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
19389: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
19390: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
19391: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19392: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
19393: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
19394: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
19395: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
19396: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
19397: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
19398: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
19399: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
19400: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
19401: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
19402: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
19403: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
19404: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
19405: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
19406: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
19407: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
19408: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
19409: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
19410: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
19411: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
19412: "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
19413: "bin/auto.p.dist") CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
19414:
19415: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 19416: esac
19417: done
19418:
1.150 moko 19419:
1.62 paf 19420: # If the user did not use the arguments to specify the items to instantiate,
19421: # then the envvar interface is used. Set only those that are not.
19422: # We use the long form for the default assignment because of an extremely
19423: # bizarre bug on SunOS 4.1.3.
19424: if $ac_need_defaults; then
19425: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19426: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19427: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19428: fi
19429:
19430: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 19431: # simply because there is no reason against having it here, and in addition,
1.62 paf 19432: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 19433: # Hook for its removal unless debugging.
19434: # Note that there is a small window in which the directory will not be cleaned:
19435: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 19436: $debug ||
19437: {
1.150 moko 19438: tmp= ac_tmp=
19439: trap 'exit_status=$?
19440: : "${ac_tmp:=$tmp}"
19441: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19442: ' 0
19443: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 19444: }
19445: # Create a (secure) tmp directory for tmp files.
19446:
19447: {
1.150 moko 19448: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19449: test -d "$tmp"
1.62 paf 19450: } ||
19451: {
1.150 moko 19452: tmp=./conf$$-$RANDOM
19453: (umask 077 && mkdir "$tmp")
19454: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19455: ac_tmp=$tmp
19456:
19457: # Set up the scripts for CONFIG_FILES section.
19458: # No need to generate them if there are no CONFIG_FILES.
19459: # This happens for instance with `./config.status config.h'.
19460: if test -n "$CONFIG_FILES"; then
19461:
19462:
19463: ac_cr=`echo X | tr X '\015'`
19464: # On cygwin, bash can eat \r inside `` if the user requested igncr.
19465: # But we know of no other shell where ac_cr would be empty at this
19466: # point, so we can use a bashism as a fallback.
19467: if test "x$ac_cr" = x; then
19468: eval ac_cr=\$\'\\r\'
19469: fi
19470: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19471: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19472: ac_cs_awk_cr='\\r'
19473: else
19474: ac_cs_awk_cr=$ac_cr
19475: fi
19476:
19477: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19478: _ACEOF
19479:
19480:
1.62 paf 19481: {
1.150 moko 19482: echo "cat >conf$$subs.awk <<_ACEOF" &&
19483: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19484: echo "_ACEOF"
19485: } >conf$$subs.sh ||
19486: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19487: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19488: ac_delim='%!_!# '
19489: for ac_last_try in false false false false false :; do
19490: . ./conf$$subs.sh ||
19491: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19492:
19493: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19494: if test $ac_delim_n = $ac_delim_num; then
19495: break
19496: elif $ac_last_try; then
19497: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19498: else
19499: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19500: fi
19501: done
19502: rm -f conf$$subs.sh
19503:
19504: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19505: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19506: _ACEOF
19507: sed -n '
19508: h
19509: s/^/S["/; s/!.*/"]=/
19510: p
19511: g
19512: s/^[^!]*!//
19513: :repl
19514: t repl
19515: s/'"$ac_delim"'$//
19516: t delim
19517: :nl
19518: h
19519: s/\(.\{148\}\)..*/\1/
19520: t more1
19521: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19522: p
19523: n
19524: b repl
19525: :more1
19526: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19527: p
19528: g
19529: s/.\{148\}//
19530: t nl
19531: :delim
19532: h
19533: s/\(.\{148\}\)..*/\1/
19534: t more2
19535: s/["\\]/\\&/g; s/^/"/; s/$/"/
19536: p
19537: b
19538: :more2
19539: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19540: p
19541: g
19542: s/.\{148\}//
19543: t delim
19544: ' <conf$$subs.awk | sed '
19545: /^[^""]/{
19546: N
19547: s/\n//
19548: }
19549: ' >>$CONFIG_STATUS || ac_write_fail=1
19550: rm -f conf$$subs.awk
19551: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19552: _ACAWK
19553: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19554: for (key in S) S_is_set[key] = 1
19555: FS = ""
19556:
19557: }
19558: {
19559: line = $ 0
19560: nfields = split(line, field, "@")
19561: substed = 0
19562: len = length(field[1])
19563: for (i = 2; i < nfields; i++) {
19564: key = field[i]
19565: keylen = length(key)
19566: if (S_is_set[key]) {
19567: value = S[key]
19568: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19569: len += length(value) + length(field[++i])
19570: substed = 1
19571: } else
19572: len += 1 + keylen
19573: }
19574:
19575: print line
1.62 paf 19576: }
19577:
1.150 moko 19578: _ACAWK
19579: _ACEOF
19580: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19581: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19582: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19583: else
19584: cat
19585: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19586: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 19587: _ACEOF
1.1 paf 19588:
1.150 moko 19589: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19590: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19591: # trailing colons and then remove the whole line if VPATH becomes empty
19592: # (actually we leave an empty line to preserve line numbers).
19593: if test "x$srcdir" = x.; then
19594: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19595: h
19596: s///
19597: s/^/:/
19598: s/[ ]*$/:/
19599: s/:\$(srcdir):/:/g
19600: s/:\${srcdir}:/:/g
19601: s/:@srcdir@:/:/g
19602: s/^:*//
19603: s/:*$//
19604: x
19605: s/\(=[ ]*\).*/\1/
19606: G
19607: s/\n//
19608: s/^[^=]*=[ ]*$//
19609: }'
19610: fi
1.62 paf 19611:
1.150 moko 19612: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19613: fi # test -n "$CONFIG_FILES"
1.1 paf 19614:
1.150 moko 19615: # Set up the scripts for CONFIG_HEADERS section.
19616: # No need to generate them if there are no CONFIG_HEADERS.
19617: # This happens for instance with `./config.status Makefile'.
19618: if test -n "$CONFIG_HEADERS"; then
19619: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19620: BEGIN {
19621: _ACEOF
19622:
19623: # Transform confdefs.h into an awk script `defines.awk', embedded as
19624: # here-document in config.status, that substitutes the proper values into
19625: # config.h.in to produce config.h.
19626:
19627: # Create a delimiter string that does not exist in confdefs.h, to ease
19628: # handling of long lines.
19629: ac_delim='%!_!# '
19630: for ac_last_try in false false :; do
19631: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19632: if test -z "$ac_tt"; then
19633: break
19634: elif $ac_last_try; then
19635: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19636: else
19637: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 19638: fi
1.150 moko 19639: done
1.1 paf 19640:
1.150 moko 19641: # For the awk script, D is an array of macro values keyed by name,
19642: # likewise P contains macro parameters if any. Preserve backslash
19643: # newline sequences.
19644:
19645: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19646: sed -n '
19647: s/.\{148\}/&'"$ac_delim"'/g
19648: t rset
19649: :rset
19650: s/^[ ]*#[ ]*define[ ][ ]*/ /
19651: t def
19652: d
19653: :def
19654: s/\\$//
19655: t bsnl
19656: s/["\\]/\\&/g
19657: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19658: D["\1"]=" \3"/p
19659: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19660: d
19661: :bsnl
19662: s/["\\]/\\&/g
19663: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19664: D["\1"]=" \3\\\\\\n"\\/p
19665: t cont
19666: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19667: t cont
19668: d
19669: :cont
19670: n
19671: s/.\{148\}/&'"$ac_delim"'/g
19672: t clear
19673: :clear
19674: s/\\$//
19675: t bsnlc
19676: s/["\\]/\\&/g; s/^/"/; s/$/"/p
19677: d
19678: :bsnlc
19679: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19680: b cont
19681: ' <confdefs.h | sed '
19682: s/'"$ac_delim"'/"\\\
19683: "/g' >>$CONFIG_STATUS || ac_write_fail=1
19684:
19685: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19686: for (key in D) D_is_set[key] = 1
19687: FS = ""
19688: }
19689: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19690: line = \$ 0
19691: split(line, arg, " ")
19692: if (arg[1] == "#") {
19693: defundef = arg[2]
19694: mac1 = arg[3]
19695: } else {
19696: defundef = substr(arg[1], 2)
19697: mac1 = arg[2]
19698: }
19699: split(mac1, mac2, "(") #)
19700: macro = mac2[1]
19701: prefix = substr(line, 1, index(line, defundef) - 1)
19702: if (D_is_set[macro]) {
19703: # Preserve the white space surrounding the "#".
19704: print prefix "define", macro P[macro] D[macro]
19705: next
19706: } else {
19707: # Replace #undef with comments. This is necessary, for example,
19708: # in the case of _POSIX_SOURCE, which is predefined and required
19709: # on some systems where configure will not decide to define it.
19710: if (defundef == "undef") {
19711: print "/*", prefix defundef, macro, "*/"
19712: next
19713: }
19714: }
19715: }
19716: { print }
19717: _ACAWK
1.62 paf 19718: _ACEOF
1.150 moko 19719: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19720: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19721: fi # test -n "$CONFIG_HEADERS"
19722:
19723:
19724: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19725: shift
19726: for ac_tag
19727: do
19728: case $ac_tag in
19729: :[FHLC]) ac_mode=$ac_tag; continue;;
19730: esac
19731: case $ac_mode$ac_tag in
19732: :[FHL]*:*);;
19733: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19734: :[FH]-) ac_tag=-:-;;
19735: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19736: esac
19737: ac_save_IFS=$IFS
19738: IFS=:
19739: set x $ac_tag
19740: IFS=$ac_save_IFS
19741: shift
19742: ac_file=$1
19743: shift
19744:
19745: case $ac_mode in
19746: :L) ac_source=$1;;
19747: :[FH])
19748: ac_file_inputs=
19749: for ac_f
19750: do
19751: case $ac_f in
19752: -) ac_f="$ac_tmp/stdin";;
19753: *) # Look for the file first in the build tree, then in the source tree
19754: # (if the path is not absolute). The absolute path cannot be DOS-style,
19755: # because $ac_f cannot contain `:'.
19756: test -f "$ac_f" ||
19757: case $ac_f in
19758: [\\/$]*) false;;
19759: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19760: esac ||
19761: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19762: esac
19763: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19764: as_fn_append ac_file_inputs " '$ac_f'"
19765: done
19766:
19767: # Let's still pretend it is `configure' which instantiates (i.e., don't
19768: # use $as_me), people would be surprised to read:
19769: # /* config.h. Generated by config.status. */
19770: configure_input='Generated from '`
19771: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19772: `' by configure.'
19773: if test x"$ac_file" != x-; then
19774: configure_input="$ac_file. $configure_input"
19775: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19776: $as_echo "$as_me: creating $ac_file" >&6;}
19777: fi
19778: # Neutralize special characters interpreted by sed in replacement strings.
19779: case $configure_input in #(
19780: *\&* | *\|* | *\\* )
19781: ac_sed_conf_input=`$as_echo "$configure_input" |
19782: sed 's/[\\\\&|]/\\\\&/g'`;; #(
19783: *) ac_sed_conf_input=$configure_input;;
19784: esac
19785:
19786: case $ac_tag in
19787: *:-:* | *:-) cat >"$ac_tmp/stdin" \
19788: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19789: esac
19790: ;;
1.1 paf 19791: esac
19792:
1.150 moko 19793: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 19794: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 19795: X"$ac_file" : 'X\(//\)[^/]' \| \
19796: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 19797: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19798: $as_echo X"$ac_file" |
19799: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19800: s//\1/
19801: q
19802: }
19803: /^X\(\/\/\)[^/].*/{
19804: s//\1/
19805: q
19806: }
19807: /^X\(\/\/\)$/{
19808: s//\1/
19809: q
19810: }
19811: /^X\(\/\).*/{
19812: s//\1/
19813: q
19814: }
19815: s/.*/./; q'`
19816: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 19817: ac_builddir=.
19818:
1.150 moko 19819: case "$ac_dir" in
19820: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19821: *)
19822: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19823: # A ".." for each directory in $ac_dir_suffix.
19824: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19825: case $ac_top_builddir_sub in
19826: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19827: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19828: esac ;;
19829: esac
19830: ac_abs_top_builddir=$ac_pwd
19831: ac_abs_builddir=$ac_pwd$ac_dir_suffix
19832: # for backward compatibility:
19833: ac_top_builddir=$ac_top_build_prefix
1.62 paf 19834:
19835: case $srcdir in
1.150 moko 19836: .) # We are building in place.
1.62 paf 19837: ac_srcdir=.
1.150 moko 19838: ac_top_srcdir=$ac_top_builddir_sub
19839: ac_abs_top_srcdir=$ac_pwd ;;
19840: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 19841: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 19842: ac_top_srcdir=$srcdir
19843: ac_abs_top_srcdir=$srcdir ;;
19844: *) # Relative name.
19845: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19846: ac_top_srcdir=$ac_top_build_prefix$srcdir
19847: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 19848: esac
1.150 moko 19849: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 19850:
1.62 paf 19851:
1.150 moko 19852: case $ac_mode in
19853: :F)
19854: #
19855: # CONFIG_FILE
19856: #
1.1 paf 19857:
1.62 paf 19858: case $INSTALL in
19859: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 19860: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 19861: esac
1.150 moko 19862: ac_MKDIR_P=$MKDIR_P
19863: case $MKDIR_P in
19864: [\\/$]* | ?:[\\/]* ) ;;
19865: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19866: esac
19867: _ACEOF
1.1 paf 19868:
1.150 moko 19869: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870: # If the template does not know about datarootdir, expand it.
19871: # FIXME: This hack should be removed a few years after 2.60.
19872: ac_datarootdir_hack=; ac_datarootdir_seen=
19873: ac_sed_dataroot='
19874: /datarootdir/ {
19875: p
19876: q
19877: }
19878: /@datadir@/p
19879: /@docdir@/p
19880: /@infodir@/p
19881: /@localedir@/p
19882: /@mandir@/p'
19883: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19884: *datarootdir*) ac_datarootdir_seen=yes;;
19885: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19886: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19887: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19888: _ACEOF
19889: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19890: ac_datarootdir_hack='
19891: s&@datadir@&$datadir&g
19892: s&@docdir@&$docdir&g
19893: s&@infodir@&$infodir&g
19894: s&@localedir@&$localedir&g
19895: s&@mandir@&$mandir&g
19896: s&\\\${datarootdir}&$datarootdir&g' ;;
19897: esac
19898: _ACEOF
1.62 paf 19899:
1.150 moko 19900: # Neutralize VPATH when `$srcdir' = `.'.
19901: # Shell code in configure.ac might set extrasub.
19902: # FIXME: do we really want to maintain this feature?
19903: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19904: ac_sed_extra="$ac_vpsub
1.62 paf 19905: $extrasub
19906: _ACEOF
1.150 moko 19907: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19908: :t
19909: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 19910: s|@configure_input@|$ac_sed_conf_input|;t t
19911: s&@top_builddir@&$ac_top_builddir_sub&;t t
19912: s&@top_build_prefix@&$ac_top_build_prefix&;t t
19913: s&@srcdir@&$ac_srcdir&;t t
19914: s&@abs_srcdir@&$ac_abs_srcdir&;t t
19915: s&@top_srcdir@&$ac_top_srcdir&;t t
19916: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19917: s&@builddir@&$ac_builddir&;t t
19918: s&@abs_builddir@&$ac_abs_builddir&;t t
19919: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19920: s&@INSTALL@&$ac_INSTALL&;t t
19921: s&@MKDIR_P@&$ac_MKDIR_P&;t t
19922: $ac_datarootdir_hack
19923: "
19924: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19925: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19926:
19927: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19928: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19929: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19930: "$ac_tmp/out"`; test -z "$ac_out"; } &&
19931: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19932: which seems to be undefined. Please make sure it is defined" >&5
19933: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19934: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 19935:
1.150 moko 19936: rm -f "$ac_tmp/stdin"
1.62 paf 19937: case $ac_file in
1.150 moko 19938: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19939: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19940: esac \
19941: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19942: ;;
19943: :H)
19944: #
19945: # CONFIG_HEADER
19946: #
1.62 paf 19947: if test x"$ac_file" != x-; then
1.150 moko 19948: {
19949: $as_echo "/* $configure_input */" \
19950: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19951: } >"$ac_tmp/config.h" \
19952: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19953: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19954: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19955: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 19956: else
1.150 moko 19957: rm -f "$ac_file"
19958: mv "$ac_tmp/config.h" "$ac_file" \
19959: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 19960: fi
19961: else
1.150 moko 19962: $as_echo "/* $configure_input */" \
19963: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19964: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 19965: fi
1.150 moko 19966: # Compute "$ac_file"'s index in $config_headers.
19967: _am_arg="$ac_file"
1.86 paf 19968: _am_stamp_count=1
19969: for _am_header in $config_headers :; do
19970: case $_am_header in
1.150 moko 19971: $_am_arg | $_am_arg:* )
1.86 paf 19972: break ;;
19973: * )
19974: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19975: esac
19976: done
1.150 moko 19977: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19978: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19979: X"$_am_arg" : 'X\(//\)[^/]' \| \
19980: X"$_am_arg" : 'X\(//\)$' \| \
19981: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19982: $as_echo X"$_am_arg" |
19983: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19984: s//\1/
19985: q
19986: }
19987: /^X\(\/\/\)[^/].*/{
19988: s//\1/
19989: q
19990: }
19991: /^X\(\/\/\)$/{
19992: s//\1/
19993: q
19994: }
19995: /^X\(\/\).*/{
19996: s//\1/
19997: q
19998: }
19999: s/.*/./; q'`/stamp-h$_am_stamp_count
20000: ;;
1.62 paf 20001:
1.150 moko 20002: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20003: $as_echo "$as_me: executing $ac_file commands" >&6;}
20004: ;;
20005: esac
1.86 paf 20006:
1.62 paf 20007:
1.150 moko 20008: case $ac_file$ac_mode in
20009: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20010: # Autoconf 2.62 quotes --file arguments for eval, but not when files
20011: # are listed without --file. Let's play safe and only enable the eval
20012: # if we detect the quoting.
20013: case $CONFIG_FILES in
20014: *\'*) eval set x "$CONFIG_FILES" ;;
20015: *) set x $CONFIG_FILES ;;
20016: esac
20017: shift
20018: for mf
20019: do
20020: # Strip MF so we end up with the name of the file.
20021: mf=`echo "$mf" | sed -e 's/:.*$//'`
20022: # Check whether this is an Automake generated Makefile or not.
20023: # We used to match only the files named `Makefile.in', but
20024: # some people rename them; so instead we look at the file content.
20025: # Grep'ing the first line is not enough: some people post-process
20026: # each Makefile.in and add a new line on top of each file to say so.
20027: # Grep'ing the whole file is not good either: AIX grep has a line
20028: # limit of 2048, but all sed's we know have understand at least 4000.
20029: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20030: dirpart=`$as_dirname -- "$mf" ||
1.62 paf 20031: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20032: X"$mf" : 'X\(//\)[^/]' \| \
20033: X"$mf" : 'X\(//\)$' \| \
1.150 moko 20034: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20035: $as_echo X"$mf" |
20036: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20037: s//\1/
20038: q
20039: }
20040: /^X\(\/\/\)[^/].*/{
20041: s//\1/
20042: q
20043: }
20044: /^X\(\/\/\)$/{
20045: s//\1/
20046: q
20047: }
20048: /^X\(\/\).*/{
20049: s//\1/
20050: q
20051: }
20052: s/.*/./; q'`
20053: else
20054: continue
20055: fi
20056: # Extract the definition of DEPDIR, am__include, and am__quote
20057: # from the Makefile without running `make'.
20058: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20059: test -z "$DEPDIR" && continue
20060: am__include=`sed -n 's/^am__include = //p' < "$mf"`
20061: test -z "am__include" && continue
20062: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20063: # When using ansi2knr, U may be empty or an underscore; expand it
20064: U=`sed -n 's/^U = //p' < "$mf"`
20065: # Find all dependency output files, they are included files with
20066: # $(DEPDIR) in their names. We invoke sed twice because it is the
20067: # simplest approach to changing $(DEPDIR) to its actual value in the
20068: # expansion.
20069: for file in `sed -n "
20070: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20071: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20072: # Make sure the directory exists.
20073: test -f "$dirpart/$file" && continue
20074: fdir=`$as_dirname -- "$file" ||
1.62 paf 20075: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20076: X"$file" : 'X\(//\)[^/]' \| \
20077: X"$file" : 'X\(//\)$' \| \
1.150 moko 20078: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20079: $as_echo X"$file" |
20080: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20081: s//\1/
20082: q
20083: }
20084: /^X\(\/\/\)[^/].*/{
20085: s//\1/
20086: q
20087: }
20088: /^X\(\/\/\)$/{
20089: s//\1/
20090: q
20091: }
20092: /^X\(\/\).*/{
20093: s//\1/
20094: q
20095: }
20096: s/.*/./; q'`
20097: as_dir=$dirpart/$fdir; as_fn_mkdir_p
20098: # echo "creating $dirpart/$file"
20099: echo '# dummy' > "$dirpart/$file"
1.62 paf 20100: done
20101: done
1.150 moko 20102: }
1.62 paf 20103: ;;
1.150 moko 20104: "libtool":C)
1.128 moko 20105:
20106: # See if we are running on zsh, and set the options which allow our
20107: # commands through without removal of \ escapes.
20108: if test -n "${ZSH_VERSION+set}" ; then
20109: setopt NO_GLOB_SUBST
20110: fi
20111:
20112: cfgfile="${ofile}T"
20113: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20114: $RM "$cfgfile"
20115:
20116: cat <<_LT_EOF >> "$cfgfile"
20117: #! $SHELL
20118:
20119: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20120: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20121: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20122: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20123: #
20124: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20125: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20126: # Foundation, Inc.
20127: # Written by Gordon Matzigkeit, 1996
20128: #
20129: # This file is part of GNU Libtool.
20130: #
20131: # GNU Libtool is free software; you can redistribute it and/or
20132: # modify it under the terms of the GNU General Public License as
20133: # published by the Free Software Foundation; either version 2 of
20134: # the License, or (at your option) any later version.
20135: #
20136: # As a special exception to the GNU General Public License,
20137: # if you distribute this file as part of a program or library that
20138: # is built using GNU Libtool, you may include this file under the
20139: # same distribution terms that you use for the rest of that program.
20140: #
20141: # GNU Libtool is distributed in the hope that it will be useful,
20142: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20143: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20144: # GNU General Public License for more details.
20145: #
20146: # You should have received a copy of the GNU General Public License
20147: # along with GNU Libtool; see the file COPYING. If not, a copy
20148: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20149: # obtained by writing to the Free Software Foundation, Inc.,
20150: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20151:
20152:
20153: # The names of the tagged configurations supported by this script.
20154: available_tags="CXX "
20155:
20156: # ### BEGIN LIBTOOL CONFIG
20157:
20158: # Which release of libtool.m4 was used?
20159: macro_version=$macro_version
20160: macro_revision=$macro_revision
20161:
20162: # Assembler program.
20163: AS=$lt_AS
20164:
20165: # DLL creation program.
20166: DLLTOOL=$lt_DLLTOOL
20167:
20168: # Object dumper program.
20169: OBJDUMP=$lt_OBJDUMP
20170:
1.145 moko 20171: # What type of objects to build.
20172: pic_mode=$pic_mode
20173:
1.128 moko 20174: # Whether or not to build shared libraries.
20175: build_libtool_libs=$enable_shared
20176:
1.138 moko 20177: # Whether or not to build static libraries.
20178: build_old_libs=$enable_static
20179:
1.128 moko 20180: # Whether or not to optimize for fast installation.
20181: fast_install=$enable_fast_install
20182:
20183: # Shell to use when invoking shell scripts.
20184: SHELL=$lt_SHELL
20185:
20186: # An echo program that protects backslashes.
20187: ECHO=$lt_ECHO
20188:
20189: # The PATH separator for the build system.
20190: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20191:
20192: # The host system.
20193: host_alias=$host_alias
20194: host=$host
20195: host_os=$host_os
20196:
20197: # The build system.
20198: build_alias=$build_alias
20199: build=$build
20200: build_os=$build_os
20201:
20202: # A sed program that does not truncate output.
20203: SED=$lt_SED
20204:
20205: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20206: Xsed="\$SED -e 1s/^X//"
20207:
20208: # A grep program that handles long lines.
20209: GREP=$lt_GREP
20210:
20211: # An ERE matcher.
20212: EGREP=$lt_EGREP
20213:
20214: # A literal string matcher.
20215: FGREP=$lt_FGREP
20216:
20217: # A BSD- or MS-compatible name lister.
20218: NM=$lt_NM
20219:
20220: # Whether we need soft or hard links.
20221: LN_S=$lt_LN_S
20222:
20223: # What is the maximum length of a command?
20224: max_cmd_len=$max_cmd_len
20225:
20226: # Object file suffix (normally "o").
20227: objext=$ac_objext
20228:
20229: # Executable file suffix (normally "").
20230: exeext=$exeext
20231:
20232: # whether the shell understands "unset".
20233: lt_unset=$lt_unset
20234:
20235: # turn spaces into newlines.
20236: SP2NL=$lt_lt_SP2NL
20237:
20238: # turn newlines into spaces.
20239: NL2SP=$lt_lt_NL2SP
20240:
20241: # convert \$build file names to \$host format.
20242: to_host_file_cmd=$lt_cv_to_host_file_cmd
20243:
20244: # convert \$build files to toolchain format.
20245: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20246:
20247: # Method to check whether dependent libraries are shared objects.
20248: deplibs_check_method=$lt_deplibs_check_method
20249:
20250: # Command to use when deplibs_check_method = "file_magic".
20251: file_magic_cmd=$lt_file_magic_cmd
20252:
20253: # How to find potential files when deplibs_check_method = "file_magic".
20254: file_magic_glob=$lt_file_magic_glob
20255:
20256: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20257: want_nocaseglob=$lt_want_nocaseglob
20258:
20259: # Command to associate shared and link libraries.
20260: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20261:
20262: # The archiver.
20263: AR=$lt_AR
20264:
20265: # Flags to create an archive.
20266: AR_FLAGS=$lt_AR_FLAGS
20267:
20268: # How to feed a file listing to the archiver.
20269: archiver_list_spec=$lt_archiver_list_spec
20270:
20271: # A symbol stripping program.
20272: STRIP=$lt_STRIP
20273:
20274: # Commands used to install an old-style archive.
20275: RANLIB=$lt_RANLIB
20276: old_postinstall_cmds=$lt_old_postinstall_cmds
20277: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20278:
20279: # Whether to use a lock for old archive extraction.
20280: lock_old_archive_extraction=$lock_old_archive_extraction
20281:
20282: # A C compiler.
20283: LTCC=$lt_CC
20284:
20285: # LTCC compiler flags.
20286: LTCFLAGS=$lt_CFLAGS
20287:
20288: # Take the output of nm and produce a listing of raw symbols and C names.
20289: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20290:
20291: # Transform the output of nm in a proper C declaration.
20292: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20293:
20294: # Transform the output of nm in a C name address pair.
20295: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20296:
20297: # Transform the output of nm in a C name address pair when lib prefix is needed.
20298: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20299:
20300: # Specify filename containing input files for \$NM.
20301: nm_file_list_spec=$lt_nm_file_list_spec
20302:
20303: # The root where to search for dependent libraries,and in which our libraries should be installed.
20304: lt_sysroot=$lt_sysroot
20305:
20306: # The name of the directory that contains temporary libtool files.
20307: objdir=$objdir
20308:
20309: # Used to examine libraries when file_magic_cmd begins with "file".
20310: MAGIC_CMD=$MAGIC_CMD
20311:
20312: # Must we lock files when doing compilation?
20313: need_locks=$lt_need_locks
20314:
20315: # Manifest tool.
20316: MANIFEST_TOOL=$lt_MANIFEST_TOOL
20317:
20318: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20319: DSYMUTIL=$lt_DSYMUTIL
20320:
20321: # Tool to change global to local symbols on Mac OS X.
20322: NMEDIT=$lt_NMEDIT
20323:
20324: # Tool to manipulate fat objects and archives on Mac OS X.
20325: LIPO=$lt_LIPO
20326:
20327: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20328: OTOOL=$lt_OTOOL
20329:
20330: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20331: OTOOL64=$lt_OTOOL64
20332:
20333: # Old archive suffix (normally "a").
20334: libext=$libext
20335:
20336: # Shared library suffix (normally ".so").
20337: shrext_cmds=$lt_shrext_cmds
20338:
20339: # The commands to extract the exported symbol list from a shared archive.
20340: extract_expsyms_cmds=$lt_extract_expsyms_cmds
20341:
20342: # Variables whose values should be saved in libtool wrapper scripts and
20343: # restored at link time.
20344: variables_saved_for_relink=$lt_variables_saved_for_relink
20345:
20346: # Do we need the "lib" prefix for modules?
20347: need_lib_prefix=$need_lib_prefix
20348:
20349: # Do we need a version for libraries?
20350: need_version=$need_version
20351:
20352: # Library versioning type.
20353: version_type=$version_type
20354:
20355: # Shared library runtime path variable.
20356: runpath_var=$runpath_var
20357:
20358: # Shared library path variable.
20359: shlibpath_var=$shlibpath_var
20360:
20361: # Is shlibpath searched before the hard-coded library search path?
20362: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20363:
20364: # Format of library name prefix.
20365: libname_spec=$lt_libname_spec
20366:
20367: # List of archive names. First name is the real one, the rest are links.
20368: # The last name is the one that the linker finds with -lNAME
20369: library_names_spec=$lt_library_names_spec
20370:
20371: # The coded name of the library, if different from the real name.
20372: soname_spec=$lt_soname_spec
20373:
20374: # Permission mode override for installation of shared libraries.
20375: install_override_mode=$lt_install_override_mode
20376:
20377: # Command to use after installation of a shared archive.
20378: postinstall_cmds=$lt_postinstall_cmds
20379:
20380: # Command to use after uninstallation of a shared archive.
20381: postuninstall_cmds=$lt_postuninstall_cmds
20382:
20383: # Commands used to finish a libtool library installation in a directory.
20384: finish_cmds=$lt_finish_cmds
20385:
20386: # As "finish_cmds", except a single script fragment to be evaled but
20387: # not shown.
20388: finish_eval=$lt_finish_eval
20389:
20390: # Whether we should hardcode library paths into libraries.
20391: hardcode_into_libs=$hardcode_into_libs
20392:
20393: # Compile-time system search path for libraries.
20394: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20395:
20396: # Run-time system search path for libraries.
20397: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20398:
20399: # Whether dlopen is supported.
20400: dlopen_support=$enable_dlopen
20401:
20402: # Whether dlopen of programs is supported.
20403: dlopen_self=$enable_dlopen_self
20404:
20405: # Whether dlopen of statically linked programs is supported.
20406: dlopen_self_static=$enable_dlopen_self_static
20407:
20408: # Commands to strip libraries.
20409: old_striplib=$lt_old_striplib
20410: striplib=$lt_striplib
20411:
20412:
20413: # The linker used to build libraries.
20414: LD=$lt_LD
20415:
20416: # How to create reloadable object files.
20417: reload_flag=$lt_reload_flag
20418: reload_cmds=$lt_reload_cmds
20419:
20420: # Commands used to build an old-style archive.
20421: old_archive_cmds=$lt_old_archive_cmds
20422:
20423: # A language specific compiler.
20424: CC=$lt_compiler
20425:
20426: # Is the compiler the GNU compiler?
20427: with_gcc=$GCC
20428:
20429: # Compiler flag to turn off builtin functions.
20430: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20431:
20432: # Additional compiler flags for building library objects.
20433: pic_flag=$lt_lt_prog_compiler_pic
20434:
20435: # How to pass a linker flag through the compiler.
20436: wl=$lt_lt_prog_compiler_wl
20437:
20438: # Compiler flag to prevent dynamic linking.
20439: link_static_flag=$lt_lt_prog_compiler_static
20440:
20441: # Does compiler simultaneously support -c and -o options?
20442: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20443:
20444: # Whether or not to add -lc for building shared libraries.
20445: build_libtool_need_lc=$archive_cmds_need_lc
20446:
20447: # Whether or not to disallow shared libs when runtime libs are static.
20448: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20449:
20450: # Compiler flag to allow reflexive dlopens.
20451: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20452:
20453: # Compiler flag to generate shared objects directly from archives.
20454: whole_archive_flag_spec=$lt_whole_archive_flag_spec
20455:
20456: # Whether the compiler copes with passing no objects directly.
20457: compiler_needs_object=$lt_compiler_needs_object
20458:
20459: # Create an old-style archive from a shared archive.
20460: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20461:
20462: # Create a temporary old-style archive to link instead of a shared archive.
20463: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20464:
20465: # Commands used to build a shared archive.
20466: archive_cmds=$lt_archive_cmds
20467: archive_expsym_cmds=$lt_archive_expsym_cmds
20468:
20469: # Commands used to build a loadable module if different from building
20470: # a shared archive.
20471: module_cmds=$lt_module_cmds
20472: module_expsym_cmds=$lt_module_expsym_cmds
20473:
20474: # Whether we are building with GNU ld or not.
20475: with_gnu_ld=$lt_with_gnu_ld
20476:
20477: # Flag that allows shared libraries with undefined symbols to be built.
20478: allow_undefined_flag=$lt_allow_undefined_flag
20479:
20480: # Flag that enforces no undefined symbols.
20481: no_undefined_flag=$lt_no_undefined_flag
20482:
20483: # Flag to hardcode \$libdir into a binary during linking.
20484: # This must work even if \$libdir does not exist
20485: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20486:
20487: # Whether we need a single "-rpath" flag with a separated argument.
20488: hardcode_libdir_separator=$lt_hardcode_libdir_separator
20489:
20490: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20491: # DIR into the resulting binary.
20492: hardcode_direct=$hardcode_direct
20493:
20494: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20495: # DIR into the resulting binary and the resulting library dependency is
20496: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20497: # library is relocated.
20498: hardcode_direct_absolute=$hardcode_direct_absolute
20499:
20500: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20501: # into the resulting binary.
20502: hardcode_minus_L=$hardcode_minus_L
20503:
20504: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20505: # into the resulting binary.
20506: hardcode_shlibpath_var=$hardcode_shlibpath_var
20507:
20508: # Set to "yes" if building a shared library automatically hardcodes DIR
20509: # into the library and all subsequent libraries and executables linked
20510: # against it.
20511: hardcode_automatic=$hardcode_automatic
20512:
20513: # Set to yes if linker adds runtime paths of dependent libraries
20514: # to runtime path list.
20515: inherit_rpath=$inherit_rpath
20516:
20517: # Whether libtool must link a program against all its dependency libraries.
20518: link_all_deplibs=$link_all_deplibs
20519:
20520: # Set to "yes" if exported symbols are required.
20521: always_export_symbols=$always_export_symbols
20522:
20523: # The commands to list exported symbols.
20524: export_symbols_cmds=$lt_export_symbols_cmds
20525:
20526: # Symbols that should not be listed in the preloaded symbols.
20527: exclude_expsyms=$lt_exclude_expsyms
20528:
20529: # Symbols that must always be exported.
20530: include_expsyms=$lt_include_expsyms
20531:
20532: # Commands necessary for linking programs (against libraries) with templates.
20533: prelink_cmds=$lt_prelink_cmds
20534:
20535: # Commands necessary for finishing linking programs.
20536: postlink_cmds=$lt_postlink_cmds
20537:
20538: # Specify filename containing input files.
20539: file_list_spec=$lt_file_list_spec
20540:
20541: # How to hardcode a shared library path into an executable.
20542: hardcode_action=$hardcode_action
20543:
20544: # The directories searched by this compiler when creating a shared library.
20545: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20546:
20547: # Dependencies to place before and after the objects being linked to
20548: # create a shared library.
20549: predep_objects=$lt_predep_objects
20550: postdep_objects=$lt_postdep_objects
20551: predeps=$lt_predeps
20552: postdeps=$lt_postdeps
20553:
20554: # The library search path used internally by the compiler when linking
20555: # a shared library.
20556: compiler_lib_search_path=$lt_compiler_lib_search_path
20557:
20558: # ### END LIBTOOL CONFIG
20559:
20560: _LT_EOF
20561:
20562: case $host_os in
20563: aix3*)
20564: cat <<\_LT_EOF >> "$cfgfile"
20565: # AIX sometimes has problems with the GCC collect2 program. For some
20566: # reason, if we set the COLLECT_NAMES environment variable, the problems
20567: # vanish in a puff of smoke.
20568: if test "X${COLLECT_NAMES+set}" != Xset; then
20569: COLLECT_NAMES=
20570: export COLLECT_NAMES
20571: fi
20572: _LT_EOF
20573: ;;
20574: esac
20575:
20576:
20577: ltmain="$ac_aux_dir/ltmain.sh"
20578:
20579:
20580: # We use sed instead of cat because bash on DJGPP gets confused if
20581: # if finds mixed CR/LF and LF-only lines. Since sed operates in
20582: # text mode, it properly converts lines to CR/LF. This bash problem
20583: # is reportedly fixed, but why not run on old versions too?
20584: sed '$q' "$ltmain" >> "$cfgfile" \
20585: || (rm -f "$cfgfile"; exit 1)
20586:
20587: if test x"$xsi_shell" = xyes; then
20588: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20589: func_dirname ()\
20590: {\
20591: \ case ${1} in\
20592: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20593: \ * ) func_dirname_result="${3}" ;;\
20594: \ esac\
20595: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20596: && mv -f "$cfgfile.tmp" "$cfgfile" \
20597: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20598: test 0 -eq $? || _lt_function_replace_fail=:
20599:
20600:
20601: sed -e '/^func_basename ()$/,/^} # func_basename /c\
20602: func_basename ()\
20603: {\
20604: \ func_basename_result="${1##*/}"\
20605: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20606: && mv -f "$cfgfile.tmp" "$cfgfile" \
20607: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20608: test 0 -eq $? || _lt_function_replace_fail=:
20609:
20610:
20611: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20612: func_dirname_and_basename ()\
20613: {\
20614: \ case ${1} in\
20615: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20616: \ * ) func_dirname_result="${3}" ;;\
20617: \ esac\
20618: \ func_basename_result="${1##*/}"\
20619: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20620: && mv -f "$cfgfile.tmp" "$cfgfile" \
20621: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20622: test 0 -eq $? || _lt_function_replace_fail=:
20623:
20624:
20625: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20626: func_stripname ()\
20627: {\
20628: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20629: \ # positional parameters, so assign one to ordinary parameter first.\
20630: \ func_stripname_result=${3}\
20631: \ func_stripname_result=${func_stripname_result#"${1}"}\
20632: \ func_stripname_result=${func_stripname_result%"${2}"}\
20633: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20634: && mv -f "$cfgfile.tmp" "$cfgfile" \
20635: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20636: test 0 -eq $? || _lt_function_replace_fail=:
20637:
20638:
20639: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20640: func_split_long_opt ()\
20641: {\
20642: \ func_split_long_opt_name=${1%%=*}\
20643: \ func_split_long_opt_arg=${1#*=}\
20644: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20645: && mv -f "$cfgfile.tmp" "$cfgfile" \
20646: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20647: test 0 -eq $? || _lt_function_replace_fail=:
20648:
20649:
20650: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20651: func_split_short_opt ()\
20652: {\
20653: \ func_split_short_opt_arg=${1#??}\
20654: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20655: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20656: && mv -f "$cfgfile.tmp" "$cfgfile" \
20657: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20658: test 0 -eq $? || _lt_function_replace_fail=:
20659:
20660:
20661: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20662: func_lo2o ()\
20663: {\
20664: \ case ${1} in\
20665: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20666: \ *) func_lo2o_result=${1} ;;\
20667: \ esac\
20668: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20669: && mv -f "$cfgfile.tmp" "$cfgfile" \
20670: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20671: test 0 -eq $? || _lt_function_replace_fail=:
20672:
20673:
20674: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20675: func_xform ()\
20676: {\
20677: func_xform_result=${1%.*}.lo\
20678: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20679: && mv -f "$cfgfile.tmp" "$cfgfile" \
20680: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20681: test 0 -eq $? || _lt_function_replace_fail=:
20682:
20683:
20684: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20685: func_arith ()\
20686: {\
20687: func_arith_result=$(( $* ))\
20688: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20689: && mv -f "$cfgfile.tmp" "$cfgfile" \
20690: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20691: test 0 -eq $? || _lt_function_replace_fail=:
20692:
20693:
20694: sed -e '/^func_len ()$/,/^} # func_len /c\
20695: func_len ()\
20696: {\
20697: func_len_result=${#1}\
20698: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20699: && mv -f "$cfgfile.tmp" "$cfgfile" \
20700: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20701: test 0 -eq $? || _lt_function_replace_fail=:
20702:
20703: fi
20704:
20705: if test x"$lt_shell_append" = xyes; then
20706: sed -e '/^func_append ()$/,/^} # func_append /c\
20707: func_append ()\
20708: {\
20709: eval "${1}+=\\${2}"\
20710: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20711: && mv -f "$cfgfile.tmp" "$cfgfile" \
20712: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20713: test 0 -eq $? || _lt_function_replace_fail=:
20714:
20715:
20716: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20717: func_append_quoted ()\
20718: {\
20719: \ func_quote_for_eval "${2}"\
20720: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20721: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20722: && mv -f "$cfgfile.tmp" "$cfgfile" \
20723: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20724: test 0 -eq $? || _lt_function_replace_fail=:
20725:
20726:
20727: # Save a `func_append' function call where possible by direct use of '+='
20728: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20729: && mv -f "$cfgfile.tmp" "$cfgfile" \
20730: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20731: test 0 -eq $? || _lt_function_replace_fail=:
20732: else
20733: # Save a `func_append' function call even when '+=' is not available
20734: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20735: && mv -f "$cfgfile.tmp" "$cfgfile" \
20736: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20737: test 0 -eq $? || _lt_function_replace_fail=:
20738: fi
20739:
20740: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 20741: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20742: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 20743: fi
20744:
20745:
20746: mv -f "$cfgfile" "$ofile" ||
20747: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20748: chmod +x "$ofile"
20749:
20750:
20751: cat <<_LT_EOF >> "$ofile"
20752:
20753: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20754:
20755: # The linker used to build libraries.
20756: LD=$lt_LD_CXX
20757:
20758: # How to create reloadable object files.
20759: reload_flag=$lt_reload_flag_CXX
20760: reload_cmds=$lt_reload_cmds_CXX
20761:
20762: # Commands used to build an old-style archive.
20763: old_archive_cmds=$lt_old_archive_cmds_CXX
20764:
20765: # A language specific compiler.
20766: CC=$lt_compiler_CXX
20767:
20768: # Is the compiler the GNU compiler?
20769: with_gcc=$GCC_CXX
20770:
20771: # Compiler flag to turn off builtin functions.
20772: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20773:
20774: # Additional compiler flags for building library objects.
20775: pic_flag=$lt_lt_prog_compiler_pic_CXX
20776:
20777: # How to pass a linker flag through the compiler.
20778: wl=$lt_lt_prog_compiler_wl_CXX
20779:
20780: # Compiler flag to prevent dynamic linking.
20781: link_static_flag=$lt_lt_prog_compiler_static_CXX
20782:
20783: # Does compiler simultaneously support -c and -o options?
20784: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20785:
20786: # Whether or not to add -lc for building shared libraries.
20787: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20788:
20789: # Whether or not to disallow shared libs when runtime libs are static.
20790: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20791:
20792: # Compiler flag to allow reflexive dlopens.
20793: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20794:
20795: # Compiler flag to generate shared objects directly from archives.
20796: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20797:
20798: # Whether the compiler copes with passing no objects directly.
20799: compiler_needs_object=$lt_compiler_needs_object_CXX
20800:
20801: # Create an old-style archive from a shared archive.
20802: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20803:
20804: # Create a temporary old-style archive to link instead of a shared archive.
20805: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20806:
20807: # Commands used to build a shared archive.
20808: archive_cmds=$lt_archive_cmds_CXX
20809: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20810:
20811: # Commands used to build a loadable module if different from building
20812: # a shared archive.
20813: module_cmds=$lt_module_cmds_CXX
20814: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20815:
20816: # Whether we are building with GNU ld or not.
20817: with_gnu_ld=$lt_with_gnu_ld_CXX
20818:
20819: # Flag that allows shared libraries with undefined symbols to be built.
20820: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20821:
20822: # Flag that enforces no undefined symbols.
20823: no_undefined_flag=$lt_no_undefined_flag_CXX
20824:
20825: # Flag to hardcode \$libdir into a binary during linking.
20826: # This must work even if \$libdir does not exist
20827: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20828:
20829: # Whether we need a single "-rpath" flag with a separated argument.
20830: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20831:
20832: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20833: # DIR into the resulting binary.
20834: hardcode_direct=$hardcode_direct_CXX
20835:
20836: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20837: # DIR into the resulting binary and the resulting library dependency is
20838: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20839: # library is relocated.
20840: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20841:
20842: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20843: # into the resulting binary.
20844: hardcode_minus_L=$hardcode_minus_L_CXX
20845:
20846: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20847: # into the resulting binary.
20848: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20849:
20850: # Set to "yes" if building a shared library automatically hardcodes DIR
20851: # into the library and all subsequent libraries and executables linked
20852: # against it.
20853: hardcode_automatic=$hardcode_automatic_CXX
20854:
20855: # Set to yes if linker adds runtime paths of dependent libraries
20856: # to runtime path list.
20857: inherit_rpath=$inherit_rpath_CXX
20858:
20859: # Whether libtool must link a program against all its dependency libraries.
20860: link_all_deplibs=$link_all_deplibs_CXX
20861:
20862: # Set to "yes" if exported symbols are required.
20863: always_export_symbols=$always_export_symbols_CXX
20864:
20865: # The commands to list exported symbols.
20866: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20867:
20868: # Symbols that should not be listed in the preloaded symbols.
20869: exclude_expsyms=$lt_exclude_expsyms_CXX
20870:
20871: # Symbols that must always be exported.
20872: include_expsyms=$lt_include_expsyms_CXX
20873:
20874: # Commands necessary for linking programs (against libraries) with templates.
20875: prelink_cmds=$lt_prelink_cmds_CXX
20876:
20877: # Commands necessary for finishing linking programs.
20878: postlink_cmds=$lt_postlink_cmds_CXX
20879:
20880: # Specify filename containing input files.
20881: file_list_spec=$lt_file_list_spec_CXX
20882:
20883: # How to hardcode a shared library path into an executable.
20884: hardcode_action=$hardcode_action_CXX
20885:
20886: # The directories searched by this compiler when creating a shared library.
20887: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20888:
20889: # Dependencies to place before and after the objects being linked to
20890: # create a shared library.
20891: predep_objects=$lt_predep_objects_CXX
20892: postdep_objects=$lt_postdep_objects_CXX
20893: predeps=$lt_predeps_CXX
20894: postdeps=$lt_postdeps_CXX
20895:
20896: # The library search path used internally by the compiler when linking
20897: # a shared library.
20898: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20899:
20900: # ### END LIBTOOL TAG CONFIG: CXX
20901: _LT_EOF
20902:
20903: ;;
1.150 moko 20904:
1.62 paf 20905: esac
1.150 moko 20906: done # for ac_tag
1.62 paf 20907:
20908:
1.150 moko 20909: as_fn_exit 0
1.62 paf 20910: _ACEOF
20911: ac_clean_files=$ac_clean_files_save
20912:
1.150 moko 20913: test $ac_write_fail = 0 ||
20914: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20915:
1.1 paf 20916:
1.62 paf 20917: # configure is writing to config.log, and then calls config.status.
20918: # config.status does its own redirection, appending to config.log.
20919: # Unfortunately, on DOS this fails, as config.log is still kept open
20920: # by configure, so config.status won't be able to write to it; its
20921: # output is simply discarded. So we exec the FD to /dev/null,
20922: # effectively closing config.log, so it can be properly (re)opened and
20923: # appended to by config.status. When coming back to configure, we
20924: # need to make the FD available again.
20925: if test "$no_create" != yes; then
20926: ac_cs_success=:
20927: ac_config_status_args=
20928: test "$silent" = yes &&
20929: ac_config_status_args="$ac_config_status_args --quiet"
20930: exec 5>/dev/null
20931: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20932: exec 5>>config.log
20933: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20934: # would make configure fail if this is the last instruction.
1.150 moko 20935: $ac_cs_success || as_fn_exit 1
1.62 paf 20936: fi
20937:
20938: #
20939: # CONFIG_SUBDIRS section.
20940: #
1.1 paf 20941: if test "$no_recursion" != yes; then
20942:
1.150 moko 20943: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20944: # so they do not pile up.
1.1 paf 20945: ac_sub_configure_args=
20946: ac_prev=
1.150 moko 20947: eval "set x $ac_configure_args"
20948: shift
20949: for ac_arg
20950: do
1.1 paf 20951: if test -n "$ac_prev"; then
20952: ac_prev=
20953: continue
20954: fi
1.62 paf 20955: case $ac_arg in
1.1 paf 20956: -cache-file | --cache-file | --cache-fil | --cache-fi \
20957: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20958: ac_prev=cache_file ;;
20959: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 20960: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20961: | --c=*)
20962: ;;
20963: --config-cache | -C)
1.1 paf 20964: ;;
20965: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20966: ac_prev=srcdir ;;
20967: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20968: ;;
1.62 paf 20969: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20970: ac_prev=prefix ;;
20971: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20972: ;;
1.150 moko 20973: --disable-option-checking)
20974: ;;
20975: *)
20976: case $ac_arg in
20977: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20978: esac
20979: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 20980: esac
20981: done
20982:
1.62 paf 20983: # Always prepend --prefix to ensure using the same prefix
20984: # in subdir configurations.
1.150 moko 20985: ac_arg="--prefix=$prefix"
20986: case $ac_arg in
20987: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20988: esac
20989: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20990:
20991: # Pass --silent
20992: if test "$silent" = yes; then
20993: ac_sub_configure_args="--silent $ac_sub_configure_args"
20994: fi
20995:
20996: # Always prepend --disable-option-checking to silence warnings, since
20997: # different subdirs can have different --enable and --with options.
20998: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 20999:
21000: ac_popdir=`pwd`
21001: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21002:
21003: # Do not complain, so a configure script can configure whichever
21004: # parts of a large source tree are present.
1.150 moko 21005: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21006:
1.150 moko 21007: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21008: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21009: $as_echo "$ac_msg" >&6
21010: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21011: ac_builddir=.
21012:
1.150 moko 21013: case "$ac_dir" in
21014: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21015: *)
21016: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21017: # A ".." for each directory in $ac_dir_suffix.
21018: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21019: case $ac_top_builddir_sub in
21020: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21021: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21022: esac ;;
21023: esac
21024: ac_abs_top_builddir=$ac_pwd
21025: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21026: # for backward compatibility:
21027: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21028:
21029: case $srcdir in
1.150 moko 21030: .) # We are building in place.
1.62 paf 21031: ac_srcdir=.
1.150 moko 21032: ac_top_srcdir=$ac_top_builddir_sub
21033: ac_abs_top_srcdir=$ac_pwd ;;
21034: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21035: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21036: ac_top_srcdir=$srcdir
21037: ac_abs_top_srcdir=$srcdir ;;
21038: *) # Relative name.
21039: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21040: ac_top_srcdir=$ac_top_build_prefix$srcdir
21041: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21042: esac
1.150 moko 21043: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21044:
21045:
1.150 moko 21046: cd "$ac_dir"
1.1 paf 21047:
21048: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21049: if test -f "$ac_srcdir/configure.gnu"; then
21050: ac_sub_configure=$ac_srcdir/configure.gnu
21051: elif test -f "$ac_srcdir/configure"; then
21052: ac_sub_configure=$ac_srcdir/configure
21053: elif test -f "$ac_srcdir/configure.in"; then
21054: # This should be Cygnus configure.
21055: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21056: else
1.150 moko 21057: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21058: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21059: ac_sub_configure=
21060: fi
21061:
21062: # The recursion is here.
21063: if test -n "$ac_sub_configure"; then
21064: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21065: case $cache_file in
21066: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21067: *) # Relative name.
21068: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21069: esac
21070:
1.150 moko 21071: { $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
21072: $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 paf 21073: # The eval makes quoting arguments work.
1.150 moko 21074: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21075: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21076: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21077: fi
21078:
1.150 moko 21079: cd "$ac_popdir"
1.1 paf 21080: done
21081: fi
1.150 moko 21082: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21083: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21084: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21085: fi
1.1 paf 21086:
E-mail: