Annotation of parser3/configure, revision 1.193
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.186 moko 3: # Generated by GNU Autoconf 2.69 for parser 3.4.6b.
1.150 moko 4: #
5: #
1.166 moko 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.150 moko 7: #
1.1 paf 8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.150 moko 11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
1.62 paf 14:
1.150 moko 15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 18: emulate sh
19: NULLCMD=:
1.150 moko 20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
1.150 moko 23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 70: fi
71:
1.150 moko 72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
1.62 paf 79: fi
80:
81:
1.150 moko 82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
1.62 paf 122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
1.150 moko 127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
1.166 moko 135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
1.150 moko 160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
1.166 moko 193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
1.150 moko 195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199:
200: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204: PATH=/empty FPATH=/empty; export PATH FPATH
205: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207: test \$(( 1 + 1 )) = 2 || exit 1"
208: if (eval "$as_required") 2>/dev/null; then :
209: as_have_required=yes
210: else
211: as_have_required=no
212: fi
213: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214:
215: else
216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217: as_found=false
218: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.62 paf 219: do
1.150 moko 220: IFS=$as_save_IFS
221: test -z "$as_dir" && as_dir=.
222: as_found=:
223: case $as_dir in #(
224: /*)
225: for as_base in sh bash ksh sh5; do
226: # Try only shells that exist, to save several forks.
227: as_shell=$as_dir/$as_base
228: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230: CONFIG_SHELL=$as_shell as_have_required=yes
231: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: break 2
233: fi
234: fi
235: done;;
236: esac
237: as_found=false
238: done
239: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241: CONFIG_SHELL=$SHELL as_have_required=yes
242: fi; }
243: IFS=$as_save_IFS
244:
245:
246: if test "x$CONFIG_SHELL" != x; then :
1.166 moko 247: export CONFIG_SHELL
248: # We cannot yet assume a decent shell, so we have to provide a
249: # neutralization value for shells without unset; and this also
250: # works around shells that cannot unset nonexistent variables.
251: # Preserve -v and -x to the replacement shell.
252: BASH_ENV=/dev/null
253: ENV=/dev/null
254: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255: case $- in # ((((
256: *v*x* | *x*v* ) as_opts=-vx ;;
257: *v* ) as_opts=-v ;;
258: *x* ) as_opts=-x ;;
259: * ) as_opts= ;;
260: esac
261: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262: # Admittedly, this is quite paranoid, since all the known shells bail
263: # out after a failed `exec'.
264: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265: exit 255
1.150 moko 266: fi
267:
268: if test x$as_have_required = xno; then :
269: $as_echo "$0: This script requires a shell more modern than all"
270: $as_echo "$0: the shells that I found on your system."
271: if test x${ZSH_VERSION+set} = xset ; then
272: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.62 paf 274: else
1.150 moko 275: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276: $0: including any error possibly output before this
277: $0: message. Then install a modern shell, or manually run
278: $0: the script under such a shell if you do have one."
1.62 paf 279: fi
1.150 moko 280: exit 1
281: fi
282: fi
283: fi
284: SHELL=${CONFIG_SHELL-/bin/sh}
285: export SHELL
286: # Unset more variables known to interfere with behavior of common tools.
287: CLICOLOR_FORCE= GREP_OPTIONS=
288: unset CLICOLOR_FORCE GREP_OPTIONS
289:
290: ## --------------------- ##
291: ## M4sh Shell Functions. ##
292: ## --------------------- ##
293: # as_fn_unset VAR
294: # ---------------
295: # Portably unset VAR.
296: as_fn_unset ()
297: {
298: { eval $1=; unset $1;}
299: }
300: as_unset=as_fn_unset
301:
302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
325:
326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
333: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342: $as_echo X"$as_dir" |
343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364:
365:
366: } # as_fn_mkdir_p
1.166 moko 367:
368: # as_fn_executable_p FILE
369: # -----------------------
370: # Test if FILE is an executable regular file.
371: as_fn_executable_p ()
372: {
373: test -f "$1" && test -x "$1"
374: } # as_fn_executable_p
1.150 moko 375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
392:
393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
409:
410:
411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
1.62 paf 426:
1.150 moko 427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
1.150 moko 434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
1.150 moko 440: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441: as_dirname=dirname
442: else
443: as_dirname=false
444: fi
1.62 paf 445:
1.150 moko 446: as_me=`$as_basename -- "$0" ||
1.62 paf 447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
1.150 moko 449: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450: $as_echo X/"$0" |
451: sed '/^.*\/\([^/][^/]*\)\/*$/{
452: s//\1/
453: q
454: }
455: /^X\/\(\/\/\)$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\).*/{
460: s//\1/
461: q
462: }
463: s/.*/./; q'`
1.62 paf 464:
465: # Avoid depending upon Character Ranges.
466: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469: as_cr_digits='0123456789'
470: as_cr_alnum=$as_cr_Letters$as_cr_digits
471:
472:
1.150 moko 473: as_lineno_1=$LINENO as_lineno_1a=$LINENO
474: as_lineno_2=$LINENO as_lineno_2a=$LINENO
475: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478: sed -n '
479: p
480: /[$]LINENO/=
481: ' <$as_myself |
1.62 paf 482: sed '
1.150 moko 483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
1.62 paf 487: N
1.150 moko 488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.62 paf 490: t loop
1.150 moko 491: s/-\n.*//
1.62 paf 492: ' >$as_me.lineno &&
1.150 moko 493: chmod +x "$as_me.lineno" ||
494: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.62 paf 495:
1.166 moko 496: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497: # already done that, so ensure we don't try to do so again and fall
498: # in an infinite loop. This has already happened in practice.
499: _as_can_reexec=no; export _as_can_reexec
1.62 paf 500: # Don't try to exec as it changes $[0], causing all sort of problems
501: # (the dirname of $[0] is not the place where we might find the
1.150 moko 502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
1.62 paf 504: # Exit status is that of the last command.
505: exit
506: }
507:
1.150 moko 508: ECHO_C= ECHO_N= ECHO_T=
509: case `echo -n x` in #(((((
510: -n*)
511: case `echo 'xy\c'` in
512: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513: xy) ECHO_C='\c';;
514: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515: ECHO_T=' ';;
516: esac;;
517: *)
518: ECHO_N='-n';;
1.62 paf 519: esac
520:
1.150 moko 521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
1.62 paf 524: else
1.150 moko 525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
1.62 paf 527: fi
1.150 moko 528: if (echo >conf$$.file) 2>/dev/null; then
529: if ln -s conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s='ln -s'
531: # ... but there are two gotchas:
532: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 534: # In both cases, we have to default to `cp -pR'.
1.150 moko 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 536: as_ln_s='cp -pR'
1.150 moko 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.166 moko 540: as_ln_s='cp -pR'
1.62 paf 541: fi
542: else
1.166 moko 543: as_ln_s='cp -pR'
1.62 paf 544: fi
1.150 moko 545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
1.62 paf 547:
548: if mkdir -p . 2>/dev/null; then
1.150 moko 549: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 550: else
1.86 paf 551: test -d ./-p && rmdir ./-p
1.62 paf 552: as_mkdir_p=false
553: fi
554:
1.166 moko 555: as_test_x='test -x'
556: as_executable_p=as_fn_executable_p
1.62 paf 557:
558: # Sed expression to map a string onto a valid CPP name.
1.86 paf 559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 560:
561: # Sed expression to map a string onto a valid variable name.
1.86 paf 562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 563:
1.128 moko 564: lt_ltdl_dir='src/lib/ltdl'
565:
566: SHELL=${CONFIG_SHELL-/bin/sh}
567:
568: lt_dlopen_dir="$lt_ltdl_dir"
569:
1.1 paf 570:
1.150 moko 571: test -n "$DJDIR" || exec 7<&0 </dev/null
572: exec 6>&1
573:
1.62 paf 574: # Name of the host.
1.150 moko 575: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.62 paf 576: # so uname gets run too.
577: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578:
579: #
580: # Initializations.
581: #
1.1 paf 582: ac_default_prefix=/usr/local
1.150 moko 583: ac_clean_files=
1.62 paf 584: ac_config_libobj_dir=.
1.150 moko 585: LIBOBJS=
1.62 paf 586: cross_compiling=no
587: subdirs=
588: MFLAGS=
589: MAKEFLAGS=
590:
591: # Identity of this package.
1.128 moko 592: PACKAGE_NAME='parser'
593: PACKAGE_TARNAME='parser'
1.186 moko 594: PACKAGE_VERSION='3.4.6b'
595: PACKAGE_STRING='parser 3.4.6b'
1.128 moko 596: PACKAGE_BUGREPORT=''
1.150 moko 597: PACKAGE_URL=''
1.62 paf 598:
599: ac_unique_file="README"
600: # Factoring default headers for most tests.
601: ac_includes_default="\
602: #include <stdio.h>
1.150 moko 603: #ifdef HAVE_SYS_TYPES_H
1.62 paf 604: # include <sys/types.h>
605: #endif
1.150 moko 606: #ifdef HAVE_SYS_STAT_H
1.62 paf 607: # include <sys/stat.h>
608: #endif
1.150 moko 609: #ifdef STDC_HEADERS
1.62 paf 610: # include <stdlib.h>
611: # include <stddef.h>
612: #else
1.150 moko 613: # ifdef HAVE_STDLIB_H
1.62 paf 614: # include <stdlib.h>
615: # endif
616: #endif
1.150 moko 617: #ifdef HAVE_STRING_H
618: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.62 paf 619: # include <memory.h>
620: # endif
621: # include <string.h>
622: #endif
1.150 moko 623: #ifdef HAVE_STRINGS_H
1.62 paf 624: # include <strings.h>
625: #endif
1.150 moko 626: #ifdef HAVE_INTTYPES_H
1.62 paf 627: # include <inttypes.h>
628: #endif
1.150 moko 629: #ifdef HAVE_STDINT_H
630: # include <stdint.h>
631: #endif
632: #ifdef HAVE_UNISTD_H
1.62 paf 633: # include <unistd.h>
634: #endif"
635:
1.150 moko 636: enable_option_checking=no
637: ac_subst_vars='ltdl_LTLIBOBJS
638: ltdl_LIBOBJS
639: am__EXEEXT_FALSE
640: am__EXEEXT_TRUE
641: LTLIBOBJS
642: LIBOBJS
643: LTDLOPEN
644: LT_CONFIG_H
645: subdirs
646: CONVENIENCE_LTDL_FALSE
647: CONVENIENCE_LTDL_TRUE
648: INSTALL_LTDL_FALSE
649: INSTALL_LTDL_TRUE
650: ARGZ_H
651: sys_symbol_underscore
652: LIBADD_DL
653: LT_DLPREOPEN
654: LIBADD_DLD_LINK
655: LIBADD_SHL_LOAD
656: LIBADD_DLOPEN
657: LT_DLLOADERS
658: INCLTDL
659: LTDLINCL
660: LTDLDEPS
661: LIBLTDL
662: CXXCPP
663: CPP
664: OTOOL64
665: OTOOL
666: LIPO
667: NMEDIT
668: DSYMUTIL
669: MANIFEST_TOOL
670: RANLIB
671: ac_ct_AR
672: AR
673: LN_S
674: NM
675: ac_ct_DUMPBIN
676: DUMPBIN
677: LD
678: FGREP
679: EGREP
680: GREP
681: SED
682: LIBTOOL
683: OBJDUMP
684: DLLTOOL
685: AS
686: COMPILE_APACHE_MODULE_FALSE
687: COMPILE_APACHE_MODULE_TRUE
688: APACHE_CFLAGS
689: APACHE_INC
690: APACHE
691: MIME_LIBS
692: MIME_INCLUDES
693: XML_LIBS
694: XML_INCLUDES
695: PCRE_LIBS
696: PCRE_INCLUDES
697: GC_LIBS
698: dll_extension
699: am__fastdepCC_FALSE
700: am__fastdepCC_TRUE
701: CCDEPMODE
702: ac_ct_CC
703: CFLAGS
704: CC
705: am__fastdepCXX_FALSE
706: am__fastdepCXX_TRUE
707: CXXDEPMODE
1.187 moko 708: am__nodep
1.150 moko 709: AMDEPBACKSLASH
710: AMDEP_FALSE
711: AMDEP_TRUE
712: am__quote
713: am__include
714: DEPDIR
715: OBJEXT
716: EXEEXT
717: ac_ct_CXX
718: CPPFLAGS
719: LDFLAGS
720: CXXFLAGS
721: CXX
722: YFLAGS
723: YACC
724: host_os
725: host_vendor
726: host_cpu
727: host
728: build_os
729: build_vendor
730: build_cpu
731: build
732: P3S
1.187 moko 733: AM_BACKSLASH
734: AM_DEFAULT_VERBOSITY
735: AM_DEFAULT_V
736: AM_V
1.150 moko 737: am__untar
738: am__tar
739: AMTAR
740: am__leading_dot
741: SET_MAKE
742: AWK
743: mkdir_p
744: MKDIR_P
745: INSTALL_STRIP_PROGRAM
746: STRIP
747: install_sh
748: MAKEINFO
749: AUTOHEADER
750: AUTOMAKE
751: AUTOCONF
752: ACLOCAL
753: VERSION
754: PACKAGE
755: CYGPATH_W
756: am__isrc
757: INSTALL_DATA
758: INSTALL_SCRIPT
759: INSTALL_PROGRAM
760: target_alias
761: host_alias
762: build_alias
763: LIBS
764: ECHO_T
765: ECHO_N
766: ECHO_C
767: DEFS
768: mandir
769: localedir
770: libdir
771: psdir
772: pdfdir
773: dvidir
774: htmldir
775: infodir
776: docdir
777: oldincludedir
778: includedir
1.191 moko 779: runstatedir
1.150 moko 780: localstatedir
781: sharedstatedir
782: sysconfdir
783: datadir
784: datarootdir
785: libexecdir
786: sbindir
787: bindir
788: program_transform_name
789: prefix
790: exec_prefix
791: PACKAGE_URL
792: PACKAGE_BUGREPORT
793: PACKAGE_STRING
794: PACKAGE_VERSION
795: PACKAGE_TARNAME
796: PACKAGE_NAME
797: PATH_SEPARATOR
798: SHELL'
1.62 paf 799: ac_subst_files=''
1.150 moko 800: ac_user_opts='
801: enable_option_checking
1.187 moko 802: enable_silent_rules
1.150 moko 803: enable_dependency_tracking
804: with_build_warnings
1.182 moko 805: with_coverage
806: with_profiler
1.150 moko 807: with_assertions
808: with_sjlj_exceptions
809: enable_safe_mode
810: enable_execs
811: enable_stringstream
812: with_gc
813: with_pcre
814: with_xml
1.154 moko 815: with_mailreceive
1.150 moko 816: with_sendmail
817: with_apache
818: with_pic
819: enable_shared
820: enable_static
821: enable_fast_install
822: with_gnu_ld
823: with_sysroot
824: enable_libtool_lock
825: with_included_ltdl
826: with_ltdl_include
827: with_ltdl_lib
828: enable_ltdl_install
1.171 moko 829: enable_largefile
1.150 moko 830: '
831: ac_precious_vars='build_alias
832: host_alias
833: target_alias
834: YACC
835: YFLAGS
836: CXX
837: CXXFLAGS
838: LDFLAGS
839: LIBS
840: CPPFLAGS
841: CCC
842: CC
843: CFLAGS
844: CPP
845: CXXCPP'
846: ac_subdirs_all='src/lib/ltdl'
1.1 paf 847:
848: # Initialize some variables set by options.
1.62 paf 849: ac_init_help=
850: ac_init_version=false
1.150 moko 851: ac_unrecognized_opts=
852: ac_unrecognized_sep=
1.1 paf 853: # The variables have the same names as the options, with
854: # dashes changed to underlines.
1.62 paf 855: cache_file=/dev/null
1.1 paf 856: exec_prefix=NONE
857: no_create=
858: no_recursion=
859: prefix=NONE
860: program_prefix=NONE
861: program_suffix=NONE
862: program_transform_name=s,x,x,
863: silent=
864: site=
865: srcdir=
866: verbose=
867: x_includes=NONE
868: x_libraries=NONE
1.62 paf 869:
870: # Installation directory options.
871: # These are left unexpanded so users can "make install exec_prefix=/foo"
872: # and all the variables that are supposed to be based on exec_prefix
873: # by default will actually change.
874: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 875: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 876: bindir='${exec_prefix}/bin'
877: sbindir='${exec_prefix}/sbin'
878: libexecdir='${exec_prefix}/libexec'
1.150 moko 879: datarootdir='${prefix}/share'
880: datadir='${datarootdir}'
1.1 paf 881: sysconfdir='${prefix}/etc'
882: sharedstatedir='${prefix}/com'
883: localstatedir='${prefix}/var'
1.191 moko 884: runstatedir='${localstatedir}/run'
1.1 paf 885: includedir='${prefix}/include'
886: oldincludedir='/usr/include'
1.150 moko 887: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888: infodir='${datarootdir}/info'
889: htmldir='${docdir}'
890: dvidir='${docdir}'
891: pdfdir='${docdir}'
892: psdir='${docdir}'
893: libdir='${exec_prefix}/lib'
894: localedir='${datarootdir}/locale'
895: mandir='${datarootdir}/man'
1.1 paf 896:
897: ac_prev=
1.150 moko 898: ac_dashdash=
1.1 paf 899: for ac_option
900: do
901: # If the previous option needs an argument, assign it.
902: if test -n "$ac_prev"; then
1.150 moko 903: eval $ac_prev=\$ac_option
1.1 paf 904: ac_prev=
905: continue
906: fi
907:
1.150 moko 908: case $ac_option in
909: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910: *=) ac_optarg= ;;
911: *) ac_optarg=yes ;;
912: esac
1.1 paf 913:
914: # Accept the important Cygnus configure options, so we can diagnose typos.
915:
1.150 moko 916: case $ac_dashdash$ac_option in
917: --)
918: ac_dashdash=yes ;;
1.1 paf 919:
920: -bindir | --bindir | --bindi | --bind | --bin | --bi)
921: ac_prev=bindir ;;
922: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 923: bindir=$ac_optarg ;;
1.1 paf 924:
925: -build | --build | --buil | --bui | --bu)
1.62 paf 926: ac_prev=build_alias ;;
1.1 paf 927: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 928: build_alias=$ac_optarg ;;
1.1 paf 929:
930: -cache-file | --cache-file | --cache-fil | --cache-fi \
931: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932: ac_prev=cache_file ;;
933: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 935: cache_file=$ac_optarg ;;
936:
937: --config-cache | -C)
938: cache_file=config.cache ;;
1.1 paf 939:
1.150 moko 940: -datadir | --datadir | --datadi | --datad)
1.1 paf 941: ac_prev=datadir ;;
1.150 moko 942: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 943: datadir=$ac_optarg ;;
1.1 paf 944:
1.150 moko 945: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946: | --dataroo | --dataro | --datar)
947: ac_prev=datarootdir ;;
948: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950: datarootdir=$ac_optarg ;;
951:
1.1 paf 952: -disable-* | --disable-*)
1.150 moko 953: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 954: # Reject names that are not valid shell variable names.
1.150 moko 955: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956: as_fn_error $? "invalid feature name: $ac_useropt"
957: ac_useropt_orig=$ac_useropt
958: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959: case $ac_user_opts in
960: *"
961: "enable_$ac_useropt"
962: "*) ;;
963: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964: ac_unrecognized_sep=', ';;
965: esac
966: eval enable_$ac_useropt=no ;;
967:
968: -docdir | --docdir | --docdi | --doc | --do)
969: ac_prev=docdir ;;
970: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971: docdir=$ac_optarg ;;
972:
973: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974: ac_prev=dvidir ;;
975: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976: dvidir=$ac_optarg ;;
1.1 paf 977:
978: -enable-* | --enable-*)
1.150 moko 979: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 980: # Reject names that are not valid shell variable names.
1.150 moko 981: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982: as_fn_error $? "invalid feature name: $ac_useropt"
983: ac_useropt_orig=$ac_useropt
984: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985: case $ac_user_opts in
986: *"
987: "enable_$ac_useropt"
988: "*) ;;
989: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990: ac_unrecognized_sep=', ';;
1.1 paf 991: esac
1.150 moko 992: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 993:
994: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996: | --exec | --exe | --ex)
997: ac_prev=exec_prefix ;;
998: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000: | --exec=* | --exe=* | --ex=*)
1.62 paf 1001: exec_prefix=$ac_optarg ;;
1.1 paf 1002:
1003: -gas | --gas | --ga | --g)
1004: # Obsolete; use --with-gas.
1005: with_gas=yes ;;
1006:
1.62 paf 1007: -help | --help | --hel | --he | -h)
1008: ac_init_help=long ;;
1009: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010: ac_init_help=recursive ;;
1011: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012: ac_init_help=short ;;
1.1 paf 1013:
1014: -host | --host | --hos | --ho)
1.62 paf 1015: ac_prev=host_alias ;;
1.1 paf 1016: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1017: host_alias=$ac_optarg ;;
1.1 paf 1018:
1.150 moko 1019: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020: ac_prev=htmldir ;;
1021: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022: | --ht=*)
1023: htmldir=$ac_optarg ;;
1024:
1.1 paf 1025: -includedir | --includedir | --includedi | --included | --include \
1026: | --includ | --inclu | --incl | --inc)
1027: ac_prev=includedir ;;
1028: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1030: includedir=$ac_optarg ;;
1.1 paf 1031:
1032: -infodir | --infodir | --infodi | --infod | --info | --inf)
1033: ac_prev=infodir ;;
1034: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1035: infodir=$ac_optarg ;;
1.1 paf 1036:
1037: -libdir | --libdir | --libdi | --libd)
1038: ac_prev=libdir ;;
1039: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1040: libdir=$ac_optarg ;;
1.1 paf 1041:
1042: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043: | --libexe | --libex | --libe)
1044: ac_prev=libexecdir ;;
1045: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1047: libexecdir=$ac_optarg ;;
1.1 paf 1048:
1.150 moko 1049: -localedir | --localedir | --localedi | --localed | --locale)
1050: ac_prev=localedir ;;
1051: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052: localedir=$ac_optarg ;;
1053:
1.1 paf 1054: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1055: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1056: ac_prev=localstatedir ;;
1057: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1058: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1059: localstatedir=$ac_optarg ;;
1.1 paf 1060:
1061: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062: ac_prev=mandir ;;
1063: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1064: mandir=$ac_optarg ;;
1.1 paf 1065:
1066: -nfp | --nfp | --nf)
1067: # Obsolete; use --without-fp.
1068: with_fp=no ;;
1069:
1070: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1071: | --no-cr | --no-c | -n)
1.1 paf 1072: no_create=yes ;;
1073:
1074: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076: no_recursion=yes ;;
1077:
1078: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080: | --oldin | --oldi | --old | --ol | --o)
1081: ac_prev=oldincludedir ;;
1082: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1085: oldincludedir=$ac_optarg ;;
1.1 paf 1086:
1087: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088: ac_prev=prefix ;;
1089: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1090: prefix=$ac_optarg ;;
1.1 paf 1091:
1092: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093: | --program-pre | --program-pr | --program-p)
1094: ac_prev=program_prefix ;;
1095: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1097: program_prefix=$ac_optarg ;;
1.1 paf 1098:
1099: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100: | --program-suf | --program-su | --program-s)
1101: ac_prev=program_suffix ;;
1102: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1104: program_suffix=$ac_optarg ;;
1.1 paf 1105:
1106: -program-transform-name | --program-transform-name \
1107: | --program-transform-nam | --program-transform-na \
1108: | --program-transform-n | --program-transform- \
1109: | --program-transform | --program-transfor \
1110: | --program-transfo | --program-transf \
1111: | --program-trans | --program-tran \
1112: | --progr-tra | --program-tr | --program-t)
1113: ac_prev=program_transform_name ;;
1114: -program-transform-name=* | --program-transform-name=* \
1115: | --program-transform-nam=* | --program-transform-na=* \
1116: | --program-transform-n=* | --program-transform-=* \
1117: | --program-transform=* | --program-transfor=* \
1118: | --program-transfo=* | --program-transf=* \
1119: | --program-trans=* | --program-tran=* \
1120: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1121: program_transform_name=$ac_optarg ;;
1.1 paf 1122:
1.150 moko 1123: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124: ac_prev=pdfdir ;;
1125: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126: pdfdir=$ac_optarg ;;
1127:
1128: -psdir | --psdir | --psdi | --psd | --ps)
1129: ac_prev=psdir ;;
1130: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131: psdir=$ac_optarg ;;
1132:
1.1 paf 1133: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134: | -silent | --silent | --silen | --sile | --sil)
1135: silent=yes ;;
1136:
1.191 moko 1137: -runstatedir | --runstatedir | --runstatedi | --runstated \
1138: | --runstate | --runstat | --runsta | --runst | --runs \
1139: | --run | --ru | --r)
1140: ac_prev=runstatedir ;;
1141: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1142: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1143: | --run=* | --ru=* | --r=*)
1144: runstatedir=$ac_optarg ;;
1145:
1.1 paf 1146: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147: ac_prev=sbindir ;;
1148: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149: | --sbi=* | --sb=*)
1.62 paf 1150: sbindir=$ac_optarg ;;
1.1 paf 1151:
1152: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154: | --sharedst | --shareds | --shared | --share | --shar \
1155: | --sha | --sh)
1156: ac_prev=sharedstatedir ;;
1157: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160: | --sha=* | --sh=*)
1.62 paf 1161: sharedstatedir=$ac_optarg ;;
1.1 paf 1162:
1163: -site | --site | --sit)
1164: ac_prev=site ;;
1165: -site=* | --site=* | --sit=*)
1.62 paf 1166: site=$ac_optarg ;;
1.1 paf 1167:
1168: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169: ac_prev=srcdir ;;
1170: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1171: srcdir=$ac_optarg ;;
1.1 paf 1172:
1173: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174: | --syscon | --sysco | --sysc | --sys | --sy)
1175: ac_prev=sysconfdir ;;
1176: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1178: sysconfdir=$ac_optarg ;;
1.1 paf 1179:
1180: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1181: ac_prev=target_alias ;;
1.1 paf 1182: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1183: target_alias=$ac_optarg ;;
1.1 paf 1184:
1185: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186: verbose=yes ;;
1187:
1.62 paf 1188: -version | --version | --versio | --versi | --vers | -V)
1189: ac_init_version=: ;;
1.1 paf 1190:
1191: -with-* | --with-*)
1.150 moko 1192: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1193: # Reject names that are not valid shell variable names.
1.150 moko 1194: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195: as_fn_error $? "invalid package name: $ac_useropt"
1196: ac_useropt_orig=$ac_useropt
1197: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198: case $ac_user_opts in
1199: *"
1200: "with_$ac_useropt"
1201: "*) ;;
1202: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203: ac_unrecognized_sep=', ';;
1.1 paf 1204: esac
1.150 moko 1205: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1206:
1207: -without-* | --without-*)
1.150 moko 1208: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1209: # Reject names that are not valid shell variable names.
1.150 moko 1210: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211: as_fn_error $? "invalid package name: $ac_useropt"
1212: ac_useropt_orig=$ac_useropt
1213: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214: case $ac_user_opts in
1215: *"
1216: "with_$ac_useropt"
1217: "*) ;;
1218: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219: ac_unrecognized_sep=', ';;
1220: esac
1221: eval with_$ac_useropt=no ;;
1.1 paf 1222:
1223: --x)
1224: # Obsolete; use --with-x.
1225: with_x=yes ;;
1226:
1227: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228: | --x-incl | --x-inc | --x-in | --x-i)
1229: ac_prev=x_includes ;;
1230: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1232: x_includes=$ac_optarg ;;
1.1 paf 1233:
1234: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236: ac_prev=x_libraries ;;
1237: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1239: x_libraries=$ac_optarg ;;
1.1 paf 1240:
1.150 moko 1241: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242: Try \`$0 --help' for more information"
1.1 paf 1243: ;;
1244:
1.62 paf 1245: *=*)
1246: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247: # Reject names that are not valid shell variable names.
1.150 moko 1248: case $ac_envvar in #(
1249: '' | [0-9]* | *[!_$as_cr_alnum]* )
1250: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251: esac
1252: eval $ac_envvar=\$ac_optarg
1.62 paf 1253: export $ac_envvar ;;
1254:
1.1 paf 1255: *)
1.62 paf 1256: # FIXME: should be removed in autoconf 3.0.
1.150 moko 1257: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1258: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.150 moko 1259: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1261: ;;
1262:
1263: esac
1264: done
1265:
1266: if test -n "$ac_prev"; then
1.62 paf 1267: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1268: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1269: fi
1270:
1.150 moko 1271: if test -n "$ac_unrecognized_opts"; then
1272: case $enable_option_checking in
1273: no) ;;
1274: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276: esac
1277: fi
1278:
1279: # Check all directory arguments for consistency.
1280: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281: datadir sysconfdir sharedstatedir localstatedir includedir \
1282: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.191 moko 1283: libdir localedir mandir runstatedir
1.62 paf 1284: do
1.150 moko 1285: eval ac_val=\$$ac_var
1286: # Remove trailing slashes.
1.62 paf 1287: case $ac_val in
1.150 moko 1288: */ )
1289: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290: eval $ac_var=\$ac_val;;
1.62 paf 1291: esac
1.150 moko 1292: # Be sure to have absolute directory names.
1.62 paf 1293: case $ac_val in
1.150 moko 1294: [\\/$]* | ?:[\\/]* ) continue;;
1295: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1296: esac
1.150 moko 1297: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1298: done
1299:
1.62 paf 1300: # There might be people who depend on the old broken behavior: `$host'
1301: # used to hold the argument of --host etc.
1302: # FIXME: To remove some day.
1303: build=$build_alias
1304: host=$host_alias
1305: target=$target_alias
1306:
1307: # FIXME: To remove some day.
1308: if test "x$host_alias" != x; then
1309: if test "x$build_alias" = x; then
1310: cross_compiling=maybe
1311: elif test "x$build_alias" != "x$host_alias"; then
1312: cross_compiling=yes
1313: fi
1314: fi
1315:
1316: ac_tool_prefix=
1317: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1318:
1.62 paf 1319: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1320:
1321:
1.150 moko 1322: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323: ac_ls_di=`ls -di .` &&
1324: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325: as_fn_error $? "working directory cannot be determined"
1326: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327: as_fn_error $? "pwd does not report name of working directory"
1328:
1329:
1.1 paf 1330: # Find the source files, if location was not specified.
1331: if test -z "$srcdir"; then
1332: ac_srcdir_defaulted=yes
1.150 moko 1333: # Try the directory containing this script, then the parent directory.
1334: ac_confdir=`$as_dirname -- "$as_myself" ||
1335: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336: X"$as_myself" : 'X\(//\)[^/]' \| \
1337: X"$as_myself" : 'X\(//\)$' \| \
1338: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339: $as_echo X"$as_myself" |
1340: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341: s//\1/
1342: q
1343: }
1344: /^X\(\/\/\)[^/].*/{
1345: s//\1/
1346: q
1347: }
1348: /^X\(\/\/\)$/{
1349: s//\1/
1350: q
1351: }
1352: /^X\(\/\).*/{
1353: s//\1/
1354: q
1355: }
1356: s/.*/./; q'`
1.1 paf 1357: srcdir=$ac_confdir
1.150 moko 1358: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1359: srcdir=..
1360: fi
1361: else
1362: ac_srcdir_defaulted=no
1363: fi
1.150 moko 1364: if test ! -r "$srcdir/$ac_unique_file"; then
1365: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367: fi
1368: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369: ac_abs_confdir=`(
1370: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371: pwd)`
1372: # When building in place, set srcdir=.
1373: if test "$ac_abs_confdir" = "$ac_pwd"; then
1374: srcdir=.
1375: fi
1376: # Remove unnecessary trailing slashes from srcdir.
1377: # Double slashes in file names in object file debugging info
1378: # mess up M-x gdb in Emacs.
1379: case $srcdir in
1380: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381: esac
1382: for ac_var in $ac_precious_vars; do
1383: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384: eval ac_env_${ac_var}_value=\$${ac_var}
1385: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387: done
1.62 paf 1388:
1389: #
1390: # Report the --help message.
1391: #
1392: if test "$ac_init_help" = "long"; then
1393: # Omit some internal or obsolete options to make the list less imposing.
1394: # This message is too long to be a string in the A/UX 3.1 sh.
1395: cat <<_ACEOF
1.186 moko 1396: \`configure' configures parser 3.4.6b to adapt to many kinds of systems.
1.62 paf 1397:
1398: Usage: $0 [OPTION]... [VAR=VALUE]...
1399:
1400: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401: VAR=VALUE. See below for descriptions of some of the useful variables.
1402:
1403: Defaults for the options are specified in brackets.
1404:
1405: Configuration:
1406: -h, --help display this help and exit
1407: --help=short display options specific to this package
1408: --help=recursive display the short help of all the included packages
1409: -V, --version display version information and exit
1.150 moko 1410: -q, --quiet, --silent do not print \`checking ...' messages
1.62 paf 1411: --cache-file=FILE cache test results in FILE [disabled]
1412: -C, --config-cache alias for \`--cache-file=config.cache'
1413: -n, --no-create do not create output files
1414: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415:
1416: Installation directories:
1417: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1418: [$ac_default_prefix]
1.62 paf 1419: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1420: [PREFIX]
1.62 paf 1421:
1422: By default, \`make install' will install all the files in
1423: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425: for instance \`--prefix=\$HOME'.
1426:
1427: For better control, use the options below.
1428:
1429: Fine tuning of the installation directories:
1.150 moko 1430: --bindir=DIR user executables [EPREFIX/bin]
1431: --sbindir=DIR system admin executables [EPREFIX/sbin]
1432: --libexecdir=DIR program executables [EPREFIX/libexec]
1433: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.191 moko 1436: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.150 moko 1437: --libdir=DIR object code libraries [EPREFIX/lib]
1438: --includedir=DIR C header files [PREFIX/include]
1439: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442: --infodir=DIR info documentation [DATAROOTDIR/info]
1443: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444: --mandir=DIR man documentation [DATAROOTDIR/man]
1445: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1446: --htmldir=DIR html documentation [DOCDIR]
1447: --dvidir=DIR dvi documentation [DOCDIR]
1448: --pdfdir=DIR pdf documentation [DOCDIR]
1449: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1450: _ACEOF
1451:
1452: cat <<\_ACEOF
1453:
1454: Program names:
1455: --program-prefix=PREFIX prepend PREFIX to installed program names
1456: --program-suffix=SUFFIX append SUFFIX to installed program names
1457: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458:
1459: System types:
1460: --build=BUILD configure for building on BUILD [guessed]
1461: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462: _ACEOF
1463: fi
1464:
1465: if test -n "$ac_init_help"; then
1.128 moko 1466: case $ac_init_help in
1.186 moko 1467: short | recursive ) echo "Configuration of parser 3.4.6b:";;
1.128 moko 1468: esac
1.62 paf 1469: cat <<\_ACEOF
1470:
1471: Optional Features:
1.150 moko 1472: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1473: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1475: --enable-silent-rules less verbose build output (undo: "make V=1")
1476: --disable-silent-rules verbose build output (undo: "make V=0")
1477: --enable-dependency-tracking
1478: do not reject slow dependency extractors
1479: --disable-dependency-tracking
1480: speeds up one-time build
1.67 paf 1481: --disable-safe-mode to enable reading and executing
1.62 paf 1482: files belonging to group+user other then effective
1.146 moko 1483: --disable-execs to disable any execs
1.62 paf 1484: (file::exec, file::cgi, unix mail:send)
1.94 misha 1485: --disable-stringstream to disable stringstream usage.
1486: when disabled table.save use more memory but it's safer on freebsd 4.x
1.150 moko 1487: --enable-shared[=PKGS] build shared libraries [default=yes]
1488: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1489: --enable-fast-install[=PKGS]
1490: optimize for fast installation [default=yes]
1491: --disable-libtool-lock avoid locking (might break parallel builds)
1492: --enable-ltdl-install install libltdl
1.171 moko 1493: --disable-largefile omit support for large files
1.62 paf 1494:
1495: Optional Packages:
1496: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1498: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1499: --with-coverage to enable gcov code coverage support
1500: --with-profiler to enable gprof code profiler support
1.67 paf 1501: --with-assertions to enable assertions
1.128 moko 1502: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.146 moko 1503: --with-gc=D D is the directory where
1.142 moko 1504: Boehm garbage collecting library is installed
1.146 moko 1505: --with-pcre=D D is the directory where
1.142 moko 1506: PCRE library is installed
1.146 moko 1507: --with-xml=D D is the directory where
1.142 moko 1508: Gnome XML libraries are installed
1.154 moko 1509: --with-mailreceive=D is the directory where
1510: Gnome MIME library is installed
1.62 paf 1511: \"--with-sendmail=COMMAND\" forces this command to send mail.
1512: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1513: (makes parser ignore user-defined sendmail commands)
1.146 moko 1514: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1515: builds apache DSO module using apxs
1.150 moko 1516: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.128 moko 1517: both]
1518: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1519: --with-sysroot=DIR Search for dependent libraries within DIR
1520: (or the compiler's sysroot if not specified).
1521: --with-included-ltdl use the GNU ltdl sources included here
1522: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1523: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1524:
1525: Some influential environment variables:
1.150 moko 1526: YACC The `Yet Another Compiler Compiler' implementation to use.
1527: Defaults to the first program found out of: `bison -y', `byacc',
1528: `yacc'.
1529: YFLAGS The list of arguments that will be passed by default to $YACC.
1530: This script will default YFLAGS to the empty string to avoid a
1531: default value of `-d' given by some make applications.
1.66 paf 1532: CXX C++ compiler command
1533: CXXFLAGS C++ compiler flags
1.62 paf 1534: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535: nonstandard directory <lib dir>
1.150 moko 1536: LIBS libraries to pass to the linker, e.g. -l<library>
1537: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538: you have headers in a nonstandard directory <include dir>
1.66 paf 1539: CC C compiler command
1540: CFLAGS C compiler flags
1541: CPP C preprocessor
1.128 moko 1542: CXXCPP C++ preprocessor
1.62 paf 1543:
1544: Use these variables to override the choices made by `configure' or to help
1545: it to find libraries and programs with nonstandard names/locations.
1546:
1.150 moko 1547: Report bugs to the package provider.
1.62 paf 1548: _ACEOF
1.150 moko 1549: ac_status=$?
1.62 paf 1550: fi
1551:
1552: if test "$ac_init_help" = "recursive"; then
1553: # If there are subdirs, report their specific --help.
1554: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1555: test -d "$ac_dir" ||
1556: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557: continue
1.62 paf 1558: ac_builddir=.
1559:
1.150 moko 1560: case "$ac_dir" in
1561: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562: *)
1563: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564: # A ".." for each directory in $ac_dir_suffix.
1565: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566: case $ac_top_builddir_sub in
1567: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569: esac ;;
1570: esac
1571: ac_abs_top_builddir=$ac_pwd
1572: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573: # for backward compatibility:
1574: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1575:
1576: case $srcdir in
1.150 moko 1577: .) # We are building in place.
1.62 paf 1578: ac_srcdir=.
1.150 moko 1579: ac_top_srcdir=$ac_top_builddir_sub
1580: ac_abs_top_srcdir=$ac_pwd ;;
1581: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1582: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1583: ac_top_srcdir=$srcdir
1584: ac_abs_top_srcdir=$srcdir ;;
1585: *) # Relative name.
1586: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587: ac_top_srcdir=$ac_top_build_prefix$srcdir
1588: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1589: esac
1.150 moko 1590: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1591:
1.150 moko 1592: cd "$ac_dir" || { ac_status=$?; continue; }
1593: # Check for guested configure.
1594: if test -f "$ac_srcdir/configure.gnu"; then
1595: echo &&
1596: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597: elif test -f "$ac_srcdir/configure"; then
1598: echo &&
1599: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1600: else
1.150 moko 1601: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602: fi || ac_status=$?
1603: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1604: done
1605: fi
1606:
1.150 moko 1607: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1608: if $ac_init_version; then
1609: cat <<\_ACEOF
1.186 moko 1610: parser configure 3.4.6b
1.166 moko 1611: generated by GNU Autoconf 2.69
1.62 paf 1612:
1.166 moko 1613: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 1614: This configure script is free software; the Free Software Foundation
1615: gives unlimited permission to copy, distribute and modify it.
1616: _ACEOF
1.150 moko 1617: exit
1.62 paf 1618: fi
1619:
1.150 moko 1620: ## ------------------------ ##
1621: ## Autoconf initialization. ##
1622: ## ------------------------ ##
1623:
1624: # ac_fn_cxx_try_compile LINENO
1625: # ----------------------------
1626: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627: ac_fn_cxx_try_compile ()
1.62 paf 1628: {
1.150 moko 1629: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630: rm -f conftest.$ac_objext
1631: if { { ac_try="$ac_compile"
1632: case "(($ac_try" in
1633: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634: *) ac_try_echo=$ac_try;;
1635: esac
1636: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637: $as_echo "$ac_try_echo"; } >&5
1638: (eval "$ac_compile") 2>conftest.err
1639: ac_status=$?
1640: if test -s conftest.err; then
1641: grep -v '^ *+' conftest.err >conftest.er1
1642: cat conftest.er1 >&5
1643: mv -f conftest.er1 conftest.err
1644: fi
1645: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646: test $ac_status = 0; } && {
1647: test -z "$ac_cxx_werror_flag" ||
1648: test ! -s conftest.err
1649: } && test -s conftest.$ac_objext; then :
1650: ac_retval=0
1651: else
1652: $as_echo "$as_me: failed program was:" >&5
1653: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1654:
1.150 moko 1655: ac_retval=1
1656: fi
1657: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658: as_fn_set_status $ac_retval
1.62 paf 1659:
1.150 moko 1660: } # ac_fn_cxx_try_compile
1661:
1662: # ac_fn_c_try_compile LINENO
1663: # --------------------------
1664: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1665: ac_fn_c_try_compile ()
1666: {
1667: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668: rm -f conftest.$ac_objext
1669: if { { ac_try="$ac_compile"
1670: case "(($ac_try" in
1671: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672: *) ac_try_echo=$ac_try;;
1673: esac
1674: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675: $as_echo "$ac_try_echo"; } >&5
1676: (eval "$ac_compile") 2>conftest.err
1677: ac_status=$?
1678: if test -s conftest.err; then
1679: grep -v '^ *+' conftest.err >conftest.er1
1680: cat conftest.er1 >&5
1681: mv -f conftest.er1 conftest.err
1682: fi
1683: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684: test $ac_status = 0; } && {
1685: test -z "$ac_c_werror_flag" ||
1686: test ! -s conftest.err
1687: } && test -s conftest.$ac_objext; then :
1688: ac_retval=0
1689: else
1690: $as_echo "$as_me: failed program was:" >&5
1691: sed 's/^/| /' conftest.$ac_ext >&5
1692:
1693: ac_retval=1
1694: fi
1695: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696: as_fn_set_status $ac_retval
1697:
1698: } # ac_fn_c_try_compile
1699:
1700: # ac_fn_c_try_link LINENO
1701: # -----------------------
1702: # Try to link conftest.$ac_ext, and return whether this succeeded.
1703: ac_fn_c_try_link ()
1704: {
1705: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706: rm -f conftest.$ac_objext conftest$ac_exeext
1707: if { { ac_try="$ac_link"
1708: case "(($ac_try" in
1709: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710: *) ac_try_echo=$ac_try;;
1711: esac
1712: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713: $as_echo "$ac_try_echo"; } >&5
1714: (eval "$ac_link") 2>conftest.err
1715: ac_status=$?
1716: if test -s conftest.err; then
1717: grep -v '^ *+' conftest.err >conftest.er1
1718: cat conftest.er1 >&5
1719: mv -f conftest.er1 conftest.err
1720: fi
1721: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722: test $ac_status = 0; } && {
1723: test -z "$ac_c_werror_flag" ||
1724: test ! -s conftest.err
1725: } && test -s conftest$ac_exeext && {
1726: test "$cross_compiling" = yes ||
1.166 moko 1727: test -x conftest$ac_exeext
1.150 moko 1728: }; then :
1729: ac_retval=0
1730: else
1731: $as_echo "$as_me: failed program was:" >&5
1732: sed 's/^/| /' conftest.$ac_ext >&5
1733:
1734: ac_retval=1
1735: fi
1736: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738: # interfere with the next link command; also delete a directory that is
1739: # left behind by Apple's compiler. We do this before executing the actions.
1740: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742: as_fn_set_status $ac_retval
1743:
1744: } # ac_fn_c_try_link
1745:
1746: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747: # -------------------------------------------------------
1748: # Tests whether HEADER exists and can be compiled using the include files in
1749: # INCLUDES, setting the cache variable VAR accordingly.
1750: ac_fn_c_check_header_compile ()
1751: {
1752: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754: $as_echo_n "checking for $2... " >&6; }
1755: if eval \${$3+:} false; then :
1756: $as_echo_n "(cached) " >&6
1757: else
1758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759: /* end confdefs.h. */
1760: $4
1761: #include <$2>
1762: _ACEOF
1763: if ac_fn_c_try_compile "$LINENO"; then :
1764: eval "$3=yes"
1765: else
1766: eval "$3=no"
1767: fi
1768: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769: fi
1770: eval ac_res=\$$3
1771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772: $as_echo "$ac_res" >&6; }
1773: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774:
1775: } # ac_fn_c_check_header_compile
1776:
1777: # ac_fn_c_try_cpp LINENO
1778: # ----------------------
1779: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780: ac_fn_c_try_cpp ()
1781: {
1782: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783: if { { ac_try="$ac_cpp conftest.$ac_ext"
1784: case "(($ac_try" in
1785: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786: *) ac_try_echo=$ac_try;;
1787: esac
1788: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789: $as_echo "$ac_try_echo"; } >&5
1790: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791: ac_status=$?
1792: if test -s conftest.err; then
1793: grep -v '^ *+' conftest.err >conftest.er1
1794: cat conftest.er1 >&5
1795: mv -f conftest.er1 conftest.err
1796: fi
1797: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798: test $ac_status = 0; } > conftest.i && {
1799: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800: test ! -s conftest.err
1801: }; then :
1802: ac_retval=0
1803: else
1804: $as_echo "$as_me: failed program was:" >&5
1805: sed 's/^/| /' conftest.$ac_ext >&5
1806:
1807: ac_retval=1
1808: fi
1809: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810: as_fn_set_status $ac_retval
1811:
1812: } # ac_fn_c_try_cpp
1813:
1814: # ac_fn_c_try_run LINENO
1815: # ----------------------
1816: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817: # that executables *can* be run.
1818: ac_fn_c_try_run ()
1819: {
1820: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821: if { { ac_try="$ac_link"
1822: case "(($ac_try" in
1823: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824: *) ac_try_echo=$ac_try;;
1825: esac
1826: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827: $as_echo "$ac_try_echo"; } >&5
1828: (eval "$ac_link") 2>&5
1829: ac_status=$?
1830: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832: { { case "(($ac_try" in
1833: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834: *) ac_try_echo=$ac_try;;
1835: esac
1836: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837: $as_echo "$ac_try_echo"; } >&5
1838: (eval "$ac_try") 2>&5
1839: ac_status=$?
1840: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841: test $ac_status = 0; }; }; then :
1842: ac_retval=0
1843: else
1844: $as_echo "$as_me: program exited with status $ac_status" >&5
1845: $as_echo "$as_me: failed program was:" >&5
1846: sed 's/^/| /' conftest.$ac_ext >&5
1847:
1848: ac_retval=$ac_status
1849: fi
1850: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852: as_fn_set_status $ac_retval
1853:
1854: } # ac_fn_c_try_run
1855:
1856: # ac_fn_c_check_func LINENO FUNC VAR
1857: # ----------------------------------
1858: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1859: ac_fn_c_check_func ()
1860: {
1861: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863: $as_echo_n "checking for $2... " >&6; }
1864: if eval \${$3+:} false; then :
1865: $as_echo_n "(cached) " >&6
1866: else
1867: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868: /* end confdefs.h. */
1869: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1871: #define $2 innocuous_$2
1872:
1873: /* System header to define __stub macros and hopefully few prototypes,
1874: which can conflict with char $2 (); below.
1875: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876: <limits.h> exists even on freestanding compilers. */
1877:
1878: #ifdef __STDC__
1879: # include <limits.h>
1880: #else
1881: # include <assert.h>
1882: #endif
1883:
1884: #undef $2
1885:
1886: /* Override any GCC internal prototype to avoid an error.
1887: Use char because int might match the return type of a GCC
1888: builtin and then its argument prototype would still apply. */
1889: #ifdef __cplusplus
1890: extern "C"
1891: #endif
1892: char $2 ();
1893: /* The GNU C library defines this for functions which it implements
1894: to always fail with ENOSYS. Some functions are actually named
1895: something starting with __ and the normal name is an alias. */
1896: #if defined __stub_$2 || defined __stub___$2
1897: choke me
1898: #endif
1899:
1900: int
1901: main ()
1902: {
1903: return $2 ();
1904: ;
1905: return 0;
1906: }
1907: _ACEOF
1908: if ac_fn_c_try_link "$LINENO"; then :
1909: eval "$3=yes"
1910: else
1911: eval "$3=no"
1912: fi
1913: rm -f core conftest.err conftest.$ac_objext \
1914: conftest$ac_exeext conftest.$ac_ext
1915: fi
1916: eval ac_res=\$$3
1917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918: $as_echo "$ac_res" >&6; }
1919: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920:
1921: } # ac_fn_c_check_func
1922:
1923: # ac_fn_cxx_try_cpp LINENO
1924: # ------------------------
1925: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1926: ac_fn_cxx_try_cpp ()
1927: {
1928: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929: if { { ac_try="$ac_cpp conftest.$ac_ext"
1930: case "(($ac_try" in
1931: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932: *) ac_try_echo=$ac_try;;
1933: esac
1934: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935: $as_echo "$ac_try_echo"; } >&5
1936: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1937: ac_status=$?
1938: if test -s conftest.err; then
1939: grep -v '^ *+' conftest.err >conftest.er1
1940: cat conftest.er1 >&5
1941: mv -f conftest.er1 conftest.err
1942: fi
1943: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944: test $ac_status = 0; } > conftest.i && {
1945: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1946: test ! -s conftest.err
1947: }; then :
1948: ac_retval=0
1949: else
1950: $as_echo "$as_me: failed program was:" >&5
1951: sed 's/^/| /' conftest.$ac_ext >&5
1952:
1953: ac_retval=1
1954: fi
1955: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956: as_fn_set_status $ac_retval
1957:
1958: } # ac_fn_cxx_try_cpp
1959:
1960: # ac_fn_cxx_try_link LINENO
1961: # -------------------------
1962: # Try to link conftest.$ac_ext, and return whether this succeeded.
1963: ac_fn_cxx_try_link ()
1964: {
1965: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966: rm -f conftest.$ac_objext conftest$ac_exeext
1967: if { { ac_try="$ac_link"
1968: case "(($ac_try" in
1969: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970: *) ac_try_echo=$ac_try;;
1971: esac
1972: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973: $as_echo "$ac_try_echo"; } >&5
1974: (eval "$ac_link") 2>conftest.err
1975: ac_status=$?
1976: if test -s conftest.err; then
1977: grep -v '^ *+' conftest.err >conftest.er1
1978: cat conftest.er1 >&5
1979: mv -f conftest.er1 conftest.err
1980: fi
1981: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982: test $ac_status = 0; } && {
1983: test -z "$ac_cxx_werror_flag" ||
1984: test ! -s conftest.err
1985: } && test -s conftest$ac_exeext && {
1986: test "$cross_compiling" = yes ||
1.166 moko 1987: test -x conftest$ac_exeext
1.150 moko 1988: }; then :
1989: ac_retval=0
1990: else
1991: $as_echo "$as_me: failed program was:" >&5
1992: sed 's/^/| /' conftest.$ac_ext >&5
1993:
1994: ac_retval=1
1995: fi
1996: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998: # interfere with the next link command; also delete a directory that is
1999: # left behind by Apple's compiler. We do this before executing the actions.
2000: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002: as_fn_set_status $ac_retval
2003:
2004: } # ac_fn_cxx_try_link
2005:
2006: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2007: # ---------------------------------------------
2008: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2009: # accordingly.
2010: ac_fn_c_check_decl ()
2011: {
2012: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013: as_decl_name=`echo $2|sed 's/ *(.*//'`
2014: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2016: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2017: if eval \${$3+:} false; then :
2018: $as_echo_n "(cached) " >&6
2019: else
2020: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021: /* end confdefs.h. */
2022: $4
2023: int
2024: main ()
2025: {
2026: #ifndef $as_decl_name
2027: #ifdef __cplusplus
2028: (void) $as_decl_use;
2029: #else
2030: (void) $as_decl_name;
2031: #endif
2032: #endif
2033:
2034: ;
2035: return 0;
2036: }
2037: _ACEOF
2038: if ac_fn_c_try_compile "$LINENO"; then :
2039: eval "$3=yes"
2040: else
2041: eval "$3=no"
2042: fi
2043: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044: fi
2045: eval ac_res=\$$3
2046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047: $as_echo "$ac_res" >&6; }
2048: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049:
2050: } # ac_fn_c_check_decl
2051:
2052: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053: # -------------------------------------------
2054: # Tests whether TYPE exists after having included INCLUDES, setting cache
2055: # variable VAR accordingly.
2056: ac_fn_c_check_type ()
2057: {
2058: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060: $as_echo_n "checking for $2... " >&6; }
2061: if eval \${$3+:} false; then :
2062: $as_echo_n "(cached) " >&6
2063: else
2064: eval "$3=no"
2065: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066: /* end confdefs.h. */
2067: $4
2068: int
2069: main ()
2070: {
2071: if (sizeof ($2))
2072: return 0;
2073: ;
2074: return 0;
2075: }
2076: _ACEOF
2077: if ac_fn_c_try_compile "$LINENO"; then :
2078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079: /* end confdefs.h. */
2080: $4
2081: int
2082: main ()
2083: {
2084: if (sizeof (($2)))
2085: return 0;
2086: ;
2087: return 0;
2088: }
2089: _ACEOF
2090: if ac_fn_c_try_compile "$LINENO"; then :
2091:
2092: else
2093: eval "$3=yes"
2094: fi
2095: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096: fi
2097: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098: fi
2099: eval ac_res=\$$3
2100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101: $as_echo "$ac_res" >&6; }
2102: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103:
2104: } # ac_fn_c_check_type
2105:
1.156 moko 2106: # ac_fn_c_find_uintX_t LINENO BITS VAR
2107: # ------------------------------------
2108: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2109: # accordingly.
2110: ac_fn_c_find_uintX_t ()
2111: {
2112: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2114: $as_echo_n "checking for uint$2_t... " >&6; }
2115: if eval \${$3+:} false; then :
2116: $as_echo_n "(cached) " >&6
2117: else
2118: eval "$3=no"
2119: # Order is important - never check a type that is potentially smaller
2120: # than half of the expected target width.
2121: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2122: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124: /* end confdefs.h. */
2125: $ac_includes_default
2126: int
2127: main ()
2128: {
2129: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2130: test_array [0] = 0;
2131: return test_array [0];
1.156 moko 2132:
2133: ;
2134: return 0;
2135: }
2136: _ACEOF
2137: if ac_fn_c_try_compile "$LINENO"; then :
2138: case $ac_type in #(
2139: uint$2_t) :
2140: eval "$3=yes" ;; #(
2141: *) :
2142: eval "$3=\$ac_type" ;;
2143: esac
2144: fi
2145: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146: if eval test \"x\$"$3"\" = x"no"; then :
2147:
2148: else
2149: break
2150: fi
2151: done
2152: fi
2153: eval ac_res=\$$3
2154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155: $as_echo "$ac_res" >&6; }
2156: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157:
2158: } # ac_fn_c_find_uintX_t
2159:
1.161 moko 2160: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2161: # ----------------------------------------------------
2162: # Tries to find if the field MEMBER exists in type AGGR, after including
2163: # INCLUDES, setting cache variable VAR accordingly.
2164: ac_fn_c_check_member ()
2165: {
2166: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2168: $as_echo_n "checking for $2.$3... " >&6; }
2169: if eval \${$4+:} false; then :
2170: $as_echo_n "(cached) " >&6
2171: else
2172: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173: /* end confdefs.h. */
2174: $5
2175: int
2176: main ()
2177: {
2178: static $2 ac_aggr;
2179: if (ac_aggr.$3)
2180: return 0;
2181: ;
2182: return 0;
2183: }
2184: _ACEOF
2185: if ac_fn_c_try_compile "$LINENO"; then :
2186: eval "$4=yes"
2187: else
2188: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189: /* end confdefs.h. */
2190: $5
2191: int
2192: main ()
2193: {
2194: static $2 ac_aggr;
2195: if (sizeof ac_aggr.$3)
2196: return 0;
2197: ;
2198: return 0;
2199: }
2200: _ACEOF
2201: if ac_fn_c_try_compile "$LINENO"; then :
2202: eval "$4=yes"
2203: else
2204: eval "$4=no"
2205: fi
2206: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207: fi
2208: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209: fi
2210: eval ac_res=\$$4
2211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212: $as_echo "$ac_res" >&6; }
2213: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214:
2215: } # ac_fn_c_check_member
2216:
1.150 moko 2217: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2218: # -------------------------------------------------------
2219: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2220: # the include files in INCLUDES and setting the cache variable VAR
2221: # accordingly.
2222: ac_fn_c_check_header_mongrel ()
2223: {
2224: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225: if eval \${$3+:} false; then :
2226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227: $as_echo_n "checking for $2... " >&6; }
2228: if eval \${$3+:} false; then :
2229: $as_echo_n "(cached) " >&6
2230: fi
2231: eval ac_res=\$$3
2232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233: $as_echo "$ac_res" >&6; }
2234: else
2235: # Is the header compilable?
2236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2237: $as_echo_n "checking $2 usability... " >&6; }
2238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239: /* end confdefs.h. */
2240: $4
2241: #include <$2>
2242: _ACEOF
2243: if ac_fn_c_try_compile "$LINENO"; then :
2244: ac_header_compiler=yes
2245: else
2246: ac_header_compiler=no
2247: fi
2248: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2250: $as_echo "$ac_header_compiler" >&6; }
2251:
2252: # Is the header present?
2253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2254: $as_echo_n "checking $2 presence... " >&6; }
2255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256: /* end confdefs.h. */
2257: #include <$2>
2258: _ACEOF
2259: if ac_fn_c_try_cpp "$LINENO"; then :
2260: ac_header_preproc=yes
2261: else
2262: ac_header_preproc=no
2263: fi
2264: rm -f conftest.err conftest.i conftest.$ac_ext
2265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2266: $as_echo "$ac_header_preproc" >&6; }
2267:
2268: # So? What about this header?
2269: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2270: yes:no: )
2271: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2272: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2273: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2274: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2275: ;;
2276: no:yes:* )
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2278: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2279: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2280: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2281: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2282: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2283: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2284: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2285: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2286: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2287: ;;
2288: esac
2289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290: $as_echo_n "checking for $2... " >&6; }
2291: if eval \${$3+:} false; then :
2292: $as_echo_n "(cached) " >&6
2293: else
2294: eval "$3=\$ac_header_compiler"
2295: fi
2296: eval ac_res=\$$3
2297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298: $as_echo "$ac_res" >&6; }
2299: fi
2300: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301:
2302: } # ac_fn_c_check_header_mongrel
2303: cat >config.log <<_ACEOF
2304: This file contains any messages produced by compilers while
2305: running configure, to aid debugging if configure makes a mistake.
2306:
1.186 moko 2307: It was created by parser $as_me 3.4.6b, which was
1.166 moko 2308: generated by GNU Autoconf 2.69. Invocation command line was
1.150 moko 2309:
2310: $ $0 $@
2311:
2312: _ACEOF
2313: exec 5>>config.log
2314: {
2315: cat <<_ASUNAME
2316: ## --------- ##
2317: ## Platform. ##
2318: ## --------- ##
2319:
2320: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2325:
2326: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2328:
2329: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2330: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2331: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2332: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2333: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2334: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2335: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2336:
2337: _ASUNAME
2338:
2339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340: for as_dir in $PATH
2341: do
2342: IFS=$as_save_IFS
2343: test -z "$as_dir" && as_dir=.
1.150 moko 2344: $as_echo "PATH: $as_dir"
2345: done
2346: IFS=$as_save_IFS
1.1 paf 2347:
1.62 paf 2348: } >&5
2349:
2350: cat >&5 <<_ACEOF
2351:
2352:
2353: ## ----------- ##
2354: ## Core tests. ##
2355: ## ----------- ##
2356:
2357: _ACEOF
2358:
2359:
2360: # Keep a trace of the command line.
2361: # Strip out --no-create and --no-recursion so they do not pile up.
2362: # Strip out --silent because we don't want to record it for future runs.
2363: # Also quote any args containing shell meta-characters.
2364: # Make two passes to allow for proper duplicate-argument suppression.
2365: ac_configure_args=
2366: ac_configure_args0=
2367: ac_configure_args1=
2368: ac_must_keep_next=false
2369: for ac_pass in 1 2
2370: do
2371: for ac_arg
2372: do
2373: case $ac_arg in
2374: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2375: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2376: | -silent | --silent | --silen | --sile | --sil)
2377: continue ;;
1.150 moko 2378: *\'*)
2379: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2380: esac
2381: case $ac_pass in
1.150 moko 2382: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2383: 2)
1.150 moko 2384: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2385: if test $ac_must_keep_next = true; then
1.86 paf 2386: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2387: else
1.86 paf 2388: case $ac_arg in
2389: *=* | --config-cache | -C | -disable-* | --disable-* \
2390: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2391: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2392: | -with-* | --with-* | -without-* | --without-* | --x)
2393: case "$ac_configure_args0 " in
2394: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395: esac
2396: ;;
2397: -* ) ac_must_keep_next=true ;;
2398: esac
1.62 paf 2399: fi
1.150 moko 2400: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2401: ;;
2402: esac
2403: done
2404: done
1.150 moko 2405: { ac_configure_args0=; unset ac_configure_args0;}
2406: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2407:
2408: # When interrupted or exit'd, cleanup temporary files, and complete
2409: # config.log. We remove comments because anyway the quotes in there
2410: # would cause problems or look ugly.
1.150 moko 2411: # WARNING: Use '\'' to represent an apostrophe within the trap.
2412: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2413: trap 'exit_status=$?
2414: # Save into config.log some information that might help in debugging.
2415: {
2416: echo
2417:
1.150 moko 2418: $as_echo "## ---------------- ##
1.62 paf 2419: ## Cache variables. ##
1.150 moko 2420: ## ---------------- ##"
1.62 paf 2421: echo
2422: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2423: (
2424: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425: eval ac_val=\$$ac_var
2426: case $ac_val in #(
2427: *${as_nl}*)
2428: case $ac_var in #(
2429: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431: esac
2432: case $ac_var in #(
2433: _ | IFS | as_nl) ;; #(
2434: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435: *) { eval $ac_var=; unset $ac_var;} ;;
2436: esac ;;
2437: esac
2438: done
1.62 paf 2439: (set) 2>&1 |
1.150 moko 2440: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441: *${as_nl}ac_space=\ *)
1.62 paf 2442: sed -n \
1.150 moko 2443: "s/'\''/'\''\\\\'\'''\''/g;
2444: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445: ;; #(
1.62 paf 2446: *)
1.150 moko 2447: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2448: ;;
1.150 moko 2449: esac |
2450: sort
2451: )
1.62 paf 2452: echo
2453:
1.150 moko 2454: $as_echo "## ----------------- ##
1.62 paf 2455: ## Output variables. ##
1.150 moko 2456: ## ----------------- ##"
1.62 paf 2457: echo
2458: for ac_var in $ac_subst_vars
2459: do
1.150 moko 2460: eval ac_val=\$$ac_var
2461: case $ac_val in
2462: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463: esac
2464: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2465: done | sort
2466: echo
2467:
2468: if test -n "$ac_subst_files"; then
1.150 moko 2469: $as_echo "## ------------------- ##
2470: ## File substitutions. ##
2471: ## ------------------- ##"
1.62 paf 2472: echo
2473: for ac_var in $ac_subst_files
2474: do
1.150 moko 2475: eval ac_val=\$$ac_var
2476: case $ac_val in
2477: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478: esac
2479: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2480: done | sort
2481: echo
2482: fi
2483:
2484: if test -s confdefs.h; then
1.150 moko 2485: $as_echo "## ----------- ##
1.62 paf 2486: ## confdefs.h. ##
1.150 moko 2487: ## ----------- ##"
1.62 paf 2488: echo
1.150 moko 2489: cat confdefs.h
1.62 paf 2490: echo
2491: fi
2492: test "$ac_signal" != 0 &&
1.150 moko 2493: $as_echo "$as_me: caught signal $ac_signal"
2494: $as_echo "$as_me: exit $exit_status"
1.62 paf 2495: } >&5
1.150 moko 2496: rm -f core *.core core.conftest.* &&
2497: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2498: exit $exit_status
1.150 moko 2499: ' 0
1.62 paf 2500: for ac_signal in 1 2 13 15; do
1.150 moko 2501: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2502: done
2503: ac_signal=0
2504:
2505: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2506: rm -f -r conftest* confdefs.h
2507:
2508: $as_echo "/* confdefs.h */" > confdefs.h
1.62 paf 2509:
2510: # Predefined preprocessor variables.
2511:
2512: cat >>confdefs.h <<_ACEOF
2513: #define PACKAGE_NAME "$PACKAGE_NAME"
2514: _ACEOF
2515:
2516: cat >>confdefs.h <<_ACEOF
2517: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2518: _ACEOF
2519:
2520: cat >>confdefs.h <<_ACEOF
2521: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2522: _ACEOF
2523:
2524: cat >>confdefs.h <<_ACEOF
2525: #define PACKAGE_STRING "$PACKAGE_STRING"
2526: _ACEOF
2527:
1.150 moko 2528: cat >>confdefs.h <<_ACEOF
2529: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2530: _ACEOF
1.62 paf 2531:
2532: cat >>confdefs.h <<_ACEOF
1.150 moko 2533: #define PACKAGE_URL "$PACKAGE_URL"
1.62 paf 2534: _ACEOF
2535:
2536:
2537: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2538: # Prefer an explicitly selected file to automatically selected ones.
2539: ac_site_file1=NONE
2540: ac_site_file2=NONE
2541: if test -n "$CONFIG_SITE"; then
2542: # We do not want a PATH search for config.site.
2543: case $CONFIG_SITE in #((
2544: -*) ac_site_file1=./$CONFIG_SITE;;
2545: */*) ac_site_file1=$CONFIG_SITE;;
2546: *) ac_site_file1=./$CONFIG_SITE;;
2547: esac
2548: elif test "x$prefix" != xNONE; then
2549: ac_site_file1=$prefix/share/config.site
2550: ac_site_file2=$prefix/etc/config.site
2551: else
2552: ac_site_file1=$ac_default_prefix/share/config.site
2553: ac_site_file2=$ac_default_prefix/etc/config.site
2554: fi
2555: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2556: do
2557: test "x$ac_site_file" = xNONE && continue
2558: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2559: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2560: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2561: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2562: . "$ac_site_file" \
2563: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565: as_fn_error $? "failed to load site script $ac_site_file
2566: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2567: fi
2568: done
2569:
2570: if test -r "$cache_file"; then
1.150 moko 2571: # Some versions of bash will fail to source /dev/null (special files
2572: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2573: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2574: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2575: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2576: case $cache_file in
1.150 moko 2577: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2578: *) . "./$cache_file";;
1.62 paf 2579: esac
2580: fi
1.1 paf 2581: else
1.150 moko 2582: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2583: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2584: >$cache_file
2585: fi
2586:
2587: # Check that the precious variables saved in the cache have kept the same
2588: # value.
2589: ac_cache_corrupted=false
1.150 moko 2590: for ac_var in $ac_precious_vars; do
1.62 paf 2591: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2592: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 2593: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2594: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 2595: case $ac_old_set,$ac_new_set in
2596: set,)
1.150 moko 2597: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.62 paf 2599: ac_cache_corrupted=: ;;
2600: ,set)
1.150 moko 2601: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.62 paf 2603: ac_cache_corrupted=: ;;
2604: ,);;
2605: *)
2606: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 2607: # differences in whitespace do not lead to failure.
2608: ac_old_val_w=`echo x $ac_old_val`
2609: ac_new_val_w=`echo x $ac_new_val`
2610: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613: ac_cache_corrupted=:
2614: else
2615: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617: eval $ac_var=\$ac_old_val
2618: fi
2619: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2620: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2621: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2622: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.62 paf 2623: fi;;
2624: esac
2625: # Pass precious variables to config.status.
2626: if test "$ac_new_set" = set; then
2627: case $ac_new_val in
1.150 moko 2628: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2629: *) ac_arg=$ac_var=$ac_new_val ;;
2630: esac
2631: case " $ac_configure_args " in
2632: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 2633: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 2634: esac
2635: fi
2636: done
2637: if $ac_cache_corrupted; then
1.150 moko 2638: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2642: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2643: fi
2644: ## -------------------- ##
2645: ## Main body of script. ##
2646: ## -------------------- ##
1.1 paf 2647:
2648: ac_ext=c
2649: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 2650: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653:
2654:
2655:
2656:
2657:
1.187 moko 2658: am__api_version='1.15'
1.62 paf 2659:
1.1 paf 2660: ac_aux_dir=
1.150 moko 2661: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2662: if test -f "$ac_dir/install-sh"; then
1.1 paf 2663: ac_aux_dir=$ac_dir
2664: ac_install_sh="$ac_aux_dir/install-sh -c"
2665: break
1.150 moko 2666: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2667: ac_aux_dir=$ac_dir
2668: ac_install_sh="$ac_aux_dir/install.sh -c"
2669: break
1.150 moko 2670: elif test -f "$ac_dir/shtool"; then
1.62 paf 2671: ac_aux_dir=$ac_dir
2672: ac_install_sh="$ac_aux_dir/shtool install -c"
2673: break
1.1 paf 2674: fi
2675: done
2676: if test -z "$ac_aux_dir"; then
1.150 moko 2677: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2678: fi
2679:
2680: # These three variables are undocumented and unsupported,
2681: # and are intended to be withdrawn in a future Autoconf release.
2682: # They can cause serious problems if a builder's source tree is in a directory
2683: # whose full name contains unusual characters.
2684: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2685: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2686: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2687:
1.1 paf 2688:
2689: # Find a good install program. We prefer a C program (faster),
2690: # so one script is as good as another. But avoid the broken or
2691: # incompatible versions:
2692: # SysV /etc/install, /usr/sbin/install
2693: # SunOS /usr/etc/install
2694: # IRIX /sbin/install
2695: # AIX /bin/install
1.62 paf 2696: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2697: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2698: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2699: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 2700: # OS/2's system install, which has a completely different semantic
1.1 paf 2701: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 2702: # Reject install programs that cannot install multiple files.
2703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2704: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2705: if test -z "$INSTALL"; then
1.150 moko 2706: if ${ac_cv_path_install+:} false; then :
2707: $as_echo_n "(cached) " >&6
1.1 paf 2708: else
1.62 paf 2709: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710: for as_dir in $PATH
2711: do
2712: IFS=$as_save_IFS
2713: test -z "$as_dir" && as_dir=.
1.150 moko 2714: # Account for people who put trailing slashes in PATH elements.
2715: case $as_dir/ in #((
2716: ./ | .// | /[cC]/* | \
1.62 paf 2717: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 2718: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 2719: /usr/ucb/* ) ;;
2720: *)
2721: # OSF1 and SCO ODT 3.0 have their own names for install.
2722: # Don't use installbsd from OSF since it installs stuff as root
2723: # by default.
2724: for ac_prog in ginstall scoinst install; do
2725: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2726: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.86 paf 2727: if test $ac_prog = install &&
2728: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729: # AIX install. It has an incompatible calling convention.
2730: :
2731: elif test $ac_prog = install &&
2732: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733: # program-specific install script used by HP pwplus--don't use.
2734: :
2735: else
1.150 moko 2736: rm -rf conftest.one conftest.two conftest.dir
2737: echo one > conftest.one
2738: echo two > conftest.two
2739: mkdir conftest.dir
2740: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2741: test -s conftest.one && test -s conftest.two &&
2742: test -s conftest.dir/conftest.one &&
2743: test -s conftest.dir/conftest.two
2744: then
2745: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2746: break 3
2747: fi
1.86 paf 2748: fi
2749: fi
1.1 paf 2750: done
1.62 paf 2751: done
2752: ;;
2753: esac
2754:
1.150 moko 2755: done
2756: IFS=$as_save_IFS
2757:
2758: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2759:
2760: fi
2761: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 2762: INSTALL=$ac_cv_path_install
1.1 paf 2763: else
1.150 moko 2764: # As a last resort, use the slow shell script. Don't cache a
2765: # value for INSTALL within a source directory, because that will
1.1 paf 2766: # break other packages using the cache if that directory is
1.150 moko 2767: # removed, or if the value is a relative name.
1.62 paf 2768: INSTALL=$ac_install_sh
1.1 paf 2769: fi
2770: fi
1.150 moko 2771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2772: $as_echo "$INSTALL" >&6; }
1.1 paf 2773:
2774: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2775: # It thinks the first close brace ends the variable substitution.
2776: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2777:
1.62 paf 2778: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2779:
2780: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2781:
1.150 moko 2782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2783: $as_echo_n "checking whether build environment is sane... " >&6; }
2784: # Reject unsafe characters in $srcdir or the absolute working directory
2785: # name. Accept space and tab only in the latter.
2786: am_lf='
2787: '
2788: case `pwd` in
2789: *[\\\"\#\$\&\'\`$am_lf]*)
2790: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2791: esac
2792: case $srcdir in
2793: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 2794: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 2795: esac
2796:
1.187 moko 2797: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 2798: # arguments. Must try -L first in case configure is actually a
2799: # symlink; some systems play weird games with the mod time of symlinks
2800: # (eg FreeBSD returns the mod time of the symlink's containing
2801: # directory).
2802: if (
1.187 moko 2803: am_has_slept=no
2804: for am_try in 1 2; do
2805: echo "timestamp, slept: $am_has_slept" > conftest.file
2806: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2807: if test "$*" = "X"; then
2808: # -L didn't work.
2809: set X `ls -t "$srcdir/configure" conftest.file`
2810: fi
2811: if test "$*" != "X $srcdir/configure conftest.file" \
2812: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2813:
1.187 moko 2814: # If neither matched, then we have a broken ls. This can happen
2815: # if, for instance, CONFIG_SHELL is bash and it inherits a
2816: # broken ls alias from the environment. This has actually
2817: # happened. Such a system could not be considered "sane".
2818: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2819: alias in your environment" "$LINENO" 5
2820: fi
2821: if test "$2" = conftest.file || test $am_try -eq 2; then
2822: break
2823: fi
2824: # Just in case.
2825: sleep 1
2826: am_has_slept=yes
2827: done
1.62 paf 2828: test "$2" = conftest.file
1.1 paf 2829: )
2830: then
2831: # Ok.
2832: :
2833: else
1.150 moko 2834: as_fn_error $? "newly created file is older than distributed files!
2835: Check your system clock" "$LINENO" 5
1.1 paf 2836: fi
1.150 moko 2837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838: $as_echo "yes" >&6; }
1.187 moko 2839: # If we didn't sleep, we still need to ensure time stamps of config.status and
2840: # generated files are strictly newer.
2841: am_sleep_pid=
2842: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2843: ( sleep 1 ) &
2844: am_sleep_pid=$!
2845: fi
2846:
2847: rm -f conftest.file
2848:
1.1 paf 2849: test "$program_prefix" != NONE &&
1.150 moko 2850: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2851: # Use a double $ so make ignores it.
2852: test "$program_suffix" != NONE &&
1.150 moko 2853: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2854: # Double any \ or $.
1.62 paf 2855: # By default was `s,x,x', remove it if useless.
1.150 moko 2856: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2857: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.62 paf 2858:
1.187 moko 2859: # Expand $ac_aux_dir to an absolute path.
2860: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 2861:
1.150 moko 2862: if test x"${MISSING+set}" != xset; then
2863: case $am_aux_dir in
2864: *\ * | *\ *)
2865: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2866: *)
2867: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2868: esac
2869: fi
1.62 paf 2870: # Use eval to expand $SHELL
1.187 moko 2871: if eval "$MISSING --is-lightweight"; then
2872: am_missing_run="$MISSING "
1.62 paf 2873: else
2874: am_missing_run=
1.187 moko 2875: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2876: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 2877: fi
2878:
1.187 moko 2879: if test x"${install_sh+set}" != xset; then
1.150 moko 2880: case $am_aux_dir in
2881: *\ * | *\ *)
2882: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2883: *)
2884: install_sh="\${SHELL} $am_aux_dir/install-sh"
2885: esac
1.86 paf 2886: fi
2887:
1.187 moko 2888: # Installed binaries are usually stripped using 'strip' when the user
2889: # run "make install-strip". However 'strip' might not be the right
1.150 moko 2890: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 2891: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 2892: if test "$cross_compiling" != no; then
2893: if test -n "$ac_tool_prefix"; then
2894: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2895: set dummy ${ac_tool_prefix}strip; ac_word=$2
2896: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897: $as_echo_n "checking for $ac_word... " >&6; }
2898: if ${ac_cv_prog_STRIP+:} false; then :
2899: $as_echo_n "(cached) " >&6
2900: else
2901: if test -n "$STRIP"; then
2902: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2903: else
2904: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905: for as_dir in $PATH
2906: do
2907: IFS=$as_save_IFS
2908: test -z "$as_dir" && as_dir=.
2909: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2910: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2911: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2912: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913: break 2
2914: fi
2915: done
2916: done
2917: IFS=$as_save_IFS
2918:
2919: fi
2920: fi
2921: STRIP=$ac_cv_prog_STRIP
2922: if test -n "$STRIP"; then
2923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2924: $as_echo "$STRIP" >&6; }
2925: else
2926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927: $as_echo "no" >&6; }
2928: fi
2929:
2930:
2931: fi
2932: if test -z "$ac_cv_prog_STRIP"; then
2933: ac_ct_STRIP=$STRIP
2934: # Extract the first word of "strip", so it can be a program name with args.
2935: set dummy strip; ac_word=$2
2936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937: $as_echo_n "checking for $ac_word... " >&6; }
2938: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2939: $as_echo_n "(cached) " >&6
2940: else
2941: if test -n "$ac_ct_STRIP"; then
2942: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2943: else
2944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945: for as_dir in $PATH
2946: do
2947: IFS=$as_save_IFS
2948: test -z "$as_dir" && as_dir=.
2949: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2950: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2951: ac_cv_prog_ac_ct_STRIP="strip"
2952: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953: break 2
2954: fi
2955: done
2956: done
2957: IFS=$as_save_IFS
2958:
2959: fi
2960: fi
2961: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2962: if test -n "$ac_ct_STRIP"; then
2963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2964: $as_echo "$ac_ct_STRIP" >&6; }
2965: else
2966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967: $as_echo "no" >&6; }
2968: fi
2969:
2970: if test "x$ac_ct_STRIP" = x; then
2971: STRIP=":"
2972: else
2973: case $cross_compiling:$ac_tool_warned in
2974: yes:)
2975: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977: ac_tool_warned=yes ;;
2978: esac
2979: STRIP=$ac_ct_STRIP
2980: fi
2981: else
2982: STRIP="$ac_cv_prog_STRIP"
2983: fi
2984:
2985: fi
2986: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2987:
2988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2989: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2990: if test -z "$MKDIR_P"; then
2991: if ${ac_cv_path_mkdir+:} false; then :
2992: $as_echo_n "(cached) " >&6
2993: else
2994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2996: do
2997: IFS=$as_save_IFS
2998: test -z "$as_dir" && as_dir=.
2999: for ac_prog in mkdir gmkdir; do
3000: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3001: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.150 moko 3002: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3003: 'mkdir (GNU coreutils) '* | \
3004: 'mkdir (coreutils) '* | \
3005: 'mkdir (fileutils) '4.1*)
3006: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3007: break 3;;
3008: esac
3009: done
3010: done
3011: done
3012: IFS=$as_save_IFS
3013:
3014: fi
3015:
3016: test -d ./--version && rmdir ./--version
3017: if test "${ac_cv_path_mkdir+set}" = set; then
3018: MKDIR_P="$ac_cv_path_mkdir -p"
3019: else
3020: # As a last resort, use the slow shell script. Don't cache a
3021: # value for MKDIR_P within a source directory, because that will
3022: # break other packages using the cache if that directory is
3023: # removed, or if the value is a relative name.
3024: MKDIR_P="$ac_install_sh -d"
3025: fi
3026: fi
3027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3028: $as_echo "$MKDIR_P" >&6; }
3029:
3030: for ac_prog in gawk mawk nawk awk
1.62 paf 3031: do
3032: # Extract the first word of "$ac_prog", so it can be a program name with args.
3033: set dummy $ac_prog; ac_word=$2
1.150 moko 3034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035: $as_echo_n "checking for $ac_word... " >&6; }
3036: if ${ac_cv_prog_AWK+:} false; then :
3037: $as_echo_n "(cached) " >&6
1.62 paf 3038: else
3039: if test -n "$AWK"; then
3040: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041: else
3042: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043: for as_dir in $PATH
3044: do
3045: IFS=$as_save_IFS
3046: test -z "$as_dir" && as_dir=.
1.150 moko 3047: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3048: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3049: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3050: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3051: break 2
3052: fi
3053: done
1.150 moko 3054: done
3055: IFS=$as_save_IFS
1.62 paf 3056:
3057: fi
3058: fi
3059: AWK=$ac_cv_prog_AWK
3060: if test -n "$AWK"; then
1.150 moko 3061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3062: $as_echo "$AWK" >&6; }
1.62 paf 3063: else
1.150 moko 3064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065: $as_echo "no" >&6; }
1.62 paf 3066: fi
1.1 paf 3067:
1.150 moko 3068:
1.62 paf 3069: test -n "$AWK" && break
3070: done
1.1 paf 3071:
1.150 moko 3072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3073: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3074: set x ${MAKE-make}
3075: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3076: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3077: $as_echo_n "(cached) " >&6
1.1 paf 3078: else
1.62 paf 3079: cat >conftest.make <<\_ACEOF
1.150 moko 3080: SHELL = /bin/sh
1.1 paf 3081: all:
1.150 moko 3082: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3083: _ACEOF
1.150 moko 3084: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3085: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3086: *@@@%%%=?*=@@@%%%*)
3087: eval ac_cv_prog_make_${ac_make}_set=yes;;
3088: *)
3089: eval ac_cv_prog_make_${ac_make}_set=no;;
3090: esac
1.62 paf 3091: rm -f conftest.make
1.1 paf 3092: fi
1.150 moko 3093: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095: $as_echo "yes" >&6; }
1.1 paf 3096: SET_MAKE=
3097: else
1.150 moko 3098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099: $as_echo "no" >&6; }
1.1 paf 3100: SET_MAKE="MAKE=${MAKE-make}"
3101: fi
3102:
1.86 paf 3103: rm -rf .tst 2>/dev/null
3104: mkdir .tst 2>/dev/null
3105: if test -d .tst; then
3106: am__leading_dot=.
3107: else
3108: am__leading_dot=_
3109: fi
3110: rmdir .tst 2>/dev/null
3111:
1.187 moko 3112: # Check whether --enable-silent-rules was given.
3113: if test "${enable_silent_rules+set}" = set; then :
3114: enableval=$enable_silent_rules;
3115: fi
3116:
3117: case $enable_silent_rules in # (((
3118: yes) AM_DEFAULT_VERBOSITY=0;;
3119: no) AM_DEFAULT_VERBOSITY=1;;
3120: *) AM_DEFAULT_VERBOSITY=1;;
3121: esac
3122: am_make=${MAKE-make}
3123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3124: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3125: if ${am_cv_make_support_nested_variables+:} false; then :
3126: $as_echo_n "(cached) " >&6
3127: else
3128: if $as_echo 'TRUE=$(BAR$(V))
3129: BAR0=false
3130: BAR1=true
3131: V=1
3132: am__doit:
3133: @$(TRUE)
3134: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3135: am_cv_make_support_nested_variables=yes
3136: else
3137: am_cv_make_support_nested_variables=no
3138: fi
3139: fi
3140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3141: $as_echo "$am_cv_make_support_nested_variables" >&6; }
3142: if test $am_cv_make_support_nested_variables = yes; then
3143: AM_V='$(V)'
3144: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3145: else
3146: AM_V=$AM_DEFAULT_VERBOSITY
3147: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3148: fi
3149: AM_BACKSLASH='\'
3150:
1.150 moko 3151: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3152: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3153: # is not polluted with repeated "-I."
3154: am__isrc=' -I$(srcdir)'
3155: # test to see if srcdir already configured
3156: if test -f $srcdir/config.status; then
3157: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3158: fi
1.62 paf 3159: fi
3160:
3161: # test whether we have cygpath
3162: if test -z "$CYGPATH_W"; then
3163: if (cygpath --version) >/dev/null 2>/dev/null; then
3164: CYGPATH_W='cygpath -w'
3165: else
3166: CYGPATH_W=echo
3167: fi
3168: fi
3169:
3170:
3171: # Define the identity of the package.
1.128 moko 3172: PACKAGE='parser'
1.186 moko 3173: VERSION='3.4.6b'
1.128 moko 3174:
3175:
3176: cat >>confdefs.h <<_ACEOF
3177: #define PACKAGE "$PACKAGE"
3178: _ACEOF
1.1 paf 3179:
3180:
1.128 moko 3181: cat >>confdefs.h <<_ACEOF
3182: #define VERSION "$VERSION"
3183: _ACEOF
3184:
1.62 paf 3185: # Some tools Automake needs.
3186:
3187: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3188:
3189:
3190: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3191:
3192:
3193: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3194:
3195:
3196: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3197:
3198:
3199: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 3200:
1.187 moko 3201: # For better backward compatibility. To be removed once Automake 1.9.x
3202: # dies out for good. For more background, see:
3203: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3204: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3205: mkdir_p='$(MKDIR_P)'
3206:
3207: # We need awk for the "check" target (and possibly the TAP driver). The
3208: # system "awk" is bad on some platforms.
3209: # Always define AMTAR for backward compatibility. Yes, it's still used
3210: # in the wild :-( We should find a proper way to deprecate it ...
3211: AMTAR='$${TAR-tar}'
3212:
3213:
3214: # We'll loop over all known methods to create a tar archive until one works.
3215: _am_tools='gnutar pax cpio none'
3216:
3217: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3218:
1.86 paf 3219:
3220:
3221:
3222:
1.62 paf 3223:
1.187 moko 3224: # POSIX will say in a future version that running "rm -f" with no argument
3225: # is OK; and we want to be able to make that assumption in our Makefile
3226: # recipes. So use an aggressive probe to check that the usage we want is
3227: # actually supported "in the wild" to an acceptable degree.
3228: # See automake bug#10828.
3229: # To make any issue more visible, cause the running configure to be aborted
3230: # by default if the 'rm' program in use doesn't match our expectations; the
3231: # user can still override this though.
3232: if rm -f && rm -fr && rm -rf; then : OK; else
3233: cat >&2 <<'END'
3234: Oops!
1.1 paf 3235:
1.187 moko 3236: Your 'rm' program seems unable to run without file operands specified
3237: on the command line, even when the '-f' option is present. This is contrary
3238: to the behaviour of most rm programs out there, and not conforming with
3239: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3240:
3241: Please tell bug-automake@gnu.org about your system, including the value
3242: of your $PATH and any error possibly output before this message. This
3243: can help us improve future automake versions.
3244:
3245: END
3246: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3247: echo 'Configuration will proceed anyway, since you have set the' >&2
3248: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3249: echo >&2
3250: else
3251: cat >&2 <<'END'
3252: Aborting the configuration process, to ensure you take notice of the issue.
3253:
3254: You can download and install GNU coreutils to get an 'rm' implementation
3255: that behaves properly: <http://www.gnu.org/software/coreutils/>.
3256:
3257: If you want to complete the configuration process using your problematic
3258: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3259: to "yes", and re-run configure.
3260:
3261: END
3262: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3263: fi
3264: fi
1.1 paf 3265:
3266:
1.128 moko 3267:
1.12 paf 3268: P3S=`cd $srcdir/src ; pwd`
1.1 paf 3269:
3270:
1.128 moko 3271:
1.41 paf 3272: # Make sure we can run config.sub.
1.150 moko 3273: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3274: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.62 paf 3275:
1.150 moko 3276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3277: $as_echo_n "checking build system type... " >&6; }
3278: if ${ac_cv_build+:} false; then :
3279: $as_echo_n "(cached) " >&6
3280: else
3281: ac_build_alias=$build_alias
3282: test "x$ac_build_alias" = x &&
3283: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3284: test "x$ac_build_alias" = x &&
3285: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3286: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3287: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3288:
3289: fi
3290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3291: $as_echo "$ac_cv_build" >&6; }
3292: case $ac_cv_build in
3293: *-*-*) ;;
3294: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3295: esac
3296: build=$ac_cv_build
3297: ac_save_IFS=$IFS; IFS='-'
3298: set x $ac_cv_build
3299: shift
3300: build_cpu=$1
3301: build_vendor=$2
3302: shift; shift
3303: # Remember, the first character of IFS is used to create $*,
3304: # except with old shells:
3305: build_os=$*
3306: IFS=$ac_save_IFS
3307: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3308:
3309:
3310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3311: $as_echo_n "checking host system type... " >&6; }
3312: if ${ac_cv_host+:} false; then :
3313: $as_echo_n "(cached) " >&6
3314: else
3315: if test "x$host_alias" = x; then
3316: ac_cv_host=$ac_cv_build
3317: else
3318: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3319: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.62 paf 3320: fi
3321:
3322: fi
1.150 moko 3323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3324: $as_echo "$ac_cv_host" >&6; }
3325: case $ac_cv_host in
3326: *-*-*) ;;
3327: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3328: esac
1.62 paf 3329: host=$ac_cv_host
1.150 moko 3330: ac_save_IFS=$IFS; IFS='-'
3331: set x $ac_cv_host
3332: shift
3333: host_cpu=$1
3334: host_vendor=$2
3335: shift; shift
3336: # Remember, the first character of IFS is used to create $*,
3337: # except with old shells:
3338: host_os=$*
3339: IFS=$ac_save_IFS
3340: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 3341:
3342:
3343:
1.148 moko 3344: cat >>confdefs.h <<_ACEOF
3345: #define PARSER_VERSION "$VERSION (compiled on $host)"
1.147 moko 3346: _ACEOF
3347:
3348:
1.41 paf 3349:
1.67 paf 3350: case $host_os in
3351: *cygwin* )
1.150 moko 3352: $as_echo "#define CYGWIN /**/" >>confdefs.h
1.67 paf 3353: ;;
3354: esac
1.41 paf 3355:
1.128 moko 3356:
1.1 paf 3357:
1.62 paf 3358: for ac_prog in gawk mawk nawk awk
1.41 paf 3359: do
1.62 paf 3360: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3361: set dummy $ac_prog; ac_word=$2
1.150 moko 3362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363: $as_echo_n "checking for $ac_word... " >&6; }
3364: if ${ac_cv_prog_AWK+:} false; then :
3365: $as_echo_n "(cached) " >&6
1.41 paf 3366: else
3367: if test -n "$AWK"; then
3368: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3369: else
1.62 paf 3370: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371: for as_dir in $PATH
3372: do
3373: IFS=$as_save_IFS
3374: test -z "$as_dir" && as_dir=.
1.150 moko 3375: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3376: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3377: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3378: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3379: break 2
3380: fi
3381: done
1.150 moko 3382: done
3383: IFS=$as_save_IFS
1.62 paf 3384:
1.41 paf 3385: fi
3386: fi
1.62 paf 3387: AWK=$ac_cv_prog_AWK
1.41 paf 3388: if test -n "$AWK"; then
1.150 moko 3389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3390: $as_echo "$AWK" >&6; }
1.41 paf 3391: else
1.150 moko 3392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393: $as_echo "no" >&6; }
1.41 paf 3394: fi
3395:
1.150 moko 3396:
1.62 paf 3397: test -n "$AWK" && break
1.41 paf 3398: done
3399:
3400:
3401: for ac_prog in 'bison -y' byacc
3402: do
1.62 paf 3403: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3404: set dummy $ac_prog; ac_word=$2
1.150 moko 3405: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406: $as_echo_n "checking for $ac_word... " >&6; }
3407: if ${ac_cv_prog_YACC+:} false; then :
3408: $as_echo_n "(cached) " >&6
1.41 paf 3409: else
3410: if test -n "$YACC"; then
3411: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3412: else
1.62 paf 3413: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414: for as_dir in $PATH
3415: do
3416: IFS=$as_save_IFS
3417: test -z "$as_dir" && as_dir=.
1.150 moko 3418: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3419: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3420: ac_cv_prog_YACC="$ac_prog"
1.150 moko 3421: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3422: break 2
3423: fi
3424: done
1.150 moko 3425: done
3426: IFS=$as_save_IFS
1.62 paf 3427:
1.41 paf 3428: fi
3429: fi
1.62 paf 3430: YACC=$ac_cv_prog_YACC
1.41 paf 3431: if test -n "$YACC"; then
1.150 moko 3432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3433: $as_echo "$YACC" >&6; }
1.41 paf 3434: else
1.150 moko 3435: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436: $as_echo "no" >&6; }
1.41 paf 3437: fi
3438:
1.150 moko 3439:
1.62 paf 3440: test -n "$YACC" && break
1.41 paf 3441: done
3442: test -n "$YACC" || YACC="yacc"
3443:
3444: if test "$YACC" != "bison -y"; then
1.150 moko 3445: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
3446: $as_echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 3447: else
1.150 moko 3448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
3449: $as_echo_n "checking bison version... " >&6; }
1.67 paf 3450: oldIFS=$IFS; IFS=.
3451: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
3452: IFS=$oldIFS
3453: if test "$1" = "1" -a "$2" -lt "25"; then
1.150 moko 3454: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
3455: $as_echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 3456: fi
1.150 moko 3457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
3458: $as_echo "$1.$2 (ok)" >&6; }
1.62 paf 3459: fi
3460:
1.150 moko 3461: ac_ext=cpp
1.66 paf 3462: ac_cpp='$CXXCPP $CPPFLAGS'
3463: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 3466: if test -z "$CXX"; then
3467: if test -n "$CCC"; then
3468: CXX=$CCC
3469: else
3470: if test -n "$ac_tool_prefix"; then
3471: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3472: do
3473: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3474: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 3475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476: $as_echo_n "checking for $ac_word... " >&6; }
3477: if ${ac_cv_prog_CXX+:} false; then :
3478: $as_echo_n "(cached) " >&6
1.62 paf 3479: else
1.66 paf 3480: if test -n "$CXX"; then
3481: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 3482: else
3483: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484: for as_dir in $PATH
3485: do
3486: IFS=$as_save_IFS
3487: test -z "$as_dir" && as_dir=.
1.150 moko 3488: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3489: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3490: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.150 moko 3491: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3492: break 2
3493: fi
3494: done
1.150 moko 3495: done
3496: IFS=$as_save_IFS
1.62 paf 3497:
3498: fi
3499: fi
1.66 paf 3500: CXX=$ac_cv_prog_CXX
3501: if test -n "$CXX"; then
1.150 moko 3502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3503: $as_echo "$CXX" >&6; }
1.62 paf 3504: else
1.150 moko 3505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506: $as_echo "no" >&6; }
1.41 paf 3507: fi
3508:
1.150 moko 3509:
1.66 paf 3510: test -n "$CXX" && break
3511: done
1.62 paf 3512: fi
1.66 paf 3513: if test -z "$CXX"; then
3514: ac_ct_CXX=$CXX
1.150 moko 3515: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3516: do
3517: # Extract the first word of "$ac_prog", so it can be a program name with args.
3518: set dummy $ac_prog; ac_word=$2
1.150 moko 3519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520: $as_echo_n "checking for $ac_word... " >&6; }
3521: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3522: $as_echo_n "(cached) " >&6
1.62 paf 3523: else
1.66 paf 3524: if test -n "$ac_ct_CXX"; then
3525: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 3526: else
3527: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528: for as_dir in $PATH
3529: do
3530: IFS=$as_save_IFS
3531: test -z "$as_dir" && as_dir=.
1.150 moko 3532: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3533: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3534: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.150 moko 3535: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3536: break 2
3537: fi
3538: done
1.150 moko 3539: done
3540: IFS=$as_save_IFS
1.62 paf 3541:
3542: fi
3543: fi
1.66 paf 3544: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3545: if test -n "$ac_ct_CXX"; then
1.150 moko 3546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3547: $as_echo "$ac_ct_CXX" >&6; }
1.62 paf 3548: else
1.150 moko 3549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550: $as_echo "no" >&6; }
1.62 paf 3551: fi
3552:
1.150 moko 3553:
1.66 paf 3554: test -n "$ac_ct_CXX" && break
3555: done
3556:
1.150 moko 3557: if test "x$ac_ct_CXX" = x; then
3558: CXX="g++"
3559: else
3560: case $cross_compiling:$ac_tool_warned in
3561: yes:)
3562: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3563: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3564: ac_tool_warned=yes ;;
3565: esac
3566: CXX=$ac_ct_CXX
3567: fi
1.62 paf 3568: fi
3569:
1.150 moko 3570: fi
3571: fi
1.66 paf 3572: # Provide some information about the compiler.
1.150 moko 3573: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3574: set X $ac_compile
3575: ac_compiler=$2
3576: for ac_option in --version -v -V -qversion; do
3577: { { ac_try="$ac_compiler $ac_option >&5"
3578: case "(($ac_try" in
3579: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580: *) ac_try_echo=$ac_try;;
3581: esac
3582: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583: $as_echo "$ac_try_echo"; } >&5
3584: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 3585: ac_status=$?
1.150 moko 3586: if test -s conftest.err; then
3587: sed '10a\
3588: ... rest of stderr output deleted ...
3589: 10q' conftest.err >conftest.er1
3590: cat conftest.er1 >&5
3591: fi
3592: rm -f conftest.er1 conftest.err
3593: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594: test $ac_status = 0; }
3595: done
1.66 paf 3596:
1.150 moko 3597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3598: /* end confdefs.h. */
3599:
3600: int
3601: main ()
3602: {
3603:
3604: ;
3605: return 0;
3606: }
3607: _ACEOF
3608: ac_clean_files_save=$ac_clean_files
1.150 moko 3609: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 3610: # Try to create an executable without -o first, disregard a.out.
3611: # It will help us diagnose broken compilers, and finding out an intuition
3612: # of exeext.
1.150 moko 3613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3614: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3615: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3616:
3617: # The possible output files:
3618: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3619:
3620: ac_rmfiles=
3621: for ac_file in $ac_files
3622: do
3623: case $ac_file in
3624: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626: esac
3627: done
3628: rm -f $ac_rmfiles
3629:
3630: if { { ac_try="$ac_link_default"
3631: case "(($ac_try" in
3632: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633: *) ac_try_echo=$ac_try;;
3634: esac
3635: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636: $as_echo "$ac_try_echo"; } >&5
3637: (eval "$ac_link_default") 2>&5
3638: ac_status=$?
3639: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640: test $ac_status = 0; }; then :
3641: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3642: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3643: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3644: # so that the user can short-circuit this test for compilers unknown to
3645: # Autoconf.
3646: for ac_file in $ac_files ''
1.62 paf 3647: do
1.66 paf 3648: test -f "$ac_file" || continue
3649: case $ac_file in
1.150 moko 3650: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 3651: ;;
1.66 paf 3652: [ab].out )
1.86 paf 3653: # We found the default executable, but exeext='' is most
3654: # certainly right.
3655: break;;
1.66 paf 3656: *.* )
1.150 moko 3657: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3658: then :; else
3659: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660: fi
3661: # We set ac_cv_exeext here because the later test for it is not
3662: # safe: cross compilers may not add the suffix if given an `-o'
3663: # argument, so we may need to know it at that point already.
3664: # Even if this section looks crufty: it has the advantage of
3665: # actually working.
1.86 paf 3666: break;;
1.66 paf 3667: * )
1.86 paf 3668: break;;
1.66 paf 3669: esac
1.62 paf 3670: done
1.150 moko 3671: test "$ac_cv_exeext" = no && ac_cv_exeext=
3672:
1.66 paf 3673: else
1.150 moko 3674: ac_file=''
3675: fi
3676: if test -z "$ac_file"; then :
3677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678: $as_echo "no" >&6; }
3679: $as_echo "$as_me: failed program was:" >&5
1.66 paf 3680: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3681:
1.150 moko 3682: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684: as_fn_error 77 "C++ compiler cannot create executables
3685: See \`config.log' for more details" "$LINENO" 5; }
3686: else
3687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3688: $as_echo "yes" >&6; }
1.1 paf 3689: fi
1.150 moko 3690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3691: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3693: $as_echo "$ac_file" >&6; }
1.66 paf 3694: ac_exeext=$ac_cv_exeext
1.62 paf 3695:
1.150 moko 3696: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 3697: ac_clean_files=$ac_clean_files_save
1.150 moko 3698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3699: $as_echo_n "checking for suffix of executables... " >&6; }
3700: if { { ac_try="$ac_link"
3701: case "(($ac_try" in
3702: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703: *) ac_try_echo=$ac_try;;
3704: esac
3705: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706: $as_echo "$ac_try_echo"; } >&5
3707: (eval "$ac_link") 2>&5
1.62 paf 3708: ac_status=$?
1.150 moko 3709: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710: test $ac_status = 0; }; then :
1.62 paf 3711: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3712: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3713: # work properly (i.e., refer to `conftest.exe'), while it won't with
3714: # `rm'.
3715: for ac_file in conftest.exe conftest conftest.*; do
3716: test -f "$ac_file" || continue
3717: case $ac_file in
1.150 moko 3718: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 3719: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 3720: break;;
1.62 paf 3721: * ) break;;
3722: esac
3723: done
3724: else
1.150 moko 3725: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3728: See \`config.log' for more details" "$LINENO" 5; }
3729: fi
3730: rm -f conftest conftest$ac_cv_exeext
3731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3732: $as_echo "$ac_cv_exeext" >&6; }
1.62 paf 3733:
3734: rm -f conftest.$ac_ext
3735: EXEEXT=$ac_cv_exeext
3736: ac_exeext=$EXEEXT
1.150 moko 3737: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738: /* end confdefs.h. */
3739: #include <stdio.h>
3740: int
3741: main ()
3742: {
3743: FILE *f = fopen ("conftest.out", "w");
3744: return ferror (f) || fclose (f) != 0;
3745:
3746: ;
3747: return 0;
3748: }
3749: _ACEOF
3750: ac_clean_files="$ac_clean_files conftest.out"
3751: # Check that the compiler produces executables we can run. If not, either
3752: # the compiler is broken, or we cross compile.
3753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3754: $as_echo_n "checking whether we are cross compiling... " >&6; }
3755: if test "$cross_compiling" != yes; then
3756: { { ac_try="$ac_link"
3757: case "(($ac_try" in
3758: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759: *) ac_try_echo=$ac_try;;
3760: esac
3761: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762: $as_echo "$ac_try_echo"; } >&5
3763: (eval "$ac_link") 2>&5
3764: ac_status=$?
3765: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766: test $ac_status = 0; }
3767: if { ac_try='./conftest$ac_cv_exeext'
3768: { { case "(($ac_try" in
3769: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770: *) ac_try_echo=$ac_try;;
3771: esac
3772: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773: $as_echo "$ac_try_echo"; } >&5
3774: (eval "$ac_try") 2>&5
3775: ac_status=$?
3776: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777: test $ac_status = 0; }; }; then
3778: cross_compiling=no
3779: else
3780: if test "$cross_compiling" = maybe; then
3781: cross_compiling=yes
3782: else
3783: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785: as_fn_error $? "cannot run C++ compiled programs.
3786: If you meant to cross compile, use \`--host'.
3787: See \`config.log' for more details" "$LINENO" 5; }
3788: fi
3789: fi
3790: fi
3791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3792: $as_echo "$cross_compiling" >&6; }
3793:
3794: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3795: ac_clean_files=$ac_clean_files_save
3796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3797: $as_echo_n "checking for suffix of object files... " >&6; }
3798: if ${ac_cv_objext+:} false; then :
3799: $as_echo_n "(cached) " >&6
1.62 paf 3800: else
1.150 moko 3801: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3802: /* end confdefs.h. */
3803:
3804: int
3805: main ()
3806: {
3807:
3808: ;
3809: return 0;
3810: }
3811: _ACEOF
3812: rm -f conftest.o conftest.obj
1.150 moko 3813: if { { ac_try="$ac_compile"
3814: case "(($ac_try" in
3815: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816: *) ac_try_echo=$ac_try;;
3817: esac
3818: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819: $as_echo "$ac_try_echo"; } >&5
3820: (eval "$ac_compile") 2>&5
3821: ac_status=$?
3822: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823: test $ac_status = 0; }; then :
3824: for ac_file in conftest.o conftest.obj conftest.*; do
3825: test -f "$ac_file" || continue;
1.62 paf 3826: case $ac_file in
1.150 moko 3827: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 3828: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3829: break;;
3830: esac
3831: done
3832: else
1.150 moko 3833: $as_echo "$as_me: failed program was:" >&5
1.62 paf 3834: sed 's/^/| /' conftest.$ac_ext >&5
3835:
1.150 moko 3836: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838: as_fn_error $? "cannot compute suffix of object files: cannot compile
3839: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 3840: fi
3841: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3842: fi
1.150 moko 3843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3844: $as_echo "$ac_cv_objext" >&6; }
1.66 paf 3845: OBJEXT=$ac_cv_objext
3846: ac_objext=$OBJEXT
1.150 moko 3847: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3848: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3849: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3850: $as_echo_n "(cached) " >&6
1.62 paf 3851: else
1.150 moko 3852: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3853: /* end confdefs.h. */
1.66 paf 3854:
1.62 paf 3855: int
3856: main ()
3857: {
1.66 paf 3858: #ifndef __GNUC__
3859: choke me
3860: #endif
3861:
1.62 paf 3862: ;
3863: return 0;
3864: }
3865: _ACEOF
1.150 moko 3866: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3867: ac_compiler_gnu=yes
1.62 paf 3868: else
1.150 moko 3869: ac_compiler_gnu=no
1.1 paf 3870: fi
1.150 moko 3871: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3872: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 3873:
3874: fi
1.150 moko 3875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3876: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3877: if test $ac_compiler_gnu = yes; then
3878: GXX=yes
3879: else
3880: GXX=
3881: fi
1.66 paf 3882: ac_test_CXXFLAGS=${CXXFLAGS+set}
3883: ac_save_CXXFLAGS=$CXXFLAGS
1.150 moko 3884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3885: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3886: if ${ac_cv_prog_cxx_g+:} false; then :
3887: $as_echo_n "(cached) " >&6
3888: else
3889: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3890: ac_cxx_werror_flag=yes
3891: ac_cv_prog_cxx_g=no
3892: CXXFLAGS="-g"
3893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3894: /* end confdefs.h. */
1.1 paf 3895:
1.66 paf 3896: int
3897: main ()
3898: {
1.1 paf 3899:
1.66 paf 3900: ;
3901: return 0;
3902: }
1.62 paf 3903: _ACEOF
1.150 moko 3904: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3905: ac_cv_prog_cxx_g=yes
3906: else
1.150 moko 3907: CXXFLAGS=""
3908: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909: /* end confdefs.h. */
1.66 paf 3910:
1.62 paf 3911: int
3912: main ()
3913: {
1.150 moko 3914:
1.62 paf 3915: ;
3916: return 0;
3917: }
3918: _ACEOF
1.150 moko 3919: if ac_fn_cxx_try_compile "$LINENO"; then :
3920:
1.1 paf 3921: else
1.150 moko 3922: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3923: CXXFLAGS="-g"
3924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925: /* end confdefs.h. */
1.62 paf 3926:
3927: int
3928: main ()
3929: {
1.150 moko 3930:
1.62 paf 3931: ;
3932: return 0;
3933: }
3934: _ACEOF
1.150 moko 3935: if ac_fn_cxx_try_compile "$LINENO"; then :
3936: ac_cv_prog_cxx_g=yes
3937: fi
3938: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939: fi
3940: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941: fi
3942: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3944: fi
3945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3946: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3947: if test "$ac_test_CXXFLAGS" = set; then
3948: CXXFLAGS=$ac_save_CXXFLAGS
3949: elif test $ac_cv_prog_cxx_g = yes; then
3950: if test "$GXX" = yes; then
3951: CXXFLAGS="-g -O2"
3952: else
3953: CXXFLAGS="-g"
3954: fi
1.1 paf 3955: else
1.150 moko 3956: if test "$GXX" = yes; then
3957: CXXFLAGS="-O2"
3958: else
3959: CXXFLAGS=
3960: fi
1.1 paf 3961: fi
1.62 paf 3962: ac_ext=c
3963: ac_cpp='$CPP $CPPFLAGS'
3964: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 3967: DEPDIR="${am__leading_dot}deps"
1.62 paf 3968:
1.150 moko 3969: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 3970:
3971:
3972: am_make=${MAKE-make}
3973: cat > confinc << 'END'
1.86 paf 3974: am__doit:
1.150 moko 3975: @echo this is the am__doit target
1.86 paf 3976: .PHONY: am__doit
1.62 paf 3977: END
3978: # If we don't find an include directive, just comment out the code.
1.150 moko 3979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3980: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.62 paf 3981: am__include="#"
3982: am__quote=
3983: _am_result=none
3984: # First try GNU make style include.
3985: echo "include confinc" > confmf
1.187 moko 3986: # Ignore all kinds of additional output from 'make'.
1.150 moko 3987: case `$am_make -s -f confmf 2> /dev/null` in #(
3988: *the\ am__doit\ target*)
3989: am__include=include
3990: am__quote=
3991: _am_result=GNU
3992: ;;
3993: esac
1.62 paf 3994: # Now try BSD make style include.
3995: if test "$am__include" = "#"; then
3996: echo '.include "confinc"' > confmf
1.150 moko 3997: case `$am_make -s -f confmf 2> /dev/null` in #(
3998: *the\ am__doit\ target*)
3999: am__include=.include
4000: am__quote="\""
4001: _am_result=BSD
4002: ;;
4003: esac
1.62 paf 4004: fi
4005:
4006:
1.150 moko 4007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4008: $as_echo "$_am_result" >&6; }
1.62 paf 4009: rm -f confinc confmf
4010:
1.150 moko 4011: # Check whether --enable-dependency-tracking was given.
4012: if test "${enable_dependency_tracking+set}" = set; then :
4013: enableval=$enable_dependency_tracking;
4014: fi
1.62 paf 4015:
4016: if test "x$enable_dependency_tracking" != xno; then
4017: am_depcomp="$ac_aux_dir/depcomp"
4018: AMDEPBACKSLASH='\'
1.187 moko 4019: am__nodep='_no'
1.1 paf 4020: fi
1.150 moko 4021: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 4022: AMDEP_TRUE=
4023: AMDEP_FALSE='#'
4024: else
4025: AMDEP_TRUE='#'
4026: AMDEP_FALSE=
4027: fi
1.1 paf 4028:
4029:
4030:
1.66 paf 4031: depcc="$CXX" am_compiler_list=
1.1 paf 4032:
1.150 moko 4033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4034: $as_echo_n "checking dependency style of $depcc... " >&6; }
4035: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4036: $as_echo_n "(cached) " >&6
1.62 paf 4037: else
4038: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4039: # We make a subdir and do the tests there. Otherwise we can end up
4040: # making bogus files that we don't know about and never remove. For
4041: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4042: # making a dummy file named 'D' -- because '-MD' means "put the output
4043: # in D".
4044: rm -rf conftest.dir
1.62 paf 4045: mkdir conftest.dir
4046: # Copy depcomp to subdir because otherwise we won't find it if we're
4047: # using a relative directory.
4048: cp "$am_depcomp" conftest.dir
4049: cd conftest.dir
1.86 paf 4050: # We will build objects and dependencies in a subdirectory because
4051: # it helps to detect inapplicable dependency modes. For instance
4052: # both Tru64's cc and ICC support -MD to output dependencies as a
4053: # side effect of compilation, but ICC will put the dependencies in
4054: # the current directory while Tru64 will put them in the object
4055: # directory.
4056: mkdir sub
1.1 paf 4057:
1.66 paf 4058: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 4059: if test "$am_compiler_list" = ""; then
4060: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 4061: fi
1.150 moko 4062: am__universal=false
4063: case " $depcc " in #(
4064: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4065: esac
4066:
1.62 paf 4067: for depmode in $am_compiler_list; do
1.86 paf 4068: # Setup a source with many dependencies, because some compilers
4069: # like to wrap large dependency lists on column 80 (with \), and
4070: # we should not choose a depcomp mode which is confused by this.
4071: #
1.62 paf 4072: # We need to recreate these files for each test, as the compiler may
4073: # overwrite some of them when testing with obscure command lines.
4074: # This happens at least with the AIX C compiler.
1.86 paf 4075: : > sub/conftest.c
4076: for i in 1 2 3 4 5 6; do
4077: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4078: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4079: # Solaris 10 /bin/sh.
4080: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4081: done
4082: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4083:
1.187 moko 4084: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4085: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4086: # handle '-M -o', and we need to detect this. Also, some Intel
4087: # versions had trouble with output in subdirs.
1.150 moko 4088: am__obj=sub/conftest.${OBJEXT-o}
4089: am__minus_obj="-o $am__obj"
1.62 paf 4090: case $depmode in
1.150 moko 4091: gcc)
4092: # This depmode causes a compiler race in universal mode.
4093: test "$am__universal" = false || continue
4094: ;;
1.62 paf 4095: nosideeffect)
1.187 moko 4096: # After this tag, mechanisms are not by side-effect, so they'll
4097: # only be used when explicitly requested.
1.62 paf 4098: if test "x$enable_dependency_tracking" = xyes; then
4099: continue
4100: else
4101: break
4102: fi
4103: ;;
1.187 moko 4104: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4105: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4106: # not run yet. These depmodes are late enough in the game, and
4107: # so weak that their functioning should not be impacted.
4108: am__obj=conftest.${OBJEXT-o}
4109: am__minus_obj=
4110: ;;
1.62 paf 4111: none) break ;;
4112: esac
4113: if depmode=$depmode \
1.150 moko 4114: source=sub/conftest.c object=$am__obj \
1.86 paf 4115: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4116: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4117: >/dev/null 2>conftest.err &&
1.150 moko 4118: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4119: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4120: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 4121: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4122: # icc doesn't choke on unknown options, it will just issue warnings
4123: # or remarks (even with -Werror). So we grep stderr for any message
4124: # that says an option was ignored or not supported.
4125: # When given -MP, icc 7.0 and 7.1 complain thusly:
4126: # icc: Command line warning: ignoring option '-M'; no argument required
4127: # The diagnosis changed in icc 8.0:
4128: # icc: Command line remark: option '-MP' not supported
4129: if (grep 'ignoring option' conftest.err ||
4130: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4131: am_cv_CXX_dependencies_compiler_type=$depmode
4132: break
4133: fi
1.66 paf 4134: fi
4135: done
4136:
4137: cd ..
4138: rm -rf conftest.dir
4139: else
4140: am_cv_CXX_dependencies_compiler_type=none
4141: fi
4142:
4143: fi
1.150 moko 4144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4145: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 4146: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4147:
1.150 moko 4148: if
1.66 paf 4149: test "x$enable_dependency_tracking" != xno \
4150: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4151: am__fastdepCXX_TRUE=
4152: am__fastdepCXX_FALSE='#'
4153: else
4154: am__fastdepCXX_TRUE='#'
4155: am__fastdepCXX_FALSE=
4156: fi
4157:
4158:
4159: ac_ext=c
4160: ac_cpp='$CPP $CPPFLAGS'
4161: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164: if test -n "$ac_tool_prefix"; then
4165: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4166: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.150 moko 4167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168: $as_echo_n "checking for $ac_word... " >&6; }
4169: if ${ac_cv_prog_CC+:} false; then :
4170: $as_echo_n "(cached) " >&6
1.66 paf 4171: else
4172: if test -n "$CC"; then
4173: ac_cv_prog_CC="$CC" # Let the user override the test.
4174: else
4175: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176: for as_dir in $PATH
4177: do
4178: IFS=$as_save_IFS
4179: test -z "$as_dir" && as_dir=.
1.150 moko 4180: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4181: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4182: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.150 moko 4183: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4184: break 2
4185: fi
4186: done
1.150 moko 4187: done
4188: IFS=$as_save_IFS
1.66 paf 4189:
4190: fi
4191: fi
4192: CC=$ac_cv_prog_CC
4193: if test -n "$CC"; then
1.150 moko 4194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4195: $as_echo "$CC" >&6; }
1.66 paf 4196: else
1.150 moko 4197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198: $as_echo "no" >&6; }
1.66 paf 4199: fi
4200:
1.150 moko 4201:
1.66 paf 4202: fi
4203: if test -z "$ac_cv_prog_CC"; then
4204: ac_ct_CC=$CC
4205: # Extract the first word of "gcc", so it can be a program name with args.
4206: set dummy gcc; ac_word=$2
1.150 moko 4207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208: $as_echo_n "checking for $ac_word... " >&6; }
4209: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4210: $as_echo_n "(cached) " >&6
1.66 paf 4211: else
4212: if test -n "$ac_ct_CC"; then
4213: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4214: else
4215: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216: for as_dir in $PATH
4217: do
4218: IFS=$as_save_IFS
4219: test -z "$as_dir" && as_dir=.
1.150 moko 4220: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4221: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4222: ac_cv_prog_ac_ct_CC="gcc"
1.150 moko 4223: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4224: break 2
4225: fi
4226: done
1.150 moko 4227: done
4228: IFS=$as_save_IFS
1.66 paf 4229:
4230: fi
4231: fi
4232: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4233: if test -n "$ac_ct_CC"; then
1.150 moko 4234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4235: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4236: else
1.150 moko 4237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238: $as_echo "no" >&6; }
1.62 paf 4239: fi
4240:
1.150 moko 4241: if test "x$ac_ct_CC" = x; then
4242: CC=""
4243: else
4244: case $cross_compiling:$ac_tool_warned in
4245: yes:)
4246: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248: ac_tool_warned=yes ;;
4249: esac
4250: CC=$ac_ct_CC
4251: fi
1.66 paf 4252: else
4253: CC="$ac_cv_prog_CC"
1.1 paf 4254: fi
1.62 paf 4255:
1.66 paf 4256: if test -z "$CC"; then
1.150 moko 4257: if test -n "$ac_tool_prefix"; then
4258: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 4259: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.150 moko 4260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261: $as_echo_n "checking for $ac_word... " >&6; }
4262: if ${ac_cv_prog_CC+:} false; then :
4263: $as_echo_n "(cached) " >&6
1.66 paf 4264: else
4265: if test -n "$CC"; then
4266: ac_cv_prog_CC="$CC" # Let the user override the test.
4267: else
4268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269: for as_dir in $PATH
4270: do
4271: IFS=$as_save_IFS
4272: test -z "$as_dir" && as_dir=.
1.150 moko 4273: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4274: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4275: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.150 moko 4276: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4277: break 2
4278: fi
4279: done
1.150 moko 4280: done
4281: IFS=$as_save_IFS
1.62 paf 4282:
1.66 paf 4283: fi
4284: fi
4285: CC=$ac_cv_prog_CC
4286: if test -n "$CC"; then
1.150 moko 4287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288: $as_echo "$CC" >&6; }
1.62 paf 4289: else
1.150 moko 4290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291: $as_echo "no" >&6; }
1.1 paf 4292: fi
4293:
1.150 moko 4294:
1.66 paf 4295: fi
1.1 paf 4296: fi
1.66 paf 4297: if test -z "$CC"; then
4298: # Extract the first word of "cc", so it can be a program name with args.
4299: set dummy cc; ac_word=$2
1.150 moko 4300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301: $as_echo_n "checking for $ac_word... " >&6; }
4302: if ${ac_cv_prog_CC+:} false; then :
4303: $as_echo_n "(cached) " >&6
1.66 paf 4304: else
4305: if test -n "$CC"; then
4306: ac_cv_prog_CC="$CC" # Let the user override the test.
4307: else
4308: ac_prog_rejected=no
4309: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310: for as_dir in $PATH
4311: do
4312: IFS=$as_save_IFS
4313: test -z "$as_dir" && as_dir=.
1.150 moko 4314: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4315: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4316: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4317: ac_prog_rejected=yes
4318: continue
4319: fi
4320: ac_cv_prog_CC="cc"
1.150 moko 4321: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4322: break 2
4323: fi
4324: done
1.150 moko 4325: done
4326: IFS=$as_save_IFS
1.62 paf 4327:
1.66 paf 4328: if test $ac_prog_rejected = yes; then
4329: # We found a bogon in the path, so make sure we never use it.
4330: set dummy $ac_cv_prog_CC
4331: shift
4332: if test $# != 0; then
4333: # We chose a different compiler from the bogus one.
4334: # However, it has the same basename, so the bogon will be chosen
4335: # first if we set CC to just the basename; use the full file name.
4336: shift
4337: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4338: fi
4339: fi
4340: fi
4341: fi
4342: CC=$ac_cv_prog_CC
4343: if test -n "$CC"; then
1.150 moko 4344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345: $as_echo "$CC" >&6; }
1.66 paf 4346: else
1.150 moko 4347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348: $as_echo "no" >&6; }
1.1 paf 4349: fi
4350:
1.150 moko 4351:
1.66 paf 4352: fi
4353: if test -z "$CC"; then
4354: if test -n "$ac_tool_prefix"; then
1.150 moko 4355: for ac_prog in cl.exe
1.62 paf 4356: do
4357: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 4359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360: $as_echo_n "checking for $ac_word... " >&6; }
4361: if ${ac_cv_prog_CC+:} false; then :
4362: $as_echo_n "(cached) " >&6
1.62 paf 4363: else
1.66 paf 4364: if test -n "$CC"; then
4365: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 4366: else
4367: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368: for as_dir in $PATH
4369: do
4370: IFS=$as_save_IFS
4371: test -z "$as_dir" && as_dir=.
1.150 moko 4372: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4373: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4374: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.150 moko 4375: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4376: break 2
4377: fi
4378: done
1.150 moko 4379: done
4380: IFS=$as_save_IFS
1.1 paf 4381:
1.62 paf 4382: fi
4383: fi
1.66 paf 4384: CC=$ac_cv_prog_CC
4385: if test -n "$CC"; then
1.150 moko 4386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387: $as_echo "$CC" >&6; }
1.1 paf 4388: else
1.150 moko 4389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390: $as_echo "no" >&6; }
1.1 paf 4391: fi
4392:
1.150 moko 4393:
1.66 paf 4394: test -n "$CC" && break
1.62 paf 4395: done
4396: fi
1.66 paf 4397: if test -z "$CC"; then
4398: ac_ct_CC=$CC
1.150 moko 4399: for ac_prog in cl.exe
1.62 paf 4400: do
4401: # Extract the first word of "$ac_prog", so it can be a program name with args.
4402: set dummy $ac_prog; ac_word=$2
1.150 moko 4403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404: $as_echo_n "checking for $ac_word... " >&6; }
4405: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4406: $as_echo_n "(cached) " >&6
1.62 paf 4407: else
1.66 paf 4408: if test -n "$ac_ct_CC"; then
4409: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 4410: else
1.62 paf 4411: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412: for as_dir in $PATH
4413: do
4414: IFS=$as_save_IFS
4415: test -z "$as_dir" && as_dir=.
1.150 moko 4416: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4417: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4418: ac_cv_prog_ac_ct_CC="$ac_prog"
1.150 moko 4419: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4420: break 2
4421: fi
4422: done
1.150 moko 4423: done
4424: IFS=$as_save_IFS
1.62 paf 4425:
4426: fi
4427: fi
1.66 paf 4428: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4429: if test -n "$ac_ct_CC"; then
1.150 moko 4430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4431: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4432: else
1.150 moko 4433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434: $as_echo "no" >&6; }
1.1 paf 4435: fi
4436:
1.150 moko 4437:
1.66 paf 4438: test -n "$ac_ct_CC" && break
4439: done
4440:
1.150 moko 4441: if test "x$ac_ct_CC" = x; then
4442: CC=""
4443: else
4444: case $cross_compiling:$ac_tool_warned in
4445: yes:)
4446: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448: ac_tool_warned=yes ;;
4449: esac
4450: CC=$ac_ct_CC
4451: fi
1.66 paf 4452: fi
4453:
4454: fi
1.62 paf 4455:
1.1 paf 4456:
1.150 moko 4457: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459: as_fn_error $? "no acceptable C compiler found in \$PATH
4460: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 4461:
4462: # Provide some information about the compiler.
1.150 moko 4463: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4464: set X $ac_compile
4465: ac_compiler=$2
4466: for ac_option in --version -v -V -qversion; do
4467: { { ac_try="$ac_compiler $ac_option >&5"
4468: case "(($ac_try" in
4469: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470: *) ac_try_echo=$ac_try;;
4471: esac
4472: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473: $as_echo "$ac_try_echo"; } >&5
4474: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 4475: ac_status=$?
1.150 moko 4476: if test -s conftest.err; then
4477: sed '10a\
4478: ... rest of stderr output deleted ...
4479: 10q' conftest.err >conftest.er1
4480: cat conftest.er1 >&5
4481: fi
4482: rm -f conftest.er1 conftest.err
4483: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484: test $ac_status = 0; }
4485: done
4486:
4487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4488: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4489: if ${ac_cv_c_compiler_gnu+:} false; then :
4490: $as_echo_n "(cached) " >&6
1.62 paf 4491: else
1.150 moko 4492: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4493: /* end confdefs.h. */
4494:
4495: int
4496: main ()
4497: {
4498: #ifndef __GNUC__
4499: choke me
4500: #endif
4501:
4502: ;
4503: return 0;
4504: }
4505: _ACEOF
1.150 moko 4506: if ac_fn_c_try_compile "$LINENO"; then :
1.62 paf 4507: ac_compiler_gnu=yes
4508: else
1.150 moko 4509: ac_compiler_gnu=no
1.62 paf 4510: fi
1.150 moko 4511: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 4512: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 4513:
4514: fi
1.150 moko 4515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4516: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4517: if test $ac_compiler_gnu = yes; then
4518: GCC=yes
4519: else
4520: GCC=
4521: fi
1.66 paf 4522: ac_test_CFLAGS=${CFLAGS+set}
4523: ac_save_CFLAGS=$CFLAGS
1.150 moko 4524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4526: if ${ac_cv_prog_cc_g+:} false; then :
4527: $as_echo_n "(cached) " >&6
4528: else
4529: ac_save_c_werror_flag=$ac_c_werror_flag
4530: ac_c_werror_flag=yes
4531: ac_cv_prog_cc_g=no
4532: CFLAGS="-g"
4533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4534: /* end confdefs.h. */
4535:
4536: int
4537: main ()
4538: {
4539:
4540: ;
4541: return 0;
4542: }
4543: _ACEOF
1.150 moko 4544: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 4545: ac_cv_prog_cc_g=yes
1.62 paf 4546: else
1.150 moko 4547: CFLAGS=""
4548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549: /* end confdefs.h. */
4550:
4551: int
4552: main ()
4553: {
1.62 paf 4554:
1.150 moko 4555: ;
4556: return 0;
4557: }
4558: _ACEOF
4559: if ac_fn_c_try_compile "$LINENO"; then :
4560:
4561: else
4562: ac_c_werror_flag=$ac_save_c_werror_flag
4563: CFLAGS="-g"
4564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565: /* end confdefs.h. */
4566:
4567: int
4568: main ()
4569: {
4570:
4571: ;
4572: return 0;
4573: }
4574: _ACEOF
4575: if ac_fn_c_try_compile "$LINENO"; then :
4576: ac_cv_prog_cc_g=yes
4577: fi
4578: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4579: fi
1.150 moko 4580: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4581: fi
1.150 moko 4582: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583: ac_c_werror_flag=$ac_save_c_werror_flag
4584: fi
4585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4586: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.66 paf 4587: if test "$ac_test_CFLAGS" = set; then
4588: CFLAGS=$ac_save_CFLAGS
4589: elif test $ac_cv_prog_cc_g = yes; then
4590: if test "$GCC" = yes; then
4591: CFLAGS="-g -O2"
1.1 paf 4592: else
1.66 paf 4593: CFLAGS="-g"
1.1 paf 4594: fi
4595: else
1.66 paf 4596: if test "$GCC" = yes; then
4597: CFLAGS="-O2"
1.1 paf 4598: else
1.66 paf 4599: CFLAGS=
1.1 paf 4600: fi
4601: fi
1.150 moko 4602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4603: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4604: if ${ac_cv_prog_cc_c89+:} false; then :
4605: $as_echo_n "(cached) " >&6
1.66 paf 4606: else
1.150 moko 4607: ac_cv_prog_cc_c89=no
1.66 paf 4608: ac_save_CC=$CC
1.150 moko 4609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4610: /* end confdefs.h. */
4611: #include <stdarg.h>
4612: #include <stdio.h>
1.166 moko 4613: struct stat;
1.66 paf 4614: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4615: struct buf { int x; };
4616: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4617: static char *e (p, i)
4618: char **p;
4619: int i;
4620: {
4621: return p[i];
4622: }
4623: static char *f (char * (*g) (char **, int), char **p, ...)
4624: {
4625: char *s;
4626: va_list v;
4627: va_start (v,p);
4628: s = g (p, va_arg (v,int));
4629: va_end (v);
4630: return s;
4631: }
1.86 paf 4632:
4633: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4634: function prototypes and stuff, but not '\xHH' hex character constants.
4635: These don't provoke an error unfortunately, instead are silently treated
1.150 moko 4636: as 'x'. The following induces an error, until -std is added to get
1.86 paf 4637: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4638: array size at least. It's necessary to write '\x00'==0 to get something
1.150 moko 4639: that's true only with -std. */
1.86 paf 4640: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4641:
1.150 moko 4642: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4643: inside strings and character constants. */
4644: #define FOO(x) 'x'
4645: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4646:
1.66 paf 4647: int test (int i, double x);
4648: struct s1 {int (*f) (int a);};
4649: struct s2 {int (*f) (double a);};
4650: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4651: int argc;
4652: char **argv;
4653: int
4654: main ()
4655: {
4656: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4657: ;
4658: return 0;
4659: }
4660: _ACEOF
1.150 moko 4661: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4662: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 4663: do
4664: CC="$ac_save_CC $ac_arg"
1.150 moko 4665: if ac_fn_c_try_compile "$LINENO"; then :
4666: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 4667: fi
1.150 moko 4668: rm -f core conftest.err conftest.$ac_objext
4669: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 4670: done
1.150 moko 4671: rm -f conftest.$ac_ext
1.66 paf 4672: CC=$ac_save_CC
4673:
4674: fi
1.150 moko 4675: # AC_CACHE_VAL
4676: case "x$ac_cv_prog_cc_c89" in
4677: x)
4678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4679: $as_echo "none needed" >&6; } ;;
4680: xno)
4681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4682: $as_echo "unsupported" >&6; } ;;
1.66 paf 4683: *)
1.150 moko 4684: CC="$CC $ac_cv_prog_cc_c89"
4685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4686: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.66 paf 4687: esac
1.150 moko 4688: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.62 paf 4689:
4690: fi
1.66 paf 4691:
1.62 paf 4692: ac_ext=c
4693: ac_cpp='$CPP $CPPFLAGS'
4694: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697:
1.187 moko 4698: ac_ext=c
4699: ac_cpp='$CPP $CPPFLAGS'
4700: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4704: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4705: if ${am_cv_prog_cc_c_o+:} false; then :
4706: $as_echo_n "(cached) " >&6
4707: else
4708: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709: /* end confdefs.h. */
4710:
4711: int
4712: main ()
4713: {
4714:
4715: ;
4716: return 0;
4717: }
4718: _ACEOF
4719: # Make sure it works both with $CC and with simple cc.
4720: # Following AC_PROG_CC_C_O, we do the test twice because some
4721: # compilers refuse to overwrite an existing .o file with -o,
4722: # though they will create one.
4723: am_cv_prog_cc_c_o=yes
4724: for am_i in 1 2; do
4725: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4726: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4727: ac_status=$?
4728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729: (exit $ac_status); } \
4730: && test -f conftest2.$ac_objext; then
4731: : OK
4732: else
4733: am_cv_prog_cc_c_o=no
4734: break
4735: fi
4736: done
4737: rm -f core conftest*
4738: unset am_i
4739: fi
4740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4741: $as_echo "$am_cv_prog_cc_c_o" >&6; }
4742: if test "$am_cv_prog_cc_c_o" != yes; then
4743: # Losing compiler, so override with the script.
4744: # FIXME: It is wrong to rewrite CC.
4745: # But if we don't then we get into trouble of one sort or another.
4746: # A longer-term fix would be to have automake use am__CC in this case,
4747: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4748: CC="$am_aux_dir/compile $CC"
4749: fi
4750: ac_ext=c
4751: ac_cpp='$CPP $CPPFLAGS'
4752: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755:
4756:
1.66 paf 4757: depcc="$CC" am_compiler_list=
1.62 paf 4758:
1.150 moko 4759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760: $as_echo_n "checking dependency style of $depcc... " >&6; }
4761: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4762: $as_echo_n "(cached) " >&6
1.62 paf 4763: else
4764: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4765: # We make a subdir and do the tests there. Otherwise we can end up
4766: # making bogus files that we don't know about and never remove. For
4767: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4768: # making a dummy file named 'D' -- because '-MD' means "put the output
4769: # in D".
4770: rm -rf conftest.dir
1.62 paf 4771: mkdir conftest.dir
4772: # Copy depcomp to subdir because otherwise we won't find it if we're
4773: # using a relative directory.
4774: cp "$am_depcomp" conftest.dir
4775: cd conftest.dir
1.86 paf 4776: # We will build objects and dependencies in a subdirectory because
4777: # it helps to detect inapplicable dependency modes. For instance
4778: # both Tru64's cc and ICC support -MD to output dependencies as a
4779: # side effect of compilation, but ICC will put the dependencies in
4780: # the current directory while Tru64 will put them in the object
4781: # directory.
4782: mkdir sub
1.62 paf 4783:
1.66 paf 4784: am_cv_CC_dependencies_compiler_type=none
1.62 paf 4785: if test "$am_compiler_list" = ""; then
4786: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4787: fi
1.150 moko 4788: am__universal=false
4789: case " $depcc " in #(
4790: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4791: esac
4792:
1.62 paf 4793: for depmode in $am_compiler_list; do
1.86 paf 4794: # Setup a source with many dependencies, because some compilers
4795: # like to wrap large dependency lists on column 80 (with \), and
4796: # we should not choose a depcomp mode which is confused by this.
4797: #
1.62 paf 4798: # We need to recreate these files for each test, as the compiler may
4799: # overwrite some of them when testing with obscure command lines.
4800: # This happens at least with the AIX C compiler.
1.86 paf 4801: : > sub/conftest.c
4802: for i in 1 2 3 4 5 6; do
4803: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4804: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4805: # Solaris 10 /bin/sh.
4806: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4807: done
4808: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4809:
1.187 moko 4810: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4811: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4812: # handle '-M -o', and we need to detect this. Also, some Intel
4813: # versions had trouble with output in subdirs.
1.150 moko 4814: am__obj=sub/conftest.${OBJEXT-o}
4815: am__minus_obj="-o $am__obj"
1.62 paf 4816: case $depmode in
1.150 moko 4817: gcc)
4818: # This depmode causes a compiler race in universal mode.
4819: test "$am__universal" = false || continue
4820: ;;
1.62 paf 4821: nosideeffect)
1.187 moko 4822: # After this tag, mechanisms are not by side-effect, so they'll
4823: # only be used when explicitly requested.
1.62 paf 4824: if test "x$enable_dependency_tracking" = xyes; then
4825: continue
4826: else
4827: break
4828: fi
4829: ;;
1.187 moko 4830: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4831: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4832: # not run yet. These depmodes are late enough in the game, and
4833: # so weak that their functioning should not be impacted.
4834: am__obj=conftest.${OBJEXT-o}
4835: am__minus_obj=
4836: ;;
1.62 paf 4837: none) break ;;
4838: esac
1.66 paf 4839: if depmode=$depmode \
1.150 moko 4840: source=sub/conftest.c object=$am__obj \
1.86 paf 4841: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4842: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4843: >/dev/null 2>conftest.err &&
1.150 moko 4844: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4845: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4846: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 4847: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4848: # icc doesn't choke on unknown options, it will just issue warnings
4849: # or remarks (even with -Werror). So we grep stderr for any message
4850: # that says an option was ignored or not supported.
4851: # When given -MP, icc 7.0 and 7.1 complain thusly:
4852: # icc: Command line warning: ignoring option '-M'; no argument required
4853: # The diagnosis changed in icc 8.0:
4854: # icc: Command line remark: option '-MP' not supported
4855: if (grep 'ignoring option' conftest.err ||
4856: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4857: am_cv_CC_dependencies_compiler_type=$depmode
4858: break
4859: fi
1.66 paf 4860: fi
4861: done
4862:
4863: cd ..
4864: rm -rf conftest.dir
4865: else
4866: am_cv_CC_dependencies_compiler_type=none
4867: fi
4868:
4869: fi
1.150 moko 4870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4871: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 4872: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4873:
1.150 moko 4874: if
1.66 paf 4875: test "x$enable_dependency_tracking" != xno \
4876: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4877: am__fastdepCC_TRUE=
4878: am__fastdepCC_FALSE='#'
4879: else
4880: am__fastdepCC_TRUE='#'
4881: am__fastdepCC_FALSE=
4882: fi
4883:
4884:
1.128 moko 4885:
1.66 paf 4886: ac_ext=c
4887: ac_cpp='$CPP $CPPFLAGS'
4888: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891:
1.67 paf 4892:
1.62 paf 4893:
1.150 moko 4894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
4895: $as_echo_n "checking for dynamic-link library extension... " >&6; }
1.128 moko 4896: case "$host_os" in
1.158 moko 4897: *cygwin* ) dll_extension=dll;;
4898: * ) dll_extension=so
1.66 paf 4899: esac
1.150 moko 4900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
4901: $as_echo "$dll_extension" >&6; }
1.1 paf 4902:
1.71 paf 4903:
4904:
4905:
1.150 moko 4906: # Check whether --with-build-warnings was given.
4907: if test "${with_build_warnings+set}" = set; then :
4908: withval=$with_build_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
4909: $as_echo "$as_me: WARNING: enabling compiler warnings" >&2;}
1.183 moko 4910: CXXFLAGS="$CXXFLAGS -Wextra -Wall -Wno-parentheses"
1.71 paf 4911:
1.150 moko 4912: fi
4913:
1.1 paf 4914:
4915:
1.182 moko 4916: # Check whether --with-coverage was given.
4917: if test "${with_coverage+set}" = set; then :
4918: withval=$with_coverage; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
4919: $as_echo "$as_me: WARNING: enabling gcov support" >&2;}
4920: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
4921: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
4922: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
4923: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
4924: LDFLAGS="$LDFLAGS -lgcov"
4925:
4926: fi
4927:
4928:
4929:
4930: # Check whether --with-profiler was given.
4931: if test "${with_profiler+set}" = set; then :
4932: withval=$with_profiler; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
4933: $as_echo "$as_me: WARNING: enabling gprof support" >&2;}
1.193 ! moko 4934: CFLAGS="$CFLAGS -O0 -pg -g"
! 4935: CXXFLAGS="$CXXFLAGS -O0 -pg -g"
1.182 moko 4936:
4937: fi
4938:
4939:
4940:
1.150 moko 4941: # Check whether --with-assertions was given.
4942: if test "${with_assertions+set}" = set; then :
4943: withval=$with_assertions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
4944: $as_echo "$as_me: WARNING: enabling assertions" >&2;}
1.67 paf 4945:
4946: else
4947:
1.150 moko 4948: $as_echo "#define NDEBUG /**/" >>confdefs.h
4949:
1.67 paf 4950:
1.150 moko 4951: fi
1.67 paf 4952:
4953:
1.94 misha 4954:
1.150 moko 4955: # Check whether --with-sjlj-exceptions was given.
4956: if test "${with_sjlj_exceptions+set}" = set; then :
4957: withval=$with_sjlj_exceptions;
4958: $as_echo "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 4959:
4960:
1.150 moko 4961: fi
1.128 moko 4962:
4963:
1.62 paf 4964:
1.150 moko 4965: # Check whether --enable-safe-mode was given.
4966: if test "${enable_safe_mode+set}" = set; then :
4967: enableval=$enable_safe_mode;
1.67 paf 4968: SAFE_MODE=$enableval
1.60 paf 4969:
1.1 paf 4970:
1.150 moko 4971: fi
4972:
1.128 moko 4973:
1.60 paf 4974: if test "$SAFE_MODE" = "no"; then
1.150 moko 4975: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
4976: $as_echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 4977: else
1.62 paf 4978:
1.150 moko 4979: $as_echo "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 4980:
4981: fi
4982:
1.94 misha 4983:
1.150 moko 4984: # Check whether --enable-execs was given.
4985: if test "${enable_execs+set}" = set; then :
4986: enableval=$enable_execs;
1.13 paf 4987: if test "$enableval" = "no"; then
1.150 moko 4988: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
4989: $as_echo "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 4990:
1.150 moko 4991: $as_echo "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 4992:
4993: fi
4994:
4995:
1.150 moko 4996: fi
1.13 paf 4997:
1.60 paf 4998:
1.94 misha 4999:
1.150 moko 5000: # Check whether --enable-stringstream was given.
5001: if test "${enable_stringstream+set}" = set; then :
5002: enableval=$enable_stringstream;
1.94 misha 5003: if test "$enableval" = "no"; then
1.150 moko 5004: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
5005: $as_echo "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 5006:
1.150 moko 5007: $as_echo "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 5008:
5009: fi
5010:
5011:
1.150 moko 5012: fi
1.94 misha 5013:
5014:
1.62 paf 5015:
1.17 paf 5016:
1.150 moko 5017: # Check whether --with-gc was given.
5018: if test "${with_gc+set}" = set; then :
5019: withval=$with_gc;
1.17 paf 5020:
1.142 moko 5021: GC=$withval
5022: GC_LIBS="$GC/libgc.la"
5023:
5024: if test -f $GC_LIBS; then
5025: GC_OK="yes"
5026: else
5027: GC_LIBS="-L$GC -lgc"
5028: fi
1.62 paf 5029:
1.151 moko 5030: if test "$GC" = "yes"; then
5031: GC=""
5032: GC_LIBS="-lgc"
5033: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
5034: $as_echo "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
5035: fi
5036:
1.142 moko 5037: else
1.17 paf 5038:
1.142 moko 5039: GC_LIBS="-lgc"
1.150 moko 5040: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
5041: $as_echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
5042:
5043: fi
1.17 paf 5044:
5045:
1.142 moko 5046: if test -z "$GC_OK"; then
1.150 moko 5047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
5048: $as_echo_n "checking for libgc... " >&6; }
1.138 moko 5049: SAVE_LIBS=$LIBS
5050: LIBS="$LIBS $GC_LIBS"
1.128 moko 5051:
1.150 moko 5052: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 5053: /* end confdefs.h. */
1.142 moko 5054: extern int GC_dont_gc;
1.67 paf 5055: int
5056: main ()
5057: {
1.142 moko 5058: GC_dont_gc=0;
1.67 paf 5059: ;
5060: return 0;
5061: }
5062: _ACEOF
1.150 moko 5063: if ac_fn_c_try_link "$LINENO"; then :
5064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5065: $as_echo "yes" >&6; }
1.67 paf 5066:
5067: else
1.150 moko 5068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069: $as_echo "no" >&6; }
1.142 moko 5070: if test -z "$GC"; then
1.151 moko 5071: as_fn_error $? "please specify path to libgc: --with-gc=D" "$LINENO" 5
1.142 moko 5072: else
1.150 moko 5073: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 5074: fi
1.67 paf 5075:
5076: fi
1.150 moko 5077: rm -f core conftest.err conftest.$ac_objext \
5078: conftest$ac_exeext conftest.$ac_ext
1.138 moko 5079: LIBS=$SAVE_LIBS
5080: fi
1.67 paf 5081:
5082:
1.1 paf 5083:
1.15 paf 5084:
1.142 moko 5085:
1.150 moko 5086: # Check whether --with-pcre was given.
5087: if test "${with_pcre+set}" = set; then :
5088: withval=$with_pcre;
1.100 misha 5089: PCRE=$withval
1.142 moko 5090: PCRE_INCLUDES="-I$PCRE/include"
5091: PCRE_LIBS="$PCRE/lib/libpcre.la"
1.100 misha 5092:
1.142 moko 5093: if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
5094: PCRE_OK="yes"
5095: else
1.191 moko 5096: PCRE_LIBS="-L$PCRE/lib -lpcre"
1.100 misha 5097: fi
5098:
1.151 moko 5099: if test "$PCRE" = "yes"; then
5100: PCRE=""
5101: PCRE_LIBS="-lpcre"
5102: PCRE_INCLUDES=""
5103: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
5104: $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
5105: fi
1.142 moko 5106:
5107: else
5108:
5109: PCRE_LIBS="-lpcre"
1.149 moko 5110: PCRE_INCLUDES=""
1.150 moko 5111: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
5112: $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
5113:
5114: fi
1.100 misha 5115:
5116:
1.142 moko 5117: if test -z "$PCRE_OK"; then
1.150 moko 5118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prce" >&5
5119: $as_echo_n "checking for prce... " >&6; }
1.142 moko 5120: SAVE_LIBS=$LIBS
5121: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.150 moko 5122: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5123: /* end confdefs.h. */
5124: #include <pcre.h>
5125: int
5126: main ()
5127: {
5128: const char *v=pcre_version();
5129: ;
5130: return 0;
5131: }
5132: _ACEOF
1.150 moko 5133: if ac_fn_c_try_link "$LINENO"; then :
5134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5135: $as_echo "yes" >&6; }
1.142 moko 5136:
5137: else
1.150 moko 5138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139: $as_echo "no" >&6; }
1.142 moko 5140: if test -z "$PCRE"; then
1.151 moko 5141: as_fn_error $? "please specify path to PCRE: --with-pcre=D" "$LINENO" 5
1.142 moko 5142: else
1.150 moko 5143: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 5144: fi
5145:
5146: fi
1.150 moko 5147: rm -f core conftest.err conftest.$ac_objext \
5148: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5149: LIBS=$SAVE_LIBS
5150: fi
1.100 misha 5151:
5152:
5153:
5154:
1.66 paf 5155:
5156:
1.150 moko 5157: # Check whether --with-xml was given.
5158: if test "${with_xml+set}" = set; then :
5159: withval=$with_xml;
1.66 paf 5160:
1.142 moko 5161: XML=$withval
5162: XML_LIBS="-lxml2 -lxslt -lexslt"
5163:
5164: if test -z "$XML" -o "$XML" = "yes"; then
5165: XML=""
5166: XML_INCLUDES="-I/usr/include/libxml2"
1.150 moko 5167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
5168: $as_echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 5169: else
5170: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.193 ! moko 5171: XML_LIBS="-L$XML/lib $XML_LIBS"
1.67 paf 5172:
1.142 moko 5173: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
5174: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
5175: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
5176: XML_OK="yes"
5177: fi
1.67 paf 5178: fi
1.66 paf 5179:
1.142 moko 5180: if test -z "$XML_OK"; then
1.150 moko 5181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
5182: $as_echo_n "checking for xml... " >&6; }
1.142 moko 5183: SAVE_LIBS=$LIBS
5184: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.150 moko 5185: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5186: /* end confdefs.h. */
5187: #include <libxslt/xslt.h>
5188: int
5189: main ()
5190: {
5191: const char *v=xsltEngineVersion;
5192: ;
5193: return 0;
5194: }
5195: _ACEOF
1.150 moko 5196: if ac_fn_c_try_link "$LINENO"; then :
5197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5198: $as_echo "yes" >&6; }
1.142 moko 5199:
5200: else
1.150 moko 5201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202: $as_echo "no" >&6; }
1.142 moko 5203: if test -z "$XML"; then
1.151 moko 5204: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=D" "$LINENO" 5
1.142 moko 5205: else
1.150 moko 5206: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 5207: fi
5208:
5209: fi
1.150 moko 5210: rm -f core conftest.err conftest.$ac_objext \
5211: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5212: LIBS=$SAVE_LIBS
1.67 paf 5213: fi
1.66 paf 5214:
1.150 moko 5215: $as_echo "#define XML /**/" >>confdefs.h
5216:
1.66 paf 5217:
1.150 moko 5218: fi
1.66 paf 5219:
1.90 paf 5220:
1.66 paf 5221:
5222:
5223:
5224:
1.90 paf 5225:
1.154 moko 5226: # Check whether --with-mailreceive was given.
5227: if test "${with_mailreceive+set}" = set; then :
5228: withval=$with_mailreceive;
5229: MIME=$withval
1.155 moko 5230: GLIB="glib-2.0"
1.154 moko 5231: GMIME="gmime-2.4"
5232:
5233: if test -z "$MIME" -o "$MIME" = "yes"; then
5234: MIME=""
5235: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5236: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
5237: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
5238: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
5239: else
1.155 moko 5240: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 5241: MIME_LIBS="-l$GMIME"
5242: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
5243: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 5244: if test -f $MIME/lib/lib$GLIB.la; then
5245: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
5246: else
5247: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
5248: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
5249: fi
1.154 moko 5250: MIME_OK="yes"
5251: fi
1.67 paf 5252: fi
1.66 paf 5253:
1.154 moko 5254: if test -z "$MIME_OK"; then
5255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
5256: $as_echo_n "checking for mime... " >&6; }
5257: SAVE_LIBS=$LIBS
5258: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
5259: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260: /* end confdefs.h. */
5261: #include <gmime/gmime.h>
5262: int
5263: main ()
5264: {
5265: guint v=gmime_major_version;
5266: ;
5267: return 0;
5268: }
5269: _ACEOF
5270: if ac_fn_c_try_link "$LINENO"; then :
5271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272: $as_echo "yes" >&6; }
1.66 paf 5273:
1.154 moko 5274: else
5275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276: $as_echo "no" >&6; }
5277: if test -z "$MIME"; then
5278: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=D" "$LINENO" 5
5279: else
5280: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 5281: fi
1.66 paf 5282:
1.150 moko 5283: fi
1.154 moko 5284: rm -f core conftest.err conftest.$ac_objext \
5285: conftest$ac_exeext conftest.$ac_ext
5286: LIBS=$SAVE_LIBS
1.67 paf 5287: fi
1.66 paf 5288:
1.150 moko 5289: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 5290:
5291:
1.154 moko 5292: fi
1.66 paf 5293:
5294:
5295:
5296:
5297:
5298:
5299:
1.150 moko 5300: # Check whether --with-sendmail was given.
5301: if test "${with_sendmail+set}" = set; then :
5302: withval=$with_sendmail;
1.66 paf 5303: cat >>confdefs.h <<_ACEOF
5304: #define PA_FORCED_SENDMAIL "$withval"
5305: _ACEOF
5306:
5307:
1.150 moko 5308: fi
1.66 paf 5309:
5310:
5311:
1.122 moko 5312:
1.150 moko 5313: # Check whether --with-apache was given.
5314: if test "${with_apache+set}" = set; then :
5315: withval=$with_apache;
1.122 moko 5316: APXS=$withval
5317:
5318: if test -z "$APXS" -o "$APXS" = "yes"; then
5319: APXS=`which apxs 2>/dev/null`
1.142 moko 5320: if test -z "$APXS"; then
5321: APXS=`which apxs2 2>/dev/null`
5322: fi
5323: fi
1.122 moko 5324:
5325: APACHE=`$APXS -q TARGET 2>/dev/null`
5326:
5327: if test -z "$APACHE"; then
1.150 moko 5328: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5329: fi
1.7 paf 5330:
1.122 moko 5331: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5332: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5333: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5334: APACHE_CFLAGS=`$APXS -q CFLAGS`
5335:
1.150 moko 5336: fi
1.7 paf 5337:
5338:
1.62 paf 5339:
1.122 moko 5340:
1.150 moko 5341: if test -n "$APACHE"; then
1.122 moko 5342: COMPILE_APACHE_MODULE_TRUE=
5343: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5344: else
1.122 moko 5345: COMPILE_APACHE_MODULE_TRUE='#'
5346: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5347: fi
1.1 paf 5348:
5349:
5350:
1.62 paf 5351:
5352:
1.7 paf 5353:
1.1 paf 5354:
5355:
5356:
1.62 paf 5357:
1.128 moko 5358: case `pwd` in
5359: *\ * | *\ *)
1.150 moko 5360: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5361: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5362: esac
5363:
5364:
5365:
5366: macro_version='2.4.2'
5367: macro_revision='1.3337'
5368:
5369:
5370:
5371:
5372:
5373:
5374:
5375:
5376:
5377:
5378:
5379:
5380:
5381: ltmain="$ac_aux_dir/ltmain.sh"
5382:
5383: # Backslashify metacharacters that are still active within
5384: # double-quoted strings.
5385: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5386:
1.128 moko 5387: # Same as above, but do not quote variable references.
5388: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5389:
1.128 moko 5390: # Sed substitution to delay expansion of an escaped shell variable in a
5391: # double_quote_subst'ed string.
5392: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5393:
1.128 moko 5394: # Sed substitution to delay expansion of an escaped single quote.
5395: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5396:
1.128 moko 5397: # Sed substitution to avoid accidental globbing in evaled expressions
5398: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5399:
1.128 moko 5400: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5401: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5402: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5403:
1.150 moko 5404: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5405: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5406: # Test print first, because it will be a builtin if present.
5407: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5408: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5409: ECHO='print -r --'
5410: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5411: ECHO='printf %s\n'
5412: else
5413: # Use this function as a fallback that always works.
5414: func_fallback_echo ()
5415: {
5416: eval 'cat <<_LTECHO_EOF
5417: $1
5418: _LTECHO_EOF'
5419: }
5420: ECHO='func_fallback_echo'
5421: fi
1.86 paf 5422:
1.128 moko 5423: # func_echo_all arg...
5424: # Invoke $ECHO with all args, space-separated.
5425: func_echo_all ()
1.66 paf 5426: {
1.128 moko 5427: $ECHO ""
1.66 paf 5428: }
1.10 paf 5429:
1.128 moko 5430: case "$ECHO" in
1.150 moko 5431: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5432: $as_echo "printf" >&6; } ;;
5433: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5434: $as_echo "print -r" >&6; } ;;
5435: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5436: $as_echo "cat" >&6; } ;;
1.128 moko 5437: esac
5438:
5439:
5440:
5441:
5442:
5443:
5444:
5445:
5446:
5447:
5448:
5449:
5450:
5451:
1.150 moko 5452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5453: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5454: if ${ac_cv_path_SED+:} false; then :
5455: $as_echo_n "(cached) " >&6
5456: else
5457: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5458: for ac_i in 1 2 3 4 5 6 7; do
5459: ac_script="$ac_script$as_nl$ac_script"
5460: done
5461: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5462: { ac_script=; unset ac_script;}
5463: if test -z "$SED"; then
5464: ac_path_SED_found=false
5465: # Loop through the user's path and test for each of PROGNAME-LIST
5466: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5467: for as_dir in $PATH
5468: do
5469: IFS=$as_save_IFS
5470: test -z "$as_dir" && as_dir=.
1.150 moko 5471: for ac_prog in sed gsed; do
1.128 moko 5472: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5473: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5474: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 5475: # Check for GNU ac_path_SED and select it if it is found.
5476: # Check for GNU $ac_path_SED
5477: case `"$ac_path_SED" --version 2>&1` in
5478: *GNU*)
5479: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5480: *)
5481: ac_count=0
5482: $as_echo_n 0123456789 >"conftest.in"
5483: while :
5484: do
5485: cat "conftest.in" "conftest.in" >"conftest.tmp"
5486: mv "conftest.tmp" "conftest.in"
5487: cp "conftest.in" "conftest.nl"
5488: $as_echo '' >> "conftest.nl"
5489: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491: as_fn_arith $ac_count + 1 && ac_count=$as_val
5492: if test $ac_count -gt ${ac_path_SED_max-0}; then
5493: # Best one so far, save it but keep looking for a better one
5494: ac_cv_path_SED="$ac_path_SED"
5495: ac_path_SED_max=$ac_count
5496: fi
5497: # 10*(2^10) chars as input seems more than enough
5498: test $ac_count -gt 10 && break
5499: done
5500: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501: esac
5502:
5503: $ac_path_SED_found && break 3
1.128 moko 5504: done
5505: done
1.150 moko 5506: done
1.128 moko 5507: IFS=$as_save_IFS
1.150 moko 5508: if test -z "$ac_cv_path_SED"; then
5509: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5510: fi
1.150 moko 5511: else
5512: ac_cv_path_SED=$SED
5513: fi
1.10 paf 5514:
1.66 paf 5515: fi
1.150 moko 5516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5517: $as_echo "$ac_cv_path_SED" >&6; }
5518: SED="$ac_cv_path_SED"
5519: rm -f conftest.sed
1.128 moko 5520:
5521: test -z "$SED" && SED=sed
5522: Xsed="$SED -e 1s/^X//"
1.10 paf 5523:
1.128 moko 5524:
5525:
5526:
5527:
5528:
5529:
5530:
5531:
5532:
5533:
1.150 moko 5534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5535: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5536: if ${ac_cv_path_GREP+:} false; then :
5537: $as_echo_n "(cached) " >&6
5538: else
5539: if test -z "$GREP"; then
5540: ac_path_GREP_found=false
5541: # Loop through the user's path and test for each of PROGNAME-LIST
5542: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5544: do
5545: IFS=$as_save_IFS
5546: test -z "$as_dir" && as_dir=.
5547: for ac_prog in grep ggrep; do
5548: for ac_exec_ext in '' $ac_executable_extensions; do
5549: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5550: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 5551: # Check for GNU ac_path_GREP and select it if it is found.
5552: # Check for GNU $ac_path_GREP
5553: case `"$ac_path_GREP" --version 2>&1` in
5554: *GNU*)
5555: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5556: *)
5557: ac_count=0
5558: $as_echo_n 0123456789 >"conftest.in"
5559: while :
5560: do
5561: cat "conftest.in" "conftest.in" >"conftest.tmp"
5562: mv "conftest.tmp" "conftest.in"
5563: cp "conftest.in" "conftest.nl"
5564: $as_echo 'GREP' >> "conftest.nl"
5565: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5566: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5567: as_fn_arith $ac_count + 1 && ac_count=$as_val
5568: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5569: # Best one so far, save it but keep looking for a better one
5570: ac_cv_path_GREP="$ac_path_GREP"
5571: ac_path_GREP_max=$ac_count
1.128 moko 5572: fi
1.150 moko 5573: # 10*(2^10) chars as input seems more than enough
5574: test $ac_count -gt 10 && break
5575: done
5576: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5577: esac
5578:
5579: $ac_path_GREP_found && break 3
5580: done
5581: done
5582: done
5583: IFS=$as_save_IFS
5584: if test -z "$ac_cv_path_GREP"; then
5585: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5586: fi
5587: else
5588: ac_cv_path_GREP=$GREP
5589: fi
5590:
1.128 moko 5591: fi
1.150 moko 5592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5593: $as_echo "$ac_cv_path_GREP" >&6; }
5594: GREP="$ac_cv_path_GREP"
5595:
5596:
5597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5598: $as_echo_n "checking for egrep... " >&6; }
5599: if ${ac_cv_path_EGREP+:} false; then :
5600: $as_echo_n "(cached) " >&6
5601: else
5602: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5603: then ac_cv_path_EGREP="$GREP -E"
5604: else
5605: if test -z "$EGREP"; then
5606: ac_path_EGREP_found=false
5607: # Loop through the user's path and test for each of PROGNAME-LIST
5608: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5610: do
5611: IFS=$as_save_IFS
5612: test -z "$as_dir" && as_dir=.
5613: for ac_prog in egrep; do
5614: for ac_exec_ext in '' $ac_executable_extensions; do
5615: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5616: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 5617: # Check for GNU ac_path_EGREP and select it if it is found.
5618: # Check for GNU $ac_path_EGREP
5619: case `"$ac_path_EGREP" --version 2>&1` in
5620: *GNU*)
5621: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5622: *)
5623: ac_count=0
5624: $as_echo_n 0123456789 >"conftest.in"
5625: while :
5626: do
5627: cat "conftest.in" "conftest.in" >"conftest.tmp"
5628: mv "conftest.tmp" "conftest.in"
5629: cp "conftest.in" "conftest.nl"
5630: $as_echo 'EGREP' >> "conftest.nl"
5631: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5632: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5633: as_fn_arith $ac_count + 1 && ac_count=$as_val
5634: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5635: # Best one so far, save it but keep looking for a better one
5636: ac_cv_path_EGREP="$ac_path_EGREP"
5637: ac_path_EGREP_max=$ac_count
5638: fi
5639: # 10*(2^10) chars as input seems more than enough
5640: test $ac_count -gt 10 && break
5641: done
5642: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5643: esac
1.128 moko 5644:
1.150 moko 5645: $ac_path_EGREP_found && break 3
5646: done
5647: done
5648: done
5649: IFS=$as_save_IFS
5650: if test -z "$ac_cv_path_EGREP"; then
5651: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5652: fi
5653: else
5654: ac_cv_path_EGREP=$EGREP
5655: fi
1.128 moko 5656:
1.150 moko 5657: fi
5658: fi
5659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5660: $as_echo "$ac_cv_path_EGREP" >&6; }
5661: EGREP="$ac_cv_path_EGREP"
5662:
5663:
5664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5665: $as_echo_n "checking for fgrep... " >&6; }
5666: if ${ac_cv_path_FGREP+:} false; then :
5667: $as_echo_n "(cached) " >&6
5668: else
5669: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5670: then ac_cv_path_FGREP="$GREP -F"
5671: else
5672: if test -z "$FGREP"; then
5673: ac_path_FGREP_found=false
5674: # Loop through the user's path and test for each of PROGNAME-LIST
5675: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5677: do
5678: IFS=$as_save_IFS
5679: test -z "$as_dir" && as_dir=.
5680: for ac_prog in fgrep; do
5681: for ac_exec_ext in '' $ac_executable_extensions; do
5682: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5683: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 5684: # Check for GNU ac_path_FGREP and select it if it is found.
5685: # Check for GNU $ac_path_FGREP
5686: case `"$ac_path_FGREP" --version 2>&1` in
5687: *GNU*)
5688: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5689: *)
5690: ac_count=0
5691: $as_echo_n 0123456789 >"conftest.in"
5692: while :
5693: do
5694: cat "conftest.in" "conftest.in" >"conftest.tmp"
5695: mv "conftest.tmp" "conftest.in"
5696: cp "conftest.in" "conftest.nl"
5697: $as_echo 'FGREP' >> "conftest.nl"
5698: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5699: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5700: as_fn_arith $ac_count + 1 && ac_count=$as_val
5701: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5702: # Best one so far, save it but keep looking for a better one
5703: ac_cv_path_FGREP="$ac_path_FGREP"
5704: ac_path_FGREP_max=$ac_count
1.128 moko 5705: fi
1.150 moko 5706: # 10*(2^10) chars as input seems more than enough
5707: test $ac_count -gt 10 && break
5708: done
5709: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5710: esac
5711:
5712: $ac_path_FGREP_found && break 3
5713: done
5714: done
5715: done
5716: IFS=$as_save_IFS
5717: if test -z "$ac_cv_path_FGREP"; then
5718: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5719: fi
5720: else
5721: ac_cv_path_FGREP=$FGREP
5722: fi
5723:
5724: fi
1.128 moko 5725: fi
1.150 moko 5726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5727: $as_echo "$ac_cv_path_FGREP" >&6; }
5728: FGREP="$ac_cv_path_FGREP"
1.128 moko 5729:
5730:
5731: test -z "$GREP" && GREP=grep
5732:
5733:
5734:
5735:
5736:
5737:
5738:
5739:
5740:
5741:
5742:
5743:
5744:
5745:
5746:
5747:
5748:
5749:
5750:
1.150 moko 5751: # Check whether --with-gnu-ld was given.
5752: if test "${with_gnu_ld+set}" = set; then :
5753: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5754: else
5755: with_gnu_ld=no
1.150 moko 5756: fi
5757:
1.128 moko 5758: ac_prog=ld
5759: if test "$GCC" = yes; then
5760: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5762: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5763: case $host in
5764: *-*-mingw*)
5765: # gcc leaves a trailing carriage return which upsets mingw
5766: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5767: *)
5768: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5769: esac
5770: case $ac_prog in
5771: # Accept absolute paths.
5772: [\\/]* | ?:[\\/]*)
5773: re_direlt='/[^/][^/]*/\.\./'
5774: # Canonicalize the pathname of ld
5775: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5776: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5777: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5778: done
5779: test -z "$LD" && LD="$ac_prog"
5780: ;;
5781: "")
5782: # If it fails, then pretend we aren't using GCC.
5783: ac_prog=ld
5784: ;;
5785: *)
5786: # If it is relative, then search for the first ld in PATH.
5787: with_gnu_ld=unknown
5788: ;;
5789: esac
5790: elif test "$with_gnu_ld" = yes; then
1.150 moko 5791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5792: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5793: else
1.150 moko 5794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5795: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5796: fi
1.150 moko 5797: if ${lt_cv_path_LD+:} false; then :
5798: $as_echo_n "(cached) " >&6
1.128 moko 5799: else
5800: if test -z "$LD"; then
5801: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802: for ac_dir in $PATH; do
5803: IFS="$lt_save_ifs"
5804: test -z "$ac_dir" && ac_dir=.
5805: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5806: lt_cv_path_LD="$ac_dir/$ac_prog"
5807: # Check to see if the program is GNU ld. I'd rather use --version,
5808: # but apparently some variants of GNU ld only accept -v.
5809: # Break only if it was the GNU/non-GNU ld that we prefer.
5810: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5811: *GNU* | *'with BFD'*)
5812: test "$with_gnu_ld" != no && break
5813: ;;
5814: *)
5815: test "$with_gnu_ld" != yes && break
5816: ;;
5817: esac
5818: fi
5819: done
5820: IFS="$lt_save_ifs"
5821: else
5822: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5823: fi
5824: fi
5825:
5826: LD="$lt_cv_path_LD"
5827: if test -n "$LD"; then
1.150 moko 5828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5829: $as_echo "$LD" >&6; }
1.128 moko 5830: else
1.150 moko 5831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832: $as_echo "no" >&6; }
1.128 moko 5833: fi
1.150 moko 5834: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5836: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5837: if ${lt_cv_prog_gnu_ld+:} false; then :
5838: $as_echo_n "(cached) " >&6
1.128 moko 5839: else
5840: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5841: case `$LD -v 2>&1 </dev/null` in
5842: *GNU* | *'with BFD'*)
5843: lt_cv_prog_gnu_ld=yes
5844: ;;
5845: *)
5846: lt_cv_prog_gnu_ld=no
5847: ;;
5848: esac
5849: fi
1.150 moko 5850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5851: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5852: with_gnu_ld=$lt_cv_prog_gnu_ld
5853:
5854:
5855:
5856:
5857:
5858:
5859:
5860:
5861:
1.150 moko 5862: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5863: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5864: if ${lt_cv_path_NM+:} false; then :
5865: $as_echo_n "(cached) " >&6
1.128 moko 5866: else
5867: if test -n "$NM"; then
5868: # Let the user override the test.
5869: lt_cv_path_NM="$NM"
5870: else
5871: lt_nm_to_check="${ac_tool_prefix}nm"
5872: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5873: lt_nm_to_check="$lt_nm_to_check nm"
5874: fi
5875: for lt_tmp_nm in $lt_nm_to_check; do
5876: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5877: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5878: IFS="$lt_save_ifs"
5879: test -z "$ac_dir" && ac_dir=.
5880: tmp_nm="$ac_dir/$lt_tmp_nm"
5881: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5882: # Check to see if the nm accepts a BSD-compat flag.
5883: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5884: # nm: unknown option "B" ignored
5885: # Tru64's nm complains that /dev/null is an invalid object file
5886: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5887: */dev/null* | *'Invalid file or object type'*)
5888: lt_cv_path_NM="$tmp_nm -B"
5889: break
5890: ;;
5891: *)
5892: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5893: */dev/null*)
5894: lt_cv_path_NM="$tmp_nm -p"
5895: break
5896: ;;
5897: *)
5898: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5899: continue # so that we can try to find one that supports BSD flags
5900: ;;
5901: esac
5902: ;;
5903: esac
5904: fi
5905: done
5906: IFS="$lt_save_ifs"
5907: done
5908: : ${lt_cv_path_NM=no}
5909: fi
5910: fi
1.150 moko 5911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5912: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5913: if test "$lt_cv_path_NM" != "no"; then
5914: NM="$lt_cv_path_NM"
5915: else
5916: # Didn't find any BSD compatible name lister, look for dumpbin.
5917: if test -n "$DUMPBIN"; then :
5918: # Let the user override the test.
5919: else
5920: if test -n "$ac_tool_prefix"; then
5921: for ac_prog in dumpbin "link -dump"
5922: do
5923: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5924: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926: $as_echo_n "checking for $ac_word... " >&6; }
5927: if ${ac_cv_prog_DUMPBIN+:} false; then :
5928: $as_echo_n "(cached) " >&6
1.128 moko 5929: else
5930: if test -n "$DUMPBIN"; then
5931: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5932: else
5933: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934: for as_dir in $PATH
5935: do
5936: IFS=$as_save_IFS
5937: test -z "$as_dir" && as_dir=.
1.150 moko 5938: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5939: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5940: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 5941: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5942: break 2
5943: fi
5944: done
1.150 moko 5945: done
5946: IFS=$as_save_IFS
1.128 moko 5947:
5948: fi
5949: fi
5950: DUMPBIN=$ac_cv_prog_DUMPBIN
5951: if test -n "$DUMPBIN"; then
1.150 moko 5952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5953: $as_echo "$DUMPBIN" >&6; }
1.128 moko 5954: else
1.150 moko 5955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956: $as_echo "no" >&6; }
1.128 moko 5957: fi
5958:
1.150 moko 5959:
1.128 moko 5960: test -n "$DUMPBIN" && break
5961: done
5962: fi
5963: if test -z "$DUMPBIN"; then
5964: ac_ct_DUMPBIN=$DUMPBIN
5965: for ac_prog in dumpbin "link -dump"
5966: do
5967: # Extract the first word of "$ac_prog", so it can be a program name with args.
5968: set dummy $ac_prog; ac_word=$2
1.150 moko 5969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970: $as_echo_n "checking for $ac_word... " >&6; }
5971: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5972: $as_echo_n "(cached) " >&6
1.128 moko 5973: else
5974: if test -n "$ac_ct_DUMPBIN"; then
5975: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5976: else
5977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978: for as_dir in $PATH
5979: do
5980: IFS=$as_save_IFS
5981: test -z "$as_dir" && as_dir=.
1.150 moko 5982: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5983: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5984: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 5985: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5986: break 2
5987: fi
5988: done
1.150 moko 5989: done
5990: IFS=$as_save_IFS
1.128 moko 5991:
5992: fi
5993: fi
5994: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5995: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 5996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5997: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 5998: else
1.150 moko 5999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000: $as_echo "no" >&6; }
1.128 moko 6001: fi
6002:
1.150 moko 6003:
1.128 moko 6004: test -n "$ac_ct_DUMPBIN" && break
6005: done
6006:
1.150 moko 6007: if test "x$ac_ct_DUMPBIN" = x; then
6008: DUMPBIN=":"
6009: else
6010: case $cross_compiling:$ac_tool_warned in
6011: yes:)
6012: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6013: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6014: ac_tool_warned=yes ;;
6015: esac
6016: DUMPBIN=$ac_ct_DUMPBIN
6017: fi
1.128 moko 6018: fi
6019:
6020: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6021: *COFF*)
6022: DUMPBIN="$DUMPBIN -symbols"
6023: ;;
6024: *)
6025: DUMPBIN=:
6026: ;;
6027: esac
6028: fi
6029:
6030: if test "$DUMPBIN" != ":"; then
6031: NM="$DUMPBIN"
6032: fi
6033: fi
6034: test -z "$NM" && NM=nm
6035:
6036:
6037:
6038:
6039:
6040:
1.150 moko 6041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6042: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6043: if ${lt_cv_nm_interface+:} false; then :
6044: $as_echo_n "(cached) " >&6
1.128 moko 6045: else
6046: lt_cv_nm_interface="BSD nm"
6047: echo "int some_variable = 0;" > conftest.$ac_ext
6048: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6049: (eval "$ac_compile" 2>conftest.err)
6050: cat conftest.err >&5
6051: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6052: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6053: cat conftest.err >&5
6054: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6055: cat conftest.out >&5
6056: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6057: lt_cv_nm_interface="MS dumpbin"
6058: fi
6059: rm -f conftest*
6060: fi
1.150 moko 6061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6062: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 6063:
1.150 moko 6064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6065: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 6066: LN_S=$as_ln_s
6067: if test "$LN_S" = "ln -s"; then
1.150 moko 6068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6069: $as_echo "yes" >&6; }
1.128 moko 6070: else
1.150 moko 6071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6072: $as_echo "no, using $LN_S" >&6; }
1.128 moko 6073: fi
6074:
6075: # find the maximum length of command line arguments
1.150 moko 6076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6077: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6078: if ${lt_cv_sys_max_cmd_len+:} false; then :
6079: $as_echo_n "(cached) " >&6
1.128 moko 6080: else
6081: i=0
6082: teststring="ABCD"
6083:
6084: case $build_os in
6085: msdosdjgpp*)
6086: # On DJGPP, this test can blow up pretty badly due to problems in libc
6087: # (any single argument exceeding 2000 bytes causes a buffer overrun
6088: # during glob expansion). Even if it were fixed, the result of this
6089: # check would be larger than it should be.
6090: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6091: ;;
6092:
6093: gnu*)
6094: # Under GNU Hurd, this test is not required because there is
6095: # no limit to the length of command line arguments.
6096: # Libtool will interpret -1 as no limit whatsoever
6097: lt_cv_sys_max_cmd_len=-1;
6098: ;;
6099:
6100: cygwin* | mingw* | cegcc*)
6101: # On Win9x/ME, this test blows up -- it succeeds, but takes
6102: # about 5 minutes as the teststring grows exponentially.
6103: # Worse, since 9x/ME are not pre-emptively multitasking,
6104: # you end up with a "frozen" computer, even though with patience
6105: # the test eventually succeeds (with a max line length of 256k).
6106: # Instead, let's just punt: use the minimum linelength reported by
6107: # all of the supported platforms: 8192 (on NT/2K/XP).
6108: lt_cv_sys_max_cmd_len=8192;
6109: ;;
6110:
6111: mint*)
6112: # On MiNT this can take a long time and run out of memory.
6113: lt_cv_sys_max_cmd_len=8192;
6114: ;;
6115:
6116: amigaos*)
6117: # On AmigaOS with pdksh, this test takes hours, literally.
6118: # So we just punt and use a minimum line length of 8192.
6119: lt_cv_sys_max_cmd_len=8192;
6120: ;;
6121:
6122: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6123: # This has been around since 386BSD, at least. Likely further.
6124: if test -x /sbin/sysctl; then
6125: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6126: elif test -x /usr/sbin/sysctl; then
6127: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6128: else
6129: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6130: fi
6131: # And add a safety zone
6132: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6133: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6134: ;;
6135:
6136: interix*)
6137: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6138: lt_cv_sys_max_cmd_len=196608
6139: ;;
6140:
6141: os2*)
6142: # The test takes a long time on OS/2.
6143: lt_cv_sys_max_cmd_len=8192
6144: ;;
6145:
6146: osf*)
6147: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6148: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6149: # nice to cause kernel panics so lets avoid the loop below.
6150: # First set a reasonable default.
6151: lt_cv_sys_max_cmd_len=16384
6152: #
6153: if test -x /sbin/sysconfig; then
6154: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6155: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6156: esac
6157: fi
6158: ;;
6159: sco3.2v5*)
6160: lt_cv_sys_max_cmd_len=102400
6161: ;;
6162: sysv5* | sco5v6* | sysv4.2uw2*)
6163: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6164: if test -n "$kargmax"; then
6165: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6166: else
6167: lt_cv_sys_max_cmd_len=32768
6168: fi
6169: ;;
6170: *)
6171: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6172: if test -n "$lt_cv_sys_max_cmd_len"; then
6173: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6174: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6175: else
6176: # Make teststring a little bigger before we do anything with it.
6177: # a 1K string should be a reasonable start.
6178: for i in 1 2 3 4 5 6 7 8 ; do
6179: teststring=$teststring$teststring
6180: done
6181: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6182: # If test is not a shell built-in, we'll probably end up computing a
6183: # maximum length that is only half of the actual maximum length, but
6184: # we can't tell.
6185: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6186: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6187: test $i != 17 # 1/2 MB should be enough
6188: do
6189: i=`expr $i + 1`
6190: teststring=$teststring$teststring
6191: done
6192: # Only check the string length outside the loop.
6193: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6194: teststring=
6195: # Add a significant safety factor because C++ compilers can tack on
6196: # massive amounts of additional arguments before passing them to the
6197: # linker. It appears as though 1/2 is a usable value.
6198: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6199: fi
6200: ;;
6201: esac
6202:
6203: fi
6204:
6205: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 6206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6207: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 6208: else
1.150 moko 6209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6210: $as_echo "none" >&6; }
1.128 moko 6211: fi
6212: max_cmd_len=$lt_cv_sys_max_cmd_len
6213:
6214:
6215:
6216:
6217:
6218:
6219: : ${CP="cp -f"}
6220: : ${MV="mv -f"}
6221: : ${RM="rm -f"}
6222:
1.150 moko 6223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6224: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 6225: # Try some XSI features
6226: xsi_shell=no
6227: ( _lt_dummy="a/b/c"
6228: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6229: = c,a/b,b/c, \
6230: && eval 'test $(( 1 + 1 )) -eq 2 \
6231: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6232: && xsi_shell=yes
1.150 moko 6233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6234: $as_echo "$xsi_shell" >&6; }
1.128 moko 6235:
6236:
1.150 moko 6237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6238: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 6239: lt_shell_append=no
6240: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6241: >/dev/null 2>&1 \
6242: && lt_shell_append=yes
1.150 moko 6243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6244: $as_echo "$lt_shell_append" >&6; }
1.128 moko 6245:
6246:
6247: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6248: lt_unset=unset
6249: else
6250: lt_unset=false
6251: fi
6252:
6253:
6254:
6255:
6256:
6257: # test EBCDIC or ASCII
6258: case `echo X|tr X '\101'` in
6259: A) # ASCII based system
6260: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6261: lt_SP2NL='tr \040 \012'
6262: lt_NL2SP='tr \015\012 \040\040'
6263: ;;
6264: *) # EBCDIC based system
6265: lt_SP2NL='tr \100 \n'
6266: lt_NL2SP='tr \r\n \100\100'
6267: ;;
6268: esac
6269:
6270:
6271:
6272:
6273:
6274:
6275:
6276:
6277:
1.150 moko 6278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6279: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6280: if ${lt_cv_to_host_file_cmd+:} false; then :
6281: $as_echo_n "(cached) " >&6
1.128 moko 6282: else
6283: case $host in
6284: *-*-mingw* )
6285: case $build in
6286: *-*-mingw* ) # actually msys
6287: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6288: ;;
6289: *-*-cygwin* )
6290: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6291: ;;
6292: * ) # otherwise, assume *nix
6293: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6294: ;;
6295: esac
6296: ;;
6297: *-*-cygwin* )
6298: case $build in
6299: *-*-mingw* ) # actually msys
6300: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6301: ;;
6302: *-*-cygwin* )
6303: lt_cv_to_host_file_cmd=func_convert_file_noop
6304: ;;
6305: * ) # otherwise, assume *nix
6306: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6307: ;;
6308: esac
6309: ;;
6310: * ) # unhandled hosts (and "normal" native builds)
6311: lt_cv_to_host_file_cmd=func_convert_file_noop
6312: ;;
6313: esac
6314:
6315: fi
6316:
6317: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6319: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6320:
6321:
6322:
6323:
6324:
1.150 moko 6325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6326: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6327: if ${lt_cv_to_tool_file_cmd+:} false; then :
6328: $as_echo_n "(cached) " >&6
1.128 moko 6329: else
6330: #assume ordinary cross tools, or native build.
6331: lt_cv_to_tool_file_cmd=func_convert_file_noop
6332: case $host in
6333: *-*-mingw* )
6334: case $build in
6335: *-*-mingw* ) # actually msys
6336: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6337: ;;
6338: esac
6339: ;;
6340: esac
6341:
6342: fi
6343:
6344: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6346: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6347:
6348:
6349:
6350:
6351:
1.150 moko 6352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6353: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6354: if ${lt_cv_ld_reload_flag+:} false; then :
6355: $as_echo_n "(cached) " >&6
1.128 moko 6356: else
6357: lt_cv_ld_reload_flag='-r'
6358: fi
1.150 moko 6359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6360: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6361: reload_flag=$lt_cv_ld_reload_flag
6362: case $reload_flag in
6363: "" | " "*) ;;
6364: *) reload_flag=" $reload_flag" ;;
6365: esac
6366: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367: case $host_os in
6368: cygwin* | mingw* | pw32* | cegcc*)
6369: if test "$GCC" != yes; then
6370: reload_cmds=false
6371: fi
6372: ;;
6373: darwin*)
6374: if test "$GCC" = yes; then
6375: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6376: else
6377: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6378: fi
6379: ;;
6380: esac
6381:
6382:
6383:
6384:
6385:
6386:
6387:
6388:
6389:
6390: if test -n "$ac_tool_prefix"; then
6391: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6392: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394: $as_echo_n "checking for $ac_word... " >&6; }
6395: if ${ac_cv_prog_OBJDUMP+:} false; then :
6396: $as_echo_n "(cached) " >&6
1.128 moko 6397: else
6398: if test -n "$OBJDUMP"; then
6399: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6400: else
6401: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402: for as_dir in $PATH
6403: do
6404: IFS=$as_save_IFS
6405: test -z "$as_dir" && as_dir=.
1.150 moko 6406: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6407: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6408: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6409: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6410: break 2
6411: fi
6412: done
1.150 moko 6413: done
6414: IFS=$as_save_IFS
1.128 moko 6415:
6416: fi
6417: fi
6418: OBJDUMP=$ac_cv_prog_OBJDUMP
6419: if test -n "$OBJDUMP"; then
1.150 moko 6420: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6421: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6422: else
1.150 moko 6423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424: $as_echo "no" >&6; }
1.128 moko 6425: fi
6426:
1.150 moko 6427:
1.128 moko 6428: fi
6429: if test -z "$ac_cv_prog_OBJDUMP"; then
6430: ac_ct_OBJDUMP=$OBJDUMP
6431: # Extract the first word of "objdump", so it can be a program name with args.
6432: set dummy objdump; ac_word=$2
1.150 moko 6433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434: $as_echo_n "checking for $ac_word... " >&6; }
6435: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6436: $as_echo_n "(cached) " >&6
1.128 moko 6437: else
6438: if test -n "$ac_ct_OBJDUMP"; then
6439: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6440: else
6441: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442: for as_dir in $PATH
6443: do
6444: IFS=$as_save_IFS
6445: test -z "$as_dir" && as_dir=.
1.150 moko 6446: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6447: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6448: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6449: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6450: break 2
6451: fi
6452: done
1.150 moko 6453: done
6454: IFS=$as_save_IFS
1.128 moko 6455:
6456: fi
6457: fi
6458: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6459: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6461: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6462: else
1.150 moko 6463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464: $as_echo "no" >&6; }
1.128 moko 6465: fi
6466:
1.150 moko 6467: if test "x$ac_ct_OBJDUMP" = x; then
6468: OBJDUMP="false"
6469: else
6470: case $cross_compiling:$ac_tool_warned in
6471: yes:)
6472: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474: ac_tool_warned=yes ;;
6475: esac
6476: OBJDUMP=$ac_ct_OBJDUMP
6477: fi
1.128 moko 6478: else
6479: OBJDUMP="$ac_cv_prog_OBJDUMP"
6480: fi
6481:
6482: test -z "$OBJDUMP" && OBJDUMP=objdump
6483:
6484:
6485:
6486:
6487:
6488:
1.150 moko 6489: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6490: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6491: if ${lt_cv_deplibs_check_method+:} false; then :
6492: $as_echo_n "(cached) " >&6
1.128 moko 6493: else
6494: lt_cv_file_magic_cmd='$MAGIC_CMD'
6495: lt_cv_file_magic_test_file=
6496: lt_cv_deplibs_check_method='unknown'
6497: # Need to set the preceding variable on all platforms that support
6498: # interlibrary dependencies.
6499: # 'none' -- dependencies not supported.
6500: # `unknown' -- same as none, but documents that we really don't know.
6501: # 'pass_all' -- all dependencies passed with no checks.
6502: # 'test_compile' -- check by making test program.
6503: # 'file_magic [[regex]]' -- check by looking for files in library path
6504: # which responds to the $file_magic_cmd with a given extended regex.
6505: # If you have `file' or equivalent on your system and you're not sure
6506: # whether `pass_all' will *always* work, you probably want this one.
6507:
6508: case $host_os in
6509: aix[4-9]*)
6510: lt_cv_deplibs_check_method=pass_all
6511: ;;
6512:
6513: beos*)
6514: lt_cv_deplibs_check_method=pass_all
6515: ;;
6516:
6517: bsdi[45]*)
6518: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6519: lt_cv_file_magic_cmd='/usr/bin/file -L'
6520: lt_cv_file_magic_test_file=/shlib/libc.so
6521: ;;
6522:
6523: cygwin*)
6524: # func_win32_libid is a shell function defined in ltmain.sh
6525: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6526: lt_cv_file_magic_cmd='func_win32_libid'
6527: ;;
6528:
6529: mingw* | pw32*)
6530: # Base MSYS/MinGW do not provide the 'file' command needed by
6531: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6532: # unless we find 'file', for example because we are cross-compiling.
6533: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6534: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6535: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6536: lt_cv_file_magic_cmd='func_win32_libid'
6537: else
6538: # Keep this pattern in sync with the one in func_win32_libid.
6539: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6540: lt_cv_file_magic_cmd='$OBJDUMP -f'
6541: fi
6542: ;;
6543:
6544: cegcc*)
6545: # use the weaker test based on 'objdump'. See mingw*.
6546: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6547: lt_cv_file_magic_cmd='$OBJDUMP -f'
6548: ;;
6549:
6550: darwin* | rhapsody*)
6551: lt_cv_deplibs_check_method=pass_all
6552: ;;
6553:
6554: freebsd* | dragonfly*)
6555: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6556: case $host_cpu in
6557: i*86 )
6558: # Not sure whether the presence of OpenBSD here was a mistake.
6559: # Let's accept both of them until this is cleared up.
6560: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6561: lt_cv_file_magic_cmd=/usr/bin/file
6562: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6563: ;;
6564: esac
6565: else
6566: lt_cv_deplibs_check_method=pass_all
6567: fi
6568: ;;
6569:
6570: gnu*)
6571: lt_cv_deplibs_check_method=pass_all
6572: ;;
6573:
6574: haiku*)
6575: lt_cv_deplibs_check_method=pass_all
6576: ;;
6577:
6578: hpux10.20* | hpux11*)
6579: lt_cv_file_magic_cmd=/usr/bin/file
6580: case $host_cpu in
6581: ia64*)
6582: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6583: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6584: ;;
6585: hppa*64*)
6586: 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]'
6587: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6588: ;;
6589: *)
6590: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6591: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6592: ;;
6593: esac
6594: ;;
6595:
6596: interix[3-9]*)
6597: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6598: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6599: ;;
6600:
6601: irix5* | irix6* | nonstopux*)
6602: case $LD in
6603: *-32|*"-32 ") libmagic=32-bit;;
6604: *-n32|*"-n32 ") libmagic=N32;;
6605: *-64|*"-64 ") libmagic=64-bit;;
6606: *) libmagic=never-match;;
6607: esac
6608: lt_cv_deplibs_check_method=pass_all
6609: ;;
6610:
6611: # This must be glibc/ELF.
6612: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6613: lt_cv_deplibs_check_method=pass_all
6614: ;;
6615:
6616: netbsd*)
6617: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6618: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6619: else
6620: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6621: fi
6622: ;;
6623:
6624: newos6*)
6625: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6626: lt_cv_file_magic_cmd=/usr/bin/file
6627: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6628: ;;
6629:
6630: *nto* | *qnx*)
6631: lt_cv_deplibs_check_method=pass_all
6632: ;;
6633:
6634: openbsd*)
6635: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6636: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6637: else
6638: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6639: fi
6640: ;;
6641:
6642: osf3* | osf4* | osf5*)
6643: lt_cv_deplibs_check_method=pass_all
6644: ;;
6645:
6646: rdos*)
6647: lt_cv_deplibs_check_method=pass_all
6648: ;;
6649:
6650: solaris*)
6651: lt_cv_deplibs_check_method=pass_all
6652: ;;
6653:
6654: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6655: lt_cv_deplibs_check_method=pass_all
6656: ;;
6657:
6658: sysv4 | sysv4.3*)
6659: case $host_vendor in
6660: motorola)
6661: 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]'
6662: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6663: ;;
6664: ncr)
6665: lt_cv_deplibs_check_method=pass_all
6666: ;;
6667: sequent)
6668: lt_cv_file_magic_cmd='/bin/file'
6669: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6670: ;;
6671: sni)
6672: lt_cv_file_magic_cmd='/bin/file'
6673: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6674: lt_cv_file_magic_test_file=/lib/libc.so
6675: ;;
6676: siemens)
6677: lt_cv_deplibs_check_method=pass_all
6678: ;;
6679: pc)
6680: lt_cv_deplibs_check_method=pass_all
6681: ;;
6682: esac
6683: ;;
6684:
6685: tpf*)
6686: lt_cv_deplibs_check_method=pass_all
6687: ;;
6688: esac
6689:
6690: fi
1.150 moko 6691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6692: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6693:
6694: file_magic_glob=
6695: want_nocaseglob=no
6696: if test "$build" = "$host"; then
6697: case $host_os in
6698: mingw* | pw32*)
6699: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6700: want_nocaseglob=yes
6701: else
6702: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6703: fi
6704: ;;
6705: esac
6706: fi
6707:
6708: file_magic_cmd=$lt_cv_file_magic_cmd
6709: deplibs_check_method=$lt_cv_deplibs_check_method
6710: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6711:
6712:
6713:
6714:
6715:
6716:
6717:
6718:
6719:
6720:
6721:
6722:
6723:
6724:
6725:
6726:
6727:
6728:
6729:
6730:
6731:
6732:
6733: if test -n "$ac_tool_prefix"; then
6734: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6735: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737: $as_echo_n "checking for $ac_word... " >&6; }
6738: if ${ac_cv_prog_DLLTOOL+:} false; then :
6739: $as_echo_n "(cached) " >&6
1.128 moko 6740: else
6741: if test -n "$DLLTOOL"; then
6742: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6743: else
6744: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745: for as_dir in $PATH
6746: do
6747: IFS=$as_save_IFS
6748: test -z "$as_dir" && as_dir=.
1.150 moko 6749: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6750: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6751: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6752: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6753: break 2
6754: fi
6755: done
1.150 moko 6756: done
6757: IFS=$as_save_IFS
1.128 moko 6758:
6759: fi
6760: fi
6761: DLLTOOL=$ac_cv_prog_DLLTOOL
6762: if test -n "$DLLTOOL"; then
1.150 moko 6763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6764: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6765: else
1.150 moko 6766: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767: $as_echo "no" >&6; }
1.128 moko 6768: fi
6769:
1.150 moko 6770:
1.128 moko 6771: fi
6772: if test -z "$ac_cv_prog_DLLTOOL"; then
6773: ac_ct_DLLTOOL=$DLLTOOL
6774: # Extract the first word of "dlltool", so it can be a program name with args.
6775: set dummy dlltool; ac_word=$2
1.150 moko 6776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777: $as_echo_n "checking for $ac_word... " >&6; }
6778: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6779: $as_echo_n "(cached) " >&6
1.128 moko 6780: else
6781: if test -n "$ac_ct_DLLTOOL"; then
6782: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6783: else
6784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785: for as_dir in $PATH
6786: do
6787: IFS=$as_save_IFS
6788: test -z "$as_dir" && as_dir=.
1.150 moko 6789: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6790: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6791: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6792: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6793: break 2
6794: fi
6795: done
1.150 moko 6796: done
6797: IFS=$as_save_IFS
1.128 moko 6798:
6799: fi
6800: fi
6801: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6802: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6804: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6805: else
1.150 moko 6806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807: $as_echo "no" >&6; }
1.128 moko 6808: fi
6809:
1.150 moko 6810: if test "x$ac_ct_DLLTOOL" = x; then
6811: DLLTOOL="false"
6812: else
6813: case $cross_compiling:$ac_tool_warned in
6814: yes:)
6815: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817: ac_tool_warned=yes ;;
6818: esac
6819: DLLTOOL=$ac_ct_DLLTOOL
6820: fi
1.128 moko 6821: else
6822: DLLTOOL="$ac_cv_prog_DLLTOOL"
6823: fi
6824:
6825: test -z "$DLLTOOL" && DLLTOOL=dlltool
6826:
6827:
6828:
6829:
6830:
6831:
6832:
1.150 moko 6833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6834: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6835: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6836: $as_echo_n "(cached) " >&6
1.128 moko 6837: else
6838: lt_cv_sharedlib_from_linklib_cmd='unknown'
6839:
6840: case $host_os in
6841: cygwin* | mingw* | pw32* | cegcc*)
6842: # two different shell functions defined in ltmain.sh
6843: # decide which to use based on capabilities of $DLLTOOL
6844: case `$DLLTOOL --help 2>&1` in
6845: *--identify-strict*)
6846: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6847: ;;
6848: *)
6849: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6850: ;;
6851: esac
6852: ;;
6853: *)
6854: # fallback: assume linklib IS sharedlib
6855: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6856: ;;
6857: esac
6858:
6859: fi
1.150 moko 6860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6861: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6862: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6863: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6864:
6865:
6866:
6867:
6868:
6869:
6870:
6871: if test -n "$ac_tool_prefix"; then
6872: for ac_prog in ar
6873: do
6874: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6875: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877: $as_echo_n "checking for $ac_word... " >&6; }
6878: if ${ac_cv_prog_AR+:} false; then :
6879: $as_echo_n "(cached) " >&6
1.128 moko 6880: else
6881: if test -n "$AR"; then
6882: ac_cv_prog_AR="$AR" # Let the user override the test.
6883: else
6884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885: for as_dir in $PATH
6886: do
6887: IFS=$as_save_IFS
6888: test -z "$as_dir" && as_dir=.
1.150 moko 6889: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6890: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6891: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6892: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6893: break 2
6894: fi
6895: done
1.150 moko 6896: done
6897: IFS=$as_save_IFS
1.128 moko 6898:
6899: fi
6900: fi
6901: AR=$ac_cv_prog_AR
6902: if test -n "$AR"; then
1.150 moko 6903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6904: $as_echo "$AR" >&6; }
1.128 moko 6905: else
1.150 moko 6906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907: $as_echo "no" >&6; }
1.128 moko 6908: fi
6909:
1.150 moko 6910:
1.128 moko 6911: test -n "$AR" && break
6912: done
6913: fi
6914: if test -z "$AR"; then
6915: ac_ct_AR=$AR
6916: for ac_prog in ar
6917: do
6918: # Extract the first word of "$ac_prog", so it can be a program name with args.
6919: set dummy $ac_prog; ac_word=$2
1.150 moko 6920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921: $as_echo_n "checking for $ac_word... " >&6; }
6922: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6923: $as_echo_n "(cached) " >&6
1.128 moko 6924: else
6925: if test -n "$ac_ct_AR"; then
6926: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6927: else
6928: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929: for as_dir in $PATH
6930: do
6931: IFS=$as_save_IFS
6932: test -z "$as_dir" && as_dir=.
1.150 moko 6933: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6934: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6935: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 6936: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6937: break 2
6938: fi
6939: done
1.150 moko 6940: done
6941: IFS=$as_save_IFS
1.128 moko 6942:
6943: fi
6944: fi
6945: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6946: if test -n "$ac_ct_AR"; then
1.150 moko 6947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6948: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 6949: else
1.150 moko 6950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951: $as_echo "no" >&6; }
1.128 moko 6952: fi
6953:
1.150 moko 6954:
1.128 moko 6955: test -n "$ac_ct_AR" && break
6956: done
6957:
1.150 moko 6958: if test "x$ac_ct_AR" = x; then
6959: AR="false"
6960: else
6961: case $cross_compiling:$ac_tool_warned in
6962: yes:)
6963: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965: ac_tool_warned=yes ;;
6966: esac
6967: AR=$ac_ct_AR
6968: fi
1.128 moko 6969: fi
6970:
6971: : ${AR=ar}
6972: : ${AR_FLAGS=cru}
6973:
6974:
6975:
6976:
6977:
6978:
6979:
6980:
6981:
6982:
6983:
1.150 moko 6984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6985: $as_echo_n "checking for archiver @FILE support... " >&6; }
6986: if ${lt_cv_ar_at_file+:} false; then :
6987: $as_echo_n "(cached) " >&6
1.128 moko 6988: else
6989: lt_cv_ar_at_file=no
1.150 moko 6990: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 6991: /* end confdefs.h. */
6992:
6993: int
6994: main ()
6995: {
6996:
6997: ;
6998: return 0;
6999: }
7000: _ACEOF
1.150 moko 7001: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 7002: echo conftest.$ac_objext > conftest.lst
7003: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 7004: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7005: (eval $lt_ar_try) 2>&5
7006: ac_status=$?
1.150 moko 7007: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008: test $ac_status = 0; }
1.128 moko 7009: if test "$ac_status" -eq 0; then
7010: # Ensure the archiver fails upon bogus file names.
7011: rm -f conftest.$ac_objext libconftest.a
1.150 moko 7012: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7013: (eval $lt_ar_try) 2>&5
7014: ac_status=$?
1.150 moko 7015: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016: test $ac_status = 0; }
1.128 moko 7017: if test "$ac_status" -ne 0; then
7018: lt_cv_ar_at_file=@
7019: fi
7020: fi
7021: rm -f conftest.* libconftest.a
7022:
7023: fi
1.150 moko 7024: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 7025:
7026: fi
1.150 moko 7027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7028: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 7029:
7030: if test "x$lt_cv_ar_at_file" = xno; then
7031: archiver_list_spec=
7032: else
7033: archiver_list_spec=$lt_cv_ar_at_file
7034: fi
7035:
7036:
7037:
7038:
7039:
7040:
7041:
7042: if test -n "$ac_tool_prefix"; then
7043: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7044: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 7045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046: $as_echo_n "checking for $ac_word... " >&6; }
7047: if ${ac_cv_prog_STRIP+:} false; then :
7048: $as_echo_n "(cached) " >&6
1.128 moko 7049: else
7050: if test -n "$STRIP"; then
7051: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7052: else
7053: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054: for as_dir in $PATH
7055: do
7056: IFS=$as_save_IFS
7057: test -z "$as_dir" && as_dir=.
1.150 moko 7058: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7059: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7060: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 7061: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7062: break 2
7063: fi
7064: done
1.150 moko 7065: done
7066: IFS=$as_save_IFS
1.128 moko 7067:
7068: fi
7069: fi
7070: STRIP=$ac_cv_prog_STRIP
7071: if test -n "$STRIP"; then
1.150 moko 7072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7073: $as_echo "$STRIP" >&6; }
1.128 moko 7074: else
1.150 moko 7075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076: $as_echo "no" >&6; }
1.128 moko 7077: fi
7078:
1.150 moko 7079:
1.128 moko 7080: fi
7081: if test -z "$ac_cv_prog_STRIP"; then
7082: ac_ct_STRIP=$STRIP
7083: # Extract the first word of "strip", so it can be a program name with args.
7084: set dummy strip; ac_word=$2
1.150 moko 7085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086: $as_echo_n "checking for $ac_word... " >&6; }
7087: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7088: $as_echo_n "(cached) " >&6
1.128 moko 7089: else
7090: if test -n "$ac_ct_STRIP"; then
7091: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7092: else
7093: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094: for as_dir in $PATH
7095: do
7096: IFS=$as_save_IFS
7097: test -z "$as_dir" && as_dir=.
1.150 moko 7098: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7099: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7100: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 7101: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7102: break 2
7103: fi
7104: done
1.150 moko 7105: done
7106: IFS=$as_save_IFS
1.128 moko 7107:
7108: fi
7109: fi
7110: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7111: if test -n "$ac_ct_STRIP"; then
1.150 moko 7112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7113: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 7114: else
1.150 moko 7115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116: $as_echo "no" >&6; }
1.128 moko 7117: fi
7118:
1.150 moko 7119: if test "x$ac_ct_STRIP" = x; then
7120: STRIP=":"
7121: else
7122: case $cross_compiling:$ac_tool_warned in
7123: yes:)
7124: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126: ac_tool_warned=yes ;;
7127: esac
7128: STRIP=$ac_ct_STRIP
7129: fi
1.128 moko 7130: else
7131: STRIP="$ac_cv_prog_STRIP"
7132: fi
7133:
7134: test -z "$STRIP" && STRIP=:
7135:
7136:
7137:
7138:
7139:
7140:
7141: if test -n "$ac_tool_prefix"; then
7142: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7143: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 7144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145: $as_echo_n "checking for $ac_word... " >&6; }
7146: if ${ac_cv_prog_RANLIB+:} false; then :
7147: $as_echo_n "(cached) " >&6
1.128 moko 7148: else
7149: if test -n "$RANLIB"; then
7150: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7151: else
7152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153: for as_dir in $PATH
7154: do
7155: IFS=$as_save_IFS
7156: test -z "$as_dir" && as_dir=.
1.150 moko 7157: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7158: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7159: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 7160: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7161: break 2
7162: fi
7163: done
1.150 moko 7164: done
7165: IFS=$as_save_IFS
1.128 moko 7166:
7167: fi
7168: fi
7169: RANLIB=$ac_cv_prog_RANLIB
7170: if test -n "$RANLIB"; then
1.150 moko 7171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7172: $as_echo "$RANLIB" >&6; }
1.128 moko 7173: else
1.150 moko 7174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175: $as_echo "no" >&6; }
1.128 moko 7176: fi
7177:
1.150 moko 7178:
1.128 moko 7179: fi
7180: if test -z "$ac_cv_prog_RANLIB"; then
7181: ac_ct_RANLIB=$RANLIB
7182: # Extract the first word of "ranlib", so it can be a program name with args.
7183: set dummy ranlib; ac_word=$2
1.150 moko 7184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185: $as_echo_n "checking for $ac_word... " >&6; }
7186: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7187: $as_echo_n "(cached) " >&6
1.128 moko 7188: else
7189: if test -n "$ac_ct_RANLIB"; then
7190: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7191: else
7192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193: for as_dir in $PATH
7194: do
7195: IFS=$as_save_IFS
7196: test -z "$as_dir" && as_dir=.
1.150 moko 7197: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7198: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7199: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 7200: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7201: break 2
7202: fi
7203: done
1.150 moko 7204: done
7205: IFS=$as_save_IFS
1.128 moko 7206:
7207: fi
7208: fi
7209: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7210: if test -n "$ac_ct_RANLIB"; then
1.150 moko 7211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7212: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 7213: else
1.150 moko 7214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215: $as_echo "no" >&6; }
1.128 moko 7216: fi
7217:
1.150 moko 7218: if test "x$ac_ct_RANLIB" = x; then
7219: RANLIB=":"
7220: else
7221: case $cross_compiling:$ac_tool_warned in
7222: yes:)
7223: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7224: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7225: ac_tool_warned=yes ;;
7226: esac
7227: RANLIB=$ac_ct_RANLIB
7228: fi
1.128 moko 7229: else
7230: RANLIB="$ac_cv_prog_RANLIB"
7231: fi
7232:
7233: test -z "$RANLIB" && RANLIB=:
7234:
7235:
7236:
7237:
7238:
7239:
7240: # Determine commands to create old-style static archives.
7241: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7242: old_postinstall_cmds='chmod 644 $oldlib'
7243: old_postuninstall_cmds=
7244:
7245: if test -n "$RANLIB"; then
7246: case $host_os in
7247: openbsd*)
7248: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7249: ;;
7250: *)
7251: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7252: ;;
7253: esac
7254: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7255: fi
7256:
7257: case $host_os in
7258: darwin*)
7259: lock_old_archive_extraction=yes ;;
7260: *)
7261: lock_old_archive_extraction=no ;;
7262: esac
7263:
7264:
7265:
7266:
7267:
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:
7295:
7296:
7297:
7298:
7299:
7300:
7301:
7302: # If no C compiler was specified, use CC.
7303: LTCC=${LTCC-"$CC"}
7304:
7305: # If no C compiler flags were specified, use CFLAGS.
7306: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7307:
7308: # Allow CC to be a program name with arguments.
7309: compiler=$CC
7310:
7311:
7312: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7314: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7315: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7316: $as_echo_n "(cached) " >&6
1.128 moko 7317: else
7318:
7319: # These are sane defaults that work on at least a few old systems.
7320: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7321:
7322: # Character class describing NM global symbol codes.
7323: symcode='[BCDEGRST]'
7324:
7325: # Regexp to match symbols that can be accessed directly from C.
7326: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7327:
7328: # Define system-specific variables.
7329: case $host_os in
7330: aix*)
7331: symcode='[BCDT]'
7332: ;;
7333: cygwin* | mingw* | pw32* | cegcc*)
7334: symcode='[ABCDGISTW]'
7335: ;;
7336: hpux*)
7337: if test "$host_cpu" = ia64; then
7338: symcode='[ABCDEGRST]'
7339: fi
7340: ;;
7341: irix* | nonstopux*)
7342: symcode='[BCDEGRST]'
7343: ;;
7344: osf*)
7345: symcode='[BCDEGQRST]'
7346: ;;
7347: solaris*)
7348: symcode='[BDRT]'
7349: ;;
7350: sco3.2v5*)
7351: symcode='[DT]'
7352: ;;
7353: sysv4.2uw2*)
7354: symcode='[DT]'
7355: ;;
7356: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7357: symcode='[ABDT]'
7358: ;;
7359: sysv4)
7360: symcode='[DFNSTU]'
7361: ;;
7362: esac
7363:
7364: # If we're using GNU nm, then use its standard symbol codes.
7365: case `$NM -V 2>&1` in
7366: *GNU* | *'with BFD'*)
7367: symcode='[ABCDGIRSTW]' ;;
7368: esac
7369:
7370: # Transform an extracted symbol line into a proper C declaration.
7371: # Some systems (esp. on ia64) link data and code symbols differently,
7372: # so use this general approach.
7373: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7374:
7375: # Transform an extracted symbol line into symbol name and symbol address
7376: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7377: 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'"
7378:
7379: # Handle CRLF in mingw tool chain
7380: opt_cr=
7381: case $build_os in
7382: mingw*)
7383: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7384: ;;
7385: esac
7386:
7387: # Try without a prefix underscore, then with it.
7388: for ac_symprfx in "" "_"; do
7389:
7390: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7391: symxfrm="\\1 $ac_symprfx\\2 \\2"
7392:
7393: # Write the raw and C identifiers.
7394: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7395: # Fake it for dumpbin and say T for any non-static function
7396: # and D for any global variable.
7397: # Also find C++ and __fastcall symbols from MSVC++,
7398: # which start with @ or ?.
7399: lt_cv_sys_global_symbol_pipe="$AWK '"\
7400: " {last_section=section; section=\$ 3};"\
7401: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7402: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7403: " \$ 0!~/External *\|/{next};"\
7404: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7405: " {if(hide[section]) next};"\
7406: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7407: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7408: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7409: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7410: " ' prfx=^$ac_symprfx"
7411: else
7412: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7413: fi
7414: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7415:
7416: # Check to see that the pipe works correctly.
7417: pipe_works=no
7418:
7419: rm -f conftest*
7420: cat > conftest.$ac_ext <<_LT_EOF
7421: #ifdef __cplusplus
7422: extern "C" {
7423: #endif
7424: char nm_test_var;
7425: void nm_test_func(void);
7426: void nm_test_func(void){}
7427: #ifdef __cplusplus
7428: }
7429: #endif
7430: int main(){nm_test_var='a';nm_test_func();return(0);}
7431: _LT_EOF
7432:
1.150 moko 7433: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7434: (eval $ac_compile) 2>&5
7435: ac_status=$?
1.150 moko 7436: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437: test $ac_status = 0; }; then
1.128 moko 7438: # Now try to grab the symbols.
7439: nlist=conftest.nm
1.150 moko 7440: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7441: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7442: ac_status=$?
1.150 moko 7443: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7445: # Try sorting and uniquifying the output.
7446: if sort "$nlist" | uniq > "$nlist"T; then
7447: mv -f "$nlist"T "$nlist"
7448: else
7449: rm -f "$nlist"T
7450: fi
7451:
7452: # Make sure that we snagged all the symbols we need.
7453: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7454: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7455: cat <<_LT_EOF > conftest.$ac_ext
7456: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7457: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7458: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7459: relocations are performed -- see ld's documentation on pseudo-relocs. */
7460: # define LT_DLSYM_CONST
7461: #elif defined(__osf__)
7462: /* This system does not cope well with relocations in const data. */
7463: # define LT_DLSYM_CONST
7464: #else
7465: # define LT_DLSYM_CONST const
7466: #endif
7467:
7468: #ifdef __cplusplus
7469: extern "C" {
7470: #endif
7471:
7472: _LT_EOF
7473: # Now generate the symbol file.
7474: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7475:
7476: cat <<_LT_EOF >> conftest.$ac_ext
7477:
7478: /* The mapping between symbol names and symbols. */
7479: LT_DLSYM_CONST struct {
7480: const char *name;
7481: void *address;
7482: }
7483: lt__PROGRAM__LTX_preloaded_symbols[] =
7484: {
7485: { "@PROGRAM@", (void *) 0 },
7486: _LT_EOF
7487: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7488: cat <<\_LT_EOF >> conftest.$ac_ext
7489: {0, (void *) 0}
7490: };
7491:
7492: /* This works around a problem in FreeBSD linker */
7493: #ifdef FREEBSD_WORKAROUND
7494: static const void *lt_preloaded_setup() {
7495: return lt__PROGRAM__LTX_preloaded_symbols;
7496: }
7497: #endif
7498:
7499: #ifdef __cplusplus
7500: }
7501: #endif
7502: _LT_EOF
7503: # Now try linking the two files.
7504: mv conftest.$ac_objext conftstm.$ac_objext
7505: lt_globsym_save_LIBS=$LIBS
7506: lt_globsym_save_CFLAGS=$CFLAGS
7507: LIBS="conftstm.$ac_objext"
7508: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7509: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7510: (eval $ac_link) 2>&5
7511: ac_status=$?
1.150 moko 7512: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7514: pipe_works=yes
7515: fi
7516: LIBS=$lt_globsym_save_LIBS
7517: CFLAGS=$lt_globsym_save_CFLAGS
7518: else
7519: echo "cannot find nm_test_func in $nlist" >&5
7520: fi
7521: else
7522: echo "cannot find nm_test_var in $nlist" >&5
7523: fi
7524: else
7525: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7526: fi
7527: else
7528: echo "$progname: failed program was:" >&5
7529: cat conftest.$ac_ext >&5
7530: fi
7531: rm -rf conftest* conftst*
7532:
7533: # Do not use the global_symbol_pipe unless it works.
7534: if test "$pipe_works" = yes; then
7535: break
7536: else
7537: lt_cv_sys_global_symbol_pipe=
7538: fi
7539: done
7540:
7541: fi
7542:
7543: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7544: lt_cv_sys_global_symbol_to_cdecl=
7545: fi
7546: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7548: $as_echo "failed" >&6; }
1.128 moko 7549: else
1.150 moko 7550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7551: $as_echo "ok" >&6; }
1.128 moko 7552: fi
7553:
7554: # Response file support.
7555: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7556: nm_file_list_spec='@'
7557: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7558: nm_file_list_spec='@'
7559: fi
7560:
7561:
7562:
7563:
7564:
7565:
7566:
7567:
7568:
7569:
7570:
7571:
7572:
7573:
7574:
7575:
7576:
7577:
7578:
7579:
7580:
7581:
7582:
7583:
7584:
7585:
7586:
1.150 moko 7587: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7588: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7589:
1.150 moko 7590: # Check whether --with-sysroot was given.
7591: if test "${with_sysroot+set}" = set; then :
7592: withval=$with_sysroot;
1.128 moko 7593: else
7594: with_sysroot=no
1.150 moko 7595: fi
7596:
1.128 moko 7597:
7598: lt_sysroot=
7599: case ${with_sysroot} in #(
7600: yes)
7601: if test "$GCC" = yes; then
7602: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7603: fi
7604: ;; #(
7605: /*)
7606: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7607: ;; #(
7608: no|'')
7609: ;; #(
7610: *)
1.150 moko 7611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7612: $as_echo "${with_sysroot}" >&6; }
7613: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7614: ;;
7615: esac
7616:
1.150 moko 7617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7618: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7619:
7620:
7621:
7622:
7623:
1.150 moko 7624: # Check whether --enable-libtool-lock was given.
7625: if test "${enable_libtool_lock+set}" = set; then :
7626: enableval=$enable_libtool_lock;
7627: fi
1.128 moko 7628:
7629: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7630:
7631: # Some flags need to be propagated to the compiler or linker for good
7632: # libtool support.
7633: case $host in
7634: ia64-*-hpux*)
7635: # Find out which ABI we are using.
7636: echo 'int i;' > conftest.$ac_ext
1.150 moko 7637: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7638: (eval $ac_compile) 2>&5
7639: ac_status=$?
1.150 moko 7640: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641: test $ac_status = 0; }; then
1.128 moko 7642: case `/usr/bin/file conftest.$ac_objext` in
7643: *ELF-32*)
7644: HPUX_IA64_MODE="32"
7645: ;;
7646: *ELF-64*)
7647: HPUX_IA64_MODE="64"
7648: ;;
7649: esac
7650: fi
7651: rm -rf conftest*
7652: ;;
7653: *-*-irix6*)
7654: # Find out which ABI we are using.
7655: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7656: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7657: (eval $ac_compile) 2>&5
7658: ac_status=$?
1.150 moko 7659: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660: test $ac_status = 0; }; then
1.128 moko 7661: if test "$lt_cv_prog_gnu_ld" = yes; then
7662: case `/usr/bin/file conftest.$ac_objext` in
7663: *32-bit*)
7664: LD="${LD-ld} -melf32bsmip"
7665: ;;
7666: *N32*)
7667: LD="${LD-ld} -melf32bmipn32"
7668: ;;
7669: *64-bit*)
7670: LD="${LD-ld} -melf64bmip"
7671: ;;
7672: esac
7673: else
7674: case `/usr/bin/file conftest.$ac_objext` in
7675: *32-bit*)
7676: LD="${LD-ld} -32"
7677: ;;
7678: *N32*)
7679: LD="${LD-ld} -n32"
7680: ;;
7681: *64-bit*)
7682: LD="${LD-ld} -64"
7683: ;;
7684: esac
7685: fi
7686: fi
7687: rm -rf conftest*
7688: ;;
7689:
7690: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7691: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7692: # Find out which ABI we are using.
7693: echo 'int i;' > conftest.$ac_ext
1.150 moko 7694: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7695: (eval $ac_compile) 2>&5
7696: ac_status=$?
1.150 moko 7697: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698: test $ac_status = 0; }; then
1.128 moko 7699: case `/usr/bin/file conftest.o` in
7700: *32-bit*)
7701: case $host in
7702: x86_64-*kfreebsd*-gnu)
7703: LD="${LD-ld} -m elf_i386_fbsd"
7704: ;;
7705: x86_64-*linux*)
7706: LD="${LD-ld} -m elf_i386"
7707: ;;
7708: ppc64-*linux*|powerpc64-*linux*)
7709: LD="${LD-ld} -m elf32ppclinux"
7710: ;;
7711: s390x-*linux*)
7712: LD="${LD-ld} -m elf_s390"
7713: ;;
7714: sparc64-*linux*)
7715: LD="${LD-ld} -m elf32_sparc"
7716: ;;
7717: esac
7718: ;;
7719: *64-bit*)
7720: case $host in
7721: x86_64-*kfreebsd*-gnu)
7722: LD="${LD-ld} -m elf_x86_64_fbsd"
7723: ;;
7724: x86_64-*linux*)
7725: LD="${LD-ld} -m elf_x86_64"
7726: ;;
7727: ppc*-*linux*|powerpc*-*linux*)
7728: LD="${LD-ld} -m elf64ppc"
7729: ;;
7730: s390*-*linux*|s390*-*tpf*)
7731: LD="${LD-ld} -m elf64_s390"
7732: ;;
7733: sparc*-*linux*)
7734: LD="${LD-ld} -m elf64_sparc"
7735: ;;
7736: esac
7737: ;;
7738: esac
7739: fi
7740: rm -rf conftest*
7741: ;;
7742:
7743: *-*-sco3.2v5*)
7744: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7745: SAVE_CFLAGS="$CFLAGS"
7746: CFLAGS="$CFLAGS -belf"
1.150 moko 7747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7748: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7749: if ${lt_cv_cc_needs_belf+:} false; then :
7750: $as_echo_n "(cached) " >&6
1.128 moko 7751: else
7752: ac_ext=c
7753: ac_cpp='$CPP $CPPFLAGS'
7754: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757:
1.150 moko 7758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7759: /* end confdefs.h. */
7760:
7761: int
7762: main ()
7763: {
7764:
7765: ;
7766: return 0;
7767: }
7768: _ACEOF
1.150 moko 7769: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7770: lt_cv_cc_needs_belf=yes
7771: else
1.150 moko 7772: lt_cv_cc_needs_belf=no
1.128 moko 7773: fi
1.150 moko 7774: rm -f core conftest.err conftest.$ac_objext \
7775: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7776: ac_ext=c
7777: ac_cpp='$CPP $CPPFLAGS'
7778: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781:
7782: fi
1.150 moko 7783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7784: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7785: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7786: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7787: CFLAGS="$SAVE_CFLAGS"
7788: fi
7789: ;;
7790: *-*solaris*)
7791: # Find out which ABI we are using.
7792: echo 'int i;' > conftest.$ac_ext
1.150 moko 7793: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7794: (eval $ac_compile) 2>&5
7795: ac_status=$?
1.150 moko 7796: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797: test $ac_status = 0; }; then
1.128 moko 7798: case `/usr/bin/file conftest.o` in
7799: *64-bit*)
7800: case $lt_cv_prog_gnu_ld in
7801: yes*)
7802: case $host in
7803: i?86-*-solaris*)
7804: LD="${LD-ld} -m elf_x86_64"
7805: ;;
7806: sparc*-*-solaris*)
7807: LD="${LD-ld} -m elf64_sparc"
7808: ;;
7809: esac
7810: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7811: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7812: LD="${LD-ld}_sol2"
7813: fi
7814: ;;
7815: *)
7816: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7817: LD="${LD-ld} -64"
7818: fi
7819: ;;
7820: esac
7821: ;;
7822: esac
7823: fi
7824: rm -rf conftest*
7825: ;;
7826: esac
7827:
7828: need_locks="$enable_libtool_lock"
7829:
7830: if test -n "$ac_tool_prefix"; then
7831: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7832: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834: $as_echo_n "checking for $ac_word... " >&6; }
7835: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7836: $as_echo_n "(cached) " >&6
1.128 moko 7837: else
7838: if test -n "$MANIFEST_TOOL"; then
7839: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7840: else
7841: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842: for as_dir in $PATH
7843: do
7844: IFS=$as_save_IFS
7845: test -z "$as_dir" && as_dir=.
1.150 moko 7846: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7847: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7848: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7849: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7850: break 2
7851: fi
7852: done
1.150 moko 7853: done
7854: IFS=$as_save_IFS
1.128 moko 7855:
7856: fi
7857: fi
7858: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7859: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7861: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7862: else
1.150 moko 7863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864: $as_echo "no" >&6; }
1.128 moko 7865: fi
7866:
1.150 moko 7867:
1.128 moko 7868: fi
7869: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7870: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7871: # Extract the first word of "mt", so it can be a program name with args.
7872: set dummy mt; ac_word=$2
1.150 moko 7873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874: $as_echo_n "checking for $ac_word... " >&6; }
7875: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7876: $as_echo_n "(cached) " >&6
1.128 moko 7877: else
7878: if test -n "$ac_ct_MANIFEST_TOOL"; then
7879: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7880: else
7881: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882: for as_dir in $PATH
7883: do
7884: IFS=$as_save_IFS
7885: test -z "$as_dir" && as_dir=.
1.150 moko 7886: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7887: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7888: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7889: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7890: break 2
7891: fi
7892: done
1.150 moko 7893: done
7894: IFS=$as_save_IFS
1.128 moko 7895:
7896: fi
7897: fi
7898: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7899: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7901: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7902: else
1.150 moko 7903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904: $as_echo "no" >&6; }
1.128 moko 7905: fi
7906:
1.150 moko 7907: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7908: MANIFEST_TOOL=":"
7909: else
7910: case $cross_compiling:$ac_tool_warned in
7911: yes:)
7912: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914: ac_tool_warned=yes ;;
7915: esac
7916: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7917: fi
1.128 moko 7918: else
7919: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7920: fi
7921:
7922: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7924: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7925: if ${lt_cv_path_mainfest_tool+:} false; then :
7926: $as_echo_n "(cached) " >&6
1.128 moko 7927: else
7928: lt_cv_path_mainfest_tool=no
7929: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7930: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7931: cat conftest.err >&5
7932: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7933: lt_cv_path_mainfest_tool=yes
7934: fi
7935: rm -f conftest*
7936: fi
1.150 moko 7937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7938: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 7939: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7940: MANIFEST_TOOL=:
7941: fi
7942:
7943:
7944:
7945:
7946:
7947:
7948: case $host_os in
7949: rhapsody* | darwin*)
7950: if test -n "$ac_tool_prefix"; then
7951: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7952: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 7953: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954: $as_echo_n "checking for $ac_word... " >&6; }
7955: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7956: $as_echo_n "(cached) " >&6
1.128 moko 7957: else
7958: if test -n "$DSYMUTIL"; then
7959: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7960: else
7961: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962: for as_dir in $PATH
7963: do
7964: IFS=$as_save_IFS
7965: test -z "$as_dir" && as_dir=.
1.150 moko 7966: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7967: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7968: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 7969: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7970: break 2
7971: fi
7972: done
1.150 moko 7973: done
7974: IFS=$as_save_IFS
1.128 moko 7975:
7976: fi
7977: fi
7978: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7979: if test -n "$DSYMUTIL"; then
1.150 moko 7980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7981: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 7982: else
1.150 moko 7983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984: $as_echo "no" >&6; }
1.128 moko 7985: fi
7986:
1.150 moko 7987:
1.128 moko 7988: fi
7989: if test -z "$ac_cv_prog_DSYMUTIL"; then
7990: ac_ct_DSYMUTIL=$DSYMUTIL
7991: # Extract the first word of "dsymutil", so it can be a program name with args.
7992: set dummy dsymutil; ac_word=$2
1.150 moko 7993: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994: $as_echo_n "checking for $ac_word... " >&6; }
7995: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7996: $as_echo_n "(cached) " >&6
1.128 moko 7997: else
7998: if test -n "$ac_ct_DSYMUTIL"; then
7999: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8000: else
8001: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002: for as_dir in $PATH
8003: do
8004: IFS=$as_save_IFS
8005: test -z "$as_dir" && as_dir=.
1.150 moko 8006: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8007: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8008: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 8009: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8010: break 2
8011: fi
8012: done
1.150 moko 8013: done
8014: IFS=$as_save_IFS
1.128 moko 8015:
8016: fi
8017: fi
8018: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8019: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 8020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8021: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 8022: else
1.150 moko 8023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024: $as_echo "no" >&6; }
1.128 moko 8025: fi
8026:
1.150 moko 8027: if test "x$ac_ct_DSYMUTIL" = x; then
8028: DSYMUTIL=":"
8029: else
8030: case $cross_compiling:$ac_tool_warned in
8031: yes:)
8032: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8033: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8034: ac_tool_warned=yes ;;
8035: esac
8036: DSYMUTIL=$ac_ct_DSYMUTIL
8037: fi
1.128 moko 8038: else
8039: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8040: fi
8041:
8042: if test -n "$ac_tool_prefix"; then
8043: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8044: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 8045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8046: $as_echo_n "checking for $ac_word... " >&6; }
8047: if ${ac_cv_prog_NMEDIT+:} false; then :
8048: $as_echo_n "(cached) " >&6
1.128 moko 8049: else
8050: if test -n "$NMEDIT"; then
8051: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8052: else
8053: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054: for as_dir in $PATH
8055: do
8056: IFS=$as_save_IFS
8057: test -z "$as_dir" && as_dir=.
1.150 moko 8058: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8059: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8060: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 8061: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8062: break 2
8063: fi
8064: done
1.150 moko 8065: done
8066: IFS=$as_save_IFS
1.128 moko 8067:
8068: fi
8069: fi
8070: NMEDIT=$ac_cv_prog_NMEDIT
8071: if test -n "$NMEDIT"; then
1.150 moko 8072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8073: $as_echo "$NMEDIT" >&6; }
1.128 moko 8074: else
1.150 moko 8075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076: $as_echo "no" >&6; }
1.128 moko 8077: fi
8078:
1.150 moko 8079:
1.128 moko 8080: fi
8081: if test -z "$ac_cv_prog_NMEDIT"; then
8082: ac_ct_NMEDIT=$NMEDIT
8083: # Extract the first word of "nmedit", so it can be a program name with args.
8084: set dummy nmedit; ac_word=$2
1.150 moko 8085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086: $as_echo_n "checking for $ac_word... " >&6; }
8087: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8088: $as_echo_n "(cached) " >&6
1.128 moko 8089: else
8090: if test -n "$ac_ct_NMEDIT"; then
8091: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8092: else
8093: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094: for as_dir in $PATH
8095: do
8096: IFS=$as_save_IFS
8097: test -z "$as_dir" && as_dir=.
1.150 moko 8098: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8099: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8100: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 8101: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8102: break 2
8103: fi
8104: done
1.150 moko 8105: done
8106: IFS=$as_save_IFS
1.128 moko 8107:
8108: fi
8109: fi
8110: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8111: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 8112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8113: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 8114: else
1.150 moko 8115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116: $as_echo "no" >&6; }
1.128 moko 8117: fi
8118:
1.150 moko 8119: if test "x$ac_ct_NMEDIT" = x; then
8120: NMEDIT=":"
8121: else
8122: case $cross_compiling:$ac_tool_warned in
8123: yes:)
8124: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8125: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8126: ac_tool_warned=yes ;;
8127: esac
8128: NMEDIT=$ac_ct_NMEDIT
8129: fi
1.128 moko 8130: else
8131: NMEDIT="$ac_cv_prog_NMEDIT"
8132: fi
8133:
8134: if test -n "$ac_tool_prefix"; then
8135: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8136: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 8137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138: $as_echo_n "checking for $ac_word... " >&6; }
8139: if ${ac_cv_prog_LIPO+:} false; then :
8140: $as_echo_n "(cached) " >&6
1.128 moko 8141: else
8142: if test -n "$LIPO"; then
8143: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8144: else
8145: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146: for as_dir in $PATH
8147: do
8148: IFS=$as_save_IFS
8149: test -z "$as_dir" && as_dir=.
1.150 moko 8150: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8151: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8152: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 8153: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8154: break 2
8155: fi
8156: done
1.150 moko 8157: done
8158: IFS=$as_save_IFS
1.128 moko 8159:
8160: fi
8161: fi
8162: LIPO=$ac_cv_prog_LIPO
8163: if test -n "$LIPO"; then
1.150 moko 8164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8165: $as_echo "$LIPO" >&6; }
1.128 moko 8166: else
1.150 moko 8167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168: $as_echo "no" >&6; }
1.128 moko 8169: fi
8170:
1.150 moko 8171:
1.128 moko 8172: fi
8173: if test -z "$ac_cv_prog_LIPO"; then
8174: ac_ct_LIPO=$LIPO
8175: # Extract the first word of "lipo", so it can be a program name with args.
8176: set dummy lipo; ac_word=$2
1.150 moko 8177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178: $as_echo_n "checking for $ac_word... " >&6; }
8179: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8180: $as_echo_n "(cached) " >&6
1.128 moko 8181: else
8182: if test -n "$ac_ct_LIPO"; then
8183: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8184: else
8185: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186: for as_dir in $PATH
8187: do
8188: IFS=$as_save_IFS
8189: test -z "$as_dir" && as_dir=.
1.150 moko 8190: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8191: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8192: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 8193: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8194: break 2
8195: fi
8196: done
1.150 moko 8197: done
8198: IFS=$as_save_IFS
1.128 moko 8199:
8200: fi
8201: fi
8202: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8203: if test -n "$ac_ct_LIPO"; then
1.150 moko 8204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8205: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 8206: else
1.150 moko 8207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208: $as_echo "no" >&6; }
1.128 moko 8209: fi
8210:
1.150 moko 8211: if test "x$ac_ct_LIPO" = x; then
8212: LIPO=":"
8213: else
8214: case $cross_compiling:$ac_tool_warned in
8215: yes:)
8216: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8217: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8218: ac_tool_warned=yes ;;
8219: esac
8220: LIPO=$ac_ct_LIPO
8221: fi
1.128 moko 8222: else
8223: LIPO="$ac_cv_prog_LIPO"
8224: fi
8225:
8226: if test -n "$ac_tool_prefix"; then
8227: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8228: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 8229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230: $as_echo_n "checking for $ac_word... " >&6; }
8231: if ${ac_cv_prog_OTOOL+:} false; then :
8232: $as_echo_n "(cached) " >&6
1.128 moko 8233: else
8234: if test -n "$OTOOL"; then
8235: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8236: else
8237: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238: for as_dir in $PATH
8239: do
8240: IFS=$as_save_IFS
8241: test -z "$as_dir" && as_dir=.
1.150 moko 8242: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8243: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8244: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 8245: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8246: break 2
8247: fi
8248: done
1.150 moko 8249: done
8250: IFS=$as_save_IFS
1.128 moko 8251:
8252: fi
8253: fi
8254: OTOOL=$ac_cv_prog_OTOOL
8255: if test -n "$OTOOL"; then
1.150 moko 8256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8257: $as_echo "$OTOOL" >&6; }
1.128 moko 8258: else
1.150 moko 8259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260: $as_echo "no" >&6; }
1.128 moko 8261: fi
8262:
1.150 moko 8263:
1.128 moko 8264: fi
8265: if test -z "$ac_cv_prog_OTOOL"; then
8266: ac_ct_OTOOL=$OTOOL
8267: # Extract the first word of "otool", so it can be a program name with args.
8268: set dummy otool; ac_word=$2
1.150 moko 8269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270: $as_echo_n "checking for $ac_word... " >&6; }
8271: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8272: $as_echo_n "(cached) " >&6
1.128 moko 8273: else
8274: if test -n "$ac_ct_OTOOL"; then
8275: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8276: else
8277: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278: for as_dir in $PATH
8279: do
8280: IFS=$as_save_IFS
8281: test -z "$as_dir" && as_dir=.
1.150 moko 8282: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8283: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8284: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 8285: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8286: break 2
8287: fi
8288: done
1.150 moko 8289: done
8290: IFS=$as_save_IFS
1.128 moko 8291:
8292: fi
8293: fi
8294: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8295: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8297: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8298: else
1.150 moko 8299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300: $as_echo "no" >&6; }
1.128 moko 8301: fi
8302:
1.150 moko 8303: if test "x$ac_ct_OTOOL" = x; then
8304: OTOOL=":"
8305: else
8306: case $cross_compiling:$ac_tool_warned in
8307: yes:)
8308: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8309: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8310: ac_tool_warned=yes ;;
8311: esac
8312: OTOOL=$ac_ct_OTOOL
8313: fi
1.128 moko 8314: else
8315: OTOOL="$ac_cv_prog_OTOOL"
8316: fi
8317:
8318: if test -n "$ac_tool_prefix"; then
8319: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8320: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322: $as_echo_n "checking for $ac_word... " >&6; }
8323: if ${ac_cv_prog_OTOOL64+:} false; then :
8324: $as_echo_n "(cached) " >&6
1.128 moko 8325: else
8326: if test -n "$OTOOL64"; then
8327: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8328: else
8329: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330: for as_dir in $PATH
8331: do
8332: IFS=$as_save_IFS
8333: test -z "$as_dir" && as_dir=.
1.150 moko 8334: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8335: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8336: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8337: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8338: break 2
8339: fi
8340: done
1.150 moko 8341: done
8342: IFS=$as_save_IFS
1.128 moko 8343:
8344: fi
8345: fi
8346: OTOOL64=$ac_cv_prog_OTOOL64
8347: if test -n "$OTOOL64"; then
1.150 moko 8348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8349: $as_echo "$OTOOL64" >&6; }
1.128 moko 8350: else
1.150 moko 8351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352: $as_echo "no" >&6; }
1.128 moko 8353: fi
8354:
1.150 moko 8355:
1.128 moko 8356: fi
8357: if test -z "$ac_cv_prog_OTOOL64"; then
8358: ac_ct_OTOOL64=$OTOOL64
8359: # Extract the first word of "otool64", so it can be a program name with args.
8360: set dummy otool64; ac_word=$2
1.150 moko 8361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362: $as_echo_n "checking for $ac_word... " >&6; }
8363: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8364: $as_echo_n "(cached) " >&6
1.128 moko 8365: else
8366: if test -n "$ac_ct_OTOOL64"; then
8367: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8368: else
8369: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370: for as_dir in $PATH
8371: do
8372: IFS=$as_save_IFS
8373: test -z "$as_dir" && as_dir=.
1.150 moko 8374: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8375: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8376: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8377: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8378: break 2
8379: fi
8380: done
1.150 moko 8381: done
8382: IFS=$as_save_IFS
1.128 moko 8383:
8384: fi
8385: fi
8386: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8387: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8389: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8390: else
1.150 moko 8391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392: $as_echo "no" >&6; }
1.128 moko 8393: fi
8394:
1.150 moko 8395: if test "x$ac_ct_OTOOL64" = x; then
8396: OTOOL64=":"
8397: else
8398: case $cross_compiling:$ac_tool_warned in
8399: yes:)
8400: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8401: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8402: ac_tool_warned=yes ;;
8403: esac
8404: OTOOL64=$ac_ct_OTOOL64
8405: fi
1.128 moko 8406: else
8407: OTOOL64="$ac_cv_prog_OTOOL64"
8408: fi
8409:
8410:
8411:
8412:
8413:
8414:
8415:
8416:
8417:
8418:
8419:
8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
8432:
8433:
8434:
8435:
1.150 moko 8436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8437: $as_echo_n "checking for -single_module linker flag... " >&6; }
8438: if ${lt_cv_apple_cc_single_mod+:} false; then :
8439: $as_echo_n "(cached) " >&6
1.128 moko 8440: else
8441: lt_cv_apple_cc_single_mod=no
8442: if test -z "${LT_MULTI_MODULE}"; then
8443: # By default we will add the -single_module flag. You can override
8444: # by either setting the environment variable LT_MULTI_MODULE
8445: # non-empty at configure time, or by adding -multi_module to the
8446: # link flags.
8447: rm -rf libconftest.dylib*
8448: echo "int foo(void){return 1;}" > conftest.c
8449: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8450: -dynamiclib -Wl,-single_module conftest.c" >&5
8451: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8452: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8453: _lt_result=$?
8454: # If there is a non-empty error log, and "single_module"
8455: # appears in it, assume the flag caused a linker warning
8456: if test -s conftest.err && $GREP single_module conftest.err; then
8457: cat conftest.err >&5
8458: # Otherwise, if the output was created with a 0 exit code from
8459: # the compiler, it worked.
8460: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8461: lt_cv_apple_cc_single_mod=yes
8462: else
8463: cat conftest.err >&5
8464: fi
8465: rm -rf libconftest.dylib*
8466: rm -f conftest.*
8467: fi
8468: fi
1.150 moko 8469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8470: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8471:
1.150 moko 8472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8473: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8474: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8475: $as_echo_n "(cached) " >&6
1.128 moko 8476: else
8477: lt_cv_ld_exported_symbols_list=no
8478: save_LDFLAGS=$LDFLAGS
8479: echo "_main" > conftest.sym
8480: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8482: /* end confdefs.h. */
8483:
8484: int
8485: main ()
8486: {
8487:
8488: ;
8489: return 0;
8490: }
8491: _ACEOF
1.150 moko 8492: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8493: lt_cv_ld_exported_symbols_list=yes
8494: else
1.150 moko 8495: lt_cv_ld_exported_symbols_list=no
1.128 moko 8496: fi
1.150 moko 8497: rm -f core conftest.err conftest.$ac_objext \
8498: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8499: LDFLAGS="$save_LDFLAGS"
8500:
8501: fi
1.150 moko 8502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8503: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8504:
1.150 moko 8505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8506: $as_echo_n "checking for -force_load linker flag... " >&6; }
8507: if ${lt_cv_ld_force_load+:} false; then :
8508: $as_echo_n "(cached) " >&6
1.128 moko 8509: else
8510: lt_cv_ld_force_load=no
8511: cat > conftest.c << _LT_EOF
8512: int forced_loaded() { return 2;}
8513: _LT_EOF
8514: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8515: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8516: echo "$AR cru libconftest.a conftest.o" >&5
8517: $AR cru libconftest.a conftest.o 2>&5
8518: echo "$RANLIB libconftest.a" >&5
8519: $RANLIB libconftest.a 2>&5
8520: cat > conftest.c << _LT_EOF
8521: int main() { return 0;}
8522: _LT_EOF
8523: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8524: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8525: _lt_result=$?
8526: if test -s conftest.err && $GREP force_load conftest.err; then
8527: cat conftest.err >&5
8528: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8529: lt_cv_ld_force_load=yes
8530: else
8531: cat conftest.err >&5
8532: fi
8533: rm -f conftest.err libconftest.a conftest conftest.c
8534: rm -rf conftest.dSYM
8535:
8536: fi
1.150 moko 8537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8538: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8539: case $host_os in
8540: rhapsody* | darwin1.[012])
8541: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8542: darwin1.*)
8543: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8544: darwin*) # darwin 5.x on
8545: # if running on 10.5 or later, the deployment target defaults
8546: # to the OS version, if on x86, and 10.4, the deployment
8547: # target defaults to 10.4. Don't you love it?
8548: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8549: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8550: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8551: 10.[012]*)
8552: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8553: 10.*)
8554: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8555: esac
8556: ;;
8557: esac
8558: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8559: _lt_dar_single_mod='$single_module'
8560: fi
8561: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8562: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8563: else
8564: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8565: fi
8566: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8567: _lt_dsymutil='~$DSYMUTIL $lib || :'
8568: else
8569: _lt_dsymutil=
8570: fi
8571: ;;
8572: esac
8573:
8574: ac_ext=c
8575: ac_cpp='$CPP $CPPFLAGS'
8576: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8577: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8578: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8580: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8581: # On Suns, sometimes $CPP names a directory.
8582: if test -n "$CPP" && test -d "$CPP"; then
8583: CPP=
8584: fi
8585: if test -z "$CPP"; then
1.150 moko 8586: if ${ac_cv_prog_CPP+:} false; then :
8587: $as_echo_n "(cached) " >&6
1.128 moko 8588: else
8589: # Double quotes because CPP needs to be expanded
8590: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8591: do
8592: ac_preproc_ok=false
8593: for ac_c_preproc_warn_flag in '' yes
8594: do
8595: # Use a header file that comes with gcc, so configuring glibc
8596: # with a fresh cross-compiler works.
8597: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8598: # <limits.h> exists even on freestanding compilers.
8599: # On the NeXT, cc -E runs the code through the compiler's parser,
8600: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8602: /* end confdefs.h. */
8603: #ifdef __STDC__
8604: # include <limits.h>
8605: #else
8606: # include <assert.h>
8607: #endif
8608: Syntax error
8609: _ACEOF
1.150 moko 8610: if ac_fn_c_try_cpp "$LINENO"; then :
8611:
1.128 moko 8612: else
8613: # Broken: fails on valid input.
8614: continue
8615: fi
1.150 moko 8616: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8617:
1.150 moko 8618: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8619: # can be detected and how.
1.150 moko 8620: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8621: /* end confdefs.h. */
8622: #include <ac_nonexistent.h>
8623: _ACEOF
1.150 moko 8624: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8625: # Broken: success on invalid input.
8626: continue
8627: else
8628: # Passes both tests.
8629: ac_preproc_ok=:
8630: break
8631: fi
1.150 moko 8632: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8633:
8634: done
8635: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8636: rm -f conftest.i conftest.err conftest.$ac_ext
8637: if $ac_preproc_ok; then :
1.128 moko 8638: break
8639: fi
8640:
8641: done
8642: ac_cv_prog_CPP=$CPP
8643:
8644: fi
8645: CPP=$ac_cv_prog_CPP
8646: else
8647: ac_cv_prog_CPP=$CPP
8648: fi
1.150 moko 8649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8650: $as_echo "$CPP" >&6; }
1.128 moko 8651: ac_preproc_ok=false
8652: for ac_c_preproc_warn_flag in '' yes
8653: do
8654: # Use a header file that comes with gcc, so configuring glibc
8655: # with a fresh cross-compiler works.
8656: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657: # <limits.h> exists even on freestanding compilers.
8658: # On the NeXT, cc -E runs the code through the compiler's parser,
8659: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8660: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8661: /* end confdefs.h. */
8662: #ifdef __STDC__
8663: # include <limits.h>
8664: #else
8665: # include <assert.h>
8666: #endif
8667: Syntax error
8668: _ACEOF
1.150 moko 8669: if ac_fn_c_try_cpp "$LINENO"; then :
8670:
1.128 moko 8671: else
8672: # Broken: fails on valid input.
8673: continue
8674: fi
1.150 moko 8675: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8676:
1.150 moko 8677: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8678: # can be detected and how.
1.150 moko 8679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8680: /* end confdefs.h. */
8681: #include <ac_nonexistent.h>
8682: _ACEOF
1.150 moko 8683: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8684: # Broken: success on invalid input.
8685: continue
8686: else
8687: # Passes both tests.
8688: ac_preproc_ok=:
8689: break
8690: fi
1.150 moko 8691: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8692:
8693: done
8694: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8695: rm -f conftest.i conftest.err conftest.$ac_ext
8696: if $ac_preproc_ok; then :
8697:
1.128 moko 8698: else
1.150 moko 8699: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8700: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8701: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8702: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8703: fi
8704:
8705: ac_ext=c
8706: ac_cpp='$CPP $CPPFLAGS'
8707: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8710:
8711:
1.150 moko 8712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8713: $as_echo_n "checking for ANSI C header files... " >&6; }
8714: if ${ac_cv_header_stdc+:} false; then :
8715: $as_echo_n "(cached) " >&6
1.128 moko 8716: else
1.150 moko 8717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8718: /* end confdefs.h. */
8719: #include <stdlib.h>
8720: #include <stdarg.h>
8721: #include <string.h>
8722: #include <float.h>
8723:
8724: int
8725: main ()
8726: {
8727:
8728: ;
8729: return 0;
8730: }
8731: _ACEOF
1.150 moko 8732: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8733: ac_cv_header_stdc=yes
8734: else
1.150 moko 8735: ac_cv_header_stdc=no
1.128 moko 8736: fi
1.150 moko 8737: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8738:
8739: if test $ac_cv_header_stdc = yes; then
8740: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8742: /* end confdefs.h. */
8743: #include <string.h>
8744:
8745: _ACEOF
8746: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8747: $EGREP "memchr" >/dev/null 2>&1; then :
8748:
1.128 moko 8749: else
8750: ac_cv_header_stdc=no
8751: fi
8752: rm -f conftest*
8753:
8754: fi
8755:
8756: if test $ac_cv_header_stdc = yes; then
8757: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8759: /* end confdefs.h. */
8760: #include <stdlib.h>
8761:
8762: _ACEOF
8763: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8764: $EGREP "free" >/dev/null 2>&1; then :
8765:
1.128 moko 8766: else
8767: ac_cv_header_stdc=no
8768: fi
8769: rm -f conftest*
8770:
8771: fi
8772:
8773: if test $ac_cv_header_stdc = yes; then
8774: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8775: if test "$cross_compiling" = yes; then :
1.128 moko 8776: :
8777: else
1.150 moko 8778: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8779: /* end confdefs.h. */
8780: #include <ctype.h>
1.150 moko 8781: #include <stdlib.h>
1.128 moko 8782: #if ((' ' & 0x0FF) == 0x020)
8783: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8784: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8785: #else
8786: # define ISLOWER(c) \
8787: (('a' <= (c) && (c) <= 'i') \
8788: || ('j' <= (c) && (c) <= 'r') \
8789: || ('s' <= (c) && (c) <= 'z'))
8790: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8791: #endif
8792:
8793: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8794: int
8795: main ()
8796: {
8797: int i;
8798: for (i = 0; i < 256; i++)
8799: if (XOR (islower (i), ISLOWER (i))
8800: || toupper (i) != TOUPPER (i))
1.150 moko 8801: return 2;
8802: return 0;
1.128 moko 8803: }
8804: _ACEOF
1.150 moko 8805: if ac_fn_c_try_run "$LINENO"; then :
8806:
1.128 moko 8807: else
1.150 moko 8808: ac_cv_header_stdc=no
1.128 moko 8809: fi
1.150 moko 8810: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8811: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8812: fi
1.150 moko 8813:
1.128 moko 8814: fi
8815: fi
1.150 moko 8816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8817: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8818: if test $ac_cv_header_stdc = yes; then
8819:
1.150 moko 8820: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8821:
8822: fi
8823:
8824: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8825: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8826: inttypes.h stdint.h unistd.h
8827: do :
8828: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8829: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8830: "
8831: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8832: cat >>confdefs.h <<_ACEOF
8833: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8834: _ACEOF
1.128 moko 8835:
1.150 moko 8836: fi
1.128 moko 8837:
1.150 moko 8838: done
1.128 moko 8839:
8840:
1.150 moko 8841: for ac_header in dlfcn.h
8842: do :
8843: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8844: "
8845: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8846: cat >>confdefs.h <<_ACEOF
8847: #define HAVE_DLFCN_H 1
8848: _ACEOF
1.128 moko 8849:
1.150 moko 8850: fi
1.128 moko 8851:
1.150 moko 8852: done
1.128 moko 8853:
8854:
8855:
8856:
1.150 moko 8857: func_stripname_cnf ()
8858: {
8859: case ${2} in
8860: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8861: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8862: esac
8863: } # func_stripname_cnf
1.128 moko 8864:
8865:
8866:
8867:
8868:
8869: # Set options
8870: enable_dlopen=yes
8871: enable_win32_dll=yes
8872:
8873: case $host in
8874: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8875: if test -n "$ac_tool_prefix"; then
8876: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8877: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879: $as_echo_n "checking for $ac_word... " >&6; }
8880: if ${ac_cv_prog_AS+:} false; then :
8881: $as_echo_n "(cached) " >&6
1.128 moko 8882: else
8883: if test -n "$AS"; then
8884: ac_cv_prog_AS="$AS" # Let the user override the test.
8885: else
8886: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887: for as_dir in $PATH
8888: do
8889: IFS=$as_save_IFS
8890: test -z "$as_dir" && as_dir=.
1.150 moko 8891: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8892: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8893: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8894: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8895: break 2
8896: fi
8897: done
1.150 moko 8898: done
8899: IFS=$as_save_IFS
1.128 moko 8900:
8901: fi
8902: fi
8903: AS=$ac_cv_prog_AS
8904: if test -n "$AS"; then
1.150 moko 8905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8906: $as_echo "$AS" >&6; }
1.128 moko 8907: else
1.150 moko 8908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909: $as_echo "no" >&6; }
1.128 moko 8910: fi
8911:
1.150 moko 8912:
1.128 moko 8913: fi
8914: if test -z "$ac_cv_prog_AS"; then
8915: ac_ct_AS=$AS
8916: # Extract the first word of "as", so it can be a program name with args.
8917: set dummy as; ac_word=$2
1.150 moko 8918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919: $as_echo_n "checking for $ac_word... " >&6; }
8920: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8921: $as_echo_n "(cached) " >&6
1.128 moko 8922: else
8923: if test -n "$ac_ct_AS"; then
8924: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8925: else
8926: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927: for as_dir in $PATH
8928: do
8929: IFS=$as_save_IFS
8930: test -z "$as_dir" && as_dir=.
1.150 moko 8931: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8932: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8933: ac_cv_prog_ac_ct_AS="as"
1.150 moko 8934: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8935: break 2
8936: fi
8937: done
1.150 moko 8938: done
8939: IFS=$as_save_IFS
1.128 moko 8940:
8941: fi
8942: fi
8943: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8944: if test -n "$ac_ct_AS"; then
1.150 moko 8945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8946: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 8947: else
1.150 moko 8948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949: $as_echo "no" >&6; }
1.128 moko 8950: fi
8951:
1.150 moko 8952: if test "x$ac_ct_AS" = x; then
8953: AS="false"
8954: else
8955: case $cross_compiling:$ac_tool_warned in
8956: yes:)
8957: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8958: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8959: ac_tool_warned=yes ;;
8960: esac
8961: AS=$ac_ct_AS
8962: fi
1.128 moko 8963: else
8964: AS="$ac_cv_prog_AS"
8965: fi
8966:
8967: if test -n "$ac_tool_prefix"; then
8968: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8969: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 8970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971: $as_echo_n "checking for $ac_word... " >&6; }
8972: if ${ac_cv_prog_DLLTOOL+:} false; then :
8973: $as_echo_n "(cached) " >&6
1.128 moko 8974: else
8975: if test -n "$DLLTOOL"; then
8976: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8977: else
8978: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979: for as_dir in $PATH
8980: do
8981: IFS=$as_save_IFS
8982: test -z "$as_dir" && as_dir=.
1.150 moko 8983: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8984: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8985: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 8986: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8987: break 2
8988: fi
8989: done
1.150 moko 8990: done
8991: IFS=$as_save_IFS
1.128 moko 8992:
8993: fi
8994: fi
8995: DLLTOOL=$ac_cv_prog_DLLTOOL
8996: if test -n "$DLLTOOL"; then
1.150 moko 8997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8998: $as_echo "$DLLTOOL" >&6; }
1.128 moko 8999: else
1.150 moko 9000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001: $as_echo "no" >&6; }
1.128 moko 9002: fi
9003:
1.150 moko 9004:
1.128 moko 9005: fi
9006: if test -z "$ac_cv_prog_DLLTOOL"; then
9007: ac_ct_DLLTOOL=$DLLTOOL
9008: # Extract the first word of "dlltool", so it can be a program name with args.
9009: set dummy dlltool; ac_word=$2
1.150 moko 9010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011: $as_echo_n "checking for $ac_word... " >&6; }
9012: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9013: $as_echo_n "(cached) " >&6
1.128 moko 9014: else
9015: if test -n "$ac_ct_DLLTOOL"; then
9016: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9017: else
9018: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019: for as_dir in $PATH
9020: do
9021: IFS=$as_save_IFS
9022: test -z "$as_dir" && as_dir=.
1.150 moko 9023: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9024: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9025: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 9026: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9027: break 2
9028: fi
9029: done
1.150 moko 9030: done
9031: IFS=$as_save_IFS
1.128 moko 9032:
9033: fi
9034: fi
9035: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9036: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 9037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9038: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 9039: else
1.150 moko 9040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041: $as_echo "no" >&6; }
1.128 moko 9042: fi
9043:
1.150 moko 9044: if test "x$ac_ct_DLLTOOL" = x; then
9045: DLLTOOL="false"
9046: else
9047: case $cross_compiling:$ac_tool_warned in
9048: yes:)
9049: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9050: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9051: ac_tool_warned=yes ;;
9052: esac
9053: DLLTOOL=$ac_ct_DLLTOOL
9054: fi
1.128 moko 9055: else
9056: DLLTOOL="$ac_cv_prog_DLLTOOL"
9057: fi
9058:
9059: if test -n "$ac_tool_prefix"; then
9060: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9061: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 9062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063: $as_echo_n "checking for $ac_word... " >&6; }
9064: if ${ac_cv_prog_OBJDUMP+:} false; then :
9065: $as_echo_n "(cached) " >&6
1.128 moko 9066: else
9067: if test -n "$OBJDUMP"; then
9068: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9069: else
9070: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071: for as_dir in $PATH
9072: do
9073: IFS=$as_save_IFS
9074: test -z "$as_dir" && as_dir=.
1.150 moko 9075: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9076: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9077: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 9078: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9079: break 2
9080: fi
9081: done
1.150 moko 9082: done
9083: IFS=$as_save_IFS
1.128 moko 9084:
9085: fi
9086: fi
9087: OBJDUMP=$ac_cv_prog_OBJDUMP
9088: if test -n "$OBJDUMP"; then
1.150 moko 9089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9090: $as_echo "$OBJDUMP" >&6; }
1.128 moko 9091: else
1.150 moko 9092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093: $as_echo "no" >&6; }
1.128 moko 9094: fi
9095:
1.150 moko 9096:
1.128 moko 9097: fi
9098: if test -z "$ac_cv_prog_OBJDUMP"; then
9099: ac_ct_OBJDUMP=$OBJDUMP
9100: # Extract the first word of "objdump", so it can be a program name with args.
9101: set dummy objdump; ac_word=$2
1.150 moko 9102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103: $as_echo_n "checking for $ac_word... " >&6; }
9104: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9105: $as_echo_n "(cached) " >&6
1.128 moko 9106: else
9107: if test -n "$ac_ct_OBJDUMP"; then
9108: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9109: else
9110: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111: for as_dir in $PATH
9112: do
9113: IFS=$as_save_IFS
9114: test -z "$as_dir" && as_dir=.
1.150 moko 9115: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9116: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9117: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 9118: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9119: break 2
9120: fi
9121: done
1.150 moko 9122: done
9123: IFS=$as_save_IFS
1.128 moko 9124:
9125: fi
9126: fi
9127: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9128: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 9129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9130: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 9131: else
1.150 moko 9132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133: $as_echo "no" >&6; }
1.128 moko 9134: fi
9135:
1.150 moko 9136: if test "x$ac_ct_OBJDUMP" = x; then
9137: OBJDUMP="false"
9138: else
9139: case $cross_compiling:$ac_tool_warned in
9140: yes:)
9141: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9142: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9143: ac_tool_warned=yes ;;
9144: esac
9145: OBJDUMP=$ac_ct_OBJDUMP
9146: fi
1.128 moko 9147: else
9148: OBJDUMP="$ac_cv_prog_OBJDUMP"
9149: fi
9150:
9151: ;;
9152: esac
9153:
9154: test -z "$AS" && AS=as
9155:
9156:
9157:
9158:
9159:
9160: test -z "$DLLTOOL" && DLLTOOL=dlltool
9161:
9162:
9163:
9164:
9165:
9166: test -z "$OBJDUMP" && OBJDUMP=objdump
9167:
9168:
9169:
9170:
9171:
1.150 moko 9172: # Check whether --with-pic was given.
9173: if test "${with_pic+set}" = set; then :
9174: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 9175: case $withval in
9176: yes|no) pic_mode=$withval ;;
9177: *)
9178: pic_mode=default
9179: # Look at the argument we got. We use all the common list separators.
9180: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9181: for lt_pkg in $withval; do
9182: IFS="$lt_save_ifs"
9183: if test "X$lt_pkg" = "X$lt_p"; then
9184: pic_mode=yes
9185: fi
9186: done
9187: IFS="$lt_save_ifs"
9188: ;;
9189: esac
9190: else
9191: pic_mode=default
1.150 moko 9192: fi
9193:
1.145 moko 9194:
9195: test -z "$pic_mode" && pic_mode=no
9196:
9197:
9198:
9199:
9200:
9201:
1.128 moko 9202:
9203:
9204:
9205:
1.150 moko 9206: # Check whether --enable-shared was given.
9207: if test "${enable_shared+set}" = set; then :
9208: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 9209: case $enableval in
9210: yes) enable_shared=yes ;;
9211: no) enable_shared=no ;;
9212: *)
9213: enable_shared=no
9214: # Look at the argument we got. We use all the common list separators.
9215: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9216: for pkg in $enableval; do
9217: IFS="$lt_save_ifs"
9218: if test "X$pkg" = "X$p"; then
9219: enable_shared=yes
9220: fi
9221: done
9222: IFS="$lt_save_ifs"
9223: ;;
9224: esac
9225: else
9226: enable_shared=yes
1.150 moko 9227: fi
9228:
1.128 moko 9229:
9230:
9231:
9232:
9233:
9234:
9235:
9236:
1.150 moko 9237: # Check whether --enable-static was given.
9238: if test "${enable_static+set}" = set; then :
9239: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 9240: case $enableval in
9241: yes) enable_static=yes ;;
9242: no) enable_static=no ;;
9243: *)
9244: enable_static=no
9245: # Look at the argument we got. We use all the common list separators.
9246: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9247: for pkg in $enableval; do
9248: IFS="$lt_save_ifs"
9249: if test "X$pkg" = "X$p"; then
9250: enable_static=yes
9251: fi
9252: done
9253: IFS="$lt_save_ifs"
9254: ;;
9255: esac
9256: else
9257: enable_static=yes
1.150 moko 9258: fi
9259:
1.138 moko 9260:
9261:
9262:
9263:
9264:
9265:
9266:
1.128 moko 9267:
9268:
1.150 moko 9269: # Check whether --enable-fast-install was given.
9270: if test "${enable_fast_install+set}" = set; then :
9271: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 9272: case $enableval in
9273: yes) enable_fast_install=yes ;;
9274: no) enable_fast_install=no ;;
9275: *)
9276: enable_fast_install=no
9277: # Look at the argument we got. We use all the common list separators.
9278: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9279: for pkg in $enableval; do
9280: IFS="$lt_save_ifs"
9281: if test "X$pkg" = "X$p"; then
9282: enable_fast_install=yes
9283: fi
9284: done
9285: IFS="$lt_save_ifs"
9286: ;;
9287: esac
9288: else
9289: enable_fast_install=yes
1.150 moko 9290: fi
9291:
1.128 moko 9292:
9293:
9294:
9295:
9296:
9297:
9298:
9299:
9300:
9301:
9302: # This can be used to rebuild libtool when needed
9303: LIBTOOL_DEPS="$ltmain"
9304:
9305: # Always use our own libtool.
9306: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9307:
9308:
9309:
9310:
9311:
9312:
9313:
9314:
9315:
9316:
9317:
9318:
9319:
9320:
9321:
9322:
9323:
9324:
9325:
9326:
9327:
9328:
9329:
9330:
9331:
9332:
9333:
9334:
9335:
9336:
9337: test -z "$LN_S" && LN_S="ln -s"
9338:
9339:
9340:
9341:
9342:
9343:
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351:
9352: if test -n "${ZSH_VERSION+set}" ; then
9353: setopt NO_GLOB_SUBST
9354: fi
9355:
1.150 moko 9356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9357: $as_echo_n "checking for objdir... " >&6; }
9358: if ${lt_cv_objdir+:} false; then :
9359: $as_echo_n "(cached) " >&6
1.128 moko 9360: else
9361: rm -f .libs 2>/dev/null
9362: mkdir .libs 2>/dev/null
9363: if test -d .libs; then
9364: lt_cv_objdir=.libs
9365: else
9366: # MS-DOS does not allow filenames that begin with a dot.
9367: lt_cv_objdir=_libs
9368: fi
9369: rmdir .libs 2>/dev/null
9370: fi
1.150 moko 9371: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9372: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9373: objdir=$lt_cv_objdir
9374:
9375:
9376:
9377:
9378:
9379: cat >>confdefs.h <<_ACEOF
9380: #define LT_OBJDIR "$lt_cv_objdir/"
9381: _ACEOF
9382:
9383:
9384:
9385:
9386: case $host_os in
9387: aix3*)
9388: # AIX sometimes has problems with the GCC collect2 program. For some
9389: # reason, if we set the COLLECT_NAMES environment variable, the problems
9390: # vanish in a puff of smoke.
9391: if test "X${COLLECT_NAMES+set}" != Xset; then
9392: COLLECT_NAMES=
9393: export COLLECT_NAMES
9394: fi
9395: ;;
9396: esac
9397:
9398: # Global variables:
9399: ofile=libtool
9400: can_build_shared=yes
9401:
9402: # All known linkers require a `.a' archive for static linking (except MSVC,
9403: # which needs '.lib').
9404: libext=a
9405:
9406: with_gnu_ld="$lt_cv_prog_gnu_ld"
9407:
9408: old_CC="$CC"
9409: old_CFLAGS="$CFLAGS"
9410:
9411: # Set sane defaults for various variables
9412: test -z "$CC" && CC=cc
9413: test -z "$LTCC" && LTCC=$CC
9414: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9415: test -z "$LD" && LD=ld
9416: test -z "$ac_objext" && ac_objext=o
9417:
9418: for cc_temp in $compiler""; do
9419: case $cc_temp in
9420: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9421: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9422: \-*) ;;
9423: *) break;;
9424: esac
9425: done
9426: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9427:
9428:
9429: # Only perform the check for file, if the check method requires it
9430: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9431: case $deplibs_check_method in
9432: file_magic*)
9433: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9435: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9436: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9437: $as_echo_n "(cached) " >&6
1.128 moko 9438: else
9439: case $MAGIC_CMD in
9440: [\\/*] | ?:[\\/]*)
9441: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9442: ;;
9443: *)
9444: lt_save_MAGIC_CMD="$MAGIC_CMD"
9445: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9446: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9447: for ac_dir in $ac_dummy; do
9448: IFS="$lt_save_ifs"
9449: test -z "$ac_dir" && ac_dir=.
9450: if test -f $ac_dir/${ac_tool_prefix}file; then
9451: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9452: if test -n "$file_magic_test_file"; then
9453: case $deplibs_check_method in
9454: "file_magic "*)
9455: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9456: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9457: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9458: $EGREP "$file_magic_regex" > /dev/null; then
9459: :
9460: else
9461: cat <<_LT_EOF 1>&2
9462:
9463: *** Warning: the command libtool uses to detect shared libraries,
9464: *** $file_magic_cmd, produces output that libtool cannot recognize.
9465: *** The result is that libtool may fail to recognize shared libraries
9466: *** as such. This will affect the creation of libtool libraries that
9467: *** depend on shared libraries, but programs linked with such libtool
9468: *** libraries will work regardless of this problem. Nevertheless, you
9469: *** may want to report the problem to your system manager and/or to
9470: *** bug-libtool@gnu.org
9471:
9472: _LT_EOF
9473: fi ;;
9474: esac
9475: fi
9476: break
9477: fi
9478: done
9479: IFS="$lt_save_ifs"
9480: MAGIC_CMD="$lt_save_MAGIC_CMD"
9481: ;;
9482: esac
9483: fi
9484:
9485: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9486: if test -n "$MAGIC_CMD"; then
1.150 moko 9487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9488: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9489: else
1.150 moko 9490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491: $as_echo "no" >&6; }
1.128 moko 9492: fi
9493:
9494:
9495:
9496:
9497:
9498: if test -z "$lt_cv_path_MAGIC_CMD"; then
9499: if test -n "$ac_tool_prefix"; then
1.150 moko 9500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9501: $as_echo_n "checking for file... " >&6; }
9502: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9503: $as_echo_n "(cached) " >&6
1.128 moko 9504: else
9505: case $MAGIC_CMD in
9506: [\\/*] | ?:[\\/]*)
9507: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9508: ;;
9509: *)
9510: lt_save_MAGIC_CMD="$MAGIC_CMD"
9511: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9512: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9513: for ac_dir in $ac_dummy; do
9514: IFS="$lt_save_ifs"
9515: test -z "$ac_dir" && ac_dir=.
9516: if test -f $ac_dir/file; then
9517: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9518: if test -n "$file_magic_test_file"; then
9519: case $deplibs_check_method in
9520: "file_magic "*)
9521: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9522: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9523: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9524: $EGREP "$file_magic_regex" > /dev/null; then
9525: :
9526: else
9527: cat <<_LT_EOF 1>&2
9528:
9529: *** Warning: the command libtool uses to detect shared libraries,
9530: *** $file_magic_cmd, produces output that libtool cannot recognize.
9531: *** The result is that libtool may fail to recognize shared libraries
9532: *** as such. This will affect the creation of libtool libraries that
9533: *** depend on shared libraries, but programs linked with such libtool
9534: *** libraries will work regardless of this problem. Nevertheless, you
9535: *** may want to report the problem to your system manager and/or to
9536: *** bug-libtool@gnu.org
9537:
9538: _LT_EOF
9539: fi ;;
9540: esac
9541: fi
9542: break
9543: fi
9544: done
9545: IFS="$lt_save_ifs"
9546: MAGIC_CMD="$lt_save_MAGIC_CMD"
9547: ;;
9548: esac
9549: fi
9550:
9551: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9552: if test -n "$MAGIC_CMD"; then
1.150 moko 9553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9554: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9555: else
1.150 moko 9556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557: $as_echo "no" >&6; }
1.128 moko 9558: fi
9559:
9560:
9561: else
9562: MAGIC_CMD=:
9563: fi
9564: fi
9565:
9566: fi
9567: ;;
9568: esac
9569:
9570: # Use C for the default configuration in the libtool script
9571:
9572: lt_save_CC="$CC"
9573: ac_ext=c
9574: ac_cpp='$CPP $CPPFLAGS'
9575: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9578:
9579:
9580: # Source file extension for C test sources.
9581: ac_ext=c
9582:
9583: # Object file extension for compiled C test sources.
9584: objext=o
9585: objext=$objext
9586:
9587: # Code to be used in simple compile tests
9588: lt_simple_compile_test_code="int some_variable = 0;"
9589:
9590: # Code to be used in simple link tests
9591: lt_simple_link_test_code='int main(){return(0);}'
9592:
9593:
9594:
9595:
9596:
9597:
9598:
9599: # If no C compiler was specified, use CC.
9600: LTCC=${LTCC-"$CC"}
9601:
9602: # If no C compiler flags were specified, use CFLAGS.
9603: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9604:
9605: # Allow CC to be a program name with arguments.
9606: compiler=$CC
9607:
9608: # Save the default compiler, since it gets overwritten when the other
9609: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9610: compiler_DEFAULT=$CC
9611:
9612: # save warnings/boilerplate of simple test code
9613: ac_outfile=conftest.$ac_objext
9614: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9615: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9616: _lt_compiler_boilerplate=`cat conftest.err`
9617: $RM conftest*
9618:
9619: ac_outfile=conftest.$ac_objext
9620: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9621: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9622: _lt_linker_boilerplate=`cat conftest.err`
9623: $RM -r conftest*
9624:
9625:
9626: ## CAVEAT EMPTOR:
9627: ## There is no encapsulation within the following macros, do not change
9628: ## the running order or otherwise move them around unless you know exactly
9629: ## what you are doing...
9630: if test -n "$compiler"; then
9631:
9632: lt_prog_compiler_no_builtin_flag=
9633:
9634: if test "$GCC" = yes; then
9635: case $cc_basename in
9636: nvcc*)
9637: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9638: *)
9639: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9640: esac
9641:
1.150 moko 9642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9643: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9644: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9645: $as_echo_n "(cached) " >&6
1.128 moko 9646: else
9647: lt_cv_prog_compiler_rtti_exceptions=no
9648: ac_outfile=conftest.$ac_objext
9649: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9650: lt_compiler_flag="-fno-rtti -fno-exceptions"
9651: # Insert the option either (1) after the last *FLAGS variable, or
9652: # (2) before a word containing "conftest.", or (3) at the end.
9653: # Note that $ac_compile itself does not contain backslashes and begins
9654: # with a dollar sign (not a hyphen), so the echo should work correctly.
9655: # The option is referenced via a variable to avoid confusing sed.
9656: lt_compile=`echo "$ac_compile" | $SED \
9657: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9658: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9659: -e 's:$: $lt_compiler_flag:'`
9660: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9661: (eval "$lt_compile" 2>conftest.err)
9662: ac_status=$?
9663: cat conftest.err >&5
9664: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665: if (exit $ac_status) && test -s "$ac_outfile"; then
9666: # The compiler can only warn and ignore the option if not recognized
9667: # So say no if there are warnings other than the usual output.
9668: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9669: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9670: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9671: lt_cv_prog_compiler_rtti_exceptions=yes
9672: fi
9673: fi
9674: $RM conftest*
9675:
9676: fi
1.150 moko 9677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9678: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9679:
9680: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9681: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9682: else
9683: :
9684: fi
9685:
9686: fi
9687:
9688:
9689:
9690:
9691:
9692:
9693: lt_prog_compiler_wl=
9694: lt_prog_compiler_pic=
9695: lt_prog_compiler_static=
9696:
9697:
9698: if test "$GCC" = yes; then
9699: lt_prog_compiler_wl='-Wl,'
9700: lt_prog_compiler_static='-static'
9701:
9702: case $host_os in
9703: aix*)
9704: # All AIX code is PIC.
9705: if test "$host_cpu" = ia64; then
9706: # AIX 5 now supports IA64 processor
9707: lt_prog_compiler_static='-Bstatic'
9708: fi
9709: ;;
9710:
9711: amigaos*)
9712: case $host_cpu in
9713: powerpc)
9714: # see comment about AmigaOS4 .so support
9715: lt_prog_compiler_pic='-fPIC'
9716: ;;
9717: m68k)
9718: # FIXME: we need at least 68020 code to build shared libraries, but
9719: # adding the `-m68020' flag to GCC prevents building anything better,
9720: # like `-m68040'.
9721: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9722: ;;
9723: esac
9724: ;;
9725:
9726: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9727: # PIC is the default for these OSes.
9728: ;;
9729:
9730: mingw* | cygwin* | pw32* | os2* | cegcc*)
9731: # This hack is so that the source file can tell whether it is being
9732: # built for inclusion in a dll (and should export symbols for example).
9733: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9734: # (--disable-auto-import) libraries
9735: lt_prog_compiler_pic='-DDLL_EXPORT'
9736: ;;
9737:
9738: darwin* | rhapsody*)
9739: # PIC is the default on this platform
9740: # Common symbols not allowed in MH_DYLIB files
9741: lt_prog_compiler_pic='-fno-common'
9742: ;;
9743:
9744: haiku*)
9745: # PIC is the default for Haiku.
9746: # The "-static" flag exists, but is broken.
9747: lt_prog_compiler_static=
9748: ;;
9749:
9750: hpux*)
9751: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9752: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9753: # sets the default TLS model and affects inlining.
9754: case $host_cpu in
9755: hppa*64*)
9756: # +Z the default
9757: ;;
9758: *)
9759: lt_prog_compiler_pic='-fPIC'
9760: ;;
9761: esac
9762: ;;
9763:
9764: interix[3-9]*)
9765: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9766: # Instead, we relocate shared libraries at runtime.
9767: ;;
9768:
9769: msdosdjgpp*)
9770: # Just because we use GCC doesn't mean we suddenly get shared libraries
9771: # on systems that don't support them.
9772: lt_prog_compiler_can_build_shared=no
9773: enable_shared=no
9774: ;;
9775:
9776: *nto* | *qnx*)
9777: # QNX uses GNU C++, but need to define -shared option too, otherwise
9778: # it will coredump.
9779: lt_prog_compiler_pic='-fPIC -shared'
9780: ;;
9781:
9782: sysv4*MP*)
9783: if test -d /usr/nec; then
9784: lt_prog_compiler_pic=-Kconform_pic
9785: fi
9786: ;;
9787:
9788: *)
9789: lt_prog_compiler_pic='-fPIC'
9790: ;;
9791: esac
9792:
9793: case $cc_basename in
9794: nvcc*) # Cuda Compiler Driver 2.2
9795: lt_prog_compiler_wl='-Xlinker '
9796: if test -n "$lt_prog_compiler_pic"; then
9797: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9798: fi
9799: ;;
9800: esac
9801: else
9802: # PORTME Check for flag to pass linker flags through the system compiler.
9803: case $host_os in
9804: aix*)
9805: lt_prog_compiler_wl='-Wl,'
9806: if test "$host_cpu" = ia64; then
9807: # AIX 5 now supports IA64 processor
9808: lt_prog_compiler_static='-Bstatic'
9809: else
9810: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9811: fi
9812: ;;
9813:
9814: mingw* | cygwin* | pw32* | os2* | cegcc*)
9815: # This hack is so that the source file can tell whether it is being
9816: # built for inclusion in a dll (and should export symbols for example).
9817: lt_prog_compiler_pic='-DDLL_EXPORT'
9818: ;;
9819:
9820: hpux9* | hpux10* | hpux11*)
9821: lt_prog_compiler_wl='-Wl,'
9822: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9823: # not for PA HP-UX.
9824: case $host_cpu in
9825: hppa*64*|ia64*)
9826: # +Z the default
9827: ;;
9828: *)
9829: lt_prog_compiler_pic='+Z'
9830: ;;
9831: esac
9832: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9833: lt_prog_compiler_static='${wl}-a ${wl}archive'
9834: ;;
9835:
9836: irix5* | irix6* | nonstopux*)
9837: lt_prog_compiler_wl='-Wl,'
9838: # PIC (with -KPIC) is the default.
9839: lt_prog_compiler_static='-non_shared'
9840: ;;
9841:
9842: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9843: case $cc_basename in
9844: # old Intel for x86_64 which still supported -KPIC.
9845: ecc*)
9846: lt_prog_compiler_wl='-Wl,'
9847: lt_prog_compiler_pic='-KPIC'
9848: lt_prog_compiler_static='-static'
9849: ;;
9850: # icc used to be incompatible with GCC.
9851: # ICC 10 doesn't accept -KPIC any more.
9852: icc* | ifort*)
9853: lt_prog_compiler_wl='-Wl,'
9854: lt_prog_compiler_pic='-fPIC'
9855: lt_prog_compiler_static='-static'
9856: ;;
9857: # Lahey Fortran 8.1.
9858: lf95*)
9859: lt_prog_compiler_wl='-Wl,'
9860: lt_prog_compiler_pic='--shared'
9861: lt_prog_compiler_static='--static'
9862: ;;
9863: nagfor*)
9864: # NAG Fortran compiler
9865: lt_prog_compiler_wl='-Wl,-Wl,,'
9866: lt_prog_compiler_pic='-PIC'
9867: lt_prog_compiler_static='-Bstatic'
9868: ;;
9869: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9870: # Portland Group compilers (*not* the Pentium gcc compiler,
9871: # which looks to be a dead project)
9872: lt_prog_compiler_wl='-Wl,'
9873: lt_prog_compiler_pic='-fpic'
9874: lt_prog_compiler_static='-Bstatic'
9875: ;;
9876: ccc*)
9877: lt_prog_compiler_wl='-Wl,'
9878: # All Alpha code is PIC.
9879: lt_prog_compiler_static='-non_shared'
9880: ;;
9881: xl* | bgxl* | bgf* | mpixl*)
9882: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9883: lt_prog_compiler_wl='-Wl,'
9884: lt_prog_compiler_pic='-qpic'
9885: lt_prog_compiler_static='-qstaticlink'
9886: ;;
9887: *)
9888: case `$CC -V 2>&1 | sed 5q` in
9889: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9890: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9891: lt_prog_compiler_pic='-KPIC'
9892: lt_prog_compiler_static='-Bstatic'
9893: lt_prog_compiler_wl=''
9894: ;;
9895: *Sun\ F* | *Sun*Fortran*)
9896: lt_prog_compiler_pic='-KPIC'
9897: lt_prog_compiler_static='-Bstatic'
9898: lt_prog_compiler_wl='-Qoption ld '
9899: ;;
9900: *Sun\ C*)
9901: # Sun C 5.9
9902: lt_prog_compiler_pic='-KPIC'
9903: lt_prog_compiler_static='-Bstatic'
9904: lt_prog_compiler_wl='-Wl,'
9905: ;;
9906: *Intel*\ [CF]*Compiler*)
9907: lt_prog_compiler_wl='-Wl,'
9908: lt_prog_compiler_pic='-fPIC'
9909: lt_prog_compiler_static='-static'
9910: ;;
9911: *Portland\ Group*)
9912: lt_prog_compiler_wl='-Wl,'
9913: lt_prog_compiler_pic='-fpic'
9914: lt_prog_compiler_static='-Bstatic'
9915: ;;
9916: esac
9917: ;;
9918: esac
9919: ;;
9920:
9921: newsos6)
9922: lt_prog_compiler_pic='-KPIC'
9923: lt_prog_compiler_static='-Bstatic'
9924: ;;
9925:
9926: *nto* | *qnx*)
9927: # QNX uses GNU C++, but need to define -shared option too, otherwise
9928: # it will coredump.
9929: lt_prog_compiler_pic='-fPIC -shared'
9930: ;;
9931:
9932: osf3* | osf4* | osf5*)
9933: lt_prog_compiler_wl='-Wl,'
9934: # All OSF/1 code is PIC.
9935: lt_prog_compiler_static='-non_shared'
9936: ;;
9937:
9938: rdos*)
9939: lt_prog_compiler_static='-non_shared'
9940: ;;
9941:
9942: solaris*)
9943: lt_prog_compiler_pic='-KPIC'
9944: lt_prog_compiler_static='-Bstatic'
9945: case $cc_basename in
9946: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9947: lt_prog_compiler_wl='-Qoption ld ';;
9948: *)
9949: lt_prog_compiler_wl='-Wl,';;
9950: esac
9951: ;;
9952:
9953: sunos4*)
9954: lt_prog_compiler_wl='-Qoption ld '
9955: lt_prog_compiler_pic='-PIC'
9956: lt_prog_compiler_static='-Bstatic'
9957: ;;
9958:
9959: sysv4 | sysv4.2uw2* | sysv4.3*)
9960: lt_prog_compiler_wl='-Wl,'
9961: lt_prog_compiler_pic='-KPIC'
9962: lt_prog_compiler_static='-Bstatic'
9963: ;;
9964:
9965: sysv4*MP*)
9966: if test -d /usr/nec ;then
9967: lt_prog_compiler_pic='-Kconform_pic'
9968: lt_prog_compiler_static='-Bstatic'
9969: fi
9970: ;;
9971:
9972: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9973: lt_prog_compiler_wl='-Wl,'
9974: lt_prog_compiler_pic='-KPIC'
9975: lt_prog_compiler_static='-Bstatic'
9976: ;;
9977:
9978: unicos*)
9979: lt_prog_compiler_wl='-Wl,'
9980: lt_prog_compiler_can_build_shared=no
9981: ;;
9982:
9983: uts4*)
9984: lt_prog_compiler_pic='-pic'
9985: lt_prog_compiler_static='-Bstatic'
9986: ;;
9987:
9988: *)
9989: lt_prog_compiler_can_build_shared=no
9990: ;;
9991: esac
9992: fi
9993:
9994: case $host_os in
9995: # For platforms which do not support PIC, -DPIC is meaningless:
9996: *djgpp*)
9997: lt_prog_compiler_pic=
9998: ;;
9999: *)
10000: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10001: ;;
10002: esac
10003:
1.150 moko 10004: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10005: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10006: if ${lt_cv_prog_compiler_pic+:} false; then :
10007: $as_echo_n "(cached) " >&6
1.128 moko 10008: else
10009: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10010: fi
1.150 moko 10011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10012: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 10013: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10014:
10015: #
10016: # Check to make sure the PIC flag actually works.
10017: #
10018: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 10019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10020: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10021: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10022: $as_echo_n "(cached) " >&6
1.128 moko 10023: else
10024: lt_cv_prog_compiler_pic_works=no
10025: ac_outfile=conftest.$ac_objext
10026: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10027: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10028: # Insert the option either (1) after the last *FLAGS variable, or
10029: # (2) before a word containing "conftest.", or (3) at the end.
10030: # Note that $ac_compile itself does not contain backslashes and begins
10031: # with a dollar sign (not a hyphen), so the echo should work correctly.
10032: # The option is referenced via a variable to avoid confusing sed.
10033: lt_compile=`echo "$ac_compile" | $SED \
10034: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10035: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10036: -e 's:$: $lt_compiler_flag:'`
10037: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10038: (eval "$lt_compile" 2>conftest.err)
10039: ac_status=$?
10040: cat conftest.err >&5
10041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042: if (exit $ac_status) && test -s "$ac_outfile"; then
10043: # The compiler can only warn and ignore the option if not recognized
10044: # So say no if there are warnings other than the usual output.
10045: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10046: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10047: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10048: lt_cv_prog_compiler_pic_works=yes
10049: fi
10050: fi
10051: $RM conftest*
10052:
10053: fi
1.150 moko 10054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10055: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 10056:
10057: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10058: case $lt_prog_compiler_pic in
10059: "" | " "*) ;;
10060: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10061: esac
10062: else
10063: lt_prog_compiler_pic=
10064: lt_prog_compiler_can_build_shared=no
10065: fi
10066:
10067: fi
10068:
10069:
10070:
10071:
10072:
10073:
10074:
10075:
10076:
10077:
10078:
10079: #
10080: # Check to make sure the static flag actually works.
10081: #
10082: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 10083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10084: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10085: if ${lt_cv_prog_compiler_static_works+:} false; then :
10086: $as_echo_n "(cached) " >&6
1.128 moko 10087: else
10088: lt_cv_prog_compiler_static_works=no
10089: save_LDFLAGS="$LDFLAGS"
10090: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10091: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10092: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10093: # The linker can only warn and ignore the option if not recognized
10094: # So say no if there are warnings
10095: if test -s conftest.err; then
10096: # Append any errors to the config.log.
10097: cat conftest.err 1>&5
10098: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10099: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10100: if diff conftest.exp conftest.er2 >/dev/null; then
10101: lt_cv_prog_compiler_static_works=yes
10102: fi
10103: else
10104: lt_cv_prog_compiler_static_works=yes
10105: fi
10106: fi
10107: $RM -r conftest*
10108: LDFLAGS="$save_LDFLAGS"
10109:
10110: fi
1.150 moko 10111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10112: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 10113:
10114: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10115: :
10116: else
10117: lt_prog_compiler_static=
10118: fi
10119:
10120:
10121:
10122:
10123:
10124:
10125:
1.150 moko 10126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10127: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10128: if ${lt_cv_prog_compiler_c_o+:} false; then :
10129: $as_echo_n "(cached) " >&6
1.128 moko 10130: else
10131: lt_cv_prog_compiler_c_o=no
10132: $RM -r conftest 2>/dev/null
10133: mkdir conftest
10134: cd conftest
10135: mkdir out
10136: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10137:
10138: lt_compiler_flag="-o out/conftest2.$ac_objext"
10139: # Insert the option either (1) after the last *FLAGS variable, or
10140: # (2) before a word containing "conftest.", or (3) at the end.
10141: # Note that $ac_compile itself does not contain backslashes and begins
10142: # with a dollar sign (not a hyphen), so the echo should work correctly.
10143: lt_compile=`echo "$ac_compile" | $SED \
10144: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10145: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10146: -e 's:$: $lt_compiler_flag:'`
10147: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10148: (eval "$lt_compile" 2>out/conftest.err)
10149: ac_status=$?
10150: cat out/conftest.err >&5
10151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10153: then
10154: # The compiler can only warn and ignore the option if not recognized
10155: # So say no if there are warnings
10156: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10157: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10158: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10159: lt_cv_prog_compiler_c_o=yes
10160: fi
10161: fi
10162: chmod u+w . 2>&5
10163: $RM conftest*
10164: # SGI C++ compiler will create directory out/ii_files/ for
10165: # template instantiation
10166: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10167: $RM out/* && rmdir out
10168: cd ..
10169: $RM -r conftest
10170: $RM conftest*
10171:
10172: fi
1.150 moko 10173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10174: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10175:
10176:
10177:
10178:
10179:
10180:
1.150 moko 10181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10182: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10183: if ${lt_cv_prog_compiler_c_o+:} false; then :
10184: $as_echo_n "(cached) " >&6
1.128 moko 10185: else
10186: lt_cv_prog_compiler_c_o=no
10187: $RM -r conftest 2>/dev/null
10188: mkdir conftest
10189: cd conftest
10190: mkdir out
10191: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10192:
10193: lt_compiler_flag="-o out/conftest2.$ac_objext"
10194: # Insert the option either (1) after the last *FLAGS variable, or
10195: # (2) before a word containing "conftest.", or (3) at the end.
10196: # Note that $ac_compile itself does not contain backslashes and begins
10197: # with a dollar sign (not a hyphen), so the echo should work correctly.
10198: lt_compile=`echo "$ac_compile" | $SED \
10199: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10200: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10201: -e 's:$: $lt_compiler_flag:'`
10202: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10203: (eval "$lt_compile" 2>out/conftest.err)
10204: ac_status=$?
10205: cat out/conftest.err >&5
10206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10208: then
10209: # The compiler can only warn and ignore the option if not recognized
10210: # So say no if there are warnings
10211: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10212: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10213: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10214: lt_cv_prog_compiler_c_o=yes
10215: fi
10216: fi
10217: chmod u+w . 2>&5
10218: $RM conftest*
10219: # SGI C++ compiler will create directory out/ii_files/ for
10220: # template instantiation
10221: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10222: $RM out/* && rmdir out
10223: cd ..
10224: $RM -r conftest
10225: $RM conftest*
10226:
10227: fi
1.150 moko 10228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10229: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10230:
10231:
10232:
10233:
10234: hard_links="nottested"
10235: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10236: # do not overwrite the value of need_locks provided by the user
1.150 moko 10237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10238: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 10239: hard_links=yes
10240: $RM conftest*
10241: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10242: touch conftest.a
10243: ln conftest.a conftest.b 2>&5 || hard_links=no
10244: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 10245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10246: $as_echo "$hard_links" >&6; }
1.128 moko 10247: if test "$hard_links" = no; then
1.150 moko 10248: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10249: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 10250: need_locks=warn
10251: fi
10252: else
10253: need_locks=no
10254: fi
10255:
10256:
10257:
10258:
10259:
10260:
1.150 moko 10261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10262: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 10263:
10264: runpath_var=
10265: allow_undefined_flag=
10266: always_export_symbols=no
10267: archive_cmds=
10268: archive_expsym_cmds=
10269: compiler_needs_object=no
10270: enable_shared_with_static_runtimes=no
10271: export_dynamic_flag_spec=
10272: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10273: hardcode_automatic=no
10274: hardcode_direct=no
10275: hardcode_direct_absolute=no
10276: hardcode_libdir_flag_spec=
10277: hardcode_libdir_separator=
10278: hardcode_minus_L=no
10279: hardcode_shlibpath_var=unsupported
10280: inherit_rpath=no
10281: link_all_deplibs=unknown
10282: module_cmds=
10283: module_expsym_cmds=
10284: old_archive_from_new_cmds=
10285: old_archive_from_expsyms_cmds=
10286: thread_safe_flag_spec=
10287: whole_archive_flag_spec=
10288: # include_expsyms should be a list of space-separated symbols to be *always*
10289: # included in the symbol list
10290: include_expsyms=
10291: # exclude_expsyms can be an extended regexp of symbols to exclude
10292: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10293: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10294: # as well as any symbol that contains `d'.
10295: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10296: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10297: # platforms (ab)use it in PIC code, but their linkers get confused if
10298: # the symbol is explicitly referenced. Since portable code cannot
10299: # rely on this symbol name, it's probably fine to never include it in
10300: # preloaded symbol tables.
10301: # Exclude shared library initialization/finalization symbols.
10302: extract_expsyms_cmds=
10303:
10304: case $host_os in
10305: cygwin* | mingw* | pw32* | cegcc*)
10306: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10307: # When not using gcc, we currently assume that we are using
10308: # Microsoft Visual C++.
10309: if test "$GCC" != yes; then
10310: with_gnu_ld=no
10311: fi
10312: ;;
10313: interix*)
10314: # we just hope/assume this is gcc and not c89 (= MSVC++)
10315: with_gnu_ld=yes
10316: ;;
10317: openbsd*)
10318: with_gnu_ld=no
10319: ;;
10320: esac
10321:
10322: ld_shlibs=yes
10323:
10324: # On some targets, GNU ld is compatible enough with the native linker
10325: # that we're better off using the native interface for both.
10326: lt_use_gnu_ld_interface=no
10327: if test "$with_gnu_ld" = yes; then
10328: case $host_os in
10329: aix*)
10330: # The AIX port of GNU ld has always aspired to compatibility
10331: # with the native linker. However, as the warning in the GNU ld
10332: # block says, versions before 2.19.5* couldn't really create working
10333: # shared libraries, regardless of the interface used.
10334: case `$LD -v 2>&1` in
10335: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10336: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10337: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10338: *)
10339: lt_use_gnu_ld_interface=yes
10340: ;;
10341: esac
10342: ;;
10343: *)
10344: lt_use_gnu_ld_interface=yes
10345: ;;
10346: esac
10347: fi
10348:
10349: if test "$lt_use_gnu_ld_interface" = yes; then
10350: # If archive_cmds runs LD, not CC, wlarc should be empty
10351: wlarc='${wl}'
10352:
10353: # Set some defaults for GNU ld with shared library support. These
10354: # are reset later if shared libraries are not supported. Putting them
10355: # here allows them to be overridden if necessary.
10356: runpath_var=LD_RUN_PATH
10357: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10358: export_dynamic_flag_spec='${wl}--export-dynamic'
10359: # ancient GNU ld didn't support --whole-archive et. al.
10360: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10361: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10362: else
10363: whole_archive_flag_spec=
10364: fi
10365: supports_anon_versioning=no
10366: case `$LD -v 2>&1` in
10367: *GNU\ gold*) supports_anon_versioning=yes ;;
10368: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10369: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10370: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10371: *\ 2.11.*) ;; # other 2.11 versions
10372: *) supports_anon_versioning=yes ;;
10373: esac
10374:
10375: # See if GNU ld supports shared libraries.
10376: case $host_os in
10377: aix[3-9]*)
10378: # On AIX/PPC, the GNU linker is very broken
10379: if test "$host_cpu" != ia64; then
10380: ld_shlibs=no
10381: cat <<_LT_EOF 1>&2
10382:
10383: *** Warning: the GNU linker, at least up to release 2.19, is reported
10384: *** to be unable to reliably create shared libraries on AIX.
10385: *** Therefore, libtool is disabling shared libraries support. If you
10386: *** really care for shared libraries, you may want to install binutils
10387: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10388: *** You will then need to restart the configuration process.
10389:
10390: _LT_EOF
10391: fi
10392: ;;
10393:
10394: amigaos*)
10395: case $host_cpu in
10396: powerpc)
10397: # see comment about AmigaOS4 .so support
10398: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10399: archive_expsym_cmds=''
10400: ;;
10401: m68k)
10402: 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)'
10403: hardcode_libdir_flag_spec='-L$libdir'
10404: hardcode_minus_L=yes
10405: ;;
10406: esac
10407: ;;
10408:
10409: beos*)
10410: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10411: allow_undefined_flag=unsupported
10412: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10413: # support --undefined. This deserves some investigation. FIXME
10414: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415: else
10416: ld_shlibs=no
10417: fi
10418: ;;
10419:
10420: cygwin* | mingw* | pw32* | cegcc*)
10421: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10422: # as there is no search path for DLLs.
10423: hardcode_libdir_flag_spec='-L$libdir'
10424: export_dynamic_flag_spec='${wl}--export-all-symbols'
10425: allow_undefined_flag=unsupported
10426: always_export_symbols=no
10427: enable_shared_with_static_runtimes=yes
10428: 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'
10429: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10430:
10431: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10432: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10433: # If the export-symbols file already is a .def file (1st line
10434: # is EXPORTS), use it as is; otherwise, prepend...
10435: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10436: cp $export_symbols $output_objdir/$soname.def;
10437: else
10438: echo EXPORTS > $output_objdir/$soname.def;
10439: cat $export_symbols >> $output_objdir/$soname.def;
10440: fi~
10441: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10442: else
10443: ld_shlibs=no
10444: fi
10445: ;;
10446:
10447: haiku*)
10448: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10449: link_all_deplibs=yes
10450: ;;
10451:
10452: interix[3-9]*)
10453: hardcode_direct=no
10454: hardcode_shlibpath_var=no
10455: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10456: export_dynamic_flag_spec='${wl}-E'
10457: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10458: # Instead, shared libraries are loaded at an image base (0x10000000 by
10459: # default) and relocated if they conflict, which is a slow very memory
10460: # consuming and fragmenting process. To avoid this, we pick a random,
10461: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10462: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10463: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10464: 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'
10465: ;;
10466:
10467: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10468: tmp_diet=no
10469: if test "$host_os" = linux-dietlibc; then
10470: case $cc_basename in
10471: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10472: esac
10473: fi
10474: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10475: && test "$tmp_diet" = no
10476: then
10477: tmp_addflag=' $pic_flag'
10478: tmp_sharedflag='-shared'
10479: case $cc_basename,$host_cpu in
10480: pgcc*) # Portland Group C compiler
10481: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10482: tmp_addflag=' $pic_flag'
10483: ;;
10484: pgf77* | pgf90* | pgf95* | pgfortran*)
10485: # Portland Group f77 and f90 compilers
10486: 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'
10487: tmp_addflag=' $pic_flag -Mnomain' ;;
10488: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10489: tmp_addflag=' -i_dynamic' ;;
10490: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10491: tmp_addflag=' -i_dynamic -nofor_main' ;;
10492: ifc* | ifort*) # Intel Fortran compiler
10493: tmp_addflag=' -nofor_main' ;;
10494: lf95*) # Lahey Fortran 8.1
10495: whole_archive_flag_spec=
10496: tmp_sharedflag='--shared' ;;
10497: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10498: tmp_sharedflag='-qmkshrobj'
10499: tmp_addflag= ;;
10500: nvcc*) # Cuda Compiler Driver 2.2
10501: 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'
10502: compiler_needs_object=yes
10503: ;;
10504: esac
10505: case `$CC -V 2>&1 | sed 5q` in
10506: *Sun\ C*) # Sun C 5.9
10507: 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'
10508: compiler_needs_object=yes
10509: tmp_sharedflag='-G' ;;
10510: *Sun\ F*) # Sun Fortran 8.3
10511: tmp_sharedflag='-G' ;;
10512: esac
10513: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10514:
10515: if test "x$supports_anon_versioning" = xyes; then
10516: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10517: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10518: echo "local: *; };" >> $output_objdir/$libname.ver~
10519: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10520: fi
10521:
10522: case $cc_basename in
10523: xlf* | bgf* | bgxlf* | mpixlf*)
10524: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10525: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10526: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10527: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10528: if test "x$supports_anon_versioning" = xyes; then
10529: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10530: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10531: echo "local: *; };" >> $output_objdir/$libname.ver~
10532: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10533: fi
10534: ;;
10535: esac
10536: else
10537: ld_shlibs=no
10538: fi
10539: ;;
10540:
10541: netbsd*)
10542: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10543: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10544: wlarc=
10545: else
10546: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10547: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10548: fi
10549: ;;
10550:
10551: solaris*)
10552: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10553: ld_shlibs=no
10554: cat <<_LT_EOF 1>&2
10555:
10556: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10557: *** create shared libraries on Solaris systems. Therefore, libtool
10558: *** is disabling shared libraries support. We urge you to upgrade GNU
10559: *** binutils to release 2.9.1 or newer. Another option is to modify
10560: *** your PATH or compiler configuration so that the native linker is
10561: *** used, and then restart.
10562:
10563: _LT_EOF
10564: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10565: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10566: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10567: else
10568: ld_shlibs=no
10569: fi
10570: ;;
10571:
10572: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10573: case `$LD -v 2>&1` in
10574: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10575: ld_shlibs=no
10576: cat <<_LT_EOF 1>&2
10577:
10578: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10579: *** reliably create shared libraries on SCO systems. Therefore, libtool
10580: *** is disabling shared libraries support. We urge you to upgrade GNU
10581: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10582: *** your PATH or compiler configuration so that the native linker is
10583: *** used, and then restart.
10584:
10585: _LT_EOF
10586: ;;
10587: *)
10588: # For security reasons, it is highly recommended that you always
10589: # use absolute paths for naming shared libraries, and exclude the
10590: # DT_RUNPATH tag from executables and libraries. But doing so
10591: # requires that you compile everything twice, which is a pain.
10592: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10593: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10594: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10595: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10596: else
10597: ld_shlibs=no
10598: fi
10599: ;;
10600: esac
10601: ;;
10602:
10603: sunos4*)
10604: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10605: wlarc=
10606: hardcode_direct=yes
10607: hardcode_shlibpath_var=no
10608: ;;
10609:
10610: *)
10611: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10612: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10613: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10614: else
10615: ld_shlibs=no
10616: fi
10617: ;;
10618: esac
10619:
10620: if test "$ld_shlibs" = no; then
10621: runpath_var=
10622: hardcode_libdir_flag_spec=
10623: export_dynamic_flag_spec=
10624: whole_archive_flag_spec=
10625: fi
10626: else
10627: # PORTME fill in a description of your system's linker (not GNU ld)
10628: case $host_os in
10629: aix3*)
10630: allow_undefined_flag=unsupported
10631: always_export_symbols=yes
10632: 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'
10633: # Note: this linker hardcodes the directories in LIBPATH if there
10634: # are no directories specified by -L.
10635: hardcode_minus_L=yes
10636: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10637: # Neither direct hardcoding nor static linking is supported with a
10638: # broken collect2.
10639: hardcode_direct=unsupported
10640: fi
10641: ;;
10642:
10643: aix[4-9]*)
10644: if test "$host_cpu" = ia64; then
10645: # On IA64, the linker does run time linking by default, so we don't
10646: # have to do anything special.
10647: aix_use_runtimelinking=no
10648: exp_sym_flag='-Bexport'
10649: no_entry_flag=""
10650: else
10651: # If we're using GNU nm, then we don't want the "-C" option.
10652: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10653: # Also, AIX nm treats weak defined symbols like other global
10654: # defined symbols, whereas GNU nm marks them as "W".
10655: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10656: 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'
10657: else
10658: 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'
10659: fi
10660: aix_use_runtimelinking=no
10661:
10662: # Test if we are trying to use run time linking or normal
10663: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10664: # need to do runtime linking.
10665: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10666: for ld_flag in $LDFLAGS; do
10667: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10668: aix_use_runtimelinking=yes
10669: break
10670: fi
10671: done
10672: ;;
10673: esac
10674:
10675: exp_sym_flag='-bexport'
10676: no_entry_flag='-bnoentry'
10677: fi
10678:
10679: # When large executables or shared objects are built, AIX ld can
10680: # have problems creating the table of contents. If linking a library
10681: # or program results in "error TOC overflow" add -mminimal-toc to
10682: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10683: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10684:
10685: archive_cmds=''
10686: hardcode_direct=yes
10687: hardcode_direct_absolute=yes
10688: hardcode_libdir_separator=':'
10689: link_all_deplibs=yes
10690: file_list_spec='${wl}-f,'
10691:
10692: if test "$GCC" = yes; then
10693: case $host_os in aix4.[012]|aix4.[012].*)
10694: # We only want to do this on AIX 4.2 and lower, the check
10695: # below for broken collect2 doesn't work under 4.3+
10696: collect2name=`${CC} -print-prog-name=collect2`
10697: if test -f "$collect2name" &&
10698: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10699: then
10700: # We have reworked collect2
10701: :
10702: else
10703: # We have old collect2
10704: hardcode_direct=unsupported
10705: # It fails to find uninstalled libraries when the uninstalled
10706: # path is not listed in the libpath. Setting hardcode_minus_L
10707: # to unsupported forces relinking
10708: hardcode_minus_L=yes
10709: hardcode_libdir_flag_spec='-L$libdir'
10710: hardcode_libdir_separator=
10711: fi
10712: ;;
10713: esac
10714: shared_flag='-shared'
10715: if test "$aix_use_runtimelinking" = yes; then
10716: shared_flag="$shared_flag "'${wl}-G'
10717: fi
10718: else
10719: # not using gcc
10720: if test "$host_cpu" = ia64; then
10721: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10722: # chokes on -Wl,-G. The following line is correct:
10723: shared_flag='-G'
10724: else
10725: if test "$aix_use_runtimelinking" = yes; then
10726: shared_flag='${wl}-G'
10727: else
10728: shared_flag='${wl}-bM:SRE'
10729: fi
10730: fi
10731: fi
10732:
10733: export_dynamic_flag_spec='${wl}-bexpall'
10734: # It seems that -bexpall does not export symbols beginning with
10735: # underscore (_), so it is better to generate a list of symbols to export.
10736: always_export_symbols=yes
10737: if test "$aix_use_runtimelinking" = yes; then
10738: # Warning - without using the other runtime loading flags (-brtl),
10739: # -berok will link without error, but may produce a broken library.
10740: allow_undefined_flag='-berok'
10741: # Determine the default libpath from the value encoded in an
10742: # empty executable.
10743: if test "${lt_cv_aix_libpath+set}" = set; then
10744: aix_libpath=$lt_cv_aix_libpath
10745: else
1.150 moko 10746: if ${lt_cv_aix_libpath_+:} false; then :
10747: $as_echo_n "(cached) " >&6
1.128 moko 10748: else
1.150 moko 10749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10750: /* end confdefs.h. */
10751:
10752: int
10753: main ()
10754: {
10755:
10756: ;
10757: return 0;
10758: }
10759: _ACEOF
1.150 moko 10760: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10761:
10762: lt_aix_libpath_sed='
10763: /Import File Strings/,/^$/ {
10764: /^0/ {
10765: s/^0 *\([^ ]*\) *$/\1/
10766: p
10767: }
10768: }'
10769: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10770: # Check for a 64-bit object if we didn't find anything.
10771: if test -z "$lt_cv_aix_libpath_"; then
10772: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10773: fi
10774: fi
1.150 moko 10775: rm -f core conftest.err conftest.$ac_objext \
10776: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10777: if test -z "$lt_cv_aix_libpath_"; then
10778: lt_cv_aix_libpath_="/usr/lib:/lib"
10779: fi
10780:
10781: fi
10782:
10783: aix_libpath=$lt_cv_aix_libpath_
10784: fi
10785:
10786: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10787: 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"
10788: else
10789: if test "$host_cpu" = ia64; then
10790: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10791: allow_undefined_flag="-z nodefs"
10792: 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"
10793: else
10794: # Determine the default libpath from the value encoded in an
10795: # empty executable.
10796: if test "${lt_cv_aix_libpath+set}" = set; then
10797: aix_libpath=$lt_cv_aix_libpath
10798: else
1.150 moko 10799: if ${lt_cv_aix_libpath_+:} false; then :
10800: $as_echo_n "(cached) " >&6
1.128 moko 10801: else
1.150 moko 10802: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10803: /* end confdefs.h. */
10804:
10805: int
10806: main ()
10807: {
10808:
10809: ;
10810: return 0;
10811: }
10812: _ACEOF
1.150 moko 10813: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10814:
10815: lt_aix_libpath_sed='
10816: /Import File Strings/,/^$/ {
10817: /^0/ {
10818: s/^0 *\([^ ]*\) *$/\1/
10819: p
10820: }
10821: }'
10822: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10823: # Check for a 64-bit object if we didn't find anything.
10824: if test -z "$lt_cv_aix_libpath_"; then
10825: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10826: fi
10827: fi
1.150 moko 10828: rm -f core conftest.err conftest.$ac_objext \
10829: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10830: if test -z "$lt_cv_aix_libpath_"; then
10831: lt_cv_aix_libpath_="/usr/lib:/lib"
10832: fi
10833:
10834: fi
10835:
10836: aix_libpath=$lt_cv_aix_libpath_
10837: fi
10838:
10839: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10840: # Warning - without using the other run time loading flags,
10841: # -berok will link without error, but may produce a broken library.
10842: no_undefined_flag=' ${wl}-bernotok'
10843: allow_undefined_flag=' ${wl}-berok'
10844: if test "$with_gnu_ld" = yes; then
10845: # We only use this code for GNU lds that support --whole-archive.
10846: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10847: else
10848: # Exported symbols can be pulled into shared objects from archives
10849: whole_archive_flag_spec='$convenience'
10850: fi
10851: archive_cmds_need_lc=yes
10852: # This is similar to how AIX traditionally builds its shared libraries.
10853: 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'
10854: fi
10855: fi
10856: ;;
10857:
10858: amigaos*)
10859: case $host_cpu in
10860: powerpc)
10861: # see comment about AmigaOS4 .so support
10862: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10863: archive_expsym_cmds=''
10864: ;;
10865: m68k)
10866: 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)'
10867: hardcode_libdir_flag_spec='-L$libdir'
10868: hardcode_minus_L=yes
10869: ;;
10870: esac
10871: ;;
10872:
10873: bsdi[45]*)
10874: export_dynamic_flag_spec=-rdynamic
10875: ;;
10876:
10877: cygwin* | mingw* | pw32* | cegcc*)
10878: # When not using gcc, we currently assume that we are using
10879: # Microsoft Visual C++.
10880: # hardcode_libdir_flag_spec is actually meaningless, as there is
10881: # no search path for DLLs.
10882: case $cc_basename in
10883: cl*)
10884: # Native MSVC
10885: hardcode_libdir_flag_spec=' '
10886: allow_undefined_flag=unsupported
10887: always_export_symbols=yes
10888: file_list_spec='@'
10889: # Tell ltmain to make .lib files, not .a files.
10890: libext=lib
10891: # Tell ltmain to make .dll files, not .so files.
10892: shrext_cmds=".dll"
10893: # FIXME: Setting linknames here is a bad hack.
10894: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10895: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10896: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10897: else
10898: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10899: fi~
10900: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10901: linknames='
10902: # The linker will not automatically build a static lib if we build a DLL.
10903: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10904: enable_shared_with_static_runtimes=yes
10905: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10906: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10907: # Don't use ranlib
10908: old_postinstall_cmds='chmod 644 $oldlib'
10909: postlink_cmds='lt_outputfile="@OUTPUT@"~
10910: lt_tool_outputfile="@TOOL_OUTPUT@"~
10911: case $lt_outputfile in
10912: *.exe|*.EXE) ;;
10913: *)
10914: lt_outputfile="$lt_outputfile.exe"
10915: lt_tool_outputfile="$lt_tool_outputfile.exe"
10916: ;;
10917: esac~
10918: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10919: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10920: $RM "$lt_outputfile.manifest";
10921: fi'
10922: ;;
10923: *)
10924: # Assume MSVC wrapper
10925: hardcode_libdir_flag_spec=' '
10926: allow_undefined_flag=unsupported
10927: # Tell ltmain to make .lib files, not .a files.
10928: libext=lib
10929: # Tell ltmain to make .dll files, not .so files.
10930: shrext_cmds=".dll"
10931: # FIXME: Setting linknames here is a bad hack.
10932: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10933: # The linker will automatically build a .lib file if we build a DLL.
10934: old_archive_from_new_cmds='true'
10935: # FIXME: Should let the user specify the lib program.
10936: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10937: enable_shared_with_static_runtimes=yes
10938: ;;
10939: esac
10940: ;;
10941:
10942: darwin* | rhapsody*)
10943:
10944:
10945: archive_cmds_need_lc=no
10946: hardcode_direct=no
10947: hardcode_automatic=yes
10948: hardcode_shlibpath_var=unsupported
10949: if test "$lt_cv_ld_force_load" = "yes"; then
10950: 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\"`'
10951:
10952: else
10953: whole_archive_flag_spec=''
10954: fi
10955: link_all_deplibs=yes
10956: allow_undefined_flag="$_lt_dar_allow_undefined"
10957: case $cc_basename in
10958: ifort*) _lt_dar_can_shared=yes ;;
10959: *) _lt_dar_can_shared=$GCC ;;
10960: esac
10961: if test "$_lt_dar_can_shared" = "yes"; then
10962: output_verbose_link_cmd=func_echo_all
10963: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10964: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10965: 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}"
10966: 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}"
10967:
10968: else
10969: ld_shlibs=no
10970: fi
10971:
10972: ;;
10973:
10974: dgux*)
10975: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10976: hardcode_libdir_flag_spec='-L$libdir'
10977: hardcode_shlibpath_var=no
10978: ;;
10979:
10980: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10981: # support. Future versions do this automatically, but an explicit c++rt0.o
10982: # does not break anything, and helps significantly (at the cost of a little
10983: # extra space).
10984: freebsd2.2*)
10985: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10986: hardcode_libdir_flag_spec='-R$libdir'
10987: hardcode_direct=yes
10988: hardcode_shlibpath_var=no
10989: ;;
10990:
10991: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10992: freebsd2.*)
10993: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10994: hardcode_direct=yes
10995: hardcode_minus_L=yes
10996: hardcode_shlibpath_var=no
10997: ;;
10998:
10999: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11000: freebsd* | dragonfly*)
11001: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11002: hardcode_libdir_flag_spec='-R$libdir'
11003: hardcode_direct=yes
11004: hardcode_shlibpath_var=no
11005: ;;
11006:
11007: hpux9*)
11008: if test "$GCC" = yes; then
11009: 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'
11010: else
11011: 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'
11012: fi
11013: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11014: hardcode_libdir_separator=:
11015: hardcode_direct=yes
11016:
11017: # hardcode_minus_L: Not really in the search PATH,
11018: # but as the default location of the library.
11019: hardcode_minus_L=yes
11020: export_dynamic_flag_spec='${wl}-E'
11021: ;;
11022:
11023: hpux10*)
11024: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11025: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11026: else
11027: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11028: fi
11029: if test "$with_gnu_ld" = no; then
11030: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11031: hardcode_libdir_separator=:
11032: hardcode_direct=yes
11033: hardcode_direct_absolute=yes
11034: export_dynamic_flag_spec='${wl}-E'
11035: # hardcode_minus_L: Not really in the search PATH,
11036: # but as the default location of the library.
11037: hardcode_minus_L=yes
11038: fi
11039: ;;
11040:
11041: hpux11*)
11042: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11043: case $host_cpu in
11044: hppa*64*)
11045: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11046: ;;
11047: ia64*)
11048: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11049: ;;
11050: *)
11051: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11052: ;;
11053: esac
11054: else
11055: case $host_cpu in
11056: hppa*64*)
11057: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11058: ;;
11059: ia64*)
11060: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11061: ;;
11062: *)
11063:
11064: # Older versions of the 11.00 compiler do not understand -b yet
11065: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 11066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11067: $as_echo_n "checking if $CC understands -b... " >&6; }
11068: if ${lt_cv_prog_compiler__b+:} false; then :
11069: $as_echo_n "(cached) " >&6
1.128 moko 11070: else
11071: lt_cv_prog_compiler__b=no
11072: save_LDFLAGS="$LDFLAGS"
11073: LDFLAGS="$LDFLAGS -b"
11074: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11075: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11076: # The linker can only warn and ignore the option if not recognized
11077: # So say no if there are warnings
11078: if test -s conftest.err; then
11079: # Append any errors to the config.log.
11080: cat conftest.err 1>&5
11081: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11082: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11083: if diff conftest.exp conftest.er2 >/dev/null; then
11084: lt_cv_prog_compiler__b=yes
11085: fi
11086: else
11087: lt_cv_prog_compiler__b=yes
11088: fi
11089: fi
11090: $RM -r conftest*
11091: LDFLAGS="$save_LDFLAGS"
11092:
11093: fi
1.150 moko 11094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11095: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 11096:
11097: if test x"$lt_cv_prog_compiler__b" = xyes; then
11098: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11099: else
11100: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11101: fi
11102:
11103: ;;
11104: esac
11105: fi
11106: if test "$with_gnu_ld" = no; then
11107: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11108: hardcode_libdir_separator=:
11109:
11110: case $host_cpu in
11111: hppa*64*|ia64*)
11112: hardcode_direct=no
11113: hardcode_shlibpath_var=no
11114: ;;
11115: *)
11116: hardcode_direct=yes
11117: hardcode_direct_absolute=yes
11118: export_dynamic_flag_spec='${wl}-E'
11119:
11120: # hardcode_minus_L: Not really in the search PATH,
11121: # but as the default location of the library.
11122: hardcode_minus_L=yes
11123: ;;
11124: esac
11125: fi
11126: ;;
11127:
11128: irix5* | irix6* | nonstopux*)
11129: if test "$GCC" = yes; then
11130: 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'
11131: # Try to use the -exported_symbol ld option, if it does not
11132: # work, assume that -exports_file does not work either and
11133: # implicitly export all symbols.
11134: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 11135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11136: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11137: if ${lt_cv_irix_exported_symbol+:} false; then :
11138: $as_echo_n "(cached) " >&6
1.128 moko 11139: else
11140: save_LDFLAGS="$LDFLAGS"
11141: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 11142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11143: /* end confdefs.h. */
11144: int foo (void) { return 0; }
11145: _ACEOF
1.150 moko 11146: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 11147: lt_cv_irix_exported_symbol=yes
11148: else
1.150 moko 11149: lt_cv_irix_exported_symbol=no
1.128 moko 11150: fi
1.150 moko 11151: rm -f core conftest.err conftest.$ac_objext \
11152: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11153: LDFLAGS="$save_LDFLAGS"
11154: fi
1.150 moko 11155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11156: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 11157: if test "$lt_cv_irix_exported_symbol" = yes; then
11158: 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'
11159: fi
11160: else
11161: 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'
11162: 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'
11163: fi
11164: archive_cmds_need_lc='no'
11165: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11166: hardcode_libdir_separator=:
11167: inherit_rpath=yes
11168: link_all_deplibs=yes
11169: ;;
11170:
11171: netbsd*)
11172: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11173: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11174: else
11175: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11176: fi
11177: hardcode_libdir_flag_spec='-R$libdir'
11178: hardcode_direct=yes
11179: hardcode_shlibpath_var=no
11180: ;;
11181:
11182: newsos6)
11183: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11184: hardcode_direct=yes
11185: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11186: hardcode_libdir_separator=:
11187: hardcode_shlibpath_var=no
11188: ;;
11189:
11190: *nto* | *qnx*)
11191: ;;
11192:
11193: openbsd*)
11194: if test -f /usr/libexec/ld.so; then
11195: hardcode_direct=yes
11196: hardcode_shlibpath_var=no
11197: hardcode_direct_absolute=yes
11198: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11199: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11200: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11201: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11202: export_dynamic_flag_spec='${wl}-E'
11203: else
11204: case $host_os in
11205: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11206: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11207: hardcode_libdir_flag_spec='-R$libdir'
11208: ;;
11209: *)
11210: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11211: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11212: ;;
11213: esac
11214: fi
11215: else
11216: ld_shlibs=no
11217: fi
11218: ;;
11219:
11220: os2*)
11221: hardcode_libdir_flag_spec='-L$libdir'
11222: hardcode_minus_L=yes
11223: allow_undefined_flag=unsupported
11224: 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'
11225: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11226: ;;
11227:
11228: osf3*)
11229: if test "$GCC" = yes; then
11230: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11231: 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'
11232: else
11233: allow_undefined_flag=' -expect_unresolved \*'
11234: 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'
11235: fi
11236: archive_cmds_need_lc='no'
11237: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11238: hardcode_libdir_separator=:
11239: ;;
11240:
11241: osf4* | osf5*) # as osf3* with the addition of -msym flag
11242: if test "$GCC" = yes; then
11243: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11244: 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'
11245: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11246: else
11247: allow_undefined_flag=' -expect_unresolved \*'
11248: 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'
11249: 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~
11250: $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'
11251:
11252: # Both c and cxx compiler support -rpath directly
11253: hardcode_libdir_flag_spec='-rpath $libdir'
11254: fi
11255: archive_cmds_need_lc='no'
11256: hardcode_libdir_separator=:
11257: ;;
11258:
11259: solaris*)
11260: no_undefined_flag=' -z defs'
11261: if test "$GCC" = yes; then
11262: wlarc='${wl}'
11263: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11264: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11265: $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'
11266: else
11267: case `$CC -V 2>&1` in
11268: *"Compilers 5.0"*)
11269: wlarc=''
11270: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11272: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11273: ;;
11274: *)
11275: wlarc='${wl}'
11276: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11277: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11278: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11279: ;;
11280: esac
11281: fi
11282: hardcode_libdir_flag_spec='-R$libdir'
11283: hardcode_shlibpath_var=no
11284: case $host_os in
11285: solaris2.[0-5] | solaris2.[0-5].*) ;;
11286: *)
11287: # The compiler driver will combine and reorder linker options,
11288: # but understands `-z linker_flag'. GCC discards it without `$wl',
11289: # but is careful enough not to reorder.
11290: # Supported since Solaris 2.6 (maybe 2.5.1?)
11291: if test "$GCC" = yes; then
11292: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11293: else
11294: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11295: fi
11296: ;;
11297: esac
11298: link_all_deplibs=yes
11299: ;;
11300:
11301: sunos4*)
11302: if test "x$host_vendor" = xsequent; then
11303: # Use $CC to link under sequent, because it throws in some extra .o
11304: # files that make .init and .fini sections work.
11305: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11306: else
11307: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11308: fi
11309: hardcode_libdir_flag_spec='-L$libdir'
11310: hardcode_direct=yes
11311: hardcode_minus_L=yes
11312: hardcode_shlibpath_var=no
11313: ;;
11314:
11315: sysv4)
11316: case $host_vendor in
11317: sni)
11318: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11319: hardcode_direct=yes # is this really true???
11320: ;;
11321: siemens)
11322: ## LD is ld it makes a PLAMLIB
11323: ## CC just makes a GrossModule.
11324: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11325: reload_cmds='$CC -r -o $output$reload_objs'
11326: hardcode_direct=no
11327: ;;
11328: motorola)
11329: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11330: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11331: ;;
11332: esac
11333: runpath_var='LD_RUN_PATH'
11334: hardcode_shlibpath_var=no
11335: ;;
11336:
11337: sysv4.3*)
11338: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11339: hardcode_shlibpath_var=no
11340: export_dynamic_flag_spec='-Bexport'
11341: ;;
11342:
11343: sysv4*MP*)
11344: if test -d /usr/nec; then
11345: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11346: hardcode_shlibpath_var=no
11347: runpath_var=LD_RUN_PATH
11348: hardcode_runpath_var=yes
11349: ld_shlibs=yes
11350: fi
11351: ;;
11352:
11353: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11354: no_undefined_flag='${wl}-z,text'
11355: archive_cmds_need_lc=no
11356: hardcode_shlibpath_var=no
11357: runpath_var='LD_RUN_PATH'
11358:
11359: if test "$GCC" = yes; then
11360: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11361: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11362: else
11363: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11364: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11365: fi
11366: ;;
11367:
11368: sysv5* | sco3.2v5* | sco5v6*)
11369: # Note: We can NOT use -z defs as we might desire, because we do not
11370: # link with -lc, and that would cause any symbols used from libc to
11371: # always be unresolved, which means just about no library would
11372: # ever link correctly. If we're not using GNU ld we use -z text
11373: # though, which does catch some bad symbols but isn't as heavy-handed
11374: # as -z defs.
11375: no_undefined_flag='${wl}-z,text'
11376: allow_undefined_flag='${wl}-z,nodefs'
11377: archive_cmds_need_lc=no
11378: hardcode_shlibpath_var=no
11379: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11380: hardcode_libdir_separator=':'
11381: link_all_deplibs=yes
11382: export_dynamic_flag_spec='${wl}-Bexport'
11383: runpath_var='LD_RUN_PATH'
11384:
11385: if test "$GCC" = yes; then
11386: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11388: else
11389: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11390: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11391: fi
11392: ;;
11393:
11394: uts4*)
11395: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11396: hardcode_libdir_flag_spec='-L$libdir'
11397: hardcode_shlibpath_var=no
11398: ;;
11399:
11400: *)
11401: ld_shlibs=no
11402: ;;
11403: esac
11404:
11405: if test x$host_vendor = xsni; then
11406: case $host in
11407: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11408: export_dynamic_flag_spec='${wl}-Blargedynsym'
11409: ;;
11410: esac
11411: fi
11412: fi
11413:
1.150 moko 11414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11415: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11416: test "$ld_shlibs" = no && can_build_shared=no
11417:
11418: with_gnu_ld=$with_gnu_ld
11419:
11420:
11421:
11422:
11423:
11424:
11425:
11426:
11427:
11428:
11429:
11430:
11431:
11432:
11433:
11434: #
11435: # Do we need to explicitly link libc?
11436: #
11437: case "x$archive_cmds_need_lc" in
11438: x|xyes)
11439: # Assume -lc should be added
11440: archive_cmds_need_lc=yes
11441:
11442: if test "$enable_shared" = yes && test "$GCC" = yes; then
11443: case $archive_cmds in
11444: *'~'*)
11445: # FIXME: we may have to deal with multi-command sequences.
11446: ;;
11447: '$CC '*)
11448: # Test whether the compiler implicitly links with -lc since on some
11449: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11450: # to ld, don't add -lc before -lgcc.
1.150 moko 11451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11452: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11453: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11454: $as_echo_n "(cached) " >&6
1.128 moko 11455: else
11456: $RM conftest*
11457: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11458:
1.150 moko 11459: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11460: (eval $ac_compile) 2>&5
11461: ac_status=$?
1.150 moko 11462: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11463: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11464: soname=conftest
11465: lib=conftest
11466: libobjs=conftest.$ac_objext
11467: deplibs=
11468: wl=$lt_prog_compiler_wl
11469: pic_flag=$lt_prog_compiler_pic
11470: compiler_flags=-v
11471: linker_flags=-v
11472: verstring=
11473: output_objdir=.
11474: libname=conftest
11475: lt_save_allow_undefined_flag=$allow_undefined_flag
11476: allow_undefined_flag=
1.150 moko 11477: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11478: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11479: ac_status=$?
1.150 moko 11480: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11481: test $ac_status = 0; }
1.128 moko 11482: then
11483: lt_cv_archive_cmds_need_lc=no
11484: else
11485: lt_cv_archive_cmds_need_lc=yes
11486: fi
11487: allow_undefined_flag=$lt_save_allow_undefined_flag
11488: else
11489: cat conftest.err 1>&5
11490: fi
11491: $RM conftest*
11492:
11493: fi
1.150 moko 11494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11495: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11496: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11497: ;;
11498: esac
11499: fi
11500: ;;
11501: esac
11502:
11503:
11504:
11505:
11506:
11507:
11508:
11509:
11510:
11511:
11512:
11513:
11514:
11515:
11516:
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
11572:
11573:
11574:
11575:
11576:
11577:
11578:
11579:
11580:
11581:
11582:
11583:
11584:
11585:
11586:
11587:
11588:
11589:
11590:
11591:
11592:
11593:
11594:
11595:
11596:
11597:
11598:
11599:
11600:
11601:
11602:
11603:
11604:
11605:
11606:
11607:
11608:
11609:
11610:
11611:
11612:
11613:
11614:
11615:
11616:
11617:
11618:
11619:
11620:
11621:
11622:
11623:
11624:
11625:
11626:
11627:
11628:
11629:
11630:
11631:
11632:
11633:
11634:
11635:
11636:
11637:
11638:
11639:
11640:
11641:
11642:
11643:
11644:
11645:
11646:
11647:
11648:
11649:
11650:
11651:
11652:
11653:
1.150 moko 11654: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11655: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11656:
11657: if test "$GCC" = yes; then
11658: case $host_os in
11659: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11660: *) lt_awk_arg="/^libraries:/" ;;
11661: esac
11662: case $host_os in
11663: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11664: *) lt_sed_strip_eq="s,=/,/,g" ;;
11665: esac
11666: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11667: case $lt_search_path_spec in
11668: *\;*)
11669: # if the path contains ";" then we assume it to be the separator
11670: # otherwise default to the standard path separator (i.e. ":") - it is
11671: # assumed that no part of a normal pathname contains ";" but that should
11672: # okay in the real world where ";" in dirpaths is itself problematic.
11673: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11674: ;;
11675: *)
11676: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11677: ;;
11678: esac
11679: # Ok, now we have the path, separated by spaces, we can step through it
11680: # and add multilib dir if necessary.
11681: lt_tmp_lt_search_path_spec=
11682: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11683: for lt_sys_path in $lt_search_path_spec; do
11684: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11685: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11686: else
11687: test -d "$lt_sys_path" && \
11688: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11689: fi
11690: done
11691: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11692: BEGIN {RS=" "; FS="/|\n";} {
11693: lt_foo="";
11694: lt_count=0;
11695: for (lt_i = NF; lt_i > 0; lt_i--) {
11696: if ($lt_i != "" && $lt_i != ".") {
11697: if ($lt_i == "..") {
11698: lt_count++;
11699: } else {
11700: if (lt_count == 0) {
11701: lt_foo="/" $lt_i lt_foo;
11702: } else {
11703: lt_count--;
11704: }
11705: }
11706: }
11707: }
11708: if (lt_foo != "") { lt_freq[lt_foo]++; }
11709: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11710: }'`
11711: # AWK program above erroneously prepends '/' to C:/dos/paths
11712: # for these hosts.
11713: case $host_os in
11714: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11715: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11716: esac
11717: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11718: else
11719: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11720: fi
11721: library_names_spec=
11722: libname_spec='lib$name'
11723: soname_spec=
11724: shrext_cmds=".so"
11725: postinstall_cmds=
11726: postuninstall_cmds=
11727: finish_cmds=
11728: finish_eval=
11729: shlibpath_var=
11730: shlibpath_overrides_runpath=unknown
11731: version_type=none
11732: dynamic_linker="$host_os ld.so"
11733: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11734: need_lib_prefix=unknown
11735: hardcode_into_libs=no
11736:
11737: # when you set need_version to no, make sure it does not cause -set_version
11738: # flags to be left without arguments
11739: need_version=unknown
11740:
11741: case $host_os in
11742: aix3*)
11743: version_type=linux # correct to gnu/linux during the next big refactor
11744: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11745: shlibpath_var=LIBPATH
11746:
11747: # AIX 3 has no versioning support, so we append a major version to the name.
11748: soname_spec='${libname}${release}${shared_ext}$major'
11749: ;;
11750:
11751: aix[4-9]*)
11752: version_type=linux # correct to gnu/linux during the next big refactor
11753: need_lib_prefix=no
11754: need_version=no
11755: hardcode_into_libs=yes
11756: if test "$host_cpu" = ia64; then
11757: # AIX 5 supports IA64
11758: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11759: shlibpath_var=LD_LIBRARY_PATH
11760: else
11761: # With GCC up to 2.95.x, collect2 would create an import file
11762: # for dependence libraries. The import file would start with
11763: # the line `#! .'. This would cause the generated library to
11764: # depend on `.', always an invalid library. This was fixed in
11765: # development snapshots of GCC prior to 3.0.
11766: case $host_os in
11767: aix4 | aix4.[01] | aix4.[01].*)
11768: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11769: echo ' yes '
11770: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11771: :
11772: else
11773: can_build_shared=no
11774: fi
11775: ;;
11776: esac
11777: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11778: # soname into executable. Probably we can add versioning support to
11779: # collect2, so additional links can be useful in future.
11780: if test "$aix_use_runtimelinking" = yes; then
11781: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11782: # instead of lib<name>.a to let people know that these are not
11783: # typical AIX shared libraries.
11784: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785: else
11786: # We preserve .a as extension for shared libraries through AIX4.2
11787: # and later when we are not doing run time linking.
11788: library_names_spec='${libname}${release}.a $libname.a'
11789: soname_spec='${libname}${release}${shared_ext}$major'
11790: fi
11791: shlibpath_var=LIBPATH
11792: fi
11793: ;;
11794:
11795: amigaos*)
11796: case $host_cpu in
11797: powerpc)
11798: # Since July 2007 AmigaOS4 officially supports .so libraries.
11799: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11800: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801: ;;
11802: m68k)
11803: library_names_spec='$libname.ixlibrary $libname.a'
11804: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11805: 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'
11806: ;;
11807: esac
11808: ;;
11809:
11810: beos*)
11811: library_names_spec='${libname}${shared_ext}'
11812: dynamic_linker="$host_os ld.so"
11813: shlibpath_var=LIBRARY_PATH
11814: ;;
11815:
11816: bsdi[45]*)
11817: version_type=linux # correct to gnu/linux during the next big refactor
11818: need_version=no
11819: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820: soname_spec='${libname}${release}${shared_ext}$major'
11821: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11822: shlibpath_var=LD_LIBRARY_PATH
11823: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11824: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11825: # the default ld.so.conf also contains /usr/contrib/lib and
11826: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11827: # libtool to hard-code these into programs
11828: ;;
11829:
11830: cygwin* | mingw* | pw32* | cegcc*)
11831: version_type=windows
11832: shrext_cmds=".dll"
11833: need_version=no
11834: need_lib_prefix=no
11835:
11836: case $GCC,$cc_basename in
11837: yes,*)
11838: # gcc
11839: library_names_spec='$libname.dll.a'
11840: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11841: postinstall_cmds='base_file=`basename \${file}`~
11842: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11843: dldir=$destdir/`dirname \$dlpath`~
11844: test -d \$dldir || mkdir -p \$dldir~
11845: $install_prog $dir/$dlname \$dldir/$dlname~
11846: chmod a+x \$dldir/$dlname~
11847: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11848: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11849: fi'
11850: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11851: dlpath=$dir/\$dldll~
11852: $RM \$dlpath'
11853: shlibpath_overrides_runpath=yes
11854:
11855: case $host_os in
11856: cygwin*)
11857: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11858: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11859:
11860: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11861: ;;
11862: mingw* | cegcc*)
11863: # MinGW DLLs use traditional 'lib' prefix
11864: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11865: ;;
11866: pw32*)
11867: # pw32 DLLs use 'pw' prefix rather than 'lib'
11868: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11869: ;;
11870: esac
11871: dynamic_linker='Win32 ld.exe'
11872: ;;
11873:
11874: *,cl*)
11875: # Native MSVC
11876: libname_spec='$name'
11877: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11878: library_names_spec='${libname}.dll.lib'
11879:
11880: case $build_os in
11881: mingw*)
11882: sys_lib_search_path_spec=
11883: lt_save_ifs=$IFS
11884: IFS=';'
11885: for lt_path in $LIB
11886: do
11887: IFS=$lt_save_ifs
11888: # Let DOS variable expansion print the short 8.3 style file name.
11889: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11890: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11891: done
11892: IFS=$lt_save_ifs
11893: # Convert to MSYS style.
11894: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11895: ;;
11896: cygwin*)
11897: # Convert to unix form, then to dos form, then back to unix form
11898: # but this time dos style (no spaces!) so that the unix form looks
11899: # like /cygdrive/c/PROGRA~1:/cygdr...
11900: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11901: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11902: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11903: ;;
11904: *)
11905: sys_lib_search_path_spec="$LIB"
11906: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11907: # It is most probably a Windows format PATH.
11908: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11909: else
11910: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11911: fi
11912: # FIXME: find the short name or the path components, as spaces are
11913: # common. (e.g. "Program Files" -> "PROGRA~1")
11914: ;;
11915: esac
11916:
11917: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11918: postinstall_cmds='base_file=`basename \${file}`~
11919: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11920: dldir=$destdir/`dirname \$dlpath`~
11921: test -d \$dldir || mkdir -p \$dldir~
11922: $install_prog $dir/$dlname \$dldir/$dlname'
11923: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11924: dlpath=$dir/\$dldll~
11925: $RM \$dlpath'
11926: shlibpath_overrides_runpath=yes
11927: dynamic_linker='Win32 link.exe'
11928: ;;
11929:
11930: *)
11931: # Assume MSVC wrapper
11932: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11933: dynamic_linker='Win32 ld.exe'
11934: ;;
11935: esac
11936: # FIXME: first we should search . and the directory the executable is in
11937: shlibpath_var=PATH
11938: ;;
11939:
11940: darwin* | rhapsody*)
11941: dynamic_linker="$host_os dyld"
11942: version_type=darwin
11943: need_lib_prefix=no
11944: need_version=no
11945: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11946: soname_spec='${libname}${release}${major}$shared_ext'
11947: shlibpath_overrides_runpath=yes
11948: shlibpath_var=DYLD_LIBRARY_PATH
11949: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11950:
11951: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11952: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11953: ;;
11954:
11955: dgux*)
11956: version_type=linux # correct to gnu/linux during the next big refactor
11957: need_lib_prefix=no
11958: need_version=no
11959: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11960: soname_spec='${libname}${release}${shared_ext}$major'
11961: shlibpath_var=LD_LIBRARY_PATH
11962: ;;
11963:
11964: freebsd* | dragonfly*)
11965: # DragonFly does not have aout. When/if they implement a new
11966: # versioning mechanism, adjust this.
11967: if test -x /usr/bin/objformat; then
11968: objformat=`/usr/bin/objformat`
11969: else
11970: case $host_os in
11971: freebsd[23].*) objformat=aout ;;
11972: *) objformat=elf ;;
11973: esac
11974: fi
11975: version_type=freebsd-$objformat
11976: case $version_type in
11977: freebsd-elf*)
11978: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11979: need_version=no
11980: need_lib_prefix=no
11981: ;;
11982: freebsd-*)
11983: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11984: need_version=yes
11985: ;;
11986: esac
11987: shlibpath_var=LD_LIBRARY_PATH
11988: case $host_os in
11989: freebsd2.*)
11990: shlibpath_overrides_runpath=yes
11991: ;;
11992: freebsd3.[01]* | freebsdelf3.[01]*)
11993: shlibpath_overrides_runpath=yes
11994: hardcode_into_libs=yes
11995: ;;
11996: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11997: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11998: shlibpath_overrides_runpath=no
11999: hardcode_into_libs=yes
12000: ;;
12001: *) # from 4.6 on, and DragonFly
12002: shlibpath_overrides_runpath=yes
12003: hardcode_into_libs=yes
12004: ;;
12005: esac
12006: ;;
12007:
12008: gnu*)
12009: version_type=linux # correct to gnu/linux during the next big refactor
12010: need_lib_prefix=no
12011: need_version=no
12012: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12013: soname_spec='${libname}${release}${shared_ext}$major'
12014: shlibpath_var=LD_LIBRARY_PATH
12015: shlibpath_overrides_runpath=no
12016: hardcode_into_libs=yes
12017: ;;
12018:
12019: haiku*)
12020: version_type=linux # correct to gnu/linux during the next big refactor
12021: need_lib_prefix=no
12022: need_version=no
12023: dynamic_linker="$host_os runtime_loader"
12024: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12025: soname_spec='${libname}${release}${shared_ext}$major'
12026: shlibpath_var=LIBRARY_PATH
12027: shlibpath_overrides_runpath=yes
12028: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12029: hardcode_into_libs=yes
12030: ;;
12031:
12032: hpux9* | hpux10* | hpux11*)
12033: # Give a soname corresponding to the major version so that dld.sl refuses to
12034: # link against other versions.
12035: version_type=sunos
12036: need_lib_prefix=no
12037: need_version=no
12038: case $host_cpu in
12039: ia64*)
12040: shrext_cmds='.so'
12041: hardcode_into_libs=yes
12042: dynamic_linker="$host_os dld.so"
12043: shlibpath_var=LD_LIBRARY_PATH
12044: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12045: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12046: soname_spec='${libname}${release}${shared_ext}$major'
12047: if test "X$HPUX_IA64_MODE" = X32; then
12048: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12049: else
12050: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12051: fi
12052: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12053: ;;
12054: hppa*64*)
12055: shrext_cmds='.sl'
12056: hardcode_into_libs=yes
12057: dynamic_linker="$host_os dld.sl"
12058: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12059: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12060: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12061: soname_spec='${libname}${release}${shared_ext}$major'
12062: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12063: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12064: ;;
12065: *)
12066: shrext_cmds='.sl'
12067: dynamic_linker="$host_os dld.sl"
12068: shlibpath_var=SHLIB_PATH
12069: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12070: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071: soname_spec='${libname}${release}${shared_ext}$major'
12072: ;;
12073: esac
12074: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12075: postinstall_cmds='chmod 555 $lib'
12076: # or fails outright, so override atomically:
12077: install_override_mode=555
12078: ;;
12079:
12080: interix[3-9]*)
12081: version_type=linux # correct to gnu/linux during the next big refactor
12082: need_lib_prefix=no
12083: need_version=no
12084: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12085: soname_spec='${libname}${release}${shared_ext}$major'
12086: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12087: shlibpath_var=LD_LIBRARY_PATH
12088: shlibpath_overrides_runpath=no
12089: hardcode_into_libs=yes
12090: ;;
12091:
12092: irix5* | irix6* | nonstopux*)
12093: case $host_os in
12094: nonstopux*) version_type=nonstopux ;;
12095: *)
12096: if test "$lt_cv_prog_gnu_ld" = yes; then
12097: version_type=linux # correct to gnu/linux during the next big refactor
12098: else
12099: version_type=irix
12100: fi ;;
12101: esac
12102: need_lib_prefix=no
12103: need_version=no
12104: soname_spec='${libname}${release}${shared_ext}$major'
12105: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12106: case $host_os in
12107: irix5* | nonstopux*)
12108: libsuff= shlibsuff=
12109: ;;
12110: *)
12111: case $LD in # libtool.m4 will add one of these switches to LD
12112: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12113: libsuff= shlibsuff= libmagic=32-bit;;
12114: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12115: libsuff=32 shlibsuff=N32 libmagic=N32;;
12116: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12117: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12118: *) libsuff= shlibsuff= libmagic=never-match;;
12119: esac
12120: ;;
12121: esac
12122: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12123: shlibpath_overrides_runpath=no
12124: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12125: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12126: hardcode_into_libs=yes
12127: ;;
12128:
12129: # No shared lib support for Linux oldld, aout, or coff.
12130: linux*oldld* | linux*aout* | linux*coff*)
12131: dynamic_linker=no
12132: ;;
12133:
12134: # This must be glibc/ELF.
12135: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12136: version_type=linux # correct to gnu/linux during the next big refactor
12137: need_lib_prefix=no
12138: need_version=no
12139: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12140: soname_spec='${libname}${release}${shared_ext}$major'
12141: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12142: shlibpath_var=LD_LIBRARY_PATH
12143: shlibpath_overrides_runpath=no
12144:
12145: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 12146: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12147: $as_echo_n "(cached) " >&6
1.128 moko 12148: else
12149: lt_cv_shlibpath_overrides_runpath=no
12150: save_LDFLAGS=$LDFLAGS
12151: save_libdir=$libdir
12152: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12153: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 12154: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12155: /* end confdefs.h. */
12156:
12157: int
12158: main ()
12159: {
12160:
12161: ;
12162: return 0;
12163: }
12164: _ACEOF
1.150 moko 12165: if ac_fn_c_try_link "$LINENO"; then :
12166: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 12167: lt_cv_shlibpath_overrides_runpath=yes
12168: fi
12169: fi
1.150 moko 12170: rm -f core conftest.err conftest.$ac_objext \
12171: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12172: LDFLAGS=$save_LDFLAGS
12173: libdir=$save_libdir
12174:
12175: fi
12176:
12177: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12178:
12179: # This implies no fast_install, which is unacceptable.
12180: # Some rework will be needed to allow for fast_install
12181: # before this can be enabled.
12182: hardcode_into_libs=yes
12183:
12184: # Append ld.so.conf contents to the search path
12185: if test -f /etc/ld.so.conf; then
12186: 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' ' '`
12187: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12188: fi
12189:
12190: # We used to test for /lib/ld.so.1 and disable shared libraries on
12191: # powerpc, because MkLinux only supported shared libraries with the
12192: # GNU dynamic linker. Since this was broken with cross compilers,
12193: # most powerpc-linux boxes support dynamic linking these days and
12194: # people can always --disable-shared, the test was removed, and we
12195: # assume the GNU/Linux dynamic linker is in use.
12196: dynamic_linker='GNU/Linux ld.so'
12197: ;;
12198:
12199: netbsd*)
12200: version_type=sunos
12201: need_lib_prefix=no
12202: need_version=no
12203: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12204: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12205: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12206: dynamic_linker='NetBSD (a.out) ld.so'
12207: else
12208: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12209: soname_spec='${libname}${release}${shared_ext}$major'
12210: dynamic_linker='NetBSD ld.elf_so'
12211: fi
12212: shlibpath_var=LD_LIBRARY_PATH
12213: shlibpath_overrides_runpath=yes
12214: hardcode_into_libs=yes
12215: ;;
12216:
12217: newsos6)
12218: version_type=linux # correct to gnu/linux during the next big refactor
12219: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12220: shlibpath_var=LD_LIBRARY_PATH
12221: shlibpath_overrides_runpath=yes
12222: ;;
12223:
12224: *nto* | *qnx*)
12225: version_type=qnx
12226: need_lib_prefix=no
12227: need_version=no
12228: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229: soname_spec='${libname}${release}${shared_ext}$major'
12230: shlibpath_var=LD_LIBRARY_PATH
12231: shlibpath_overrides_runpath=no
12232: hardcode_into_libs=yes
12233: dynamic_linker='ldqnx.so'
12234: ;;
12235:
12236: openbsd*)
12237: version_type=sunos
12238: sys_lib_dlsearch_path_spec="/usr/lib"
12239: need_lib_prefix=no
12240: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12241: case $host_os in
12242: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12243: *) need_version=no ;;
12244: esac
12245: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12246: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12247: shlibpath_var=LD_LIBRARY_PATH
12248: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12249: case $host_os in
12250: openbsd2.[89] | openbsd2.[89].*)
12251: shlibpath_overrides_runpath=no
12252: ;;
12253: *)
12254: shlibpath_overrides_runpath=yes
12255: ;;
12256: esac
12257: else
12258: shlibpath_overrides_runpath=yes
12259: fi
12260: ;;
12261:
12262: os2*)
12263: libname_spec='$name'
12264: shrext_cmds=".dll"
12265: need_lib_prefix=no
12266: library_names_spec='$libname${shared_ext} $libname.a'
12267: dynamic_linker='OS/2 ld.exe'
12268: shlibpath_var=LIBPATH
12269: ;;
12270:
12271: osf3* | osf4* | osf5*)
12272: version_type=osf
12273: need_lib_prefix=no
12274: need_version=no
12275: soname_spec='${libname}${release}${shared_ext}$major'
12276: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12277: shlibpath_var=LD_LIBRARY_PATH
12278: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12279: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12280: ;;
12281:
12282: rdos*)
12283: dynamic_linker=no
12284: ;;
12285:
12286: solaris*)
12287: version_type=linux # correct to gnu/linux during the next big refactor
12288: need_lib_prefix=no
12289: need_version=no
12290: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12291: soname_spec='${libname}${release}${shared_ext}$major'
12292: shlibpath_var=LD_LIBRARY_PATH
12293: shlibpath_overrides_runpath=yes
12294: hardcode_into_libs=yes
12295: # ldd complains unless libraries are executable
12296: postinstall_cmds='chmod +x $lib'
12297: ;;
12298:
12299: sunos4*)
12300: version_type=sunos
12301: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12302: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12303: shlibpath_var=LD_LIBRARY_PATH
12304: shlibpath_overrides_runpath=yes
12305: if test "$with_gnu_ld" = yes; then
12306: need_lib_prefix=no
12307: fi
12308: need_version=yes
12309: ;;
12310:
12311: sysv4 | sysv4.3*)
12312: version_type=linux # correct to gnu/linux during the next big refactor
12313: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12314: soname_spec='${libname}${release}${shared_ext}$major'
12315: shlibpath_var=LD_LIBRARY_PATH
12316: case $host_vendor in
12317: sni)
12318: shlibpath_overrides_runpath=no
12319: need_lib_prefix=no
12320: runpath_var=LD_RUN_PATH
12321: ;;
12322: siemens)
12323: need_lib_prefix=no
12324: ;;
12325: motorola)
12326: need_lib_prefix=no
12327: need_version=no
12328: shlibpath_overrides_runpath=no
12329: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12330: ;;
12331: esac
12332: ;;
12333:
12334: sysv4*MP*)
12335: if test -d /usr/nec ;then
12336: version_type=linux # correct to gnu/linux during the next big refactor
12337: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12338: soname_spec='$libname${shared_ext}.$major'
12339: shlibpath_var=LD_LIBRARY_PATH
12340: fi
12341: ;;
12342:
12343: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12344: version_type=freebsd-elf
12345: need_lib_prefix=no
12346: need_version=no
12347: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12348: soname_spec='${libname}${release}${shared_ext}$major'
12349: shlibpath_var=LD_LIBRARY_PATH
12350: shlibpath_overrides_runpath=yes
12351: hardcode_into_libs=yes
12352: if test "$with_gnu_ld" = yes; then
12353: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12354: else
12355: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12356: case $host_os in
12357: sco3.2v5*)
12358: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12359: ;;
12360: esac
12361: fi
12362: sys_lib_dlsearch_path_spec='/usr/lib'
12363: ;;
12364:
12365: tpf*)
12366: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12367: version_type=linux # correct to gnu/linux during the next big refactor
12368: need_lib_prefix=no
12369: need_version=no
12370: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12371: shlibpath_var=LD_LIBRARY_PATH
12372: shlibpath_overrides_runpath=no
12373: hardcode_into_libs=yes
12374: ;;
12375:
12376: uts4*)
12377: version_type=linux # correct to gnu/linux during the next big refactor
12378: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12379: soname_spec='${libname}${release}${shared_ext}$major'
12380: shlibpath_var=LD_LIBRARY_PATH
12381: ;;
12382:
12383: *)
12384: dynamic_linker=no
12385: ;;
12386: esac
1.150 moko 12387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12388: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12389: test "$dynamic_linker" = no && can_build_shared=no
12390:
12391: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12392: if test "$GCC" = yes; then
12393: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12394: fi
12395:
12396: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12397: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12398: fi
12399: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12400: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12401: fi
12402:
12403:
12404:
12405:
12406:
12407:
12408:
12409:
12410:
12411:
12412:
12413:
12414:
12415:
12416:
12417:
12418:
12419:
12420:
12421:
12422:
12423:
12424:
12425:
12426:
12427:
12428:
12429:
12430:
12431:
12432:
12433:
12434:
12435:
12436:
12437:
12438:
12439:
12440:
12441:
12442:
12443:
12444:
12445:
12446:
12447:
12448:
12449:
12450:
12451:
12452:
12453:
12454:
12455:
12456:
12457:
12458:
12459:
12460:
12461:
12462:
12463:
12464:
12465:
12466:
12467:
12468:
12469:
12470:
12471:
12472:
12473:
12474:
12475:
12476:
12477:
12478:
12479:
12480:
12481:
12482:
12483:
12484:
12485:
12486:
12487:
12488:
12489:
12490:
12491:
12492:
12493:
1.150 moko 12494: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12495: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12496: hardcode_action=
12497: if test -n "$hardcode_libdir_flag_spec" ||
12498: test -n "$runpath_var" ||
12499: test "X$hardcode_automatic" = "Xyes" ; then
12500:
12501: # We can hardcode non-existent directories.
12502: if test "$hardcode_direct" != no &&
12503: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12504: # have to relink, otherwise we might link with an installed library
12505: # when we should be linking with a yet-to-be-installed one
12506: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12507: test "$hardcode_minus_L" != no; then
12508: # Linking always hardcodes the temporary library directory.
12509: hardcode_action=relink
12510: else
12511: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12512: hardcode_action=immediate
12513: fi
12514: else
12515: # We cannot hardcode anything, or else we can only hardcode existing
12516: # directories.
12517: hardcode_action=unsupported
12518: fi
1.150 moko 12519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12520: $as_echo "$hardcode_action" >&6; }
1.128 moko 12521:
12522: if test "$hardcode_action" = relink ||
12523: test "$inherit_rpath" = yes; then
12524: # Fast installation is not supported
12525: enable_fast_install=no
12526: elif test "$shlibpath_overrides_runpath" = yes ||
12527: test "$enable_shared" = no; then
12528: # Fast installation is not necessary
12529: enable_fast_install=needless
12530: fi
12531:
12532:
12533:
12534:
12535:
12536:
12537: if test "x$enable_dlopen" != xyes; then
12538: enable_dlopen=unknown
12539: enable_dlopen_self=unknown
12540: enable_dlopen_self_static=unknown
12541: else
12542: lt_cv_dlopen=no
12543: lt_cv_dlopen_libs=
12544:
12545: case $host_os in
12546: beos*)
12547: lt_cv_dlopen="load_add_on"
12548: lt_cv_dlopen_libs=
12549: lt_cv_dlopen_self=yes
12550: ;;
12551:
12552: mingw* | pw32* | cegcc*)
12553: lt_cv_dlopen="LoadLibrary"
12554: lt_cv_dlopen_libs=
12555: ;;
12556:
12557: cygwin*)
12558: lt_cv_dlopen="dlopen"
12559: lt_cv_dlopen_libs=
12560: ;;
12561:
12562: darwin*)
12563: # if libdl is installed we need to link against it
1.150 moko 12564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12565: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12566: if ${ac_cv_lib_dl_dlopen+:} false; then :
12567: $as_echo_n "(cached) " >&6
1.128 moko 12568: else
12569: ac_check_lib_save_LIBS=$LIBS
12570: LIBS="-ldl $LIBS"
1.150 moko 12571: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12572: /* end confdefs.h. */
12573:
1.150 moko 12574: /* Override any GCC internal prototype to avoid an error.
12575: Use char because int might match the return type of a GCC
12576: builtin and then its argument prototype would still apply. */
1.128 moko 12577: #ifdef __cplusplus
12578: extern "C"
12579: #endif
12580: char dlopen ();
12581: int
12582: main ()
12583: {
1.150 moko 12584: return dlopen ();
1.128 moko 12585: ;
12586: return 0;
12587: }
12588: _ACEOF
1.150 moko 12589: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12590: ac_cv_lib_dl_dlopen=yes
12591: else
1.150 moko 12592: ac_cv_lib_dl_dlopen=no
1.128 moko 12593: fi
1.150 moko 12594: rm -f core conftest.err conftest.$ac_objext \
12595: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12596: LIBS=$ac_check_lib_save_LIBS
12597: fi
1.150 moko 12598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12599: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12600: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12601: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12602: else
12603:
12604: lt_cv_dlopen="dyld"
12605: lt_cv_dlopen_libs=
12606: lt_cv_dlopen_self=yes
12607:
12608: fi
12609:
12610: ;;
12611:
12612: *)
1.150 moko 12613: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12614: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12615: lt_cv_dlopen="shl_load"
12616: else
1.150 moko 12617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12618: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12619: if ${ac_cv_lib_dld_shl_load+:} false; then :
12620: $as_echo_n "(cached) " >&6
1.128 moko 12621: else
12622: ac_check_lib_save_LIBS=$LIBS
12623: LIBS="-ldld $LIBS"
1.150 moko 12624: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12625: /* end confdefs.h. */
12626:
1.150 moko 12627: /* Override any GCC internal prototype to avoid an error.
12628: Use char because int might match the return type of a GCC
12629: builtin and then its argument prototype would still apply. */
1.128 moko 12630: #ifdef __cplusplus
12631: extern "C"
12632: #endif
12633: char shl_load ();
12634: int
12635: main ()
12636: {
1.150 moko 12637: return shl_load ();
1.128 moko 12638: ;
12639: return 0;
12640: }
12641: _ACEOF
1.150 moko 12642: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12643: ac_cv_lib_dld_shl_load=yes
12644: else
1.150 moko 12645: ac_cv_lib_dld_shl_load=no
1.128 moko 12646: fi
1.150 moko 12647: rm -f core conftest.err conftest.$ac_objext \
12648: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12649: LIBS=$ac_check_lib_save_LIBS
12650: fi
1.150 moko 12651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12652: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12653: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12654: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12655: else
1.150 moko 12656: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12657: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12658: lt_cv_dlopen="dlopen"
12659: else
1.150 moko 12660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12661: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12662: if ${ac_cv_lib_dl_dlopen+:} false; then :
12663: $as_echo_n "(cached) " >&6
1.128 moko 12664: else
12665: ac_check_lib_save_LIBS=$LIBS
12666: LIBS="-ldl $LIBS"
1.150 moko 12667: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12668: /* end confdefs.h. */
12669:
1.150 moko 12670: /* Override any GCC internal prototype to avoid an error.
12671: Use char because int might match the return type of a GCC
12672: builtin and then its argument prototype would still apply. */
1.128 moko 12673: #ifdef __cplusplus
12674: extern "C"
12675: #endif
12676: char dlopen ();
12677: int
12678: main ()
12679: {
1.150 moko 12680: return dlopen ();
1.128 moko 12681: ;
12682: return 0;
12683: }
12684: _ACEOF
1.150 moko 12685: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12686: ac_cv_lib_dl_dlopen=yes
12687: else
1.150 moko 12688: ac_cv_lib_dl_dlopen=no
1.128 moko 12689: fi
1.150 moko 12690: rm -f core conftest.err conftest.$ac_objext \
12691: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12692: LIBS=$ac_check_lib_save_LIBS
12693: fi
1.150 moko 12694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12695: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12696: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12697: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12698: else
1.150 moko 12699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12700: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12701: if ${ac_cv_lib_svld_dlopen+:} false; then :
12702: $as_echo_n "(cached) " >&6
1.128 moko 12703: else
12704: ac_check_lib_save_LIBS=$LIBS
12705: LIBS="-lsvld $LIBS"
1.150 moko 12706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12707: /* end confdefs.h. */
12708:
1.150 moko 12709: /* Override any GCC internal prototype to avoid an error.
12710: Use char because int might match the return type of a GCC
12711: builtin and then its argument prototype would still apply. */
1.128 moko 12712: #ifdef __cplusplus
12713: extern "C"
12714: #endif
12715: char dlopen ();
12716: int
12717: main ()
12718: {
1.150 moko 12719: return dlopen ();
1.128 moko 12720: ;
12721: return 0;
12722: }
12723: _ACEOF
1.150 moko 12724: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12725: ac_cv_lib_svld_dlopen=yes
12726: else
1.150 moko 12727: ac_cv_lib_svld_dlopen=no
1.128 moko 12728: fi
1.150 moko 12729: rm -f core conftest.err conftest.$ac_objext \
12730: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12731: LIBS=$ac_check_lib_save_LIBS
12732: fi
1.150 moko 12733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12734: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12735: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12736: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12737: else
1.150 moko 12738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12739: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12740: if ${ac_cv_lib_dld_dld_link+:} false; then :
12741: $as_echo_n "(cached) " >&6
1.128 moko 12742: else
12743: ac_check_lib_save_LIBS=$LIBS
12744: LIBS="-ldld $LIBS"
1.150 moko 12745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12746: /* end confdefs.h. */
12747:
1.150 moko 12748: /* Override any GCC internal prototype to avoid an error.
12749: Use char because int might match the return type of a GCC
12750: builtin and then its argument prototype would still apply. */
1.128 moko 12751: #ifdef __cplusplus
12752: extern "C"
12753: #endif
12754: char dld_link ();
12755: int
12756: main ()
12757: {
1.150 moko 12758: return dld_link ();
1.128 moko 12759: ;
12760: return 0;
12761: }
12762: _ACEOF
1.150 moko 12763: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12764: ac_cv_lib_dld_dld_link=yes
12765: else
1.150 moko 12766: ac_cv_lib_dld_dld_link=no
12767: fi
12768: rm -f core conftest.err conftest.$ac_objext \
12769: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12770: LIBS=$ac_check_lib_save_LIBS
12771: fi
1.150 moko 12772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12773: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12774: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12775: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12776: fi
12777:
12778:
12779: fi
12780:
12781:
12782: fi
12783:
12784:
12785: fi
12786:
12787:
12788: fi
12789:
12790:
12791: fi
12792:
12793: ;;
12794: esac
12795:
12796: if test "x$lt_cv_dlopen" != xno; then
12797: enable_dlopen=yes
12798: else
12799: enable_dlopen=no
12800: fi
12801:
12802: case $lt_cv_dlopen in
12803: dlopen)
12804: save_CPPFLAGS="$CPPFLAGS"
12805: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12806:
12807: save_LDFLAGS="$LDFLAGS"
12808: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12809:
12810: save_LIBS="$LIBS"
12811: LIBS="$lt_cv_dlopen_libs $LIBS"
12812:
1.150 moko 12813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12814: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12815: if ${lt_cv_dlopen_self+:} false; then :
12816: $as_echo_n "(cached) " >&6
1.128 moko 12817: else
12818: if test "$cross_compiling" = yes; then :
12819: lt_cv_dlopen_self=cross
12820: else
12821: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12822: lt_status=$lt_dlunknown
12823: cat > conftest.$ac_ext <<_LT_EOF
12824: #line $LINENO "configure"
12825: #include "confdefs.h"
12826:
12827: #if HAVE_DLFCN_H
12828: #include <dlfcn.h>
12829: #endif
12830:
12831: #include <stdio.h>
12832:
12833: #ifdef RTLD_GLOBAL
12834: # define LT_DLGLOBAL RTLD_GLOBAL
12835: #else
12836: # ifdef DL_GLOBAL
12837: # define LT_DLGLOBAL DL_GLOBAL
12838: # else
12839: # define LT_DLGLOBAL 0
12840: # endif
12841: #endif
12842:
12843: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12844: find out it does not work in some platform. */
12845: #ifndef LT_DLLAZY_OR_NOW
12846: # ifdef RTLD_LAZY
12847: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12848: # else
12849: # ifdef DL_LAZY
12850: # define LT_DLLAZY_OR_NOW DL_LAZY
12851: # else
12852: # ifdef RTLD_NOW
12853: # define LT_DLLAZY_OR_NOW RTLD_NOW
12854: # else
12855: # ifdef DL_NOW
12856: # define LT_DLLAZY_OR_NOW DL_NOW
12857: # else
12858: # define LT_DLLAZY_OR_NOW 0
12859: # endif
12860: # endif
12861: # endif
12862: # endif
12863: #endif
12864:
12865: /* When -fvisbility=hidden is used, assume the code has been annotated
12866: correspondingly for the symbols needed. */
12867: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12868: int fnord () __attribute__((visibility("default")));
12869: #endif
12870:
12871: int fnord () { return 42; }
12872: int main ()
12873: {
12874: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12875: int status = $lt_dlunknown;
12876:
12877: if (self)
12878: {
12879: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12880: else
12881: {
12882: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12883: else puts (dlerror ());
12884: }
12885: /* dlclose (self); */
12886: }
12887: else
12888: puts (dlerror ());
12889:
12890: return status;
12891: }
12892: _LT_EOF
1.150 moko 12893: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12894: (eval $ac_link) 2>&5
12895: ac_status=$?
1.150 moko 12896: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12897: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12898: (./conftest; exit; ) >&5 2>/dev/null
12899: lt_status=$?
12900: case x$lt_status in
12901: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12902: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12903: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12904: esac
12905: else :
12906: # compilation failed
12907: lt_cv_dlopen_self=no
12908: fi
12909: fi
12910: rm -fr conftest*
12911:
12912:
12913: fi
1.150 moko 12914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12915: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12916:
12917: if test "x$lt_cv_dlopen_self" = xyes; then
12918: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12920: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12921: if ${lt_cv_dlopen_self_static+:} false; then :
12922: $as_echo_n "(cached) " >&6
1.128 moko 12923: else
12924: if test "$cross_compiling" = yes; then :
12925: lt_cv_dlopen_self_static=cross
12926: else
12927: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12928: lt_status=$lt_dlunknown
12929: cat > conftest.$ac_ext <<_LT_EOF
12930: #line $LINENO "configure"
12931: #include "confdefs.h"
12932:
12933: #if HAVE_DLFCN_H
12934: #include <dlfcn.h>
12935: #endif
12936:
12937: #include <stdio.h>
12938:
12939: #ifdef RTLD_GLOBAL
12940: # define LT_DLGLOBAL RTLD_GLOBAL
12941: #else
12942: # ifdef DL_GLOBAL
12943: # define LT_DLGLOBAL DL_GLOBAL
12944: # else
12945: # define LT_DLGLOBAL 0
12946: # endif
12947: #endif
12948:
12949: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12950: find out it does not work in some platform. */
12951: #ifndef LT_DLLAZY_OR_NOW
12952: # ifdef RTLD_LAZY
12953: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12954: # else
12955: # ifdef DL_LAZY
12956: # define LT_DLLAZY_OR_NOW DL_LAZY
12957: # else
12958: # ifdef RTLD_NOW
12959: # define LT_DLLAZY_OR_NOW RTLD_NOW
12960: # else
12961: # ifdef DL_NOW
12962: # define LT_DLLAZY_OR_NOW DL_NOW
12963: # else
12964: # define LT_DLLAZY_OR_NOW 0
12965: # endif
12966: # endif
12967: # endif
12968: # endif
12969: #endif
12970:
12971: /* When -fvisbility=hidden is used, assume the code has been annotated
12972: correspondingly for the symbols needed. */
12973: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12974: int fnord () __attribute__((visibility("default")));
12975: #endif
12976:
12977: int fnord () { return 42; }
12978: int main ()
12979: {
12980: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12981: int status = $lt_dlunknown;
12982:
12983: if (self)
12984: {
12985: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12986: else
12987: {
12988: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12989: else puts (dlerror ());
12990: }
12991: /* dlclose (self); */
12992: }
12993: else
12994: puts (dlerror ());
12995:
12996: return status;
12997: }
12998: _LT_EOF
1.150 moko 12999: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 13000: (eval $ac_link) 2>&5
13001: ac_status=$?
1.150 moko 13002: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13003: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 13004: (./conftest; exit; ) >&5 2>/dev/null
13005: lt_status=$?
13006: case x$lt_status in
13007: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13008: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13009: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13010: esac
13011: else :
13012: # compilation failed
13013: lt_cv_dlopen_self_static=no
13014: fi
13015: fi
13016: rm -fr conftest*
13017:
13018:
13019: fi
1.150 moko 13020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13021: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 13022: fi
13023:
13024: CPPFLAGS="$save_CPPFLAGS"
13025: LDFLAGS="$save_LDFLAGS"
13026: LIBS="$save_LIBS"
13027: ;;
13028: esac
13029:
13030: case $lt_cv_dlopen_self in
13031: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13032: *) enable_dlopen_self=unknown ;;
13033: esac
13034:
13035: case $lt_cv_dlopen_self_static in
13036: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13037: *) enable_dlopen_self_static=unknown ;;
13038: esac
13039: fi
13040:
13041:
13042:
13043:
13044:
13045:
13046:
13047:
13048:
13049:
13050:
13051:
13052:
13053:
13054:
13055:
13056:
13057: striplib=
13058: old_striplib=
1.150 moko 13059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13060: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 13061: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13062: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13063: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 13064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13065: $as_echo "yes" >&6; }
1.128 moko 13066: else
13067: # FIXME - insert some real tests, host_os isn't really good enough
13068: case $host_os in
13069: darwin*)
13070: if test -n "$STRIP" ; then
13071: striplib="$STRIP -x"
13072: old_striplib="$STRIP -S"
1.150 moko 13073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13074: $as_echo "yes" >&6; }
1.128 moko 13075: else
1.150 moko 13076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077: $as_echo "no" >&6; }
1.128 moko 13078: fi
13079: ;;
13080: *)
1.150 moko 13081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082: $as_echo "no" >&6; }
1.128 moko 13083: ;;
13084: esac
13085: fi
13086:
13087:
13088:
13089:
13090:
13091:
13092:
13093:
13094:
13095:
13096:
13097:
13098: # Report which library types will actually be built
1.150 moko 13099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13100: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13102: $as_echo "$can_build_shared" >&6; }
1.128 moko 13103:
1.150 moko 13104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13105: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 13106: test "$can_build_shared" = "no" && enable_shared=no
13107:
13108: # On AIX, shared libraries and static libraries use the same namespace, and
13109: # are all built from PIC.
13110: case $host_os in
13111: aix3*)
13112: test "$enable_shared" = yes && enable_static=no
13113: if test -n "$RANLIB"; then
13114: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13115: postinstall_cmds='$RANLIB $lib'
13116: fi
13117: ;;
13118:
13119: aix[4-9]*)
13120: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13121: test "$enable_shared" = yes && enable_static=no
13122: fi
13123: ;;
13124: esac
1.150 moko 13125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13126: $as_echo "$enable_shared" >&6; }
1.128 moko 13127:
1.150 moko 13128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13129: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 13130: # Make sure either enable_shared or enable_static is yes.
13131: test "$enable_shared" = yes || enable_static=yes
1.150 moko 13132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13133: $as_echo "$enable_static" >&6; }
1.128 moko 13134:
13135:
13136:
13137:
13138: fi
13139: ac_ext=c
13140: ac_cpp='$CPP $CPPFLAGS'
13141: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13144:
13145: CC="$lt_save_CC"
13146:
13147: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13148: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13149: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 13150: ac_ext=cpp
1.128 moko 13151: ac_cpp='$CXXCPP $CPPFLAGS'
13152: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 13155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13156: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 13157: if test -z "$CXXCPP"; then
1.150 moko 13158: if ${ac_cv_prog_CXXCPP+:} false; then :
13159: $as_echo_n "(cached) " >&6
1.128 moko 13160: else
13161: # Double quotes because CXXCPP needs to be expanded
13162: for CXXCPP in "$CXX -E" "/lib/cpp"
13163: do
13164: ac_preproc_ok=false
13165: for ac_cxx_preproc_warn_flag in '' yes
13166: do
13167: # Use a header file that comes with gcc, so configuring glibc
13168: # with a fresh cross-compiler works.
13169: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13170: # <limits.h> exists even on freestanding compilers.
13171: # On the NeXT, cc -E runs the code through the compiler's parser,
13172: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13174: /* end confdefs.h. */
13175: #ifdef __STDC__
13176: # include <limits.h>
13177: #else
13178: # include <assert.h>
13179: #endif
13180: Syntax error
13181: _ACEOF
1.150 moko 13182: if ac_fn_cxx_try_cpp "$LINENO"; then :
13183:
1.128 moko 13184: else
13185: # Broken: fails on valid input.
13186: continue
13187: fi
1.150 moko 13188: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13189:
1.150 moko 13190: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13191: # can be detected and how.
1.150 moko 13192: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13193: /* end confdefs.h. */
13194: #include <ac_nonexistent.h>
13195: _ACEOF
1.150 moko 13196: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13197: # Broken: success on invalid input.
13198: continue
13199: else
13200: # Passes both tests.
13201: ac_preproc_ok=:
13202: break
13203: fi
1.150 moko 13204: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13205:
13206: done
13207: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13208: rm -f conftest.i conftest.err conftest.$ac_ext
13209: if $ac_preproc_ok; then :
1.128 moko 13210: break
13211: fi
13212:
13213: done
13214: ac_cv_prog_CXXCPP=$CXXCPP
13215:
13216: fi
13217: CXXCPP=$ac_cv_prog_CXXCPP
13218: else
13219: ac_cv_prog_CXXCPP=$CXXCPP
13220: fi
1.150 moko 13221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13222: $as_echo "$CXXCPP" >&6; }
1.128 moko 13223: ac_preproc_ok=false
13224: for ac_cxx_preproc_warn_flag in '' yes
13225: do
13226: # Use a header file that comes with gcc, so configuring glibc
13227: # with a fresh cross-compiler works.
13228: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229: # <limits.h> exists even on freestanding compilers.
13230: # On the NeXT, cc -E runs the code through the compiler's parser,
13231: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13232: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13233: /* end confdefs.h. */
13234: #ifdef __STDC__
13235: # include <limits.h>
13236: #else
13237: # include <assert.h>
13238: #endif
13239: Syntax error
13240: _ACEOF
1.150 moko 13241: if ac_fn_cxx_try_cpp "$LINENO"; then :
13242:
1.128 moko 13243: else
13244: # Broken: fails on valid input.
13245: continue
13246: fi
1.150 moko 13247: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13248:
1.150 moko 13249: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13250: # can be detected and how.
1.150 moko 13251: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13252: /* end confdefs.h. */
13253: #include <ac_nonexistent.h>
13254: _ACEOF
1.150 moko 13255: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13256: # Broken: success on invalid input.
13257: continue
13258: else
13259: # Passes both tests.
13260: ac_preproc_ok=:
13261: break
13262: fi
1.150 moko 13263: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13264:
13265: done
13266: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13267: rm -f conftest.i conftest.err conftest.$ac_ext
13268: if $ac_preproc_ok; then :
13269:
1.128 moko 13270: else
1.150 moko 13271: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13272: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13273: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13274: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 13275: fi
13276:
13277: ac_ext=c
13278: ac_cpp='$CPP $CPPFLAGS'
13279: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13280: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13281: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13282:
13283: else
13284: _lt_caught_CXX_error=yes
13285: fi
13286:
1.150 moko 13287: ac_ext=cpp
1.128 moko 13288: ac_cpp='$CXXCPP $CPPFLAGS'
13289: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13290: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13291: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13292:
13293: archive_cmds_need_lc_CXX=no
13294: allow_undefined_flag_CXX=
13295: always_export_symbols_CXX=no
13296: archive_expsym_cmds_CXX=
13297: compiler_needs_object_CXX=no
13298: export_dynamic_flag_spec_CXX=
13299: hardcode_direct_CXX=no
13300: hardcode_direct_absolute_CXX=no
13301: hardcode_libdir_flag_spec_CXX=
13302: hardcode_libdir_separator_CXX=
13303: hardcode_minus_L_CXX=no
13304: hardcode_shlibpath_var_CXX=unsupported
13305: hardcode_automatic_CXX=no
13306: inherit_rpath_CXX=no
13307: module_cmds_CXX=
13308: module_expsym_cmds_CXX=
13309: link_all_deplibs_CXX=unknown
13310: old_archive_cmds_CXX=$old_archive_cmds
13311: reload_flag_CXX=$reload_flag
13312: reload_cmds_CXX=$reload_cmds
13313: no_undefined_flag_CXX=
13314: whole_archive_flag_spec_CXX=
13315: enable_shared_with_static_runtimes_CXX=no
13316:
13317: # Source file extension for C++ test sources.
13318: ac_ext=cpp
13319:
13320: # Object file extension for compiled C++ test sources.
13321: objext=o
13322: objext_CXX=$objext
13323:
13324: # No sense in running all these tests if we already determined that
13325: # the CXX compiler isn't working. Some variables (like enable_shared)
13326: # are currently assumed to apply to all compilers on this platform,
13327: # and will be corrupted by setting them based on a non-working compiler.
13328: if test "$_lt_caught_CXX_error" != yes; then
13329: # Code to be used in simple compile tests
13330: lt_simple_compile_test_code="int some_variable = 0;"
13331:
13332: # Code to be used in simple link tests
13333: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13334:
13335: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13336:
13337:
13338:
13339:
13340:
13341:
13342: # If no C compiler was specified, use CC.
13343: LTCC=${LTCC-"$CC"}
13344:
13345: # If no C compiler flags were specified, use CFLAGS.
13346: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13347:
13348: # Allow CC to be a program name with arguments.
13349: compiler=$CC
13350:
13351:
13352: # save warnings/boilerplate of simple test code
13353: ac_outfile=conftest.$ac_objext
13354: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13355: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13356: _lt_compiler_boilerplate=`cat conftest.err`
13357: $RM conftest*
13358:
13359: ac_outfile=conftest.$ac_objext
13360: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13361: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13362: _lt_linker_boilerplate=`cat conftest.err`
13363: $RM -r conftest*
13364:
13365:
13366: # Allow CC to be a program name with arguments.
13367: lt_save_CC=$CC
13368: lt_save_CFLAGS=$CFLAGS
13369: lt_save_LD=$LD
13370: lt_save_GCC=$GCC
13371: GCC=$GXX
13372: lt_save_with_gnu_ld=$with_gnu_ld
13373: lt_save_path_LD=$lt_cv_path_LD
13374: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13375: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13376: else
13377: $as_unset lt_cv_prog_gnu_ld
13378: fi
13379: if test -n "${lt_cv_path_LDCXX+set}"; then
13380: lt_cv_path_LD=$lt_cv_path_LDCXX
13381: else
13382: $as_unset lt_cv_path_LD
13383: fi
13384: test -z "${LDCXX+set}" || LD=$LDCXX
13385: CC=${CXX-"c++"}
13386: CFLAGS=$CXXFLAGS
13387: compiler=$CC
13388: compiler_CXX=$CC
13389: for cc_temp in $compiler""; do
13390: case $cc_temp in
13391: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13392: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13393: \-*) ;;
13394: *) break;;
13395: esac
13396: done
13397: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13398:
13399:
13400: if test -n "$compiler"; then
13401: # We don't want -fno-exception when compiling C++ code, so set the
13402: # no_builtin_flag separately
13403: if test "$GXX" = yes; then
13404: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13405: else
13406: lt_prog_compiler_no_builtin_flag_CXX=
13407: fi
13408:
13409: if test "$GXX" = yes; then
13410: # Set up default GNU C++ configuration
13411:
13412:
13413:
1.150 moko 13414: # Check whether --with-gnu-ld was given.
13415: if test "${with_gnu_ld+set}" = set; then :
13416: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13417: else
13418: with_gnu_ld=no
1.150 moko 13419: fi
13420:
1.128 moko 13421: ac_prog=ld
13422: if test "$GCC" = yes; then
13423: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13425: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13426: case $host in
13427: *-*-mingw*)
13428: # gcc leaves a trailing carriage return which upsets mingw
13429: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13430: *)
13431: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13432: esac
13433: case $ac_prog in
13434: # Accept absolute paths.
13435: [\\/]* | ?:[\\/]*)
13436: re_direlt='/[^/][^/]*/\.\./'
13437: # Canonicalize the pathname of ld
13438: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13439: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13440: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13441: done
13442: test -z "$LD" && LD="$ac_prog"
13443: ;;
13444: "")
13445: # If it fails, then pretend we aren't using GCC.
13446: ac_prog=ld
13447: ;;
13448: *)
13449: # If it is relative, then search for the first ld in PATH.
13450: with_gnu_ld=unknown
13451: ;;
13452: esac
13453: elif test "$with_gnu_ld" = yes; then
1.150 moko 13454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13455: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13456: else
1.150 moko 13457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13458: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13459: fi
1.150 moko 13460: if ${lt_cv_path_LD+:} false; then :
13461: $as_echo_n "(cached) " >&6
1.128 moko 13462: else
13463: if test -z "$LD"; then
13464: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13465: for ac_dir in $PATH; do
13466: IFS="$lt_save_ifs"
13467: test -z "$ac_dir" && ac_dir=.
13468: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13469: lt_cv_path_LD="$ac_dir/$ac_prog"
13470: # Check to see if the program is GNU ld. I'd rather use --version,
13471: # but apparently some variants of GNU ld only accept -v.
13472: # Break only if it was the GNU/non-GNU ld that we prefer.
13473: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13474: *GNU* | *'with BFD'*)
13475: test "$with_gnu_ld" != no && break
13476: ;;
13477: *)
13478: test "$with_gnu_ld" != yes && break
13479: ;;
13480: esac
13481: fi
13482: done
13483: IFS="$lt_save_ifs"
13484: else
13485: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13486: fi
13487: fi
13488:
13489: LD="$lt_cv_path_LD"
13490: if test -n "$LD"; then
1.150 moko 13491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13492: $as_echo "$LD" >&6; }
1.128 moko 13493: else
1.150 moko 13494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495: $as_echo "no" >&6; }
1.128 moko 13496: fi
1.150 moko 13497: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13499: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13500: if ${lt_cv_prog_gnu_ld+:} false; then :
13501: $as_echo_n "(cached) " >&6
1.128 moko 13502: else
13503: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13504: case `$LD -v 2>&1 </dev/null` in
13505: *GNU* | *'with BFD'*)
13506: lt_cv_prog_gnu_ld=yes
13507: ;;
13508: *)
13509: lt_cv_prog_gnu_ld=no
13510: ;;
13511: esac
13512: fi
1.150 moko 13513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13514: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13515: with_gnu_ld=$lt_cv_prog_gnu_ld
13516:
13517:
13518:
13519:
13520:
13521:
13522:
13523: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13524: # archiving commands below assume that GNU ld is being used.
13525: if test "$with_gnu_ld" = yes; then
13526: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13527: 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'
13528:
13529: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13530: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13531:
13532: # If archive_cmds runs LD, not CC, wlarc should be empty
13533: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13534: # investigate it a little bit more. (MM)
13535: wlarc='${wl}'
13536:
13537: # ancient GNU ld didn't support --whole-archive et. al.
13538: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13539: $GREP 'no-whole-archive' > /dev/null; then
13540: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13541: else
13542: whole_archive_flag_spec_CXX=
13543: fi
13544: else
13545: with_gnu_ld=no
13546: wlarc=
13547:
13548: # A generic and very simple default shared library creation
13549: # command for GNU C++ for the case where it uses the native
13550: # linker, instead of GNU ld. If possible, this setting should
13551: # overridden to take advantage of the native linker features on
13552: # the platform it is being used on.
13553: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13554: fi
13555:
13556: # Commands to make compiler produce verbose output that lists
13557: # what "hidden" libraries, object files and flags are used when
13558: # linking a shared library.
13559: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13560:
13561: else
13562: GXX=no
13563: with_gnu_ld=no
13564: wlarc=
13565: fi
13566:
13567: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13569: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13570: ld_shlibs_CXX=yes
13571: case $host_os in
13572: aix3*)
13573: # FIXME: insert proper C++ library support
13574: ld_shlibs_CXX=no
13575: ;;
13576: aix[4-9]*)
13577: if test "$host_cpu" = ia64; then
13578: # On IA64, the linker does run time linking by default, so we don't
13579: # have to do anything special.
13580: aix_use_runtimelinking=no
13581: exp_sym_flag='-Bexport'
13582: no_entry_flag=""
13583: else
13584: aix_use_runtimelinking=no
13585:
13586: # Test if we are trying to use run time linking or normal
13587: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13588: # need to do runtime linking.
13589: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13590: for ld_flag in $LDFLAGS; do
13591: case $ld_flag in
13592: *-brtl*)
13593: aix_use_runtimelinking=yes
13594: break
13595: ;;
13596: esac
13597: done
13598: ;;
13599: esac
13600:
13601: exp_sym_flag='-bexport'
13602: no_entry_flag='-bnoentry'
13603: fi
13604:
13605: # When large executables or shared objects are built, AIX ld can
13606: # have problems creating the table of contents. If linking a library
13607: # or program results in "error TOC overflow" add -mminimal-toc to
13608: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13609: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13610:
13611: archive_cmds_CXX=''
13612: hardcode_direct_CXX=yes
13613: hardcode_direct_absolute_CXX=yes
13614: hardcode_libdir_separator_CXX=':'
13615: link_all_deplibs_CXX=yes
13616: file_list_spec_CXX='${wl}-f,'
13617:
13618: if test "$GXX" = yes; then
13619: case $host_os in aix4.[012]|aix4.[012].*)
13620: # We only want to do this on AIX 4.2 and lower, the check
13621: # below for broken collect2 doesn't work under 4.3+
13622: collect2name=`${CC} -print-prog-name=collect2`
13623: if test -f "$collect2name" &&
13624: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13625: then
13626: # We have reworked collect2
13627: :
13628: else
13629: # We have old collect2
13630: hardcode_direct_CXX=unsupported
13631: # It fails to find uninstalled libraries when the uninstalled
13632: # path is not listed in the libpath. Setting hardcode_minus_L
13633: # to unsupported forces relinking
13634: hardcode_minus_L_CXX=yes
13635: hardcode_libdir_flag_spec_CXX='-L$libdir'
13636: hardcode_libdir_separator_CXX=
13637: fi
13638: esac
13639: shared_flag='-shared'
13640: if test "$aix_use_runtimelinking" = yes; then
13641: shared_flag="$shared_flag "'${wl}-G'
13642: fi
13643: else
13644: # not using gcc
13645: if test "$host_cpu" = ia64; then
13646: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13647: # chokes on -Wl,-G. The following line is correct:
13648: shared_flag='-G'
13649: else
13650: if test "$aix_use_runtimelinking" = yes; then
13651: shared_flag='${wl}-G'
13652: else
13653: shared_flag='${wl}-bM:SRE'
13654: fi
13655: fi
13656: fi
13657:
13658: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13659: # It seems that -bexpall does not export symbols beginning with
13660: # underscore (_), so it is better to generate a list of symbols to
13661: # export.
13662: always_export_symbols_CXX=yes
13663: if test "$aix_use_runtimelinking" = yes; then
13664: # Warning - without using the other runtime loading flags (-brtl),
13665: # -berok will link without error, but may produce a broken library.
13666: allow_undefined_flag_CXX='-berok'
13667: # Determine the default libpath from the value encoded in an empty
13668: # executable.
13669: if test "${lt_cv_aix_libpath+set}" = set; then
13670: aix_libpath=$lt_cv_aix_libpath
13671: else
1.150 moko 13672: if ${lt_cv_aix_libpath__CXX+:} false; then :
13673: $as_echo_n "(cached) " >&6
1.128 moko 13674: else
1.150 moko 13675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13676: /* end confdefs.h. */
13677:
13678: int
13679: main ()
13680: {
13681:
13682: ;
13683: return 0;
13684: }
13685: _ACEOF
1.150 moko 13686: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13687:
13688: lt_aix_libpath_sed='
13689: /Import File Strings/,/^$/ {
13690: /^0/ {
13691: s/^0 *\([^ ]*\) *$/\1/
13692: p
13693: }
13694: }'
13695: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13696: # Check for a 64-bit object if we didn't find anything.
13697: if test -z "$lt_cv_aix_libpath__CXX"; then
13698: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13699: fi
13700: fi
1.150 moko 13701: rm -f core conftest.err conftest.$ac_objext \
13702: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13703: if test -z "$lt_cv_aix_libpath__CXX"; then
13704: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13705: fi
13706:
13707: fi
13708:
13709: aix_libpath=$lt_cv_aix_libpath__CXX
13710: fi
13711:
13712: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13713:
13714: 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"
13715: else
13716: if test "$host_cpu" = ia64; then
13717: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13718: allow_undefined_flag_CXX="-z nodefs"
13719: 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"
13720: else
13721: # Determine the default libpath from the value encoded in an
13722: # empty executable.
13723: if test "${lt_cv_aix_libpath+set}" = set; then
13724: aix_libpath=$lt_cv_aix_libpath
13725: else
1.150 moko 13726: if ${lt_cv_aix_libpath__CXX+:} false; then :
13727: $as_echo_n "(cached) " >&6
1.128 moko 13728: else
1.150 moko 13729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13730: /* end confdefs.h. */
13731:
13732: int
13733: main ()
13734: {
13735:
13736: ;
13737: return 0;
13738: }
13739: _ACEOF
1.150 moko 13740: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13741:
13742: lt_aix_libpath_sed='
13743: /Import File Strings/,/^$/ {
13744: /^0/ {
13745: s/^0 *\([^ ]*\) *$/\1/
13746: p
13747: }
13748: }'
13749: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13750: # Check for a 64-bit object if we didn't find anything.
13751: if test -z "$lt_cv_aix_libpath__CXX"; then
13752: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13753: fi
13754: fi
1.150 moko 13755: rm -f core conftest.err conftest.$ac_objext \
13756: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13757: if test -z "$lt_cv_aix_libpath__CXX"; then
13758: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13759: fi
13760:
13761: fi
13762:
13763: aix_libpath=$lt_cv_aix_libpath__CXX
13764: fi
13765:
13766: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13767: # Warning - without using the other run time loading flags,
13768: # -berok will link without error, but may produce a broken library.
13769: no_undefined_flag_CXX=' ${wl}-bernotok'
13770: allow_undefined_flag_CXX=' ${wl}-berok'
13771: if test "$with_gnu_ld" = yes; then
13772: # We only use this code for GNU lds that support --whole-archive.
13773: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13774: else
13775: # Exported symbols can be pulled into shared objects from archives
13776: whole_archive_flag_spec_CXX='$convenience'
13777: fi
13778: archive_cmds_need_lc_CXX=yes
13779: # This is similar to how AIX traditionally builds its shared
13780: # libraries.
13781: 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'
13782: fi
13783: fi
13784: ;;
13785:
13786: beos*)
13787: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13788: allow_undefined_flag_CXX=unsupported
13789: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13790: # support --undefined. This deserves some investigation. FIXME
13791: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13792: else
13793: ld_shlibs_CXX=no
13794: fi
13795: ;;
13796:
13797: chorus*)
13798: case $cc_basename in
13799: *)
13800: # FIXME: insert proper C++ library support
13801: ld_shlibs_CXX=no
13802: ;;
13803: esac
13804: ;;
13805:
13806: cygwin* | mingw* | pw32* | cegcc*)
13807: case $GXX,$cc_basename in
13808: ,cl* | no,cl*)
13809: # Native MSVC
13810: # hardcode_libdir_flag_spec is actually meaningless, as there is
13811: # no search path for DLLs.
13812: hardcode_libdir_flag_spec_CXX=' '
13813: allow_undefined_flag_CXX=unsupported
13814: always_export_symbols_CXX=yes
13815: file_list_spec_CXX='@'
13816: # Tell ltmain to make .lib files, not .a files.
13817: libext=lib
13818: # Tell ltmain to make .dll files, not .so files.
13819: shrext_cmds=".dll"
13820: # FIXME: Setting linknames here is a bad hack.
13821: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13822: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13823: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13824: else
13825: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13826: fi~
13827: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13828: linknames='
13829: # The linker will not automatically build a static lib if we build a DLL.
13830: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13831: enable_shared_with_static_runtimes_CXX=yes
13832: # Don't use ranlib
13833: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13834: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13835: lt_tool_outputfile="@TOOL_OUTPUT@"~
13836: case $lt_outputfile in
13837: *.exe|*.EXE) ;;
13838: *)
13839: lt_outputfile="$lt_outputfile.exe"
13840: lt_tool_outputfile="$lt_tool_outputfile.exe"
13841: ;;
13842: esac~
13843: func_to_tool_file "$lt_outputfile"~
13844: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13845: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13846: $RM "$lt_outputfile.manifest";
13847: fi'
13848: ;;
13849: *)
13850: # g++
13851: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13852: # as there is no search path for DLLs.
13853: hardcode_libdir_flag_spec_CXX='-L$libdir'
13854: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13855: allow_undefined_flag_CXX=unsupported
13856: always_export_symbols_CXX=no
13857: enable_shared_with_static_runtimes_CXX=yes
13858:
13859: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13860: 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'
13861: # If the export-symbols file already is a .def file (1st line
13862: # is EXPORTS), use it as is; otherwise, prepend...
13863: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13864: cp $export_symbols $output_objdir/$soname.def;
13865: else
13866: echo EXPORTS > $output_objdir/$soname.def;
13867: cat $export_symbols >> $output_objdir/$soname.def;
13868: fi~
13869: $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'
13870: else
13871: ld_shlibs_CXX=no
13872: fi
13873: ;;
13874: esac
13875: ;;
13876: darwin* | rhapsody*)
13877:
13878:
13879: archive_cmds_need_lc_CXX=no
13880: hardcode_direct_CXX=no
13881: hardcode_automatic_CXX=yes
13882: hardcode_shlibpath_var_CXX=unsupported
13883: if test "$lt_cv_ld_force_load" = "yes"; then
13884: 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\"`'
13885:
13886: else
13887: whole_archive_flag_spec_CXX=''
13888: fi
13889: link_all_deplibs_CXX=yes
13890: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13891: case $cc_basename in
13892: ifort*) _lt_dar_can_shared=yes ;;
13893: *) _lt_dar_can_shared=$GCC ;;
13894: esac
13895: if test "$_lt_dar_can_shared" = "yes"; then
13896: output_verbose_link_cmd=func_echo_all
13897: 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}"
13898: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13899: 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}"
13900: 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}"
13901: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13902: 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}"
13903: 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}"
13904: fi
13905:
13906: else
13907: ld_shlibs_CXX=no
13908: fi
13909:
13910: ;;
13911:
13912: dgux*)
13913: case $cc_basename in
13914: ec++*)
13915: # FIXME: insert proper C++ library support
13916: ld_shlibs_CXX=no
13917: ;;
13918: ghcx*)
13919: # Green Hills C++ Compiler
13920: # FIXME: insert proper C++ library support
13921: ld_shlibs_CXX=no
13922: ;;
13923: *)
13924: # FIXME: insert proper C++ library support
13925: ld_shlibs_CXX=no
13926: ;;
13927: esac
13928: ;;
13929:
13930: freebsd2.*)
13931: # C++ shared libraries reported to be fairly broken before
13932: # switch to ELF
13933: ld_shlibs_CXX=no
13934: ;;
13935:
13936: freebsd-elf*)
13937: archive_cmds_need_lc_CXX=no
13938: ;;
13939:
13940: freebsd* | dragonfly*)
13941: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13942: # conventions
13943: ld_shlibs_CXX=yes
13944: ;;
13945:
13946: gnu*)
13947: ;;
13948:
13949: haiku*)
13950: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13951: link_all_deplibs_CXX=yes
13952: ;;
13953:
13954: hpux9*)
13955: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13956: hardcode_libdir_separator_CXX=:
13957: export_dynamic_flag_spec_CXX='${wl}-E'
13958: hardcode_direct_CXX=yes
13959: hardcode_minus_L_CXX=yes # Not in the search PATH,
13960: # but as the default
13961: # location of the library.
13962:
13963: case $cc_basename in
13964: CC*)
13965: # FIXME: insert proper C++ library support
13966: ld_shlibs_CXX=no
13967: ;;
13968: aCC*)
13969: 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'
13970: # Commands to make compiler produce verbose output that lists
13971: # what "hidden" libraries, object files and flags are used when
13972: # linking a shared library.
13973: #
13974: # There doesn't appear to be a way to prevent this compiler from
13975: # explicitly linking system object files so we need to strip them
13976: # from the output so that they don't get included in the library
13977: # dependencies.
13978: 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"'
13979: ;;
13980: *)
13981: if test "$GXX" = yes; then
13982: 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'
13983: else
13984: # FIXME: insert proper C++ library support
13985: ld_shlibs_CXX=no
13986: fi
13987: ;;
13988: esac
13989: ;;
13990:
13991: hpux10*|hpux11*)
13992: if test $with_gnu_ld = no; then
13993: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13994: hardcode_libdir_separator_CXX=:
13995:
13996: case $host_cpu in
13997: hppa*64*|ia64*)
13998: ;;
13999: *)
14000: export_dynamic_flag_spec_CXX='${wl}-E'
14001: ;;
14002: esac
14003: fi
14004: case $host_cpu in
14005: hppa*64*|ia64*)
14006: hardcode_direct_CXX=no
14007: hardcode_shlibpath_var_CXX=no
14008: ;;
14009: *)
14010: hardcode_direct_CXX=yes
14011: hardcode_direct_absolute_CXX=yes
14012: hardcode_minus_L_CXX=yes # Not in the search PATH,
14013: # but as the default
14014: # location of the library.
14015: ;;
14016: esac
14017:
14018: case $cc_basename in
14019: CC*)
14020: # FIXME: insert proper C++ library support
14021: ld_shlibs_CXX=no
14022: ;;
14023: aCC*)
14024: case $host_cpu in
14025: hppa*64*)
14026: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14027: ;;
14028: ia64*)
14029: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14030: ;;
14031: *)
14032: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14033: ;;
14034: esac
14035: # Commands to make compiler produce verbose output that lists
14036: # what "hidden" libraries, object files and flags are used when
14037: # linking a shared library.
14038: #
14039: # There doesn't appear to be a way to prevent this compiler from
14040: # explicitly linking system object files so we need to strip them
14041: # from the output so that they don't get included in the library
14042: # dependencies.
14043: 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"'
14044: ;;
14045: *)
14046: if test "$GXX" = yes; then
14047: if test $with_gnu_ld = no; then
14048: case $host_cpu in
14049: hppa*64*)
14050: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14051: ;;
14052: ia64*)
14053: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14054: ;;
14055: *)
14056: 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'
14057: ;;
14058: esac
14059: fi
14060: else
14061: # FIXME: insert proper C++ library support
14062: ld_shlibs_CXX=no
14063: fi
14064: ;;
14065: esac
14066: ;;
14067:
14068: interix[3-9]*)
14069: hardcode_direct_CXX=no
14070: hardcode_shlibpath_var_CXX=no
14071: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14072: export_dynamic_flag_spec_CXX='${wl}-E'
14073: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14074: # Instead, shared libraries are loaded at an image base (0x10000000 by
14075: # default) and relocated if they conflict, which is a slow very memory
14076: # consuming and fragmenting process. To avoid this, we pick a random,
14077: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14078: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14079: 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'
14080: 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'
14081: ;;
14082: irix5* | irix6*)
14083: case $cc_basename in
14084: CC*)
14085: # SGI C++
14086: 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'
14087:
14088: # Archives containing C++ object files must be created using
14089: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14090: # necessary to make sure instantiated templates are included
14091: # in the archive.
14092: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14093: ;;
14094: *)
14095: if test "$GXX" = yes; then
14096: if test "$with_gnu_ld" = no; then
14097: 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'
14098: else
14099: 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'
14100: fi
14101: fi
14102: link_all_deplibs_CXX=yes
14103: ;;
14104: esac
14105: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14106: hardcode_libdir_separator_CXX=:
14107: inherit_rpath_CXX=yes
14108: ;;
14109:
14110: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14111: case $cc_basename in
14112: KCC*)
14113: # Kuck and Associates, Inc. (KAI) C++ Compiler
14114:
14115: # KCC will only create a shared library if the output file
14116: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14117: # to its proper name (with version) after linking.
14118: 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'
14119: 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'
14120: # Commands to make compiler produce verbose output that lists
14121: # what "hidden" libraries, object files and flags are used when
14122: # linking a shared library.
14123: #
14124: # There doesn't appear to be a way to prevent this compiler from
14125: # explicitly linking system object files so we need to strip them
14126: # from the output so that they don't get included in the library
14127: # dependencies.
14128: 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"'
14129:
14130: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14131: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14132:
14133: # Archives containing C++ object files must be created using
14134: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14135: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14136: ;;
14137: icpc* | ecpc* )
14138: # Intel C++
14139: with_gnu_ld=yes
14140: # version 8.0 and above of icpc choke on multiply defined symbols
14141: # if we add $predep_objects and $postdep_objects, however 7.1 and
14142: # earlier do not add the objects themselves.
14143: case `$CC -V 2>&1` in
14144: *"Version 7."*)
14145: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14146: 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'
14147: ;;
14148: *) # Version 8.0 or newer
14149: tmp_idyn=
14150: case $host_cpu in
14151: ia64*) tmp_idyn=' -i_dynamic';;
14152: esac
14153: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154: 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'
14155: ;;
14156: esac
14157: archive_cmds_need_lc_CXX=no
14158: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14159: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14160: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14161: ;;
14162: pgCC* | pgcpp*)
14163: # Portland Group C++ compiler
14164: case `$CC -V` in
14165: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14166: prelink_cmds_CXX='tpldir=Template.dir~
14167: rm -rf $tpldir~
14168: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14169: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14170: old_archive_cmds_CXX='tpldir=Template.dir~
14171: rm -rf $tpldir~
14172: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14173: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14174: $RANLIB $oldlib'
14175: archive_cmds_CXX='tpldir=Template.dir~
14176: rm -rf $tpldir~
14177: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14178: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14179: archive_expsym_cmds_CXX='tpldir=Template.dir~
14180: rm -rf $tpldir~
14181: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14182: $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'
14183: ;;
14184: *) # Version 6 and above use weak symbols
14185: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14186: 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'
14187: ;;
14188: esac
14189:
14190: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14191: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14192: 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'
14193: ;;
14194: cxx*)
14195: # Compaq C++
14196: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14197: 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'
14198:
14199: runpath_var=LD_RUN_PATH
14200: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14201: hardcode_libdir_separator_CXX=:
14202:
14203: # Commands to make compiler produce verbose output that lists
14204: # what "hidden" libraries, object files and flags are used when
14205: # linking a shared library.
14206: #
14207: # There doesn't appear to be a way to prevent this compiler from
14208: # explicitly linking system object files so we need to strip them
14209: # from the output so that they don't get included in the library
14210: # dependencies.
14211: 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'
14212: ;;
14213: xl* | mpixl* | bgxl*)
14214: # IBM XL 8.0 on PPC, with GNU ld
14215: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14216: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14217: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218: if test "x$supports_anon_versioning" = xyes; then
14219: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14220: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14221: echo "local: *; };" >> $output_objdir/$libname.ver~
14222: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14223: fi
14224: ;;
14225: *)
14226: case `$CC -V 2>&1 | sed 5q` in
14227: *Sun\ C*)
14228: # Sun C++ 5.9
14229: no_undefined_flag_CXX=' -zdefs'
14230: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14231: 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'
14232: hardcode_libdir_flag_spec_CXX='-R$libdir'
14233: 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'
14234: compiler_needs_object_CXX=yes
14235:
14236: # Not sure whether something based on
14237: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14238: # would be better.
14239: output_verbose_link_cmd='func_echo_all'
14240:
14241: # Archives containing C++ object files must be created using
14242: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14243: # necessary to make sure instantiated templates are included
14244: # in the archive.
14245: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14246: ;;
14247: esac
14248: ;;
14249: esac
14250: ;;
14251:
14252: lynxos*)
14253: # FIXME: insert proper C++ library support
14254: ld_shlibs_CXX=no
14255: ;;
14256:
14257: m88k*)
14258: # FIXME: insert proper C++ library support
14259: ld_shlibs_CXX=no
14260: ;;
14261:
14262: mvs*)
14263: case $cc_basename in
14264: cxx*)
14265: # FIXME: insert proper C++ library support
14266: ld_shlibs_CXX=no
14267: ;;
14268: *)
14269: # FIXME: insert proper C++ library support
14270: ld_shlibs_CXX=no
14271: ;;
14272: esac
14273: ;;
14274:
14275: netbsd*)
14276: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14277: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14278: wlarc=
14279: hardcode_libdir_flag_spec_CXX='-R$libdir'
14280: hardcode_direct_CXX=yes
14281: hardcode_shlibpath_var_CXX=no
14282: fi
14283: # Workaround some broken pre-1.5 toolchains
14284: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14285: ;;
14286:
14287: *nto* | *qnx*)
14288: ld_shlibs_CXX=yes
14289: ;;
14290:
14291: openbsd2*)
14292: # C++ shared libraries are fairly broken
14293: ld_shlibs_CXX=no
14294: ;;
14295:
14296: openbsd*)
14297: if test -f /usr/libexec/ld.so; then
14298: hardcode_direct_CXX=yes
14299: hardcode_shlibpath_var_CXX=no
14300: hardcode_direct_absolute_CXX=yes
14301: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14302: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14303: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14304: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14305: export_dynamic_flag_spec_CXX='${wl}-E'
14306: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14307: fi
14308: output_verbose_link_cmd=func_echo_all
14309: else
14310: ld_shlibs_CXX=no
14311: fi
14312: ;;
14313:
14314: osf3* | osf4* | osf5*)
14315: case $cc_basename in
14316: KCC*)
14317: # Kuck and Associates, Inc. (KAI) C++ Compiler
14318:
14319: # KCC will only create a shared library if the output file
14320: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14321: # to its proper name (with version) after linking.
14322: 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'
14323:
14324: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14325: hardcode_libdir_separator_CXX=:
14326:
14327: # Archives containing C++ object files must be created using
14328: # the KAI C++ compiler.
14329: case $host in
14330: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14331: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14332: esac
14333: ;;
14334: RCC*)
14335: # Rational C++ 2.4.1
14336: # FIXME: insert proper C++ library support
14337: ld_shlibs_CXX=no
14338: ;;
14339: cxx*)
14340: case $host in
14341: osf3*)
14342: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14343: 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'
14344: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14345: ;;
14346: *)
14347: allow_undefined_flag_CXX=' -expect_unresolved \*'
14348: 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'
14349: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14350: echo "-hidden">> $lib.exp~
14351: $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~
14352: $RM $lib.exp'
14353: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14354: ;;
14355: esac
14356:
14357: hardcode_libdir_separator_CXX=:
14358:
14359: # Commands to make compiler produce verbose output that lists
14360: # what "hidden" libraries, object files and flags are used when
14361: # linking a shared library.
14362: #
14363: # There doesn't appear to be a way to prevent this compiler from
14364: # explicitly linking system object files so we need to strip them
14365: # from the output so that they don't get included in the library
14366: # dependencies.
14367: 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"'
14368: ;;
14369: *)
14370: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14371: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14372: case $host in
14373: osf3*)
14374: 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'
14375: ;;
14376: *)
14377: 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'
14378: ;;
14379: esac
14380:
14381: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14382: hardcode_libdir_separator_CXX=:
14383:
14384: # Commands to make compiler produce verbose output that lists
14385: # what "hidden" libraries, object files and flags are used when
14386: # linking a shared library.
14387: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14388:
14389: else
14390: # FIXME: insert proper C++ library support
14391: ld_shlibs_CXX=no
14392: fi
14393: ;;
14394: esac
14395: ;;
14396:
14397: psos*)
14398: # FIXME: insert proper C++ library support
14399: ld_shlibs_CXX=no
14400: ;;
14401:
14402: sunos4*)
14403: case $cc_basename in
14404: CC*)
14405: # Sun C++ 4.x
14406: # FIXME: insert proper C++ library support
14407: ld_shlibs_CXX=no
14408: ;;
14409: lcc*)
14410: # Lucid
14411: # FIXME: insert proper C++ library support
14412: ld_shlibs_CXX=no
14413: ;;
14414: *)
14415: # FIXME: insert proper C++ library support
14416: ld_shlibs_CXX=no
14417: ;;
14418: esac
14419: ;;
14420:
14421: solaris*)
14422: case $cc_basename in
14423: CC* | sunCC*)
14424: # Sun C++ 4.2, 5.x and Centerline C++
14425: archive_cmds_need_lc_CXX=yes
14426: no_undefined_flag_CXX=' -zdefs'
14427: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14428: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14429: $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'
14430:
14431: hardcode_libdir_flag_spec_CXX='-R$libdir'
14432: hardcode_shlibpath_var_CXX=no
14433: case $host_os in
14434: solaris2.[0-5] | solaris2.[0-5].*) ;;
14435: *)
14436: # The compiler driver will combine and reorder linker options,
14437: # but understands `-z linker_flag'.
14438: # Supported since Solaris 2.6 (maybe 2.5.1?)
14439: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14440: ;;
14441: esac
14442: link_all_deplibs_CXX=yes
14443:
14444: output_verbose_link_cmd='func_echo_all'
14445:
14446: # Archives containing C++ object files must be created using
14447: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14448: # necessary to make sure instantiated templates are included
14449: # in the archive.
14450: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14451: ;;
14452: gcx*)
14453: # Green Hills C++ Compiler
14454: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14455:
14456: # The C++ compiler must be used to create the archive.
14457: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14458: ;;
14459: *)
14460: # GNU C++ compiler with Solaris linker
14461: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14462: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14463: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14464: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14465: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14466: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14467:
14468: # Commands to make compiler produce verbose output that lists
14469: # what "hidden" libraries, object files and flags are used when
14470: # linking a shared library.
14471: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14472: else
14473: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14474: # platform.
14475: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14476: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14477: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14478:
14479: # Commands to make compiler produce verbose output that lists
14480: # what "hidden" libraries, object files and flags are used when
14481: # linking a shared library.
14482: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14483: fi
14484:
14485: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14486: case $host_os in
14487: solaris2.[0-5] | solaris2.[0-5].*) ;;
14488: *)
14489: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14490: ;;
14491: esac
14492: fi
14493: ;;
14494: esac
14495: ;;
14496:
14497: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14498: no_undefined_flag_CXX='${wl}-z,text'
14499: archive_cmds_need_lc_CXX=no
14500: hardcode_shlibpath_var_CXX=no
14501: runpath_var='LD_RUN_PATH'
14502:
14503: case $cc_basename in
14504: CC*)
14505: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14506: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507: ;;
14508: *)
14509: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511: ;;
14512: esac
14513: ;;
14514:
14515: sysv5* | sco3.2v5* | sco5v6*)
14516: # Note: We can NOT use -z defs as we might desire, because we do not
14517: # link with -lc, and that would cause any symbols used from libc to
14518: # always be unresolved, which means just about no library would
14519: # ever link correctly. If we're not using GNU ld we use -z text
14520: # though, which does catch some bad symbols but isn't as heavy-handed
14521: # as -z defs.
14522: no_undefined_flag_CXX='${wl}-z,text'
14523: allow_undefined_flag_CXX='${wl}-z,nodefs'
14524: archive_cmds_need_lc_CXX=no
14525: hardcode_shlibpath_var_CXX=no
14526: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14527: hardcode_libdir_separator_CXX=':'
14528: link_all_deplibs_CXX=yes
14529: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14530: runpath_var='LD_RUN_PATH'
14531:
14532: case $cc_basename in
14533: CC*)
14534: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14536: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14537: '"$old_archive_cmds_CXX"
14538: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14539: '"$reload_cmds_CXX"
14540: ;;
14541: *)
14542: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14544: ;;
14545: esac
14546: ;;
14547:
14548: tandem*)
14549: case $cc_basename in
14550: NCC*)
14551: # NonStop-UX NCC 3.20
14552: # FIXME: insert proper C++ library support
14553: ld_shlibs_CXX=no
14554: ;;
14555: *)
14556: # FIXME: insert proper C++ library support
14557: ld_shlibs_CXX=no
14558: ;;
14559: esac
14560: ;;
14561:
14562: vxworks*)
14563: # FIXME: insert proper C++ library support
14564: ld_shlibs_CXX=no
14565: ;;
14566:
14567: *)
14568: # FIXME: insert proper C++ library support
14569: ld_shlibs_CXX=no
14570: ;;
14571: esac
14572:
1.150 moko 14573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14574: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14575: test "$ld_shlibs_CXX" = no && can_build_shared=no
14576:
14577: GCC_CXX="$GXX"
14578: LD_CXX="$LD"
14579:
14580: ## CAVEAT EMPTOR:
14581: ## There is no encapsulation within the following macros, do not change
14582: ## the running order or otherwise move them around unless you know exactly
14583: ## what you are doing...
14584: # Dependencies to place before and after the object being linked:
14585: predep_objects_CXX=
14586: postdep_objects_CXX=
14587: predeps_CXX=
14588: postdeps_CXX=
14589: compiler_lib_search_path_CXX=
14590:
14591: cat > conftest.$ac_ext <<_LT_EOF
14592: class Foo
14593: {
14594: public:
14595: Foo (void) { a = 0; }
14596: private:
14597: int a;
14598: };
14599: _LT_EOF
14600:
14601:
14602: _lt_libdeps_save_CFLAGS=$CFLAGS
14603: case "$CC $CFLAGS " in #(
14604: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14605: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14606: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14607: esac
14608:
1.150 moko 14609: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14610: (eval $ac_compile) 2>&5
14611: ac_status=$?
1.150 moko 14612: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14613: test $ac_status = 0; }; then
1.128 moko 14614: # Parse the compiler output and extract the necessary
14615: # objects, libraries and library flags.
14616:
14617: # Sentinel used to keep track of whether or not we are before
14618: # the conftest object file.
14619: pre_test_object_deps_done=no
14620:
14621: for p in `eval "$output_verbose_link_cmd"`; do
14622: case ${prev}${p} in
14623:
14624: -L* | -R* | -l*)
14625: # Some compilers place space between "-{L,R}" and the path.
14626: # Remove the space.
14627: if test $p = "-L" ||
14628: test $p = "-R"; then
14629: prev=$p
14630: continue
14631: fi
14632:
14633: # Expand the sysroot to ease extracting the directories later.
14634: if test -z "$prev"; then
14635: case $p in
14636: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14637: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14638: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14639: esac
14640: fi
14641: case $p in
14642: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14643: esac
14644: if test "$pre_test_object_deps_done" = no; then
14645: case ${prev} in
14646: -L | -R)
14647: # Internal compiler library paths should come after those
14648: # provided the user. The postdeps already come after the
14649: # user supplied libs so there is no need to process them.
14650: if test -z "$compiler_lib_search_path_CXX"; then
14651: compiler_lib_search_path_CXX="${prev}${p}"
14652: else
14653: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14654: fi
14655: ;;
14656: # The "-l" case would never come before the object being
14657: # linked, so don't bother handling this case.
14658: esac
14659: else
14660: if test -z "$postdeps_CXX"; then
14661: postdeps_CXX="${prev}${p}"
14662: else
14663: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14664: fi
14665: fi
14666: prev=
14667: ;;
14668:
14669: *.lto.$objext) ;; # Ignore GCC LTO objects
14670: *.$objext)
14671: # This assumes that the test object file only shows up
14672: # once in the compiler output.
14673: if test "$p" = "conftest.$objext"; then
14674: pre_test_object_deps_done=yes
14675: continue
14676: fi
14677:
14678: if test "$pre_test_object_deps_done" = no; then
14679: if test -z "$predep_objects_CXX"; then
14680: predep_objects_CXX="$p"
14681: else
14682: predep_objects_CXX="$predep_objects_CXX $p"
14683: fi
14684: else
14685: if test -z "$postdep_objects_CXX"; then
14686: postdep_objects_CXX="$p"
14687: else
14688: postdep_objects_CXX="$postdep_objects_CXX $p"
14689: fi
14690: fi
14691: ;;
14692:
14693: *) ;; # Ignore the rest.
14694:
14695: esac
14696: done
14697:
14698: # Clean up.
14699: rm -f a.out a.exe
14700: else
14701: echo "libtool.m4: error: problem compiling CXX test program"
14702: fi
14703:
14704: $RM -f confest.$objext
14705: CFLAGS=$_lt_libdeps_save_CFLAGS
14706:
14707: # PORTME: override above test on systems where it is broken
14708: case $host_os in
14709: interix[3-9]*)
14710: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14711: # hack all around it, let's just trust "g++" to DTRT.
14712: predep_objects_CXX=
14713: postdep_objects_CXX=
14714: postdeps_CXX=
14715: ;;
14716:
14717: linux*)
14718: case `$CC -V 2>&1 | sed 5q` in
14719: *Sun\ C*)
14720: # Sun C++ 5.9
14721:
14722: # The more standards-conforming stlport4 library is
14723: # incompatible with the Cstd library. Avoid specifying
14724: # it if it's in CXXFLAGS. Ignore libCrun as
14725: # -library=stlport4 depends on it.
14726: case " $CXX $CXXFLAGS " in
14727: *" -library=stlport4 "*)
14728: solaris_use_stlport4=yes
14729: ;;
14730: esac
14731:
14732: if test "$solaris_use_stlport4" != yes; then
14733: postdeps_CXX='-library=Cstd -library=Crun'
14734: fi
14735: ;;
14736: esac
14737: ;;
14738:
14739: solaris*)
14740: case $cc_basename in
14741: CC* | sunCC*)
14742: # The more standards-conforming stlport4 library is
14743: # incompatible with the Cstd library. Avoid specifying
14744: # it if it's in CXXFLAGS. Ignore libCrun as
14745: # -library=stlport4 depends on it.
14746: case " $CXX $CXXFLAGS " in
14747: *" -library=stlport4 "*)
14748: solaris_use_stlport4=yes
14749: ;;
14750: esac
14751:
14752: # Adding this requires a known-good setup of shared libraries for
14753: # Sun compiler versions before 5.6, else PIC objects from an old
14754: # archive will be linked into the output, leading to subtle bugs.
14755: if test "$solaris_use_stlport4" != yes; then
14756: postdeps_CXX='-library=Cstd -library=Crun'
14757: fi
14758: ;;
14759: esac
14760: ;;
14761: esac
14762:
14763:
14764: case " $postdeps_CXX " in
14765: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14766: esac
14767: compiler_lib_search_dirs_CXX=
14768: if test -n "${compiler_lib_search_path_CXX}"; then
14769: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14770: fi
14771:
14772:
14773:
14774:
14775:
14776:
14777:
14778:
14779:
14780:
14781:
14782:
14783:
14784:
14785:
14786:
14787:
14788:
14789:
14790:
14791:
14792:
14793:
14794:
14795:
14796:
14797:
14798:
14799:
14800:
14801:
14802: lt_prog_compiler_wl_CXX=
14803: lt_prog_compiler_pic_CXX=
14804: lt_prog_compiler_static_CXX=
14805:
14806:
14807: # C++ specific cases for pic, static, wl, etc.
14808: if test "$GXX" = yes; then
14809: lt_prog_compiler_wl_CXX='-Wl,'
14810: lt_prog_compiler_static_CXX='-static'
14811:
14812: case $host_os in
14813: aix*)
14814: # All AIX code is PIC.
14815: if test "$host_cpu" = ia64; then
14816: # AIX 5 now supports IA64 processor
14817: lt_prog_compiler_static_CXX='-Bstatic'
14818: fi
14819: ;;
14820:
14821: amigaos*)
14822: case $host_cpu in
14823: powerpc)
14824: # see comment about AmigaOS4 .so support
14825: lt_prog_compiler_pic_CXX='-fPIC'
14826: ;;
14827: m68k)
14828: # FIXME: we need at least 68020 code to build shared libraries, but
14829: # adding the `-m68020' flag to GCC prevents building anything better,
14830: # like `-m68040'.
14831: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14832: ;;
14833: esac
14834: ;;
14835:
14836: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14837: # PIC is the default for these OSes.
14838: ;;
14839: mingw* | cygwin* | os2* | pw32* | cegcc*)
14840: # This hack is so that the source file can tell whether it is being
14841: # built for inclusion in a dll (and should export symbols for example).
14842: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14843: # (--disable-auto-import) libraries
14844: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14845: ;;
14846: darwin* | rhapsody*)
14847: # PIC is the default on this platform
14848: # Common symbols not allowed in MH_DYLIB files
14849: lt_prog_compiler_pic_CXX='-fno-common'
14850: ;;
14851: *djgpp*)
14852: # DJGPP does not support shared libraries at all
14853: lt_prog_compiler_pic_CXX=
14854: ;;
14855: haiku*)
14856: # PIC is the default for Haiku.
14857: # The "-static" flag exists, but is broken.
14858: lt_prog_compiler_static_CXX=
14859: ;;
14860: interix[3-9]*)
14861: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14862: # Instead, we relocate shared libraries at runtime.
14863: ;;
14864: sysv4*MP*)
14865: if test -d /usr/nec; then
14866: lt_prog_compiler_pic_CXX=-Kconform_pic
14867: fi
14868: ;;
14869: hpux*)
14870: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14871: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14872: # sets the default TLS model and affects inlining.
14873: case $host_cpu in
14874: hppa*64*)
14875: ;;
14876: *)
14877: lt_prog_compiler_pic_CXX='-fPIC'
14878: ;;
14879: esac
14880: ;;
14881: *qnx* | *nto*)
14882: # QNX uses GNU C++, but need to define -shared option too, otherwise
14883: # it will coredump.
14884: lt_prog_compiler_pic_CXX='-fPIC -shared'
14885: ;;
14886: *)
14887: lt_prog_compiler_pic_CXX='-fPIC'
14888: ;;
14889: esac
14890: else
14891: case $host_os in
14892: aix[4-9]*)
14893: # All AIX code is PIC.
14894: if test "$host_cpu" = ia64; then
14895: # AIX 5 now supports IA64 processor
14896: lt_prog_compiler_static_CXX='-Bstatic'
14897: else
14898: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14899: fi
14900: ;;
14901: chorus*)
14902: case $cc_basename in
14903: cxch68*)
14904: # Green Hills C++ Compiler
14905: # _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"
14906: ;;
14907: esac
14908: ;;
14909: mingw* | cygwin* | os2* | pw32* | cegcc*)
14910: # This hack is so that the source file can tell whether it is being
14911: # built for inclusion in a dll (and should export symbols for example).
14912: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14913: ;;
14914: dgux*)
14915: case $cc_basename in
14916: ec++*)
14917: lt_prog_compiler_pic_CXX='-KPIC'
14918: ;;
14919: ghcx*)
14920: # Green Hills C++ Compiler
14921: lt_prog_compiler_pic_CXX='-pic'
14922: ;;
14923: *)
14924: ;;
14925: esac
14926: ;;
14927: freebsd* | dragonfly*)
14928: # FreeBSD uses GNU C++
14929: ;;
14930: hpux9* | hpux10* | hpux11*)
14931: case $cc_basename in
14932: CC*)
14933: lt_prog_compiler_wl_CXX='-Wl,'
14934: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14935: if test "$host_cpu" != ia64; then
14936: lt_prog_compiler_pic_CXX='+Z'
14937: fi
14938: ;;
14939: aCC*)
14940: lt_prog_compiler_wl_CXX='-Wl,'
14941: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14942: case $host_cpu in
14943: hppa*64*|ia64*)
14944: # +Z the default
14945: ;;
14946: *)
14947: lt_prog_compiler_pic_CXX='+Z'
14948: ;;
14949: esac
14950: ;;
14951: *)
14952: ;;
14953: esac
14954: ;;
14955: interix*)
14956: # This is c89, which is MS Visual C++ (no shared libs)
14957: # Anyone wants to do a port?
14958: ;;
14959: irix5* | irix6* | nonstopux*)
14960: case $cc_basename in
14961: CC*)
14962: lt_prog_compiler_wl_CXX='-Wl,'
14963: lt_prog_compiler_static_CXX='-non_shared'
14964: # CC pic flag -KPIC is the default.
14965: ;;
14966: *)
14967: ;;
14968: esac
14969: ;;
14970: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14971: case $cc_basename in
14972: KCC*)
14973: # KAI C++ Compiler
14974: lt_prog_compiler_wl_CXX='--backend -Wl,'
14975: lt_prog_compiler_pic_CXX='-fPIC'
14976: ;;
14977: ecpc* )
14978: # old Intel C++ for x86_64 which still supported -KPIC.
14979: lt_prog_compiler_wl_CXX='-Wl,'
14980: lt_prog_compiler_pic_CXX='-KPIC'
14981: lt_prog_compiler_static_CXX='-static'
14982: ;;
14983: icpc* )
14984: # Intel C++, used to be incompatible with GCC.
14985: # ICC 10 doesn't accept -KPIC any more.
14986: lt_prog_compiler_wl_CXX='-Wl,'
14987: lt_prog_compiler_pic_CXX='-fPIC'
14988: lt_prog_compiler_static_CXX='-static'
14989: ;;
14990: pgCC* | pgcpp*)
14991: # Portland Group C++ compiler
14992: lt_prog_compiler_wl_CXX='-Wl,'
14993: lt_prog_compiler_pic_CXX='-fpic'
14994: lt_prog_compiler_static_CXX='-Bstatic'
14995: ;;
14996: cxx*)
14997: # Compaq C++
14998: # Make sure the PIC flag is empty. It appears that all Alpha
14999: # Linux and Compaq Tru64 Unix objects are PIC.
15000: lt_prog_compiler_pic_CXX=
15001: lt_prog_compiler_static_CXX='-non_shared'
15002: ;;
15003: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15004: # IBM XL 8.0, 9.0 on PPC and BlueGene
15005: lt_prog_compiler_wl_CXX='-Wl,'
15006: lt_prog_compiler_pic_CXX='-qpic'
15007: lt_prog_compiler_static_CXX='-qstaticlink'
15008: ;;
15009: *)
15010: case `$CC -V 2>&1 | sed 5q` in
15011: *Sun\ C*)
15012: # Sun C++ 5.9
15013: lt_prog_compiler_pic_CXX='-KPIC'
15014: lt_prog_compiler_static_CXX='-Bstatic'
15015: lt_prog_compiler_wl_CXX='-Qoption ld '
15016: ;;
15017: esac
15018: ;;
15019: esac
15020: ;;
15021: lynxos*)
15022: ;;
15023: m88k*)
15024: ;;
15025: mvs*)
15026: case $cc_basename in
15027: cxx*)
15028: lt_prog_compiler_pic_CXX='-W c,exportall'
15029: ;;
15030: *)
15031: ;;
15032: esac
15033: ;;
15034: netbsd*)
15035: ;;
15036: *qnx* | *nto*)
15037: # QNX uses GNU C++, but need to define -shared option too, otherwise
15038: # it will coredump.
15039: lt_prog_compiler_pic_CXX='-fPIC -shared'
15040: ;;
15041: osf3* | osf4* | osf5*)
15042: case $cc_basename in
15043: KCC*)
15044: lt_prog_compiler_wl_CXX='--backend -Wl,'
15045: ;;
15046: RCC*)
15047: # Rational C++ 2.4.1
15048: lt_prog_compiler_pic_CXX='-pic'
15049: ;;
15050: cxx*)
15051: # Digital/Compaq C++
15052: lt_prog_compiler_wl_CXX='-Wl,'
15053: # Make sure the PIC flag is empty. It appears that all Alpha
15054: # Linux and Compaq Tru64 Unix objects are PIC.
15055: lt_prog_compiler_pic_CXX=
15056: lt_prog_compiler_static_CXX='-non_shared'
15057: ;;
15058: *)
15059: ;;
15060: esac
15061: ;;
15062: psos*)
15063: ;;
15064: solaris*)
15065: case $cc_basename in
15066: CC* | sunCC*)
15067: # Sun C++ 4.2, 5.x and Centerline C++
15068: lt_prog_compiler_pic_CXX='-KPIC'
15069: lt_prog_compiler_static_CXX='-Bstatic'
15070: lt_prog_compiler_wl_CXX='-Qoption ld '
15071: ;;
15072: gcx*)
15073: # Green Hills C++ Compiler
15074: lt_prog_compiler_pic_CXX='-PIC'
15075: ;;
15076: *)
15077: ;;
15078: esac
15079: ;;
15080: sunos4*)
15081: case $cc_basename in
15082: CC*)
15083: # Sun C++ 4.x
15084: lt_prog_compiler_pic_CXX='-pic'
15085: lt_prog_compiler_static_CXX='-Bstatic'
15086: ;;
15087: lcc*)
15088: # Lucid
15089: lt_prog_compiler_pic_CXX='-pic'
15090: ;;
15091: *)
15092: ;;
15093: esac
15094: ;;
15095: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15096: case $cc_basename in
15097: CC*)
15098: lt_prog_compiler_wl_CXX='-Wl,'
15099: lt_prog_compiler_pic_CXX='-KPIC'
15100: lt_prog_compiler_static_CXX='-Bstatic'
15101: ;;
15102: esac
15103: ;;
15104: tandem*)
15105: case $cc_basename in
15106: NCC*)
15107: # NonStop-UX NCC 3.20
15108: lt_prog_compiler_pic_CXX='-KPIC'
15109: ;;
15110: *)
15111: ;;
15112: esac
15113: ;;
15114: vxworks*)
15115: ;;
15116: *)
15117: lt_prog_compiler_can_build_shared_CXX=no
15118: ;;
15119: esac
15120: fi
15121:
15122: case $host_os in
15123: # For platforms which do not support PIC, -DPIC is meaningless:
15124: *djgpp*)
15125: lt_prog_compiler_pic_CXX=
15126: ;;
15127: *)
15128: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15129: ;;
15130: esac
15131:
1.150 moko 15132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15133: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15134: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15135: $as_echo_n "(cached) " >&6
1.128 moko 15136: else
15137: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15138: fi
1.150 moko 15139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15140: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 15141: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15142:
15143: #
15144: # Check to make sure the PIC flag actually works.
15145: #
15146: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 15147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15148: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15149: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15150: $as_echo_n "(cached) " >&6
1.128 moko 15151: else
15152: lt_cv_prog_compiler_pic_works_CXX=no
15153: ac_outfile=conftest.$ac_objext
15154: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15155: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15156: # Insert the option either (1) after the last *FLAGS variable, or
15157: # (2) before a word containing "conftest.", or (3) at the end.
15158: # Note that $ac_compile itself does not contain backslashes and begins
15159: # with a dollar sign (not a hyphen), so the echo should work correctly.
15160: # The option is referenced via a variable to avoid confusing sed.
15161: lt_compile=`echo "$ac_compile" | $SED \
15162: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15163: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15164: -e 's:$: $lt_compiler_flag:'`
15165: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15166: (eval "$lt_compile" 2>conftest.err)
15167: ac_status=$?
15168: cat conftest.err >&5
15169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170: if (exit $ac_status) && test -s "$ac_outfile"; then
15171: # The compiler can only warn and ignore the option if not recognized
15172: # So say no if there are warnings other than the usual output.
15173: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15174: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15175: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15176: lt_cv_prog_compiler_pic_works_CXX=yes
15177: fi
15178: fi
15179: $RM conftest*
15180:
15181: fi
1.150 moko 15182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15183: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 15184:
15185: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15186: case $lt_prog_compiler_pic_CXX in
15187: "" | " "*) ;;
15188: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15189: esac
15190: else
15191: lt_prog_compiler_pic_CXX=
15192: lt_prog_compiler_can_build_shared_CXX=no
15193: fi
15194:
15195: fi
15196:
15197:
15198:
15199:
15200:
15201: #
15202: # Check to make sure the static flag actually works.
15203: #
15204: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 15205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15206: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15207: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15208: $as_echo_n "(cached) " >&6
1.128 moko 15209: else
15210: lt_cv_prog_compiler_static_works_CXX=no
15211: save_LDFLAGS="$LDFLAGS"
15212: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15213: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15214: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15215: # The linker can only warn and ignore the option if not recognized
15216: # So say no if there are warnings
15217: if test -s conftest.err; then
15218: # Append any errors to the config.log.
15219: cat conftest.err 1>&5
15220: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15221: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15222: if diff conftest.exp conftest.er2 >/dev/null; then
15223: lt_cv_prog_compiler_static_works_CXX=yes
15224: fi
15225: else
15226: lt_cv_prog_compiler_static_works_CXX=yes
15227: fi
15228: fi
15229: $RM -r conftest*
15230: LDFLAGS="$save_LDFLAGS"
15231:
15232: fi
1.150 moko 15233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15234: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 15235:
15236: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15237: :
15238: else
15239: lt_prog_compiler_static_CXX=
15240: fi
15241:
15242:
15243:
15244:
1.150 moko 15245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15246: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15247: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15248: $as_echo_n "(cached) " >&6
1.128 moko 15249: else
15250: lt_cv_prog_compiler_c_o_CXX=no
15251: $RM -r conftest 2>/dev/null
15252: mkdir conftest
15253: cd conftest
15254: mkdir out
15255: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15256:
15257: lt_compiler_flag="-o out/conftest2.$ac_objext"
15258: # Insert the option either (1) after the last *FLAGS variable, or
15259: # (2) before a word containing "conftest.", or (3) at the end.
15260: # Note that $ac_compile itself does not contain backslashes and begins
15261: # with a dollar sign (not a hyphen), so the echo should work correctly.
15262: lt_compile=`echo "$ac_compile" | $SED \
15263: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15264: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15265: -e 's:$: $lt_compiler_flag:'`
15266: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15267: (eval "$lt_compile" 2>out/conftest.err)
15268: ac_status=$?
15269: cat out/conftest.err >&5
15270: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15272: then
15273: # The compiler can only warn and ignore the option if not recognized
15274: # So say no if there are warnings
15275: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15276: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15277: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15278: lt_cv_prog_compiler_c_o_CXX=yes
15279: fi
15280: fi
15281: chmod u+w . 2>&5
15282: $RM conftest*
15283: # SGI C++ compiler will create directory out/ii_files/ for
15284: # template instantiation
15285: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15286: $RM out/* && rmdir out
15287: cd ..
15288: $RM -r conftest
15289: $RM conftest*
15290:
15291: fi
1.150 moko 15292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15293: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15294:
15295:
15296:
1.150 moko 15297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15298: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15299: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15300: $as_echo_n "(cached) " >&6
1.128 moko 15301: else
15302: lt_cv_prog_compiler_c_o_CXX=no
15303: $RM -r conftest 2>/dev/null
15304: mkdir conftest
15305: cd conftest
15306: mkdir out
15307: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15308:
15309: lt_compiler_flag="-o out/conftest2.$ac_objext"
15310: # Insert the option either (1) after the last *FLAGS variable, or
15311: # (2) before a word containing "conftest.", or (3) at the end.
15312: # Note that $ac_compile itself does not contain backslashes and begins
15313: # with a dollar sign (not a hyphen), so the echo should work correctly.
15314: lt_compile=`echo "$ac_compile" | $SED \
15315: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15316: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15317: -e 's:$: $lt_compiler_flag:'`
15318: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15319: (eval "$lt_compile" 2>out/conftest.err)
15320: ac_status=$?
15321: cat out/conftest.err >&5
15322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15324: then
15325: # The compiler can only warn and ignore the option if not recognized
15326: # So say no if there are warnings
15327: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15328: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15329: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15330: lt_cv_prog_compiler_c_o_CXX=yes
15331: fi
15332: fi
15333: chmod u+w . 2>&5
15334: $RM conftest*
15335: # SGI C++ compiler will create directory out/ii_files/ for
15336: # template instantiation
15337: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15338: $RM out/* && rmdir out
15339: cd ..
15340: $RM -r conftest
15341: $RM conftest*
15342:
15343: fi
1.150 moko 15344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15345: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15346:
15347:
15348:
15349:
15350: hard_links="nottested"
15351: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15352: # do not overwrite the value of need_locks provided by the user
1.150 moko 15353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15354: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15355: hard_links=yes
15356: $RM conftest*
15357: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15358: touch conftest.a
15359: ln conftest.a conftest.b 2>&5 || hard_links=no
15360: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15362: $as_echo "$hard_links" >&6; }
1.128 moko 15363: if test "$hard_links" = no; then
1.150 moko 15364: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15365: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15366: need_locks=warn
15367: fi
15368: else
15369: need_locks=no
15370: fi
15371:
15372:
15373:
1.150 moko 15374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15375: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15376:
15377: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15378: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15379: case $host_os in
15380: aix[4-9]*)
15381: # If we're using GNU nm, then we don't want the "-C" option.
15382: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15383: # Also, AIX nm treats weak defined symbols like other global defined
15384: # symbols, whereas GNU nm marks them as "W".
15385: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15386: 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'
15387: else
15388: 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'
15389: fi
15390: ;;
15391: pw32*)
15392: export_symbols_cmds_CXX="$ltdll_cmds"
15393: ;;
15394: cygwin* | mingw* | cegcc*)
15395: case $cc_basename in
15396: cl*)
15397: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15398: ;;
15399: *)
15400: 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'
15401: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15402: ;;
15403: esac
15404: ;;
15405: *)
15406: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15407: ;;
15408: esac
15409:
1.150 moko 15410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15411: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15412: test "$ld_shlibs_CXX" = no && can_build_shared=no
15413:
15414: with_gnu_ld_CXX=$with_gnu_ld
15415:
15416:
15417:
15418:
15419:
15420:
15421: #
15422: # Do we need to explicitly link libc?
15423: #
15424: case "x$archive_cmds_need_lc_CXX" in
15425: x|xyes)
15426: # Assume -lc should be added
15427: archive_cmds_need_lc_CXX=yes
15428:
15429: if test "$enable_shared" = yes && test "$GCC" = yes; then
15430: case $archive_cmds_CXX in
15431: *'~'*)
15432: # FIXME: we may have to deal with multi-command sequences.
15433: ;;
15434: '$CC '*)
15435: # Test whether the compiler implicitly links with -lc since on some
15436: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15437: # to ld, don't add -lc before -lgcc.
1.150 moko 15438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15439: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15440: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15441: $as_echo_n "(cached) " >&6
1.128 moko 15442: else
15443: $RM conftest*
15444: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15445:
1.150 moko 15446: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15447: (eval $ac_compile) 2>&5
15448: ac_status=$?
1.150 moko 15449: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15450: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15451: soname=conftest
15452: lib=conftest
15453: libobjs=conftest.$ac_objext
15454: deplibs=
15455: wl=$lt_prog_compiler_wl_CXX
15456: pic_flag=$lt_prog_compiler_pic_CXX
15457: compiler_flags=-v
15458: linker_flags=-v
15459: verstring=
15460: output_objdir=.
15461: libname=conftest
15462: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15463: allow_undefined_flag_CXX=
1.150 moko 15464: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15465: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15466: ac_status=$?
1.150 moko 15467: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15468: test $ac_status = 0; }
1.128 moko 15469: then
15470: lt_cv_archive_cmds_need_lc_CXX=no
15471: else
15472: lt_cv_archive_cmds_need_lc_CXX=yes
15473: fi
15474: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15475: else
15476: cat conftest.err 1>&5
15477: fi
15478: $RM conftest*
15479:
15480: fi
1.150 moko 15481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15482: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15483: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15484: ;;
15485: esac
15486: fi
15487: ;;
15488: esac
15489:
15490:
15491:
15492:
15493:
15494:
15495:
15496:
15497:
15498:
15499:
15500:
15501:
15502:
15503:
15504:
15505:
15506:
15507:
15508:
15509:
15510:
15511:
15512:
15513:
15514:
15515:
15516:
15517:
15518:
15519:
15520:
15521:
15522:
15523:
15524:
15525:
15526:
15527:
15528:
15529:
15530:
15531:
15532:
15533:
15534:
15535:
15536:
15537:
15538:
15539:
15540:
15541:
15542:
15543:
15544:
15545:
15546:
15547:
15548:
15549:
15550:
1.150 moko 15551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15552: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15553:
15554: library_names_spec=
15555: libname_spec='lib$name'
15556: soname_spec=
15557: shrext_cmds=".so"
15558: postinstall_cmds=
15559: postuninstall_cmds=
15560: finish_cmds=
15561: finish_eval=
15562: shlibpath_var=
15563: shlibpath_overrides_runpath=unknown
15564: version_type=none
15565: dynamic_linker="$host_os ld.so"
15566: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15567: need_lib_prefix=unknown
15568: hardcode_into_libs=no
15569:
15570: # when you set need_version to no, make sure it does not cause -set_version
15571: # flags to be left without arguments
15572: need_version=unknown
15573:
15574: case $host_os in
15575: aix3*)
15576: version_type=linux # correct to gnu/linux during the next big refactor
15577: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15578: shlibpath_var=LIBPATH
15579:
15580: # AIX 3 has no versioning support, so we append a major version to the name.
15581: soname_spec='${libname}${release}${shared_ext}$major'
15582: ;;
15583:
15584: aix[4-9]*)
15585: version_type=linux # correct to gnu/linux during the next big refactor
15586: need_lib_prefix=no
15587: need_version=no
15588: hardcode_into_libs=yes
15589: if test "$host_cpu" = ia64; then
15590: # AIX 5 supports IA64
15591: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15592: shlibpath_var=LD_LIBRARY_PATH
15593: else
15594: # With GCC up to 2.95.x, collect2 would create an import file
15595: # for dependence libraries. The import file would start with
15596: # the line `#! .'. This would cause the generated library to
15597: # depend on `.', always an invalid library. This was fixed in
15598: # development snapshots of GCC prior to 3.0.
15599: case $host_os in
15600: aix4 | aix4.[01] | aix4.[01].*)
15601: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15602: echo ' yes '
15603: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15604: :
15605: else
15606: can_build_shared=no
15607: fi
15608: ;;
15609: esac
15610: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15611: # soname into executable. Probably we can add versioning support to
15612: # collect2, so additional links can be useful in future.
15613: if test "$aix_use_runtimelinking" = yes; then
15614: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15615: # instead of lib<name>.a to let people know that these are not
15616: # typical AIX shared libraries.
15617: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618: else
15619: # We preserve .a as extension for shared libraries through AIX4.2
15620: # and later when we are not doing run time linking.
15621: library_names_spec='${libname}${release}.a $libname.a'
15622: soname_spec='${libname}${release}${shared_ext}$major'
15623: fi
15624: shlibpath_var=LIBPATH
15625: fi
15626: ;;
15627:
15628: amigaos*)
15629: case $host_cpu in
15630: powerpc)
15631: # Since July 2007 AmigaOS4 officially supports .so libraries.
15632: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15633: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634: ;;
15635: m68k)
15636: library_names_spec='$libname.ixlibrary $libname.a'
15637: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15638: 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'
15639: ;;
15640: esac
15641: ;;
15642:
15643: beos*)
15644: library_names_spec='${libname}${shared_ext}'
15645: dynamic_linker="$host_os ld.so"
15646: shlibpath_var=LIBRARY_PATH
15647: ;;
15648:
15649: bsdi[45]*)
15650: version_type=linux # correct to gnu/linux during the next big refactor
15651: need_version=no
15652: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653: soname_spec='${libname}${release}${shared_ext}$major'
15654: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15655: shlibpath_var=LD_LIBRARY_PATH
15656: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15657: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15658: # the default ld.so.conf also contains /usr/contrib/lib and
15659: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15660: # libtool to hard-code these into programs
15661: ;;
15662:
15663: cygwin* | mingw* | pw32* | cegcc*)
15664: version_type=windows
15665: shrext_cmds=".dll"
15666: need_version=no
15667: need_lib_prefix=no
15668:
15669: case $GCC,$cc_basename in
15670: yes,*)
15671: # gcc
15672: library_names_spec='$libname.dll.a'
15673: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15674: postinstall_cmds='base_file=`basename \${file}`~
15675: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15676: dldir=$destdir/`dirname \$dlpath`~
15677: test -d \$dldir || mkdir -p \$dldir~
15678: $install_prog $dir/$dlname \$dldir/$dlname~
15679: chmod a+x \$dldir/$dlname~
15680: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15681: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15682: fi'
15683: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15684: dlpath=$dir/\$dldll~
15685: $RM \$dlpath'
15686: shlibpath_overrides_runpath=yes
15687:
15688: case $host_os in
15689: cygwin*)
15690: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15691: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15692:
15693: ;;
15694: mingw* | cegcc*)
15695: # MinGW DLLs use traditional 'lib' prefix
15696: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15697: ;;
15698: pw32*)
15699: # pw32 DLLs use 'pw' prefix rather than 'lib'
15700: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701: ;;
15702: esac
15703: dynamic_linker='Win32 ld.exe'
15704: ;;
15705:
15706: *,cl*)
15707: # Native MSVC
15708: libname_spec='$name'
15709: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710: library_names_spec='${libname}.dll.lib'
15711:
15712: case $build_os in
15713: mingw*)
15714: sys_lib_search_path_spec=
15715: lt_save_ifs=$IFS
15716: IFS=';'
15717: for lt_path in $LIB
15718: do
15719: IFS=$lt_save_ifs
15720: # Let DOS variable expansion print the short 8.3 style file name.
15721: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15722: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15723: done
15724: IFS=$lt_save_ifs
15725: # Convert to MSYS style.
15726: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15727: ;;
15728: cygwin*)
15729: # Convert to unix form, then to dos form, then back to unix form
15730: # but this time dos style (no spaces!) so that the unix form looks
15731: # like /cygdrive/c/PROGRA~1:/cygdr...
15732: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15733: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15734: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15735: ;;
15736: *)
15737: sys_lib_search_path_spec="$LIB"
15738: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15739: # It is most probably a Windows format PATH.
15740: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15741: else
15742: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15743: fi
15744: # FIXME: find the short name or the path components, as spaces are
15745: # common. (e.g. "Program Files" -> "PROGRA~1")
15746: ;;
15747: esac
15748:
15749: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15750: postinstall_cmds='base_file=`basename \${file}`~
15751: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15752: dldir=$destdir/`dirname \$dlpath`~
15753: test -d \$dldir || mkdir -p \$dldir~
15754: $install_prog $dir/$dlname \$dldir/$dlname'
15755: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15756: dlpath=$dir/\$dldll~
15757: $RM \$dlpath'
15758: shlibpath_overrides_runpath=yes
15759: dynamic_linker='Win32 link.exe'
15760: ;;
15761:
15762: *)
15763: # Assume MSVC wrapper
15764: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15765: dynamic_linker='Win32 ld.exe'
15766: ;;
15767: esac
15768: # FIXME: first we should search . and the directory the executable is in
15769: shlibpath_var=PATH
15770: ;;
15771:
15772: darwin* | rhapsody*)
15773: dynamic_linker="$host_os dyld"
15774: version_type=darwin
15775: need_lib_prefix=no
15776: need_version=no
15777: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15778: soname_spec='${libname}${release}${major}$shared_ext'
15779: shlibpath_overrides_runpath=yes
15780: shlibpath_var=DYLD_LIBRARY_PATH
15781: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15782:
15783: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15784: ;;
15785:
15786: dgux*)
15787: version_type=linux # correct to gnu/linux during the next big refactor
15788: need_lib_prefix=no
15789: need_version=no
15790: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15791: soname_spec='${libname}${release}${shared_ext}$major'
15792: shlibpath_var=LD_LIBRARY_PATH
15793: ;;
15794:
15795: freebsd* | dragonfly*)
15796: # DragonFly does not have aout. When/if they implement a new
15797: # versioning mechanism, adjust this.
15798: if test -x /usr/bin/objformat; then
15799: objformat=`/usr/bin/objformat`
15800: else
15801: case $host_os in
15802: freebsd[23].*) objformat=aout ;;
15803: *) objformat=elf ;;
15804: esac
15805: fi
15806: version_type=freebsd-$objformat
15807: case $version_type in
15808: freebsd-elf*)
15809: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15810: need_version=no
15811: need_lib_prefix=no
15812: ;;
15813: freebsd-*)
15814: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15815: need_version=yes
15816: ;;
15817: esac
15818: shlibpath_var=LD_LIBRARY_PATH
15819: case $host_os in
15820: freebsd2.*)
15821: shlibpath_overrides_runpath=yes
15822: ;;
15823: freebsd3.[01]* | freebsdelf3.[01]*)
15824: shlibpath_overrides_runpath=yes
15825: hardcode_into_libs=yes
15826: ;;
15827: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15828: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15829: shlibpath_overrides_runpath=no
15830: hardcode_into_libs=yes
15831: ;;
15832: *) # from 4.6 on, and DragonFly
15833: shlibpath_overrides_runpath=yes
15834: hardcode_into_libs=yes
15835: ;;
15836: esac
15837: ;;
15838:
15839: gnu*)
15840: version_type=linux # correct to gnu/linux during the next big refactor
15841: need_lib_prefix=no
15842: need_version=no
15843: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15844: soname_spec='${libname}${release}${shared_ext}$major'
15845: shlibpath_var=LD_LIBRARY_PATH
15846: shlibpath_overrides_runpath=no
15847: hardcode_into_libs=yes
15848: ;;
15849:
15850: haiku*)
15851: version_type=linux # correct to gnu/linux during the next big refactor
15852: need_lib_prefix=no
15853: need_version=no
15854: dynamic_linker="$host_os runtime_loader"
15855: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15856: soname_spec='${libname}${release}${shared_ext}$major'
15857: shlibpath_var=LIBRARY_PATH
15858: shlibpath_overrides_runpath=yes
15859: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15860: hardcode_into_libs=yes
15861: ;;
15862:
15863: hpux9* | hpux10* | hpux11*)
15864: # Give a soname corresponding to the major version so that dld.sl refuses to
15865: # link against other versions.
15866: version_type=sunos
15867: need_lib_prefix=no
15868: need_version=no
15869: case $host_cpu in
15870: ia64*)
15871: shrext_cmds='.so'
15872: hardcode_into_libs=yes
15873: dynamic_linker="$host_os dld.so"
15874: shlibpath_var=LD_LIBRARY_PATH
15875: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15876: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15877: soname_spec='${libname}${release}${shared_ext}$major'
15878: if test "X$HPUX_IA64_MODE" = X32; then
15879: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15880: else
15881: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15882: fi
15883: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15884: ;;
15885: hppa*64*)
15886: shrext_cmds='.sl'
15887: hardcode_into_libs=yes
15888: dynamic_linker="$host_os dld.sl"
15889: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15890: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15891: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892: soname_spec='${libname}${release}${shared_ext}$major'
15893: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15894: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15895: ;;
15896: *)
15897: shrext_cmds='.sl'
15898: dynamic_linker="$host_os dld.sl"
15899: shlibpath_var=SHLIB_PATH
15900: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15901: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902: soname_spec='${libname}${release}${shared_ext}$major'
15903: ;;
15904: esac
15905: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15906: postinstall_cmds='chmod 555 $lib'
15907: # or fails outright, so override atomically:
15908: install_override_mode=555
15909: ;;
15910:
15911: interix[3-9]*)
15912: version_type=linux # correct to gnu/linux during the next big refactor
15913: need_lib_prefix=no
15914: need_version=no
15915: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15916: soname_spec='${libname}${release}${shared_ext}$major'
15917: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15918: shlibpath_var=LD_LIBRARY_PATH
15919: shlibpath_overrides_runpath=no
15920: hardcode_into_libs=yes
15921: ;;
15922:
15923: irix5* | irix6* | nonstopux*)
15924: case $host_os in
15925: nonstopux*) version_type=nonstopux ;;
15926: *)
15927: if test "$lt_cv_prog_gnu_ld" = yes; then
15928: version_type=linux # correct to gnu/linux during the next big refactor
15929: else
15930: version_type=irix
15931: fi ;;
15932: esac
15933: need_lib_prefix=no
15934: need_version=no
15935: soname_spec='${libname}${release}${shared_ext}$major'
15936: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15937: case $host_os in
15938: irix5* | nonstopux*)
15939: libsuff= shlibsuff=
15940: ;;
15941: *)
15942: case $LD in # libtool.m4 will add one of these switches to LD
15943: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15944: libsuff= shlibsuff= libmagic=32-bit;;
15945: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15946: libsuff=32 shlibsuff=N32 libmagic=N32;;
15947: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15948: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15949: *) libsuff= shlibsuff= libmagic=never-match;;
15950: esac
15951: ;;
15952: esac
15953: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15954: shlibpath_overrides_runpath=no
15955: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15956: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15957: hardcode_into_libs=yes
15958: ;;
15959:
15960: # No shared lib support for Linux oldld, aout, or coff.
15961: linux*oldld* | linux*aout* | linux*coff*)
15962: dynamic_linker=no
15963: ;;
15964:
15965: # This must be glibc/ELF.
15966: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15967: version_type=linux # correct to gnu/linux during the next big refactor
15968: need_lib_prefix=no
15969: need_version=no
15970: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971: soname_spec='${libname}${release}${shared_ext}$major'
15972: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15973: shlibpath_var=LD_LIBRARY_PATH
15974: shlibpath_overrides_runpath=no
15975:
15976: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 15977: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15978: $as_echo_n "(cached) " >&6
1.128 moko 15979: else
15980: lt_cv_shlibpath_overrides_runpath=no
15981: save_LDFLAGS=$LDFLAGS
15982: save_libdir=$libdir
15983: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15984: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 15985: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15986: /* end confdefs.h. */
15987:
15988: int
15989: main ()
15990: {
15991:
15992: ;
15993: return 0;
15994: }
15995: _ACEOF
1.150 moko 15996: if ac_fn_cxx_try_link "$LINENO"; then :
15997: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 15998: lt_cv_shlibpath_overrides_runpath=yes
15999: fi
16000: fi
1.150 moko 16001: rm -f core conftest.err conftest.$ac_objext \
16002: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16003: LDFLAGS=$save_LDFLAGS
16004: libdir=$save_libdir
16005:
16006: fi
16007:
16008: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16009:
16010: # This implies no fast_install, which is unacceptable.
16011: # Some rework will be needed to allow for fast_install
16012: # before this can be enabled.
16013: hardcode_into_libs=yes
16014:
16015: # Append ld.so.conf contents to the search path
16016: if test -f /etc/ld.so.conf; then
16017: 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' ' '`
16018: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16019: fi
16020:
16021: # We used to test for /lib/ld.so.1 and disable shared libraries on
16022: # powerpc, because MkLinux only supported shared libraries with the
16023: # GNU dynamic linker. Since this was broken with cross compilers,
16024: # most powerpc-linux boxes support dynamic linking these days and
16025: # people can always --disable-shared, the test was removed, and we
16026: # assume the GNU/Linux dynamic linker is in use.
16027: dynamic_linker='GNU/Linux ld.so'
16028: ;;
16029:
16030: netbsd*)
16031: version_type=sunos
16032: need_lib_prefix=no
16033: need_version=no
16034: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16035: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16036: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16037: dynamic_linker='NetBSD (a.out) ld.so'
16038: else
16039: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16040: soname_spec='${libname}${release}${shared_ext}$major'
16041: dynamic_linker='NetBSD ld.elf_so'
16042: fi
16043: shlibpath_var=LD_LIBRARY_PATH
16044: shlibpath_overrides_runpath=yes
16045: hardcode_into_libs=yes
16046: ;;
16047:
16048: newsos6)
16049: version_type=linux # correct to gnu/linux during the next big refactor
16050: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051: shlibpath_var=LD_LIBRARY_PATH
16052: shlibpath_overrides_runpath=yes
16053: ;;
16054:
16055: *nto* | *qnx*)
16056: version_type=qnx
16057: need_lib_prefix=no
16058: need_version=no
16059: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060: soname_spec='${libname}${release}${shared_ext}$major'
16061: shlibpath_var=LD_LIBRARY_PATH
16062: shlibpath_overrides_runpath=no
16063: hardcode_into_libs=yes
16064: dynamic_linker='ldqnx.so'
16065: ;;
16066:
16067: openbsd*)
16068: version_type=sunos
16069: sys_lib_dlsearch_path_spec="/usr/lib"
16070: need_lib_prefix=no
16071: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16072: case $host_os in
16073: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16074: *) need_version=no ;;
16075: esac
16076: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16077: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16078: shlibpath_var=LD_LIBRARY_PATH
16079: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16080: case $host_os in
16081: openbsd2.[89] | openbsd2.[89].*)
16082: shlibpath_overrides_runpath=no
16083: ;;
16084: *)
16085: shlibpath_overrides_runpath=yes
16086: ;;
16087: esac
16088: else
16089: shlibpath_overrides_runpath=yes
16090: fi
16091: ;;
16092:
16093: os2*)
16094: libname_spec='$name'
16095: shrext_cmds=".dll"
16096: need_lib_prefix=no
16097: library_names_spec='$libname${shared_ext} $libname.a'
16098: dynamic_linker='OS/2 ld.exe'
16099: shlibpath_var=LIBPATH
16100: ;;
16101:
16102: osf3* | osf4* | osf5*)
16103: version_type=osf
16104: need_lib_prefix=no
16105: need_version=no
16106: soname_spec='${libname}${release}${shared_ext}$major'
16107: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16108: shlibpath_var=LD_LIBRARY_PATH
16109: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16110: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16111: ;;
16112:
16113: rdos*)
16114: dynamic_linker=no
16115: ;;
16116:
16117: solaris*)
16118: version_type=linux # correct to gnu/linux during the next big refactor
16119: need_lib_prefix=no
16120: need_version=no
16121: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16122: soname_spec='${libname}${release}${shared_ext}$major'
16123: shlibpath_var=LD_LIBRARY_PATH
16124: shlibpath_overrides_runpath=yes
16125: hardcode_into_libs=yes
16126: # ldd complains unless libraries are executable
16127: postinstall_cmds='chmod +x $lib'
16128: ;;
16129:
16130: sunos4*)
16131: version_type=sunos
16132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16133: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16134: shlibpath_var=LD_LIBRARY_PATH
16135: shlibpath_overrides_runpath=yes
16136: if test "$with_gnu_ld" = yes; then
16137: need_lib_prefix=no
16138: fi
16139: need_version=yes
16140: ;;
16141:
16142: sysv4 | sysv4.3*)
16143: version_type=linux # correct to gnu/linux during the next big refactor
16144: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16145: soname_spec='${libname}${release}${shared_ext}$major'
16146: shlibpath_var=LD_LIBRARY_PATH
16147: case $host_vendor in
16148: sni)
16149: shlibpath_overrides_runpath=no
16150: need_lib_prefix=no
16151: runpath_var=LD_RUN_PATH
16152: ;;
16153: siemens)
16154: need_lib_prefix=no
16155: ;;
16156: motorola)
16157: need_lib_prefix=no
16158: need_version=no
16159: shlibpath_overrides_runpath=no
16160: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16161: ;;
16162: esac
16163: ;;
16164:
16165: sysv4*MP*)
16166: if test -d /usr/nec ;then
16167: version_type=linux # correct to gnu/linux during the next big refactor
16168: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16169: soname_spec='$libname${shared_ext}.$major'
16170: shlibpath_var=LD_LIBRARY_PATH
16171: fi
16172: ;;
16173:
16174: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16175: version_type=freebsd-elf
16176: need_lib_prefix=no
16177: need_version=no
16178: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16179: soname_spec='${libname}${release}${shared_ext}$major'
16180: shlibpath_var=LD_LIBRARY_PATH
16181: shlibpath_overrides_runpath=yes
16182: hardcode_into_libs=yes
16183: if test "$with_gnu_ld" = yes; then
16184: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16185: else
16186: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16187: case $host_os in
16188: sco3.2v5*)
16189: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16190: ;;
16191: esac
16192: fi
16193: sys_lib_dlsearch_path_spec='/usr/lib'
16194: ;;
16195:
16196: tpf*)
16197: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16198: version_type=linux # correct to gnu/linux during the next big refactor
16199: need_lib_prefix=no
16200: need_version=no
16201: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16202: shlibpath_var=LD_LIBRARY_PATH
16203: shlibpath_overrides_runpath=no
16204: hardcode_into_libs=yes
16205: ;;
16206:
16207: uts4*)
16208: version_type=linux # correct to gnu/linux during the next big refactor
16209: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16210: soname_spec='${libname}${release}${shared_ext}$major'
16211: shlibpath_var=LD_LIBRARY_PATH
16212: ;;
16213:
16214: *)
16215: dynamic_linker=no
16216: ;;
16217: esac
1.150 moko 16218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16219: $as_echo "$dynamic_linker" >&6; }
1.128 moko 16220: test "$dynamic_linker" = no && can_build_shared=no
16221:
16222: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16223: if test "$GCC" = yes; then
16224: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16225: fi
16226:
16227: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16228: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16229: fi
16230: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16231: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16232: fi
16233:
16234:
16235:
16236:
16237:
16238:
16239:
16240:
16241:
16242:
16243:
16244:
16245:
16246:
16247:
16248:
16249:
16250:
16251:
16252:
16253:
16254:
16255:
16256:
16257:
16258:
16259:
16260:
16261:
16262:
16263:
16264:
16265:
16266:
16267:
16268:
16269:
16270:
1.150 moko 16271: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16272: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 16273: hardcode_action_CXX=
16274: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16275: test -n "$runpath_var_CXX" ||
16276: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16277:
16278: # We can hardcode non-existent directories.
16279: if test "$hardcode_direct_CXX" != no &&
16280: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16281: # have to relink, otherwise we might link with an installed library
16282: # when we should be linking with a yet-to-be-installed one
16283: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16284: test "$hardcode_minus_L_CXX" != no; then
16285: # Linking always hardcodes the temporary library directory.
16286: hardcode_action_CXX=relink
16287: else
16288: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16289: hardcode_action_CXX=immediate
16290: fi
16291: else
16292: # We cannot hardcode anything, or else we can only hardcode existing
16293: # directories.
16294: hardcode_action_CXX=unsupported
16295: fi
1.150 moko 16296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16297: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16298:
16299: if test "$hardcode_action_CXX" = relink ||
16300: test "$inherit_rpath_CXX" = yes; then
16301: # Fast installation is not supported
16302: enable_fast_install=no
16303: elif test "$shlibpath_overrides_runpath" = yes ||
16304: test "$enable_shared" = no; then
16305: # Fast installation is not necessary
16306: enable_fast_install=needless
16307: fi
16308:
16309:
16310:
16311:
16312:
16313:
16314:
16315: fi # test -n "$compiler"
16316:
16317: CC=$lt_save_CC
16318: CFLAGS=$lt_save_CFLAGS
16319: LDCXX=$LD
16320: LD=$lt_save_LD
16321: GCC=$lt_save_GCC
16322: with_gnu_ld=$lt_save_with_gnu_ld
16323: lt_cv_path_LDCXX=$lt_cv_path_LD
16324: lt_cv_path_LD=$lt_save_path_LD
16325: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16326: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16327: fi # test "$_lt_caught_CXX_error" != yes
16328:
16329: ac_ext=c
16330: ac_cpp='$CPP $CPPFLAGS'
16331: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16332: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16333: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16334:
16335:
16336:
16337:
16338:
16339:
16340:
16341:
16342:
16343:
16344:
16345:
16346:
16347:
16348:
1.150 moko 16349: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16350:
16351:
16352:
16353:
16354: # Only expand once:
16355:
16356:
1.150 moko 16357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16358: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16359: if ${libltdl_cv_shlibext+:} false; then :
16360: $as_echo_n "(cached) " >&6
1.128 moko 16361: else
16362:
16363: module=yes
16364: eval libltdl_cv_shlibext=$shrext_cmds
16365: module=no
16366: eval libltdl_cv_shrext=$shrext_cmds
16367:
16368: fi
1.150 moko 16369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16370: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16371: if test -n "$libltdl_cv_shlibext"; then
16372:
16373: cat >>confdefs.h <<_ACEOF
16374: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16375: _ACEOF
16376:
16377: fi
16378: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16379:
16380: cat >>confdefs.h <<_ACEOF
16381: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16382: _ACEOF
16383:
16384: fi
16385:
1.150 moko 16386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16387: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16388: if ${lt_cv_module_path_var+:} false; then :
16389: $as_echo_n "(cached) " >&6
1.128 moko 16390: else
16391: lt_cv_module_path_var="$shlibpath_var"
16392: fi
1.150 moko 16393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16394: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16395: if test -n "$lt_cv_module_path_var"; then
16396:
16397: cat >>confdefs.h <<_ACEOF
16398: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16399: _ACEOF
16400:
16401: fi
16402:
1.150 moko 16403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16404: $as_echo_n "checking for the default library search path... " >&6; }
16405: if ${lt_cv_sys_dlsearch_path+:} false; then :
16406: $as_echo_n "(cached) " >&6
1.128 moko 16407: else
16408: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16409: fi
1.150 moko 16410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16411: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16412: if test -n "$lt_cv_sys_dlsearch_path"; then
16413: sys_dlsearch_path=
16414: for dir in $lt_cv_sys_dlsearch_path; do
16415: if test -z "$sys_dlsearch_path"; then
16416: sys_dlsearch_path="$dir"
16417: else
16418: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16419: fi
16420: done
16421:
16422: cat >>confdefs.h <<_ACEOF
16423: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16424: _ACEOF
16425:
16426: fi
16427:
16428:
16429: LT_DLLOADERS=
16430:
16431:
16432: ac_ext=c
16433: ac_cpp='$CPP $CPPFLAGS'
16434: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16435: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16436: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16437:
16438:
16439: LIBADD_DLOPEN=
1.150 moko 16440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16441: $as_echo_n "checking for library containing dlopen... " >&6; }
16442: if ${ac_cv_search_dlopen+:} false; then :
16443: $as_echo_n "(cached) " >&6
1.128 moko 16444: else
16445: ac_func_search_save_LIBS=$LIBS
1.150 moko 16446: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16447: /* end confdefs.h. */
16448:
1.150 moko 16449: /* Override any GCC internal prototype to avoid an error.
16450: Use char because int might match the return type of a GCC
16451: builtin and then its argument prototype would still apply. */
1.128 moko 16452: #ifdef __cplusplus
16453: extern "C"
16454: #endif
16455: char dlopen ();
16456: int
16457: main ()
16458: {
1.150 moko 16459: return dlopen ();
1.128 moko 16460: ;
16461: return 0;
16462: }
16463: _ACEOF
1.150 moko 16464: for ac_lib in '' dl; do
16465: if test -z "$ac_lib"; then
16466: ac_res="none required"
16467: else
16468: ac_res=-l$ac_lib
16469: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16470: fi
16471: if ac_fn_c_try_link "$LINENO"; then :
16472: ac_cv_search_dlopen=$ac_res
16473: fi
16474: rm -f core conftest.err conftest.$ac_objext \
16475: conftest$ac_exeext
16476: if ${ac_cv_search_dlopen+:} false; then :
16477: break
1.128 moko 16478: fi
1.150 moko 16479: done
16480: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16481:
16482: else
1.150 moko 16483: ac_cv_search_dlopen=no
1.128 moko 16484: fi
1.150 moko 16485: rm conftest.$ac_ext
1.128 moko 16486: LIBS=$ac_func_search_save_LIBS
16487: fi
1.150 moko 16488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16489: $as_echo "$ac_cv_search_dlopen" >&6; }
16490: ac_res=$ac_cv_search_dlopen
16491: if test "$ac_res" != no; then :
16492: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16493:
1.150 moko 16494: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16495:
16496: if test "$ac_cv_search_dlopen" != "none required" ; then
16497: LIBADD_DLOPEN="-ldl"
16498: fi
16499: libltdl_cv_lib_dl_dlopen="yes"
16500: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16501: else
1.150 moko 16502: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16503: /* end confdefs.h. */
16504: #if HAVE_DLFCN_H
16505: # include <dlfcn.h>
16506: #endif
16507:
16508: int
16509: main ()
16510: {
16511: dlopen(0, 0);
16512: ;
16513: return 0;
16514: }
16515: _ACEOF
1.150 moko 16516: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16517:
1.150 moko 16518: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16519:
16520: libltdl_cv_func_dlopen="yes"
16521: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16522: else
1.150 moko 16523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16524: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16525: if ${ac_cv_lib_svld_dlopen+:} false; then :
16526: $as_echo_n "(cached) " >&6
1.128 moko 16527: else
16528: ac_check_lib_save_LIBS=$LIBS
16529: LIBS="-lsvld $LIBS"
1.150 moko 16530: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16531: /* end confdefs.h. */
16532:
1.150 moko 16533: /* Override any GCC internal prototype to avoid an error.
16534: Use char because int might match the return type of a GCC
16535: builtin and then its argument prototype would still apply. */
1.128 moko 16536: #ifdef __cplusplus
16537: extern "C"
16538: #endif
16539: char dlopen ();
16540: int
16541: main ()
16542: {
1.150 moko 16543: return dlopen ();
1.128 moko 16544: ;
16545: return 0;
16546: }
16547: _ACEOF
1.150 moko 16548: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16549: ac_cv_lib_svld_dlopen=yes
16550: else
1.150 moko 16551: ac_cv_lib_svld_dlopen=no
1.128 moko 16552: fi
1.150 moko 16553: rm -f core conftest.err conftest.$ac_objext \
16554: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16555: LIBS=$ac_check_lib_save_LIBS
16556: fi
1.150 moko 16557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16558: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16559: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16560:
1.150 moko 16561: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16562:
16563: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16564: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16565: fi
16566:
16567: fi
1.150 moko 16568: rm -f core conftest.err conftest.$ac_objext \
16569: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16570: fi
16571:
16572: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16573: then
16574: lt_save_LIBS="$LIBS"
16575: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16576: for ac_func in dlerror
16577: do :
16578: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16579: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16580: cat >>confdefs.h <<_ACEOF
1.150 moko 16581: #define HAVE_DLERROR 1
1.128 moko 16582: _ACEOF
16583:
16584: fi
16585: done
16586:
16587: LIBS="$lt_save_LIBS"
16588: fi
16589:
16590:
16591: LIBADD_SHL_LOAD=
1.150 moko 16592: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16593: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16594:
1.150 moko 16595: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16596:
16597: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16598: else
1.150 moko 16599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16600: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16601: if ${ac_cv_lib_dld_shl_load+:} false; then :
16602: $as_echo_n "(cached) " >&6
1.66 paf 16603: else
16604: ac_check_lib_save_LIBS=$LIBS
16605: LIBS="-ldld $LIBS"
1.150 moko 16606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16607: /* end confdefs.h. */
1.10 paf 16608:
1.150 moko 16609: /* Override any GCC internal prototype to avoid an error.
16610: Use char because int might match the return type of a GCC
16611: builtin and then its argument prototype would still apply. */
1.66 paf 16612: #ifdef __cplusplus
16613: extern "C"
16614: #endif
16615: char shl_load ();
16616: int
16617: main ()
16618: {
1.150 moko 16619: return shl_load ();
1.66 paf 16620: ;
16621: return 0;
16622: }
16623: _ACEOF
1.150 moko 16624: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16625: ac_cv_lib_dld_shl_load=yes
16626: else
1.150 moko 16627: ac_cv_lib_dld_shl_load=no
1.66 paf 16628: fi
1.150 moko 16629: rm -f core conftest.err conftest.$ac_objext \
16630: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16631: LIBS=$ac_check_lib_save_LIBS
16632: fi
1.150 moko 16633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16634: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16635: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16636:
1.150 moko 16637: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16638:
1.128 moko 16639: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16640: LIBADD_SHL_LOAD="-ldld"
16641: fi
16642:
16643: fi
16644:
16645:
16646:
16647: case $host_os in
16648: darwin[1567].*)
16649: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16650: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16651: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16652:
16653: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16654:
1.150 moko 16655: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16656: fi
1.128 moko 16657:
1.150 moko 16658: ;;
16659: beos*)
1.128 moko 16660: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16661: ;;
16662: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16663: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16664: "
16665: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16666: ac_have_decl=1
1.128 moko 16667: else
1.150 moko 16668: ac_have_decl=0
1.128 moko 16669: fi
16670:
16671: cat >>confdefs.h <<_ACEOF
1.150 moko 16672: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16673: _ACEOF
16674:
16675: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16676: ;;
16677: esac
16678:
1.150 moko 16679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16680: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16681: if ${ac_cv_lib_dld_dld_link+:} false; then :
16682: $as_echo_n "(cached) " >&6
1.66 paf 16683: else
16684: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16685: LIBS="-ldld $LIBS"
1.150 moko 16686: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16687: /* end confdefs.h. */
1.62 paf 16688:
1.150 moko 16689: /* Override any GCC internal prototype to avoid an error.
16690: Use char because int might match the return type of a GCC
16691: builtin and then its argument prototype would still apply. */
1.66 paf 16692: #ifdef __cplusplus
16693: extern "C"
16694: #endif
1.128 moko 16695: char dld_link ();
1.66 paf 16696: int
16697: main ()
16698: {
1.150 moko 16699: return dld_link ();
1.66 paf 16700: ;
16701: return 0;
16702: }
16703: _ACEOF
1.150 moko 16704: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16705: ac_cv_lib_dld_dld_link=yes
1.66 paf 16706: else
1.150 moko 16707: ac_cv_lib_dld_dld_link=no
1.128 moko 16708: fi
1.150 moko 16709: rm -f core conftest.err conftest.$ac_objext \
16710: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16711: LIBS=$ac_check_lib_save_LIBS
16712: fi
1.150 moko 16713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16714: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16715: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16716:
1.150 moko 16717: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16718:
16719: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16720: fi
16721:
16722:
16723:
16724:
16725: LT_DLPREOPEN=
16726: if test -n "$LT_DLLOADERS"
16727: then
16728: for lt_loader in $LT_DLLOADERS; do
16729: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16730: done
16731:
1.150 moko 16732: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16733:
16734: fi
16735:
16736:
16737: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16738:
16739:
16740: ac_ext=c
16741: ac_cpp='$CPP $CPPFLAGS'
16742: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16743: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16744: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16745:
16746:
1.150 moko 16747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16748: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16749: if ${lt_cv_sys_symbol_underscore+:} false; then :
16750: $as_echo_n "(cached) " >&6
1.128 moko 16751: else
16752: lt_cv_sys_symbol_underscore=no
16753: cat > conftest.$ac_ext <<_LT_EOF
16754: void nm_test_func(){}
16755: int main(){nm_test_func;return 0;}
16756: _LT_EOF
1.150 moko 16757: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16758: (eval $ac_compile) 2>&5
16759: ac_status=$?
1.150 moko 16760: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16761: test $ac_status = 0; }; then
1.128 moko 16762: # Now try to grab the symbols.
16763: ac_nlist=conftest.nm
1.150 moko 16764: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16765: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16766: ac_status=$?
1.150 moko 16767: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16768: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16769: # See whether the symbols have a leading underscore.
16770: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16771: lt_cv_sys_symbol_underscore=yes
16772: else
16773: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16774: :
16775: else
16776: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16777: fi
16778: fi
16779: else
16780: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16781: fi
16782: else
16783: echo "configure: failed program was:" >&5
16784: cat conftest.c >&5
16785: fi
16786: rm -rf conftest*
1.29 paf 16787:
1.66 paf 16788: fi
1.150 moko 16789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16790: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16791: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16792:
1.62 paf 16793:
1.128 moko 16794: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16795: if test x"$libltdl_cv_func_dlopen" = xyes ||
16796: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16797: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16798: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16799: if ${libltdl_cv_need_uscore+:} false; then :
16800: $as_echo_n "(cached) " >&6
1.66 paf 16801: else
1.128 moko 16802: libltdl_cv_need_uscore=unknown
16803: save_LIBS="$LIBS"
16804: LIBS="$LIBS $LIBADD_DLOPEN"
16805: if test "$cross_compiling" = yes; then :
16806: libltdl_cv_need_uscore=cross
16807: else
16808: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16809: lt_status=$lt_dlunknown
16810: cat > conftest.$ac_ext <<_LT_EOF
16811: #line $LINENO "configure"
16812: #include "confdefs.h"
16813:
1.66 paf 16814: #if HAVE_DLFCN_H
1.128 moko 16815: #include <dlfcn.h>
16816: #endif
16817:
16818: #include <stdio.h>
16819:
16820: #ifdef RTLD_GLOBAL
16821: # define LT_DLGLOBAL RTLD_GLOBAL
16822: #else
16823: # ifdef DL_GLOBAL
16824: # define LT_DLGLOBAL DL_GLOBAL
16825: # else
16826: # define LT_DLGLOBAL 0
16827: # endif
16828: #endif
16829:
16830: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16831: find out it does not work in some platform. */
16832: #ifndef LT_DLLAZY_OR_NOW
16833: # ifdef RTLD_LAZY
16834: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16835: # else
16836: # ifdef DL_LAZY
16837: # define LT_DLLAZY_OR_NOW DL_LAZY
16838: # else
16839: # ifdef RTLD_NOW
16840: # define LT_DLLAZY_OR_NOW RTLD_NOW
16841: # else
16842: # ifdef DL_NOW
16843: # define LT_DLLAZY_OR_NOW DL_NOW
16844: # else
16845: # define LT_DLLAZY_OR_NOW 0
16846: # endif
16847: # endif
16848: # endif
16849: # endif
16850: #endif
16851:
16852: /* When -fvisbility=hidden is used, assume the code has been annotated
16853: correspondingly for the symbols needed. */
16854: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16855: int fnord () __attribute__((visibility("default")));
1.66 paf 16856: #endif
1.62 paf 16857:
1.128 moko 16858: int fnord () { return 42; }
16859: int main ()
1.66 paf 16860: {
1.128 moko 16861: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16862: int status = $lt_dlunknown;
16863:
16864: if (self)
16865: {
16866: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16867: else
16868: {
16869: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16870: else puts (dlerror ());
16871: }
16872: /* dlclose (self); */
16873: }
16874: else
16875: puts (dlerror ());
16876:
16877: return status;
1.66 paf 16878: }
1.128 moko 16879: _LT_EOF
1.150 moko 16880: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16881: (eval $ac_link) 2>&5
1.66 paf 16882: ac_status=$?
1.150 moko 16883: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16884: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16885: (./conftest; exit; ) >&5 2>/dev/null
16886: lt_status=$?
16887: case x$lt_status in
16888: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16889: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16890: x$lt_dlunknown|x*) ;;
16891: esac
16892: else :
16893: # compilation failed
16894:
16895: fi
16896: fi
16897: rm -fr conftest*
16898:
16899: LIBS="$save_LIBS"
16900:
16901: fi
1.150 moko 16902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16903: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16904: fi
16905: fi
16906:
16907: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16908:
1.150 moko 16909: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16910:
1.128 moko 16911: fi
16912:
1.150 moko 16913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16914: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16915: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16916: $as_echo_n "(cached) " >&6
1.66 paf 16917: else
1.128 moko 16918: # PORTME does your system automatically load deplibs for dlopen?
16919: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16920: # For now, we just catch OSes we know something about -- in the
16921: # future, we'll try test this programmatically.
16922: lt_cv_sys_dlopen_deplibs=unknown
16923: case $host_os in
16924: aix3*|aix4.1.*|aix4.2.*)
16925: # Unknown whether this is true for these versions of AIX, but
16926: # we want this `case' here to explicitly catch those versions.
16927: lt_cv_sys_dlopen_deplibs=unknown
16928: ;;
16929: aix[4-9]*)
16930: lt_cv_sys_dlopen_deplibs=yes
16931: ;;
16932: amigaos*)
16933: case $host_cpu in
16934: powerpc)
16935: lt_cv_sys_dlopen_deplibs=no
16936: ;;
16937: esac
16938: ;;
16939: darwin*)
16940: # Assuming the user has installed a libdl from somewhere, this is true
16941: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16942: lt_cv_sys_dlopen_deplibs=yes
16943: ;;
16944: freebsd* | dragonfly*)
16945: lt_cv_sys_dlopen_deplibs=yes
16946: ;;
16947: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16948: # GNU and its variants, using gnu ld.so (Glibc)
16949: lt_cv_sys_dlopen_deplibs=yes
16950: ;;
16951: hpux10*|hpux11*)
16952: lt_cv_sys_dlopen_deplibs=yes
16953: ;;
16954: interix*)
16955: lt_cv_sys_dlopen_deplibs=yes
16956: ;;
16957: irix[12345]*|irix6.[01]*)
16958: # Catch all versions of IRIX before 6.2, and indicate that we don't
16959: # know how it worked for any of those versions.
16960: lt_cv_sys_dlopen_deplibs=unknown
16961: ;;
16962: irix*)
16963: # The case above catches anything before 6.2, and it's known that
16964: # at 6.2 and later dlopen does load deplibs.
16965: lt_cv_sys_dlopen_deplibs=yes
16966: ;;
16967: netbsd*)
16968: lt_cv_sys_dlopen_deplibs=yes
16969: ;;
16970: openbsd*)
16971: lt_cv_sys_dlopen_deplibs=yes
16972: ;;
16973: osf[1234]*)
16974: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16975: # it did *not* use an RPATH in a shared library to find objects the
16976: # library depends on, so we explicitly say `no'.
16977: lt_cv_sys_dlopen_deplibs=no
16978: ;;
16979: osf5.0|osf5.0a|osf5.1)
16980: # dlopen *does* load deplibs and with the right loader patch applied
16981: # it even uses RPATH in a shared library to search for shared objects
16982: # that the library depends on, but there's no easy way to know if that
16983: # patch is installed. Since this is the case, all we can really
16984: # say is unknown -- it depends on the patch being installed. If
16985: # it is, this changes to `yes'. Without it, it would be `no'.
16986: lt_cv_sys_dlopen_deplibs=unknown
16987: ;;
16988: osf*)
16989: # the two cases above should catch all versions of osf <= 5.1. Read
16990: # the comments above for what we know about them.
16991: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16992: # is used to find them so we can finally say `yes'.
16993: lt_cv_sys_dlopen_deplibs=yes
16994: ;;
16995: qnx*)
16996: lt_cv_sys_dlopen_deplibs=yes
16997: ;;
16998: solaris*)
16999: lt_cv_sys_dlopen_deplibs=yes
17000: ;;
17001: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17002: libltdl_cv_sys_dlopen_deplibs=yes
17003: ;;
17004: esac
17005:
17006: fi
1.150 moko 17007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
17008: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 17009: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
17010:
1.150 moko 17011: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 17012:
17013: fi
17014:
17015: :
17016:
17017: for ac_header in argz.h
1.150 moko 17018: do :
17019: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
17020: "
17021: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 17022: cat >>confdefs.h <<_ACEOF
1.150 moko 17023: #define HAVE_ARGZ_H 1
1.128 moko 17024: _ACEOF
17025:
1.66 paf 17026: fi
1.62 paf 17027:
1.128 moko 17028: done
17029:
1.29 paf 17030:
1.150 moko 17031: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 17032: # include <argz.h>
17033: #endif
1.150 moko 17034: "
17035: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 17036:
1.128 moko 17037: cat >>confdefs.h <<_ACEOF
17038: #define HAVE_ERROR_T 1
1.62 paf 17039: _ACEOF
1.16 paf 17040:
17041:
1.128 moko 17042: else
1.16 paf 17043:
1.150 moko 17044: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 17045:
1.12 paf 17046:
1.150 moko 17047: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 17048:
1.66 paf 17049: fi
1.12 paf 17050:
1.128 moko 17051:
17052: ARGZ_H=
17053: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17054: argz_next argz_stringify
1.150 moko 17055: do :
17056: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17057: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17058: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17059: cat >>confdefs.h <<_ACEOF
1.150 moko 17060: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17061: _ACEOF
17062:
17063: else
17064: ARGZ_H=argz.h;
17065:
17066: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17067:
17068: fi
17069: done
17070:
17071:
1.150 moko 17072: if test -z "$ARGZ_H"; then :
17073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
17074: $as_echo_n "checking if argz actually works... " >&6; }
17075: if ${lt_cv_sys_argz_works+:} false; then :
17076: $as_echo_n "(cached) " >&6
1.128 moko 17077: else
17078: case $host_os in #(
17079: *cygwin*)
17080: lt_cv_sys_argz_works=no
17081: if test "$cross_compiling" != no; then
17082: lt_cv_sys_argz_works="guessing no"
17083: else
17084: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17085: save_IFS=$IFS
17086: IFS=-.
17087: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17088: IFS=$save_IFS
17089: lt_os_major=${2-0}
17090: lt_os_minor=${3-0}
17091: lt_os_micro=${4-0}
17092: if test "$lt_os_major" -gt 1 \
17093: || { test "$lt_os_major" -eq 1 \
17094: && { test "$lt_os_minor" -gt 5 \
17095: || { test "$lt_os_minor" -eq 5 \
17096: && test "$lt_os_micro" -gt 24; }; }; }; then
17097: lt_cv_sys_argz_works=yes
17098: fi
17099: fi
17100: ;; #(
17101: *) lt_cv_sys_argz_works=yes ;;
17102: esac
17103: fi
1.150 moko 17104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
17105: $as_echo "$lt_cv_sys_argz_works" >&6; }
17106: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 17107:
1.150 moko 17108: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 17109:
1.62 paf 17110: else
1.128 moko 17111: ARGZ_H=argz.h
17112:
17113:
17114: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17115:
17116: fi
1.62 paf 17117: fi
1.128 moko 17118:
17119:
17120:
1.150 moko 17121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
17122: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
17123: if ${libltdl_cv_preloaded_symbols+:} false; then :
17124: $as_echo_n "(cached) " >&6
1.128 moko 17125: else
17126: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17127: libltdl_cv_preloaded_symbols=yes
17128: else
17129: libltdl_cv_preloaded_symbols=no
17130: fi
17131:
1.62 paf 17132: fi
1.150 moko 17133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
17134: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 17135: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17136:
1.150 moko 17137: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 17138:
17139: fi
17140:
1.150 moko 17141:
17142:
1.128 moko 17143: # Set options
17144:
17145:
17146:
17147:
17148:
17149:
17150:
17151:
17152:
17153:
1.66 paf 17154:
17155:
1.150 moko 17156: # Check whether --with-included_ltdl was given.
17157: if test "${with_included_ltdl+set}" = set; then :
17158: withval=$with_included_ltdl;
17159: fi
1.64 paf 17160:
17161:
1.128 moko 17162: if test "x$with_included_ltdl" != xyes; then
17163: # We are not being forced to use the included libltdl sources, so
17164: # decide whether there is a useful installed version we can use.
1.150 moko 17165: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 17166:
1.150 moko 17167: "
17168: if test "x$ac_cv_header_ltdl_h" = xyes; then :
17169: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 17170: #include <ltdl.h>
1.150 moko 17171: "
17172: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
17173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
17174: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
17175: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
17176: $as_echo_n "(cached) " >&6
1.79 paf 17177: else
1.128 moko 17178: ac_check_lib_save_LIBS=$LIBS
17179: LIBS="-lltdl $LIBS"
1.150 moko 17180: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 17181: /* end confdefs.h. */
1.128 moko 17182:
1.150 moko 17183: /* Override any GCC internal prototype to avoid an error.
17184: Use char because int might match the return type of a GCC
17185: builtin and then its argument prototype would still apply. */
1.128 moko 17186: #ifdef __cplusplus
17187: extern "C"
17188: #endif
17189: char lt_dladvise_preload ();
1.79 paf 17190: int
17191: main ()
17192: {
1.150 moko 17193: return lt_dladvise_preload ();
1.79 paf 17194: ;
17195: return 0;
17196: }
17197: _ACEOF
1.150 moko 17198: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 17199: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17200: else
1.150 moko 17201: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 17202: fi
1.150 moko 17203: rm -f core conftest.err conftest.$ac_objext \
17204: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17205: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17206: fi
1.150 moko 17207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17208: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
17209: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 17210: with_included_ltdl=no
1.79 paf 17211: else
1.128 moko 17212: with_included_ltdl=yes
17213: fi
17214:
1.79 paf 17215: else
1.128 moko 17216: with_included_ltdl=yes
17217: fi
1.79 paf 17218:
1.128 moko 17219: else
17220: with_included_ltdl=yes
1.79 paf 17221: fi
1.128 moko 17222:
17223:
1.79 paf 17224: fi
1.128 moko 17225:
17226:
17227:
17228:
1.150 moko 17229: # Check whether --with-ltdl_include was given.
17230: if test "${with_ltdl_include+set}" = set; then :
17231: withval=$with_ltdl_include;
17232: fi
1.128 moko 17233:
17234:
17235: if test -n "$with_ltdl_include"; then
17236: if test -f "$with_ltdl_include/ltdl.h"; then :
17237: else
1.150 moko 17238: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 17239: fi
17240: else
17241: with_ltdl_include=no
1.79 paf 17242: fi
1.128 moko 17243:
17244:
1.150 moko 17245: # Check whether --with-ltdl_lib was given.
17246: if test "${with_ltdl_lib+set}" = set; then :
17247: withval=$with_ltdl_lib;
17248: fi
1.128 moko 17249:
17250:
17251: if test -n "$with_ltdl_lib"; then
17252: if test -f "$with_ltdl_lib/libltdl.la"; then :
17253: else
1.150 moko 17254: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 17255: fi
17256: else
17257: with_ltdl_lib=no
1.79 paf 17258: fi
17259:
1.128 moko 17260: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17261: ,yes,no,no,)
17262: case $enable_ltdl_convenience in
1.150 moko 17263: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 17264: "") enable_ltdl_convenience=yes
17265: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17266: esac
1.150 moko 17267: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 17268: LTDLDEPS=$LIBLTDL
17269: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17270:
17271:
17272:
17273:
17274:
17275: # For backwards non-gettext consistent compatibility...
17276: INCLTDL="$LTDLINCL"
17277:
1.79 paf 17278:
1.128 moko 17279: ;;
17280: ,no,no,no,)
17281: # If the included ltdl is not to be used, then use the
17282: # preinstalled libltdl we found.
1.79 paf 17283:
1.150 moko 17284: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 17285:
1.128 moko 17286: LIBLTDL=-lltdl
17287: LTDLDEPS=
17288: LTDLINCL=
17289: ;;
17290: ,no*,no,*)
1.150 moko 17291: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17292: ;;
17293: *) with_included_ltdl=no
17294: LIBLTDL="-L$with_ltdl_lib -lltdl"
17295: LTDLDEPS=
17296: LTDLINCL="-I$with_ltdl_include"
17297: ;;
17298: esac
17299: INCLTDL="$LTDLINCL"
17300:
17301: # Report our decision...
1.150 moko 17302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17303: $as_echo_n "checking where to find libltdl headers... " >&6; }
17304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17305: $as_echo "$LTDLINCL" >&6; }
17306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17307: $as_echo_n "checking where to find libltdl library... " >&6; }
17308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17309: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17310:
17311:
17312:
1.150 moko 17313: # Check whether --enable-ltdl-install was given.
17314: if test "${enable_ltdl_install+set}" = set; then :
17315: enableval=$enable_ltdl_install;
17316: fi
1.128 moko 17317:
17318:
17319: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17320: *yes*) ;;
17321: *) enable_ltdl_convenience=yes ;;
17322: esac
17323:
1.150 moko 17324: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17325: INSTALL_LTDL_TRUE=
17326: INSTALL_LTDL_FALSE='#'
17327: else
17328: INSTALL_LTDL_TRUE='#'
17329: INSTALL_LTDL_FALSE=
17330: fi
17331:
1.150 moko 17332: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17333: CONVENIENCE_LTDL_TRUE=
17334: CONVENIENCE_LTDL_FALSE='#'
17335: else
17336: CONVENIENCE_LTDL_TRUE='#'
17337: CONVENIENCE_LTDL_FALSE=
17338: fi
17339:
17340:
17341:
1.150 moko 17342: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17343:
17344:
17345:
17346:
17347: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17348: # the user used. This is so that ltdl.h can pick up the parent projects
17349: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17350: # definitions required by ltdl.c.
17351: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17352:
17353:
17354:
1.150 moko 17355: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17356: do :
17357: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17358: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17359: "
17360: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17361: cat >>confdefs.h <<_ACEOF
17362: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17363: _ACEOF
1.128 moko 17364:
1.150 moko 17365: fi
1.128 moko 17366:
1.150 moko 17367: done
1.128 moko 17368:
17369:
1.150 moko 17370: for ac_func in closedir opendir readdir
17371: do :
17372: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17373: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17374: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17375: cat >>confdefs.h <<_ACEOF
17376: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17377: _ACEOF
1.66 paf 17378:
17379: else
1.64 paf 17380:
1.66 paf 17381:
1.128 moko 17382: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17383:
1.66 paf 17384: fi
1.128 moko 17385: done
17386:
17387: for ac_func in strlcat strlcpy
1.150 moko 17388: do :
17389: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17390: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17391: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17392: cat >>confdefs.h <<_ACEOF
1.150 moko 17393: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17394: _ACEOF
17395:
17396: else
17397:
17398:
17399: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17400:
1.62 paf 17401: fi
1.128 moko 17402: done
17403:
17404:
1.64 paf 17405:
1.128 moko 17406: cat >>confdefs.h <<_ACEOF
17407: #define LT_LIBEXT "$libext"
1.62 paf 17408: _ACEOF
1.64 paf 17409:
1.128 moko 17410:
17411: name=
17412: eval "lt_libprefix=\"$libname_spec\""
17413:
17414: cat >>confdefs.h <<_ACEOF
17415: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17416: _ACEOF
1.128 moko 17417:
17418:
17419: name=ltdl
17420: eval "LTDLOPEN=\"$libname_spec\""
17421:
17422:
17423:
17424:
17425:
17426:
17427:
17428:
17429: # Only expand once:
17430:
17431:
17432:
17433:
1.150 moko 17434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17435: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17436: if ${ac_cv_c_bigendian+:} false; then :
17437: $as_echo_n "(cached) " >&6
17438: else
17439: ac_cv_c_bigendian=unknown
17440: # See if we're dealing with a universal compiler.
17441: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442: /* end confdefs.h. */
17443: #ifndef __APPLE_CC__
17444: not a universal capable compiler
17445: #endif
17446: typedef int dummy;
17447:
17448: _ACEOF
17449: if ac_fn_c_try_compile "$LINENO"; then :
17450:
17451: # Check for potential -arch flags. It is not universal unless
17452: # there are at least two -arch flags with different values.
17453: ac_arch=
17454: ac_prev=
17455: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17456: if test -n "$ac_prev"; then
17457: case $ac_word in
17458: i?86 | x86_64 | ppc | ppc64)
17459: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17460: ac_arch=$ac_word
17461: else
17462: ac_cv_c_bigendian=universal
17463: break
17464: fi
17465: ;;
17466: esac
17467: ac_prev=
17468: elif test "x$ac_word" = "x-arch"; then
17469: ac_prev=arch
17470: fi
17471: done
17472: fi
17473: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17474: if test $ac_cv_c_bigendian = unknown; then
17475: # See if sys/param.h defines the BYTE_ORDER macro.
17476: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17477: /* end confdefs.h. */
1.128 moko 17478: #include <sys/types.h>
1.150 moko 17479: #include <sys/param.h>
1.128 moko 17480:
17481: int
17482: main ()
17483: {
1.150 moko 17484: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17485: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17486: && LITTLE_ENDIAN)
17487: bogus endian macros
17488: #endif
1.64 paf 17489:
1.128 moko 17490: ;
17491: return 0;
17492: }
1.66 paf 17493: _ACEOF
1.150 moko 17494: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17495: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17497: /* end confdefs.h. */
1.128 moko 17498: #include <sys/types.h>
1.150 moko 17499: #include <sys/param.h>
1.64 paf 17500:
17501: int
17502: main ()
1.128 moko 17503: {
17504: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17505: not big endian
17506: #endif
1.128 moko 17507:
17508: ;
17509: return 0;
1.64 paf 17510: }
17511: _ACEOF
1.150 moko 17512: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17513: ac_cv_c_bigendian=yes
1.64 paf 17514: else
1.150 moko 17515: ac_cv_c_bigendian=no
17516: fi
17517: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17518: fi
17519: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520: fi
17521: if test $ac_cv_c_bigendian = unknown; then
17522: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524: /* end confdefs.h. */
17525: #include <limits.h>
1.64 paf 17526:
1.150 moko 17527: int
17528: main ()
17529: {
17530: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17531: bogus endian macros
17532: #endif
1.66 paf 17533:
1.150 moko 17534: ;
17535: return 0;
17536: }
1.62 paf 17537: _ACEOF
1.150 moko 17538: if ac_fn_c_try_compile "$LINENO"; then :
17539: # It does; now see whether it defined to _BIG_ENDIAN or not.
17540: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17541: /* end confdefs.h. */
1.150 moko 17542: #include <limits.h>
17543:
1.128 moko 17544: int
17545: main ()
17546: {
1.150 moko 17547: #ifndef _BIG_ENDIAN
17548: not big endian
17549: #endif
17550:
1.128 moko 17551: ;
17552: return 0;
17553: }
1.62 paf 17554: _ACEOF
1.150 moko 17555: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17556: ac_cv_c_bigendian=yes
1.150 moko 17557: else
17558: ac_cv_c_bigendian=no
1.128 moko 17559: fi
1.150 moko 17560: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17561: fi
1.150 moko 17562: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17563: fi
17564: if test $ac_cv_c_bigendian = unknown; then
17565: # Compile a test program.
17566: if test "$cross_compiling" = yes; then :
17567: # Try to guess by grepping values from an object file.
17568: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569: /* end confdefs.h. */
17570: short int ascii_mm[] =
17571: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17572: short int ascii_ii[] =
17573: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17574: int use_ascii (int i) {
17575: return ascii_mm[i] + ascii_ii[i];
17576: }
17577: short int ebcdic_ii[] =
17578: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17579: short int ebcdic_mm[] =
17580: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17581: int use_ebcdic (int i) {
17582: return ebcdic_mm[i] + ebcdic_ii[i];
17583: }
17584: extern int foo;
1.62 paf 17585:
1.150 moko 17586: int
17587: main ()
17588: {
17589: return use_ascii (foo) == use_ebcdic (foo);
17590: ;
17591: return 0;
17592: }
17593: _ACEOF
17594: if ac_fn_c_try_compile "$LINENO"; then :
17595: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17596: ac_cv_c_bigendian=yes
17597: fi
17598: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17599: if test "$ac_cv_c_bigendian" = unknown; then
17600: ac_cv_c_bigendian=no
17601: else
17602: # finding both strings is unlikely to happen, but who knows?
17603: ac_cv_c_bigendian=unknown
17604: fi
17605: fi
1.128 moko 17606: fi
1.150 moko 17607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17608: else
1.150 moko 17609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17610: /* end confdefs.h. */
1.150 moko 17611: $ac_includes_default
1.128 moko 17612: int
17613: main ()
17614: {
1.150 moko 17615:
17616: /* Are we little or big endian? From Harbison&Steele. */
17617: union
17618: {
17619: long int l;
17620: char c[sizeof (long int)];
17621: } u;
17622: u.l = 1;
17623: return u.c[sizeof (long int) - 1] == 1;
17624:
17625: ;
17626: return 0;
1.128 moko 17627: }
17628: _ACEOF
1.150 moko 17629: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17630: ac_cv_c_bigendian=no
17631: else
1.150 moko 17632: ac_cv_c_bigendian=yes
1.128 moko 17633: fi
1.150 moko 17634: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17635: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17636: fi
1.150 moko 17637:
17638: fi
1.66 paf 17639: fi
1.150 moko 17640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17641: $as_echo "$ac_cv_c_bigendian" >&6; }
17642: case $ac_cv_c_bigendian in #(
17643: yes)
17644:
17645: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17646:
17647: ;; #(
17648: no)
1.128 moko 17649:
1.150 moko 17650: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17651:
1.150 moko 17652: ;; #(
17653: universal)
1.128 moko 17654:
1.150 moko 17655: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17656:
1.150 moko 17657: ;; #(
17658: *)
17659: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17660: ;;
1.150 moko 17661: esac
1.66 paf 17662:
17663:
1.150 moko 17664: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17665: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17666:
1.66 paf 17667: else
1.1 paf 17668:
1.66 paf 17669: cat >>confdefs.h <<_ACEOF
1.150 moko 17670: #define size_t unsigned int
1.66 paf 17671: _ACEOF
1.62 paf 17672:
17673: fi
1.66 paf 17674:
1.156 moko 17675: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17676: if test "x$ac_cv_type_ssize_t" = xyes; then :
17677:
17678: else
17679:
17680: cat >>confdefs.h <<_ACEOF
17681: #define ssize_t int
17682: _ACEOF
17683:
17684: fi
17685:
1.159 moko 17686: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17687: case $ac_cv_c_uint8_t in #(
17688: no|yes) ;; #(
17689: *)
17690:
17691: $as_echo "#define _UINT8_T 1" >>confdefs.h
17692:
17693:
17694: cat >>confdefs.h <<_ACEOF
17695: #define uint8_t $ac_cv_c_uint8_t
17696: _ACEOF
17697: ;;
17698: esac
17699:
1.165 moko 17700: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17701: case $ac_cv_c_uint16_t in #(
17702: no|yes) ;; #(
17703: *)
17704:
17705:
17706: cat >>confdefs.h <<_ACEOF
17707: #define uint16_t $ac_cv_c_uint16_t
17708: _ACEOF
17709: ;;
17710: esac
17711:
1.156 moko 17712: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17713: case $ac_cv_c_uint32_t in #(
17714: no|yes) ;; #(
17715: *)
17716:
17717: $as_echo "#define _UINT32_T 1" >>confdefs.h
17718:
17719:
17720: cat >>confdefs.h <<_ACEOF
17721: #define uint32_t $ac_cv_c_uint32_t
17722: _ACEOF
17723: ;;
17724: esac
1.128 moko 17725:
1.159 moko 17726: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17727: case $ac_cv_c_uint64_t in #(
17728: no|yes) ;; #(
17729: *)
17730:
17731: $as_echo "#define _UINT64_T 1" >>confdefs.h
17732:
17733:
17734: cat >>confdefs.h <<_ACEOF
17735: #define uint64_t $ac_cv_c_uint64_t
17736: _ACEOF
17737: ;;
17738: esac
17739:
17740:
1.161 moko 17741: ac_header_dirent=no
17742: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17743: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17744: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17745: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17746: if eval \${$as_ac_Header+:} false; then :
17747: $as_echo_n "(cached) " >&6
17748: else
17749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17750: /* end confdefs.h. */
17751: #include <sys/types.h>
17752: #include <$ac_hdr>
17753:
17754: int
17755: main ()
17756: {
17757: if ((DIR *) 0)
17758: return 0;
17759: ;
17760: return 0;
17761: }
17762: _ACEOF
17763: if ac_fn_c_try_compile "$LINENO"; then :
17764: eval "$as_ac_Header=yes"
17765: else
17766: eval "$as_ac_Header=no"
17767: fi
17768: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769: fi
17770: eval ac_res=\$$as_ac_Header
17771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17772: $as_echo "$ac_res" >&6; }
17773: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17774: cat >>confdefs.h <<_ACEOF
17775: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17776: _ACEOF
17777:
17778: ac_header_dirent=$ac_hdr; break
17779: fi
17780:
17781: done
17782: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17783: if test $ac_header_dirent = dirent.h; then
17784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17785: $as_echo_n "checking for library containing opendir... " >&6; }
17786: if ${ac_cv_search_opendir+:} false; then :
17787: $as_echo_n "(cached) " >&6
17788: else
17789: ac_func_search_save_LIBS=$LIBS
17790: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17791: /* end confdefs.h. */
17792:
17793: /* Override any GCC internal prototype to avoid an error.
17794: Use char because int might match the return type of a GCC
17795: builtin and then its argument prototype would still apply. */
17796: #ifdef __cplusplus
17797: extern "C"
17798: #endif
17799: char opendir ();
17800: int
17801: main ()
17802: {
17803: return opendir ();
17804: ;
17805: return 0;
17806: }
17807: _ACEOF
17808: for ac_lib in '' dir; do
17809: if test -z "$ac_lib"; then
17810: ac_res="none required"
17811: else
17812: ac_res=-l$ac_lib
17813: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17814: fi
17815: if ac_fn_c_try_link "$LINENO"; then :
17816: ac_cv_search_opendir=$ac_res
17817: fi
17818: rm -f core conftest.err conftest.$ac_objext \
17819: conftest$ac_exeext
17820: if ${ac_cv_search_opendir+:} false; then :
17821: break
17822: fi
17823: done
17824: if ${ac_cv_search_opendir+:} false; then :
17825:
17826: else
17827: ac_cv_search_opendir=no
17828: fi
17829: rm conftest.$ac_ext
17830: LIBS=$ac_func_search_save_LIBS
17831: fi
17832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17833: $as_echo "$ac_cv_search_opendir" >&6; }
17834: ac_res=$ac_cv_search_opendir
17835: if test "$ac_res" != no; then :
17836: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17837:
17838: fi
17839:
17840: else
17841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17842: $as_echo_n "checking for library containing opendir... " >&6; }
17843: if ${ac_cv_search_opendir+:} false; then :
17844: $as_echo_n "(cached) " >&6
17845: else
17846: ac_func_search_save_LIBS=$LIBS
17847: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848: /* end confdefs.h. */
17849:
17850: /* Override any GCC internal prototype to avoid an error.
17851: Use char because int might match the return type of a GCC
17852: builtin and then its argument prototype would still apply. */
17853: #ifdef __cplusplus
17854: extern "C"
17855: #endif
17856: char opendir ();
17857: int
17858: main ()
17859: {
17860: return opendir ();
17861: ;
17862: return 0;
17863: }
17864: _ACEOF
17865: for ac_lib in '' x; do
17866: if test -z "$ac_lib"; then
17867: ac_res="none required"
17868: else
17869: ac_res=-l$ac_lib
17870: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17871: fi
17872: if ac_fn_c_try_link "$LINENO"; then :
17873: ac_cv_search_opendir=$ac_res
17874: fi
17875: rm -f core conftest.err conftest.$ac_objext \
17876: conftest$ac_exeext
17877: if ${ac_cv_search_opendir+:} false; then :
17878: break
17879: fi
17880: done
17881: if ${ac_cv_search_opendir+:} false; then :
17882:
17883: else
17884: ac_cv_search_opendir=no
17885: fi
17886: rm conftest.$ac_ext
17887: LIBS=$ac_func_search_save_LIBS
17888: fi
17889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17890: $as_echo "$ac_cv_search_opendir" >&6; }
17891: ac_res=$ac_cv_search_opendir
17892: if test "$ac_res" != no; then :
17893: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17894:
17895: fi
17896:
17897: fi
17898:
17899:
17900:
17901: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17902: #include <sys/types.h>
17903: #ifdef HAVE_DIRENT_H
17904: # include <dirent.h>
17905: #else
17906: # define dirent direct
17907: # ifdef HAVE_SYS_NDIR_H
17908: # include <sys/ndir.h>
17909: # endif
17910: # ifdef HAVE_SYS_DIR_H
17911: # include <sys/dir.h>
17912: # endif
17913: # ifdef HAVE_NDIR_H
17914: # include <ndir.h>
17915: # endif
17916: #endif
17917:
17918: "
17919: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17920:
17921: cat >>confdefs.h <<_ACEOF
17922: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17923: _ACEOF
17924:
17925:
17926: fi
17927:
17928:
1.159 moko 17929:
1.171 moko 17930: # Check whether --enable-largefile was given.
17931: if test "${enable_largefile+set}" = set; then :
17932: enableval=$enable_largefile;
17933: fi
17934:
17935: if test "$enable_largefile" != no; then
17936:
17937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17938: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17939: if ${ac_cv_sys_largefile_CC+:} false; then :
17940: $as_echo_n "(cached) " >&6
17941: else
17942: ac_cv_sys_largefile_CC=no
17943: if test "$GCC" != yes; then
17944: ac_save_CC=$CC
17945: while :; do
17946: # IRIX 6.2 and later do not support large files by default,
17947: # so use the C compiler's -n32 option if that helps.
17948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949: /* end confdefs.h. */
17950: #include <sys/types.h>
17951: /* Check that off_t can represent 2**63 - 1 correctly.
17952: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17953: since some C++ compilers masquerading as C compilers
17954: incorrectly reject 9223372036854775807. */
1.191 moko 17955: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 17956: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17957: && LARGE_OFF_T % 2147483647 == 1)
17958: ? 1 : -1];
17959: int
17960: main ()
17961: {
17962:
17963: ;
17964: return 0;
17965: }
17966: _ACEOF
17967: if ac_fn_c_try_compile "$LINENO"; then :
17968: break
17969: fi
17970: rm -f core conftest.err conftest.$ac_objext
17971: CC="$CC -n32"
17972: if ac_fn_c_try_compile "$LINENO"; then :
17973: ac_cv_sys_largefile_CC=' -n32'; break
17974: fi
17975: rm -f core conftest.err conftest.$ac_objext
17976: break
17977: done
17978: CC=$ac_save_CC
17979: rm -f conftest.$ac_ext
17980: fi
17981: fi
17982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17983: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17984: if test "$ac_cv_sys_largefile_CC" != no; then
17985: CC=$CC$ac_cv_sys_largefile_CC
17986: fi
17987:
17988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17989: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17990: if ${ac_cv_sys_file_offset_bits+:} false; then :
17991: $as_echo_n "(cached) " >&6
17992: else
17993: while :; do
17994: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995: /* end confdefs.h. */
17996: #include <sys/types.h>
17997: /* Check that off_t can represent 2**63 - 1 correctly.
17998: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17999: since some C++ compilers masquerading as C compilers
18000: incorrectly reject 9223372036854775807. */
1.191 moko 18001: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18002: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18003: && LARGE_OFF_T % 2147483647 == 1)
18004: ? 1 : -1];
18005: int
18006: main ()
18007: {
18008:
18009: ;
18010: return 0;
18011: }
18012: _ACEOF
18013: if ac_fn_c_try_compile "$LINENO"; then :
18014: ac_cv_sys_file_offset_bits=no; break
18015: fi
18016: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018: /* end confdefs.h. */
18019: #define _FILE_OFFSET_BITS 64
18020: #include <sys/types.h>
18021: /* Check that off_t can represent 2**63 - 1 correctly.
18022: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18023: since some C++ compilers masquerading as C compilers
18024: incorrectly reject 9223372036854775807. */
1.191 moko 18025: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18026: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18027: && LARGE_OFF_T % 2147483647 == 1)
18028: ? 1 : -1];
18029: int
18030: main ()
18031: {
18032:
18033: ;
18034: return 0;
18035: }
18036: _ACEOF
18037: if ac_fn_c_try_compile "$LINENO"; then :
18038: ac_cv_sys_file_offset_bits=64; break
18039: fi
18040: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041: ac_cv_sys_file_offset_bits=unknown
18042: break
18043: done
18044: fi
18045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18046: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18047: case $ac_cv_sys_file_offset_bits in #(
18048: no | unknown) ;;
18049: *)
18050: cat >>confdefs.h <<_ACEOF
18051: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18052: _ACEOF
18053: ;;
18054: esac
18055: rm -rf conftest*
18056: if test $ac_cv_sys_file_offset_bits = unknown; then
18057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18058: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18059: if ${ac_cv_sys_large_files+:} false; then :
18060: $as_echo_n "(cached) " >&6
18061: else
18062: while :; do
18063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064: /* end confdefs.h. */
18065: #include <sys/types.h>
18066: /* Check that off_t can represent 2**63 - 1 correctly.
18067: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18068: since some C++ compilers masquerading as C compilers
18069: incorrectly reject 9223372036854775807. */
1.191 moko 18070: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18071: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18072: && LARGE_OFF_T % 2147483647 == 1)
18073: ? 1 : -1];
18074: int
18075: main ()
18076: {
18077:
18078: ;
18079: return 0;
18080: }
18081: _ACEOF
18082: if ac_fn_c_try_compile "$LINENO"; then :
18083: ac_cv_sys_large_files=no; break
18084: fi
18085: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18086: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087: /* end confdefs.h. */
18088: #define _LARGE_FILES 1
18089: #include <sys/types.h>
18090: /* Check that off_t can represent 2**63 - 1 correctly.
18091: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18092: since some C++ compilers masquerading as C compilers
18093: incorrectly reject 9223372036854775807. */
1.191 moko 18094: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18095: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18096: && LARGE_OFF_T % 2147483647 == 1)
18097: ? 1 : -1];
18098: int
18099: main ()
18100: {
18101:
18102: ;
18103: return 0;
18104: }
18105: _ACEOF
18106: if ac_fn_c_try_compile "$LINENO"; then :
18107: ac_cv_sys_large_files=1; break
18108: fi
18109: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18110: ac_cv_sys_large_files=unknown
18111: break
18112: done
18113: fi
18114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18115: $as_echo "$ac_cv_sys_large_files" >&6; }
18116: case $ac_cv_sys_large_files in #(
18117: no | unknown) ;;
18118: *)
18119: cat >>confdefs.h <<_ACEOF
18120: #define _LARGE_FILES $ac_cv_sys_large_files
18121: _ACEOF
18122: ;;
18123: esac
18124: rm -rf conftest*
18125: fi
18126:
18127:
18128: fi
18129:
18130:
1.159 moko 18131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18132: $as_echo_n "checking for ANSI C header files... " >&6; }
18133: if ${ac_cv_header_stdc+:} false; then :
18134: $as_echo_n "(cached) " >&6
18135: else
18136: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137: /* end confdefs.h. */
18138: #include <stdlib.h>
18139: #include <stdarg.h>
18140: #include <string.h>
18141: #include <float.h>
18142:
18143: int
18144: main ()
18145: {
18146:
18147: ;
18148: return 0;
18149: }
18150: _ACEOF
18151: if ac_fn_c_try_compile "$LINENO"; then :
18152: ac_cv_header_stdc=yes
18153: else
18154: ac_cv_header_stdc=no
18155: fi
18156: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18157:
18158: if test $ac_cv_header_stdc = yes; then
18159: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18160: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18161: /* end confdefs.h. */
18162: #include <string.h>
18163:
18164: _ACEOF
18165: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18166: $EGREP "memchr" >/dev/null 2>&1; then :
18167:
18168: else
18169: ac_cv_header_stdc=no
18170: fi
18171: rm -f conftest*
18172:
18173: fi
18174:
18175: if test $ac_cv_header_stdc = yes; then
18176: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18177: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178: /* end confdefs.h. */
18179: #include <stdlib.h>
18180:
18181: _ACEOF
18182: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18183: $EGREP "free" >/dev/null 2>&1; then :
18184:
18185: else
18186: ac_cv_header_stdc=no
18187: fi
18188: rm -f conftest*
18189:
18190: fi
18191:
18192: if test $ac_cv_header_stdc = yes; then
18193: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18194: if test "$cross_compiling" = yes; then :
18195: :
18196: else
18197: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198: /* end confdefs.h. */
18199: #include <ctype.h>
18200: #include <stdlib.h>
18201: #if ((' ' & 0x0FF) == 0x020)
18202: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18203: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18204: #else
18205: # define ISLOWER(c) \
18206: (('a' <= (c) && (c) <= 'i') \
18207: || ('j' <= (c) && (c) <= 'r') \
18208: || ('s' <= (c) && (c) <= 'z'))
18209: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18210: #endif
18211:
18212: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18213: int
18214: main ()
18215: {
18216: int i;
18217: for (i = 0; i < 256; i++)
18218: if (XOR (islower (i), ISLOWER (i))
18219: || toupper (i) != TOUPPER (i))
18220: return 2;
18221: return 0;
18222: }
18223: _ACEOF
18224: if ac_fn_c_try_run "$LINENO"; then :
18225:
18226: else
18227: ac_cv_header_stdc=no
18228: fi
18229: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18230: conftest.$ac_objext conftest.beam conftest.$ac_ext
18231: fi
18232:
18233: fi
18234: fi
18235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18236: $as_echo "$ac_cv_header_stdc" >&6; }
18237: if test $ac_cv_header_stdc = yes; then
18238:
18239: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18240:
18241: fi
1.128 moko 18242:
1.150 moko 18243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18244: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18245: if ${ac_cv_header_time+:} false; then :
18246: $as_echo_n "(cached) " >&6
1.62 paf 18247: else
1.150 moko 18248: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18249: /* end confdefs.h. */
1.66 paf 18250: #include <sys/types.h>
18251: #include <sys/time.h>
18252: #include <time.h>
1.62 paf 18253:
18254: int
18255: main ()
18256: {
1.66 paf 18257: if ((struct tm *) 0)
18258: return 0;
1.62 paf 18259: ;
18260: return 0;
18261: }
18262: _ACEOF
1.150 moko 18263: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 18264: ac_cv_header_time=yes
1.1 paf 18265: else
1.150 moko 18266: ac_cv_header_time=no
1.1 paf 18267: fi
1.150 moko 18268: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18269: fi
1.150 moko 18270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18271: $as_echo "$ac_cv_header_time" >&6; }
1.66 paf 18272: if test $ac_cv_header_time = yes; then
1.1 paf 18273:
1.150 moko 18274: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.66 paf 18275:
1.1 paf 18276: fi
1.66 paf 18277:
1.1 paf 18278:
1.159 moko 18279: 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
18280: do :
18281: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18282: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18283: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18284: cat >>confdefs.h <<_ACEOF
18285: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18286: _ACEOF
18287:
18288: fi
1.150 moko 18289:
1.159 moko 18290: done
18291:
18292: for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h
18293: do :
18294: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18295: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18296: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18297: cat >>confdefs.h <<_ACEOF
18298: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18299: _ACEOF
18300:
18301: fi
18302:
18303: done
18304:
1.164 moko 18305: for ac_header in errno.h dirent.h fcntl.h io.h sys/file.h sys/locking.h sys/select.h sys/resource.h sys/wait.h
1.159 moko 18306: do :
18307: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18308: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18309: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18310: cat >>confdefs.h <<_ACEOF
18311: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18312: _ACEOF
18313:
18314: fi
18315:
18316: done
18317:
1.163 moko 18318: for ac_header in sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 18319: do :
18320: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18321: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18322: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 18323: cat >>confdefs.h <<_ACEOF
1.150 moko 18324: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18325: _ACEOF
18326:
18327: fi
18328:
1.66 paf 18329: done
1.62 paf 18330:
18331:
18332:
1.66 paf 18333: case "$host" in
1.107 misha 18334: *-freebsd4*)
18335:
1.150 moko 18336: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 18337:
18338: ;;
1.66 paf 18339: *-sunos5.6* | *-solaris2.6*)
1.150 moko 18340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
18341: $as_echo_n "checking for main in -lxnet... " >&6; }
18342: if ${ac_cv_lib_xnet_main+:} false; then :
18343: $as_echo_n "(cached) " >&6
1.62 paf 18344: else
1.66 paf 18345: ac_check_lib_save_LIBS=$LIBS
18346: LIBS="-lxnet $LIBS"
1.150 moko 18347: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18348: /* end confdefs.h. */
18349:
1.66 paf 18350:
18351: int
18352: main ()
18353: {
1.150 moko 18354: return main ();
1.66 paf 18355: ;
18356: return 0;
18357: }
1.62 paf 18358: _ACEOF
1.150 moko 18359: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18360: ac_cv_lib_xnet_main=yes
1.62 paf 18361: else
1.150 moko 18362: ac_cv_lib_xnet_main=no
1.62 paf 18363: fi
1.150 moko 18364: rm -f core conftest.err conftest.$ac_objext \
18365: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18366: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18367: fi
1.150 moko 18368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
18369: $as_echo "$ac_cv_lib_xnet_main" >&6; }
18370: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 18371: cat >>confdefs.h <<_ACEOF
1.66 paf 18372: #define HAVE_LIBXNET 1
1.62 paf 18373: _ACEOF
1.1 paf 18374:
1.66 paf 18375: LIBS="-lxnet $LIBS"
18376:
1.1 paf 18377: fi
18378:
1.66 paf 18379: ;;
18380: *-sunos5* | *-solaris2*)
1.150 moko 18381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
18382: $as_echo_n "checking for main in -lsocket... " >&6; }
18383: if ${ac_cv_lib_socket_main+:} false; then :
18384: $as_echo_n "(cached) " >&6
1.62 paf 18385: else
1.66 paf 18386: ac_check_lib_save_LIBS=$LIBS
18387: LIBS="-lsocket $LIBS"
1.150 moko 18388: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18389: /* end confdefs.h. */
1.66 paf 18390:
18391:
1.62 paf 18392: int
18393: main ()
18394: {
1.150 moko 18395: return main ();
1.62 paf 18396: ;
18397: return 0;
18398: }
18399: _ACEOF
1.150 moko 18400: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18401: ac_cv_lib_socket_main=yes
1.1 paf 18402: else
1.150 moko 18403: ac_cv_lib_socket_main=no
1.1 paf 18404: fi
1.150 moko 18405: rm -f core conftest.err conftest.$ac_objext \
18406: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18407: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18408: fi
1.150 moko 18409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
18410: $as_echo "$ac_cv_lib_socket_main" >&6; }
18411: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 18412: cat >>confdefs.h <<_ACEOF
18413: #define HAVE_LIBSOCKET 1
18414: _ACEOF
1.1 paf 18415:
1.66 paf 18416: LIBS="-lsocket $LIBS"
1.1 paf 18417:
18418: fi
18419:
1.150 moko 18420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
18421: $as_echo_n "checking for main in -lnsl... " >&6; }
18422: if ${ac_cv_lib_nsl_main+:} false; then :
18423: $as_echo_n "(cached) " >&6
1.62 paf 18424: else
1.66 paf 18425: ac_check_lib_save_LIBS=$LIBS
18426: LIBS="-lnsl $LIBS"
1.150 moko 18427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18428: /* end confdefs.h. */
1.66 paf 18429:
18430:
1.62 paf 18431: int
18432: main ()
18433: {
1.150 moko 18434: return main ();
1.62 paf 18435: ;
18436: return 0;
18437: }
18438: _ACEOF
1.150 moko 18439: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18440: ac_cv_lib_nsl_main=yes
1.30 paf 18441: else
1.150 moko 18442: ac_cv_lib_nsl_main=no
1.30 paf 18443: fi
1.150 moko 18444: rm -f core conftest.err conftest.$ac_objext \
18445: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18446: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18447: fi
1.150 moko 18448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
18449: $as_echo "$ac_cv_lib_nsl_main" >&6; }
18450: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 18451: cat >>confdefs.h <<_ACEOF
18452: #define HAVE_LIBNSL 1
18453: _ACEOF
1.30 paf 18454:
1.66 paf 18455: LIBS="-lnsl $LIBS"
1.30 paf 18456:
18457: fi
18458:
1.66 paf 18459: ;;
18460: *-nec-sysv4*)
1.150 moko 18461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18462: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18463: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18464: $as_echo_n "(cached) " >&6
1.62 paf 18465: else
1.66 paf 18466: ac_check_lib_save_LIBS=$LIBS
18467: LIBS="-lnsl $LIBS"
1.150 moko 18468: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18469: /* end confdefs.h. */
1.66 paf 18470:
1.150 moko 18471: /* Override any GCC internal prototype to avoid an error.
18472: Use char because int might match the return type of a GCC
18473: builtin and then its argument prototype would still apply. */
1.66 paf 18474: #ifdef __cplusplus
18475: extern "C"
18476: #endif
18477: char gethostbyname ();
1.62 paf 18478: int
18479: main ()
18480: {
1.150 moko 18481: return gethostbyname ();
1.62 paf 18482: ;
18483: return 0;
18484: }
18485: _ACEOF
1.150 moko 18486: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18487: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18488: else
1.150 moko 18489: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18490: fi
1.150 moko 18491: rm -f core conftest.err conftest.$ac_objext \
18492: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18493: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18494: fi
1.150 moko 18495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18496: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18497: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 18498: cat >>confdefs.h <<_ACEOF
18499: #define HAVE_LIBNSL 1
18500: _ACEOF
1.30 paf 18501:
1.66 paf 18502: LIBS="-lnsl $LIBS"
1.30 paf 18503:
18504: fi
18505:
1.150 moko 18506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18507: $as_echo_n "checking for socket in -lsocket... " >&6; }
18508: if ${ac_cv_lib_socket_socket+:} false; then :
18509: $as_echo_n "(cached) " >&6
1.8 paf 18510: else
1.66 paf 18511: ac_check_lib_save_LIBS=$LIBS
18512: LIBS="-lsocket $LIBS"
1.150 moko 18513: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18514: /* end confdefs.h. */
18515:
1.150 moko 18516: /* Override any GCC internal prototype to avoid an error.
18517: Use char because int might match the return type of a GCC
18518: builtin and then its argument prototype would still apply. */
1.66 paf 18519: #ifdef __cplusplus
18520: extern "C"
18521: #endif
18522: char socket ();
1.62 paf 18523: int
18524: main ()
18525: {
1.150 moko 18526: return socket ();
1.62 paf 18527: ;
18528: return 0;
18529: }
18530: _ACEOF
1.150 moko 18531: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18532: ac_cv_lib_socket_socket=yes
1.8 paf 18533: else
1.150 moko 18534: ac_cv_lib_socket_socket=no
1.8 paf 18535: fi
1.150 moko 18536: rm -f core conftest.err conftest.$ac_objext \
18537: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18538: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18539: fi
1.150 moko 18540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18541: $as_echo "$ac_cv_lib_socket_socket" >&6; }
18542: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 18543: cat >>confdefs.h <<_ACEOF
1.128 moko 18544: #define HAVE_LIBSOCKET 1
1.66 paf 18545: _ACEOF
18546:
1.128 moko 18547: LIBS="-lsocket $LIBS"
1.66 paf 18548:
1.62 paf 18549: fi
18550:
1.66 paf 18551: ;;
1.128 moko 18552: *-cygwin*)
18553:
1.150 moko 18554: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 18555:
1.66 paf 18556: ;;
18557: esac
1.1 paf 18558:
1.150 moko 18559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18560: $as_echo_n "checking for sin in -lm... " >&6; }
18561: if ${ac_cv_lib_m_sin+:} false; then :
18562: $as_echo_n "(cached) " >&6
1.1 paf 18563: else
1.62 paf 18564: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18565: LIBS="-lm $LIBS"
1.150 moko 18566: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18567: /* end confdefs.h. */
18568:
1.150 moko 18569: /* Override any GCC internal prototype to avoid an error.
18570: Use char because int might match the return type of a GCC
18571: builtin and then its argument prototype would still apply. */
1.66 paf 18572: #ifdef __cplusplus
18573: extern "C"
18574: #endif
18575: char sin ();
1.62 paf 18576: int
18577: main ()
18578: {
1.150 moko 18579: return sin ();
1.62 paf 18580: ;
18581: return 0;
18582: }
18583: _ACEOF
1.150 moko 18584: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18585: ac_cv_lib_m_sin=yes
1.62 paf 18586: else
1.150 moko 18587: ac_cv_lib_m_sin=no
1.62 paf 18588: fi
1.150 moko 18589: rm -f core conftest.err conftest.$ac_objext \
18590: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18591: LIBS=$ac_check_lib_save_LIBS
18592: fi
1.150 moko 18593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18594: $as_echo "$ac_cv_lib_m_sin" >&6; }
18595: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 18596: cat >>confdefs.h <<_ACEOF
1.66 paf 18597: #define HAVE_LIBM 1
1.62 paf 18598: _ACEOF
1.1 paf 18599:
1.66 paf 18600: LIBS="-lm $LIBS"
1.1 paf 18601:
18602: fi
18603:
1.150 moko 18604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18605: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18606: if ${ac_cv_lib_crypt_crypt+:} false; then :
18607: $as_echo_n "(cached) " >&6
1.1 paf 18608: else
1.62 paf 18609: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18610: LIBS="-lcrypt $LIBS"
1.150 moko 18611: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18612: /* end confdefs.h. */
18613:
1.150 moko 18614: /* Override any GCC internal prototype to avoid an error.
18615: Use char because int might match the return type of a GCC
18616: builtin and then its argument prototype would still apply. */
1.66 paf 18617: #ifdef __cplusplus
18618: extern "C"
18619: #endif
18620: char crypt ();
1.62 paf 18621: int
18622: main ()
18623: {
1.150 moko 18624: return crypt ();
1.62 paf 18625: ;
18626: return 0;
18627: }
18628: _ACEOF
1.150 moko 18629: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18630: ac_cv_lib_crypt_crypt=yes
1.62 paf 18631: else
1.150 moko 18632: ac_cv_lib_crypt_crypt=no
1.62 paf 18633: fi
1.150 moko 18634: rm -f core conftest.err conftest.$ac_objext \
18635: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18636: LIBS=$ac_check_lib_save_LIBS
18637: fi
1.150 moko 18638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18639: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18640: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 18641: cat >>confdefs.h <<_ACEOF
1.66 paf 18642: #define HAVE_LIBCRYPT 1
1.62 paf 18643: _ACEOF
1.1 paf 18644:
1.66 paf 18645: LIBS="-lcrypt $LIBS"
18646:
18647: fi
18648:
18649:
18650:
1.159 moko 18651: for ac_func in flock _locking fcntl lockf ftruncate fchmod
18652: do :
18653: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18654: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18655: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18656: cat >>confdefs.h <<_ACEOF
18657: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18658: _ACEOF
18659:
18660: fi
18661: done
1.66 paf 18662:
1.159 moko 18663: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv
1.150 moko 18664: do :
18665: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18666: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18667: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18668: cat >>confdefs.h <<_ACEOF
1.150 moko 18669: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18670: _ACEOF
1.1 paf 18671:
1.66 paf 18672: fi
18673: done
18674:
1.1 paf 18675:
18676:
1.159 moko 18677:
1.67 paf 18678: pa_func=sigsetjmp
1.150 moko 18679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18680: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
18681: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18682: /* end confdefs.h. */
18683:
18684: #ifdef HAVE_SETJMP_H
18685: # include <setjmp.h>
18686: #endif
18687:
18688: int
18689: main ()
18690: {
18691:
18692: $pa_func(0,0);
18693:
18694: ;
18695: return 0;
18696: }
18697: _ACEOF
1.150 moko 18698: if ac_fn_c_try_compile "$LINENO"; then :
18699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18700: $as_echo "yes" >&6; }
1.67 paf 18701: cat >>confdefs.h <<_ACEOF
1.150 moko 18702: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18703: _ACEOF
18704:
18705:
18706: else
1.150 moko 18707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18708: $as_echo "no" >&6; }
1.67 paf 18709:
18710: fi
1.150 moko 18711: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18712:
18713:
18714:
1.159 moko 18715:
1.150 moko 18716: ac_ext=cpp
1.67 paf 18717: ac_cpp='$CXXCPP $CPPFLAGS'
18718: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18721:
18722:
18723:
1.188 moko 18724: for pa_func in trunc round sign isfinite
1.67 paf 18725: do
18726:
1.150 moko 18727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18728: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
18729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18730: /* end confdefs.h. */
18731:
18732: #ifdef HAVE_MATH_H
18733: # include <math.h>
18734: #endif
18735:
18736: int
18737: main ()
18738: {
18739:
18740: double result=$pa_func(1.6);
18741:
18742: ;
18743: return 0;
18744: }
18745: _ACEOF
1.150 moko 18746: if ac_fn_cxx_try_compile "$LINENO"; then :
18747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18748: $as_echo "yes" >&6; }
1.67 paf 18749: cat >>confdefs.h <<_ACEOF
1.150 moko 18750: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18751: _ACEOF
1.66 paf 18752:
1.62 paf 18753: else
1.150 moko 18754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18755: $as_echo "no" >&6; }
1.62 paf 18756:
18757: fi
1.150 moko 18758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18759:
18760: done
18761:
18762: ac_ext=c
18763: ac_cpp='$CPP $CPPFLAGS'
18764: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18765: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18766: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18767:
18768:
18769:
18770: for ac_func in qsort
18771: do :
18772: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18773: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18774: cat >>confdefs.h <<_ACEOF
1.150 moko 18775: #define HAVE_QSORT 1
1.62 paf 18776: _ACEOF
1.1 paf 18777:
1.66 paf 18778: else
1.150 moko 18779: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18780: fi
1.66 paf 18781: done
1.1 paf 18782:
18783:
1.62 paf 18784:
1.159 moko 18785:
1.177 moko 18786: ac_ext=cpp
18787: ac_cpp='$CXXCPP $CPPFLAGS'
18788: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18789: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18790: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18791:
1.150 moko 18792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18793: $as_echo_n "checking for timezone variable... " >&6; }
18794: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18795: /* end confdefs.h. */
1.66 paf 18796: #include <time.h>
1.62 paf 18797: int
18798: main ()
18799: {
1.177 moko 18800: int test=timezone;
1.62 paf 18801: ;
18802: return 0;
18803: }
18804: _ACEOF
1.177 moko 18805: if ac_fn_cxx_try_compile "$LINENO"; then :
1.150 moko 18806: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18808: $as_echo "yes" >&6; }
1.62 paf 18809: else
1.150 moko 18810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18811: $as_echo "no" >&6; }
1.62 paf 18812: fi
1.150 moko 18813: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.177 moko 18814: ac_ext=c
18815: ac_cpp='$CPP $CPPFLAGS'
18816: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18817: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18818: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18819:
1.1 paf 18820:
1.176 moko 18821: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18822: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
1.150 moko 18823: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18824: /* end confdefs.h. */
1.66 paf 18825: #include <time.h>
1.62 paf 18826: int
18827: main ()
18828: {
1.176 moko 18829: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18830: ;
18831: return 0;
18832: }
18833: _ACEOF
1.150 moko 18834: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18835: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18837: $as_echo "yes" >&6; }
1.62 paf 18838: else
1.150 moko 18839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18840: $as_echo "no" >&6; }
1.62 paf 18841: fi
1.150 moko 18842: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18843:
1.176 moko 18844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18845: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
1.150 moko 18846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18847: /* end confdefs.h. */
1.66 paf 18848: #include <time.h>
1.62 paf 18849: int
18850: main ()
18851: {
1.176 moko 18852: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18853: ;
18854: return 0;
18855: }
18856: _ACEOF
1.150 moko 18857: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18858: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18860: $as_echo "yes" >&6; }
1.62 paf 18861: else
1.150 moko 18862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863: $as_echo "no" >&6; }
1.62 paf 18864: fi
1.150 moko 18865: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18866:
1.176 moko 18867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
18868: $as_echo_n "checking for 0..9999 year date range support... " >&6; }
18869: if test "$cross_compiling" = yes; then :
18870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18871: $as_echo "no" >&6; }
18872: else
18873: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18874: /* end confdefs.h. */
1.176 moko 18875:
18876: #include <string.h>
1.66 paf 18877: #include <time.h>
1.176 moko 18878:
18879: int main() {
18880: struct tm tmL,tmH;
18881: memset(&tmL, 0, sizeof(tmL));
18882: memset(&tmH, 0, sizeof(tmH));
18883: tmL.tm_year=-1900;
18884: tmL.tm_mon=-1;
18885: tmH.tm_year=9999-1900;
18886: tmH.tm_mon=12-1;
18887: tmH.tm_mday=31;
18888: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 18889: }
1.176 moko 18890:
1.62 paf 18891: _ACEOF
1.176 moko 18892: if ac_fn_c_try_run "$LINENO"; then :
18893: $as_echo "#define PA_DATE64 1" >>confdefs.h
1.158 moko 18894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18895: $as_echo "yes" >&6; }
1.62 paf 18896: else
1.150 moko 18897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898: $as_echo "no" >&6; }
1.62 paf 18899: fi
1.176 moko 18900: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18901: conftest.$ac_objext conftest.beam conftest.$ac_ext
18902: fi
1.31 paf 18903:
1.1 paf 18904:
18905:
18906:
1.62 paf 18907:
18908:
18909:
1.150 moko 18910: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18911:
18912:
1.173 moko 18913: 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/curl/Makefile src/lib/punycode/Makefile src/lib/memcached/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 18914:
18915: cat >confcache <<\_ACEOF
1.1 paf 18916: # This file is a shell script that caches the results of configure
18917: # tests run on this system so they can be shared between configure
1.62 paf 18918: # scripts and configure runs, see configure's option --config-cache.
18919: # It is not useful on other systems. If it contains results you don't
18920: # want to keep, you may remove or edit it.
1.1 paf 18921: #
1.62 paf 18922: # config.status only pays attention to the cache file if you give it
18923: # the --recheck option to rerun configure.
1.1 paf 18924: #
1.62 paf 18925: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18926: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18927: # following values.
18928:
18929: _ACEOF
18930:
1.1 paf 18931: # The following way of writing the cache mishandles newlines in values,
18932: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 18933: # So, we kill variables containing newlines.
1.1 paf 18934: # Ultrix sh set writes to stderr and can't be redirected directly,
18935: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 18936: (
18937: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18938: eval ac_val=\$$ac_var
18939: case $ac_val in #(
18940: *${as_nl}*)
18941: case $ac_var in #(
18942: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18943: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18944: esac
18945: case $ac_var in #(
18946: _ | IFS | as_nl) ;; #(
18947: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18948: *) { eval $ac_var=; unset $ac_var;} ;;
18949: esac ;;
18950: esac
18951: done
18952:
1.62 paf 18953: (set) 2>&1 |
1.150 moko 18954: case $as_nl`(ac_space=' '; set) 2>&1` in #(
18955: *${as_nl}ac_space=\ *)
18956: # `set' does not quote correctly, so add quotes: double-quote
18957: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 18958: sed -n \
1.86 paf 18959: "s/'/'\\\\''/g;
18960: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 18961: ;; #(
1.62 paf 18962: *)
18963: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 18964: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 18965: ;;
1.150 moko 18966: esac |
18967: sort
18968: ) |
1.62 paf 18969: sed '
1.150 moko 18970: /^ac_cv_env_/b end
1.62 paf 18971: t clear
1.150 moko 18972: :clear
1.62 paf 18973: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18974: t end
1.150 moko 18975: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18976: :end' >>confcache
18977: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18978: if test -w "$cache_file"; then
18979: if test "x$cache_file" != "x/dev/null"; then
18980: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18981: $as_echo "$as_me: updating cache $cache_file" >&6;}
18982: if test ! -f "$cache_file" || test -h "$cache_file"; then
18983: cat confcache >"$cache_file"
18984: else
18985: case $cache_file in #(
18986: */* | ?:*)
18987: mv -f confcache "$cache_file"$$ &&
18988: mv -f "$cache_file"$$ "$cache_file" ;; #(
18989: *)
18990: mv -f confcache "$cache_file" ;;
18991: esac
18992: fi
18993: fi
1.1 paf 18994: else
1.150 moko 18995: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18996: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 18997: fi
18998: fi
18999: rm -f confcache
19000:
19001: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19002: # Let make expand exec_prefix.
19003: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19004:
1.62 paf 19005: DEFS=-DHAVE_CONFIG_H
19006:
19007: ac_libobjs=
19008: ac_ltlibobjs=
19009: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19010: # 1. Remove the extension, and $U if already installed.
1.150 moko 19011: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19012: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19013: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19014: # will be set to the directory where LIBOBJS objects are built.
19015: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19016: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 19017: done
19018: LIBOBJS=$ac_libobjs
19019:
19020: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19021:
19022:
1.187 moko 19023: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19024: $as_echo_n "checking that generated files are newer than configure... " >&6; }
19025: if test -n "$am_sleep_pid"; then
19026: # Hide warnings about reused PIDs.
19027: wait $am_sleep_pid 2>/dev/null
19028: fi
19029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19030: $as_echo "done" >&6; }
1.150 moko 19031: if test -n "$EXEEXT"; then
19032: am__EXEEXT_TRUE=
19033: am__EXEEXT_FALSE='#'
19034: else
19035: am__EXEEXT_TRUE='#'
19036: am__EXEEXT_FALSE=
19037: fi
19038:
1.62 paf 19039: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 19040: as_fn_error $? "conditional \"AMDEP\" was never defined.
19041: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19042: fi
1.66 paf 19043: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 19044: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19045: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19046: fi
1.66 paf 19047: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 19048: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19049: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19050: fi
1.122 moko 19051: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 19052: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
19053: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19054: fi
1.128 moko 19055: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 19056: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
19057: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19058: fi
19059: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 19060: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
19061: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19062: fi
1.150 moko 19063: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 19064:
19065: _ltdl_libobjs=
19066: _ltdl_ltlibobjs=
19067: if test -n "$_LT_LIBOBJS"; then
19068: # Remove the extension.
19069: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19070: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19071: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19072: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19073: done
19074: fi
19075: ltdl_LIBOBJS=$_ltdl_libobjs
19076:
19077: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19078:
19079:
1.62 paf 19080:
1.150 moko 19081:
19082: : "${CONFIG_STATUS=./config.status}"
19083: ac_write_fail=0
1.62 paf 19084: ac_clean_files_save=$ac_clean_files
19085: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 19086: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19087: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19088: as_write_fail=0
19089: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 19090: #! $SHELL
19091: # Generated by $as_me.
19092: # Run this file to recreate the current configuration.
19093: # Compiler output produced by configure, useful for debugging
19094: # configure, is in config.log if it exists.
19095:
19096: debug=false
19097: ac_cs_recheck=false
19098: ac_cs_silent=false
1.150 moko 19099:
1.62 paf 19100: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 19101: export SHELL
19102: _ASEOF
19103: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19104: ## -------------------- ##
19105: ## M4sh Initialization. ##
19106: ## -------------------- ##
1.62 paf 19107:
1.150 moko 19108: # Be more Bourne compatible
19109: DUALCASE=1; export DUALCASE # for MKS sh
19110: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 19111: emulate sh
19112: NULLCMD=:
1.150 moko 19113: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 19114: # is contrary to our usage. Disable this feature.
19115: alias -g '${1+"$@"}'='"$@"'
1.150 moko 19116: setopt NO_GLOB_SUBST
19117: else
19118: case `(set -o) 2>/dev/null` in #(
19119: *posix*) :
19120: set -o posix ;; #(
19121: *) :
19122: ;;
19123: esac
19124: fi
19125:
19126:
19127: as_nl='
19128: '
19129: export as_nl
19130: # Printing a long string crashes Solaris 7 /usr/bin/printf.
19131: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19132: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19133: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19134: # Prefer a ksh shell builtin over an external printf program on Solaris,
19135: # but without wasting forks for bash or zsh.
19136: if test -z "$BASH_VERSION$ZSH_VERSION" \
19137: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19138: as_echo='print -r --'
19139: as_echo_n='print -rn --'
19140: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19141: as_echo='printf %s\n'
19142: as_echo_n='printf %s'
19143: else
19144: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19145: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19146: as_echo_n='/usr/ucb/echo -n'
19147: else
19148: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19149: as_echo_n_body='eval
19150: arg=$1;
19151: case $arg in #(
19152: *"$as_nl"*)
19153: expr "X$arg" : "X\\(.*\\)$as_nl";
19154: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19155: esac;
19156: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19157: '
19158: export as_echo_n_body
19159: as_echo_n='sh -c $as_echo_n_body as_echo'
19160: fi
19161: export as_echo_body
19162: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 19163: fi
19164:
1.150 moko 19165: # The user is always right.
19166: if test "${PATH_SEPARATOR+set}" != set; then
19167: PATH_SEPARATOR=:
19168: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19169: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19170: PATH_SEPARATOR=';'
19171: }
1.62 paf 19172: fi
19173:
19174:
1.150 moko 19175: # IFS
19176: # We need space, tab and new line, in precisely that order. Quoting is
19177: # there to prevent editors from complaining about space-tab.
19178: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19179: # splitting by setting IFS to empty value.)
19180: IFS=" "" $as_nl"
19181:
19182: # Find who we are. Look in the path if we contain no directory separator.
19183: as_myself=
19184: case $0 in #((
19185: *[\\/]* ) as_myself=$0 ;;
19186: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19187: for as_dir in $PATH
19188: do
19189: IFS=$as_save_IFS
19190: test -z "$as_dir" && as_dir=.
19191: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19192: done
19193: IFS=$as_save_IFS
19194:
19195: ;;
19196: esac
19197: # We did not find ourselves, most probably we were run as `sh COMMAND'
19198: # in which case we are not to be found in the path.
19199: if test "x$as_myself" = x; then
19200: as_myself=$0
19201: fi
19202: if test ! -f "$as_myself"; then
19203: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19204: exit 1
19205: fi
19206:
19207: # Unset variables that we do not need and which cause bugs (e.g. in
19208: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19209: # suppresses any "Segmentation fault" message there. '((' could
19210: # trigger a bug in pdksh 5.2.14.
19211: for as_var in BASH_ENV ENV MAIL MAILPATH
19212: do eval test x\${$as_var+set} = xset \
19213: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19214: done
1.62 paf 19215: PS1='$ '
19216: PS2='> '
19217: PS4='+ '
19218:
19219: # NLS nuisances.
1.150 moko 19220: LC_ALL=C
19221: export LC_ALL
19222: LANGUAGE=C
19223: export LANGUAGE
19224:
19225: # CDPATH.
19226: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19227:
19228:
19229: # as_fn_error STATUS ERROR [LINENO LOG_FD]
19230: # ----------------------------------------
19231: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19232: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19233: # script with STATUS, using 1 if that was 0.
19234: as_fn_error ()
19235: {
19236: as_status=$1; test $as_status -eq 0 && as_status=1
19237: if test "$4"; then
19238: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19239: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19240: fi
19241: $as_echo "$as_me: error: $2" >&2
19242: as_fn_exit $as_status
19243: } # as_fn_error
19244:
19245:
19246: # as_fn_set_status STATUS
19247: # -----------------------
19248: # Set $? to STATUS, without forking.
19249: as_fn_set_status ()
19250: {
19251: return $1
19252: } # as_fn_set_status
19253:
19254: # as_fn_exit STATUS
19255: # -----------------
19256: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19257: as_fn_exit ()
19258: {
19259: set +e
19260: as_fn_set_status $1
19261: exit $1
19262: } # as_fn_exit
19263:
19264: # as_fn_unset VAR
19265: # ---------------
19266: # Portably unset VAR.
19267: as_fn_unset ()
19268: {
19269: { eval $1=; unset $1;}
19270: }
19271: as_unset=as_fn_unset
19272: # as_fn_append VAR VALUE
19273: # ----------------------
19274: # Append the text in VALUE to the end of the definition contained in VAR. Take
19275: # advantage of any shell optimizations that allow amortized linear growth over
19276: # repeated appends, instead of the typical quadratic growth present in naive
19277: # implementations.
19278: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19279: eval 'as_fn_append ()
19280: {
19281: eval $1+=\$2
19282: }'
19283: else
19284: as_fn_append ()
19285: {
19286: eval $1=\$$1\$2
19287: }
19288: fi # as_fn_append
19289:
19290: # as_fn_arith ARG...
19291: # ------------------
19292: # Perform arithmetic evaluation on the ARGs, and store the result in the
19293: # global $as_val. Take advantage of shells that can avoid forks. The arguments
19294: # must be portable across $(()) and expr.
19295: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19296: eval 'as_fn_arith ()
19297: {
19298: as_val=$(( $* ))
19299: }'
19300: else
19301: as_fn_arith ()
19302: {
19303: as_val=`expr "$@" || test $? -eq 1`
19304: }
19305: fi # as_fn_arith
19306:
1.1 paf 19307:
1.150 moko 19308: if expr a : '\(a\)' >/dev/null 2>&1 &&
19309: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 19310: as_expr=expr
19311: else
19312: as_expr=false
19313: fi
19314:
1.150 moko 19315: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 19316: as_basename=basename
19317: else
19318: as_basename=false
19319: fi
19320:
1.150 moko 19321: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19322: as_dirname=dirname
19323: else
19324: as_dirname=false
19325: fi
1.62 paf 19326:
1.150 moko 19327: as_me=`$as_basename -- "$0" ||
1.62 paf 19328: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19329: X"$0" : 'X\(//\)$' \| \
1.150 moko 19330: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19331: $as_echo X/"$0" |
19332: sed '/^.*\/\([^/][^/]*\)\/*$/{
19333: s//\1/
19334: q
19335: }
19336: /^X\/\(\/\/\)$/{
19337: s//\1/
19338: q
19339: }
19340: /^X\/\(\/\).*/{
19341: s//\1/
19342: q
19343: }
19344: s/.*/./; q'`
1.62 paf 19345:
19346: # Avoid depending upon Character Ranges.
19347: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19348: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19349: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19350: as_cr_digits='0123456789'
19351: as_cr_alnum=$as_cr_Letters$as_cr_digits
19352:
1.150 moko 19353: ECHO_C= ECHO_N= ECHO_T=
19354: case `echo -n x` in #(((((
19355: -n*)
19356: case `echo 'xy\c'` in
19357: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19358: xy) ECHO_C='\c';;
19359: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19360: ECHO_T=' ';;
19361: esac;;
19362: *)
19363: ECHO_N='-n';;
1.62 paf 19364: esac
19365:
1.150 moko 19366: rm -f conf$$ conf$$.exe conf$$.file
19367: if test -d conf$$.dir; then
19368: rm -f conf$$.dir/conf$$.file
1.62 paf 19369: else
1.150 moko 19370: rm -f conf$$.dir
19371: mkdir conf$$.dir 2>/dev/null
1.62 paf 19372: fi
1.150 moko 19373: if (echo >conf$$.file) 2>/dev/null; then
19374: if ln -s conf$$.file conf$$ 2>/dev/null; then
19375: as_ln_s='ln -s'
19376: # ... but there are two gotchas:
19377: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19378: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 19379: # In both cases, we have to default to `cp -pR'.
1.150 moko 19380: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 19381: as_ln_s='cp -pR'
1.150 moko 19382: elif ln conf$$.file conf$$ 2>/dev/null; then
19383: as_ln_s=ln
19384: else
1.166 moko 19385: as_ln_s='cp -pR'
1.62 paf 19386: fi
19387: else
1.166 moko 19388: as_ln_s='cp -pR'
1.62 paf 19389: fi
1.150 moko 19390: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19391: rmdir conf$$.dir 2>/dev/null
19392:
19393:
19394: # as_fn_mkdir_p
19395: # -------------
19396: # Create "$as_dir" as a directory, including parents if necessary.
19397: as_fn_mkdir_p ()
19398: {
19399:
19400: case $as_dir in #(
19401: -*) as_dir=./$as_dir;;
19402: esac
19403: test -d "$as_dir" || eval $as_mkdir_p || {
19404: as_dirs=
19405: while :; do
19406: case $as_dir in #(
19407: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19408: *) as_qdir=$as_dir;;
19409: esac
19410: as_dirs="'$as_qdir' $as_dirs"
19411: as_dir=`$as_dirname -- "$as_dir" ||
19412: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19413: X"$as_dir" : 'X\(//\)[^/]' \| \
19414: X"$as_dir" : 'X\(//\)$' \| \
19415: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19416: $as_echo X"$as_dir" |
19417: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19418: s//\1/
19419: q
19420: }
19421: /^X\(\/\/\)[^/].*/{
19422: s//\1/
19423: q
19424: }
19425: /^X\(\/\/\)$/{
19426: s//\1/
19427: q
19428: }
19429: /^X\(\/\).*/{
19430: s//\1/
19431: q
19432: }
19433: s/.*/./; q'`
19434: test -d "$as_dir" && break
19435: done
19436: test -z "$as_dirs" || eval "mkdir $as_dirs"
19437: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19438:
1.62 paf 19439:
1.150 moko 19440: } # as_fn_mkdir_p
1.62 paf 19441: if mkdir -p . 2>/dev/null; then
1.150 moko 19442: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 19443: else
1.86 paf 19444: test -d ./-p && rmdir ./-p
1.62 paf 19445: as_mkdir_p=false
19446: fi
19447:
1.166 moko 19448:
19449: # as_fn_executable_p FILE
19450: # -----------------------
19451: # Test if FILE is an executable regular file.
19452: as_fn_executable_p ()
19453: {
19454: test -f "$1" && test -x "$1"
19455: } # as_fn_executable_p
19456: as_test_x='test -x'
19457: as_executable_p=as_fn_executable_p
1.62 paf 19458:
19459: # Sed expression to map a string onto a valid CPP name.
1.86 paf 19460: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19461:
19462: # Sed expression to map a string onto a valid variable name.
1.86 paf 19463: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19464:
19465:
19466: exec 6>&1
1.150 moko 19467: ## ----------------------------------- ##
19468: ## Main body of $CONFIG_STATUS script. ##
19469: ## ----------------------------------- ##
19470: _ASEOF
19471: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 19472:
1.150 moko 19473: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19474: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 19475: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 19476: # values after options handling.
19477: ac_log="
1.186 moko 19478: This file was extended by parser $as_me 3.4.6b, which was
1.166 moko 19479: generated by GNU Autoconf 2.69. Invocation command line was
1.62 paf 19480:
19481: CONFIG_FILES = $CONFIG_FILES
19482: CONFIG_HEADERS = $CONFIG_HEADERS
19483: CONFIG_LINKS = $CONFIG_LINKS
19484: CONFIG_COMMANDS = $CONFIG_COMMANDS
19485: $ $0 $@
19486:
1.150 moko 19487: on `(hostname || uname -n) 2>/dev/null | sed 1q`
19488: "
19489:
1.62 paf 19490: _ACEOF
19491:
1.150 moko 19492: case $ac_config_files in *"
19493: "*) set x $ac_config_files; shift; ac_config_files=$*;;
19494: esac
1.62 paf 19495:
1.150 moko 19496: case $ac_config_headers in *"
19497: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19498: esac
1.62 paf 19499:
19500:
1.150 moko 19501: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19502: # Files that config.status was made for.
19503: config_files="$ac_config_files"
19504: config_headers="$ac_config_headers"
19505: config_commands="$ac_config_commands"
1.62 paf 19506:
1.150 moko 19507: _ACEOF
1.62 paf 19508:
1.150 moko 19509: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19510: ac_cs_usage="\
1.150 moko 19511: \`$as_me' instantiates files and other configuration actions
19512: from templates according to the current configuration. Unless the files
19513: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 19514:
1.150 moko 19515: Usage: $0 [OPTION]... [TAG]...
1.62 paf 19516:
19517: -h, --help print this help, then exit
1.150 moko 19518: -V, --version print version number and configuration settings, then exit
19519: --config print configuration, then exit
19520: -q, --quiet, --silent
19521: do not print progress messages
1.62 paf 19522: -d, --debug don't remove temporary files
19523: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 19524: --file=FILE[:TEMPLATE]
19525: instantiate the configuration file FILE
19526: --header=FILE[:TEMPLATE]
19527: instantiate the configuration header FILE
1.62 paf 19528:
19529: Configuration files:
19530: $config_files
19531:
19532: Configuration headers:
19533: $config_headers
19534:
19535: Configuration commands:
19536: $config_commands
19537:
1.150 moko 19538: Report bugs to the package provider."
19539:
1.62 paf 19540: _ACEOF
1.150 moko 19541: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19542: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 19543: ac_cs_version="\\
1.186 moko 19544: parser config.status 3.4.6b
1.166 moko 19545: configured by $0, generated by GNU Autoconf 2.69,
1.150 moko 19546: with options \\"\$ac_cs_config\\"
1.62 paf 19547:
1.166 moko 19548: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 19549: This config.status script is free software; the Free Software Foundation
19550: gives unlimited permission to copy, distribute and modify it."
1.150 moko 19551:
19552: ac_pwd='$ac_pwd'
19553: srcdir='$srcdir'
19554: INSTALL='$INSTALL'
19555: MKDIR_P='$MKDIR_P'
19556: AWK='$AWK'
19557: test -n "\$AWK" || AWK=awk
1.62 paf 19558: _ACEOF
19559:
1.150 moko 19560: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19561: # The default lists apply if the user does not specify any file.
1.62 paf 19562: ac_need_defaults=:
19563: while test $# != 0
19564: do
19565: case $1 in
1.150 moko 19566: --*=?*)
19567: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19568: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 19569: ac_shift=:
19570: ;;
1.150 moko 19571: --*=)
19572: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19573: ac_optarg=
19574: ac_shift=:
19575: ;;
19576: *)
1.62 paf 19577: ac_option=$1
19578: ac_optarg=$2
19579: ac_shift=shift
19580: ;;
19581: esac
19582:
19583: case $ac_option in
19584: # Handling of the options.
19585: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19586: ac_cs_recheck=: ;;
1.150 moko 19587: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19588: $as_echo "$ac_cs_version"; exit ;;
19589: --config | --confi | --conf | --con | --co | --c )
19590: $as_echo "$ac_cs_config"; exit ;;
19591: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 19592: debug=: ;;
19593: --file | --fil | --fi | --f )
19594: $ac_shift
1.150 moko 19595: case $ac_optarg in
19596: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19597: '') as_fn_error $? "missing file argument" ;;
19598: esac
19599: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 19600: ac_need_defaults=false;;
19601: --header | --heade | --head | --hea )
19602: $ac_shift
1.150 moko 19603: case $ac_optarg in
19604: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19605: esac
19606: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 19607: ac_need_defaults=false;;
1.150 moko 19608: --he | --h)
19609: # Conflict between --help and --header
19610: as_fn_error $? "ambiguous option: \`$1'
19611: Try \`$0 --help' for more information.";;
19612: --help | --hel | -h )
19613: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 19614: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19615: | -silent | --silent | --silen | --sile | --sil | --si | --s)
19616: ac_cs_silent=: ;;
19617:
19618: # This is an error.
1.150 moko 19619: -*) as_fn_error $? "unrecognized option: \`$1'
19620: Try \`$0 --help' for more information." ;;
1.62 paf 19621:
1.150 moko 19622: *) as_fn_append ac_config_targets " $1"
19623: ac_need_defaults=false ;;
1.62 paf 19624:
19625: esac
19626: shift
19627: done
19628:
19629: ac_configure_extra_args=
19630:
19631: if $ac_cs_silent; then
19632: exec 6>/dev/null
1.150 moko 19633: ac_configure_extra_args="$ac_configure_extra_args --silent"
19634: fi
19635:
19636: _ACEOF
19637: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19638: if \$ac_cs_recheck; then
1.166 moko 19639: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 19640: shift
19641: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19642: CONFIG_SHELL='$SHELL'
19643: export CONFIG_SHELL
19644: exec "\$@"
19645: fi
19646:
19647: _ACEOF
19648: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19649: exec 5>>config.log
19650: {
19651: echo
19652: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19653: ## Running $as_me. ##
19654: _ASBOX
19655: $as_echo "$ac_log"
19656: } >&5
1.62 paf 19657:
19658: _ACEOF
1.150 moko 19659: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 19660: #
1.150 moko 19661: # INIT-COMMANDS
1.1 paf 19662: #
1.62 paf 19663: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19664:
1.128 moko 19665:
19666: # The HP-UX ksh and POSIX shell print the target directory to stdout
19667: # if CDPATH is set.
19668: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19669:
19670: sed_quote_subst='$sed_quote_subst'
19671: double_quote_subst='$double_quote_subst'
19672: delay_variable_subst='$delay_variable_subst'
19673: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19674: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19675: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19676: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19677: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19678: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19679: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19680: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19681: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19682: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19683: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19684: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19685: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19686: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19687: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19688: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19689: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19690: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19691: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19692: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19693: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19694: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19695: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19696: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19697: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19698: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19699: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19700: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19701: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19702: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19703: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19704: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19705: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19706: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19707: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19708: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19709: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19710: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19711: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19712: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19713: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19714: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19715: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19716: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19717: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19718: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19719: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19720: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19721: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19722: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19723: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19724: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19725: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19726: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19727: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19728: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19729: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19730: 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"`'
19731: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19732: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19733: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19734: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19735: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19736: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19737: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19738: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19739: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19740: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19741: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19742: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19743: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19744: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19745: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19746: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19747: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19748: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19749: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19750: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19751: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19752: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19753: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19754: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19755: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19756: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19757: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19758: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19759: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19760: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19761: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19762: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19763: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19764: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19765: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19766: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19767: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19768: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19769: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19770: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19771: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19772: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19773: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19774: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19775: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19776: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19777: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19778: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19779: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19780: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19781: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19782: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19783: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19784: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19785: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19786: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19787: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19788: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19789: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19790: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19791: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19792: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19793: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19794: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19795: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19796: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19797: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19798: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19799: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19800: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19801: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19802: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19803: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19804: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19805: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19806: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19807: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19808: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19809: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19810: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19811: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19812: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19813: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19814: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19815: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19816: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19817: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19818: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19819: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19820: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19821: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19822: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19823: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19824: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19825: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19826: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19827: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19828: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19829: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19830: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19831: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19832: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19833: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19834: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19835: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19836: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19837: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19838: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19839: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19840: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19841: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19842: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19843: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19844: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19845: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19846: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19847: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19848: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19849: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19850: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19851: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19852: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19853: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19854: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19855: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19856: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19857: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19858:
19859: LTCC='$LTCC'
19860: LTCFLAGS='$LTCFLAGS'
19861: compiler='$compiler_DEFAULT'
19862:
19863: # A function that is used when there is no print builtin or printf.
19864: func_fallback_echo ()
19865: {
19866: eval 'cat <<_LTECHO_EOF
19867: \$1
19868: _LTECHO_EOF'
19869: }
19870:
19871: # Quote evaled strings.
19872: for var in AS \
19873: DLLTOOL \
19874: OBJDUMP \
19875: SHELL \
19876: ECHO \
19877: PATH_SEPARATOR \
19878: SED \
19879: GREP \
19880: EGREP \
19881: FGREP \
19882: LD \
19883: NM \
19884: LN_S \
19885: lt_SP2NL \
19886: lt_NL2SP \
19887: reload_flag \
19888: deplibs_check_method \
19889: file_magic_cmd \
19890: file_magic_glob \
19891: want_nocaseglob \
19892: sharedlib_from_linklib_cmd \
19893: AR \
19894: AR_FLAGS \
19895: archiver_list_spec \
19896: STRIP \
19897: RANLIB \
19898: CC \
19899: CFLAGS \
19900: compiler \
19901: lt_cv_sys_global_symbol_pipe \
19902: lt_cv_sys_global_symbol_to_cdecl \
19903: lt_cv_sys_global_symbol_to_c_name_address \
19904: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19905: nm_file_list_spec \
19906: lt_prog_compiler_no_builtin_flag \
19907: lt_prog_compiler_pic \
19908: lt_prog_compiler_wl \
19909: lt_prog_compiler_static \
19910: lt_cv_prog_compiler_c_o \
19911: need_locks \
19912: MANIFEST_TOOL \
19913: DSYMUTIL \
19914: NMEDIT \
19915: LIPO \
19916: OTOOL \
19917: OTOOL64 \
19918: shrext_cmds \
19919: export_dynamic_flag_spec \
19920: whole_archive_flag_spec \
19921: compiler_needs_object \
19922: with_gnu_ld \
19923: allow_undefined_flag \
19924: no_undefined_flag \
19925: hardcode_libdir_flag_spec \
19926: hardcode_libdir_separator \
19927: exclude_expsyms \
19928: include_expsyms \
19929: file_list_spec \
19930: variables_saved_for_relink \
19931: libname_spec \
19932: library_names_spec \
19933: soname_spec \
19934: install_override_mode \
19935: finish_eval \
19936: old_striplib \
19937: striplib \
19938: compiler_lib_search_dirs \
19939: predep_objects \
19940: postdep_objects \
19941: predeps \
19942: postdeps \
19943: compiler_lib_search_path \
19944: LD_CXX \
19945: reload_flag_CXX \
19946: compiler_CXX \
19947: lt_prog_compiler_no_builtin_flag_CXX \
19948: lt_prog_compiler_pic_CXX \
19949: lt_prog_compiler_wl_CXX \
19950: lt_prog_compiler_static_CXX \
19951: lt_cv_prog_compiler_c_o_CXX \
19952: export_dynamic_flag_spec_CXX \
19953: whole_archive_flag_spec_CXX \
19954: compiler_needs_object_CXX \
19955: with_gnu_ld_CXX \
19956: allow_undefined_flag_CXX \
19957: no_undefined_flag_CXX \
19958: hardcode_libdir_flag_spec_CXX \
19959: hardcode_libdir_separator_CXX \
19960: exclude_expsyms_CXX \
19961: include_expsyms_CXX \
19962: file_list_spec_CXX \
19963: compiler_lib_search_dirs_CXX \
19964: predep_objects_CXX \
19965: postdep_objects_CXX \
19966: predeps_CXX \
19967: postdeps_CXX \
19968: compiler_lib_search_path_CXX; do
19969: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19970: *[\\\\\\\`\\"\\\$]*)
19971: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19972: ;;
19973: *)
19974: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19975: ;;
19976: esac
19977: done
19978:
19979: # Double-quote double-evaled strings.
19980: for var in reload_cmds \
19981: old_postinstall_cmds \
19982: old_postuninstall_cmds \
19983: old_archive_cmds \
19984: extract_expsyms_cmds \
19985: old_archive_from_new_cmds \
19986: old_archive_from_expsyms_cmds \
19987: archive_cmds \
19988: archive_expsym_cmds \
19989: module_cmds \
19990: module_expsym_cmds \
19991: export_symbols_cmds \
19992: prelink_cmds \
19993: postlink_cmds \
19994: postinstall_cmds \
19995: postuninstall_cmds \
19996: finish_cmds \
19997: sys_lib_search_path_spec \
19998: sys_lib_dlsearch_path_spec \
19999: reload_cmds_CXX \
20000: old_archive_cmds_CXX \
20001: old_archive_from_new_cmds_CXX \
20002: old_archive_from_expsyms_cmds_CXX \
20003: archive_cmds_CXX \
20004: archive_expsym_cmds_CXX \
20005: module_cmds_CXX \
20006: module_expsym_cmds_CXX \
20007: export_symbols_cmds_CXX \
20008: prelink_cmds_CXX \
20009: postlink_cmds_CXX; do
20010: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20011: *[\\\\\\\`\\"\\\$]*)
20012: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20013: ;;
20014: *)
20015: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20016: ;;
20017: esac
20018: done
20019:
20020: ac_aux_dir='$ac_aux_dir'
20021: xsi_shell='$xsi_shell'
20022: lt_shell_append='$lt_shell_append'
20023:
20024: # See if we are running on zsh, and set the options which allow our
20025: # commands through without removal of \ escapes INIT.
20026: if test -n "\${ZSH_VERSION+set}" ; then
20027: setopt NO_GLOB_SUBST
20028: fi
20029:
20030:
20031: PACKAGE='$PACKAGE'
20032: VERSION='$VERSION'
20033: TIMESTAMP='$TIMESTAMP'
20034: RM='$RM'
20035: ofile='$ofile'
20036:
20037:
20038:
20039:
20040:
20041:
1.62 paf 20042: _ACEOF
20043:
1.150 moko 20044: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20045:
1.150 moko 20046: # Handling of arguments.
1.62 paf 20047: for ac_config_target in $ac_config_targets
1.1 paf 20048: do
1.150 moko 20049: case $ac_config_target in
20050: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20051: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20052: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20053: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20054: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20055: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20056: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20057: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20058: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20059: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20060: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20061: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20062: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
20063: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20064: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
20065: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
20066: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20067: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20068: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
20069: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
20070: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
20071: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
20072: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 20073: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
20074: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 20075: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
20076: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20077: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
20078: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
20079: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20080: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20081: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
20082: "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20083: "bin/auto.p.dist") CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
20084:
20085: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 20086: esac
20087: done
20088:
1.150 moko 20089:
1.62 paf 20090: # If the user did not use the arguments to specify the items to instantiate,
20091: # then the envvar interface is used. Set only those that are not.
20092: # We use the long form for the default assignment because of an extremely
20093: # bizarre bug on SunOS 4.1.3.
20094: if $ac_need_defaults; then
20095: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20096: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20097: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20098: fi
20099:
20100: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 20101: # simply because there is no reason against having it here, and in addition,
1.62 paf 20102: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 20103: # Hook for its removal unless debugging.
20104: # Note that there is a small window in which the directory will not be cleaned:
20105: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 20106: $debug ||
20107: {
1.150 moko 20108: tmp= ac_tmp=
20109: trap 'exit_status=$?
20110: : "${ac_tmp:=$tmp}"
20111: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20112: ' 0
20113: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 20114: }
20115: # Create a (secure) tmp directory for tmp files.
20116:
20117: {
1.150 moko 20118: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20119: test -d "$tmp"
1.62 paf 20120: } ||
20121: {
1.150 moko 20122: tmp=./conf$$-$RANDOM
20123: (umask 077 && mkdir "$tmp")
20124: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20125: ac_tmp=$tmp
20126:
20127: # Set up the scripts for CONFIG_FILES section.
20128: # No need to generate them if there are no CONFIG_FILES.
20129: # This happens for instance with `./config.status config.h'.
20130: if test -n "$CONFIG_FILES"; then
20131:
20132:
20133: ac_cr=`echo X | tr X '\015'`
20134: # On cygwin, bash can eat \r inside `` if the user requested igncr.
20135: # But we know of no other shell where ac_cr would be empty at this
20136: # point, so we can use a bashism as a fallback.
20137: if test "x$ac_cr" = x; then
20138: eval ac_cr=\$\'\\r\'
20139: fi
20140: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20141: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20142: ac_cs_awk_cr='\\r'
20143: else
20144: ac_cs_awk_cr=$ac_cr
20145: fi
20146:
20147: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20148: _ACEOF
20149:
20150:
1.62 paf 20151: {
1.150 moko 20152: echo "cat >conf$$subs.awk <<_ACEOF" &&
20153: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20154: echo "_ACEOF"
20155: } >conf$$subs.sh ||
20156: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20157: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20158: ac_delim='%!_!# '
20159: for ac_last_try in false false false false false :; do
20160: . ./conf$$subs.sh ||
20161: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20162:
20163: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20164: if test $ac_delim_n = $ac_delim_num; then
20165: break
20166: elif $ac_last_try; then
20167: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20168: else
20169: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20170: fi
20171: done
20172: rm -f conf$$subs.sh
20173:
20174: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20175: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20176: _ACEOF
20177: sed -n '
20178: h
20179: s/^/S["/; s/!.*/"]=/
20180: p
20181: g
20182: s/^[^!]*!//
20183: :repl
20184: t repl
20185: s/'"$ac_delim"'$//
20186: t delim
20187: :nl
20188: h
20189: s/\(.\{148\}\)..*/\1/
20190: t more1
20191: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20192: p
20193: n
20194: b repl
20195: :more1
20196: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20197: p
20198: g
20199: s/.\{148\}//
20200: t nl
20201: :delim
20202: h
20203: s/\(.\{148\}\)..*/\1/
20204: t more2
20205: s/["\\]/\\&/g; s/^/"/; s/$/"/
20206: p
20207: b
20208: :more2
20209: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20210: p
20211: g
20212: s/.\{148\}//
20213: t delim
20214: ' <conf$$subs.awk | sed '
20215: /^[^""]/{
20216: N
20217: s/\n//
20218: }
20219: ' >>$CONFIG_STATUS || ac_write_fail=1
20220: rm -f conf$$subs.awk
20221: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20222: _ACAWK
20223: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20224: for (key in S) S_is_set[key] = 1
20225: FS = ""
20226:
20227: }
20228: {
20229: line = $ 0
20230: nfields = split(line, field, "@")
20231: substed = 0
20232: len = length(field[1])
20233: for (i = 2; i < nfields; i++) {
20234: key = field[i]
20235: keylen = length(key)
20236: if (S_is_set[key]) {
20237: value = S[key]
20238: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20239: len += length(value) + length(field[++i])
20240: substed = 1
20241: } else
20242: len += 1 + keylen
20243: }
20244:
20245: print line
1.62 paf 20246: }
20247:
1.150 moko 20248: _ACAWK
20249: _ACEOF
20250: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20251: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20252: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20253: else
20254: cat
20255: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20256: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 20257: _ACEOF
1.1 paf 20258:
1.150 moko 20259: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20260: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20261: # trailing colons and then remove the whole line if VPATH becomes empty
20262: # (actually we leave an empty line to preserve line numbers).
20263: if test "x$srcdir" = x.; then
20264: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20265: h
20266: s///
20267: s/^/:/
20268: s/[ ]*$/:/
20269: s/:\$(srcdir):/:/g
20270: s/:\${srcdir}:/:/g
20271: s/:@srcdir@:/:/g
20272: s/^:*//
20273: s/:*$//
20274: x
20275: s/\(=[ ]*\).*/\1/
20276: G
20277: s/\n//
20278: s/^[^=]*=[ ]*$//
20279: }'
20280: fi
1.62 paf 20281:
1.150 moko 20282: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20283: fi # test -n "$CONFIG_FILES"
1.1 paf 20284:
1.150 moko 20285: # Set up the scripts for CONFIG_HEADERS section.
20286: # No need to generate them if there are no CONFIG_HEADERS.
20287: # This happens for instance with `./config.status Makefile'.
20288: if test -n "$CONFIG_HEADERS"; then
20289: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20290: BEGIN {
20291: _ACEOF
20292:
20293: # Transform confdefs.h into an awk script `defines.awk', embedded as
20294: # here-document in config.status, that substitutes the proper values into
20295: # config.h.in to produce config.h.
20296:
20297: # Create a delimiter string that does not exist in confdefs.h, to ease
20298: # handling of long lines.
20299: ac_delim='%!_!# '
20300: for ac_last_try in false false :; do
20301: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20302: if test -z "$ac_tt"; then
20303: break
20304: elif $ac_last_try; then
20305: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20306: else
20307: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 20308: fi
1.150 moko 20309: done
1.1 paf 20310:
1.150 moko 20311: # For the awk script, D is an array of macro values keyed by name,
20312: # likewise P contains macro parameters if any. Preserve backslash
20313: # newline sequences.
20314:
20315: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20316: sed -n '
20317: s/.\{148\}/&'"$ac_delim"'/g
20318: t rset
20319: :rset
20320: s/^[ ]*#[ ]*define[ ][ ]*/ /
20321: t def
20322: d
20323: :def
20324: s/\\$//
20325: t bsnl
20326: s/["\\]/\\&/g
20327: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20328: D["\1"]=" \3"/p
20329: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20330: d
20331: :bsnl
20332: s/["\\]/\\&/g
20333: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20334: D["\1"]=" \3\\\\\\n"\\/p
20335: t cont
20336: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20337: t cont
20338: d
20339: :cont
20340: n
20341: s/.\{148\}/&'"$ac_delim"'/g
20342: t clear
20343: :clear
20344: s/\\$//
20345: t bsnlc
20346: s/["\\]/\\&/g; s/^/"/; s/$/"/p
20347: d
20348: :bsnlc
20349: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20350: b cont
20351: ' <confdefs.h | sed '
20352: s/'"$ac_delim"'/"\\\
20353: "/g' >>$CONFIG_STATUS || ac_write_fail=1
20354:
20355: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20356: for (key in D) D_is_set[key] = 1
20357: FS = ""
20358: }
20359: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20360: line = \$ 0
20361: split(line, arg, " ")
20362: if (arg[1] == "#") {
20363: defundef = arg[2]
20364: mac1 = arg[3]
20365: } else {
20366: defundef = substr(arg[1], 2)
20367: mac1 = arg[2]
20368: }
20369: split(mac1, mac2, "(") #)
20370: macro = mac2[1]
20371: prefix = substr(line, 1, index(line, defundef) - 1)
20372: if (D_is_set[macro]) {
20373: # Preserve the white space surrounding the "#".
20374: print prefix "define", macro P[macro] D[macro]
20375: next
20376: } else {
20377: # Replace #undef with comments. This is necessary, for example,
20378: # in the case of _POSIX_SOURCE, which is predefined and required
20379: # on some systems where configure will not decide to define it.
20380: if (defundef == "undef") {
20381: print "/*", prefix defundef, macro, "*/"
20382: next
20383: }
20384: }
20385: }
20386: { print }
20387: _ACAWK
1.62 paf 20388: _ACEOF
1.150 moko 20389: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20390: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20391: fi # test -n "$CONFIG_HEADERS"
20392:
20393:
20394: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20395: shift
20396: for ac_tag
20397: do
20398: case $ac_tag in
20399: :[FHLC]) ac_mode=$ac_tag; continue;;
20400: esac
20401: case $ac_mode$ac_tag in
20402: :[FHL]*:*);;
20403: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20404: :[FH]-) ac_tag=-:-;;
20405: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20406: esac
20407: ac_save_IFS=$IFS
20408: IFS=:
20409: set x $ac_tag
20410: IFS=$ac_save_IFS
20411: shift
20412: ac_file=$1
20413: shift
20414:
20415: case $ac_mode in
20416: :L) ac_source=$1;;
20417: :[FH])
20418: ac_file_inputs=
20419: for ac_f
20420: do
20421: case $ac_f in
20422: -) ac_f="$ac_tmp/stdin";;
20423: *) # Look for the file first in the build tree, then in the source tree
20424: # (if the path is not absolute). The absolute path cannot be DOS-style,
20425: # because $ac_f cannot contain `:'.
20426: test -f "$ac_f" ||
20427: case $ac_f in
20428: [\\/$]*) false;;
20429: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20430: esac ||
20431: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20432: esac
20433: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20434: as_fn_append ac_file_inputs " '$ac_f'"
20435: done
20436:
20437: # Let's still pretend it is `configure' which instantiates (i.e., don't
20438: # use $as_me), people would be surprised to read:
20439: # /* config.h. Generated by config.status. */
20440: configure_input='Generated from '`
20441: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20442: `' by configure.'
20443: if test x"$ac_file" != x-; then
20444: configure_input="$ac_file. $configure_input"
20445: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20446: $as_echo "$as_me: creating $ac_file" >&6;}
20447: fi
20448: # Neutralize special characters interpreted by sed in replacement strings.
20449: case $configure_input in #(
20450: *\&* | *\|* | *\\* )
20451: ac_sed_conf_input=`$as_echo "$configure_input" |
20452: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20453: *) ac_sed_conf_input=$configure_input;;
20454: esac
20455:
20456: case $ac_tag in
20457: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20458: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20459: esac
20460: ;;
1.1 paf 20461: esac
20462:
1.150 moko 20463: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 20464: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20465: X"$ac_file" : 'X\(//\)[^/]' \| \
20466: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 20467: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20468: $as_echo X"$ac_file" |
20469: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20470: s//\1/
20471: q
20472: }
20473: /^X\(\/\/\)[^/].*/{
20474: s//\1/
20475: q
20476: }
20477: /^X\(\/\/\)$/{
20478: s//\1/
20479: q
20480: }
20481: /^X\(\/\).*/{
20482: s//\1/
20483: q
20484: }
20485: s/.*/./; q'`
20486: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 20487: ac_builddir=.
20488:
1.150 moko 20489: case "$ac_dir" in
20490: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20491: *)
20492: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20493: # A ".." for each directory in $ac_dir_suffix.
20494: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20495: case $ac_top_builddir_sub in
20496: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20497: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20498: esac ;;
20499: esac
20500: ac_abs_top_builddir=$ac_pwd
20501: ac_abs_builddir=$ac_pwd$ac_dir_suffix
20502: # for backward compatibility:
20503: ac_top_builddir=$ac_top_build_prefix
1.62 paf 20504:
20505: case $srcdir in
1.150 moko 20506: .) # We are building in place.
1.62 paf 20507: ac_srcdir=.
1.150 moko 20508: ac_top_srcdir=$ac_top_builddir_sub
20509: ac_abs_top_srcdir=$ac_pwd ;;
20510: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 20511: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 20512: ac_top_srcdir=$srcdir
20513: ac_abs_top_srcdir=$srcdir ;;
20514: *) # Relative name.
20515: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20516: ac_top_srcdir=$ac_top_build_prefix$srcdir
20517: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 20518: esac
1.150 moko 20519: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 20520:
1.62 paf 20521:
1.150 moko 20522: case $ac_mode in
20523: :F)
20524: #
20525: # CONFIG_FILE
20526: #
1.1 paf 20527:
1.62 paf 20528: case $INSTALL in
20529: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 20530: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 20531: esac
1.150 moko 20532: ac_MKDIR_P=$MKDIR_P
20533: case $MKDIR_P in
20534: [\\/$]* | ?:[\\/]* ) ;;
20535: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20536: esac
20537: _ACEOF
1.1 paf 20538:
1.150 moko 20539: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20540: # If the template does not know about datarootdir, expand it.
20541: # FIXME: This hack should be removed a few years after 2.60.
20542: ac_datarootdir_hack=; ac_datarootdir_seen=
20543: ac_sed_dataroot='
20544: /datarootdir/ {
20545: p
20546: q
20547: }
20548: /@datadir@/p
20549: /@docdir@/p
20550: /@infodir@/p
20551: /@localedir@/p
20552: /@mandir@/p'
20553: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20554: *datarootdir*) ac_datarootdir_seen=yes;;
20555: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20556: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20557: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20558: _ACEOF
20559: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20560: ac_datarootdir_hack='
20561: s&@datadir@&$datadir&g
20562: s&@docdir@&$docdir&g
20563: s&@infodir@&$infodir&g
20564: s&@localedir@&$localedir&g
20565: s&@mandir@&$mandir&g
20566: s&\\\${datarootdir}&$datarootdir&g' ;;
20567: esac
20568: _ACEOF
1.62 paf 20569:
1.150 moko 20570: # Neutralize VPATH when `$srcdir' = `.'.
20571: # Shell code in configure.ac might set extrasub.
20572: # FIXME: do we really want to maintain this feature?
20573: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20574: ac_sed_extra="$ac_vpsub
1.62 paf 20575: $extrasub
20576: _ACEOF
1.150 moko 20577: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20578: :t
20579: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 20580: s|@configure_input@|$ac_sed_conf_input|;t t
20581: s&@top_builddir@&$ac_top_builddir_sub&;t t
20582: s&@top_build_prefix@&$ac_top_build_prefix&;t t
20583: s&@srcdir@&$ac_srcdir&;t t
20584: s&@abs_srcdir@&$ac_abs_srcdir&;t t
20585: s&@top_srcdir@&$ac_top_srcdir&;t t
20586: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20587: s&@builddir@&$ac_builddir&;t t
20588: s&@abs_builddir@&$ac_abs_builddir&;t t
20589: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20590: s&@INSTALL@&$ac_INSTALL&;t t
20591: s&@MKDIR_P@&$ac_MKDIR_P&;t t
20592: $ac_datarootdir_hack
20593: "
20594: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20595: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20596:
20597: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20598: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20599: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20600: "$ac_tmp/out"`; test -z "$ac_out"; } &&
20601: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20602: which seems to be undefined. Please make sure it is defined" >&5
20603: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20604: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 20605:
1.150 moko 20606: rm -f "$ac_tmp/stdin"
1.62 paf 20607: case $ac_file in
1.150 moko 20608: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20609: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20610: esac \
20611: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20612: ;;
20613: :H)
20614: #
20615: # CONFIG_HEADER
20616: #
1.62 paf 20617: if test x"$ac_file" != x-; then
1.150 moko 20618: {
20619: $as_echo "/* $configure_input */" \
20620: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20621: } >"$ac_tmp/config.h" \
20622: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20623: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20624: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20625: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 20626: else
1.150 moko 20627: rm -f "$ac_file"
20628: mv "$ac_tmp/config.h" "$ac_file" \
20629: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 20630: fi
20631: else
1.150 moko 20632: $as_echo "/* $configure_input */" \
20633: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20634: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 20635: fi
1.150 moko 20636: # Compute "$ac_file"'s index in $config_headers.
20637: _am_arg="$ac_file"
1.86 paf 20638: _am_stamp_count=1
20639: for _am_header in $config_headers :; do
20640: case $_am_header in
1.150 moko 20641: $_am_arg | $_am_arg:* )
1.86 paf 20642: break ;;
20643: * )
20644: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20645: esac
20646: done
1.150 moko 20647: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20648: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20649: X"$_am_arg" : 'X\(//\)[^/]' \| \
20650: X"$_am_arg" : 'X\(//\)$' \| \
20651: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20652: $as_echo X"$_am_arg" |
20653: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20654: s//\1/
20655: q
20656: }
20657: /^X\(\/\/\)[^/].*/{
20658: s//\1/
20659: q
20660: }
20661: /^X\(\/\/\)$/{
20662: s//\1/
20663: q
20664: }
20665: /^X\(\/\).*/{
20666: s//\1/
20667: q
20668: }
20669: s/.*/./; q'`/stamp-h$_am_stamp_count
20670: ;;
1.62 paf 20671:
1.150 moko 20672: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20673: $as_echo "$as_me: executing $ac_file commands" >&6;}
20674: ;;
20675: esac
1.86 paf 20676:
1.62 paf 20677:
1.150 moko 20678: case $ac_file$ac_mode in
20679: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 20680: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 20681: # are listed without --file. Let's play safe and only enable the eval
20682: # if we detect the quoting.
20683: case $CONFIG_FILES in
20684: *\'*) eval set x "$CONFIG_FILES" ;;
20685: *) set x $CONFIG_FILES ;;
20686: esac
20687: shift
20688: for mf
20689: do
20690: # Strip MF so we end up with the name of the file.
20691: mf=`echo "$mf" | sed -e 's/:.*$//'`
20692: # Check whether this is an Automake generated Makefile or not.
1.187 moko 20693: # We used to match only the files named 'Makefile.in', but
1.150 moko 20694: # some people rename them; so instead we look at the file content.
20695: # Grep'ing the first line is not enough: some people post-process
20696: # each Makefile.in and add a new line on top of each file to say so.
20697: # Grep'ing the whole file is not good either: AIX grep has a line
20698: # limit of 2048, but all sed's we know have understand at least 4000.
20699: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20700: dirpart=`$as_dirname -- "$mf" ||
1.62 paf 20701: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20702: X"$mf" : 'X\(//\)[^/]' \| \
20703: X"$mf" : 'X\(//\)$' \| \
1.150 moko 20704: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20705: $as_echo X"$mf" |
20706: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20707: s//\1/
20708: q
20709: }
20710: /^X\(\/\/\)[^/].*/{
20711: s//\1/
20712: q
20713: }
20714: /^X\(\/\/\)$/{
20715: s//\1/
20716: q
20717: }
20718: /^X\(\/\).*/{
20719: s//\1/
20720: q
20721: }
20722: s/.*/./; q'`
20723: else
20724: continue
20725: fi
20726: # Extract the definition of DEPDIR, am__include, and am__quote
1.187 moko 20727: # from the Makefile without running 'make'.
1.150 moko 20728: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20729: test -z "$DEPDIR" && continue
20730: am__include=`sed -n 's/^am__include = //p' < "$mf"`
1.187 moko 20731: test -z "$am__include" && continue
1.150 moko 20732: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20733: # Find all dependency output files, they are included files with
20734: # $(DEPDIR) in their names. We invoke sed twice because it is the
20735: # simplest approach to changing $(DEPDIR) to its actual value in the
20736: # expansion.
20737: for file in `sed -n "
20738: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.187 moko 20739: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1.150 moko 20740: # Make sure the directory exists.
20741: test -f "$dirpart/$file" && continue
20742: fdir=`$as_dirname -- "$file" ||
1.62 paf 20743: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20744: X"$file" : 'X\(//\)[^/]' \| \
20745: X"$file" : 'X\(//\)$' \| \
1.150 moko 20746: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20747: $as_echo X"$file" |
20748: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20749: s//\1/
20750: q
20751: }
20752: /^X\(\/\/\)[^/].*/{
20753: s//\1/
20754: q
20755: }
20756: /^X\(\/\/\)$/{
20757: s//\1/
20758: q
20759: }
20760: /^X\(\/\).*/{
20761: s//\1/
20762: q
20763: }
20764: s/.*/./; q'`
20765: as_dir=$dirpart/$fdir; as_fn_mkdir_p
20766: # echo "creating $dirpart/$file"
20767: echo '# dummy' > "$dirpart/$file"
1.62 paf 20768: done
20769: done
1.150 moko 20770: }
1.62 paf 20771: ;;
1.150 moko 20772: "libtool":C)
1.128 moko 20773:
20774: # See if we are running on zsh, and set the options which allow our
20775: # commands through without removal of \ escapes.
20776: if test -n "${ZSH_VERSION+set}" ; then
20777: setopt NO_GLOB_SUBST
20778: fi
20779:
20780: cfgfile="${ofile}T"
20781: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20782: $RM "$cfgfile"
20783:
20784: cat <<_LT_EOF >> "$cfgfile"
20785: #! $SHELL
20786:
20787: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20788: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20789: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20790: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20791: #
20792: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20793: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20794: # Foundation, Inc.
20795: # Written by Gordon Matzigkeit, 1996
20796: #
20797: # This file is part of GNU Libtool.
20798: #
20799: # GNU Libtool is free software; you can redistribute it and/or
20800: # modify it under the terms of the GNU General Public License as
20801: # published by the Free Software Foundation; either version 2 of
20802: # the License, or (at your option) any later version.
20803: #
20804: # As a special exception to the GNU General Public License,
20805: # if you distribute this file as part of a program or library that
20806: # is built using GNU Libtool, you may include this file under the
20807: # same distribution terms that you use for the rest of that program.
20808: #
20809: # GNU Libtool is distributed in the hope that it will be useful,
20810: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20811: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20812: # GNU General Public License for more details.
20813: #
20814: # You should have received a copy of the GNU General Public License
20815: # along with GNU Libtool; see the file COPYING. If not, a copy
20816: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20817: # obtained by writing to the Free Software Foundation, Inc.,
20818: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20819:
20820:
20821: # The names of the tagged configurations supported by this script.
20822: available_tags="CXX "
20823:
20824: # ### BEGIN LIBTOOL CONFIG
20825:
20826: # Which release of libtool.m4 was used?
20827: macro_version=$macro_version
20828: macro_revision=$macro_revision
20829:
20830: # Assembler program.
20831: AS=$lt_AS
20832:
20833: # DLL creation program.
20834: DLLTOOL=$lt_DLLTOOL
20835:
20836: # Object dumper program.
20837: OBJDUMP=$lt_OBJDUMP
20838:
1.145 moko 20839: # What type of objects to build.
20840: pic_mode=$pic_mode
20841:
1.128 moko 20842: # Whether or not to build shared libraries.
20843: build_libtool_libs=$enable_shared
20844:
1.138 moko 20845: # Whether or not to build static libraries.
20846: build_old_libs=$enable_static
20847:
1.128 moko 20848: # Whether or not to optimize for fast installation.
20849: fast_install=$enable_fast_install
20850:
20851: # Shell to use when invoking shell scripts.
20852: SHELL=$lt_SHELL
20853:
20854: # An echo program that protects backslashes.
20855: ECHO=$lt_ECHO
20856:
20857: # The PATH separator for the build system.
20858: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20859:
20860: # The host system.
20861: host_alias=$host_alias
20862: host=$host
20863: host_os=$host_os
20864:
20865: # The build system.
20866: build_alias=$build_alias
20867: build=$build
20868: build_os=$build_os
20869:
20870: # A sed program that does not truncate output.
20871: SED=$lt_SED
20872:
20873: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20874: Xsed="\$SED -e 1s/^X//"
20875:
20876: # A grep program that handles long lines.
20877: GREP=$lt_GREP
20878:
20879: # An ERE matcher.
20880: EGREP=$lt_EGREP
20881:
20882: # A literal string matcher.
20883: FGREP=$lt_FGREP
20884:
20885: # A BSD- or MS-compatible name lister.
20886: NM=$lt_NM
20887:
20888: # Whether we need soft or hard links.
20889: LN_S=$lt_LN_S
20890:
20891: # What is the maximum length of a command?
20892: max_cmd_len=$max_cmd_len
20893:
20894: # Object file suffix (normally "o").
20895: objext=$ac_objext
20896:
20897: # Executable file suffix (normally "").
20898: exeext=$exeext
20899:
20900: # whether the shell understands "unset".
20901: lt_unset=$lt_unset
20902:
20903: # turn spaces into newlines.
20904: SP2NL=$lt_lt_SP2NL
20905:
20906: # turn newlines into spaces.
20907: NL2SP=$lt_lt_NL2SP
20908:
20909: # convert \$build file names to \$host format.
20910: to_host_file_cmd=$lt_cv_to_host_file_cmd
20911:
20912: # convert \$build files to toolchain format.
20913: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20914:
20915: # Method to check whether dependent libraries are shared objects.
20916: deplibs_check_method=$lt_deplibs_check_method
20917:
20918: # Command to use when deplibs_check_method = "file_magic".
20919: file_magic_cmd=$lt_file_magic_cmd
20920:
20921: # How to find potential files when deplibs_check_method = "file_magic".
20922: file_magic_glob=$lt_file_magic_glob
20923:
20924: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20925: want_nocaseglob=$lt_want_nocaseglob
20926:
20927: # Command to associate shared and link libraries.
20928: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20929:
20930: # The archiver.
20931: AR=$lt_AR
20932:
20933: # Flags to create an archive.
20934: AR_FLAGS=$lt_AR_FLAGS
20935:
20936: # How to feed a file listing to the archiver.
20937: archiver_list_spec=$lt_archiver_list_spec
20938:
20939: # A symbol stripping program.
20940: STRIP=$lt_STRIP
20941:
20942: # Commands used to install an old-style archive.
20943: RANLIB=$lt_RANLIB
20944: old_postinstall_cmds=$lt_old_postinstall_cmds
20945: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20946:
20947: # Whether to use a lock for old archive extraction.
20948: lock_old_archive_extraction=$lock_old_archive_extraction
20949:
20950: # A C compiler.
20951: LTCC=$lt_CC
20952:
20953: # LTCC compiler flags.
20954: LTCFLAGS=$lt_CFLAGS
20955:
20956: # Take the output of nm and produce a listing of raw symbols and C names.
20957: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20958:
20959: # Transform the output of nm in a proper C declaration.
20960: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20961:
20962: # Transform the output of nm in a C name address pair.
20963: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20964:
20965: # Transform the output of nm in a C name address pair when lib prefix is needed.
20966: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20967:
20968: # Specify filename containing input files for \$NM.
20969: nm_file_list_spec=$lt_nm_file_list_spec
20970:
20971: # The root where to search for dependent libraries,and in which our libraries should be installed.
20972: lt_sysroot=$lt_sysroot
20973:
20974: # The name of the directory that contains temporary libtool files.
20975: objdir=$objdir
20976:
20977: # Used to examine libraries when file_magic_cmd begins with "file".
20978: MAGIC_CMD=$MAGIC_CMD
20979:
20980: # Must we lock files when doing compilation?
20981: need_locks=$lt_need_locks
20982:
20983: # Manifest tool.
20984: MANIFEST_TOOL=$lt_MANIFEST_TOOL
20985:
20986: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20987: DSYMUTIL=$lt_DSYMUTIL
20988:
20989: # Tool to change global to local symbols on Mac OS X.
20990: NMEDIT=$lt_NMEDIT
20991:
20992: # Tool to manipulate fat objects and archives on Mac OS X.
20993: LIPO=$lt_LIPO
20994:
20995: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20996: OTOOL=$lt_OTOOL
20997:
20998: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20999: OTOOL64=$lt_OTOOL64
21000:
21001: # Old archive suffix (normally "a").
21002: libext=$libext
21003:
21004: # Shared library suffix (normally ".so").
21005: shrext_cmds=$lt_shrext_cmds
21006:
21007: # The commands to extract the exported symbol list from a shared archive.
21008: extract_expsyms_cmds=$lt_extract_expsyms_cmds
21009:
21010: # Variables whose values should be saved in libtool wrapper scripts and
21011: # restored at link time.
21012: variables_saved_for_relink=$lt_variables_saved_for_relink
21013:
21014: # Do we need the "lib" prefix for modules?
21015: need_lib_prefix=$need_lib_prefix
21016:
21017: # Do we need a version for libraries?
21018: need_version=$need_version
21019:
21020: # Library versioning type.
21021: version_type=$version_type
21022:
21023: # Shared library runtime path variable.
21024: runpath_var=$runpath_var
21025:
21026: # Shared library path variable.
21027: shlibpath_var=$shlibpath_var
21028:
21029: # Is shlibpath searched before the hard-coded library search path?
21030: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21031:
21032: # Format of library name prefix.
21033: libname_spec=$lt_libname_spec
21034:
21035: # List of archive names. First name is the real one, the rest are links.
21036: # The last name is the one that the linker finds with -lNAME
21037: library_names_spec=$lt_library_names_spec
21038:
21039: # The coded name of the library, if different from the real name.
21040: soname_spec=$lt_soname_spec
21041:
21042: # Permission mode override for installation of shared libraries.
21043: install_override_mode=$lt_install_override_mode
21044:
21045: # Command to use after installation of a shared archive.
21046: postinstall_cmds=$lt_postinstall_cmds
21047:
21048: # Command to use after uninstallation of a shared archive.
21049: postuninstall_cmds=$lt_postuninstall_cmds
21050:
21051: # Commands used to finish a libtool library installation in a directory.
21052: finish_cmds=$lt_finish_cmds
21053:
21054: # As "finish_cmds", except a single script fragment to be evaled but
21055: # not shown.
21056: finish_eval=$lt_finish_eval
21057:
21058: # Whether we should hardcode library paths into libraries.
21059: hardcode_into_libs=$hardcode_into_libs
21060:
21061: # Compile-time system search path for libraries.
21062: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21063:
21064: # Run-time system search path for libraries.
21065: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21066:
21067: # Whether dlopen is supported.
21068: dlopen_support=$enable_dlopen
21069:
21070: # Whether dlopen of programs is supported.
21071: dlopen_self=$enable_dlopen_self
21072:
21073: # Whether dlopen of statically linked programs is supported.
21074: dlopen_self_static=$enable_dlopen_self_static
21075:
21076: # Commands to strip libraries.
21077: old_striplib=$lt_old_striplib
21078: striplib=$lt_striplib
21079:
21080:
21081: # The linker used to build libraries.
21082: LD=$lt_LD
21083:
21084: # How to create reloadable object files.
21085: reload_flag=$lt_reload_flag
21086: reload_cmds=$lt_reload_cmds
21087:
21088: # Commands used to build an old-style archive.
21089: old_archive_cmds=$lt_old_archive_cmds
21090:
21091: # A language specific compiler.
21092: CC=$lt_compiler
21093:
21094: # Is the compiler the GNU compiler?
21095: with_gcc=$GCC
21096:
21097: # Compiler flag to turn off builtin functions.
21098: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21099:
21100: # Additional compiler flags for building library objects.
21101: pic_flag=$lt_lt_prog_compiler_pic
21102:
21103: # How to pass a linker flag through the compiler.
21104: wl=$lt_lt_prog_compiler_wl
21105:
21106: # Compiler flag to prevent dynamic linking.
21107: link_static_flag=$lt_lt_prog_compiler_static
21108:
21109: # Does compiler simultaneously support -c and -o options?
21110: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21111:
21112: # Whether or not to add -lc for building shared libraries.
21113: build_libtool_need_lc=$archive_cmds_need_lc
21114:
21115: # Whether or not to disallow shared libs when runtime libs are static.
21116: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21117:
21118: # Compiler flag to allow reflexive dlopens.
21119: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21120:
21121: # Compiler flag to generate shared objects directly from archives.
21122: whole_archive_flag_spec=$lt_whole_archive_flag_spec
21123:
21124: # Whether the compiler copes with passing no objects directly.
21125: compiler_needs_object=$lt_compiler_needs_object
21126:
21127: # Create an old-style archive from a shared archive.
21128: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21129:
21130: # Create a temporary old-style archive to link instead of a shared archive.
21131: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21132:
21133: # Commands used to build a shared archive.
21134: archive_cmds=$lt_archive_cmds
21135: archive_expsym_cmds=$lt_archive_expsym_cmds
21136:
21137: # Commands used to build a loadable module if different from building
21138: # a shared archive.
21139: module_cmds=$lt_module_cmds
21140: module_expsym_cmds=$lt_module_expsym_cmds
21141:
21142: # Whether we are building with GNU ld or not.
21143: with_gnu_ld=$lt_with_gnu_ld
21144:
21145: # Flag that allows shared libraries with undefined symbols to be built.
21146: allow_undefined_flag=$lt_allow_undefined_flag
21147:
21148: # Flag that enforces no undefined symbols.
21149: no_undefined_flag=$lt_no_undefined_flag
21150:
21151: # Flag to hardcode \$libdir into a binary during linking.
21152: # This must work even if \$libdir does not exist
21153: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21154:
21155: # Whether we need a single "-rpath" flag with a separated argument.
21156: hardcode_libdir_separator=$lt_hardcode_libdir_separator
21157:
21158: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21159: # DIR into the resulting binary.
21160: hardcode_direct=$hardcode_direct
21161:
21162: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21163: # DIR into the resulting binary and the resulting library dependency is
21164: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21165: # library is relocated.
21166: hardcode_direct_absolute=$hardcode_direct_absolute
21167:
21168: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21169: # into the resulting binary.
21170: hardcode_minus_L=$hardcode_minus_L
21171:
21172: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21173: # into the resulting binary.
21174: hardcode_shlibpath_var=$hardcode_shlibpath_var
21175:
21176: # Set to "yes" if building a shared library automatically hardcodes DIR
21177: # into the library and all subsequent libraries and executables linked
21178: # against it.
21179: hardcode_automatic=$hardcode_automatic
21180:
21181: # Set to yes if linker adds runtime paths of dependent libraries
21182: # to runtime path list.
21183: inherit_rpath=$inherit_rpath
21184:
21185: # Whether libtool must link a program against all its dependency libraries.
21186: link_all_deplibs=$link_all_deplibs
21187:
21188: # Set to "yes" if exported symbols are required.
21189: always_export_symbols=$always_export_symbols
21190:
21191: # The commands to list exported symbols.
21192: export_symbols_cmds=$lt_export_symbols_cmds
21193:
21194: # Symbols that should not be listed in the preloaded symbols.
21195: exclude_expsyms=$lt_exclude_expsyms
21196:
21197: # Symbols that must always be exported.
21198: include_expsyms=$lt_include_expsyms
21199:
21200: # Commands necessary for linking programs (against libraries) with templates.
21201: prelink_cmds=$lt_prelink_cmds
21202:
21203: # Commands necessary for finishing linking programs.
21204: postlink_cmds=$lt_postlink_cmds
21205:
21206: # Specify filename containing input files.
21207: file_list_spec=$lt_file_list_spec
21208:
21209: # How to hardcode a shared library path into an executable.
21210: hardcode_action=$hardcode_action
21211:
21212: # The directories searched by this compiler when creating a shared library.
21213: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21214:
21215: # Dependencies to place before and after the objects being linked to
21216: # create a shared library.
21217: predep_objects=$lt_predep_objects
21218: postdep_objects=$lt_postdep_objects
21219: predeps=$lt_predeps
21220: postdeps=$lt_postdeps
21221:
21222: # The library search path used internally by the compiler when linking
21223: # a shared library.
21224: compiler_lib_search_path=$lt_compiler_lib_search_path
21225:
21226: # ### END LIBTOOL CONFIG
21227:
21228: _LT_EOF
21229:
21230: case $host_os in
21231: aix3*)
21232: cat <<\_LT_EOF >> "$cfgfile"
21233: # AIX sometimes has problems with the GCC collect2 program. For some
21234: # reason, if we set the COLLECT_NAMES environment variable, the problems
21235: # vanish in a puff of smoke.
21236: if test "X${COLLECT_NAMES+set}" != Xset; then
21237: COLLECT_NAMES=
21238: export COLLECT_NAMES
21239: fi
21240: _LT_EOF
21241: ;;
21242: esac
21243:
21244:
21245: ltmain="$ac_aux_dir/ltmain.sh"
21246:
21247:
21248: # We use sed instead of cat because bash on DJGPP gets confused if
21249: # if finds mixed CR/LF and LF-only lines. Since sed operates in
21250: # text mode, it properly converts lines to CR/LF. This bash problem
21251: # is reportedly fixed, but why not run on old versions too?
21252: sed '$q' "$ltmain" >> "$cfgfile" \
21253: || (rm -f "$cfgfile"; exit 1)
21254:
21255: if test x"$xsi_shell" = xyes; then
21256: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21257: func_dirname ()\
21258: {\
21259: \ case ${1} in\
21260: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21261: \ * ) func_dirname_result="${3}" ;;\
21262: \ esac\
21263: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21264: && mv -f "$cfgfile.tmp" "$cfgfile" \
21265: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21266: test 0 -eq $? || _lt_function_replace_fail=:
21267:
21268:
21269: sed -e '/^func_basename ()$/,/^} # func_basename /c\
21270: func_basename ()\
21271: {\
21272: \ func_basename_result="${1##*/}"\
21273: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21274: && mv -f "$cfgfile.tmp" "$cfgfile" \
21275: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21276: test 0 -eq $? || _lt_function_replace_fail=:
21277:
21278:
21279: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21280: func_dirname_and_basename ()\
21281: {\
21282: \ case ${1} in\
21283: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21284: \ * ) func_dirname_result="${3}" ;;\
21285: \ esac\
21286: \ func_basename_result="${1##*/}"\
21287: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21288: && mv -f "$cfgfile.tmp" "$cfgfile" \
21289: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21290: test 0 -eq $? || _lt_function_replace_fail=:
21291:
21292:
21293: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21294: func_stripname ()\
21295: {\
21296: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21297: \ # positional parameters, so assign one to ordinary parameter first.\
21298: \ func_stripname_result=${3}\
21299: \ func_stripname_result=${func_stripname_result#"${1}"}\
21300: \ func_stripname_result=${func_stripname_result%"${2}"}\
21301: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21302: && mv -f "$cfgfile.tmp" "$cfgfile" \
21303: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21304: test 0 -eq $? || _lt_function_replace_fail=:
21305:
21306:
21307: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21308: func_split_long_opt ()\
21309: {\
21310: \ func_split_long_opt_name=${1%%=*}\
21311: \ func_split_long_opt_arg=${1#*=}\
21312: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21313: && mv -f "$cfgfile.tmp" "$cfgfile" \
21314: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21315: test 0 -eq $? || _lt_function_replace_fail=:
21316:
21317:
21318: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21319: func_split_short_opt ()\
21320: {\
21321: \ func_split_short_opt_arg=${1#??}\
21322: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21323: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21324: && mv -f "$cfgfile.tmp" "$cfgfile" \
21325: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21326: test 0 -eq $? || _lt_function_replace_fail=:
21327:
21328:
21329: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21330: func_lo2o ()\
21331: {\
21332: \ case ${1} in\
21333: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21334: \ *) func_lo2o_result=${1} ;;\
21335: \ esac\
21336: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21337: && mv -f "$cfgfile.tmp" "$cfgfile" \
21338: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21339: test 0 -eq $? || _lt_function_replace_fail=:
21340:
21341:
21342: sed -e '/^func_xform ()$/,/^} # func_xform /c\
21343: func_xform ()\
21344: {\
21345: func_xform_result=${1%.*}.lo\
21346: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21347: && mv -f "$cfgfile.tmp" "$cfgfile" \
21348: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21349: test 0 -eq $? || _lt_function_replace_fail=:
21350:
21351:
21352: sed -e '/^func_arith ()$/,/^} # func_arith /c\
21353: func_arith ()\
21354: {\
21355: func_arith_result=$(( $* ))\
21356: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21357: && mv -f "$cfgfile.tmp" "$cfgfile" \
21358: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21359: test 0 -eq $? || _lt_function_replace_fail=:
21360:
21361:
21362: sed -e '/^func_len ()$/,/^} # func_len /c\
21363: func_len ()\
21364: {\
21365: func_len_result=${#1}\
21366: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21367: && mv -f "$cfgfile.tmp" "$cfgfile" \
21368: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21369: test 0 -eq $? || _lt_function_replace_fail=:
21370:
21371: fi
21372:
21373: if test x"$lt_shell_append" = xyes; then
21374: sed -e '/^func_append ()$/,/^} # func_append /c\
21375: func_append ()\
21376: {\
21377: eval "${1}+=\\${2}"\
21378: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21379: && mv -f "$cfgfile.tmp" "$cfgfile" \
21380: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21381: test 0 -eq $? || _lt_function_replace_fail=:
21382:
21383:
21384: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21385: func_append_quoted ()\
21386: {\
21387: \ func_quote_for_eval "${2}"\
21388: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21389: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21390: && mv -f "$cfgfile.tmp" "$cfgfile" \
21391: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21392: test 0 -eq $? || _lt_function_replace_fail=:
21393:
21394:
21395: # Save a `func_append' function call where possible by direct use of '+='
21396: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21397: && mv -f "$cfgfile.tmp" "$cfgfile" \
21398: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21399: test 0 -eq $? || _lt_function_replace_fail=:
21400: else
21401: # Save a `func_append' function call even when '+=' is not available
21402: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21403: && mv -f "$cfgfile.tmp" "$cfgfile" \
21404: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21405: test 0 -eq $? || _lt_function_replace_fail=:
21406: fi
21407:
21408: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 21409: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21410: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 21411: fi
21412:
21413:
21414: mv -f "$cfgfile" "$ofile" ||
21415: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21416: chmod +x "$ofile"
21417:
21418:
21419: cat <<_LT_EOF >> "$ofile"
21420:
21421: # ### BEGIN LIBTOOL TAG CONFIG: CXX
21422:
21423: # The linker used to build libraries.
21424: LD=$lt_LD_CXX
21425:
21426: # How to create reloadable object files.
21427: reload_flag=$lt_reload_flag_CXX
21428: reload_cmds=$lt_reload_cmds_CXX
21429:
21430: # Commands used to build an old-style archive.
21431: old_archive_cmds=$lt_old_archive_cmds_CXX
21432:
21433: # A language specific compiler.
21434: CC=$lt_compiler_CXX
21435:
21436: # Is the compiler the GNU compiler?
21437: with_gcc=$GCC_CXX
21438:
21439: # Compiler flag to turn off builtin functions.
21440: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21441:
21442: # Additional compiler flags for building library objects.
21443: pic_flag=$lt_lt_prog_compiler_pic_CXX
21444:
21445: # How to pass a linker flag through the compiler.
21446: wl=$lt_lt_prog_compiler_wl_CXX
21447:
21448: # Compiler flag to prevent dynamic linking.
21449: link_static_flag=$lt_lt_prog_compiler_static_CXX
21450:
21451: # Does compiler simultaneously support -c and -o options?
21452: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21453:
21454: # Whether or not to add -lc for building shared libraries.
21455: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21456:
21457: # Whether or not to disallow shared libs when runtime libs are static.
21458: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21459:
21460: # Compiler flag to allow reflexive dlopens.
21461: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21462:
21463: # Compiler flag to generate shared objects directly from archives.
21464: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21465:
21466: # Whether the compiler copes with passing no objects directly.
21467: compiler_needs_object=$lt_compiler_needs_object_CXX
21468:
21469: # Create an old-style archive from a shared archive.
21470: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21471:
21472: # Create a temporary old-style archive to link instead of a shared archive.
21473: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21474:
21475: # Commands used to build a shared archive.
21476: archive_cmds=$lt_archive_cmds_CXX
21477: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21478:
21479: # Commands used to build a loadable module if different from building
21480: # a shared archive.
21481: module_cmds=$lt_module_cmds_CXX
21482: module_expsym_cmds=$lt_module_expsym_cmds_CXX
21483:
21484: # Whether we are building with GNU ld or not.
21485: with_gnu_ld=$lt_with_gnu_ld_CXX
21486:
21487: # Flag that allows shared libraries with undefined symbols to be built.
21488: allow_undefined_flag=$lt_allow_undefined_flag_CXX
21489:
21490: # Flag that enforces no undefined symbols.
21491: no_undefined_flag=$lt_no_undefined_flag_CXX
21492:
21493: # Flag to hardcode \$libdir into a binary during linking.
21494: # This must work even if \$libdir does not exist
21495: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21496:
21497: # Whether we need a single "-rpath" flag with a separated argument.
21498: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21499:
21500: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21501: # DIR into the resulting binary.
21502: hardcode_direct=$hardcode_direct_CXX
21503:
21504: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21505: # DIR into the resulting binary and the resulting library dependency is
21506: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21507: # library is relocated.
21508: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21509:
21510: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21511: # into the resulting binary.
21512: hardcode_minus_L=$hardcode_minus_L_CXX
21513:
21514: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21515: # into the resulting binary.
21516: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21517:
21518: # Set to "yes" if building a shared library automatically hardcodes DIR
21519: # into the library and all subsequent libraries and executables linked
21520: # against it.
21521: hardcode_automatic=$hardcode_automatic_CXX
21522:
21523: # Set to yes if linker adds runtime paths of dependent libraries
21524: # to runtime path list.
21525: inherit_rpath=$inherit_rpath_CXX
21526:
21527: # Whether libtool must link a program against all its dependency libraries.
21528: link_all_deplibs=$link_all_deplibs_CXX
21529:
21530: # Set to "yes" if exported symbols are required.
21531: always_export_symbols=$always_export_symbols_CXX
21532:
21533: # The commands to list exported symbols.
21534: export_symbols_cmds=$lt_export_symbols_cmds_CXX
21535:
21536: # Symbols that should not be listed in the preloaded symbols.
21537: exclude_expsyms=$lt_exclude_expsyms_CXX
21538:
21539: # Symbols that must always be exported.
21540: include_expsyms=$lt_include_expsyms_CXX
21541:
21542: # Commands necessary for linking programs (against libraries) with templates.
21543: prelink_cmds=$lt_prelink_cmds_CXX
21544:
21545: # Commands necessary for finishing linking programs.
21546: postlink_cmds=$lt_postlink_cmds_CXX
21547:
21548: # Specify filename containing input files.
21549: file_list_spec=$lt_file_list_spec_CXX
21550:
21551: # How to hardcode a shared library path into an executable.
21552: hardcode_action=$hardcode_action_CXX
21553:
21554: # The directories searched by this compiler when creating a shared library.
21555: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21556:
21557: # Dependencies to place before and after the objects being linked to
21558: # create a shared library.
21559: predep_objects=$lt_predep_objects_CXX
21560: postdep_objects=$lt_postdep_objects_CXX
21561: predeps=$lt_predeps_CXX
21562: postdeps=$lt_postdeps_CXX
21563:
21564: # The library search path used internally by the compiler when linking
21565: # a shared library.
21566: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21567:
21568: # ### END LIBTOOL TAG CONFIG: CXX
21569: _LT_EOF
21570:
21571: ;;
1.150 moko 21572:
1.62 paf 21573: esac
1.150 moko 21574: done # for ac_tag
1.62 paf 21575:
21576:
1.150 moko 21577: as_fn_exit 0
1.62 paf 21578: _ACEOF
21579: ac_clean_files=$ac_clean_files_save
21580:
1.150 moko 21581: test $ac_write_fail = 0 ||
21582: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21583:
1.1 paf 21584:
1.62 paf 21585: # configure is writing to config.log, and then calls config.status.
21586: # config.status does its own redirection, appending to config.log.
21587: # Unfortunately, on DOS this fails, as config.log is still kept open
21588: # by configure, so config.status won't be able to write to it; its
21589: # output is simply discarded. So we exec the FD to /dev/null,
21590: # effectively closing config.log, so it can be properly (re)opened and
21591: # appended to by config.status. When coming back to configure, we
21592: # need to make the FD available again.
21593: if test "$no_create" != yes; then
21594: ac_cs_success=:
21595: ac_config_status_args=
21596: test "$silent" = yes &&
21597: ac_config_status_args="$ac_config_status_args --quiet"
21598: exec 5>/dev/null
21599: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21600: exec 5>>config.log
21601: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21602: # would make configure fail if this is the last instruction.
1.150 moko 21603: $ac_cs_success || as_fn_exit 1
1.62 paf 21604: fi
21605:
21606: #
21607: # CONFIG_SUBDIRS section.
21608: #
1.1 paf 21609: if test "$no_recursion" != yes; then
21610:
1.150 moko 21611: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21612: # so they do not pile up.
1.1 paf 21613: ac_sub_configure_args=
21614: ac_prev=
1.150 moko 21615: eval "set x $ac_configure_args"
21616: shift
21617: for ac_arg
21618: do
1.1 paf 21619: if test -n "$ac_prev"; then
21620: ac_prev=
21621: continue
21622: fi
1.62 paf 21623: case $ac_arg in
1.1 paf 21624: -cache-file | --cache-file | --cache-fil | --cache-fi \
21625: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21626: ac_prev=cache_file ;;
21627: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 21628: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21629: | --c=*)
21630: ;;
21631: --config-cache | -C)
1.1 paf 21632: ;;
21633: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21634: ac_prev=srcdir ;;
21635: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21636: ;;
1.62 paf 21637: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21638: ac_prev=prefix ;;
21639: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21640: ;;
1.150 moko 21641: --disable-option-checking)
21642: ;;
21643: *)
21644: case $ac_arg in
21645: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21646: esac
21647: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 21648: esac
21649: done
21650:
1.62 paf 21651: # Always prepend --prefix to ensure using the same prefix
21652: # in subdir configurations.
1.150 moko 21653: ac_arg="--prefix=$prefix"
21654: case $ac_arg in
21655: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21656: esac
21657: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21658:
21659: # Pass --silent
21660: if test "$silent" = yes; then
21661: ac_sub_configure_args="--silent $ac_sub_configure_args"
21662: fi
21663:
21664: # Always prepend --disable-option-checking to silence warnings, since
21665: # different subdirs can have different --enable and --with options.
21666: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 21667:
21668: ac_popdir=`pwd`
21669: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21670:
21671: # Do not complain, so a configure script can configure whichever
21672: # parts of a large source tree are present.
1.150 moko 21673: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21674:
1.150 moko 21675: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21676: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21677: $as_echo "$ac_msg" >&6
21678: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21679: ac_builddir=.
21680:
1.150 moko 21681: case "$ac_dir" in
21682: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21683: *)
21684: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21685: # A ".." for each directory in $ac_dir_suffix.
21686: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21687: case $ac_top_builddir_sub in
21688: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21689: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21690: esac ;;
21691: esac
21692: ac_abs_top_builddir=$ac_pwd
21693: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21694: # for backward compatibility:
21695: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21696:
21697: case $srcdir in
1.150 moko 21698: .) # We are building in place.
1.62 paf 21699: ac_srcdir=.
1.150 moko 21700: ac_top_srcdir=$ac_top_builddir_sub
21701: ac_abs_top_srcdir=$ac_pwd ;;
21702: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21703: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21704: ac_top_srcdir=$srcdir
21705: ac_abs_top_srcdir=$srcdir ;;
21706: *) # Relative name.
21707: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21708: ac_top_srcdir=$ac_top_build_prefix$srcdir
21709: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21710: esac
1.150 moko 21711: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21712:
21713:
1.150 moko 21714: cd "$ac_dir"
1.1 paf 21715:
21716: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21717: if test -f "$ac_srcdir/configure.gnu"; then
21718: ac_sub_configure=$ac_srcdir/configure.gnu
21719: elif test -f "$ac_srcdir/configure"; then
21720: ac_sub_configure=$ac_srcdir/configure
21721: elif test -f "$ac_srcdir/configure.in"; then
21722: # This should be Cygnus configure.
21723: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21724: else
1.150 moko 21725: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21726: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21727: ac_sub_configure=
21728: fi
21729:
21730: # The recursion is here.
21731: if test -n "$ac_sub_configure"; then
21732: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21733: case $cache_file in
21734: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21735: *) # Relative name.
21736: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21737: esac
21738:
1.150 moko 21739: { $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
21740: $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 21741: # The eval makes quoting arguments work.
1.150 moko 21742: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21743: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21744: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21745: fi
21746:
1.150 moko 21747: cd "$ac_popdir"
1.1 paf 21748: done
21749: fi
1.150 moko 21750: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21751: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21752: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21753: fi
1.1 paf 21754:
E-mail: