Annotation of parser3/configure, revision 1.192
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.185 moko 4934: CFLAGS="$CFLAGS -O0 -pg"
4935: CXXFLAGS="$CXXFLAGS -O0 -pg"
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.67 paf 5171:
1.142 moko 5172: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
5173: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
5174: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
5175: XML_OK="yes"
5176: fi
1.67 paf 5177: fi
1.66 paf 5178:
1.142 moko 5179: if test -z "$XML_OK"; then
1.150 moko 5180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
5181: $as_echo_n "checking for xml... " >&6; }
1.142 moko 5182: SAVE_LIBS=$LIBS
5183: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.150 moko 5184: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5185: /* end confdefs.h. */
5186: #include <libxslt/xslt.h>
5187: int
5188: main ()
5189: {
5190: const char *v=xsltEngineVersion;
5191: ;
5192: return 0;
5193: }
5194: _ACEOF
1.150 moko 5195: if ac_fn_c_try_link "$LINENO"; then :
5196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5197: $as_echo "yes" >&6; }
1.142 moko 5198:
5199: else
1.150 moko 5200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201: $as_echo "no" >&6; }
1.142 moko 5202: if test -z "$XML"; then
1.151 moko 5203: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=D" "$LINENO" 5
1.142 moko 5204: else
1.150 moko 5205: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 5206: fi
5207:
5208: fi
1.150 moko 5209: rm -f core conftest.err conftest.$ac_objext \
5210: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5211: LIBS=$SAVE_LIBS
1.67 paf 5212: fi
1.66 paf 5213:
1.150 moko 5214: $as_echo "#define XML /**/" >>confdefs.h
5215:
1.66 paf 5216:
1.150 moko 5217: fi
1.66 paf 5218:
1.90 paf 5219:
1.66 paf 5220:
5221:
5222:
5223:
1.90 paf 5224:
1.154 moko 5225: # Check whether --with-mailreceive was given.
5226: if test "${with_mailreceive+set}" = set; then :
5227: withval=$with_mailreceive;
5228: MIME=$withval
1.155 moko 5229: GLIB="glib-2.0"
1.154 moko 5230: GMIME="gmime-2.4"
5231:
5232: if test -z "$MIME" -o "$MIME" = "yes"; then
5233: MIME=""
5234: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5235: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
5236: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
5237: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
5238: else
1.155 moko 5239: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 5240: MIME_LIBS="-l$GMIME"
5241: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
5242: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 5243: if test -f $MIME/lib/lib$GLIB.la; then
5244: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
5245: else
5246: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
5247: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
5248: fi
1.154 moko 5249: MIME_OK="yes"
5250: fi
1.67 paf 5251: fi
1.66 paf 5252:
1.154 moko 5253: if test -z "$MIME_OK"; then
5254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
5255: $as_echo_n "checking for mime... " >&6; }
5256: SAVE_LIBS=$LIBS
5257: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
5258: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259: /* end confdefs.h. */
5260: #include <gmime/gmime.h>
5261: int
5262: main ()
5263: {
5264: guint v=gmime_major_version;
5265: ;
5266: return 0;
5267: }
5268: _ACEOF
5269: if ac_fn_c_try_link "$LINENO"; then :
5270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5271: $as_echo "yes" >&6; }
1.66 paf 5272:
1.154 moko 5273: else
5274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275: $as_echo "no" >&6; }
5276: if test -z "$MIME"; then
5277: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=D" "$LINENO" 5
5278: else
5279: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 5280: fi
1.66 paf 5281:
1.150 moko 5282: fi
1.154 moko 5283: rm -f core conftest.err conftest.$ac_objext \
5284: conftest$ac_exeext conftest.$ac_ext
5285: LIBS=$SAVE_LIBS
1.67 paf 5286: fi
1.66 paf 5287:
1.150 moko 5288: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 5289:
5290:
1.154 moko 5291: fi
1.66 paf 5292:
5293:
5294:
5295:
5296:
5297:
5298:
1.150 moko 5299: # Check whether --with-sendmail was given.
5300: if test "${with_sendmail+set}" = set; then :
5301: withval=$with_sendmail;
1.66 paf 5302: cat >>confdefs.h <<_ACEOF
5303: #define PA_FORCED_SENDMAIL "$withval"
5304: _ACEOF
5305:
5306:
1.150 moko 5307: fi
1.66 paf 5308:
5309:
5310:
1.122 moko 5311:
1.150 moko 5312: # Check whether --with-apache was given.
5313: if test "${with_apache+set}" = set; then :
5314: withval=$with_apache;
1.122 moko 5315: APXS=$withval
5316:
5317: if test -z "$APXS" -o "$APXS" = "yes"; then
5318: APXS=`which apxs 2>/dev/null`
1.142 moko 5319: if test -z "$APXS"; then
5320: APXS=`which apxs2 2>/dev/null`
5321: fi
5322: fi
1.122 moko 5323:
5324: APACHE=`$APXS -q TARGET 2>/dev/null`
5325:
5326: if test -z "$APACHE"; then
1.150 moko 5327: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5328: fi
1.7 paf 5329:
1.122 moko 5330: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5331: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5332: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5333: APACHE_CFLAGS=`$APXS -q CFLAGS`
5334:
1.150 moko 5335: fi
1.7 paf 5336:
5337:
1.62 paf 5338:
1.122 moko 5339:
1.150 moko 5340: if test -n "$APACHE"; then
1.122 moko 5341: COMPILE_APACHE_MODULE_TRUE=
5342: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5343: else
1.122 moko 5344: COMPILE_APACHE_MODULE_TRUE='#'
5345: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5346: fi
1.1 paf 5347:
5348:
5349:
1.62 paf 5350:
5351:
1.7 paf 5352:
1.1 paf 5353:
5354:
5355:
1.62 paf 5356:
1.128 moko 5357: case `pwd` in
5358: *\ * | *\ *)
1.150 moko 5359: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5360: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5361: esac
5362:
5363:
5364:
5365: macro_version='2.4.2'
5366: macro_revision='1.3337'
5367:
5368:
5369:
5370:
5371:
5372:
5373:
5374:
5375:
5376:
5377:
5378:
5379:
5380: ltmain="$ac_aux_dir/ltmain.sh"
5381:
5382: # Backslashify metacharacters that are still active within
5383: # double-quoted strings.
5384: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5385:
1.128 moko 5386: # Same as above, but do not quote variable references.
5387: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5388:
1.128 moko 5389: # Sed substitution to delay expansion of an escaped shell variable in a
5390: # double_quote_subst'ed string.
5391: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5392:
1.128 moko 5393: # Sed substitution to delay expansion of an escaped single quote.
5394: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5395:
1.128 moko 5396: # Sed substitution to avoid accidental globbing in evaled expressions
5397: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5398:
1.128 moko 5399: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5400: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5401: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5402:
1.150 moko 5403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5404: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5405: # Test print first, because it will be a builtin if present.
5406: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5407: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5408: ECHO='print -r --'
5409: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5410: ECHO='printf %s\n'
5411: else
5412: # Use this function as a fallback that always works.
5413: func_fallback_echo ()
5414: {
5415: eval 'cat <<_LTECHO_EOF
5416: $1
5417: _LTECHO_EOF'
5418: }
5419: ECHO='func_fallback_echo'
5420: fi
1.86 paf 5421:
1.128 moko 5422: # func_echo_all arg...
5423: # Invoke $ECHO with all args, space-separated.
5424: func_echo_all ()
1.66 paf 5425: {
1.128 moko 5426: $ECHO ""
1.66 paf 5427: }
1.10 paf 5428:
1.128 moko 5429: case "$ECHO" in
1.150 moko 5430: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5431: $as_echo "printf" >&6; } ;;
5432: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5433: $as_echo "print -r" >&6; } ;;
5434: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5435: $as_echo "cat" >&6; } ;;
1.128 moko 5436: esac
5437:
5438:
5439:
5440:
5441:
5442:
5443:
5444:
5445:
5446:
5447:
5448:
5449:
5450:
1.150 moko 5451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5452: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5453: if ${ac_cv_path_SED+:} false; then :
5454: $as_echo_n "(cached) " >&6
5455: else
5456: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5457: for ac_i in 1 2 3 4 5 6 7; do
5458: ac_script="$ac_script$as_nl$ac_script"
5459: done
5460: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5461: { ac_script=; unset ac_script;}
5462: if test -z "$SED"; then
5463: ac_path_SED_found=false
5464: # Loop through the user's path and test for each of PROGNAME-LIST
5465: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5466: for as_dir in $PATH
5467: do
5468: IFS=$as_save_IFS
5469: test -z "$as_dir" && as_dir=.
1.150 moko 5470: for ac_prog in sed gsed; do
1.128 moko 5471: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5472: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5473: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 5474: # Check for GNU ac_path_SED and select it if it is found.
5475: # Check for GNU $ac_path_SED
5476: case `"$ac_path_SED" --version 2>&1` in
5477: *GNU*)
5478: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5479: *)
5480: ac_count=0
5481: $as_echo_n 0123456789 >"conftest.in"
5482: while :
5483: do
5484: cat "conftest.in" "conftest.in" >"conftest.tmp"
5485: mv "conftest.tmp" "conftest.in"
5486: cp "conftest.in" "conftest.nl"
5487: $as_echo '' >> "conftest.nl"
5488: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5489: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5490: as_fn_arith $ac_count + 1 && ac_count=$as_val
5491: if test $ac_count -gt ${ac_path_SED_max-0}; then
5492: # Best one so far, save it but keep looking for a better one
5493: ac_cv_path_SED="$ac_path_SED"
5494: ac_path_SED_max=$ac_count
5495: fi
5496: # 10*(2^10) chars as input seems more than enough
5497: test $ac_count -gt 10 && break
5498: done
5499: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5500: esac
5501:
5502: $ac_path_SED_found && break 3
1.128 moko 5503: done
5504: done
1.150 moko 5505: done
1.128 moko 5506: IFS=$as_save_IFS
1.150 moko 5507: if test -z "$ac_cv_path_SED"; then
5508: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5509: fi
1.150 moko 5510: else
5511: ac_cv_path_SED=$SED
5512: fi
1.10 paf 5513:
1.66 paf 5514: fi
1.150 moko 5515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5516: $as_echo "$ac_cv_path_SED" >&6; }
5517: SED="$ac_cv_path_SED"
5518: rm -f conftest.sed
1.128 moko 5519:
5520: test -z "$SED" && SED=sed
5521: Xsed="$SED -e 1s/^X//"
1.10 paf 5522:
1.128 moko 5523:
5524:
5525:
5526:
5527:
5528:
5529:
5530:
5531:
5532:
1.150 moko 5533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5534: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5535: if ${ac_cv_path_GREP+:} false; then :
5536: $as_echo_n "(cached) " >&6
5537: else
5538: if test -z "$GREP"; then
5539: ac_path_GREP_found=false
5540: # Loop through the user's path and test for each of PROGNAME-LIST
5541: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5543: do
5544: IFS=$as_save_IFS
5545: test -z "$as_dir" && as_dir=.
5546: for ac_prog in grep ggrep; do
5547: for ac_exec_ext in '' $ac_executable_extensions; do
5548: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5549: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 5550: # Check for GNU ac_path_GREP and select it if it is found.
5551: # Check for GNU $ac_path_GREP
5552: case `"$ac_path_GREP" --version 2>&1` in
5553: *GNU*)
5554: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5555: *)
5556: ac_count=0
5557: $as_echo_n 0123456789 >"conftest.in"
5558: while :
5559: do
5560: cat "conftest.in" "conftest.in" >"conftest.tmp"
5561: mv "conftest.tmp" "conftest.in"
5562: cp "conftest.in" "conftest.nl"
5563: $as_echo 'GREP' >> "conftest.nl"
5564: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5565: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5566: as_fn_arith $ac_count + 1 && ac_count=$as_val
5567: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5568: # Best one so far, save it but keep looking for a better one
5569: ac_cv_path_GREP="$ac_path_GREP"
5570: ac_path_GREP_max=$ac_count
1.128 moko 5571: fi
1.150 moko 5572: # 10*(2^10) chars as input seems more than enough
5573: test $ac_count -gt 10 && break
5574: done
5575: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5576: esac
5577:
5578: $ac_path_GREP_found && break 3
5579: done
5580: done
5581: done
5582: IFS=$as_save_IFS
5583: if test -z "$ac_cv_path_GREP"; then
5584: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5585: fi
5586: else
5587: ac_cv_path_GREP=$GREP
5588: fi
5589:
1.128 moko 5590: fi
1.150 moko 5591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5592: $as_echo "$ac_cv_path_GREP" >&6; }
5593: GREP="$ac_cv_path_GREP"
5594:
5595:
5596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5597: $as_echo_n "checking for egrep... " >&6; }
5598: if ${ac_cv_path_EGREP+:} false; then :
5599: $as_echo_n "(cached) " >&6
5600: else
5601: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5602: then ac_cv_path_EGREP="$GREP -E"
5603: else
5604: if test -z "$EGREP"; then
5605: ac_path_EGREP_found=false
5606: # Loop through the user's path and test for each of PROGNAME-LIST
5607: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5609: do
5610: IFS=$as_save_IFS
5611: test -z "$as_dir" && as_dir=.
5612: for ac_prog in egrep; do
5613: for ac_exec_ext in '' $ac_executable_extensions; do
5614: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5615: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 5616: # Check for GNU ac_path_EGREP and select it if it is found.
5617: # Check for GNU $ac_path_EGREP
5618: case `"$ac_path_EGREP" --version 2>&1` in
5619: *GNU*)
5620: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5621: *)
5622: ac_count=0
5623: $as_echo_n 0123456789 >"conftest.in"
5624: while :
5625: do
5626: cat "conftest.in" "conftest.in" >"conftest.tmp"
5627: mv "conftest.tmp" "conftest.in"
5628: cp "conftest.in" "conftest.nl"
5629: $as_echo 'EGREP' >> "conftest.nl"
5630: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5631: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5632: as_fn_arith $ac_count + 1 && ac_count=$as_val
5633: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5634: # Best one so far, save it but keep looking for a better one
5635: ac_cv_path_EGREP="$ac_path_EGREP"
5636: ac_path_EGREP_max=$ac_count
5637: fi
5638: # 10*(2^10) chars as input seems more than enough
5639: test $ac_count -gt 10 && break
5640: done
5641: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5642: esac
1.128 moko 5643:
1.150 moko 5644: $ac_path_EGREP_found && break 3
5645: done
5646: done
5647: done
5648: IFS=$as_save_IFS
5649: if test -z "$ac_cv_path_EGREP"; then
5650: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5651: fi
5652: else
5653: ac_cv_path_EGREP=$EGREP
5654: fi
1.128 moko 5655:
1.150 moko 5656: fi
5657: fi
5658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5659: $as_echo "$ac_cv_path_EGREP" >&6; }
5660: EGREP="$ac_cv_path_EGREP"
5661:
5662:
5663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5664: $as_echo_n "checking for fgrep... " >&6; }
5665: if ${ac_cv_path_FGREP+:} false; then :
5666: $as_echo_n "(cached) " >&6
5667: else
5668: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5669: then ac_cv_path_FGREP="$GREP -F"
5670: else
5671: if test -z "$FGREP"; then
5672: ac_path_FGREP_found=false
5673: # Loop through the user's path and test for each of PROGNAME-LIST
5674: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5676: do
5677: IFS=$as_save_IFS
5678: test -z "$as_dir" && as_dir=.
5679: for ac_prog in fgrep; do
5680: for ac_exec_ext in '' $ac_executable_extensions; do
5681: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5682: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 5683: # Check for GNU ac_path_FGREP and select it if it is found.
5684: # Check for GNU $ac_path_FGREP
5685: case `"$ac_path_FGREP" --version 2>&1` in
5686: *GNU*)
5687: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5688: *)
5689: ac_count=0
5690: $as_echo_n 0123456789 >"conftest.in"
5691: while :
5692: do
5693: cat "conftest.in" "conftest.in" >"conftest.tmp"
5694: mv "conftest.tmp" "conftest.in"
5695: cp "conftest.in" "conftest.nl"
5696: $as_echo 'FGREP' >> "conftest.nl"
5697: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5698: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5699: as_fn_arith $ac_count + 1 && ac_count=$as_val
5700: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5701: # Best one so far, save it but keep looking for a better one
5702: ac_cv_path_FGREP="$ac_path_FGREP"
5703: ac_path_FGREP_max=$ac_count
1.128 moko 5704: fi
1.150 moko 5705: # 10*(2^10) chars as input seems more than enough
5706: test $ac_count -gt 10 && break
5707: done
5708: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5709: esac
5710:
5711: $ac_path_FGREP_found && break 3
5712: done
5713: done
5714: done
5715: IFS=$as_save_IFS
5716: if test -z "$ac_cv_path_FGREP"; then
5717: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5718: fi
5719: else
5720: ac_cv_path_FGREP=$FGREP
5721: fi
5722:
5723: fi
1.128 moko 5724: fi
1.150 moko 5725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5726: $as_echo "$ac_cv_path_FGREP" >&6; }
5727: FGREP="$ac_cv_path_FGREP"
1.128 moko 5728:
5729:
5730: test -z "$GREP" && GREP=grep
5731:
5732:
5733:
5734:
5735:
5736:
5737:
5738:
5739:
5740:
5741:
5742:
5743:
5744:
5745:
5746:
5747:
5748:
5749:
1.150 moko 5750: # Check whether --with-gnu-ld was given.
5751: if test "${with_gnu_ld+set}" = set; then :
5752: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5753: else
5754: with_gnu_ld=no
1.150 moko 5755: fi
5756:
1.128 moko 5757: ac_prog=ld
5758: if test "$GCC" = yes; then
5759: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5761: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5762: case $host in
5763: *-*-mingw*)
5764: # gcc leaves a trailing carriage return which upsets mingw
5765: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5766: *)
5767: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5768: esac
5769: case $ac_prog in
5770: # Accept absolute paths.
5771: [\\/]* | ?:[\\/]*)
5772: re_direlt='/[^/][^/]*/\.\./'
5773: # Canonicalize the pathname of ld
5774: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5775: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5776: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5777: done
5778: test -z "$LD" && LD="$ac_prog"
5779: ;;
5780: "")
5781: # If it fails, then pretend we aren't using GCC.
5782: ac_prog=ld
5783: ;;
5784: *)
5785: # If it is relative, then search for the first ld in PATH.
5786: with_gnu_ld=unknown
5787: ;;
5788: esac
5789: elif test "$with_gnu_ld" = yes; then
1.150 moko 5790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5791: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5792: else
1.150 moko 5793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5794: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5795: fi
1.150 moko 5796: if ${lt_cv_path_LD+:} false; then :
5797: $as_echo_n "(cached) " >&6
1.128 moko 5798: else
5799: if test -z "$LD"; then
5800: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5801: for ac_dir in $PATH; do
5802: IFS="$lt_save_ifs"
5803: test -z "$ac_dir" && ac_dir=.
5804: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5805: lt_cv_path_LD="$ac_dir/$ac_prog"
5806: # Check to see if the program is GNU ld. I'd rather use --version,
5807: # but apparently some variants of GNU ld only accept -v.
5808: # Break only if it was the GNU/non-GNU ld that we prefer.
5809: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5810: *GNU* | *'with BFD'*)
5811: test "$with_gnu_ld" != no && break
5812: ;;
5813: *)
5814: test "$with_gnu_ld" != yes && break
5815: ;;
5816: esac
5817: fi
5818: done
5819: IFS="$lt_save_ifs"
5820: else
5821: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5822: fi
5823: fi
5824:
5825: LD="$lt_cv_path_LD"
5826: if test -n "$LD"; then
1.150 moko 5827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5828: $as_echo "$LD" >&6; }
1.128 moko 5829: else
1.150 moko 5830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831: $as_echo "no" >&6; }
1.128 moko 5832: fi
1.150 moko 5833: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5835: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5836: if ${lt_cv_prog_gnu_ld+:} false; then :
5837: $as_echo_n "(cached) " >&6
1.128 moko 5838: else
5839: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5840: case `$LD -v 2>&1 </dev/null` in
5841: *GNU* | *'with BFD'*)
5842: lt_cv_prog_gnu_ld=yes
5843: ;;
5844: *)
5845: lt_cv_prog_gnu_ld=no
5846: ;;
5847: esac
5848: fi
1.150 moko 5849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5850: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5851: with_gnu_ld=$lt_cv_prog_gnu_ld
5852:
5853:
5854:
5855:
5856:
5857:
5858:
5859:
5860:
1.150 moko 5861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5862: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5863: if ${lt_cv_path_NM+:} false; then :
5864: $as_echo_n "(cached) " >&6
1.128 moko 5865: else
5866: if test -n "$NM"; then
5867: # Let the user override the test.
5868: lt_cv_path_NM="$NM"
5869: else
5870: lt_nm_to_check="${ac_tool_prefix}nm"
5871: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5872: lt_nm_to_check="$lt_nm_to_check nm"
5873: fi
5874: for lt_tmp_nm in $lt_nm_to_check; do
5875: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5876: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5877: IFS="$lt_save_ifs"
5878: test -z "$ac_dir" && ac_dir=.
5879: tmp_nm="$ac_dir/$lt_tmp_nm"
5880: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5881: # Check to see if the nm accepts a BSD-compat flag.
5882: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5883: # nm: unknown option "B" ignored
5884: # Tru64's nm complains that /dev/null is an invalid object file
5885: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5886: */dev/null* | *'Invalid file or object type'*)
5887: lt_cv_path_NM="$tmp_nm -B"
5888: break
5889: ;;
5890: *)
5891: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5892: */dev/null*)
5893: lt_cv_path_NM="$tmp_nm -p"
5894: break
5895: ;;
5896: *)
5897: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5898: continue # so that we can try to find one that supports BSD flags
5899: ;;
5900: esac
5901: ;;
5902: esac
5903: fi
5904: done
5905: IFS="$lt_save_ifs"
5906: done
5907: : ${lt_cv_path_NM=no}
5908: fi
5909: fi
1.150 moko 5910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5911: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5912: if test "$lt_cv_path_NM" != "no"; then
5913: NM="$lt_cv_path_NM"
5914: else
5915: # Didn't find any BSD compatible name lister, look for dumpbin.
5916: if test -n "$DUMPBIN"; then :
5917: # Let the user override the test.
5918: else
5919: if test -n "$ac_tool_prefix"; then
5920: for ac_prog in dumpbin "link -dump"
5921: do
5922: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5923: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925: $as_echo_n "checking for $ac_word... " >&6; }
5926: if ${ac_cv_prog_DUMPBIN+:} false; then :
5927: $as_echo_n "(cached) " >&6
1.128 moko 5928: else
5929: if test -n "$DUMPBIN"; then
5930: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5931: else
5932: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933: for as_dir in $PATH
5934: do
5935: IFS=$as_save_IFS
5936: test -z "$as_dir" && as_dir=.
1.150 moko 5937: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5938: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5939: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 5940: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5941: break 2
5942: fi
5943: done
1.150 moko 5944: done
5945: IFS=$as_save_IFS
1.128 moko 5946:
5947: fi
5948: fi
5949: DUMPBIN=$ac_cv_prog_DUMPBIN
5950: if test -n "$DUMPBIN"; then
1.150 moko 5951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5952: $as_echo "$DUMPBIN" >&6; }
1.128 moko 5953: else
1.150 moko 5954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955: $as_echo "no" >&6; }
1.128 moko 5956: fi
5957:
1.150 moko 5958:
1.128 moko 5959: test -n "$DUMPBIN" && break
5960: done
5961: fi
5962: if test -z "$DUMPBIN"; then
5963: ac_ct_DUMPBIN=$DUMPBIN
5964: for ac_prog in dumpbin "link -dump"
5965: do
5966: # Extract the first word of "$ac_prog", so it can be a program name with args.
5967: set dummy $ac_prog; ac_word=$2
1.150 moko 5968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969: $as_echo_n "checking for $ac_word... " >&6; }
5970: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5971: $as_echo_n "(cached) " >&6
1.128 moko 5972: else
5973: if test -n "$ac_ct_DUMPBIN"; then
5974: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5975: else
5976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977: for as_dir in $PATH
5978: do
5979: IFS=$as_save_IFS
5980: test -z "$as_dir" && as_dir=.
1.150 moko 5981: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5982: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5983: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 5984: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5985: break 2
5986: fi
5987: done
1.150 moko 5988: done
5989: IFS=$as_save_IFS
1.128 moko 5990:
5991: fi
5992: fi
5993: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5994: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 5995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5996: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 5997: else
1.150 moko 5998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999: $as_echo "no" >&6; }
1.128 moko 6000: fi
6001:
1.150 moko 6002:
1.128 moko 6003: test -n "$ac_ct_DUMPBIN" && break
6004: done
6005:
1.150 moko 6006: if test "x$ac_ct_DUMPBIN" = x; then
6007: DUMPBIN=":"
6008: else
6009: case $cross_compiling:$ac_tool_warned in
6010: yes:)
6011: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6012: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013: ac_tool_warned=yes ;;
6014: esac
6015: DUMPBIN=$ac_ct_DUMPBIN
6016: fi
1.128 moko 6017: fi
6018:
6019: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6020: *COFF*)
6021: DUMPBIN="$DUMPBIN -symbols"
6022: ;;
6023: *)
6024: DUMPBIN=:
6025: ;;
6026: esac
6027: fi
6028:
6029: if test "$DUMPBIN" != ":"; then
6030: NM="$DUMPBIN"
6031: fi
6032: fi
6033: test -z "$NM" && NM=nm
6034:
6035:
6036:
6037:
6038:
6039:
1.150 moko 6040: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6041: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6042: if ${lt_cv_nm_interface+:} false; then :
6043: $as_echo_n "(cached) " >&6
1.128 moko 6044: else
6045: lt_cv_nm_interface="BSD nm"
6046: echo "int some_variable = 0;" > conftest.$ac_ext
6047: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6048: (eval "$ac_compile" 2>conftest.err)
6049: cat conftest.err >&5
6050: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6051: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6052: cat conftest.err >&5
6053: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6054: cat conftest.out >&5
6055: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6056: lt_cv_nm_interface="MS dumpbin"
6057: fi
6058: rm -f conftest*
6059: fi
1.150 moko 6060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6061: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 6062:
1.150 moko 6063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6064: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 6065: LN_S=$as_ln_s
6066: if test "$LN_S" = "ln -s"; then
1.150 moko 6067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6068: $as_echo "yes" >&6; }
1.128 moko 6069: else
1.150 moko 6070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6071: $as_echo "no, using $LN_S" >&6; }
1.128 moko 6072: fi
6073:
6074: # find the maximum length of command line arguments
1.150 moko 6075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6076: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6077: if ${lt_cv_sys_max_cmd_len+:} false; then :
6078: $as_echo_n "(cached) " >&6
1.128 moko 6079: else
6080: i=0
6081: teststring="ABCD"
6082:
6083: case $build_os in
6084: msdosdjgpp*)
6085: # On DJGPP, this test can blow up pretty badly due to problems in libc
6086: # (any single argument exceeding 2000 bytes causes a buffer overrun
6087: # during glob expansion). Even if it were fixed, the result of this
6088: # check would be larger than it should be.
6089: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6090: ;;
6091:
6092: gnu*)
6093: # Under GNU Hurd, this test is not required because there is
6094: # no limit to the length of command line arguments.
6095: # Libtool will interpret -1 as no limit whatsoever
6096: lt_cv_sys_max_cmd_len=-1;
6097: ;;
6098:
6099: cygwin* | mingw* | cegcc*)
6100: # On Win9x/ME, this test blows up -- it succeeds, but takes
6101: # about 5 minutes as the teststring grows exponentially.
6102: # Worse, since 9x/ME are not pre-emptively multitasking,
6103: # you end up with a "frozen" computer, even though with patience
6104: # the test eventually succeeds (with a max line length of 256k).
6105: # Instead, let's just punt: use the minimum linelength reported by
6106: # all of the supported platforms: 8192 (on NT/2K/XP).
6107: lt_cv_sys_max_cmd_len=8192;
6108: ;;
6109:
6110: mint*)
6111: # On MiNT this can take a long time and run out of memory.
6112: lt_cv_sys_max_cmd_len=8192;
6113: ;;
6114:
6115: amigaos*)
6116: # On AmigaOS with pdksh, this test takes hours, literally.
6117: # So we just punt and use a minimum line length of 8192.
6118: lt_cv_sys_max_cmd_len=8192;
6119: ;;
6120:
6121: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6122: # This has been around since 386BSD, at least. Likely further.
6123: if test -x /sbin/sysctl; then
6124: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6125: elif test -x /usr/sbin/sysctl; then
6126: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6127: else
6128: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6129: fi
6130: # And add a safety zone
6131: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6132: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6133: ;;
6134:
6135: interix*)
6136: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6137: lt_cv_sys_max_cmd_len=196608
6138: ;;
6139:
6140: os2*)
6141: # The test takes a long time on OS/2.
6142: lt_cv_sys_max_cmd_len=8192
6143: ;;
6144:
6145: osf*)
6146: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6147: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6148: # nice to cause kernel panics so lets avoid the loop below.
6149: # First set a reasonable default.
6150: lt_cv_sys_max_cmd_len=16384
6151: #
6152: if test -x /sbin/sysconfig; then
6153: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6154: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6155: esac
6156: fi
6157: ;;
6158: sco3.2v5*)
6159: lt_cv_sys_max_cmd_len=102400
6160: ;;
6161: sysv5* | sco5v6* | sysv4.2uw2*)
6162: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6163: if test -n "$kargmax"; then
6164: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6165: else
6166: lt_cv_sys_max_cmd_len=32768
6167: fi
6168: ;;
6169: *)
6170: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6171: if test -n "$lt_cv_sys_max_cmd_len"; then
6172: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6173: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6174: else
6175: # Make teststring a little bigger before we do anything with it.
6176: # a 1K string should be a reasonable start.
6177: for i in 1 2 3 4 5 6 7 8 ; do
6178: teststring=$teststring$teststring
6179: done
6180: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6181: # If test is not a shell built-in, we'll probably end up computing a
6182: # maximum length that is only half of the actual maximum length, but
6183: # we can't tell.
6184: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6185: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6186: test $i != 17 # 1/2 MB should be enough
6187: do
6188: i=`expr $i + 1`
6189: teststring=$teststring$teststring
6190: done
6191: # Only check the string length outside the loop.
6192: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6193: teststring=
6194: # Add a significant safety factor because C++ compilers can tack on
6195: # massive amounts of additional arguments before passing them to the
6196: # linker. It appears as though 1/2 is a usable value.
6197: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6198: fi
6199: ;;
6200: esac
6201:
6202: fi
6203:
6204: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 6205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6206: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 6207: else
1.150 moko 6208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6209: $as_echo "none" >&6; }
1.128 moko 6210: fi
6211: max_cmd_len=$lt_cv_sys_max_cmd_len
6212:
6213:
6214:
6215:
6216:
6217:
6218: : ${CP="cp -f"}
6219: : ${MV="mv -f"}
6220: : ${RM="rm -f"}
6221:
1.150 moko 6222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6223: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 6224: # Try some XSI features
6225: xsi_shell=no
6226: ( _lt_dummy="a/b/c"
6227: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6228: = c,a/b,b/c, \
6229: && eval 'test $(( 1 + 1 )) -eq 2 \
6230: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6231: && xsi_shell=yes
1.150 moko 6232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6233: $as_echo "$xsi_shell" >&6; }
1.128 moko 6234:
6235:
1.150 moko 6236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6237: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 6238: lt_shell_append=no
6239: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6240: >/dev/null 2>&1 \
6241: && lt_shell_append=yes
1.150 moko 6242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6243: $as_echo "$lt_shell_append" >&6; }
1.128 moko 6244:
6245:
6246: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6247: lt_unset=unset
6248: else
6249: lt_unset=false
6250: fi
6251:
6252:
6253:
6254:
6255:
6256: # test EBCDIC or ASCII
6257: case `echo X|tr X '\101'` in
6258: A) # ASCII based system
6259: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6260: lt_SP2NL='tr \040 \012'
6261: lt_NL2SP='tr \015\012 \040\040'
6262: ;;
6263: *) # EBCDIC based system
6264: lt_SP2NL='tr \100 \n'
6265: lt_NL2SP='tr \r\n \100\100'
6266: ;;
6267: esac
6268:
6269:
6270:
6271:
6272:
6273:
6274:
6275:
6276:
1.150 moko 6277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6278: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6279: if ${lt_cv_to_host_file_cmd+:} false; then :
6280: $as_echo_n "(cached) " >&6
1.128 moko 6281: else
6282: case $host in
6283: *-*-mingw* )
6284: case $build in
6285: *-*-mingw* ) # actually msys
6286: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6287: ;;
6288: *-*-cygwin* )
6289: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6290: ;;
6291: * ) # otherwise, assume *nix
6292: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6293: ;;
6294: esac
6295: ;;
6296: *-*-cygwin* )
6297: case $build in
6298: *-*-mingw* ) # actually msys
6299: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6300: ;;
6301: *-*-cygwin* )
6302: lt_cv_to_host_file_cmd=func_convert_file_noop
6303: ;;
6304: * ) # otherwise, assume *nix
6305: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6306: ;;
6307: esac
6308: ;;
6309: * ) # unhandled hosts (and "normal" native builds)
6310: lt_cv_to_host_file_cmd=func_convert_file_noop
6311: ;;
6312: esac
6313:
6314: fi
6315:
6316: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6318: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6319:
6320:
6321:
6322:
6323:
1.150 moko 6324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6325: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6326: if ${lt_cv_to_tool_file_cmd+:} false; then :
6327: $as_echo_n "(cached) " >&6
1.128 moko 6328: else
6329: #assume ordinary cross tools, or native build.
6330: lt_cv_to_tool_file_cmd=func_convert_file_noop
6331: case $host in
6332: *-*-mingw* )
6333: case $build in
6334: *-*-mingw* ) # actually msys
6335: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6336: ;;
6337: esac
6338: ;;
6339: esac
6340:
6341: fi
6342:
6343: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6345: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6346:
6347:
6348:
6349:
6350:
1.150 moko 6351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6352: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6353: if ${lt_cv_ld_reload_flag+:} false; then :
6354: $as_echo_n "(cached) " >&6
1.128 moko 6355: else
6356: lt_cv_ld_reload_flag='-r'
6357: fi
1.150 moko 6358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6359: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6360: reload_flag=$lt_cv_ld_reload_flag
6361: case $reload_flag in
6362: "" | " "*) ;;
6363: *) reload_flag=" $reload_flag" ;;
6364: esac
6365: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6366: case $host_os in
6367: cygwin* | mingw* | pw32* | cegcc*)
6368: if test "$GCC" != yes; then
6369: reload_cmds=false
6370: fi
6371: ;;
6372: darwin*)
6373: if test "$GCC" = yes; then
6374: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6375: else
6376: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6377: fi
6378: ;;
6379: esac
6380:
6381:
6382:
6383:
6384:
6385:
6386:
6387:
6388:
6389: if test -n "$ac_tool_prefix"; then
6390: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6391: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393: $as_echo_n "checking for $ac_word... " >&6; }
6394: if ${ac_cv_prog_OBJDUMP+:} false; then :
6395: $as_echo_n "(cached) " >&6
1.128 moko 6396: else
6397: if test -n "$OBJDUMP"; then
6398: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6399: else
6400: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401: for as_dir in $PATH
6402: do
6403: IFS=$as_save_IFS
6404: test -z "$as_dir" && as_dir=.
1.150 moko 6405: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6406: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6407: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6408: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6409: break 2
6410: fi
6411: done
1.150 moko 6412: done
6413: IFS=$as_save_IFS
1.128 moko 6414:
6415: fi
6416: fi
6417: OBJDUMP=$ac_cv_prog_OBJDUMP
6418: if test -n "$OBJDUMP"; then
1.150 moko 6419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6420: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6421: else
1.150 moko 6422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423: $as_echo "no" >&6; }
1.128 moko 6424: fi
6425:
1.150 moko 6426:
1.128 moko 6427: fi
6428: if test -z "$ac_cv_prog_OBJDUMP"; then
6429: ac_ct_OBJDUMP=$OBJDUMP
6430: # Extract the first word of "objdump", so it can be a program name with args.
6431: set dummy objdump; ac_word=$2
1.150 moko 6432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433: $as_echo_n "checking for $ac_word... " >&6; }
6434: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6435: $as_echo_n "(cached) " >&6
1.128 moko 6436: else
6437: if test -n "$ac_ct_OBJDUMP"; then
6438: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6439: else
6440: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441: for as_dir in $PATH
6442: do
6443: IFS=$as_save_IFS
6444: test -z "$as_dir" && as_dir=.
1.150 moko 6445: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6446: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6447: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6448: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6449: break 2
6450: fi
6451: done
1.150 moko 6452: done
6453: IFS=$as_save_IFS
1.128 moko 6454:
6455: fi
6456: fi
6457: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6458: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6460: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6461: else
1.150 moko 6462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463: $as_echo "no" >&6; }
1.128 moko 6464: fi
6465:
1.150 moko 6466: if test "x$ac_ct_OBJDUMP" = x; then
6467: OBJDUMP="false"
6468: else
6469: case $cross_compiling:$ac_tool_warned in
6470: yes:)
6471: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473: ac_tool_warned=yes ;;
6474: esac
6475: OBJDUMP=$ac_ct_OBJDUMP
6476: fi
1.128 moko 6477: else
6478: OBJDUMP="$ac_cv_prog_OBJDUMP"
6479: fi
6480:
6481: test -z "$OBJDUMP" && OBJDUMP=objdump
6482:
6483:
6484:
6485:
6486:
6487:
1.150 moko 6488: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6489: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6490: if ${lt_cv_deplibs_check_method+:} false; then :
6491: $as_echo_n "(cached) " >&6
1.128 moko 6492: else
6493: lt_cv_file_magic_cmd='$MAGIC_CMD'
6494: lt_cv_file_magic_test_file=
6495: lt_cv_deplibs_check_method='unknown'
6496: # Need to set the preceding variable on all platforms that support
6497: # interlibrary dependencies.
6498: # 'none' -- dependencies not supported.
6499: # `unknown' -- same as none, but documents that we really don't know.
6500: # 'pass_all' -- all dependencies passed with no checks.
6501: # 'test_compile' -- check by making test program.
6502: # 'file_magic [[regex]]' -- check by looking for files in library path
6503: # which responds to the $file_magic_cmd with a given extended regex.
6504: # If you have `file' or equivalent on your system and you're not sure
6505: # whether `pass_all' will *always* work, you probably want this one.
6506:
6507: case $host_os in
6508: aix[4-9]*)
6509: lt_cv_deplibs_check_method=pass_all
6510: ;;
6511:
6512: beos*)
6513: lt_cv_deplibs_check_method=pass_all
6514: ;;
6515:
6516: bsdi[45]*)
6517: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6518: lt_cv_file_magic_cmd='/usr/bin/file -L'
6519: lt_cv_file_magic_test_file=/shlib/libc.so
6520: ;;
6521:
6522: cygwin*)
6523: # func_win32_libid is a shell function defined in ltmain.sh
6524: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6525: lt_cv_file_magic_cmd='func_win32_libid'
6526: ;;
6527:
6528: mingw* | pw32*)
6529: # Base MSYS/MinGW do not provide the 'file' command needed by
6530: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6531: # unless we find 'file', for example because we are cross-compiling.
6532: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6533: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6534: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6535: lt_cv_file_magic_cmd='func_win32_libid'
6536: else
6537: # Keep this pattern in sync with the one in func_win32_libid.
6538: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6539: lt_cv_file_magic_cmd='$OBJDUMP -f'
6540: fi
6541: ;;
6542:
6543: cegcc*)
6544: # use the weaker test based on 'objdump'. See mingw*.
6545: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6546: lt_cv_file_magic_cmd='$OBJDUMP -f'
6547: ;;
6548:
6549: darwin* | rhapsody*)
6550: lt_cv_deplibs_check_method=pass_all
6551: ;;
6552:
6553: freebsd* | dragonfly*)
6554: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6555: case $host_cpu in
6556: i*86 )
6557: # Not sure whether the presence of OpenBSD here was a mistake.
6558: # Let's accept both of them until this is cleared up.
6559: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6560: lt_cv_file_magic_cmd=/usr/bin/file
6561: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6562: ;;
6563: esac
6564: else
6565: lt_cv_deplibs_check_method=pass_all
6566: fi
6567: ;;
6568:
6569: gnu*)
6570: lt_cv_deplibs_check_method=pass_all
6571: ;;
6572:
6573: haiku*)
6574: lt_cv_deplibs_check_method=pass_all
6575: ;;
6576:
6577: hpux10.20* | hpux11*)
6578: lt_cv_file_magic_cmd=/usr/bin/file
6579: case $host_cpu in
6580: ia64*)
6581: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6582: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6583: ;;
6584: hppa*64*)
6585: 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]'
6586: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6587: ;;
6588: *)
6589: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6590: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6591: ;;
6592: esac
6593: ;;
6594:
6595: interix[3-9]*)
6596: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6597: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6598: ;;
6599:
6600: irix5* | irix6* | nonstopux*)
6601: case $LD in
6602: *-32|*"-32 ") libmagic=32-bit;;
6603: *-n32|*"-n32 ") libmagic=N32;;
6604: *-64|*"-64 ") libmagic=64-bit;;
6605: *) libmagic=never-match;;
6606: esac
6607: lt_cv_deplibs_check_method=pass_all
6608: ;;
6609:
6610: # This must be glibc/ELF.
6611: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6612: lt_cv_deplibs_check_method=pass_all
6613: ;;
6614:
6615: netbsd*)
6616: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6617: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6618: else
6619: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6620: fi
6621: ;;
6622:
6623: newos6*)
6624: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6625: lt_cv_file_magic_cmd=/usr/bin/file
6626: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6627: ;;
6628:
6629: *nto* | *qnx*)
6630: lt_cv_deplibs_check_method=pass_all
6631: ;;
6632:
6633: openbsd*)
6634: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6635: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6636: else
6637: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6638: fi
6639: ;;
6640:
6641: osf3* | osf4* | osf5*)
6642: lt_cv_deplibs_check_method=pass_all
6643: ;;
6644:
6645: rdos*)
6646: lt_cv_deplibs_check_method=pass_all
6647: ;;
6648:
6649: solaris*)
6650: lt_cv_deplibs_check_method=pass_all
6651: ;;
6652:
6653: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6654: lt_cv_deplibs_check_method=pass_all
6655: ;;
6656:
6657: sysv4 | sysv4.3*)
6658: case $host_vendor in
6659: motorola)
6660: 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]'
6661: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6662: ;;
6663: ncr)
6664: lt_cv_deplibs_check_method=pass_all
6665: ;;
6666: sequent)
6667: lt_cv_file_magic_cmd='/bin/file'
6668: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6669: ;;
6670: sni)
6671: lt_cv_file_magic_cmd='/bin/file'
6672: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6673: lt_cv_file_magic_test_file=/lib/libc.so
6674: ;;
6675: siemens)
6676: lt_cv_deplibs_check_method=pass_all
6677: ;;
6678: pc)
6679: lt_cv_deplibs_check_method=pass_all
6680: ;;
6681: esac
6682: ;;
6683:
6684: tpf*)
6685: lt_cv_deplibs_check_method=pass_all
6686: ;;
6687: esac
6688:
6689: fi
1.150 moko 6690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6691: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6692:
6693: file_magic_glob=
6694: want_nocaseglob=no
6695: if test "$build" = "$host"; then
6696: case $host_os in
6697: mingw* | pw32*)
6698: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6699: want_nocaseglob=yes
6700: else
6701: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6702: fi
6703: ;;
6704: esac
6705: fi
6706:
6707: file_magic_cmd=$lt_cv_file_magic_cmd
6708: deplibs_check_method=$lt_cv_deplibs_check_method
6709: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6710:
6711:
6712:
6713:
6714:
6715:
6716:
6717:
6718:
6719:
6720:
6721:
6722:
6723:
6724:
6725:
6726:
6727:
6728:
6729:
6730:
6731:
6732: if test -n "$ac_tool_prefix"; then
6733: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6734: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736: $as_echo_n "checking for $ac_word... " >&6; }
6737: if ${ac_cv_prog_DLLTOOL+:} false; then :
6738: $as_echo_n "(cached) " >&6
1.128 moko 6739: else
6740: if test -n "$DLLTOOL"; then
6741: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6742: else
6743: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744: for as_dir in $PATH
6745: do
6746: IFS=$as_save_IFS
6747: test -z "$as_dir" && as_dir=.
1.150 moko 6748: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6749: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6750: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6751: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6752: break 2
6753: fi
6754: done
1.150 moko 6755: done
6756: IFS=$as_save_IFS
1.128 moko 6757:
6758: fi
6759: fi
6760: DLLTOOL=$ac_cv_prog_DLLTOOL
6761: if test -n "$DLLTOOL"; then
1.150 moko 6762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6763: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6764: else
1.150 moko 6765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766: $as_echo "no" >&6; }
1.128 moko 6767: fi
6768:
1.150 moko 6769:
1.128 moko 6770: fi
6771: if test -z "$ac_cv_prog_DLLTOOL"; then
6772: ac_ct_DLLTOOL=$DLLTOOL
6773: # Extract the first word of "dlltool", so it can be a program name with args.
6774: set dummy dlltool; ac_word=$2
1.150 moko 6775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776: $as_echo_n "checking for $ac_word... " >&6; }
6777: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6778: $as_echo_n "(cached) " >&6
1.128 moko 6779: else
6780: if test -n "$ac_ct_DLLTOOL"; then
6781: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6782: else
6783: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784: for as_dir in $PATH
6785: do
6786: IFS=$as_save_IFS
6787: test -z "$as_dir" && as_dir=.
1.150 moko 6788: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6789: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6790: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6791: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6792: break 2
6793: fi
6794: done
1.150 moko 6795: done
6796: IFS=$as_save_IFS
1.128 moko 6797:
6798: fi
6799: fi
6800: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6801: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6803: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6804: else
1.150 moko 6805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806: $as_echo "no" >&6; }
1.128 moko 6807: fi
6808:
1.150 moko 6809: if test "x$ac_ct_DLLTOOL" = x; then
6810: DLLTOOL="false"
6811: else
6812: case $cross_compiling:$ac_tool_warned in
6813: yes:)
6814: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816: ac_tool_warned=yes ;;
6817: esac
6818: DLLTOOL=$ac_ct_DLLTOOL
6819: fi
1.128 moko 6820: else
6821: DLLTOOL="$ac_cv_prog_DLLTOOL"
6822: fi
6823:
6824: test -z "$DLLTOOL" && DLLTOOL=dlltool
6825:
6826:
6827:
6828:
6829:
6830:
6831:
1.150 moko 6832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6833: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6834: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6835: $as_echo_n "(cached) " >&6
1.128 moko 6836: else
6837: lt_cv_sharedlib_from_linklib_cmd='unknown'
6838:
6839: case $host_os in
6840: cygwin* | mingw* | pw32* | cegcc*)
6841: # two different shell functions defined in ltmain.sh
6842: # decide which to use based on capabilities of $DLLTOOL
6843: case `$DLLTOOL --help 2>&1` in
6844: *--identify-strict*)
6845: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6846: ;;
6847: *)
6848: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6849: ;;
6850: esac
6851: ;;
6852: *)
6853: # fallback: assume linklib IS sharedlib
6854: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6855: ;;
6856: esac
6857:
6858: fi
1.150 moko 6859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6860: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6861: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6862: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6863:
6864:
6865:
6866:
6867:
6868:
6869:
6870: if test -n "$ac_tool_prefix"; then
6871: for ac_prog in ar
6872: do
6873: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6874: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876: $as_echo_n "checking for $ac_word... " >&6; }
6877: if ${ac_cv_prog_AR+:} false; then :
6878: $as_echo_n "(cached) " >&6
1.128 moko 6879: else
6880: if test -n "$AR"; then
6881: ac_cv_prog_AR="$AR" # Let the user override the test.
6882: else
6883: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884: for as_dir in $PATH
6885: do
6886: IFS=$as_save_IFS
6887: test -z "$as_dir" && as_dir=.
1.150 moko 6888: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6889: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6890: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6891: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6892: break 2
6893: fi
6894: done
1.150 moko 6895: done
6896: IFS=$as_save_IFS
1.128 moko 6897:
6898: fi
6899: fi
6900: AR=$ac_cv_prog_AR
6901: if test -n "$AR"; then
1.150 moko 6902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6903: $as_echo "$AR" >&6; }
1.128 moko 6904: else
1.150 moko 6905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906: $as_echo "no" >&6; }
1.128 moko 6907: fi
6908:
1.150 moko 6909:
1.128 moko 6910: test -n "$AR" && break
6911: done
6912: fi
6913: if test -z "$AR"; then
6914: ac_ct_AR=$AR
6915: for ac_prog in ar
6916: do
6917: # Extract the first word of "$ac_prog", so it can be a program name with args.
6918: set dummy $ac_prog; ac_word=$2
1.150 moko 6919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920: $as_echo_n "checking for $ac_word... " >&6; }
6921: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6922: $as_echo_n "(cached) " >&6
1.128 moko 6923: else
6924: if test -n "$ac_ct_AR"; then
6925: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6926: else
6927: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928: for as_dir in $PATH
6929: do
6930: IFS=$as_save_IFS
6931: test -z "$as_dir" && as_dir=.
1.150 moko 6932: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6933: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6934: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 6935: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6936: break 2
6937: fi
6938: done
1.150 moko 6939: done
6940: IFS=$as_save_IFS
1.128 moko 6941:
6942: fi
6943: fi
6944: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6945: if test -n "$ac_ct_AR"; then
1.150 moko 6946: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6947: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 6948: else
1.150 moko 6949: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950: $as_echo "no" >&6; }
1.128 moko 6951: fi
6952:
1.150 moko 6953:
1.128 moko 6954: test -n "$ac_ct_AR" && break
6955: done
6956:
1.150 moko 6957: if test "x$ac_ct_AR" = x; then
6958: AR="false"
6959: else
6960: case $cross_compiling:$ac_tool_warned in
6961: yes:)
6962: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964: ac_tool_warned=yes ;;
6965: esac
6966: AR=$ac_ct_AR
6967: fi
1.128 moko 6968: fi
6969:
6970: : ${AR=ar}
6971: : ${AR_FLAGS=cru}
6972:
6973:
6974:
6975:
6976:
6977:
6978:
6979:
6980:
6981:
6982:
1.150 moko 6983: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6984: $as_echo_n "checking for archiver @FILE support... " >&6; }
6985: if ${lt_cv_ar_at_file+:} false; then :
6986: $as_echo_n "(cached) " >&6
1.128 moko 6987: else
6988: lt_cv_ar_at_file=no
1.150 moko 6989: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 6990: /* end confdefs.h. */
6991:
6992: int
6993: main ()
6994: {
6995:
6996: ;
6997: return 0;
6998: }
6999: _ACEOF
1.150 moko 7000: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 7001: echo conftest.$ac_objext > conftest.lst
7002: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 7003: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7004: (eval $lt_ar_try) 2>&5
7005: ac_status=$?
1.150 moko 7006: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007: test $ac_status = 0; }
1.128 moko 7008: if test "$ac_status" -eq 0; then
7009: # Ensure the archiver fails upon bogus file names.
7010: rm -f conftest.$ac_objext libconftest.a
1.150 moko 7011: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7012: (eval $lt_ar_try) 2>&5
7013: ac_status=$?
1.150 moko 7014: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015: test $ac_status = 0; }
1.128 moko 7016: if test "$ac_status" -ne 0; then
7017: lt_cv_ar_at_file=@
7018: fi
7019: fi
7020: rm -f conftest.* libconftest.a
7021:
7022: fi
1.150 moko 7023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 7024:
7025: fi
1.150 moko 7026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7027: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 7028:
7029: if test "x$lt_cv_ar_at_file" = xno; then
7030: archiver_list_spec=
7031: else
7032: archiver_list_spec=$lt_cv_ar_at_file
7033: fi
7034:
7035:
7036:
7037:
7038:
7039:
7040:
7041: if test -n "$ac_tool_prefix"; then
7042: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7043: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 7044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045: $as_echo_n "checking for $ac_word... " >&6; }
7046: if ${ac_cv_prog_STRIP+:} false; then :
7047: $as_echo_n "(cached) " >&6
1.128 moko 7048: else
7049: if test -n "$STRIP"; then
7050: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7051: else
7052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053: for as_dir in $PATH
7054: do
7055: IFS=$as_save_IFS
7056: test -z "$as_dir" && as_dir=.
1.150 moko 7057: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7058: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7059: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 7060: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7061: break 2
7062: fi
7063: done
1.150 moko 7064: done
7065: IFS=$as_save_IFS
1.128 moko 7066:
7067: fi
7068: fi
7069: STRIP=$ac_cv_prog_STRIP
7070: if test -n "$STRIP"; then
1.150 moko 7071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7072: $as_echo "$STRIP" >&6; }
1.128 moko 7073: else
1.150 moko 7074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075: $as_echo "no" >&6; }
1.128 moko 7076: fi
7077:
1.150 moko 7078:
1.128 moko 7079: fi
7080: if test -z "$ac_cv_prog_STRIP"; then
7081: ac_ct_STRIP=$STRIP
7082: # Extract the first word of "strip", so it can be a program name with args.
7083: set dummy strip; ac_word=$2
1.150 moko 7084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085: $as_echo_n "checking for $ac_word... " >&6; }
7086: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7087: $as_echo_n "(cached) " >&6
1.128 moko 7088: else
7089: if test -n "$ac_ct_STRIP"; then
7090: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7091: else
7092: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093: for as_dir in $PATH
7094: do
7095: IFS=$as_save_IFS
7096: test -z "$as_dir" && as_dir=.
1.150 moko 7097: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7098: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7099: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 7100: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7101: break 2
7102: fi
7103: done
1.150 moko 7104: done
7105: IFS=$as_save_IFS
1.128 moko 7106:
7107: fi
7108: fi
7109: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7110: if test -n "$ac_ct_STRIP"; then
1.150 moko 7111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7112: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 7113: else
1.150 moko 7114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115: $as_echo "no" >&6; }
1.128 moko 7116: fi
7117:
1.150 moko 7118: if test "x$ac_ct_STRIP" = x; then
7119: STRIP=":"
7120: else
7121: case $cross_compiling:$ac_tool_warned in
7122: yes:)
7123: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7124: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7125: ac_tool_warned=yes ;;
7126: esac
7127: STRIP=$ac_ct_STRIP
7128: fi
1.128 moko 7129: else
7130: STRIP="$ac_cv_prog_STRIP"
7131: fi
7132:
7133: test -z "$STRIP" && STRIP=:
7134:
7135:
7136:
7137:
7138:
7139:
7140: if test -n "$ac_tool_prefix"; then
7141: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7142: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 7143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144: $as_echo_n "checking for $ac_word... " >&6; }
7145: if ${ac_cv_prog_RANLIB+:} false; then :
7146: $as_echo_n "(cached) " >&6
1.128 moko 7147: else
7148: if test -n "$RANLIB"; then
7149: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7150: else
7151: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152: for as_dir in $PATH
7153: do
7154: IFS=$as_save_IFS
7155: test -z "$as_dir" && as_dir=.
1.150 moko 7156: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7157: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7158: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 7159: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7160: break 2
7161: fi
7162: done
1.150 moko 7163: done
7164: IFS=$as_save_IFS
1.128 moko 7165:
7166: fi
7167: fi
7168: RANLIB=$ac_cv_prog_RANLIB
7169: if test -n "$RANLIB"; then
1.150 moko 7170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7171: $as_echo "$RANLIB" >&6; }
1.128 moko 7172: else
1.150 moko 7173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174: $as_echo "no" >&6; }
1.128 moko 7175: fi
7176:
1.150 moko 7177:
1.128 moko 7178: fi
7179: if test -z "$ac_cv_prog_RANLIB"; then
7180: ac_ct_RANLIB=$RANLIB
7181: # Extract the first word of "ranlib", so it can be a program name with args.
7182: set dummy ranlib; ac_word=$2
1.150 moko 7183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184: $as_echo_n "checking for $ac_word... " >&6; }
7185: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7186: $as_echo_n "(cached) " >&6
1.128 moko 7187: else
7188: if test -n "$ac_ct_RANLIB"; then
7189: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7190: else
7191: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192: for as_dir in $PATH
7193: do
7194: IFS=$as_save_IFS
7195: test -z "$as_dir" && as_dir=.
1.150 moko 7196: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7197: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7198: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 7199: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7200: break 2
7201: fi
7202: done
1.150 moko 7203: done
7204: IFS=$as_save_IFS
1.128 moko 7205:
7206: fi
7207: fi
7208: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7209: if test -n "$ac_ct_RANLIB"; then
1.150 moko 7210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7211: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 7212: else
1.150 moko 7213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214: $as_echo "no" >&6; }
1.128 moko 7215: fi
7216:
1.150 moko 7217: if test "x$ac_ct_RANLIB" = x; then
7218: RANLIB=":"
7219: else
7220: case $cross_compiling:$ac_tool_warned in
7221: yes:)
7222: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224: ac_tool_warned=yes ;;
7225: esac
7226: RANLIB=$ac_ct_RANLIB
7227: fi
1.128 moko 7228: else
7229: RANLIB="$ac_cv_prog_RANLIB"
7230: fi
7231:
7232: test -z "$RANLIB" && RANLIB=:
7233:
7234:
7235:
7236:
7237:
7238:
7239: # Determine commands to create old-style static archives.
7240: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7241: old_postinstall_cmds='chmod 644 $oldlib'
7242: old_postuninstall_cmds=
7243:
7244: if test -n "$RANLIB"; then
7245: case $host_os in
7246: openbsd*)
7247: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7248: ;;
7249: *)
7250: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7251: ;;
7252: esac
7253: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7254: fi
7255:
7256: case $host_os in
7257: darwin*)
7258: lock_old_archive_extraction=yes ;;
7259: *)
7260: lock_old_archive_extraction=no ;;
7261: esac
7262:
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: # If no C compiler was specified, use CC.
7302: LTCC=${LTCC-"$CC"}
7303:
7304: # If no C compiler flags were specified, use CFLAGS.
7305: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7306:
7307: # Allow CC to be a program name with arguments.
7308: compiler=$CC
7309:
7310:
7311: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7313: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7314: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7315: $as_echo_n "(cached) " >&6
1.128 moko 7316: else
7317:
7318: # These are sane defaults that work on at least a few old systems.
7319: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7320:
7321: # Character class describing NM global symbol codes.
7322: symcode='[BCDEGRST]'
7323:
7324: # Regexp to match symbols that can be accessed directly from C.
7325: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7326:
7327: # Define system-specific variables.
7328: case $host_os in
7329: aix*)
7330: symcode='[BCDT]'
7331: ;;
7332: cygwin* | mingw* | pw32* | cegcc*)
7333: symcode='[ABCDGISTW]'
7334: ;;
7335: hpux*)
7336: if test "$host_cpu" = ia64; then
7337: symcode='[ABCDEGRST]'
7338: fi
7339: ;;
7340: irix* | nonstopux*)
7341: symcode='[BCDEGRST]'
7342: ;;
7343: osf*)
7344: symcode='[BCDEGQRST]'
7345: ;;
7346: solaris*)
7347: symcode='[BDRT]'
7348: ;;
7349: sco3.2v5*)
7350: symcode='[DT]'
7351: ;;
7352: sysv4.2uw2*)
7353: symcode='[DT]'
7354: ;;
7355: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7356: symcode='[ABDT]'
7357: ;;
7358: sysv4)
7359: symcode='[DFNSTU]'
7360: ;;
7361: esac
7362:
7363: # If we're using GNU nm, then use its standard symbol codes.
7364: case `$NM -V 2>&1` in
7365: *GNU* | *'with BFD'*)
7366: symcode='[ABCDGIRSTW]' ;;
7367: esac
7368:
7369: # Transform an extracted symbol line into a proper C declaration.
7370: # Some systems (esp. on ia64) link data and code symbols differently,
7371: # so use this general approach.
7372: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7373:
7374: # Transform an extracted symbol line into symbol name and symbol address
7375: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7376: 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'"
7377:
7378: # Handle CRLF in mingw tool chain
7379: opt_cr=
7380: case $build_os in
7381: mingw*)
7382: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7383: ;;
7384: esac
7385:
7386: # Try without a prefix underscore, then with it.
7387: for ac_symprfx in "" "_"; do
7388:
7389: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7390: symxfrm="\\1 $ac_symprfx\\2 \\2"
7391:
7392: # Write the raw and C identifiers.
7393: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7394: # Fake it for dumpbin and say T for any non-static function
7395: # and D for any global variable.
7396: # Also find C++ and __fastcall symbols from MSVC++,
7397: # which start with @ or ?.
7398: lt_cv_sys_global_symbol_pipe="$AWK '"\
7399: " {last_section=section; section=\$ 3};"\
7400: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7401: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7402: " \$ 0!~/External *\|/{next};"\
7403: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7404: " {if(hide[section]) next};"\
7405: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7406: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7407: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7408: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7409: " ' prfx=^$ac_symprfx"
7410: else
7411: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7412: fi
7413: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7414:
7415: # Check to see that the pipe works correctly.
7416: pipe_works=no
7417:
7418: rm -f conftest*
7419: cat > conftest.$ac_ext <<_LT_EOF
7420: #ifdef __cplusplus
7421: extern "C" {
7422: #endif
7423: char nm_test_var;
7424: void nm_test_func(void);
7425: void nm_test_func(void){}
7426: #ifdef __cplusplus
7427: }
7428: #endif
7429: int main(){nm_test_var='a';nm_test_func();return(0);}
7430: _LT_EOF
7431:
1.150 moko 7432: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7433: (eval $ac_compile) 2>&5
7434: ac_status=$?
1.150 moko 7435: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436: test $ac_status = 0; }; then
1.128 moko 7437: # Now try to grab the symbols.
7438: nlist=conftest.nm
1.150 moko 7439: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7440: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7441: ac_status=$?
1.150 moko 7442: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7444: # Try sorting and uniquifying the output.
7445: if sort "$nlist" | uniq > "$nlist"T; then
7446: mv -f "$nlist"T "$nlist"
7447: else
7448: rm -f "$nlist"T
7449: fi
7450:
7451: # Make sure that we snagged all the symbols we need.
7452: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7453: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7454: cat <<_LT_EOF > conftest.$ac_ext
7455: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7456: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7457: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7458: relocations are performed -- see ld's documentation on pseudo-relocs. */
7459: # define LT_DLSYM_CONST
7460: #elif defined(__osf__)
7461: /* This system does not cope well with relocations in const data. */
7462: # define LT_DLSYM_CONST
7463: #else
7464: # define LT_DLSYM_CONST const
7465: #endif
7466:
7467: #ifdef __cplusplus
7468: extern "C" {
7469: #endif
7470:
7471: _LT_EOF
7472: # Now generate the symbol file.
7473: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7474:
7475: cat <<_LT_EOF >> conftest.$ac_ext
7476:
7477: /* The mapping between symbol names and symbols. */
7478: LT_DLSYM_CONST struct {
7479: const char *name;
7480: void *address;
7481: }
7482: lt__PROGRAM__LTX_preloaded_symbols[] =
7483: {
7484: { "@PROGRAM@", (void *) 0 },
7485: _LT_EOF
7486: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7487: cat <<\_LT_EOF >> conftest.$ac_ext
7488: {0, (void *) 0}
7489: };
7490:
7491: /* This works around a problem in FreeBSD linker */
7492: #ifdef FREEBSD_WORKAROUND
7493: static const void *lt_preloaded_setup() {
7494: return lt__PROGRAM__LTX_preloaded_symbols;
7495: }
7496: #endif
7497:
7498: #ifdef __cplusplus
7499: }
7500: #endif
7501: _LT_EOF
7502: # Now try linking the two files.
7503: mv conftest.$ac_objext conftstm.$ac_objext
7504: lt_globsym_save_LIBS=$LIBS
7505: lt_globsym_save_CFLAGS=$CFLAGS
7506: LIBS="conftstm.$ac_objext"
7507: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7508: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7509: (eval $ac_link) 2>&5
7510: ac_status=$?
1.150 moko 7511: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7512: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7513: pipe_works=yes
7514: fi
7515: LIBS=$lt_globsym_save_LIBS
7516: CFLAGS=$lt_globsym_save_CFLAGS
7517: else
7518: echo "cannot find nm_test_func in $nlist" >&5
7519: fi
7520: else
7521: echo "cannot find nm_test_var in $nlist" >&5
7522: fi
7523: else
7524: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7525: fi
7526: else
7527: echo "$progname: failed program was:" >&5
7528: cat conftest.$ac_ext >&5
7529: fi
7530: rm -rf conftest* conftst*
7531:
7532: # Do not use the global_symbol_pipe unless it works.
7533: if test "$pipe_works" = yes; then
7534: break
7535: else
7536: lt_cv_sys_global_symbol_pipe=
7537: fi
7538: done
7539:
7540: fi
7541:
7542: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7543: lt_cv_sys_global_symbol_to_cdecl=
7544: fi
7545: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7547: $as_echo "failed" >&6; }
1.128 moko 7548: else
1.150 moko 7549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7550: $as_echo "ok" >&6; }
1.128 moko 7551: fi
7552:
7553: # Response file support.
7554: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7555: nm_file_list_spec='@'
7556: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7557: nm_file_list_spec='@'
7558: fi
7559:
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:
1.150 moko 7586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7587: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7588:
1.150 moko 7589: # Check whether --with-sysroot was given.
7590: if test "${with_sysroot+set}" = set; then :
7591: withval=$with_sysroot;
1.128 moko 7592: else
7593: with_sysroot=no
1.150 moko 7594: fi
7595:
1.128 moko 7596:
7597: lt_sysroot=
7598: case ${with_sysroot} in #(
7599: yes)
7600: if test "$GCC" = yes; then
7601: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7602: fi
7603: ;; #(
7604: /*)
7605: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7606: ;; #(
7607: no|'')
7608: ;; #(
7609: *)
1.150 moko 7610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7611: $as_echo "${with_sysroot}" >&6; }
7612: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7613: ;;
7614: esac
7615:
1.150 moko 7616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7617: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7618:
7619:
7620:
7621:
7622:
1.150 moko 7623: # Check whether --enable-libtool-lock was given.
7624: if test "${enable_libtool_lock+set}" = set; then :
7625: enableval=$enable_libtool_lock;
7626: fi
1.128 moko 7627:
7628: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7629:
7630: # Some flags need to be propagated to the compiler or linker for good
7631: # libtool support.
7632: case $host in
7633: ia64-*-hpux*)
7634: # Find out which ABI we are using.
7635: echo 'int i;' > conftest.$ac_ext
1.150 moko 7636: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7637: (eval $ac_compile) 2>&5
7638: ac_status=$?
1.150 moko 7639: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7640: test $ac_status = 0; }; then
1.128 moko 7641: case `/usr/bin/file conftest.$ac_objext` in
7642: *ELF-32*)
7643: HPUX_IA64_MODE="32"
7644: ;;
7645: *ELF-64*)
7646: HPUX_IA64_MODE="64"
7647: ;;
7648: esac
7649: fi
7650: rm -rf conftest*
7651: ;;
7652: *-*-irix6*)
7653: # Find out which ABI we are using.
7654: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7655: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7656: (eval $ac_compile) 2>&5
7657: ac_status=$?
1.150 moko 7658: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659: test $ac_status = 0; }; then
1.128 moko 7660: if test "$lt_cv_prog_gnu_ld" = yes; then
7661: case `/usr/bin/file conftest.$ac_objext` in
7662: *32-bit*)
7663: LD="${LD-ld} -melf32bsmip"
7664: ;;
7665: *N32*)
7666: LD="${LD-ld} -melf32bmipn32"
7667: ;;
7668: *64-bit*)
7669: LD="${LD-ld} -melf64bmip"
7670: ;;
7671: esac
7672: else
7673: case `/usr/bin/file conftest.$ac_objext` in
7674: *32-bit*)
7675: LD="${LD-ld} -32"
7676: ;;
7677: *N32*)
7678: LD="${LD-ld} -n32"
7679: ;;
7680: *64-bit*)
7681: LD="${LD-ld} -64"
7682: ;;
7683: esac
7684: fi
7685: fi
7686: rm -rf conftest*
7687: ;;
7688:
7689: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7690: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7691: # Find out which ABI we are using.
7692: echo 'int i;' > conftest.$ac_ext
1.150 moko 7693: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7694: (eval $ac_compile) 2>&5
7695: ac_status=$?
1.150 moko 7696: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697: test $ac_status = 0; }; then
1.128 moko 7698: case `/usr/bin/file conftest.o` in
7699: *32-bit*)
7700: case $host in
7701: x86_64-*kfreebsd*-gnu)
7702: LD="${LD-ld} -m elf_i386_fbsd"
7703: ;;
7704: x86_64-*linux*)
7705: LD="${LD-ld} -m elf_i386"
7706: ;;
7707: ppc64-*linux*|powerpc64-*linux*)
7708: LD="${LD-ld} -m elf32ppclinux"
7709: ;;
7710: s390x-*linux*)
7711: LD="${LD-ld} -m elf_s390"
7712: ;;
7713: sparc64-*linux*)
7714: LD="${LD-ld} -m elf32_sparc"
7715: ;;
7716: esac
7717: ;;
7718: *64-bit*)
7719: case $host in
7720: x86_64-*kfreebsd*-gnu)
7721: LD="${LD-ld} -m elf_x86_64_fbsd"
7722: ;;
7723: x86_64-*linux*)
7724: LD="${LD-ld} -m elf_x86_64"
7725: ;;
7726: ppc*-*linux*|powerpc*-*linux*)
7727: LD="${LD-ld} -m elf64ppc"
7728: ;;
7729: s390*-*linux*|s390*-*tpf*)
7730: LD="${LD-ld} -m elf64_s390"
7731: ;;
7732: sparc*-*linux*)
7733: LD="${LD-ld} -m elf64_sparc"
7734: ;;
7735: esac
7736: ;;
7737: esac
7738: fi
7739: rm -rf conftest*
7740: ;;
7741:
7742: *-*-sco3.2v5*)
7743: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7744: SAVE_CFLAGS="$CFLAGS"
7745: CFLAGS="$CFLAGS -belf"
1.150 moko 7746: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7747: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7748: if ${lt_cv_cc_needs_belf+:} false; then :
7749: $as_echo_n "(cached) " >&6
1.128 moko 7750: else
7751: ac_ext=c
7752: ac_cpp='$CPP $CPPFLAGS'
7753: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756:
1.150 moko 7757: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7758: /* end confdefs.h. */
7759:
7760: int
7761: main ()
7762: {
7763:
7764: ;
7765: return 0;
7766: }
7767: _ACEOF
1.150 moko 7768: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7769: lt_cv_cc_needs_belf=yes
7770: else
1.150 moko 7771: lt_cv_cc_needs_belf=no
1.128 moko 7772: fi
1.150 moko 7773: rm -f core conftest.err conftest.$ac_objext \
7774: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7775: ac_ext=c
7776: ac_cpp='$CPP $CPPFLAGS'
7777: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780:
7781: fi
1.150 moko 7782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7783: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7784: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7785: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7786: CFLAGS="$SAVE_CFLAGS"
7787: fi
7788: ;;
7789: *-*solaris*)
7790: # Find out which ABI we are using.
7791: echo 'int i;' > conftest.$ac_ext
1.150 moko 7792: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7793: (eval $ac_compile) 2>&5
7794: ac_status=$?
1.150 moko 7795: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796: test $ac_status = 0; }; then
1.128 moko 7797: case `/usr/bin/file conftest.o` in
7798: *64-bit*)
7799: case $lt_cv_prog_gnu_ld in
7800: yes*)
7801: case $host in
7802: i?86-*-solaris*)
7803: LD="${LD-ld} -m elf_x86_64"
7804: ;;
7805: sparc*-*-solaris*)
7806: LD="${LD-ld} -m elf64_sparc"
7807: ;;
7808: esac
7809: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7810: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7811: LD="${LD-ld}_sol2"
7812: fi
7813: ;;
7814: *)
7815: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7816: LD="${LD-ld} -64"
7817: fi
7818: ;;
7819: esac
7820: ;;
7821: esac
7822: fi
7823: rm -rf conftest*
7824: ;;
7825: esac
7826:
7827: need_locks="$enable_libtool_lock"
7828:
7829: if test -n "$ac_tool_prefix"; then
7830: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7831: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833: $as_echo_n "checking for $ac_word... " >&6; }
7834: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7835: $as_echo_n "(cached) " >&6
1.128 moko 7836: else
7837: if test -n "$MANIFEST_TOOL"; then
7838: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7839: else
7840: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841: for as_dir in $PATH
7842: do
7843: IFS=$as_save_IFS
7844: test -z "$as_dir" && as_dir=.
1.150 moko 7845: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7846: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7847: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7848: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7849: break 2
7850: fi
7851: done
1.150 moko 7852: done
7853: IFS=$as_save_IFS
1.128 moko 7854:
7855: fi
7856: fi
7857: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7858: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7860: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7861: else
1.150 moko 7862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863: $as_echo "no" >&6; }
1.128 moko 7864: fi
7865:
1.150 moko 7866:
1.128 moko 7867: fi
7868: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7869: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7870: # Extract the first word of "mt", so it can be a program name with args.
7871: set dummy mt; ac_word=$2
1.150 moko 7872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873: $as_echo_n "checking for $ac_word... " >&6; }
7874: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7875: $as_echo_n "(cached) " >&6
1.128 moko 7876: else
7877: if test -n "$ac_ct_MANIFEST_TOOL"; then
7878: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7879: else
7880: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881: for as_dir in $PATH
7882: do
7883: IFS=$as_save_IFS
7884: test -z "$as_dir" && as_dir=.
1.150 moko 7885: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7886: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7887: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7888: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7889: break 2
7890: fi
7891: done
1.150 moko 7892: done
7893: IFS=$as_save_IFS
1.128 moko 7894:
7895: fi
7896: fi
7897: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7898: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7900: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7901: else
1.150 moko 7902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903: $as_echo "no" >&6; }
1.128 moko 7904: fi
7905:
1.150 moko 7906: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7907: MANIFEST_TOOL=":"
7908: else
7909: case $cross_compiling:$ac_tool_warned in
7910: yes:)
7911: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7912: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7913: ac_tool_warned=yes ;;
7914: esac
7915: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7916: fi
1.128 moko 7917: else
7918: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7919: fi
7920:
7921: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7923: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7924: if ${lt_cv_path_mainfest_tool+:} false; then :
7925: $as_echo_n "(cached) " >&6
1.128 moko 7926: else
7927: lt_cv_path_mainfest_tool=no
7928: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7929: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7930: cat conftest.err >&5
7931: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7932: lt_cv_path_mainfest_tool=yes
7933: fi
7934: rm -f conftest*
7935: fi
1.150 moko 7936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7937: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 7938: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7939: MANIFEST_TOOL=:
7940: fi
7941:
7942:
7943:
7944:
7945:
7946:
7947: case $host_os in
7948: rhapsody* | darwin*)
7949: if test -n "$ac_tool_prefix"; then
7950: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7951: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 7952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953: $as_echo_n "checking for $ac_word... " >&6; }
7954: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7955: $as_echo_n "(cached) " >&6
1.128 moko 7956: else
7957: if test -n "$DSYMUTIL"; then
7958: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7959: else
7960: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961: for as_dir in $PATH
7962: do
7963: IFS=$as_save_IFS
7964: test -z "$as_dir" && as_dir=.
1.150 moko 7965: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7966: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7967: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 7968: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7969: break 2
7970: fi
7971: done
1.150 moko 7972: done
7973: IFS=$as_save_IFS
1.128 moko 7974:
7975: fi
7976: fi
7977: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7978: if test -n "$DSYMUTIL"; then
1.150 moko 7979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7980: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 7981: else
1.150 moko 7982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983: $as_echo "no" >&6; }
1.128 moko 7984: fi
7985:
1.150 moko 7986:
1.128 moko 7987: fi
7988: if test -z "$ac_cv_prog_DSYMUTIL"; then
7989: ac_ct_DSYMUTIL=$DSYMUTIL
7990: # Extract the first word of "dsymutil", so it can be a program name with args.
7991: set dummy dsymutil; ac_word=$2
1.150 moko 7992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993: $as_echo_n "checking for $ac_word... " >&6; }
7994: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7995: $as_echo_n "(cached) " >&6
1.128 moko 7996: else
7997: if test -n "$ac_ct_DSYMUTIL"; then
7998: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7999: else
8000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001: for as_dir in $PATH
8002: do
8003: IFS=$as_save_IFS
8004: test -z "$as_dir" && as_dir=.
1.150 moko 8005: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8006: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8007: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 8008: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8009: break 2
8010: fi
8011: done
1.150 moko 8012: done
8013: IFS=$as_save_IFS
1.128 moko 8014:
8015: fi
8016: fi
8017: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8018: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 8019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8020: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 8021: else
1.150 moko 8022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023: $as_echo "no" >&6; }
1.128 moko 8024: fi
8025:
1.150 moko 8026: if test "x$ac_ct_DSYMUTIL" = x; then
8027: DSYMUTIL=":"
8028: else
8029: case $cross_compiling:$ac_tool_warned in
8030: yes:)
8031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8032: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8033: ac_tool_warned=yes ;;
8034: esac
8035: DSYMUTIL=$ac_ct_DSYMUTIL
8036: fi
1.128 moko 8037: else
8038: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8039: fi
8040:
8041: if test -n "$ac_tool_prefix"; then
8042: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8043: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 8044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045: $as_echo_n "checking for $ac_word... " >&6; }
8046: if ${ac_cv_prog_NMEDIT+:} false; then :
8047: $as_echo_n "(cached) " >&6
1.128 moko 8048: else
8049: if test -n "$NMEDIT"; then
8050: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8051: else
8052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053: for as_dir in $PATH
8054: do
8055: IFS=$as_save_IFS
8056: test -z "$as_dir" && as_dir=.
1.150 moko 8057: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8058: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8059: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 8060: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8061: break 2
8062: fi
8063: done
1.150 moko 8064: done
8065: IFS=$as_save_IFS
1.128 moko 8066:
8067: fi
8068: fi
8069: NMEDIT=$ac_cv_prog_NMEDIT
8070: if test -n "$NMEDIT"; then
1.150 moko 8071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8072: $as_echo "$NMEDIT" >&6; }
1.128 moko 8073: else
1.150 moko 8074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075: $as_echo "no" >&6; }
1.128 moko 8076: fi
8077:
1.150 moko 8078:
1.128 moko 8079: fi
8080: if test -z "$ac_cv_prog_NMEDIT"; then
8081: ac_ct_NMEDIT=$NMEDIT
8082: # Extract the first word of "nmedit", so it can be a program name with args.
8083: set dummy nmedit; ac_word=$2
1.150 moko 8084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085: $as_echo_n "checking for $ac_word... " >&6; }
8086: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8087: $as_echo_n "(cached) " >&6
1.128 moko 8088: else
8089: if test -n "$ac_ct_NMEDIT"; then
8090: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8091: else
8092: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093: for as_dir in $PATH
8094: do
8095: IFS=$as_save_IFS
8096: test -z "$as_dir" && as_dir=.
1.150 moko 8097: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8098: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8099: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 8100: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8101: break 2
8102: fi
8103: done
1.150 moko 8104: done
8105: IFS=$as_save_IFS
1.128 moko 8106:
8107: fi
8108: fi
8109: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8110: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 8111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8112: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 8113: else
1.150 moko 8114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115: $as_echo "no" >&6; }
1.128 moko 8116: fi
8117:
1.150 moko 8118: if test "x$ac_ct_NMEDIT" = x; then
8119: NMEDIT=":"
8120: else
8121: case $cross_compiling:$ac_tool_warned in
8122: yes:)
8123: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8124: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8125: ac_tool_warned=yes ;;
8126: esac
8127: NMEDIT=$ac_ct_NMEDIT
8128: fi
1.128 moko 8129: else
8130: NMEDIT="$ac_cv_prog_NMEDIT"
8131: fi
8132:
8133: if test -n "$ac_tool_prefix"; then
8134: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8135: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 8136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137: $as_echo_n "checking for $ac_word... " >&6; }
8138: if ${ac_cv_prog_LIPO+:} false; then :
8139: $as_echo_n "(cached) " >&6
1.128 moko 8140: else
8141: if test -n "$LIPO"; then
8142: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8143: else
8144: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145: for as_dir in $PATH
8146: do
8147: IFS=$as_save_IFS
8148: test -z "$as_dir" && as_dir=.
1.150 moko 8149: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8150: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8151: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 8152: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8153: break 2
8154: fi
8155: done
1.150 moko 8156: done
8157: IFS=$as_save_IFS
1.128 moko 8158:
8159: fi
8160: fi
8161: LIPO=$ac_cv_prog_LIPO
8162: if test -n "$LIPO"; then
1.150 moko 8163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8164: $as_echo "$LIPO" >&6; }
1.128 moko 8165: else
1.150 moko 8166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167: $as_echo "no" >&6; }
1.128 moko 8168: fi
8169:
1.150 moko 8170:
1.128 moko 8171: fi
8172: if test -z "$ac_cv_prog_LIPO"; then
8173: ac_ct_LIPO=$LIPO
8174: # Extract the first word of "lipo", so it can be a program name with args.
8175: set dummy lipo; ac_word=$2
1.150 moko 8176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177: $as_echo_n "checking for $ac_word... " >&6; }
8178: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8179: $as_echo_n "(cached) " >&6
1.128 moko 8180: else
8181: if test -n "$ac_ct_LIPO"; then
8182: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8183: else
8184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185: for as_dir in $PATH
8186: do
8187: IFS=$as_save_IFS
8188: test -z "$as_dir" && as_dir=.
1.150 moko 8189: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8190: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8191: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 8192: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8193: break 2
8194: fi
8195: done
1.150 moko 8196: done
8197: IFS=$as_save_IFS
1.128 moko 8198:
8199: fi
8200: fi
8201: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8202: if test -n "$ac_ct_LIPO"; then
1.150 moko 8203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8204: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 8205: else
1.150 moko 8206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207: $as_echo "no" >&6; }
1.128 moko 8208: fi
8209:
1.150 moko 8210: if test "x$ac_ct_LIPO" = x; then
8211: LIPO=":"
8212: else
8213: case $cross_compiling:$ac_tool_warned in
8214: yes:)
8215: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8216: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8217: ac_tool_warned=yes ;;
8218: esac
8219: LIPO=$ac_ct_LIPO
8220: fi
1.128 moko 8221: else
8222: LIPO="$ac_cv_prog_LIPO"
8223: fi
8224:
8225: if test -n "$ac_tool_prefix"; then
8226: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8227: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 8228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229: $as_echo_n "checking for $ac_word... " >&6; }
8230: if ${ac_cv_prog_OTOOL+:} false; then :
8231: $as_echo_n "(cached) " >&6
1.128 moko 8232: else
8233: if test -n "$OTOOL"; then
8234: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8235: else
8236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237: for as_dir in $PATH
8238: do
8239: IFS=$as_save_IFS
8240: test -z "$as_dir" && as_dir=.
1.150 moko 8241: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8242: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8243: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 8244: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8245: break 2
8246: fi
8247: done
1.150 moko 8248: done
8249: IFS=$as_save_IFS
1.128 moko 8250:
8251: fi
8252: fi
8253: OTOOL=$ac_cv_prog_OTOOL
8254: if test -n "$OTOOL"; then
1.150 moko 8255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8256: $as_echo "$OTOOL" >&6; }
1.128 moko 8257: else
1.150 moko 8258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259: $as_echo "no" >&6; }
1.128 moko 8260: fi
8261:
1.150 moko 8262:
1.128 moko 8263: fi
8264: if test -z "$ac_cv_prog_OTOOL"; then
8265: ac_ct_OTOOL=$OTOOL
8266: # Extract the first word of "otool", so it can be a program name with args.
8267: set dummy otool; ac_word=$2
1.150 moko 8268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269: $as_echo_n "checking for $ac_word... " >&6; }
8270: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8271: $as_echo_n "(cached) " >&6
1.128 moko 8272: else
8273: if test -n "$ac_ct_OTOOL"; then
8274: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8275: else
8276: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277: for as_dir in $PATH
8278: do
8279: IFS=$as_save_IFS
8280: test -z "$as_dir" && as_dir=.
1.150 moko 8281: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8282: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8283: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 8284: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8285: break 2
8286: fi
8287: done
1.150 moko 8288: done
8289: IFS=$as_save_IFS
1.128 moko 8290:
8291: fi
8292: fi
8293: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8294: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8296: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8297: else
1.150 moko 8298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299: $as_echo "no" >&6; }
1.128 moko 8300: fi
8301:
1.150 moko 8302: if test "x$ac_ct_OTOOL" = x; then
8303: OTOOL=":"
8304: else
8305: case $cross_compiling:$ac_tool_warned in
8306: yes:)
8307: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8308: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8309: ac_tool_warned=yes ;;
8310: esac
8311: OTOOL=$ac_ct_OTOOL
8312: fi
1.128 moko 8313: else
8314: OTOOL="$ac_cv_prog_OTOOL"
8315: fi
8316:
8317: if test -n "$ac_tool_prefix"; then
8318: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8319: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8320: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321: $as_echo_n "checking for $ac_word... " >&6; }
8322: if ${ac_cv_prog_OTOOL64+:} false; then :
8323: $as_echo_n "(cached) " >&6
1.128 moko 8324: else
8325: if test -n "$OTOOL64"; then
8326: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8327: else
8328: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329: for as_dir in $PATH
8330: do
8331: IFS=$as_save_IFS
8332: test -z "$as_dir" && as_dir=.
1.150 moko 8333: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8334: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8335: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8336: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8337: break 2
8338: fi
8339: done
1.150 moko 8340: done
8341: IFS=$as_save_IFS
1.128 moko 8342:
8343: fi
8344: fi
8345: OTOOL64=$ac_cv_prog_OTOOL64
8346: if test -n "$OTOOL64"; then
1.150 moko 8347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8348: $as_echo "$OTOOL64" >&6; }
1.128 moko 8349: else
1.150 moko 8350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351: $as_echo "no" >&6; }
1.128 moko 8352: fi
8353:
1.150 moko 8354:
1.128 moko 8355: fi
8356: if test -z "$ac_cv_prog_OTOOL64"; then
8357: ac_ct_OTOOL64=$OTOOL64
8358: # Extract the first word of "otool64", so it can be a program name with args.
8359: set dummy otool64; ac_word=$2
1.150 moko 8360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361: $as_echo_n "checking for $ac_word... " >&6; }
8362: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8363: $as_echo_n "(cached) " >&6
1.128 moko 8364: else
8365: if test -n "$ac_ct_OTOOL64"; then
8366: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8367: else
8368: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369: for as_dir in $PATH
8370: do
8371: IFS=$as_save_IFS
8372: test -z "$as_dir" && as_dir=.
1.150 moko 8373: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8374: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8375: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8376: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8377: break 2
8378: fi
8379: done
1.150 moko 8380: done
8381: IFS=$as_save_IFS
1.128 moko 8382:
8383: fi
8384: fi
8385: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8386: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8388: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8389: else
1.150 moko 8390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391: $as_echo "no" >&6; }
1.128 moko 8392: fi
8393:
1.150 moko 8394: if test "x$ac_ct_OTOOL64" = x; then
8395: OTOOL64=":"
8396: else
8397: case $cross_compiling:$ac_tool_warned in
8398: yes:)
8399: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8400: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8401: ac_tool_warned=yes ;;
8402: esac
8403: OTOOL64=$ac_ct_OTOOL64
8404: fi
1.128 moko 8405: else
8406: OTOOL64="$ac_cv_prog_OTOOL64"
8407: fi
8408:
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:
1.150 moko 8435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8436: $as_echo_n "checking for -single_module linker flag... " >&6; }
8437: if ${lt_cv_apple_cc_single_mod+:} false; then :
8438: $as_echo_n "(cached) " >&6
1.128 moko 8439: else
8440: lt_cv_apple_cc_single_mod=no
8441: if test -z "${LT_MULTI_MODULE}"; then
8442: # By default we will add the -single_module flag. You can override
8443: # by either setting the environment variable LT_MULTI_MODULE
8444: # non-empty at configure time, or by adding -multi_module to the
8445: # link flags.
8446: rm -rf libconftest.dylib*
8447: echo "int foo(void){return 1;}" > conftest.c
8448: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8449: -dynamiclib -Wl,-single_module conftest.c" >&5
8450: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8451: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8452: _lt_result=$?
8453: # If there is a non-empty error log, and "single_module"
8454: # appears in it, assume the flag caused a linker warning
8455: if test -s conftest.err && $GREP single_module conftest.err; then
8456: cat conftest.err >&5
8457: # Otherwise, if the output was created with a 0 exit code from
8458: # the compiler, it worked.
8459: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8460: lt_cv_apple_cc_single_mod=yes
8461: else
8462: cat conftest.err >&5
8463: fi
8464: rm -rf libconftest.dylib*
8465: rm -f conftest.*
8466: fi
8467: fi
1.150 moko 8468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8469: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8470:
1.150 moko 8471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8472: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8473: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8474: $as_echo_n "(cached) " >&6
1.128 moko 8475: else
8476: lt_cv_ld_exported_symbols_list=no
8477: save_LDFLAGS=$LDFLAGS
8478: echo "_main" > conftest.sym
8479: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8480: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8481: /* end confdefs.h. */
8482:
8483: int
8484: main ()
8485: {
8486:
8487: ;
8488: return 0;
8489: }
8490: _ACEOF
1.150 moko 8491: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8492: lt_cv_ld_exported_symbols_list=yes
8493: else
1.150 moko 8494: lt_cv_ld_exported_symbols_list=no
1.128 moko 8495: fi
1.150 moko 8496: rm -f core conftest.err conftest.$ac_objext \
8497: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8498: LDFLAGS="$save_LDFLAGS"
8499:
8500: fi
1.150 moko 8501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8502: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8503:
1.150 moko 8504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8505: $as_echo_n "checking for -force_load linker flag... " >&6; }
8506: if ${lt_cv_ld_force_load+:} false; then :
8507: $as_echo_n "(cached) " >&6
1.128 moko 8508: else
8509: lt_cv_ld_force_load=no
8510: cat > conftest.c << _LT_EOF
8511: int forced_loaded() { return 2;}
8512: _LT_EOF
8513: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8514: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8515: echo "$AR cru libconftest.a conftest.o" >&5
8516: $AR cru libconftest.a conftest.o 2>&5
8517: echo "$RANLIB libconftest.a" >&5
8518: $RANLIB libconftest.a 2>&5
8519: cat > conftest.c << _LT_EOF
8520: int main() { return 0;}
8521: _LT_EOF
8522: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8523: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8524: _lt_result=$?
8525: if test -s conftest.err && $GREP force_load conftest.err; then
8526: cat conftest.err >&5
8527: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8528: lt_cv_ld_force_load=yes
8529: else
8530: cat conftest.err >&5
8531: fi
8532: rm -f conftest.err libconftest.a conftest conftest.c
8533: rm -rf conftest.dSYM
8534:
8535: fi
1.150 moko 8536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8537: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8538: case $host_os in
8539: rhapsody* | darwin1.[012])
8540: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8541: darwin1.*)
8542: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8543: darwin*) # darwin 5.x on
8544: # if running on 10.5 or later, the deployment target defaults
8545: # to the OS version, if on x86, and 10.4, the deployment
8546: # target defaults to 10.4. Don't you love it?
8547: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8548: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8549: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8550: 10.[012]*)
8551: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8552: 10.*)
8553: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8554: esac
8555: ;;
8556: esac
8557: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8558: _lt_dar_single_mod='$single_module'
8559: fi
8560: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8561: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8562: else
8563: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8564: fi
8565: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8566: _lt_dsymutil='~$DSYMUTIL $lib || :'
8567: else
8568: _lt_dsymutil=
8569: fi
8570: ;;
8571: esac
8572:
8573: ac_ext=c
8574: ac_cpp='$CPP $CPPFLAGS'
8575: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8576: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8577: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8578: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8579: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8580: # On Suns, sometimes $CPP names a directory.
8581: if test -n "$CPP" && test -d "$CPP"; then
8582: CPP=
8583: fi
8584: if test -z "$CPP"; then
1.150 moko 8585: if ${ac_cv_prog_CPP+:} false; then :
8586: $as_echo_n "(cached) " >&6
1.128 moko 8587: else
8588: # Double quotes because CPP needs to be expanded
8589: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8590: do
8591: ac_preproc_ok=false
8592: for ac_c_preproc_warn_flag in '' yes
8593: do
8594: # Use a header file that comes with gcc, so configuring glibc
8595: # with a fresh cross-compiler works.
8596: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8597: # <limits.h> exists even on freestanding compilers.
8598: # On the NeXT, cc -E runs the code through the compiler's parser,
8599: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8600: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8601: /* end confdefs.h. */
8602: #ifdef __STDC__
8603: # include <limits.h>
8604: #else
8605: # include <assert.h>
8606: #endif
8607: Syntax error
8608: _ACEOF
1.150 moko 8609: if ac_fn_c_try_cpp "$LINENO"; then :
8610:
1.128 moko 8611: else
8612: # Broken: fails on valid input.
8613: continue
8614: fi
1.150 moko 8615: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8616:
1.150 moko 8617: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8618: # can be detected and how.
1.150 moko 8619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8620: /* end confdefs.h. */
8621: #include <ac_nonexistent.h>
8622: _ACEOF
1.150 moko 8623: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8624: # Broken: success on invalid input.
8625: continue
8626: else
8627: # Passes both tests.
8628: ac_preproc_ok=:
8629: break
8630: fi
1.150 moko 8631: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8632:
8633: done
8634: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8635: rm -f conftest.i conftest.err conftest.$ac_ext
8636: if $ac_preproc_ok; then :
1.128 moko 8637: break
8638: fi
8639:
8640: done
8641: ac_cv_prog_CPP=$CPP
8642:
8643: fi
8644: CPP=$ac_cv_prog_CPP
8645: else
8646: ac_cv_prog_CPP=$CPP
8647: fi
1.150 moko 8648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8649: $as_echo "$CPP" >&6; }
1.128 moko 8650: ac_preproc_ok=false
8651: for ac_c_preproc_warn_flag in '' yes
8652: do
8653: # Use a header file that comes with gcc, so configuring glibc
8654: # with a fresh cross-compiler works.
8655: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8656: # <limits.h> exists even on freestanding compilers.
8657: # On the NeXT, cc -E runs the code through the compiler's parser,
8658: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8659: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8660: /* end confdefs.h. */
8661: #ifdef __STDC__
8662: # include <limits.h>
8663: #else
8664: # include <assert.h>
8665: #endif
8666: Syntax error
8667: _ACEOF
1.150 moko 8668: if ac_fn_c_try_cpp "$LINENO"; then :
8669:
1.128 moko 8670: else
8671: # Broken: fails on valid input.
8672: continue
8673: fi
1.150 moko 8674: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8675:
1.150 moko 8676: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8677: # can be detected and how.
1.150 moko 8678: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8679: /* end confdefs.h. */
8680: #include <ac_nonexistent.h>
8681: _ACEOF
1.150 moko 8682: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8683: # Broken: success on invalid input.
8684: continue
8685: else
8686: # Passes both tests.
8687: ac_preproc_ok=:
8688: break
8689: fi
1.150 moko 8690: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8691:
8692: done
8693: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8694: rm -f conftest.i conftest.err conftest.$ac_ext
8695: if $ac_preproc_ok; then :
8696:
1.128 moko 8697: else
1.150 moko 8698: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8699: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8700: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8701: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8702: fi
8703:
8704: ac_ext=c
8705: ac_cpp='$CPP $CPPFLAGS'
8706: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8707: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8708: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8709:
8710:
1.150 moko 8711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8712: $as_echo_n "checking for ANSI C header files... " >&6; }
8713: if ${ac_cv_header_stdc+:} false; then :
8714: $as_echo_n "(cached) " >&6
1.128 moko 8715: else
1.150 moko 8716: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8717: /* end confdefs.h. */
8718: #include <stdlib.h>
8719: #include <stdarg.h>
8720: #include <string.h>
8721: #include <float.h>
8722:
8723: int
8724: main ()
8725: {
8726:
8727: ;
8728: return 0;
8729: }
8730: _ACEOF
1.150 moko 8731: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8732: ac_cv_header_stdc=yes
8733: else
1.150 moko 8734: ac_cv_header_stdc=no
1.128 moko 8735: fi
1.150 moko 8736: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8737:
8738: if test $ac_cv_header_stdc = yes; then
8739: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8740: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8741: /* end confdefs.h. */
8742: #include <string.h>
8743:
8744: _ACEOF
8745: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8746: $EGREP "memchr" >/dev/null 2>&1; then :
8747:
1.128 moko 8748: else
8749: ac_cv_header_stdc=no
8750: fi
8751: rm -f conftest*
8752:
8753: fi
8754:
8755: if test $ac_cv_header_stdc = yes; then
8756: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8757: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8758: /* end confdefs.h. */
8759: #include <stdlib.h>
8760:
8761: _ACEOF
8762: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8763: $EGREP "free" >/dev/null 2>&1; then :
8764:
1.128 moko 8765: else
8766: ac_cv_header_stdc=no
8767: fi
8768: rm -f conftest*
8769:
8770: fi
8771:
8772: if test $ac_cv_header_stdc = yes; then
8773: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8774: if test "$cross_compiling" = yes; then :
1.128 moko 8775: :
8776: else
1.150 moko 8777: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8778: /* end confdefs.h. */
8779: #include <ctype.h>
1.150 moko 8780: #include <stdlib.h>
1.128 moko 8781: #if ((' ' & 0x0FF) == 0x020)
8782: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8783: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8784: #else
8785: # define ISLOWER(c) \
8786: (('a' <= (c) && (c) <= 'i') \
8787: || ('j' <= (c) && (c) <= 'r') \
8788: || ('s' <= (c) && (c) <= 'z'))
8789: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8790: #endif
8791:
8792: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8793: int
8794: main ()
8795: {
8796: int i;
8797: for (i = 0; i < 256; i++)
8798: if (XOR (islower (i), ISLOWER (i))
8799: || toupper (i) != TOUPPER (i))
1.150 moko 8800: return 2;
8801: return 0;
1.128 moko 8802: }
8803: _ACEOF
1.150 moko 8804: if ac_fn_c_try_run "$LINENO"; then :
8805:
1.128 moko 8806: else
1.150 moko 8807: ac_cv_header_stdc=no
1.128 moko 8808: fi
1.150 moko 8809: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8810: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8811: fi
1.150 moko 8812:
1.128 moko 8813: fi
8814: fi
1.150 moko 8815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8816: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8817: if test $ac_cv_header_stdc = yes; then
8818:
1.150 moko 8819: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8820:
8821: fi
8822:
8823: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8824: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8825: inttypes.h stdint.h unistd.h
8826: do :
8827: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8828: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8829: "
8830: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8831: cat >>confdefs.h <<_ACEOF
8832: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8833: _ACEOF
1.128 moko 8834:
1.150 moko 8835: fi
1.128 moko 8836:
1.150 moko 8837: done
1.128 moko 8838:
8839:
1.150 moko 8840: for ac_header in dlfcn.h
8841: do :
8842: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8843: "
8844: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8845: cat >>confdefs.h <<_ACEOF
8846: #define HAVE_DLFCN_H 1
8847: _ACEOF
1.128 moko 8848:
1.150 moko 8849: fi
1.128 moko 8850:
1.150 moko 8851: done
1.128 moko 8852:
8853:
8854:
8855:
1.150 moko 8856: func_stripname_cnf ()
8857: {
8858: case ${2} in
8859: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8860: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8861: esac
8862: } # func_stripname_cnf
1.128 moko 8863:
8864:
8865:
8866:
8867:
8868: # Set options
8869: enable_dlopen=yes
8870: enable_win32_dll=yes
8871:
8872: case $host in
8873: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8874: if test -n "$ac_tool_prefix"; then
8875: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8876: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8877: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878: $as_echo_n "checking for $ac_word... " >&6; }
8879: if ${ac_cv_prog_AS+:} false; then :
8880: $as_echo_n "(cached) " >&6
1.128 moko 8881: else
8882: if test -n "$AS"; then
8883: ac_cv_prog_AS="$AS" # Let the user override the test.
8884: else
8885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886: for as_dir in $PATH
8887: do
8888: IFS=$as_save_IFS
8889: test -z "$as_dir" && as_dir=.
1.150 moko 8890: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8891: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8892: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8893: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8894: break 2
8895: fi
8896: done
1.150 moko 8897: done
8898: IFS=$as_save_IFS
1.128 moko 8899:
8900: fi
8901: fi
8902: AS=$ac_cv_prog_AS
8903: if test -n "$AS"; then
1.150 moko 8904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8905: $as_echo "$AS" >&6; }
1.128 moko 8906: else
1.150 moko 8907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908: $as_echo "no" >&6; }
1.128 moko 8909: fi
8910:
1.150 moko 8911:
1.128 moko 8912: fi
8913: if test -z "$ac_cv_prog_AS"; then
8914: ac_ct_AS=$AS
8915: # Extract the first word of "as", so it can be a program name with args.
8916: set dummy as; ac_word=$2
1.150 moko 8917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918: $as_echo_n "checking for $ac_word... " >&6; }
8919: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8920: $as_echo_n "(cached) " >&6
1.128 moko 8921: else
8922: if test -n "$ac_ct_AS"; then
8923: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8924: else
8925: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926: for as_dir in $PATH
8927: do
8928: IFS=$as_save_IFS
8929: test -z "$as_dir" && as_dir=.
1.150 moko 8930: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8931: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8932: ac_cv_prog_ac_ct_AS="as"
1.150 moko 8933: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8934: break 2
8935: fi
8936: done
1.150 moko 8937: done
8938: IFS=$as_save_IFS
1.128 moko 8939:
8940: fi
8941: fi
8942: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8943: if test -n "$ac_ct_AS"; then
1.150 moko 8944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8945: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 8946: else
1.150 moko 8947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948: $as_echo "no" >&6; }
1.128 moko 8949: fi
8950:
1.150 moko 8951: if test "x$ac_ct_AS" = x; then
8952: AS="false"
8953: else
8954: case $cross_compiling:$ac_tool_warned in
8955: yes:)
8956: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8957: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8958: ac_tool_warned=yes ;;
8959: esac
8960: AS=$ac_ct_AS
8961: fi
1.128 moko 8962: else
8963: AS="$ac_cv_prog_AS"
8964: fi
8965:
8966: if test -n "$ac_tool_prefix"; then
8967: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8968: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 8969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970: $as_echo_n "checking for $ac_word... " >&6; }
8971: if ${ac_cv_prog_DLLTOOL+:} false; then :
8972: $as_echo_n "(cached) " >&6
1.128 moko 8973: else
8974: if test -n "$DLLTOOL"; then
8975: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8976: else
8977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978: for as_dir in $PATH
8979: do
8980: IFS=$as_save_IFS
8981: test -z "$as_dir" && as_dir=.
1.150 moko 8982: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8983: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8984: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 8985: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8986: break 2
8987: fi
8988: done
1.150 moko 8989: done
8990: IFS=$as_save_IFS
1.128 moko 8991:
8992: fi
8993: fi
8994: DLLTOOL=$ac_cv_prog_DLLTOOL
8995: if test -n "$DLLTOOL"; then
1.150 moko 8996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8997: $as_echo "$DLLTOOL" >&6; }
1.128 moko 8998: else
1.150 moko 8999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000: $as_echo "no" >&6; }
1.128 moko 9001: fi
9002:
1.150 moko 9003:
1.128 moko 9004: fi
9005: if test -z "$ac_cv_prog_DLLTOOL"; then
9006: ac_ct_DLLTOOL=$DLLTOOL
9007: # Extract the first word of "dlltool", so it can be a program name with args.
9008: set dummy dlltool; ac_word=$2
1.150 moko 9009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010: $as_echo_n "checking for $ac_word... " >&6; }
9011: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9012: $as_echo_n "(cached) " >&6
1.128 moko 9013: else
9014: if test -n "$ac_ct_DLLTOOL"; then
9015: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9016: else
9017: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018: for as_dir in $PATH
9019: do
9020: IFS=$as_save_IFS
9021: test -z "$as_dir" && as_dir=.
1.150 moko 9022: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9023: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9024: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 9025: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9026: break 2
9027: fi
9028: done
1.150 moko 9029: done
9030: IFS=$as_save_IFS
1.128 moko 9031:
9032: fi
9033: fi
9034: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9035: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 9036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9037: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 9038: else
1.150 moko 9039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040: $as_echo "no" >&6; }
1.128 moko 9041: fi
9042:
1.150 moko 9043: if test "x$ac_ct_DLLTOOL" = x; then
9044: DLLTOOL="false"
9045: else
9046: case $cross_compiling:$ac_tool_warned in
9047: yes:)
9048: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9049: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9050: ac_tool_warned=yes ;;
9051: esac
9052: DLLTOOL=$ac_ct_DLLTOOL
9053: fi
1.128 moko 9054: else
9055: DLLTOOL="$ac_cv_prog_DLLTOOL"
9056: fi
9057:
9058: if test -n "$ac_tool_prefix"; then
9059: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9060: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 9061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062: $as_echo_n "checking for $ac_word... " >&6; }
9063: if ${ac_cv_prog_OBJDUMP+:} false; then :
9064: $as_echo_n "(cached) " >&6
1.128 moko 9065: else
9066: if test -n "$OBJDUMP"; then
9067: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9068: else
9069: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070: for as_dir in $PATH
9071: do
9072: IFS=$as_save_IFS
9073: test -z "$as_dir" && as_dir=.
1.150 moko 9074: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9075: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9076: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 9077: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9078: break 2
9079: fi
9080: done
1.150 moko 9081: done
9082: IFS=$as_save_IFS
1.128 moko 9083:
9084: fi
9085: fi
9086: OBJDUMP=$ac_cv_prog_OBJDUMP
9087: if test -n "$OBJDUMP"; then
1.150 moko 9088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9089: $as_echo "$OBJDUMP" >&6; }
1.128 moko 9090: else
1.150 moko 9091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092: $as_echo "no" >&6; }
1.128 moko 9093: fi
9094:
1.150 moko 9095:
1.128 moko 9096: fi
9097: if test -z "$ac_cv_prog_OBJDUMP"; then
9098: ac_ct_OBJDUMP=$OBJDUMP
9099: # Extract the first word of "objdump", so it can be a program name with args.
9100: set dummy objdump; ac_word=$2
1.150 moko 9101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102: $as_echo_n "checking for $ac_word... " >&6; }
9103: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9104: $as_echo_n "(cached) " >&6
1.128 moko 9105: else
9106: if test -n "$ac_ct_OBJDUMP"; then
9107: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9108: else
9109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110: for as_dir in $PATH
9111: do
9112: IFS=$as_save_IFS
9113: test -z "$as_dir" && as_dir=.
1.150 moko 9114: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9115: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9116: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 9117: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9118: break 2
9119: fi
9120: done
1.150 moko 9121: done
9122: IFS=$as_save_IFS
1.128 moko 9123:
9124: fi
9125: fi
9126: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9127: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 9128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9129: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 9130: else
1.150 moko 9131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132: $as_echo "no" >&6; }
1.128 moko 9133: fi
9134:
1.150 moko 9135: if test "x$ac_ct_OBJDUMP" = x; then
9136: OBJDUMP="false"
9137: else
9138: case $cross_compiling:$ac_tool_warned in
9139: yes:)
9140: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9141: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9142: ac_tool_warned=yes ;;
9143: esac
9144: OBJDUMP=$ac_ct_OBJDUMP
9145: fi
1.128 moko 9146: else
9147: OBJDUMP="$ac_cv_prog_OBJDUMP"
9148: fi
9149:
9150: ;;
9151: esac
9152:
9153: test -z "$AS" && AS=as
9154:
9155:
9156:
9157:
9158:
9159: test -z "$DLLTOOL" && DLLTOOL=dlltool
9160:
9161:
9162:
9163:
9164:
9165: test -z "$OBJDUMP" && OBJDUMP=objdump
9166:
9167:
9168:
9169:
9170:
1.150 moko 9171: # Check whether --with-pic was given.
9172: if test "${with_pic+set}" = set; then :
9173: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 9174: case $withval in
9175: yes|no) pic_mode=$withval ;;
9176: *)
9177: pic_mode=default
9178: # Look at the argument we got. We use all the common list separators.
9179: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9180: for lt_pkg in $withval; do
9181: IFS="$lt_save_ifs"
9182: if test "X$lt_pkg" = "X$lt_p"; then
9183: pic_mode=yes
9184: fi
9185: done
9186: IFS="$lt_save_ifs"
9187: ;;
9188: esac
9189: else
9190: pic_mode=default
1.150 moko 9191: fi
9192:
1.145 moko 9193:
9194: test -z "$pic_mode" && pic_mode=no
9195:
9196:
9197:
9198:
9199:
9200:
1.128 moko 9201:
9202:
9203:
9204:
1.150 moko 9205: # Check whether --enable-shared was given.
9206: if test "${enable_shared+set}" = set; then :
9207: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 9208: case $enableval in
9209: yes) enable_shared=yes ;;
9210: no) enable_shared=no ;;
9211: *)
9212: enable_shared=no
9213: # Look at the argument we got. We use all the common list separators.
9214: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9215: for pkg in $enableval; do
9216: IFS="$lt_save_ifs"
9217: if test "X$pkg" = "X$p"; then
9218: enable_shared=yes
9219: fi
9220: done
9221: IFS="$lt_save_ifs"
9222: ;;
9223: esac
9224: else
9225: enable_shared=yes
1.150 moko 9226: fi
9227:
1.128 moko 9228:
9229:
9230:
9231:
9232:
9233:
9234:
9235:
1.150 moko 9236: # Check whether --enable-static was given.
9237: if test "${enable_static+set}" = set; then :
9238: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 9239: case $enableval in
9240: yes) enable_static=yes ;;
9241: no) enable_static=no ;;
9242: *)
9243: enable_static=no
9244: # Look at the argument we got. We use all the common list separators.
9245: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9246: for pkg in $enableval; do
9247: IFS="$lt_save_ifs"
9248: if test "X$pkg" = "X$p"; then
9249: enable_static=yes
9250: fi
9251: done
9252: IFS="$lt_save_ifs"
9253: ;;
9254: esac
9255: else
9256: enable_static=yes
1.150 moko 9257: fi
9258:
1.138 moko 9259:
9260:
9261:
9262:
9263:
9264:
9265:
1.128 moko 9266:
9267:
1.150 moko 9268: # Check whether --enable-fast-install was given.
9269: if test "${enable_fast_install+set}" = set; then :
9270: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 9271: case $enableval in
9272: yes) enable_fast_install=yes ;;
9273: no) enable_fast_install=no ;;
9274: *)
9275: enable_fast_install=no
9276: # Look at the argument we got. We use all the common list separators.
9277: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9278: for pkg in $enableval; do
9279: IFS="$lt_save_ifs"
9280: if test "X$pkg" = "X$p"; then
9281: enable_fast_install=yes
9282: fi
9283: done
9284: IFS="$lt_save_ifs"
9285: ;;
9286: esac
9287: else
9288: enable_fast_install=yes
1.150 moko 9289: fi
9290:
1.128 moko 9291:
9292:
9293:
9294:
9295:
9296:
9297:
9298:
9299:
9300:
9301: # This can be used to rebuild libtool when needed
9302: LIBTOOL_DEPS="$ltmain"
9303:
9304: # Always use our own libtool.
9305: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9306:
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: test -z "$LN_S" && LN_S="ln -s"
9337:
9338:
9339:
9340:
9341:
9342:
9343:
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351: if test -n "${ZSH_VERSION+set}" ; then
9352: setopt NO_GLOB_SUBST
9353: fi
9354:
1.150 moko 9355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9356: $as_echo_n "checking for objdir... " >&6; }
9357: if ${lt_cv_objdir+:} false; then :
9358: $as_echo_n "(cached) " >&6
1.128 moko 9359: else
9360: rm -f .libs 2>/dev/null
9361: mkdir .libs 2>/dev/null
9362: if test -d .libs; then
9363: lt_cv_objdir=.libs
9364: else
9365: # MS-DOS does not allow filenames that begin with a dot.
9366: lt_cv_objdir=_libs
9367: fi
9368: rmdir .libs 2>/dev/null
9369: fi
1.150 moko 9370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9371: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9372: objdir=$lt_cv_objdir
9373:
9374:
9375:
9376:
9377:
9378: cat >>confdefs.h <<_ACEOF
9379: #define LT_OBJDIR "$lt_cv_objdir/"
9380: _ACEOF
9381:
9382:
9383:
9384:
9385: case $host_os in
9386: aix3*)
9387: # AIX sometimes has problems with the GCC collect2 program. For some
9388: # reason, if we set the COLLECT_NAMES environment variable, the problems
9389: # vanish in a puff of smoke.
9390: if test "X${COLLECT_NAMES+set}" != Xset; then
9391: COLLECT_NAMES=
9392: export COLLECT_NAMES
9393: fi
9394: ;;
9395: esac
9396:
9397: # Global variables:
9398: ofile=libtool
9399: can_build_shared=yes
9400:
9401: # All known linkers require a `.a' archive for static linking (except MSVC,
9402: # which needs '.lib').
9403: libext=a
9404:
9405: with_gnu_ld="$lt_cv_prog_gnu_ld"
9406:
9407: old_CC="$CC"
9408: old_CFLAGS="$CFLAGS"
9409:
9410: # Set sane defaults for various variables
9411: test -z "$CC" && CC=cc
9412: test -z "$LTCC" && LTCC=$CC
9413: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9414: test -z "$LD" && LD=ld
9415: test -z "$ac_objext" && ac_objext=o
9416:
9417: for cc_temp in $compiler""; do
9418: case $cc_temp in
9419: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9420: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9421: \-*) ;;
9422: *) break;;
9423: esac
9424: done
9425: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9426:
9427:
9428: # Only perform the check for file, if the check method requires it
9429: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9430: case $deplibs_check_method in
9431: file_magic*)
9432: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9434: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9435: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9436: $as_echo_n "(cached) " >&6
1.128 moko 9437: else
9438: case $MAGIC_CMD in
9439: [\\/*] | ?:[\\/]*)
9440: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9441: ;;
9442: *)
9443: lt_save_MAGIC_CMD="$MAGIC_CMD"
9444: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9445: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9446: for ac_dir in $ac_dummy; do
9447: IFS="$lt_save_ifs"
9448: test -z "$ac_dir" && ac_dir=.
9449: if test -f $ac_dir/${ac_tool_prefix}file; then
9450: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9451: if test -n "$file_magic_test_file"; then
9452: case $deplibs_check_method in
9453: "file_magic "*)
9454: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9455: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9456: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9457: $EGREP "$file_magic_regex" > /dev/null; then
9458: :
9459: else
9460: cat <<_LT_EOF 1>&2
9461:
9462: *** Warning: the command libtool uses to detect shared libraries,
9463: *** $file_magic_cmd, produces output that libtool cannot recognize.
9464: *** The result is that libtool may fail to recognize shared libraries
9465: *** as such. This will affect the creation of libtool libraries that
9466: *** depend on shared libraries, but programs linked with such libtool
9467: *** libraries will work regardless of this problem. Nevertheless, you
9468: *** may want to report the problem to your system manager and/or to
9469: *** bug-libtool@gnu.org
9470:
9471: _LT_EOF
9472: fi ;;
9473: esac
9474: fi
9475: break
9476: fi
9477: done
9478: IFS="$lt_save_ifs"
9479: MAGIC_CMD="$lt_save_MAGIC_CMD"
9480: ;;
9481: esac
9482: fi
9483:
9484: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9485: if test -n "$MAGIC_CMD"; then
1.150 moko 9486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9487: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9488: else
1.150 moko 9489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490: $as_echo "no" >&6; }
1.128 moko 9491: fi
9492:
9493:
9494:
9495:
9496:
9497: if test -z "$lt_cv_path_MAGIC_CMD"; then
9498: if test -n "$ac_tool_prefix"; then
1.150 moko 9499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9500: $as_echo_n "checking for file... " >&6; }
9501: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9502: $as_echo_n "(cached) " >&6
1.128 moko 9503: else
9504: case $MAGIC_CMD in
9505: [\\/*] | ?:[\\/]*)
9506: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9507: ;;
9508: *)
9509: lt_save_MAGIC_CMD="$MAGIC_CMD"
9510: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9511: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9512: for ac_dir in $ac_dummy; do
9513: IFS="$lt_save_ifs"
9514: test -z "$ac_dir" && ac_dir=.
9515: if test -f $ac_dir/file; then
9516: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9517: if test -n "$file_magic_test_file"; then
9518: case $deplibs_check_method in
9519: "file_magic "*)
9520: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9521: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9522: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9523: $EGREP "$file_magic_regex" > /dev/null; then
9524: :
9525: else
9526: cat <<_LT_EOF 1>&2
9527:
9528: *** Warning: the command libtool uses to detect shared libraries,
9529: *** $file_magic_cmd, produces output that libtool cannot recognize.
9530: *** The result is that libtool may fail to recognize shared libraries
9531: *** as such. This will affect the creation of libtool libraries that
9532: *** depend on shared libraries, but programs linked with such libtool
9533: *** libraries will work regardless of this problem. Nevertheless, you
9534: *** may want to report the problem to your system manager and/or to
9535: *** bug-libtool@gnu.org
9536:
9537: _LT_EOF
9538: fi ;;
9539: esac
9540: fi
9541: break
9542: fi
9543: done
9544: IFS="$lt_save_ifs"
9545: MAGIC_CMD="$lt_save_MAGIC_CMD"
9546: ;;
9547: esac
9548: fi
9549:
9550: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9551: if test -n "$MAGIC_CMD"; then
1.150 moko 9552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9553: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9554: else
1.150 moko 9555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556: $as_echo "no" >&6; }
1.128 moko 9557: fi
9558:
9559:
9560: else
9561: MAGIC_CMD=:
9562: fi
9563: fi
9564:
9565: fi
9566: ;;
9567: esac
9568:
9569: # Use C for the default configuration in the libtool script
9570:
9571: lt_save_CC="$CC"
9572: ac_ext=c
9573: ac_cpp='$CPP $CPPFLAGS'
9574: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9577:
9578:
9579: # Source file extension for C test sources.
9580: ac_ext=c
9581:
9582: # Object file extension for compiled C test sources.
9583: objext=o
9584: objext=$objext
9585:
9586: # Code to be used in simple compile tests
9587: lt_simple_compile_test_code="int some_variable = 0;"
9588:
9589: # Code to be used in simple link tests
9590: lt_simple_link_test_code='int main(){return(0);}'
9591:
9592:
9593:
9594:
9595:
9596:
9597:
9598: # If no C compiler was specified, use CC.
9599: LTCC=${LTCC-"$CC"}
9600:
9601: # If no C compiler flags were specified, use CFLAGS.
9602: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9603:
9604: # Allow CC to be a program name with arguments.
9605: compiler=$CC
9606:
9607: # Save the default compiler, since it gets overwritten when the other
9608: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9609: compiler_DEFAULT=$CC
9610:
9611: # save warnings/boilerplate of simple test code
9612: ac_outfile=conftest.$ac_objext
9613: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9614: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9615: _lt_compiler_boilerplate=`cat conftest.err`
9616: $RM conftest*
9617:
9618: ac_outfile=conftest.$ac_objext
9619: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9620: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9621: _lt_linker_boilerplate=`cat conftest.err`
9622: $RM -r conftest*
9623:
9624:
9625: ## CAVEAT EMPTOR:
9626: ## There is no encapsulation within the following macros, do not change
9627: ## the running order or otherwise move them around unless you know exactly
9628: ## what you are doing...
9629: if test -n "$compiler"; then
9630:
9631: lt_prog_compiler_no_builtin_flag=
9632:
9633: if test "$GCC" = yes; then
9634: case $cc_basename in
9635: nvcc*)
9636: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9637: *)
9638: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9639: esac
9640:
1.150 moko 9641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9642: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9643: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9644: $as_echo_n "(cached) " >&6
1.128 moko 9645: else
9646: lt_cv_prog_compiler_rtti_exceptions=no
9647: ac_outfile=conftest.$ac_objext
9648: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9649: lt_compiler_flag="-fno-rtti -fno-exceptions"
9650: # Insert the option either (1) after the last *FLAGS variable, or
9651: # (2) before a word containing "conftest.", or (3) at the end.
9652: # Note that $ac_compile itself does not contain backslashes and begins
9653: # with a dollar sign (not a hyphen), so the echo should work correctly.
9654: # The option is referenced via a variable to avoid confusing sed.
9655: lt_compile=`echo "$ac_compile" | $SED \
9656: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9657: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9658: -e 's:$: $lt_compiler_flag:'`
9659: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9660: (eval "$lt_compile" 2>conftest.err)
9661: ac_status=$?
9662: cat conftest.err >&5
9663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664: if (exit $ac_status) && test -s "$ac_outfile"; then
9665: # The compiler can only warn and ignore the option if not recognized
9666: # So say no if there are warnings other than the usual output.
9667: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9668: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9669: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9670: lt_cv_prog_compiler_rtti_exceptions=yes
9671: fi
9672: fi
9673: $RM conftest*
9674:
9675: fi
1.150 moko 9676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9677: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9678:
9679: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9680: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9681: else
9682: :
9683: fi
9684:
9685: fi
9686:
9687:
9688:
9689:
9690:
9691:
9692: lt_prog_compiler_wl=
9693: lt_prog_compiler_pic=
9694: lt_prog_compiler_static=
9695:
9696:
9697: if test "$GCC" = yes; then
9698: lt_prog_compiler_wl='-Wl,'
9699: lt_prog_compiler_static='-static'
9700:
9701: case $host_os in
9702: aix*)
9703: # All AIX code is PIC.
9704: if test "$host_cpu" = ia64; then
9705: # AIX 5 now supports IA64 processor
9706: lt_prog_compiler_static='-Bstatic'
9707: fi
9708: ;;
9709:
9710: amigaos*)
9711: case $host_cpu in
9712: powerpc)
9713: # see comment about AmigaOS4 .so support
9714: lt_prog_compiler_pic='-fPIC'
9715: ;;
9716: m68k)
9717: # FIXME: we need at least 68020 code to build shared libraries, but
9718: # adding the `-m68020' flag to GCC prevents building anything better,
9719: # like `-m68040'.
9720: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9721: ;;
9722: esac
9723: ;;
9724:
9725: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9726: # PIC is the default for these OSes.
9727: ;;
9728:
9729: mingw* | cygwin* | pw32* | os2* | cegcc*)
9730: # This hack is so that the source file can tell whether it is being
9731: # built for inclusion in a dll (and should export symbols for example).
9732: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9733: # (--disable-auto-import) libraries
9734: lt_prog_compiler_pic='-DDLL_EXPORT'
9735: ;;
9736:
9737: darwin* | rhapsody*)
9738: # PIC is the default on this platform
9739: # Common symbols not allowed in MH_DYLIB files
9740: lt_prog_compiler_pic='-fno-common'
9741: ;;
9742:
9743: haiku*)
9744: # PIC is the default for Haiku.
9745: # The "-static" flag exists, but is broken.
9746: lt_prog_compiler_static=
9747: ;;
9748:
9749: hpux*)
9750: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9751: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9752: # sets the default TLS model and affects inlining.
9753: case $host_cpu in
9754: hppa*64*)
9755: # +Z the default
9756: ;;
9757: *)
9758: lt_prog_compiler_pic='-fPIC'
9759: ;;
9760: esac
9761: ;;
9762:
9763: interix[3-9]*)
9764: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9765: # Instead, we relocate shared libraries at runtime.
9766: ;;
9767:
9768: msdosdjgpp*)
9769: # Just because we use GCC doesn't mean we suddenly get shared libraries
9770: # on systems that don't support them.
9771: lt_prog_compiler_can_build_shared=no
9772: enable_shared=no
9773: ;;
9774:
9775: *nto* | *qnx*)
9776: # QNX uses GNU C++, but need to define -shared option too, otherwise
9777: # it will coredump.
9778: lt_prog_compiler_pic='-fPIC -shared'
9779: ;;
9780:
9781: sysv4*MP*)
9782: if test -d /usr/nec; then
9783: lt_prog_compiler_pic=-Kconform_pic
9784: fi
9785: ;;
9786:
9787: *)
9788: lt_prog_compiler_pic='-fPIC'
9789: ;;
9790: esac
9791:
9792: case $cc_basename in
9793: nvcc*) # Cuda Compiler Driver 2.2
9794: lt_prog_compiler_wl='-Xlinker '
9795: if test -n "$lt_prog_compiler_pic"; then
9796: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9797: fi
9798: ;;
9799: esac
9800: else
9801: # PORTME Check for flag to pass linker flags through the system compiler.
9802: case $host_os in
9803: aix*)
9804: lt_prog_compiler_wl='-Wl,'
9805: if test "$host_cpu" = ia64; then
9806: # AIX 5 now supports IA64 processor
9807: lt_prog_compiler_static='-Bstatic'
9808: else
9809: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9810: fi
9811: ;;
9812:
9813: mingw* | cygwin* | pw32* | os2* | cegcc*)
9814: # This hack is so that the source file can tell whether it is being
9815: # built for inclusion in a dll (and should export symbols for example).
9816: lt_prog_compiler_pic='-DDLL_EXPORT'
9817: ;;
9818:
9819: hpux9* | hpux10* | hpux11*)
9820: lt_prog_compiler_wl='-Wl,'
9821: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9822: # not for PA HP-UX.
9823: case $host_cpu in
9824: hppa*64*|ia64*)
9825: # +Z the default
9826: ;;
9827: *)
9828: lt_prog_compiler_pic='+Z'
9829: ;;
9830: esac
9831: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9832: lt_prog_compiler_static='${wl}-a ${wl}archive'
9833: ;;
9834:
9835: irix5* | irix6* | nonstopux*)
9836: lt_prog_compiler_wl='-Wl,'
9837: # PIC (with -KPIC) is the default.
9838: lt_prog_compiler_static='-non_shared'
9839: ;;
9840:
9841: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9842: case $cc_basename in
9843: # old Intel for x86_64 which still supported -KPIC.
9844: ecc*)
9845: lt_prog_compiler_wl='-Wl,'
9846: lt_prog_compiler_pic='-KPIC'
9847: lt_prog_compiler_static='-static'
9848: ;;
9849: # icc used to be incompatible with GCC.
9850: # ICC 10 doesn't accept -KPIC any more.
9851: icc* | ifort*)
9852: lt_prog_compiler_wl='-Wl,'
9853: lt_prog_compiler_pic='-fPIC'
9854: lt_prog_compiler_static='-static'
9855: ;;
9856: # Lahey Fortran 8.1.
9857: lf95*)
9858: lt_prog_compiler_wl='-Wl,'
9859: lt_prog_compiler_pic='--shared'
9860: lt_prog_compiler_static='--static'
9861: ;;
9862: nagfor*)
9863: # NAG Fortran compiler
9864: lt_prog_compiler_wl='-Wl,-Wl,,'
9865: lt_prog_compiler_pic='-PIC'
9866: lt_prog_compiler_static='-Bstatic'
9867: ;;
9868: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9869: # Portland Group compilers (*not* the Pentium gcc compiler,
9870: # which looks to be a dead project)
9871: lt_prog_compiler_wl='-Wl,'
9872: lt_prog_compiler_pic='-fpic'
9873: lt_prog_compiler_static='-Bstatic'
9874: ;;
9875: ccc*)
9876: lt_prog_compiler_wl='-Wl,'
9877: # All Alpha code is PIC.
9878: lt_prog_compiler_static='-non_shared'
9879: ;;
9880: xl* | bgxl* | bgf* | mpixl*)
9881: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9882: lt_prog_compiler_wl='-Wl,'
9883: lt_prog_compiler_pic='-qpic'
9884: lt_prog_compiler_static='-qstaticlink'
9885: ;;
9886: *)
9887: case `$CC -V 2>&1 | sed 5q` in
9888: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9889: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9890: lt_prog_compiler_pic='-KPIC'
9891: lt_prog_compiler_static='-Bstatic'
9892: lt_prog_compiler_wl=''
9893: ;;
9894: *Sun\ F* | *Sun*Fortran*)
9895: lt_prog_compiler_pic='-KPIC'
9896: lt_prog_compiler_static='-Bstatic'
9897: lt_prog_compiler_wl='-Qoption ld '
9898: ;;
9899: *Sun\ C*)
9900: # Sun C 5.9
9901: lt_prog_compiler_pic='-KPIC'
9902: lt_prog_compiler_static='-Bstatic'
9903: lt_prog_compiler_wl='-Wl,'
9904: ;;
9905: *Intel*\ [CF]*Compiler*)
9906: lt_prog_compiler_wl='-Wl,'
9907: lt_prog_compiler_pic='-fPIC'
9908: lt_prog_compiler_static='-static'
9909: ;;
9910: *Portland\ Group*)
9911: lt_prog_compiler_wl='-Wl,'
9912: lt_prog_compiler_pic='-fpic'
9913: lt_prog_compiler_static='-Bstatic'
9914: ;;
9915: esac
9916: ;;
9917: esac
9918: ;;
9919:
9920: newsos6)
9921: lt_prog_compiler_pic='-KPIC'
9922: lt_prog_compiler_static='-Bstatic'
9923: ;;
9924:
9925: *nto* | *qnx*)
9926: # QNX uses GNU C++, but need to define -shared option too, otherwise
9927: # it will coredump.
9928: lt_prog_compiler_pic='-fPIC -shared'
9929: ;;
9930:
9931: osf3* | osf4* | osf5*)
9932: lt_prog_compiler_wl='-Wl,'
9933: # All OSF/1 code is PIC.
9934: lt_prog_compiler_static='-non_shared'
9935: ;;
9936:
9937: rdos*)
9938: lt_prog_compiler_static='-non_shared'
9939: ;;
9940:
9941: solaris*)
9942: lt_prog_compiler_pic='-KPIC'
9943: lt_prog_compiler_static='-Bstatic'
9944: case $cc_basename in
9945: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9946: lt_prog_compiler_wl='-Qoption ld ';;
9947: *)
9948: lt_prog_compiler_wl='-Wl,';;
9949: esac
9950: ;;
9951:
9952: sunos4*)
9953: lt_prog_compiler_wl='-Qoption ld '
9954: lt_prog_compiler_pic='-PIC'
9955: lt_prog_compiler_static='-Bstatic'
9956: ;;
9957:
9958: sysv4 | sysv4.2uw2* | sysv4.3*)
9959: lt_prog_compiler_wl='-Wl,'
9960: lt_prog_compiler_pic='-KPIC'
9961: lt_prog_compiler_static='-Bstatic'
9962: ;;
9963:
9964: sysv4*MP*)
9965: if test -d /usr/nec ;then
9966: lt_prog_compiler_pic='-Kconform_pic'
9967: lt_prog_compiler_static='-Bstatic'
9968: fi
9969: ;;
9970:
9971: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9972: lt_prog_compiler_wl='-Wl,'
9973: lt_prog_compiler_pic='-KPIC'
9974: lt_prog_compiler_static='-Bstatic'
9975: ;;
9976:
9977: unicos*)
9978: lt_prog_compiler_wl='-Wl,'
9979: lt_prog_compiler_can_build_shared=no
9980: ;;
9981:
9982: uts4*)
9983: lt_prog_compiler_pic='-pic'
9984: lt_prog_compiler_static='-Bstatic'
9985: ;;
9986:
9987: *)
9988: lt_prog_compiler_can_build_shared=no
9989: ;;
9990: esac
9991: fi
9992:
9993: case $host_os in
9994: # For platforms which do not support PIC, -DPIC is meaningless:
9995: *djgpp*)
9996: lt_prog_compiler_pic=
9997: ;;
9998: *)
9999: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10000: ;;
10001: esac
10002:
1.150 moko 10003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10004: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10005: if ${lt_cv_prog_compiler_pic+:} false; then :
10006: $as_echo_n "(cached) " >&6
1.128 moko 10007: else
10008: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10009: fi
1.150 moko 10010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10011: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 10012: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10013:
10014: #
10015: # Check to make sure the PIC flag actually works.
10016: #
10017: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 10018: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10019: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10020: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10021: $as_echo_n "(cached) " >&6
1.128 moko 10022: else
10023: lt_cv_prog_compiler_pic_works=no
10024: ac_outfile=conftest.$ac_objext
10025: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10026: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10027: # Insert the option either (1) after the last *FLAGS variable, or
10028: # (2) before a word containing "conftest.", or (3) at the end.
10029: # Note that $ac_compile itself does not contain backslashes and begins
10030: # with a dollar sign (not a hyphen), so the echo should work correctly.
10031: # The option is referenced via a variable to avoid confusing sed.
10032: lt_compile=`echo "$ac_compile" | $SED \
10033: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10034: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10035: -e 's:$: $lt_compiler_flag:'`
10036: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10037: (eval "$lt_compile" 2>conftest.err)
10038: ac_status=$?
10039: cat conftest.err >&5
10040: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041: if (exit $ac_status) && test -s "$ac_outfile"; then
10042: # The compiler can only warn and ignore the option if not recognized
10043: # So say no if there are warnings other than the usual output.
10044: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10045: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10046: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10047: lt_cv_prog_compiler_pic_works=yes
10048: fi
10049: fi
10050: $RM conftest*
10051:
10052: fi
1.150 moko 10053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10054: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 10055:
10056: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10057: case $lt_prog_compiler_pic in
10058: "" | " "*) ;;
10059: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10060: esac
10061: else
10062: lt_prog_compiler_pic=
10063: lt_prog_compiler_can_build_shared=no
10064: fi
10065:
10066: fi
10067:
10068:
10069:
10070:
10071:
10072:
10073:
10074:
10075:
10076:
10077:
10078: #
10079: # Check to make sure the static flag actually works.
10080: #
10081: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 10082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10083: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10084: if ${lt_cv_prog_compiler_static_works+:} false; then :
10085: $as_echo_n "(cached) " >&6
1.128 moko 10086: else
10087: lt_cv_prog_compiler_static_works=no
10088: save_LDFLAGS="$LDFLAGS"
10089: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10090: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10091: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10092: # The linker can only warn and ignore the option if not recognized
10093: # So say no if there are warnings
10094: if test -s conftest.err; then
10095: # Append any errors to the config.log.
10096: cat conftest.err 1>&5
10097: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10098: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10099: if diff conftest.exp conftest.er2 >/dev/null; then
10100: lt_cv_prog_compiler_static_works=yes
10101: fi
10102: else
10103: lt_cv_prog_compiler_static_works=yes
10104: fi
10105: fi
10106: $RM -r conftest*
10107: LDFLAGS="$save_LDFLAGS"
10108:
10109: fi
1.150 moko 10110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10111: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 10112:
10113: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10114: :
10115: else
10116: lt_prog_compiler_static=
10117: fi
10118:
10119:
10120:
10121:
10122:
10123:
10124:
1.150 moko 10125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10126: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10127: if ${lt_cv_prog_compiler_c_o+:} false; then :
10128: $as_echo_n "(cached) " >&6
1.128 moko 10129: else
10130: lt_cv_prog_compiler_c_o=no
10131: $RM -r conftest 2>/dev/null
10132: mkdir conftest
10133: cd conftest
10134: mkdir out
10135: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10136:
10137: lt_compiler_flag="-o out/conftest2.$ac_objext"
10138: # Insert the option either (1) after the last *FLAGS variable, or
10139: # (2) before a word containing "conftest.", or (3) at the end.
10140: # Note that $ac_compile itself does not contain backslashes and begins
10141: # with a dollar sign (not a hyphen), so the echo should work correctly.
10142: lt_compile=`echo "$ac_compile" | $SED \
10143: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10144: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10145: -e 's:$: $lt_compiler_flag:'`
10146: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10147: (eval "$lt_compile" 2>out/conftest.err)
10148: ac_status=$?
10149: cat out/conftest.err >&5
10150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10152: then
10153: # The compiler can only warn and ignore the option if not recognized
10154: # So say no if there are warnings
10155: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10156: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10157: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10158: lt_cv_prog_compiler_c_o=yes
10159: fi
10160: fi
10161: chmod u+w . 2>&5
10162: $RM conftest*
10163: # SGI C++ compiler will create directory out/ii_files/ for
10164: # template instantiation
10165: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10166: $RM out/* && rmdir out
10167: cd ..
10168: $RM -r conftest
10169: $RM conftest*
10170:
10171: fi
1.150 moko 10172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10173: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10174:
10175:
10176:
10177:
10178:
10179:
1.150 moko 10180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10181: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10182: if ${lt_cv_prog_compiler_c_o+:} false; then :
10183: $as_echo_n "(cached) " >&6
1.128 moko 10184: else
10185: lt_cv_prog_compiler_c_o=no
10186: $RM -r conftest 2>/dev/null
10187: mkdir conftest
10188: cd conftest
10189: mkdir out
10190: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10191:
10192: lt_compiler_flag="-o out/conftest2.$ac_objext"
10193: # Insert the option either (1) after the last *FLAGS variable, or
10194: # (2) before a word containing "conftest.", or (3) at the end.
10195: # Note that $ac_compile itself does not contain backslashes and begins
10196: # with a dollar sign (not a hyphen), so the echo should work correctly.
10197: lt_compile=`echo "$ac_compile" | $SED \
10198: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10199: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10200: -e 's:$: $lt_compiler_flag:'`
10201: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10202: (eval "$lt_compile" 2>out/conftest.err)
10203: ac_status=$?
10204: cat out/conftest.err >&5
10205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10207: then
10208: # The compiler can only warn and ignore the option if not recognized
10209: # So say no if there are warnings
10210: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10211: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10212: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10213: lt_cv_prog_compiler_c_o=yes
10214: fi
10215: fi
10216: chmod u+w . 2>&5
10217: $RM conftest*
10218: # SGI C++ compiler will create directory out/ii_files/ for
10219: # template instantiation
10220: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10221: $RM out/* && rmdir out
10222: cd ..
10223: $RM -r conftest
10224: $RM conftest*
10225:
10226: fi
1.150 moko 10227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10228: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10229:
10230:
10231:
10232:
10233: hard_links="nottested"
10234: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10235: # do not overwrite the value of need_locks provided by the user
1.150 moko 10236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10237: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 10238: hard_links=yes
10239: $RM conftest*
10240: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10241: touch conftest.a
10242: ln conftest.a conftest.b 2>&5 || hard_links=no
10243: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 10244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10245: $as_echo "$hard_links" >&6; }
1.128 moko 10246: if test "$hard_links" = no; then
1.150 moko 10247: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10248: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 10249: need_locks=warn
10250: fi
10251: else
10252: need_locks=no
10253: fi
10254:
10255:
10256:
10257:
10258:
10259:
1.150 moko 10260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10261: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 10262:
10263: runpath_var=
10264: allow_undefined_flag=
10265: always_export_symbols=no
10266: archive_cmds=
10267: archive_expsym_cmds=
10268: compiler_needs_object=no
10269: enable_shared_with_static_runtimes=no
10270: export_dynamic_flag_spec=
10271: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10272: hardcode_automatic=no
10273: hardcode_direct=no
10274: hardcode_direct_absolute=no
10275: hardcode_libdir_flag_spec=
10276: hardcode_libdir_separator=
10277: hardcode_minus_L=no
10278: hardcode_shlibpath_var=unsupported
10279: inherit_rpath=no
10280: link_all_deplibs=unknown
10281: module_cmds=
10282: module_expsym_cmds=
10283: old_archive_from_new_cmds=
10284: old_archive_from_expsyms_cmds=
10285: thread_safe_flag_spec=
10286: whole_archive_flag_spec=
10287: # include_expsyms should be a list of space-separated symbols to be *always*
10288: # included in the symbol list
10289: include_expsyms=
10290: # exclude_expsyms can be an extended regexp of symbols to exclude
10291: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10292: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10293: # as well as any symbol that contains `d'.
10294: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10295: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10296: # platforms (ab)use it in PIC code, but their linkers get confused if
10297: # the symbol is explicitly referenced. Since portable code cannot
10298: # rely on this symbol name, it's probably fine to never include it in
10299: # preloaded symbol tables.
10300: # Exclude shared library initialization/finalization symbols.
10301: extract_expsyms_cmds=
10302:
10303: case $host_os in
10304: cygwin* | mingw* | pw32* | cegcc*)
10305: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10306: # When not using gcc, we currently assume that we are using
10307: # Microsoft Visual C++.
10308: if test "$GCC" != yes; then
10309: with_gnu_ld=no
10310: fi
10311: ;;
10312: interix*)
10313: # we just hope/assume this is gcc and not c89 (= MSVC++)
10314: with_gnu_ld=yes
10315: ;;
10316: openbsd*)
10317: with_gnu_ld=no
10318: ;;
10319: esac
10320:
10321: ld_shlibs=yes
10322:
10323: # On some targets, GNU ld is compatible enough with the native linker
10324: # that we're better off using the native interface for both.
10325: lt_use_gnu_ld_interface=no
10326: if test "$with_gnu_ld" = yes; then
10327: case $host_os in
10328: aix*)
10329: # The AIX port of GNU ld has always aspired to compatibility
10330: # with the native linker. However, as the warning in the GNU ld
10331: # block says, versions before 2.19.5* couldn't really create working
10332: # shared libraries, regardless of the interface used.
10333: case `$LD -v 2>&1` in
10334: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10335: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10336: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10337: *)
10338: lt_use_gnu_ld_interface=yes
10339: ;;
10340: esac
10341: ;;
10342: *)
10343: lt_use_gnu_ld_interface=yes
10344: ;;
10345: esac
10346: fi
10347:
10348: if test "$lt_use_gnu_ld_interface" = yes; then
10349: # If archive_cmds runs LD, not CC, wlarc should be empty
10350: wlarc='${wl}'
10351:
10352: # Set some defaults for GNU ld with shared library support. These
10353: # are reset later if shared libraries are not supported. Putting them
10354: # here allows them to be overridden if necessary.
10355: runpath_var=LD_RUN_PATH
10356: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10357: export_dynamic_flag_spec='${wl}--export-dynamic'
10358: # ancient GNU ld didn't support --whole-archive et. al.
10359: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10360: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10361: else
10362: whole_archive_flag_spec=
10363: fi
10364: supports_anon_versioning=no
10365: case `$LD -v 2>&1` in
10366: *GNU\ gold*) supports_anon_versioning=yes ;;
10367: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10368: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10369: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10370: *\ 2.11.*) ;; # other 2.11 versions
10371: *) supports_anon_versioning=yes ;;
10372: esac
10373:
10374: # See if GNU ld supports shared libraries.
10375: case $host_os in
10376: aix[3-9]*)
10377: # On AIX/PPC, the GNU linker is very broken
10378: if test "$host_cpu" != ia64; then
10379: ld_shlibs=no
10380: cat <<_LT_EOF 1>&2
10381:
10382: *** Warning: the GNU linker, at least up to release 2.19, is reported
10383: *** to be unable to reliably create shared libraries on AIX.
10384: *** Therefore, libtool is disabling shared libraries support. If you
10385: *** really care for shared libraries, you may want to install binutils
10386: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10387: *** You will then need to restart the configuration process.
10388:
10389: _LT_EOF
10390: fi
10391: ;;
10392:
10393: amigaos*)
10394: case $host_cpu in
10395: powerpc)
10396: # see comment about AmigaOS4 .so support
10397: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10398: archive_expsym_cmds=''
10399: ;;
10400: m68k)
10401: 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)'
10402: hardcode_libdir_flag_spec='-L$libdir'
10403: hardcode_minus_L=yes
10404: ;;
10405: esac
10406: ;;
10407:
10408: beos*)
10409: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10410: allow_undefined_flag=unsupported
10411: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10412: # support --undefined. This deserves some investigation. FIXME
10413: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10414: else
10415: ld_shlibs=no
10416: fi
10417: ;;
10418:
10419: cygwin* | mingw* | pw32* | cegcc*)
10420: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10421: # as there is no search path for DLLs.
10422: hardcode_libdir_flag_spec='-L$libdir'
10423: export_dynamic_flag_spec='${wl}--export-all-symbols'
10424: allow_undefined_flag=unsupported
10425: always_export_symbols=no
10426: enable_shared_with_static_runtimes=yes
10427: 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'
10428: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10429:
10430: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10431: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10432: # If the export-symbols file already is a .def file (1st line
10433: # is EXPORTS), use it as is; otherwise, prepend...
10434: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10435: cp $export_symbols $output_objdir/$soname.def;
10436: else
10437: echo EXPORTS > $output_objdir/$soname.def;
10438: cat $export_symbols >> $output_objdir/$soname.def;
10439: fi~
10440: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10441: else
10442: ld_shlibs=no
10443: fi
10444: ;;
10445:
10446: haiku*)
10447: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448: link_all_deplibs=yes
10449: ;;
10450:
10451: interix[3-9]*)
10452: hardcode_direct=no
10453: hardcode_shlibpath_var=no
10454: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10455: export_dynamic_flag_spec='${wl}-E'
10456: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10457: # Instead, shared libraries are loaded at an image base (0x10000000 by
10458: # default) and relocated if they conflict, which is a slow very memory
10459: # consuming and fragmenting process. To avoid this, we pick a random,
10460: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10461: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10462: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10463: 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'
10464: ;;
10465:
10466: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10467: tmp_diet=no
10468: if test "$host_os" = linux-dietlibc; then
10469: case $cc_basename in
10470: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10471: esac
10472: fi
10473: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10474: && test "$tmp_diet" = no
10475: then
10476: tmp_addflag=' $pic_flag'
10477: tmp_sharedflag='-shared'
10478: case $cc_basename,$host_cpu in
10479: pgcc*) # Portland Group C compiler
10480: 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'
10481: tmp_addflag=' $pic_flag'
10482: ;;
10483: pgf77* | pgf90* | pgf95* | pgfortran*)
10484: # Portland Group f77 and f90 compilers
10485: 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'
10486: tmp_addflag=' $pic_flag -Mnomain' ;;
10487: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10488: tmp_addflag=' -i_dynamic' ;;
10489: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10490: tmp_addflag=' -i_dynamic -nofor_main' ;;
10491: ifc* | ifort*) # Intel Fortran compiler
10492: tmp_addflag=' -nofor_main' ;;
10493: lf95*) # Lahey Fortran 8.1
10494: whole_archive_flag_spec=
10495: tmp_sharedflag='--shared' ;;
10496: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10497: tmp_sharedflag='-qmkshrobj'
10498: tmp_addflag= ;;
10499: nvcc*) # Cuda Compiler Driver 2.2
10500: 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'
10501: compiler_needs_object=yes
10502: ;;
10503: esac
10504: case `$CC -V 2>&1 | sed 5q` in
10505: *Sun\ C*) # Sun C 5.9
10506: 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'
10507: compiler_needs_object=yes
10508: tmp_sharedflag='-G' ;;
10509: *Sun\ F*) # Sun Fortran 8.3
10510: tmp_sharedflag='-G' ;;
10511: esac
10512: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10513:
10514: if test "x$supports_anon_versioning" = xyes; then
10515: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10516: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10517: echo "local: *; };" >> $output_objdir/$libname.ver~
10518: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10519: fi
10520:
10521: case $cc_basename in
10522: xlf* | bgf* | bgxlf* | mpixlf*)
10523: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10524: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10525: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10526: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10527: if test "x$supports_anon_versioning" = xyes; then
10528: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10529: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10530: echo "local: *; };" >> $output_objdir/$libname.ver~
10531: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10532: fi
10533: ;;
10534: esac
10535: else
10536: ld_shlibs=no
10537: fi
10538: ;;
10539:
10540: netbsd*)
10541: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10542: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10543: wlarc=
10544: else
10545: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10546: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10547: fi
10548: ;;
10549:
10550: solaris*)
10551: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10552: ld_shlibs=no
10553: cat <<_LT_EOF 1>&2
10554:
10555: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10556: *** create shared libraries on Solaris systems. Therefore, libtool
10557: *** is disabling shared libraries support. We urge you to upgrade GNU
10558: *** binutils to release 2.9.1 or newer. Another option is to modify
10559: *** your PATH or compiler configuration so that the native linker is
10560: *** used, and then restart.
10561:
10562: _LT_EOF
10563: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10564: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10565: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10566: else
10567: ld_shlibs=no
10568: fi
10569: ;;
10570:
10571: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10572: case `$LD -v 2>&1` in
10573: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10574: ld_shlibs=no
10575: cat <<_LT_EOF 1>&2
10576:
10577: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10578: *** reliably create shared libraries on SCO systems. Therefore, libtool
10579: *** is disabling shared libraries support. We urge you to upgrade GNU
10580: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10581: *** your PATH or compiler configuration so that the native linker is
10582: *** used, and then restart.
10583:
10584: _LT_EOF
10585: ;;
10586: *)
10587: # For security reasons, it is highly recommended that you always
10588: # use absolute paths for naming shared libraries, and exclude the
10589: # DT_RUNPATH tag from executables and libraries. But doing so
10590: # requires that you compile everything twice, which is a pain.
10591: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10592: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10593: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10595: else
10596: ld_shlibs=no
10597: fi
10598: ;;
10599: esac
10600: ;;
10601:
10602: sunos4*)
10603: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10604: wlarc=
10605: hardcode_direct=yes
10606: hardcode_shlibpath_var=no
10607: ;;
10608:
10609: *)
10610: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10611: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10612: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10613: else
10614: ld_shlibs=no
10615: fi
10616: ;;
10617: esac
10618:
10619: if test "$ld_shlibs" = no; then
10620: runpath_var=
10621: hardcode_libdir_flag_spec=
10622: export_dynamic_flag_spec=
10623: whole_archive_flag_spec=
10624: fi
10625: else
10626: # PORTME fill in a description of your system's linker (not GNU ld)
10627: case $host_os in
10628: aix3*)
10629: allow_undefined_flag=unsupported
10630: always_export_symbols=yes
10631: 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'
10632: # Note: this linker hardcodes the directories in LIBPATH if there
10633: # are no directories specified by -L.
10634: hardcode_minus_L=yes
10635: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10636: # Neither direct hardcoding nor static linking is supported with a
10637: # broken collect2.
10638: hardcode_direct=unsupported
10639: fi
10640: ;;
10641:
10642: aix[4-9]*)
10643: if test "$host_cpu" = ia64; then
10644: # On IA64, the linker does run time linking by default, so we don't
10645: # have to do anything special.
10646: aix_use_runtimelinking=no
10647: exp_sym_flag='-Bexport'
10648: no_entry_flag=""
10649: else
10650: # If we're using GNU nm, then we don't want the "-C" option.
10651: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10652: # Also, AIX nm treats weak defined symbols like other global
10653: # defined symbols, whereas GNU nm marks them as "W".
10654: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10655: 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'
10656: else
10657: 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'
10658: fi
10659: aix_use_runtimelinking=no
10660:
10661: # Test if we are trying to use run time linking or normal
10662: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10663: # need to do runtime linking.
10664: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10665: for ld_flag in $LDFLAGS; do
10666: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10667: aix_use_runtimelinking=yes
10668: break
10669: fi
10670: done
10671: ;;
10672: esac
10673:
10674: exp_sym_flag='-bexport'
10675: no_entry_flag='-bnoentry'
10676: fi
10677:
10678: # When large executables or shared objects are built, AIX ld can
10679: # have problems creating the table of contents. If linking a library
10680: # or program results in "error TOC overflow" add -mminimal-toc to
10681: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10682: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10683:
10684: archive_cmds=''
10685: hardcode_direct=yes
10686: hardcode_direct_absolute=yes
10687: hardcode_libdir_separator=':'
10688: link_all_deplibs=yes
10689: file_list_spec='${wl}-f,'
10690:
10691: if test "$GCC" = yes; then
10692: case $host_os in aix4.[012]|aix4.[012].*)
10693: # We only want to do this on AIX 4.2 and lower, the check
10694: # below for broken collect2 doesn't work under 4.3+
10695: collect2name=`${CC} -print-prog-name=collect2`
10696: if test -f "$collect2name" &&
10697: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10698: then
10699: # We have reworked collect2
10700: :
10701: else
10702: # We have old collect2
10703: hardcode_direct=unsupported
10704: # It fails to find uninstalled libraries when the uninstalled
10705: # path is not listed in the libpath. Setting hardcode_minus_L
10706: # to unsupported forces relinking
10707: hardcode_minus_L=yes
10708: hardcode_libdir_flag_spec='-L$libdir'
10709: hardcode_libdir_separator=
10710: fi
10711: ;;
10712: esac
10713: shared_flag='-shared'
10714: if test "$aix_use_runtimelinking" = yes; then
10715: shared_flag="$shared_flag "'${wl}-G'
10716: fi
10717: else
10718: # not using gcc
10719: if test "$host_cpu" = ia64; then
10720: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10721: # chokes on -Wl,-G. The following line is correct:
10722: shared_flag='-G'
10723: else
10724: if test "$aix_use_runtimelinking" = yes; then
10725: shared_flag='${wl}-G'
10726: else
10727: shared_flag='${wl}-bM:SRE'
10728: fi
10729: fi
10730: fi
10731:
10732: export_dynamic_flag_spec='${wl}-bexpall'
10733: # It seems that -bexpall does not export symbols beginning with
10734: # underscore (_), so it is better to generate a list of symbols to export.
10735: always_export_symbols=yes
10736: if test "$aix_use_runtimelinking" = yes; then
10737: # Warning - without using the other runtime loading flags (-brtl),
10738: # -berok will link without error, but may produce a broken library.
10739: allow_undefined_flag='-berok'
10740: # Determine the default libpath from the value encoded in an
10741: # empty executable.
10742: if test "${lt_cv_aix_libpath+set}" = set; then
10743: aix_libpath=$lt_cv_aix_libpath
10744: else
1.150 moko 10745: if ${lt_cv_aix_libpath_+:} false; then :
10746: $as_echo_n "(cached) " >&6
1.128 moko 10747: else
1.150 moko 10748: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10749: /* end confdefs.h. */
10750:
10751: int
10752: main ()
10753: {
10754:
10755: ;
10756: return 0;
10757: }
10758: _ACEOF
1.150 moko 10759: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10760:
10761: lt_aix_libpath_sed='
10762: /Import File Strings/,/^$/ {
10763: /^0/ {
10764: s/^0 *\([^ ]*\) *$/\1/
10765: p
10766: }
10767: }'
10768: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10769: # Check for a 64-bit object if we didn't find anything.
10770: if test -z "$lt_cv_aix_libpath_"; then
10771: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10772: fi
10773: fi
1.150 moko 10774: rm -f core conftest.err conftest.$ac_objext \
10775: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10776: if test -z "$lt_cv_aix_libpath_"; then
10777: lt_cv_aix_libpath_="/usr/lib:/lib"
10778: fi
10779:
10780: fi
10781:
10782: aix_libpath=$lt_cv_aix_libpath_
10783: fi
10784:
10785: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10786: 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"
10787: else
10788: if test "$host_cpu" = ia64; then
10789: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10790: allow_undefined_flag="-z nodefs"
10791: 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"
10792: else
10793: # Determine the default libpath from the value encoded in an
10794: # empty executable.
10795: if test "${lt_cv_aix_libpath+set}" = set; then
10796: aix_libpath=$lt_cv_aix_libpath
10797: else
1.150 moko 10798: if ${lt_cv_aix_libpath_+:} false; then :
10799: $as_echo_n "(cached) " >&6
1.128 moko 10800: else
1.150 moko 10801: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10802: /* end confdefs.h. */
10803:
10804: int
10805: main ()
10806: {
10807:
10808: ;
10809: return 0;
10810: }
10811: _ACEOF
1.150 moko 10812: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10813:
10814: lt_aix_libpath_sed='
10815: /Import File Strings/,/^$/ {
10816: /^0/ {
10817: s/^0 *\([^ ]*\) *$/\1/
10818: p
10819: }
10820: }'
10821: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10822: # Check for a 64-bit object if we didn't find anything.
10823: if test -z "$lt_cv_aix_libpath_"; then
10824: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10825: fi
10826: fi
1.150 moko 10827: rm -f core conftest.err conftest.$ac_objext \
10828: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10829: if test -z "$lt_cv_aix_libpath_"; then
10830: lt_cv_aix_libpath_="/usr/lib:/lib"
10831: fi
10832:
10833: fi
10834:
10835: aix_libpath=$lt_cv_aix_libpath_
10836: fi
10837:
10838: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10839: # Warning - without using the other run time loading flags,
10840: # -berok will link without error, but may produce a broken library.
10841: no_undefined_flag=' ${wl}-bernotok'
10842: allow_undefined_flag=' ${wl}-berok'
10843: if test "$with_gnu_ld" = yes; then
10844: # We only use this code for GNU lds that support --whole-archive.
10845: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10846: else
10847: # Exported symbols can be pulled into shared objects from archives
10848: whole_archive_flag_spec='$convenience'
10849: fi
10850: archive_cmds_need_lc=yes
10851: # This is similar to how AIX traditionally builds its shared libraries.
10852: 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'
10853: fi
10854: fi
10855: ;;
10856:
10857: amigaos*)
10858: case $host_cpu in
10859: powerpc)
10860: # see comment about AmigaOS4 .so support
10861: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10862: archive_expsym_cmds=''
10863: ;;
10864: m68k)
10865: 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)'
10866: hardcode_libdir_flag_spec='-L$libdir'
10867: hardcode_minus_L=yes
10868: ;;
10869: esac
10870: ;;
10871:
10872: bsdi[45]*)
10873: export_dynamic_flag_spec=-rdynamic
10874: ;;
10875:
10876: cygwin* | mingw* | pw32* | cegcc*)
10877: # When not using gcc, we currently assume that we are using
10878: # Microsoft Visual C++.
10879: # hardcode_libdir_flag_spec is actually meaningless, as there is
10880: # no search path for DLLs.
10881: case $cc_basename in
10882: cl*)
10883: # Native MSVC
10884: hardcode_libdir_flag_spec=' '
10885: allow_undefined_flag=unsupported
10886: always_export_symbols=yes
10887: file_list_spec='@'
10888: # Tell ltmain to make .lib files, not .a files.
10889: libext=lib
10890: # Tell ltmain to make .dll files, not .so files.
10891: shrext_cmds=".dll"
10892: # FIXME: Setting linknames here is a bad hack.
10893: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10894: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10895: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10896: else
10897: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10898: fi~
10899: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10900: linknames='
10901: # The linker will not automatically build a static lib if we build a DLL.
10902: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10903: enable_shared_with_static_runtimes=yes
10904: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10905: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10906: # Don't use ranlib
10907: old_postinstall_cmds='chmod 644 $oldlib'
10908: postlink_cmds='lt_outputfile="@OUTPUT@"~
10909: lt_tool_outputfile="@TOOL_OUTPUT@"~
10910: case $lt_outputfile in
10911: *.exe|*.EXE) ;;
10912: *)
10913: lt_outputfile="$lt_outputfile.exe"
10914: lt_tool_outputfile="$lt_tool_outputfile.exe"
10915: ;;
10916: esac~
10917: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10918: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10919: $RM "$lt_outputfile.manifest";
10920: fi'
10921: ;;
10922: *)
10923: # Assume MSVC wrapper
10924: hardcode_libdir_flag_spec=' '
10925: allow_undefined_flag=unsupported
10926: # Tell ltmain to make .lib files, not .a files.
10927: libext=lib
10928: # Tell ltmain to make .dll files, not .so files.
10929: shrext_cmds=".dll"
10930: # FIXME: Setting linknames here is a bad hack.
10931: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10932: # The linker will automatically build a .lib file if we build a DLL.
10933: old_archive_from_new_cmds='true'
10934: # FIXME: Should let the user specify the lib program.
10935: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10936: enable_shared_with_static_runtimes=yes
10937: ;;
10938: esac
10939: ;;
10940:
10941: darwin* | rhapsody*)
10942:
10943:
10944: archive_cmds_need_lc=no
10945: hardcode_direct=no
10946: hardcode_automatic=yes
10947: hardcode_shlibpath_var=unsupported
10948: if test "$lt_cv_ld_force_load" = "yes"; then
10949: 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\"`'
10950:
10951: else
10952: whole_archive_flag_spec=''
10953: fi
10954: link_all_deplibs=yes
10955: allow_undefined_flag="$_lt_dar_allow_undefined"
10956: case $cc_basename in
10957: ifort*) _lt_dar_can_shared=yes ;;
10958: *) _lt_dar_can_shared=$GCC ;;
10959: esac
10960: if test "$_lt_dar_can_shared" = "yes"; then
10961: output_verbose_link_cmd=func_echo_all
10962: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10963: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10964: 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}"
10965: 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}"
10966:
10967: else
10968: ld_shlibs=no
10969: fi
10970:
10971: ;;
10972:
10973: dgux*)
10974: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975: hardcode_libdir_flag_spec='-L$libdir'
10976: hardcode_shlibpath_var=no
10977: ;;
10978:
10979: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10980: # support. Future versions do this automatically, but an explicit c++rt0.o
10981: # does not break anything, and helps significantly (at the cost of a little
10982: # extra space).
10983: freebsd2.2*)
10984: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10985: hardcode_libdir_flag_spec='-R$libdir'
10986: hardcode_direct=yes
10987: hardcode_shlibpath_var=no
10988: ;;
10989:
10990: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10991: freebsd2.*)
10992: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10993: hardcode_direct=yes
10994: hardcode_minus_L=yes
10995: hardcode_shlibpath_var=no
10996: ;;
10997:
10998: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10999: freebsd* | dragonfly*)
11000: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11001: hardcode_libdir_flag_spec='-R$libdir'
11002: hardcode_direct=yes
11003: hardcode_shlibpath_var=no
11004: ;;
11005:
11006: hpux9*)
11007: if test "$GCC" = yes; then
11008: 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'
11009: else
11010: 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'
11011: fi
11012: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11013: hardcode_libdir_separator=:
11014: hardcode_direct=yes
11015:
11016: # hardcode_minus_L: Not really in the search PATH,
11017: # but as the default location of the library.
11018: hardcode_minus_L=yes
11019: export_dynamic_flag_spec='${wl}-E'
11020: ;;
11021:
11022: hpux10*)
11023: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11024: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11025: else
11026: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11027: fi
11028: if test "$with_gnu_ld" = no; then
11029: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11030: hardcode_libdir_separator=:
11031: hardcode_direct=yes
11032: hardcode_direct_absolute=yes
11033: export_dynamic_flag_spec='${wl}-E'
11034: # hardcode_minus_L: Not really in the search PATH,
11035: # but as the default location of the library.
11036: hardcode_minus_L=yes
11037: fi
11038: ;;
11039:
11040: hpux11*)
11041: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11042: case $host_cpu in
11043: hppa*64*)
11044: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11045: ;;
11046: ia64*)
11047: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11048: ;;
11049: *)
11050: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11051: ;;
11052: esac
11053: else
11054: case $host_cpu in
11055: hppa*64*)
11056: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11057: ;;
11058: ia64*)
11059: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11060: ;;
11061: *)
11062:
11063: # Older versions of the 11.00 compiler do not understand -b yet
11064: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 11065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11066: $as_echo_n "checking if $CC understands -b... " >&6; }
11067: if ${lt_cv_prog_compiler__b+:} false; then :
11068: $as_echo_n "(cached) " >&6
1.128 moko 11069: else
11070: lt_cv_prog_compiler__b=no
11071: save_LDFLAGS="$LDFLAGS"
11072: LDFLAGS="$LDFLAGS -b"
11073: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11074: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11075: # The linker can only warn and ignore the option if not recognized
11076: # So say no if there are warnings
11077: if test -s conftest.err; then
11078: # Append any errors to the config.log.
11079: cat conftest.err 1>&5
11080: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11081: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11082: if diff conftest.exp conftest.er2 >/dev/null; then
11083: lt_cv_prog_compiler__b=yes
11084: fi
11085: else
11086: lt_cv_prog_compiler__b=yes
11087: fi
11088: fi
11089: $RM -r conftest*
11090: LDFLAGS="$save_LDFLAGS"
11091:
11092: fi
1.150 moko 11093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11094: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 11095:
11096: if test x"$lt_cv_prog_compiler__b" = xyes; then
11097: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11098: else
11099: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11100: fi
11101:
11102: ;;
11103: esac
11104: fi
11105: if test "$with_gnu_ld" = no; then
11106: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11107: hardcode_libdir_separator=:
11108:
11109: case $host_cpu in
11110: hppa*64*|ia64*)
11111: hardcode_direct=no
11112: hardcode_shlibpath_var=no
11113: ;;
11114: *)
11115: hardcode_direct=yes
11116: hardcode_direct_absolute=yes
11117: export_dynamic_flag_spec='${wl}-E'
11118:
11119: # hardcode_minus_L: Not really in the search PATH,
11120: # but as the default location of the library.
11121: hardcode_minus_L=yes
11122: ;;
11123: esac
11124: fi
11125: ;;
11126:
11127: irix5* | irix6* | nonstopux*)
11128: if test "$GCC" = yes; then
11129: 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'
11130: # Try to use the -exported_symbol ld option, if it does not
11131: # work, assume that -exports_file does not work either and
11132: # implicitly export all symbols.
11133: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 11134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11135: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11136: if ${lt_cv_irix_exported_symbol+:} false; then :
11137: $as_echo_n "(cached) " >&6
1.128 moko 11138: else
11139: save_LDFLAGS="$LDFLAGS"
11140: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 11141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11142: /* end confdefs.h. */
11143: int foo (void) { return 0; }
11144: _ACEOF
1.150 moko 11145: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 11146: lt_cv_irix_exported_symbol=yes
11147: else
1.150 moko 11148: lt_cv_irix_exported_symbol=no
1.128 moko 11149: fi
1.150 moko 11150: rm -f core conftest.err conftest.$ac_objext \
11151: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11152: LDFLAGS="$save_LDFLAGS"
11153: fi
1.150 moko 11154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11155: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 11156: if test "$lt_cv_irix_exported_symbol" = yes; then
11157: 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'
11158: fi
11159: else
11160: 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'
11161: 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'
11162: fi
11163: archive_cmds_need_lc='no'
11164: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11165: hardcode_libdir_separator=:
11166: inherit_rpath=yes
11167: link_all_deplibs=yes
11168: ;;
11169:
11170: netbsd*)
11171: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11172: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11173: else
11174: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11175: fi
11176: hardcode_libdir_flag_spec='-R$libdir'
11177: hardcode_direct=yes
11178: hardcode_shlibpath_var=no
11179: ;;
11180:
11181: newsos6)
11182: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11183: hardcode_direct=yes
11184: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11185: hardcode_libdir_separator=:
11186: hardcode_shlibpath_var=no
11187: ;;
11188:
11189: *nto* | *qnx*)
11190: ;;
11191:
11192: openbsd*)
11193: if test -f /usr/libexec/ld.so; then
11194: hardcode_direct=yes
11195: hardcode_shlibpath_var=no
11196: hardcode_direct_absolute=yes
11197: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11198: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11199: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11200: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11201: export_dynamic_flag_spec='${wl}-E'
11202: else
11203: case $host_os in
11204: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11205: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11206: hardcode_libdir_flag_spec='-R$libdir'
11207: ;;
11208: *)
11209: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11210: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11211: ;;
11212: esac
11213: fi
11214: else
11215: ld_shlibs=no
11216: fi
11217: ;;
11218:
11219: os2*)
11220: hardcode_libdir_flag_spec='-L$libdir'
11221: hardcode_minus_L=yes
11222: allow_undefined_flag=unsupported
11223: 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'
11224: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11225: ;;
11226:
11227: osf3*)
11228: if test "$GCC" = yes; then
11229: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11230: 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'
11231: else
11232: allow_undefined_flag=' -expect_unresolved \*'
11233: 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'
11234: fi
11235: archive_cmds_need_lc='no'
11236: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11237: hardcode_libdir_separator=:
11238: ;;
11239:
11240: osf4* | osf5*) # as osf3* with the addition of -msym flag
11241: if test "$GCC" = yes; then
11242: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11243: 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'
11244: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11245: else
11246: allow_undefined_flag=' -expect_unresolved \*'
11247: 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'
11248: 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~
11249: $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'
11250:
11251: # Both c and cxx compiler support -rpath directly
11252: hardcode_libdir_flag_spec='-rpath $libdir'
11253: fi
11254: archive_cmds_need_lc='no'
11255: hardcode_libdir_separator=:
11256: ;;
11257:
11258: solaris*)
11259: no_undefined_flag=' -z defs'
11260: if test "$GCC" = yes; then
11261: wlarc='${wl}'
11262: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11263: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11264: $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'
11265: else
11266: case `$CC -V 2>&1` in
11267: *"Compilers 5.0"*)
11268: wlarc=''
11269: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11270: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11271: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11272: ;;
11273: *)
11274: wlarc='${wl}'
11275: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11276: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11277: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11278: ;;
11279: esac
11280: fi
11281: hardcode_libdir_flag_spec='-R$libdir'
11282: hardcode_shlibpath_var=no
11283: case $host_os in
11284: solaris2.[0-5] | solaris2.[0-5].*) ;;
11285: *)
11286: # The compiler driver will combine and reorder linker options,
11287: # but understands `-z linker_flag'. GCC discards it without `$wl',
11288: # but is careful enough not to reorder.
11289: # Supported since Solaris 2.6 (maybe 2.5.1?)
11290: if test "$GCC" = yes; then
11291: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11292: else
11293: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11294: fi
11295: ;;
11296: esac
11297: link_all_deplibs=yes
11298: ;;
11299:
11300: sunos4*)
11301: if test "x$host_vendor" = xsequent; then
11302: # Use $CC to link under sequent, because it throws in some extra .o
11303: # files that make .init and .fini sections work.
11304: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11305: else
11306: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11307: fi
11308: hardcode_libdir_flag_spec='-L$libdir'
11309: hardcode_direct=yes
11310: hardcode_minus_L=yes
11311: hardcode_shlibpath_var=no
11312: ;;
11313:
11314: sysv4)
11315: case $host_vendor in
11316: sni)
11317: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11318: hardcode_direct=yes # is this really true???
11319: ;;
11320: siemens)
11321: ## LD is ld it makes a PLAMLIB
11322: ## CC just makes a GrossModule.
11323: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11324: reload_cmds='$CC -r -o $output$reload_objs'
11325: hardcode_direct=no
11326: ;;
11327: motorola)
11328: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11329: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11330: ;;
11331: esac
11332: runpath_var='LD_RUN_PATH'
11333: hardcode_shlibpath_var=no
11334: ;;
11335:
11336: sysv4.3*)
11337: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11338: hardcode_shlibpath_var=no
11339: export_dynamic_flag_spec='-Bexport'
11340: ;;
11341:
11342: sysv4*MP*)
11343: if test -d /usr/nec; then
11344: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345: hardcode_shlibpath_var=no
11346: runpath_var=LD_RUN_PATH
11347: hardcode_runpath_var=yes
11348: ld_shlibs=yes
11349: fi
11350: ;;
11351:
11352: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11353: no_undefined_flag='${wl}-z,text'
11354: archive_cmds_need_lc=no
11355: hardcode_shlibpath_var=no
11356: runpath_var='LD_RUN_PATH'
11357:
11358: if test "$GCC" = yes; then
11359: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11360: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11361: else
11362: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11363: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11364: fi
11365: ;;
11366:
11367: sysv5* | sco3.2v5* | sco5v6*)
11368: # Note: We can NOT use -z defs as we might desire, because we do not
11369: # link with -lc, and that would cause any symbols used from libc to
11370: # always be unresolved, which means just about no library would
11371: # ever link correctly. If we're not using GNU ld we use -z text
11372: # though, which does catch some bad symbols but isn't as heavy-handed
11373: # as -z defs.
11374: no_undefined_flag='${wl}-z,text'
11375: allow_undefined_flag='${wl}-z,nodefs'
11376: archive_cmds_need_lc=no
11377: hardcode_shlibpath_var=no
11378: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11379: hardcode_libdir_separator=':'
11380: link_all_deplibs=yes
11381: export_dynamic_flag_spec='${wl}-Bexport'
11382: runpath_var='LD_RUN_PATH'
11383:
11384: if test "$GCC" = yes; then
11385: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11386: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387: else
11388: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11389: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11390: fi
11391: ;;
11392:
11393: uts4*)
11394: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11395: hardcode_libdir_flag_spec='-L$libdir'
11396: hardcode_shlibpath_var=no
11397: ;;
11398:
11399: *)
11400: ld_shlibs=no
11401: ;;
11402: esac
11403:
11404: if test x$host_vendor = xsni; then
11405: case $host in
11406: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11407: export_dynamic_flag_spec='${wl}-Blargedynsym'
11408: ;;
11409: esac
11410: fi
11411: fi
11412:
1.150 moko 11413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11414: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11415: test "$ld_shlibs" = no && can_build_shared=no
11416:
11417: with_gnu_ld=$with_gnu_ld
11418:
11419:
11420:
11421:
11422:
11423:
11424:
11425:
11426:
11427:
11428:
11429:
11430:
11431:
11432:
11433: #
11434: # Do we need to explicitly link libc?
11435: #
11436: case "x$archive_cmds_need_lc" in
11437: x|xyes)
11438: # Assume -lc should be added
11439: archive_cmds_need_lc=yes
11440:
11441: if test "$enable_shared" = yes && test "$GCC" = yes; then
11442: case $archive_cmds in
11443: *'~'*)
11444: # FIXME: we may have to deal with multi-command sequences.
11445: ;;
11446: '$CC '*)
11447: # Test whether the compiler implicitly links with -lc since on some
11448: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11449: # to ld, don't add -lc before -lgcc.
1.150 moko 11450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11451: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11452: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11453: $as_echo_n "(cached) " >&6
1.128 moko 11454: else
11455: $RM conftest*
11456: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11457:
1.150 moko 11458: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11459: (eval $ac_compile) 2>&5
11460: ac_status=$?
1.150 moko 11461: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11462: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11463: soname=conftest
11464: lib=conftest
11465: libobjs=conftest.$ac_objext
11466: deplibs=
11467: wl=$lt_prog_compiler_wl
11468: pic_flag=$lt_prog_compiler_pic
11469: compiler_flags=-v
11470: linker_flags=-v
11471: verstring=
11472: output_objdir=.
11473: libname=conftest
11474: lt_save_allow_undefined_flag=$allow_undefined_flag
11475: allow_undefined_flag=
1.150 moko 11476: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11477: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11478: ac_status=$?
1.150 moko 11479: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11480: test $ac_status = 0; }
1.128 moko 11481: then
11482: lt_cv_archive_cmds_need_lc=no
11483: else
11484: lt_cv_archive_cmds_need_lc=yes
11485: fi
11486: allow_undefined_flag=$lt_save_allow_undefined_flag
11487: else
11488: cat conftest.err 1>&5
11489: fi
11490: $RM conftest*
11491:
11492: fi
1.150 moko 11493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11494: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11495: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11496: ;;
11497: esac
11498: fi
11499: ;;
11500: esac
11501:
11502:
11503:
11504:
11505:
11506:
11507:
11508:
11509:
11510:
11511:
11512:
11513:
11514:
11515:
11516:
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
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:
1.150 moko 11653: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11654: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11655:
11656: if test "$GCC" = yes; then
11657: case $host_os in
11658: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11659: *) lt_awk_arg="/^libraries:/" ;;
11660: esac
11661: case $host_os in
11662: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11663: *) lt_sed_strip_eq="s,=/,/,g" ;;
11664: esac
11665: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11666: case $lt_search_path_spec in
11667: *\;*)
11668: # if the path contains ";" then we assume it to be the separator
11669: # otherwise default to the standard path separator (i.e. ":") - it is
11670: # assumed that no part of a normal pathname contains ";" but that should
11671: # okay in the real world where ";" in dirpaths is itself problematic.
11672: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11673: ;;
11674: *)
11675: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11676: ;;
11677: esac
11678: # Ok, now we have the path, separated by spaces, we can step through it
11679: # and add multilib dir if necessary.
11680: lt_tmp_lt_search_path_spec=
11681: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11682: for lt_sys_path in $lt_search_path_spec; do
11683: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11684: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11685: else
11686: test -d "$lt_sys_path" && \
11687: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11688: fi
11689: done
11690: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11691: BEGIN {RS=" "; FS="/|\n";} {
11692: lt_foo="";
11693: lt_count=0;
11694: for (lt_i = NF; lt_i > 0; lt_i--) {
11695: if ($lt_i != "" && $lt_i != ".") {
11696: if ($lt_i == "..") {
11697: lt_count++;
11698: } else {
11699: if (lt_count == 0) {
11700: lt_foo="/" $lt_i lt_foo;
11701: } else {
11702: lt_count--;
11703: }
11704: }
11705: }
11706: }
11707: if (lt_foo != "") { lt_freq[lt_foo]++; }
11708: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11709: }'`
11710: # AWK program above erroneously prepends '/' to C:/dos/paths
11711: # for these hosts.
11712: case $host_os in
11713: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11714: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11715: esac
11716: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11717: else
11718: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11719: fi
11720: library_names_spec=
11721: libname_spec='lib$name'
11722: soname_spec=
11723: shrext_cmds=".so"
11724: postinstall_cmds=
11725: postuninstall_cmds=
11726: finish_cmds=
11727: finish_eval=
11728: shlibpath_var=
11729: shlibpath_overrides_runpath=unknown
11730: version_type=none
11731: dynamic_linker="$host_os ld.so"
11732: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11733: need_lib_prefix=unknown
11734: hardcode_into_libs=no
11735:
11736: # when you set need_version to no, make sure it does not cause -set_version
11737: # flags to be left without arguments
11738: need_version=unknown
11739:
11740: case $host_os in
11741: aix3*)
11742: version_type=linux # correct to gnu/linux during the next big refactor
11743: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11744: shlibpath_var=LIBPATH
11745:
11746: # AIX 3 has no versioning support, so we append a major version to the name.
11747: soname_spec='${libname}${release}${shared_ext}$major'
11748: ;;
11749:
11750: aix[4-9]*)
11751: version_type=linux # correct to gnu/linux during the next big refactor
11752: need_lib_prefix=no
11753: need_version=no
11754: hardcode_into_libs=yes
11755: if test "$host_cpu" = ia64; then
11756: # AIX 5 supports IA64
11757: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11758: shlibpath_var=LD_LIBRARY_PATH
11759: else
11760: # With GCC up to 2.95.x, collect2 would create an import file
11761: # for dependence libraries. The import file would start with
11762: # the line `#! .'. This would cause the generated library to
11763: # depend on `.', always an invalid library. This was fixed in
11764: # development snapshots of GCC prior to 3.0.
11765: case $host_os in
11766: aix4 | aix4.[01] | aix4.[01].*)
11767: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11768: echo ' yes '
11769: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11770: :
11771: else
11772: can_build_shared=no
11773: fi
11774: ;;
11775: esac
11776: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11777: # soname into executable. Probably we can add versioning support to
11778: # collect2, so additional links can be useful in future.
11779: if test "$aix_use_runtimelinking" = yes; then
11780: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11781: # instead of lib<name>.a to let people know that these are not
11782: # typical AIX shared libraries.
11783: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784: else
11785: # We preserve .a as extension for shared libraries through AIX4.2
11786: # and later when we are not doing run time linking.
11787: library_names_spec='${libname}${release}.a $libname.a'
11788: soname_spec='${libname}${release}${shared_ext}$major'
11789: fi
11790: shlibpath_var=LIBPATH
11791: fi
11792: ;;
11793:
11794: amigaos*)
11795: case $host_cpu in
11796: powerpc)
11797: # Since July 2007 AmigaOS4 officially supports .so libraries.
11798: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11799: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800: ;;
11801: m68k)
11802: library_names_spec='$libname.ixlibrary $libname.a'
11803: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11804: 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'
11805: ;;
11806: esac
11807: ;;
11808:
11809: beos*)
11810: library_names_spec='${libname}${shared_ext}'
11811: dynamic_linker="$host_os ld.so"
11812: shlibpath_var=LIBRARY_PATH
11813: ;;
11814:
11815: bsdi[45]*)
11816: version_type=linux # correct to gnu/linux during the next big refactor
11817: need_version=no
11818: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819: soname_spec='${libname}${release}${shared_ext}$major'
11820: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11821: shlibpath_var=LD_LIBRARY_PATH
11822: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11823: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11824: # the default ld.so.conf also contains /usr/contrib/lib and
11825: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11826: # libtool to hard-code these into programs
11827: ;;
11828:
11829: cygwin* | mingw* | pw32* | cegcc*)
11830: version_type=windows
11831: shrext_cmds=".dll"
11832: need_version=no
11833: need_lib_prefix=no
11834:
11835: case $GCC,$cc_basename in
11836: yes,*)
11837: # gcc
11838: library_names_spec='$libname.dll.a'
11839: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11840: postinstall_cmds='base_file=`basename \${file}`~
11841: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11842: dldir=$destdir/`dirname \$dlpath`~
11843: test -d \$dldir || mkdir -p \$dldir~
11844: $install_prog $dir/$dlname \$dldir/$dlname~
11845: chmod a+x \$dldir/$dlname~
11846: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11847: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11848: fi'
11849: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11850: dlpath=$dir/\$dldll~
11851: $RM \$dlpath'
11852: shlibpath_overrides_runpath=yes
11853:
11854: case $host_os in
11855: cygwin*)
11856: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11857: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11858:
11859: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11860: ;;
11861: mingw* | cegcc*)
11862: # MinGW DLLs use traditional 'lib' prefix
11863: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11864: ;;
11865: pw32*)
11866: # pw32 DLLs use 'pw' prefix rather than 'lib'
11867: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11868: ;;
11869: esac
11870: dynamic_linker='Win32 ld.exe'
11871: ;;
11872:
11873: *,cl*)
11874: # Native MSVC
11875: libname_spec='$name'
11876: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11877: library_names_spec='${libname}.dll.lib'
11878:
11879: case $build_os in
11880: mingw*)
11881: sys_lib_search_path_spec=
11882: lt_save_ifs=$IFS
11883: IFS=';'
11884: for lt_path in $LIB
11885: do
11886: IFS=$lt_save_ifs
11887: # Let DOS variable expansion print the short 8.3 style file name.
11888: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11889: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11890: done
11891: IFS=$lt_save_ifs
11892: # Convert to MSYS style.
11893: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11894: ;;
11895: cygwin*)
11896: # Convert to unix form, then to dos form, then back to unix form
11897: # but this time dos style (no spaces!) so that the unix form looks
11898: # like /cygdrive/c/PROGRA~1:/cygdr...
11899: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11900: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11901: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11902: ;;
11903: *)
11904: sys_lib_search_path_spec="$LIB"
11905: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11906: # It is most probably a Windows format PATH.
11907: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11908: else
11909: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11910: fi
11911: # FIXME: find the short name or the path components, as spaces are
11912: # common. (e.g. "Program Files" -> "PROGRA~1")
11913: ;;
11914: esac
11915:
11916: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11917: postinstall_cmds='base_file=`basename \${file}`~
11918: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11919: dldir=$destdir/`dirname \$dlpath`~
11920: test -d \$dldir || mkdir -p \$dldir~
11921: $install_prog $dir/$dlname \$dldir/$dlname'
11922: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11923: dlpath=$dir/\$dldll~
11924: $RM \$dlpath'
11925: shlibpath_overrides_runpath=yes
11926: dynamic_linker='Win32 link.exe'
11927: ;;
11928:
11929: *)
11930: # Assume MSVC wrapper
11931: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11932: dynamic_linker='Win32 ld.exe'
11933: ;;
11934: esac
11935: # FIXME: first we should search . and the directory the executable is in
11936: shlibpath_var=PATH
11937: ;;
11938:
11939: darwin* | rhapsody*)
11940: dynamic_linker="$host_os dyld"
11941: version_type=darwin
11942: need_lib_prefix=no
11943: need_version=no
11944: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11945: soname_spec='${libname}${release}${major}$shared_ext'
11946: shlibpath_overrides_runpath=yes
11947: shlibpath_var=DYLD_LIBRARY_PATH
11948: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11949:
11950: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11951: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11952: ;;
11953:
11954: dgux*)
11955: version_type=linux # correct to gnu/linux during the next big refactor
11956: need_lib_prefix=no
11957: need_version=no
11958: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11959: soname_spec='${libname}${release}${shared_ext}$major'
11960: shlibpath_var=LD_LIBRARY_PATH
11961: ;;
11962:
11963: freebsd* | dragonfly*)
11964: # DragonFly does not have aout. When/if they implement a new
11965: # versioning mechanism, adjust this.
11966: if test -x /usr/bin/objformat; then
11967: objformat=`/usr/bin/objformat`
11968: else
11969: case $host_os in
11970: freebsd[23].*) objformat=aout ;;
11971: *) objformat=elf ;;
11972: esac
11973: fi
11974: version_type=freebsd-$objformat
11975: case $version_type in
11976: freebsd-elf*)
11977: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11978: need_version=no
11979: need_lib_prefix=no
11980: ;;
11981: freebsd-*)
11982: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11983: need_version=yes
11984: ;;
11985: esac
11986: shlibpath_var=LD_LIBRARY_PATH
11987: case $host_os in
11988: freebsd2.*)
11989: shlibpath_overrides_runpath=yes
11990: ;;
11991: freebsd3.[01]* | freebsdelf3.[01]*)
11992: shlibpath_overrides_runpath=yes
11993: hardcode_into_libs=yes
11994: ;;
11995: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11996: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11997: shlibpath_overrides_runpath=no
11998: hardcode_into_libs=yes
11999: ;;
12000: *) # from 4.6 on, and DragonFly
12001: shlibpath_overrides_runpath=yes
12002: hardcode_into_libs=yes
12003: ;;
12004: esac
12005: ;;
12006:
12007: gnu*)
12008: version_type=linux # correct to gnu/linux during the next big refactor
12009: need_lib_prefix=no
12010: need_version=no
12011: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12012: soname_spec='${libname}${release}${shared_ext}$major'
12013: shlibpath_var=LD_LIBRARY_PATH
12014: shlibpath_overrides_runpath=no
12015: hardcode_into_libs=yes
12016: ;;
12017:
12018: haiku*)
12019: version_type=linux # correct to gnu/linux during the next big refactor
12020: need_lib_prefix=no
12021: need_version=no
12022: dynamic_linker="$host_os runtime_loader"
12023: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12024: soname_spec='${libname}${release}${shared_ext}$major'
12025: shlibpath_var=LIBRARY_PATH
12026: shlibpath_overrides_runpath=yes
12027: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12028: hardcode_into_libs=yes
12029: ;;
12030:
12031: hpux9* | hpux10* | hpux11*)
12032: # Give a soname corresponding to the major version so that dld.sl refuses to
12033: # link against other versions.
12034: version_type=sunos
12035: need_lib_prefix=no
12036: need_version=no
12037: case $host_cpu in
12038: ia64*)
12039: shrext_cmds='.so'
12040: hardcode_into_libs=yes
12041: dynamic_linker="$host_os dld.so"
12042: shlibpath_var=LD_LIBRARY_PATH
12043: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12044: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12045: soname_spec='${libname}${release}${shared_ext}$major'
12046: if test "X$HPUX_IA64_MODE" = X32; then
12047: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12048: else
12049: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12050: fi
12051: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12052: ;;
12053: hppa*64*)
12054: shrext_cmds='.sl'
12055: hardcode_into_libs=yes
12056: dynamic_linker="$host_os dld.sl"
12057: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12058: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12059: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060: soname_spec='${libname}${release}${shared_ext}$major'
12061: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12062: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12063: ;;
12064: *)
12065: shrext_cmds='.sl'
12066: dynamic_linker="$host_os dld.sl"
12067: shlibpath_var=SHLIB_PATH
12068: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12069: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070: soname_spec='${libname}${release}${shared_ext}$major'
12071: ;;
12072: esac
12073: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12074: postinstall_cmds='chmod 555 $lib'
12075: # or fails outright, so override atomically:
12076: install_override_mode=555
12077: ;;
12078:
12079: interix[3-9]*)
12080: version_type=linux # correct to gnu/linux during the next big refactor
12081: need_lib_prefix=no
12082: need_version=no
12083: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12084: soname_spec='${libname}${release}${shared_ext}$major'
12085: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12086: shlibpath_var=LD_LIBRARY_PATH
12087: shlibpath_overrides_runpath=no
12088: hardcode_into_libs=yes
12089: ;;
12090:
12091: irix5* | irix6* | nonstopux*)
12092: case $host_os in
12093: nonstopux*) version_type=nonstopux ;;
12094: *)
12095: if test "$lt_cv_prog_gnu_ld" = yes; then
12096: version_type=linux # correct to gnu/linux during the next big refactor
12097: else
12098: version_type=irix
12099: fi ;;
12100: esac
12101: need_lib_prefix=no
12102: need_version=no
12103: soname_spec='${libname}${release}${shared_ext}$major'
12104: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12105: case $host_os in
12106: irix5* | nonstopux*)
12107: libsuff= shlibsuff=
12108: ;;
12109: *)
12110: case $LD in # libtool.m4 will add one of these switches to LD
12111: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12112: libsuff= shlibsuff= libmagic=32-bit;;
12113: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12114: libsuff=32 shlibsuff=N32 libmagic=N32;;
12115: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12116: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12117: *) libsuff= shlibsuff= libmagic=never-match;;
12118: esac
12119: ;;
12120: esac
12121: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12122: shlibpath_overrides_runpath=no
12123: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12124: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12125: hardcode_into_libs=yes
12126: ;;
12127:
12128: # No shared lib support for Linux oldld, aout, or coff.
12129: linux*oldld* | linux*aout* | linux*coff*)
12130: dynamic_linker=no
12131: ;;
12132:
12133: # This must be glibc/ELF.
12134: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12135: version_type=linux # correct to gnu/linux during the next big refactor
12136: need_lib_prefix=no
12137: need_version=no
12138: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139: soname_spec='${libname}${release}${shared_ext}$major'
12140: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12141: shlibpath_var=LD_LIBRARY_PATH
12142: shlibpath_overrides_runpath=no
12143:
12144: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 12145: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12146: $as_echo_n "(cached) " >&6
1.128 moko 12147: else
12148: lt_cv_shlibpath_overrides_runpath=no
12149: save_LDFLAGS=$LDFLAGS
12150: save_libdir=$libdir
12151: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12152: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 12153: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12154: /* end confdefs.h. */
12155:
12156: int
12157: main ()
12158: {
12159:
12160: ;
12161: return 0;
12162: }
12163: _ACEOF
1.150 moko 12164: if ac_fn_c_try_link "$LINENO"; then :
12165: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 12166: lt_cv_shlibpath_overrides_runpath=yes
12167: fi
12168: fi
1.150 moko 12169: rm -f core conftest.err conftest.$ac_objext \
12170: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12171: LDFLAGS=$save_LDFLAGS
12172: libdir=$save_libdir
12173:
12174: fi
12175:
12176: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12177:
12178: # This implies no fast_install, which is unacceptable.
12179: # Some rework will be needed to allow for fast_install
12180: # before this can be enabled.
12181: hardcode_into_libs=yes
12182:
12183: # Append ld.so.conf contents to the search path
12184: if test -f /etc/ld.so.conf; then
12185: 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' ' '`
12186: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12187: fi
12188:
12189: # We used to test for /lib/ld.so.1 and disable shared libraries on
12190: # powerpc, because MkLinux only supported shared libraries with the
12191: # GNU dynamic linker. Since this was broken with cross compilers,
12192: # most powerpc-linux boxes support dynamic linking these days and
12193: # people can always --disable-shared, the test was removed, and we
12194: # assume the GNU/Linux dynamic linker is in use.
12195: dynamic_linker='GNU/Linux ld.so'
12196: ;;
12197:
12198: netbsd*)
12199: version_type=sunos
12200: need_lib_prefix=no
12201: need_version=no
12202: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12203: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12204: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12205: dynamic_linker='NetBSD (a.out) ld.so'
12206: else
12207: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12208: soname_spec='${libname}${release}${shared_ext}$major'
12209: dynamic_linker='NetBSD ld.elf_so'
12210: fi
12211: shlibpath_var=LD_LIBRARY_PATH
12212: shlibpath_overrides_runpath=yes
12213: hardcode_into_libs=yes
12214: ;;
12215:
12216: newsos6)
12217: version_type=linux # correct to gnu/linux during the next big refactor
12218: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12219: shlibpath_var=LD_LIBRARY_PATH
12220: shlibpath_overrides_runpath=yes
12221: ;;
12222:
12223: *nto* | *qnx*)
12224: version_type=qnx
12225: need_lib_prefix=no
12226: need_version=no
12227: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12228: soname_spec='${libname}${release}${shared_ext}$major'
12229: shlibpath_var=LD_LIBRARY_PATH
12230: shlibpath_overrides_runpath=no
12231: hardcode_into_libs=yes
12232: dynamic_linker='ldqnx.so'
12233: ;;
12234:
12235: openbsd*)
12236: version_type=sunos
12237: sys_lib_dlsearch_path_spec="/usr/lib"
12238: need_lib_prefix=no
12239: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12240: case $host_os in
12241: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12242: *) need_version=no ;;
12243: esac
12244: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12245: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12246: shlibpath_var=LD_LIBRARY_PATH
12247: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12248: case $host_os in
12249: openbsd2.[89] | openbsd2.[89].*)
12250: shlibpath_overrides_runpath=no
12251: ;;
12252: *)
12253: shlibpath_overrides_runpath=yes
12254: ;;
12255: esac
12256: else
12257: shlibpath_overrides_runpath=yes
12258: fi
12259: ;;
12260:
12261: os2*)
12262: libname_spec='$name'
12263: shrext_cmds=".dll"
12264: need_lib_prefix=no
12265: library_names_spec='$libname${shared_ext} $libname.a'
12266: dynamic_linker='OS/2 ld.exe'
12267: shlibpath_var=LIBPATH
12268: ;;
12269:
12270: osf3* | osf4* | osf5*)
12271: version_type=osf
12272: need_lib_prefix=no
12273: need_version=no
12274: soname_spec='${libname}${release}${shared_ext}$major'
12275: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12276: shlibpath_var=LD_LIBRARY_PATH
12277: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12278: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12279: ;;
12280:
12281: rdos*)
12282: dynamic_linker=no
12283: ;;
12284:
12285: solaris*)
12286: version_type=linux # correct to gnu/linux during the next big refactor
12287: need_lib_prefix=no
12288: need_version=no
12289: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12290: soname_spec='${libname}${release}${shared_ext}$major'
12291: shlibpath_var=LD_LIBRARY_PATH
12292: shlibpath_overrides_runpath=yes
12293: hardcode_into_libs=yes
12294: # ldd complains unless libraries are executable
12295: postinstall_cmds='chmod +x $lib'
12296: ;;
12297:
12298: sunos4*)
12299: version_type=sunos
12300: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12301: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12302: shlibpath_var=LD_LIBRARY_PATH
12303: shlibpath_overrides_runpath=yes
12304: if test "$with_gnu_ld" = yes; then
12305: need_lib_prefix=no
12306: fi
12307: need_version=yes
12308: ;;
12309:
12310: sysv4 | sysv4.3*)
12311: version_type=linux # correct to gnu/linux during the next big refactor
12312: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12313: soname_spec='${libname}${release}${shared_ext}$major'
12314: shlibpath_var=LD_LIBRARY_PATH
12315: case $host_vendor in
12316: sni)
12317: shlibpath_overrides_runpath=no
12318: need_lib_prefix=no
12319: runpath_var=LD_RUN_PATH
12320: ;;
12321: siemens)
12322: need_lib_prefix=no
12323: ;;
12324: motorola)
12325: need_lib_prefix=no
12326: need_version=no
12327: shlibpath_overrides_runpath=no
12328: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12329: ;;
12330: esac
12331: ;;
12332:
12333: sysv4*MP*)
12334: if test -d /usr/nec ;then
12335: version_type=linux # correct to gnu/linux during the next big refactor
12336: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12337: soname_spec='$libname${shared_ext}.$major'
12338: shlibpath_var=LD_LIBRARY_PATH
12339: fi
12340: ;;
12341:
12342: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12343: version_type=freebsd-elf
12344: need_lib_prefix=no
12345: need_version=no
12346: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12347: soname_spec='${libname}${release}${shared_ext}$major'
12348: shlibpath_var=LD_LIBRARY_PATH
12349: shlibpath_overrides_runpath=yes
12350: hardcode_into_libs=yes
12351: if test "$with_gnu_ld" = yes; then
12352: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12353: else
12354: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12355: case $host_os in
12356: sco3.2v5*)
12357: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12358: ;;
12359: esac
12360: fi
12361: sys_lib_dlsearch_path_spec='/usr/lib'
12362: ;;
12363:
12364: tpf*)
12365: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12366: version_type=linux # correct to gnu/linux during the next big refactor
12367: need_lib_prefix=no
12368: need_version=no
12369: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12370: shlibpath_var=LD_LIBRARY_PATH
12371: shlibpath_overrides_runpath=no
12372: hardcode_into_libs=yes
12373: ;;
12374:
12375: uts4*)
12376: version_type=linux # correct to gnu/linux during the next big refactor
12377: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378: soname_spec='${libname}${release}${shared_ext}$major'
12379: shlibpath_var=LD_LIBRARY_PATH
12380: ;;
12381:
12382: *)
12383: dynamic_linker=no
12384: ;;
12385: esac
1.150 moko 12386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12387: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12388: test "$dynamic_linker" = no && can_build_shared=no
12389:
12390: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12391: if test "$GCC" = yes; then
12392: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12393: fi
12394:
12395: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12396: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12397: fi
12398: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12399: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12400: fi
12401:
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:
1.150 moko 12493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12494: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12495: hardcode_action=
12496: if test -n "$hardcode_libdir_flag_spec" ||
12497: test -n "$runpath_var" ||
12498: test "X$hardcode_automatic" = "Xyes" ; then
12499:
12500: # We can hardcode non-existent directories.
12501: if test "$hardcode_direct" != no &&
12502: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12503: # have to relink, otherwise we might link with an installed library
12504: # when we should be linking with a yet-to-be-installed one
12505: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12506: test "$hardcode_minus_L" != no; then
12507: # Linking always hardcodes the temporary library directory.
12508: hardcode_action=relink
12509: else
12510: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12511: hardcode_action=immediate
12512: fi
12513: else
12514: # We cannot hardcode anything, or else we can only hardcode existing
12515: # directories.
12516: hardcode_action=unsupported
12517: fi
1.150 moko 12518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12519: $as_echo "$hardcode_action" >&6; }
1.128 moko 12520:
12521: if test "$hardcode_action" = relink ||
12522: test "$inherit_rpath" = yes; then
12523: # Fast installation is not supported
12524: enable_fast_install=no
12525: elif test "$shlibpath_overrides_runpath" = yes ||
12526: test "$enable_shared" = no; then
12527: # Fast installation is not necessary
12528: enable_fast_install=needless
12529: fi
12530:
12531:
12532:
12533:
12534:
12535:
12536: if test "x$enable_dlopen" != xyes; then
12537: enable_dlopen=unknown
12538: enable_dlopen_self=unknown
12539: enable_dlopen_self_static=unknown
12540: else
12541: lt_cv_dlopen=no
12542: lt_cv_dlopen_libs=
12543:
12544: case $host_os in
12545: beos*)
12546: lt_cv_dlopen="load_add_on"
12547: lt_cv_dlopen_libs=
12548: lt_cv_dlopen_self=yes
12549: ;;
12550:
12551: mingw* | pw32* | cegcc*)
12552: lt_cv_dlopen="LoadLibrary"
12553: lt_cv_dlopen_libs=
12554: ;;
12555:
12556: cygwin*)
12557: lt_cv_dlopen="dlopen"
12558: lt_cv_dlopen_libs=
12559: ;;
12560:
12561: darwin*)
12562: # if libdl is installed we need to link against it
1.150 moko 12563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12564: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12565: if ${ac_cv_lib_dl_dlopen+:} false; then :
12566: $as_echo_n "(cached) " >&6
1.128 moko 12567: else
12568: ac_check_lib_save_LIBS=$LIBS
12569: LIBS="-ldl $LIBS"
1.150 moko 12570: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12571: /* end confdefs.h. */
12572:
1.150 moko 12573: /* Override any GCC internal prototype to avoid an error.
12574: Use char because int might match the return type of a GCC
12575: builtin and then its argument prototype would still apply. */
1.128 moko 12576: #ifdef __cplusplus
12577: extern "C"
12578: #endif
12579: char dlopen ();
12580: int
12581: main ()
12582: {
1.150 moko 12583: return dlopen ();
1.128 moko 12584: ;
12585: return 0;
12586: }
12587: _ACEOF
1.150 moko 12588: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12589: ac_cv_lib_dl_dlopen=yes
12590: else
1.150 moko 12591: ac_cv_lib_dl_dlopen=no
1.128 moko 12592: fi
1.150 moko 12593: rm -f core conftest.err conftest.$ac_objext \
12594: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12595: LIBS=$ac_check_lib_save_LIBS
12596: fi
1.150 moko 12597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12598: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12599: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12600: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12601: else
12602:
12603: lt_cv_dlopen="dyld"
12604: lt_cv_dlopen_libs=
12605: lt_cv_dlopen_self=yes
12606:
12607: fi
12608:
12609: ;;
12610:
12611: *)
1.150 moko 12612: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12613: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12614: lt_cv_dlopen="shl_load"
12615: else
1.150 moko 12616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12617: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12618: if ${ac_cv_lib_dld_shl_load+:} false; then :
12619: $as_echo_n "(cached) " >&6
1.128 moko 12620: else
12621: ac_check_lib_save_LIBS=$LIBS
12622: LIBS="-ldld $LIBS"
1.150 moko 12623: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12624: /* end confdefs.h. */
12625:
1.150 moko 12626: /* Override any GCC internal prototype to avoid an error.
12627: Use char because int might match the return type of a GCC
12628: builtin and then its argument prototype would still apply. */
1.128 moko 12629: #ifdef __cplusplus
12630: extern "C"
12631: #endif
12632: char shl_load ();
12633: int
12634: main ()
12635: {
1.150 moko 12636: return shl_load ();
1.128 moko 12637: ;
12638: return 0;
12639: }
12640: _ACEOF
1.150 moko 12641: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12642: ac_cv_lib_dld_shl_load=yes
12643: else
1.150 moko 12644: ac_cv_lib_dld_shl_load=no
1.128 moko 12645: fi
1.150 moko 12646: rm -f core conftest.err conftest.$ac_objext \
12647: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12648: LIBS=$ac_check_lib_save_LIBS
12649: fi
1.150 moko 12650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12651: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12652: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12653: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12654: else
1.150 moko 12655: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12656: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12657: lt_cv_dlopen="dlopen"
12658: else
1.150 moko 12659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12660: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12661: if ${ac_cv_lib_dl_dlopen+:} false; then :
12662: $as_echo_n "(cached) " >&6
1.128 moko 12663: else
12664: ac_check_lib_save_LIBS=$LIBS
12665: LIBS="-ldl $LIBS"
1.150 moko 12666: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12667: /* end confdefs.h. */
12668:
1.150 moko 12669: /* Override any GCC internal prototype to avoid an error.
12670: Use char because int might match the return type of a GCC
12671: builtin and then its argument prototype would still apply. */
1.128 moko 12672: #ifdef __cplusplus
12673: extern "C"
12674: #endif
12675: char dlopen ();
12676: int
12677: main ()
12678: {
1.150 moko 12679: return dlopen ();
1.128 moko 12680: ;
12681: return 0;
12682: }
12683: _ACEOF
1.150 moko 12684: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12685: ac_cv_lib_dl_dlopen=yes
12686: else
1.150 moko 12687: ac_cv_lib_dl_dlopen=no
1.128 moko 12688: fi
1.150 moko 12689: rm -f core conftest.err conftest.$ac_objext \
12690: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12691: LIBS=$ac_check_lib_save_LIBS
12692: fi
1.150 moko 12693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12694: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12695: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12696: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12697: else
1.150 moko 12698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12699: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12700: if ${ac_cv_lib_svld_dlopen+:} false; then :
12701: $as_echo_n "(cached) " >&6
1.128 moko 12702: else
12703: ac_check_lib_save_LIBS=$LIBS
12704: LIBS="-lsvld $LIBS"
1.150 moko 12705: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12706: /* end confdefs.h. */
12707:
1.150 moko 12708: /* Override any GCC internal prototype to avoid an error.
12709: Use char because int might match the return type of a GCC
12710: builtin and then its argument prototype would still apply. */
1.128 moko 12711: #ifdef __cplusplus
12712: extern "C"
12713: #endif
12714: char dlopen ();
12715: int
12716: main ()
12717: {
1.150 moko 12718: return dlopen ();
1.128 moko 12719: ;
12720: return 0;
12721: }
12722: _ACEOF
1.150 moko 12723: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12724: ac_cv_lib_svld_dlopen=yes
12725: else
1.150 moko 12726: ac_cv_lib_svld_dlopen=no
1.128 moko 12727: fi
1.150 moko 12728: rm -f core conftest.err conftest.$ac_objext \
12729: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12730: LIBS=$ac_check_lib_save_LIBS
12731: fi
1.150 moko 12732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12733: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12734: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12735: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12736: else
1.150 moko 12737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12738: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12739: if ${ac_cv_lib_dld_dld_link+:} false; then :
12740: $as_echo_n "(cached) " >&6
1.128 moko 12741: else
12742: ac_check_lib_save_LIBS=$LIBS
12743: LIBS="-ldld $LIBS"
1.150 moko 12744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12745: /* end confdefs.h. */
12746:
1.150 moko 12747: /* Override any GCC internal prototype to avoid an error.
12748: Use char because int might match the return type of a GCC
12749: builtin and then its argument prototype would still apply. */
1.128 moko 12750: #ifdef __cplusplus
12751: extern "C"
12752: #endif
12753: char dld_link ();
12754: int
12755: main ()
12756: {
1.150 moko 12757: return dld_link ();
1.128 moko 12758: ;
12759: return 0;
12760: }
12761: _ACEOF
1.150 moko 12762: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12763: ac_cv_lib_dld_dld_link=yes
12764: else
1.150 moko 12765: ac_cv_lib_dld_dld_link=no
12766: fi
12767: rm -f core conftest.err conftest.$ac_objext \
12768: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12769: LIBS=$ac_check_lib_save_LIBS
12770: fi
1.150 moko 12771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12772: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12773: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12774: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12775: fi
12776:
12777:
12778: fi
12779:
12780:
12781: fi
12782:
12783:
12784: fi
12785:
12786:
12787: fi
12788:
12789:
12790: fi
12791:
12792: ;;
12793: esac
12794:
12795: if test "x$lt_cv_dlopen" != xno; then
12796: enable_dlopen=yes
12797: else
12798: enable_dlopen=no
12799: fi
12800:
12801: case $lt_cv_dlopen in
12802: dlopen)
12803: save_CPPFLAGS="$CPPFLAGS"
12804: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12805:
12806: save_LDFLAGS="$LDFLAGS"
12807: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12808:
12809: save_LIBS="$LIBS"
12810: LIBS="$lt_cv_dlopen_libs $LIBS"
12811:
1.150 moko 12812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12813: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12814: if ${lt_cv_dlopen_self+:} false; then :
12815: $as_echo_n "(cached) " >&6
1.128 moko 12816: else
12817: if test "$cross_compiling" = yes; then :
12818: lt_cv_dlopen_self=cross
12819: else
12820: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12821: lt_status=$lt_dlunknown
12822: cat > conftest.$ac_ext <<_LT_EOF
12823: #line $LINENO "configure"
12824: #include "confdefs.h"
12825:
12826: #if HAVE_DLFCN_H
12827: #include <dlfcn.h>
12828: #endif
12829:
12830: #include <stdio.h>
12831:
12832: #ifdef RTLD_GLOBAL
12833: # define LT_DLGLOBAL RTLD_GLOBAL
12834: #else
12835: # ifdef DL_GLOBAL
12836: # define LT_DLGLOBAL DL_GLOBAL
12837: # else
12838: # define LT_DLGLOBAL 0
12839: # endif
12840: #endif
12841:
12842: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12843: find out it does not work in some platform. */
12844: #ifndef LT_DLLAZY_OR_NOW
12845: # ifdef RTLD_LAZY
12846: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12847: # else
12848: # ifdef DL_LAZY
12849: # define LT_DLLAZY_OR_NOW DL_LAZY
12850: # else
12851: # ifdef RTLD_NOW
12852: # define LT_DLLAZY_OR_NOW RTLD_NOW
12853: # else
12854: # ifdef DL_NOW
12855: # define LT_DLLAZY_OR_NOW DL_NOW
12856: # else
12857: # define LT_DLLAZY_OR_NOW 0
12858: # endif
12859: # endif
12860: # endif
12861: # endif
12862: #endif
12863:
12864: /* When -fvisbility=hidden is used, assume the code has been annotated
12865: correspondingly for the symbols needed. */
12866: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12867: int fnord () __attribute__((visibility("default")));
12868: #endif
12869:
12870: int fnord () { return 42; }
12871: int main ()
12872: {
12873: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12874: int status = $lt_dlunknown;
12875:
12876: if (self)
12877: {
12878: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12879: else
12880: {
12881: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12882: else puts (dlerror ());
12883: }
12884: /* dlclose (self); */
12885: }
12886: else
12887: puts (dlerror ());
12888:
12889: return status;
12890: }
12891: _LT_EOF
1.150 moko 12892: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12893: (eval $ac_link) 2>&5
12894: ac_status=$?
1.150 moko 12895: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12896: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12897: (./conftest; exit; ) >&5 2>/dev/null
12898: lt_status=$?
12899: case x$lt_status in
12900: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12901: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12902: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12903: esac
12904: else :
12905: # compilation failed
12906: lt_cv_dlopen_self=no
12907: fi
12908: fi
12909: rm -fr conftest*
12910:
12911:
12912: fi
1.150 moko 12913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12914: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12915:
12916: if test "x$lt_cv_dlopen_self" = xyes; then
12917: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12919: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12920: if ${lt_cv_dlopen_self_static+:} false; then :
12921: $as_echo_n "(cached) " >&6
1.128 moko 12922: else
12923: if test "$cross_compiling" = yes; then :
12924: lt_cv_dlopen_self_static=cross
12925: else
12926: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12927: lt_status=$lt_dlunknown
12928: cat > conftest.$ac_ext <<_LT_EOF
12929: #line $LINENO "configure"
12930: #include "confdefs.h"
12931:
12932: #if HAVE_DLFCN_H
12933: #include <dlfcn.h>
12934: #endif
12935:
12936: #include <stdio.h>
12937:
12938: #ifdef RTLD_GLOBAL
12939: # define LT_DLGLOBAL RTLD_GLOBAL
12940: #else
12941: # ifdef DL_GLOBAL
12942: # define LT_DLGLOBAL DL_GLOBAL
12943: # else
12944: # define LT_DLGLOBAL 0
12945: # endif
12946: #endif
12947:
12948: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12949: find out it does not work in some platform. */
12950: #ifndef LT_DLLAZY_OR_NOW
12951: # ifdef RTLD_LAZY
12952: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12953: # else
12954: # ifdef DL_LAZY
12955: # define LT_DLLAZY_OR_NOW DL_LAZY
12956: # else
12957: # ifdef RTLD_NOW
12958: # define LT_DLLAZY_OR_NOW RTLD_NOW
12959: # else
12960: # ifdef DL_NOW
12961: # define LT_DLLAZY_OR_NOW DL_NOW
12962: # else
12963: # define LT_DLLAZY_OR_NOW 0
12964: # endif
12965: # endif
12966: # endif
12967: # endif
12968: #endif
12969:
12970: /* When -fvisbility=hidden is used, assume the code has been annotated
12971: correspondingly for the symbols needed. */
12972: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12973: int fnord () __attribute__((visibility("default")));
12974: #endif
12975:
12976: int fnord () { return 42; }
12977: int main ()
12978: {
12979: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12980: int status = $lt_dlunknown;
12981:
12982: if (self)
12983: {
12984: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12985: else
12986: {
12987: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12988: else puts (dlerror ());
12989: }
12990: /* dlclose (self); */
12991: }
12992: else
12993: puts (dlerror ());
12994:
12995: return status;
12996: }
12997: _LT_EOF
1.150 moko 12998: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12999: (eval $ac_link) 2>&5
13000: ac_status=$?
1.150 moko 13001: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13002: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 13003: (./conftest; exit; ) >&5 2>/dev/null
13004: lt_status=$?
13005: case x$lt_status in
13006: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13007: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13008: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13009: esac
13010: else :
13011: # compilation failed
13012: lt_cv_dlopen_self_static=no
13013: fi
13014: fi
13015: rm -fr conftest*
13016:
13017:
13018: fi
1.150 moko 13019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13020: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 13021: fi
13022:
13023: CPPFLAGS="$save_CPPFLAGS"
13024: LDFLAGS="$save_LDFLAGS"
13025: LIBS="$save_LIBS"
13026: ;;
13027: esac
13028:
13029: case $lt_cv_dlopen_self in
13030: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13031: *) enable_dlopen_self=unknown ;;
13032: esac
13033:
13034: case $lt_cv_dlopen_self_static in
13035: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13036: *) enable_dlopen_self_static=unknown ;;
13037: esac
13038: fi
13039:
13040:
13041:
13042:
13043:
13044:
13045:
13046:
13047:
13048:
13049:
13050:
13051:
13052:
13053:
13054:
13055:
13056: striplib=
13057: old_striplib=
1.150 moko 13058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13059: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 13060: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13061: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13062: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 13063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13064: $as_echo "yes" >&6; }
1.128 moko 13065: else
13066: # FIXME - insert some real tests, host_os isn't really good enough
13067: case $host_os in
13068: darwin*)
13069: if test -n "$STRIP" ; then
13070: striplib="$STRIP -x"
13071: old_striplib="$STRIP -S"
1.150 moko 13072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13073: $as_echo "yes" >&6; }
1.128 moko 13074: else
1.150 moko 13075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076: $as_echo "no" >&6; }
1.128 moko 13077: fi
13078: ;;
13079: *)
1.150 moko 13080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081: $as_echo "no" >&6; }
1.128 moko 13082: ;;
13083: esac
13084: fi
13085:
13086:
13087:
13088:
13089:
13090:
13091:
13092:
13093:
13094:
13095:
13096:
13097: # Report which library types will actually be built
1.150 moko 13098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13099: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13101: $as_echo "$can_build_shared" >&6; }
1.128 moko 13102:
1.150 moko 13103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13104: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 13105: test "$can_build_shared" = "no" && enable_shared=no
13106:
13107: # On AIX, shared libraries and static libraries use the same namespace, and
13108: # are all built from PIC.
13109: case $host_os in
13110: aix3*)
13111: test "$enable_shared" = yes && enable_static=no
13112: if test -n "$RANLIB"; then
13113: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13114: postinstall_cmds='$RANLIB $lib'
13115: fi
13116: ;;
13117:
13118: aix[4-9]*)
13119: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13120: test "$enable_shared" = yes && enable_static=no
13121: fi
13122: ;;
13123: esac
1.150 moko 13124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13125: $as_echo "$enable_shared" >&6; }
1.128 moko 13126:
1.150 moko 13127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13128: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 13129: # Make sure either enable_shared or enable_static is yes.
13130: test "$enable_shared" = yes || enable_static=yes
1.150 moko 13131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13132: $as_echo "$enable_static" >&6; }
1.128 moko 13133:
13134:
13135:
13136:
13137: fi
13138: ac_ext=c
13139: ac_cpp='$CPP $CPPFLAGS'
13140: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13143:
13144: CC="$lt_save_CC"
13145:
13146: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13147: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13148: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 13149: ac_ext=cpp
1.128 moko 13150: ac_cpp='$CXXCPP $CPPFLAGS'
13151: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13152: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13153: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 13154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13155: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 13156: if test -z "$CXXCPP"; then
1.150 moko 13157: if ${ac_cv_prog_CXXCPP+:} false; then :
13158: $as_echo_n "(cached) " >&6
1.128 moko 13159: else
13160: # Double quotes because CXXCPP needs to be expanded
13161: for CXXCPP in "$CXX -E" "/lib/cpp"
13162: do
13163: ac_preproc_ok=false
13164: for ac_cxx_preproc_warn_flag in '' yes
13165: do
13166: # Use a header file that comes with gcc, so configuring glibc
13167: # with a fresh cross-compiler works.
13168: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13169: # <limits.h> exists even on freestanding compilers.
13170: # On the NeXT, cc -E runs the code through the compiler's parser,
13171: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13172: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13173: /* end confdefs.h. */
13174: #ifdef __STDC__
13175: # include <limits.h>
13176: #else
13177: # include <assert.h>
13178: #endif
13179: Syntax error
13180: _ACEOF
1.150 moko 13181: if ac_fn_cxx_try_cpp "$LINENO"; then :
13182:
1.128 moko 13183: else
13184: # Broken: fails on valid input.
13185: continue
13186: fi
1.150 moko 13187: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13188:
1.150 moko 13189: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13190: # can be detected and how.
1.150 moko 13191: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13192: /* end confdefs.h. */
13193: #include <ac_nonexistent.h>
13194: _ACEOF
1.150 moko 13195: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13196: # Broken: success on invalid input.
13197: continue
13198: else
13199: # Passes both tests.
13200: ac_preproc_ok=:
13201: break
13202: fi
1.150 moko 13203: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13204:
13205: done
13206: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13207: rm -f conftest.i conftest.err conftest.$ac_ext
13208: if $ac_preproc_ok; then :
1.128 moko 13209: break
13210: fi
13211:
13212: done
13213: ac_cv_prog_CXXCPP=$CXXCPP
13214:
13215: fi
13216: CXXCPP=$ac_cv_prog_CXXCPP
13217: else
13218: ac_cv_prog_CXXCPP=$CXXCPP
13219: fi
1.150 moko 13220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13221: $as_echo "$CXXCPP" >&6; }
1.128 moko 13222: ac_preproc_ok=false
13223: for ac_cxx_preproc_warn_flag in '' yes
13224: do
13225: # Use a header file that comes with gcc, so configuring glibc
13226: # with a fresh cross-compiler works.
13227: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13228: # <limits.h> exists even on freestanding compilers.
13229: # On the NeXT, cc -E runs the code through the compiler's parser,
13230: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13231: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13232: /* end confdefs.h. */
13233: #ifdef __STDC__
13234: # include <limits.h>
13235: #else
13236: # include <assert.h>
13237: #endif
13238: Syntax error
13239: _ACEOF
1.150 moko 13240: if ac_fn_cxx_try_cpp "$LINENO"; then :
13241:
1.128 moko 13242: else
13243: # Broken: fails on valid input.
13244: continue
13245: fi
1.150 moko 13246: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13247:
1.150 moko 13248: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13249: # can be detected and how.
1.150 moko 13250: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13251: /* end confdefs.h. */
13252: #include <ac_nonexistent.h>
13253: _ACEOF
1.150 moko 13254: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13255: # Broken: success on invalid input.
13256: continue
13257: else
13258: # Passes both tests.
13259: ac_preproc_ok=:
13260: break
13261: fi
1.150 moko 13262: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13263:
13264: done
13265: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13266: rm -f conftest.i conftest.err conftest.$ac_ext
13267: if $ac_preproc_ok; then :
13268:
1.128 moko 13269: else
1.150 moko 13270: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13271: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13272: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13273: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 13274: fi
13275:
13276: ac_ext=c
13277: ac_cpp='$CPP $CPPFLAGS'
13278: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13279: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13280: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13281:
13282: else
13283: _lt_caught_CXX_error=yes
13284: fi
13285:
1.150 moko 13286: ac_ext=cpp
1.128 moko 13287: ac_cpp='$CXXCPP $CPPFLAGS'
13288: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13289: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13290: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13291:
13292: archive_cmds_need_lc_CXX=no
13293: allow_undefined_flag_CXX=
13294: always_export_symbols_CXX=no
13295: archive_expsym_cmds_CXX=
13296: compiler_needs_object_CXX=no
13297: export_dynamic_flag_spec_CXX=
13298: hardcode_direct_CXX=no
13299: hardcode_direct_absolute_CXX=no
13300: hardcode_libdir_flag_spec_CXX=
13301: hardcode_libdir_separator_CXX=
13302: hardcode_minus_L_CXX=no
13303: hardcode_shlibpath_var_CXX=unsupported
13304: hardcode_automatic_CXX=no
13305: inherit_rpath_CXX=no
13306: module_cmds_CXX=
13307: module_expsym_cmds_CXX=
13308: link_all_deplibs_CXX=unknown
13309: old_archive_cmds_CXX=$old_archive_cmds
13310: reload_flag_CXX=$reload_flag
13311: reload_cmds_CXX=$reload_cmds
13312: no_undefined_flag_CXX=
13313: whole_archive_flag_spec_CXX=
13314: enable_shared_with_static_runtimes_CXX=no
13315:
13316: # Source file extension for C++ test sources.
13317: ac_ext=cpp
13318:
13319: # Object file extension for compiled C++ test sources.
13320: objext=o
13321: objext_CXX=$objext
13322:
13323: # No sense in running all these tests if we already determined that
13324: # the CXX compiler isn't working. Some variables (like enable_shared)
13325: # are currently assumed to apply to all compilers on this platform,
13326: # and will be corrupted by setting them based on a non-working compiler.
13327: if test "$_lt_caught_CXX_error" != yes; then
13328: # Code to be used in simple compile tests
13329: lt_simple_compile_test_code="int some_variable = 0;"
13330:
13331: # Code to be used in simple link tests
13332: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13333:
13334: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13335:
13336:
13337:
13338:
13339:
13340:
13341: # If no C compiler was specified, use CC.
13342: LTCC=${LTCC-"$CC"}
13343:
13344: # If no C compiler flags were specified, use CFLAGS.
13345: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13346:
13347: # Allow CC to be a program name with arguments.
13348: compiler=$CC
13349:
13350:
13351: # save warnings/boilerplate of simple test code
13352: ac_outfile=conftest.$ac_objext
13353: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13354: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13355: _lt_compiler_boilerplate=`cat conftest.err`
13356: $RM conftest*
13357:
13358: ac_outfile=conftest.$ac_objext
13359: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13360: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13361: _lt_linker_boilerplate=`cat conftest.err`
13362: $RM -r conftest*
13363:
13364:
13365: # Allow CC to be a program name with arguments.
13366: lt_save_CC=$CC
13367: lt_save_CFLAGS=$CFLAGS
13368: lt_save_LD=$LD
13369: lt_save_GCC=$GCC
13370: GCC=$GXX
13371: lt_save_with_gnu_ld=$with_gnu_ld
13372: lt_save_path_LD=$lt_cv_path_LD
13373: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13374: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13375: else
13376: $as_unset lt_cv_prog_gnu_ld
13377: fi
13378: if test -n "${lt_cv_path_LDCXX+set}"; then
13379: lt_cv_path_LD=$lt_cv_path_LDCXX
13380: else
13381: $as_unset lt_cv_path_LD
13382: fi
13383: test -z "${LDCXX+set}" || LD=$LDCXX
13384: CC=${CXX-"c++"}
13385: CFLAGS=$CXXFLAGS
13386: compiler=$CC
13387: compiler_CXX=$CC
13388: for cc_temp in $compiler""; do
13389: case $cc_temp in
13390: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13391: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13392: \-*) ;;
13393: *) break;;
13394: esac
13395: done
13396: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13397:
13398:
13399: if test -n "$compiler"; then
13400: # We don't want -fno-exception when compiling C++ code, so set the
13401: # no_builtin_flag separately
13402: if test "$GXX" = yes; then
13403: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13404: else
13405: lt_prog_compiler_no_builtin_flag_CXX=
13406: fi
13407:
13408: if test "$GXX" = yes; then
13409: # Set up default GNU C++ configuration
13410:
13411:
13412:
1.150 moko 13413: # Check whether --with-gnu-ld was given.
13414: if test "${with_gnu_ld+set}" = set; then :
13415: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13416: else
13417: with_gnu_ld=no
1.150 moko 13418: fi
13419:
1.128 moko 13420: ac_prog=ld
13421: if test "$GCC" = yes; then
13422: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13424: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13425: case $host in
13426: *-*-mingw*)
13427: # gcc leaves a trailing carriage return which upsets mingw
13428: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13429: *)
13430: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13431: esac
13432: case $ac_prog in
13433: # Accept absolute paths.
13434: [\\/]* | ?:[\\/]*)
13435: re_direlt='/[^/][^/]*/\.\./'
13436: # Canonicalize the pathname of ld
13437: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13438: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13439: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13440: done
13441: test -z "$LD" && LD="$ac_prog"
13442: ;;
13443: "")
13444: # If it fails, then pretend we aren't using GCC.
13445: ac_prog=ld
13446: ;;
13447: *)
13448: # If it is relative, then search for the first ld in PATH.
13449: with_gnu_ld=unknown
13450: ;;
13451: esac
13452: elif test "$with_gnu_ld" = yes; then
1.150 moko 13453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13454: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13455: else
1.150 moko 13456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13457: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13458: fi
1.150 moko 13459: if ${lt_cv_path_LD+:} false; then :
13460: $as_echo_n "(cached) " >&6
1.128 moko 13461: else
13462: if test -z "$LD"; then
13463: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13464: for ac_dir in $PATH; do
13465: IFS="$lt_save_ifs"
13466: test -z "$ac_dir" && ac_dir=.
13467: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13468: lt_cv_path_LD="$ac_dir/$ac_prog"
13469: # Check to see if the program is GNU ld. I'd rather use --version,
13470: # but apparently some variants of GNU ld only accept -v.
13471: # Break only if it was the GNU/non-GNU ld that we prefer.
13472: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13473: *GNU* | *'with BFD'*)
13474: test "$with_gnu_ld" != no && break
13475: ;;
13476: *)
13477: test "$with_gnu_ld" != yes && break
13478: ;;
13479: esac
13480: fi
13481: done
13482: IFS="$lt_save_ifs"
13483: else
13484: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13485: fi
13486: fi
13487:
13488: LD="$lt_cv_path_LD"
13489: if test -n "$LD"; then
1.150 moko 13490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13491: $as_echo "$LD" >&6; }
1.128 moko 13492: else
1.150 moko 13493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494: $as_echo "no" >&6; }
1.128 moko 13495: fi
1.150 moko 13496: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13498: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13499: if ${lt_cv_prog_gnu_ld+:} false; then :
13500: $as_echo_n "(cached) " >&6
1.128 moko 13501: else
13502: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13503: case `$LD -v 2>&1 </dev/null` in
13504: *GNU* | *'with BFD'*)
13505: lt_cv_prog_gnu_ld=yes
13506: ;;
13507: *)
13508: lt_cv_prog_gnu_ld=no
13509: ;;
13510: esac
13511: fi
1.150 moko 13512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13513: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13514: with_gnu_ld=$lt_cv_prog_gnu_ld
13515:
13516:
13517:
13518:
13519:
13520:
13521:
13522: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13523: # archiving commands below assume that GNU ld is being used.
13524: if test "$with_gnu_ld" = yes; then
13525: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13526: 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'
13527:
13528: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13529: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13530:
13531: # If archive_cmds runs LD, not CC, wlarc should be empty
13532: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13533: # investigate it a little bit more. (MM)
13534: wlarc='${wl}'
13535:
13536: # ancient GNU ld didn't support --whole-archive et. al.
13537: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13538: $GREP 'no-whole-archive' > /dev/null; then
13539: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13540: else
13541: whole_archive_flag_spec_CXX=
13542: fi
13543: else
13544: with_gnu_ld=no
13545: wlarc=
13546:
13547: # A generic and very simple default shared library creation
13548: # command for GNU C++ for the case where it uses the native
13549: # linker, instead of GNU ld. If possible, this setting should
13550: # overridden to take advantage of the native linker features on
13551: # the platform it is being used on.
13552: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13553: fi
13554:
13555: # Commands to make compiler produce verbose output that lists
13556: # what "hidden" libraries, object files and flags are used when
13557: # linking a shared library.
13558: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13559:
13560: else
13561: GXX=no
13562: with_gnu_ld=no
13563: wlarc=
13564: fi
13565:
13566: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13568: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13569: ld_shlibs_CXX=yes
13570: case $host_os in
13571: aix3*)
13572: # FIXME: insert proper C++ library support
13573: ld_shlibs_CXX=no
13574: ;;
13575: aix[4-9]*)
13576: if test "$host_cpu" = ia64; then
13577: # On IA64, the linker does run time linking by default, so we don't
13578: # have to do anything special.
13579: aix_use_runtimelinking=no
13580: exp_sym_flag='-Bexport'
13581: no_entry_flag=""
13582: else
13583: aix_use_runtimelinking=no
13584:
13585: # Test if we are trying to use run time linking or normal
13586: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13587: # need to do runtime linking.
13588: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13589: for ld_flag in $LDFLAGS; do
13590: case $ld_flag in
13591: *-brtl*)
13592: aix_use_runtimelinking=yes
13593: break
13594: ;;
13595: esac
13596: done
13597: ;;
13598: esac
13599:
13600: exp_sym_flag='-bexport'
13601: no_entry_flag='-bnoentry'
13602: fi
13603:
13604: # When large executables or shared objects are built, AIX ld can
13605: # have problems creating the table of contents. If linking a library
13606: # or program results in "error TOC overflow" add -mminimal-toc to
13607: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13608: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13609:
13610: archive_cmds_CXX=''
13611: hardcode_direct_CXX=yes
13612: hardcode_direct_absolute_CXX=yes
13613: hardcode_libdir_separator_CXX=':'
13614: link_all_deplibs_CXX=yes
13615: file_list_spec_CXX='${wl}-f,'
13616:
13617: if test "$GXX" = yes; then
13618: case $host_os in aix4.[012]|aix4.[012].*)
13619: # We only want to do this on AIX 4.2 and lower, the check
13620: # below for broken collect2 doesn't work under 4.3+
13621: collect2name=`${CC} -print-prog-name=collect2`
13622: if test -f "$collect2name" &&
13623: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13624: then
13625: # We have reworked collect2
13626: :
13627: else
13628: # We have old collect2
13629: hardcode_direct_CXX=unsupported
13630: # It fails to find uninstalled libraries when the uninstalled
13631: # path is not listed in the libpath. Setting hardcode_minus_L
13632: # to unsupported forces relinking
13633: hardcode_minus_L_CXX=yes
13634: hardcode_libdir_flag_spec_CXX='-L$libdir'
13635: hardcode_libdir_separator_CXX=
13636: fi
13637: esac
13638: shared_flag='-shared'
13639: if test "$aix_use_runtimelinking" = yes; then
13640: shared_flag="$shared_flag "'${wl}-G'
13641: fi
13642: else
13643: # not using gcc
13644: if test "$host_cpu" = ia64; then
13645: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13646: # chokes on -Wl,-G. The following line is correct:
13647: shared_flag='-G'
13648: else
13649: if test "$aix_use_runtimelinking" = yes; then
13650: shared_flag='${wl}-G'
13651: else
13652: shared_flag='${wl}-bM:SRE'
13653: fi
13654: fi
13655: fi
13656:
13657: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13658: # It seems that -bexpall does not export symbols beginning with
13659: # underscore (_), so it is better to generate a list of symbols to
13660: # export.
13661: always_export_symbols_CXX=yes
13662: if test "$aix_use_runtimelinking" = yes; then
13663: # Warning - without using the other runtime loading flags (-brtl),
13664: # -berok will link without error, but may produce a broken library.
13665: allow_undefined_flag_CXX='-berok'
13666: # Determine the default libpath from the value encoded in an empty
13667: # executable.
13668: if test "${lt_cv_aix_libpath+set}" = set; then
13669: aix_libpath=$lt_cv_aix_libpath
13670: else
1.150 moko 13671: if ${lt_cv_aix_libpath__CXX+:} false; then :
13672: $as_echo_n "(cached) " >&6
1.128 moko 13673: else
1.150 moko 13674: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13675: /* end confdefs.h. */
13676:
13677: int
13678: main ()
13679: {
13680:
13681: ;
13682: return 0;
13683: }
13684: _ACEOF
1.150 moko 13685: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13686:
13687: lt_aix_libpath_sed='
13688: /Import File Strings/,/^$/ {
13689: /^0/ {
13690: s/^0 *\([^ ]*\) *$/\1/
13691: p
13692: }
13693: }'
13694: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13695: # Check for a 64-bit object if we didn't find anything.
13696: if test -z "$lt_cv_aix_libpath__CXX"; then
13697: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13698: fi
13699: fi
1.150 moko 13700: rm -f core conftest.err conftest.$ac_objext \
13701: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13702: if test -z "$lt_cv_aix_libpath__CXX"; then
13703: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13704: fi
13705:
13706: fi
13707:
13708: aix_libpath=$lt_cv_aix_libpath__CXX
13709: fi
13710:
13711: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13712:
13713: 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"
13714: else
13715: if test "$host_cpu" = ia64; then
13716: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13717: allow_undefined_flag_CXX="-z nodefs"
13718: 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"
13719: else
13720: # Determine the default libpath from the value encoded in an
13721: # empty executable.
13722: if test "${lt_cv_aix_libpath+set}" = set; then
13723: aix_libpath=$lt_cv_aix_libpath
13724: else
1.150 moko 13725: if ${lt_cv_aix_libpath__CXX+:} false; then :
13726: $as_echo_n "(cached) " >&6
1.128 moko 13727: else
1.150 moko 13728: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13729: /* end confdefs.h. */
13730:
13731: int
13732: main ()
13733: {
13734:
13735: ;
13736: return 0;
13737: }
13738: _ACEOF
1.150 moko 13739: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13740:
13741: lt_aix_libpath_sed='
13742: /Import File Strings/,/^$/ {
13743: /^0/ {
13744: s/^0 *\([^ ]*\) *$/\1/
13745: p
13746: }
13747: }'
13748: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13749: # Check for a 64-bit object if we didn't find anything.
13750: if test -z "$lt_cv_aix_libpath__CXX"; then
13751: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13752: fi
13753: fi
1.150 moko 13754: rm -f core conftest.err conftest.$ac_objext \
13755: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13756: if test -z "$lt_cv_aix_libpath__CXX"; then
13757: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13758: fi
13759:
13760: fi
13761:
13762: aix_libpath=$lt_cv_aix_libpath__CXX
13763: fi
13764:
13765: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13766: # Warning - without using the other run time loading flags,
13767: # -berok will link without error, but may produce a broken library.
13768: no_undefined_flag_CXX=' ${wl}-bernotok'
13769: allow_undefined_flag_CXX=' ${wl}-berok'
13770: if test "$with_gnu_ld" = yes; then
13771: # We only use this code for GNU lds that support --whole-archive.
13772: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13773: else
13774: # Exported symbols can be pulled into shared objects from archives
13775: whole_archive_flag_spec_CXX='$convenience'
13776: fi
13777: archive_cmds_need_lc_CXX=yes
13778: # This is similar to how AIX traditionally builds its shared
13779: # libraries.
13780: 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'
13781: fi
13782: fi
13783: ;;
13784:
13785: beos*)
13786: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13787: allow_undefined_flag_CXX=unsupported
13788: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13789: # support --undefined. This deserves some investigation. FIXME
13790: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13791: else
13792: ld_shlibs_CXX=no
13793: fi
13794: ;;
13795:
13796: chorus*)
13797: case $cc_basename in
13798: *)
13799: # FIXME: insert proper C++ library support
13800: ld_shlibs_CXX=no
13801: ;;
13802: esac
13803: ;;
13804:
13805: cygwin* | mingw* | pw32* | cegcc*)
13806: case $GXX,$cc_basename in
13807: ,cl* | no,cl*)
13808: # Native MSVC
13809: # hardcode_libdir_flag_spec is actually meaningless, as there is
13810: # no search path for DLLs.
13811: hardcode_libdir_flag_spec_CXX=' '
13812: allow_undefined_flag_CXX=unsupported
13813: always_export_symbols_CXX=yes
13814: file_list_spec_CXX='@'
13815: # Tell ltmain to make .lib files, not .a files.
13816: libext=lib
13817: # Tell ltmain to make .dll files, not .so files.
13818: shrext_cmds=".dll"
13819: # FIXME: Setting linknames here is a bad hack.
13820: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13821: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13822: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13823: else
13824: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13825: fi~
13826: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13827: linknames='
13828: # The linker will not automatically build a static lib if we build a DLL.
13829: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13830: enable_shared_with_static_runtimes_CXX=yes
13831: # Don't use ranlib
13832: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13833: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13834: lt_tool_outputfile="@TOOL_OUTPUT@"~
13835: case $lt_outputfile in
13836: *.exe|*.EXE) ;;
13837: *)
13838: lt_outputfile="$lt_outputfile.exe"
13839: lt_tool_outputfile="$lt_tool_outputfile.exe"
13840: ;;
13841: esac~
13842: func_to_tool_file "$lt_outputfile"~
13843: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13844: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13845: $RM "$lt_outputfile.manifest";
13846: fi'
13847: ;;
13848: *)
13849: # g++
13850: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13851: # as there is no search path for DLLs.
13852: hardcode_libdir_flag_spec_CXX='-L$libdir'
13853: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13854: allow_undefined_flag_CXX=unsupported
13855: always_export_symbols_CXX=no
13856: enable_shared_with_static_runtimes_CXX=yes
13857:
13858: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13859: 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'
13860: # If the export-symbols file already is a .def file (1st line
13861: # is EXPORTS), use it as is; otherwise, prepend...
13862: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13863: cp $export_symbols $output_objdir/$soname.def;
13864: else
13865: echo EXPORTS > $output_objdir/$soname.def;
13866: cat $export_symbols >> $output_objdir/$soname.def;
13867: fi~
13868: $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'
13869: else
13870: ld_shlibs_CXX=no
13871: fi
13872: ;;
13873: esac
13874: ;;
13875: darwin* | rhapsody*)
13876:
13877:
13878: archive_cmds_need_lc_CXX=no
13879: hardcode_direct_CXX=no
13880: hardcode_automatic_CXX=yes
13881: hardcode_shlibpath_var_CXX=unsupported
13882: if test "$lt_cv_ld_force_load" = "yes"; then
13883: 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\"`'
13884:
13885: else
13886: whole_archive_flag_spec_CXX=''
13887: fi
13888: link_all_deplibs_CXX=yes
13889: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13890: case $cc_basename in
13891: ifort*) _lt_dar_can_shared=yes ;;
13892: *) _lt_dar_can_shared=$GCC ;;
13893: esac
13894: if test "$_lt_dar_can_shared" = "yes"; then
13895: output_verbose_link_cmd=func_echo_all
13896: 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}"
13897: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13898: 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}"
13899: 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}"
13900: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13901: 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}"
13902: 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}"
13903: fi
13904:
13905: else
13906: ld_shlibs_CXX=no
13907: fi
13908:
13909: ;;
13910:
13911: dgux*)
13912: case $cc_basename in
13913: ec++*)
13914: # FIXME: insert proper C++ library support
13915: ld_shlibs_CXX=no
13916: ;;
13917: ghcx*)
13918: # Green Hills C++ Compiler
13919: # FIXME: insert proper C++ library support
13920: ld_shlibs_CXX=no
13921: ;;
13922: *)
13923: # FIXME: insert proper C++ library support
13924: ld_shlibs_CXX=no
13925: ;;
13926: esac
13927: ;;
13928:
13929: freebsd2.*)
13930: # C++ shared libraries reported to be fairly broken before
13931: # switch to ELF
13932: ld_shlibs_CXX=no
13933: ;;
13934:
13935: freebsd-elf*)
13936: archive_cmds_need_lc_CXX=no
13937: ;;
13938:
13939: freebsd* | dragonfly*)
13940: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13941: # conventions
13942: ld_shlibs_CXX=yes
13943: ;;
13944:
13945: gnu*)
13946: ;;
13947:
13948: haiku*)
13949: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13950: link_all_deplibs_CXX=yes
13951: ;;
13952:
13953: hpux9*)
13954: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13955: hardcode_libdir_separator_CXX=:
13956: export_dynamic_flag_spec_CXX='${wl}-E'
13957: hardcode_direct_CXX=yes
13958: hardcode_minus_L_CXX=yes # Not in the search PATH,
13959: # but as the default
13960: # location of the library.
13961:
13962: case $cc_basename in
13963: CC*)
13964: # FIXME: insert proper C++ library support
13965: ld_shlibs_CXX=no
13966: ;;
13967: aCC*)
13968: 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'
13969: # Commands to make compiler produce verbose output that lists
13970: # what "hidden" libraries, object files and flags are used when
13971: # linking a shared library.
13972: #
13973: # There doesn't appear to be a way to prevent this compiler from
13974: # explicitly linking system object files so we need to strip them
13975: # from the output so that they don't get included in the library
13976: # dependencies.
13977: 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"'
13978: ;;
13979: *)
13980: if test "$GXX" = yes; then
13981: 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'
13982: else
13983: # FIXME: insert proper C++ library support
13984: ld_shlibs_CXX=no
13985: fi
13986: ;;
13987: esac
13988: ;;
13989:
13990: hpux10*|hpux11*)
13991: if test $with_gnu_ld = no; then
13992: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13993: hardcode_libdir_separator_CXX=:
13994:
13995: case $host_cpu in
13996: hppa*64*|ia64*)
13997: ;;
13998: *)
13999: export_dynamic_flag_spec_CXX='${wl}-E'
14000: ;;
14001: esac
14002: fi
14003: case $host_cpu in
14004: hppa*64*|ia64*)
14005: hardcode_direct_CXX=no
14006: hardcode_shlibpath_var_CXX=no
14007: ;;
14008: *)
14009: hardcode_direct_CXX=yes
14010: hardcode_direct_absolute_CXX=yes
14011: hardcode_minus_L_CXX=yes # Not in the search PATH,
14012: # but as the default
14013: # location of the library.
14014: ;;
14015: esac
14016:
14017: case $cc_basename in
14018: CC*)
14019: # FIXME: insert proper C++ library support
14020: ld_shlibs_CXX=no
14021: ;;
14022: aCC*)
14023: case $host_cpu in
14024: hppa*64*)
14025: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14026: ;;
14027: ia64*)
14028: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14029: ;;
14030: *)
14031: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14032: ;;
14033: esac
14034: # Commands to make compiler produce verbose output that lists
14035: # what "hidden" libraries, object files and flags are used when
14036: # linking a shared library.
14037: #
14038: # There doesn't appear to be a way to prevent this compiler from
14039: # explicitly linking system object files so we need to strip them
14040: # from the output so that they don't get included in the library
14041: # dependencies.
14042: 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"'
14043: ;;
14044: *)
14045: if test "$GXX" = yes; then
14046: if test $with_gnu_ld = no; then
14047: case $host_cpu in
14048: hppa*64*)
14049: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14050: ;;
14051: ia64*)
14052: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14053: ;;
14054: *)
14055: 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'
14056: ;;
14057: esac
14058: fi
14059: else
14060: # FIXME: insert proper C++ library support
14061: ld_shlibs_CXX=no
14062: fi
14063: ;;
14064: esac
14065: ;;
14066:
14067: interix[3-9]*)
14068: hardcode_direct_CXX=no
14069: hardcode_shlibpath_var_CXX=no
14070: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14071: export_dynamic_flag_spec_CXX='${wl}-E'
14072: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14073: # Instead, shared libraries are loaded at an image base (0x10000000 by
14074: # default) and relocated if they conflict, which is a slow very memory
14075: # consuming and fragmenting process. To avoid this, we pick a random,
14076: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14077: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14078: 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'
14079: 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'
14080: ;;
14081: irix5* | irix6*)
14082: case $cc_basename in
14083: CC*)
14084: # SGI C++
14085: 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'
14086:
14087: # Archives containing C++ object files must be created using
14088: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14089: # necessary to make sure instantiated templates are included
14090: # in the archive.
14091: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14092: ;;
14093: *)
14094: if test "$GXX" = yes; then
14095: if test "$with_gnu_ld" = no; then
14096: 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'
14097: else
14098: 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'
14099: fi
14100: fi
14101: link_all_deplibs_CXX=yes
14102: ;;
14103: esac
14104: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14105: hardcode_libdir_separator_CXX=:
14106: inherit_rpath_CXX=yes
14107: ;;
14108:
14109: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14110: case $cc_basename in
14111: KCC*)
14112: # Kuck and Associates, Inc. (KAI) C++ Compiler
14113:
14114: # KCC will only create a shared library if the output file
14115: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14116: # to its proper name (with version) after linking.
14117: 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'
14118: 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'
14119: # Commands to make compiler produce verbose output that lists
14120: # what "hidden" libraries, object files and flags are used when
14121: # linking a shared library.
14122: #
14123: # There doesn't appear to be a way to prevent this compiler from
14124: # explicitly linking system object files so we need to strip them
14125: # from the output so that they don't get included in the library
14126: # dependencies.
14127: 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"'
14128:
14129: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14130: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14131:
14132: # Archives containing C++ object files must be created using
14133: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14134: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14135: ;;
14136: icpc* | ecpc* )
14137: # Intel C++
14138: with_gnu_ld=yes
14139: # version 8.0 and above of icpc choke on multiply defined symbols
14140: # if we add $predep_objects and $postdep_objects, however 7.1 and
14141: # earlier do not add the objects themselves.
14142: case `$CC -V 2>&1` in
14143: *"Version 7."*)
14144: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14145: 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'
14146: ;;
14147: *) # Version 8.0 or newer
14148: tmp_idyn=
14149: case $host_cpu in
14150: ia64*) tmp_idyn=' -i_dynamic';;
14151: esac
14152: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14153: 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'
14154: ;;
14155: esac
14156: archive_cmds_need_lc_CXX=no
14157: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14158: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14159: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14160: ;;
14161: pgCC* | pgcpp*)
14162: # Portland Group C++ compiler
14163: case `$CC -V` in
14164: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14165: prelink_cmds_CXX='tpldir=Template.dir~
14166: rm -rf $tpldir~
14167: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14168: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14169: old_archive_cmds_CXX='tpldir=Template.dir~
14170: rm -rf $tpldir~
14171: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14172: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14173: $RANLIB $oldlib'
14174: archive_cmds_CXX='tpldir=Template.dir~
14175: rm -rf $tpldir~
14176: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14177: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14178: archive_expsym_cmds_CXX='tpldir=Template.dir~
14179: rm -rf $tpldir~
14180: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14181: $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'
14182: ;;
14183: *) # Version 6 and above use weak symbols
14184: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14185: 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'
14186: ;;
14187: esac
14188:
14189: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14190: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14191: 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'
14192: ;;
14193: cxx*)
14194: # Compaq C++
14195: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14196: 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'
14197:
14198: runpath_var=LD_RUN_PATH
14199: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14200: hardcode_libdir_separator_CXX=:
14201:
14202: # Commands to make compiler produce verbose output that lists
14203: # what "hidden" libraries, object files and flags are used when
14204: # linking a shared library.
14205: #
14206: # There doesn't appear to be a way to prevent this compiler from
14207: # explicitly linking system object files so we need to strip them
14208: # from the output so that they don't get included in the library
14209: # dependencies.
14210: 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'
14211: ;;
14212: xl* | mpixl* | bgxl*)
14213: # IBM XL 8.0 on PPC, with GNU ld
14214: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14215: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14216: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14217: if test "x$supports_anon_versioning" = xyes; then
14218: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14219: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14220: echo "local: *; };" >> $output_objdir/$libname.ver~
14221: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14222: fi
14223: ;;
14224: *)
14225: case `$CC -V 2>&1 | sed 5q` in
14226: *Sun\ C*)
14227: # Sun C++ 5.9
14228: no_undefined_flag_CXX=' -zdefs'
14229: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14230: 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'
14231: hardcode_libdir_flag_spec_CXX='-R$libdir'
14232: 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'
14233: compiler_needs_object_CXX=yes
14234:
14235: # Not sure whether something based on
14236: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14237: # would be better.
14238: output_verbose_link_cmd='func_echo_all'
14239:
14240: # Archives containing C++ object files must be created using
14241: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14242: # necessary to make sure instantiated templates are included
14243: # in the archive.
14244: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14245: ;;
14246: esac
14247: ;;
14248: esac
14249: ;;
14250:
14251: lynxos*)
14252: # FIXME: insert proper C++ library support
14253: ld_shlibs_CXX=no
14254: ;;
14255:
14256: m88k*)
14257: # FIXME: insert proper C++ library support
14258: ld_shlibs_CXX=no
14259: ;;
14260:
14261: mvs*)
14262: case $cc_basename in
14263: cxx*)
14264: # FIXME: insert proper C++ library support
14265: ld_shlibs_CXX=no
14266: ;;
14267: *)
14268: # FIXME: insert proper C++ library support
14269: ld_shlibs_CXX=no
14270: ;;
14271: esac
14272: ;;
14273:
14274: netbsd*)
14275: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14276: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14277: wlarc=
14278: hardcode_libdir_flag_spec_CXX='-R$libdir'
14279: hardcode_direct_CXX=yes
14280: hardcode_shlibpath_var_CXX=no
14281: fi
14282: # Workaround some broken pre-1.5 toolchains
14283: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14284: ;;
14285:
14286: *nto* | *qnx*)
14287: ld_shlibs_CXX=yes
14288: ;;
14289:
14290: openbsd2*)
14291: # C++ shared libraries are fairly broken
14292: ld_shlibs_CXX=no
14293: ;;
14294:
14295: openbsd*)
14296: if test -f /usr/libexec/ld.so; then
14297: hardcode_direct_CXX=yes
14298: hardcode_shlibpath_var_CXX=no
14299: hardcode_direct_absolute_CXX=yes
14300: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14301: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14302: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14303: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14304: export_dynamic_flag_spec_CXX='${wl}-E'
14305: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14306: fi
14307: output_verbose_link_cmd=func_echo_all
14308: else
14309: ld_shlibs_CXX=no
14310: fi
14311: ;;
14312:
14313: osf3* | osf4* | osf5*)
14314: case $cc_basename in
14315: KCC*)
14316: # Kuck and Associates, Inc. (KAI) C++ Compiler
14317:
14318: # KCC will only create a shared library if the output file
14319: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14320: # to its proper name (with version) after linking.
14321: 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'
14322:
14323: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14324: hardcode_libdir_separator_CXX=:
14325:
14326: # Archives containing C++ object files must be created using
14327: # the KAI C++ compiler.
14328: case $host in
14329: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14330: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14331: esac
14332: ;;
14333: RCC*)
14334: # Rational C++ 2.4.1
14335: # FIXME: insert proper C++ library support
14336: ld_shlibs_CXX=no
14337: ;;
14338: cxx*)
14339: case $host in
14340: osf3*)
14341: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14342: 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'
14343: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14344: ;;
14345: *)
14346: allow_undefined_flag_CXX=' -expect_unresolved \*'
14347: 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'
14348: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14349: echo "-hidden">> $lib.exp~
14350: $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~
14351: $RM $lib.exp'
14352: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14353: ;;
14354: esac
14355:
14356: hardcode_libdir_separator_CXX=:
14357:
14358: # Commands to make compiler produce verbose output that lists
14359: # what "hidden" libraries, object files and flags are used when
14360: # linking a shared library.
14361: #
14362: # There doesn't appear to be a way to prevent this compiler from
14363: # explicitly linking system object files so we need to strip them
14364: # from the output so that they don't get included in the library
14365: # dependencies.
14366: 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"'
14367: ;;
14368: *)
14369: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14370: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14371: case $host in
14372: osf3*)
14373: 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'
14374: ;;
14375: *)
14376: 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'
14377: ;;
14378: esac
14379:
14380: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14381: hardcode_libdir_separator_CXX=:
14382:
14383: # Commands to make compiler produce verbose output that lists
14384: # what "hidden" libraries, object files and flags are used when
14385: # linking a shared library.
14386: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14387:
14388: else
14389: # FIXME: insert proper C++ library support
14390: ld_shlibs_CXX=no
14391: fi
14392: ;;
14393: esac
14394: ;;
14395:
14396: psos*)
14397: # FIXME: insert proper C++ library support
14398: ld_shlibs_CXX=no
14399: ;;
14400:
14401: sunos4*)
14402: case $cc_basename in
14403: CC*)
14404: # Sun C++ 4.x
14405: # FIXME: insert proper C++ library support
14406: ld_shlibs_CXX=no
14407: ;;
14408: lcc*)
14409: # Lucid
14410: # FIXME: insert proper C++ library support
14411: ld_shlibs_CXX=no
14412: ;;
14413: *)
14414: # FIXME: insert proper C++ library support
14415: ld_shlibs_CXX=no
14416: ;;
14417: esac
14418: ;;
14419:
14420: solaris*)
14421: case $cc_basename in
14422: CC* | sunCC*)
14423: # Sun C++ 4.2, 5.x and Centerline C++
14424: archive_cmds_need_lc_CXX=yes
14425: no_undefined_flag_CXX=' -zdefs'
14426: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14427: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14428: $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'
14429:
14430: hardcode_libdir_flag_spec_CXX='-R$libdir'
14431: hardcode_shlibpath_var_CXX=no
14432: case $host_os in
14433: solaris2.[0-5] | solaris2.[0-5].*) ;;
14434: *)
14435: # The compiler driver will combine and reorder linker options,
14436: # but understands `-z linker_flag'.
14437: # Supported since Solaris 2.6 (maybe 2.5.1?)
14438: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14439: ;;
14440: esac
14441: link_all_deplibs_CXX=yes
14442:
14443: output_verbose_link_cmd='func_echo_all'
14444:
14445: # Archives containing C++ object files must be created using
14446: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14447: # necessary to make sure instantiated templates are included
14448: # in the archive.
14449: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14450: ;;
14451: gcx*)
14452: # Green Hills C++ Compiler
14453: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14454:
14455: # The C++ compiler must be used to create the archive.
14456: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14457: ;;
14458: *)
14459: # GNU C++ compiler with Solaris linker
14460: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14461: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14462: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14463: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14464: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14465: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14466:
14467: # Commands to make compiler produce verbose output that lists
14468: # what "hidden" libraries, object files and flags are used when
14469: # linking a shared library.
14470: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14471: else
14472: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14473: # platform.
14474: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14475: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14476: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14477:
14478: # Commands to make compiler produce verbose output that lists
14479: # what "hidden" libraries, object files and flags are used when
14480: # linking a shared library.
14481: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14482: fi
14483:
14484: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14485: case $host_os in
14486: solaris2.[0-5] | solaris2.[0-5].*) ;;
14487: *)
14488: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14489: ;;
14490: esac
14491: fi
14492: ;;
14493: esac
14494: ;;
14495:
14496: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14497: no_undefined_flag_CXX='${wl}-z,text'
14498: archive_cmds_need_lc_CXX=no
14499: hardcode_shlibpath_var_CXX=no
14500: runpath_var='LD_RUN_PATH'
14501:
14502: case $cc_basename in
14503: CC*)
14504: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14505: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14506: ;;
14507: *)
14508: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14509: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510: ;;
14511: esac
14512: ;;
14513:
14514: sysv5* | sco3.2v5* | sco5v6*)
14515: # Note: We can NOT use -z defs as we might desire, because we do not
14516: # link with -lc, and that would cause any symbols used from libc to
14517: # always be unresolved, which means just about no library would
14518: # ever link correctly. If we're not using GNU ld we use -z text
14519: # though, which does catch some bad symbols but isn't as heavy-handed
14520: # as -z defs.
14521: no_undefined_flag_CXX='${wl}-z,text'
14522: allow_undefined_flag_CXX='${wl}-z,nodefs'
14523: archive_cmds_need_lc_CXX=no
14524: hardcode_shlibpath_var_CXX=no
14525: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14526: hardcode_libdir_separator_CXX=':'
14527: link_all_deplibs_CXX=yes
14528: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14529: runpath_var='LD_RUN_PATH'
14530:
14531: case $cc_basename in
14532: CC*)
14533: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14534: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14536: '"$old_archive_cmds_CXX"
14537: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14538: '"$reload_cmds_CXX"
14539: ;;
14540: *)
14541: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543: ;;
14544: esac
14545: ;;
14546:
14547: tandem*)
14548: case $cc_basename in
14549: NCC*)
14550: # NonStop-UX NCC 3.20
14551: # FIXME: insert proper C++ library support
14552: ld_shlibs_CXX=no
14553: ;;
14554: *)
14555: # FIXME: insert proper C++ library support
14556: ld_shlibs_CXX=no
14557: ;;
14558: esac
14559: ;;
14560:
14561: vxworks*)
14562: # FIXME: insert proper C++ library support
14563: ld_shlibs_CXX=no
14564: ;;
14565:
14566: *)
14567: # FIXME: insert proper C++ library support
14568: ld_shlibs_CXX=no
14569: ;;
14570: esac
14571:
1.150 moko 14572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14573: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14574: test "$ld_shlibs_CXX" = no && can_build_shared=no
14575:
14576: GCC_CXX="$GXX"
14577: LD_CXX="$LD"
14578:
14579: ## CAVEAT EMPTOR:
14580: ## There is no encapsulation within the following macros, do not change
14581: ## the running order or otherwise move them around unless you know exactly
14582: ## what you are doing...
14583: # Dependencies to place before and after the object being linked:
14584: predep_objects_CXX=
14585: postdep_objects_CXX=
14586: predeps_CXX=
14587: postdeps_CXX=
14588: compiler_lib_search_path_CXX=
14589:
14590: cat > conftest.$ac_ext <<_LT_EOF
14591: class Foo
14592: {
14593: public:
14594: Foo (void) { a = 0; }
14595: private:
14596: int a;
14597: };
14598: _LT_EOF
14599:
14600:
14601: _lt_libdeps_save_CFLAGS=$CFLAGS
14602: case "$CC $CFLAGS " in #(
14603: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14604: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14605: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14606: esac
14607:
1.150 moko 14608: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14609: (eval $ac_compile) 2>&5
14610: ac_status=$?
1.150 moko 14611: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612: test $ac_status = 0; }; then
1.128 moko 14613: # Parse the compiler output and extract the necessary
14614: # objects, libraries and library flags.
14615:
14616: # Sentinel used to keep track of whether or not we are before
14617: # the conftest object file.
14618: pre_test_object_deps_done=no
14619:
14620: for p in `eval "$output_verbose_link_cmd"`; do
14621: case ${prev}${p} in
14622:
14623: -L* | -R* | -l*)
14624: # Some compilers place space between "-{L,R}" and the path.
14625: # Remove the space.
14626: if test $p = "-L" ||
14627: test $p = "-R"; then
14628: prev=$p
14629: continue
14630: fi
14631:
14632: # Expand the sysroot to ease extracting the directories later.
14633: if test -z "$prev"; then
14634: case $p in
14635: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14636: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14637: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14638: esac
14639: fi
14640: case $p in
14641: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14642: esac
14643: if test "$pre_test_object_deps_done" = no; then
14644: case ${prev} in
14645: -L | -R)
14646: # Internal compiler library paths should come after those
14647: # provided the user. The postdeps already come after the
14648: # user supplied libs so there is no need to process them.
14649: if test -z "$compiler_lib_search_path_CXX"; then
14650: compiler_lib_search_path_CXX="${prev}${p}"
14651: else
14652: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14653: fi
14654: ;;
14655: # The "-l" case would never come before the object being
14656: # linked, so don't bother handling this case.
14657: esac
14658: else
14659: if test -z "$postdeps_CXX"; then
14660: postdeps_CXX="${prev}${p}"
14661: else
14662: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14663: fi
14664: fi
14665: prev=
14666: ;;
14667:
14668: *.lto.$objext) ;; # Ignore GCC LTO objects
14669: *.$objext)
14670: # This assumes that the test object file only shows up
14671: # once in the compiler output.
14672: if test "$p" = "conftest.$objext"; then
14673: pre_test_object_deps_done=yes
14674: continue
14675: fi
14676:
14677: if test "$pre_test_object_deps_done" = no; then
14678: if test -z "$predep_objects_CXX"; then
14679: predep_objects_CXX="$p"
14680: else
14681: predep_objects_CXX="$predep_objects_CXX $p"
14682: fi
14683: else
14684: if test -z "$postdep_objects_CXX"; then
14685: postdep_objects_CXX="$p"
14686: else
14687: postdep_objects_CXX="$postdep_objects_CXX $p"
14688: fi
14689: fi
14690: ;;
14691:
14692: *) ;; # Ignore the rest.
14693:
14694: esac
14695: done
14696:
14697: # Clean up.
14698: rm -f a.out a.exe
14699: else
14700: echo "libtool.m4: error: problem compiling CXX test program"
14701: fi
14702:
14703: $RM -f confest.$objext
14704: CFLAGS=$_lt_libdeps_save_CFLAGS
14705:
14706: # PORTME: override above test on systems where it is broken
14707: case $host_os in
14708: interix[3-9]*)
14709: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14710: # hack all around it, let's just trust "g++" to DTRT.
14711: predep_objects_CXX=
14712: postdep_objects_CXX=
14713: postdeps_CXX=
14714: ;;
14715:
14716: linux*)
14717: case `$CC -V 2>&1 | sed 5q` in
14718: *Sun\ C*)
14719: # Sun C++ 5.9
14720:
14721: # The more standards-conforming stlport4 library is
14722: # incompatible with the Cstd library. Avoid specifying
14723: # it if it's in CXXFLAGS. Ignore libCrun as
14724: # -library=stlport4 depends on it.
14725: case " $CXX $CXXFLAGS " in
14726: *" -library=stlport4 "*)
14727: solaris_use_stlport4=yes
14728: ;;
14729: esac
14730:
14731: if test "$solaris_use_stlport4" != yes; then
14732: postdeps_CXX='-library=Cstd -library=Crun'
14733: fi
14734: ;;
14735: esac
14736: ;;
14737:
14738: solaris*)
14739: case $cc_basename in
14740: CC* | sunCC*)
14741: # The more standards-conforming stlport4 library is
14742: # incompatible with the Cstd library. Avoid specifying
14743: # it if it's in CXXFLAGS. Ignore libCrun as
14744: # -library=stlport4 depends on it.
14745: case " $CXX $CXXFLAGS " in
14746: *" -library=stlport4 "*)
14747: solaris_use_stlport4=yes
14748: ;;
14749: esac
14750:
14751: # Adding this requires a known-good setup of shared libraries for
14752: # Sun compiler versions before 5.6, else PIC objects from an old
14753: # archive will be linked into the output, leading to subtle bugs.
14754: if test "$solaris_use_stlport4" != yes; then
14755: postdeps_CXX='-library=Cstd -library=Crun'
14756: fi
14757: ;;
14758: esac
14759: ;;
14760: esac
14761:
14762:
14763: case " $postdeps_CXX " in
14764: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14765: esac
14766: compiler_lib_search_dirs_CXX=
14767: if test -n "${compiler_lib_search_path_CXX}"; then
14768: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14769: fi
14770:
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: lt_prog_compiler_wl_CXX=
14802: lt_prog_compiler_pic_CXX=
14803: lt_prog_compiler_static_CXX=
14804:
14805:
14806: # C++ specific cases for pic, static, wl, etc.
14807: if test "$GXX" = yes; then
14808: lt_prog_compiler_wl_CXX='-Wl,'
14809: lt_prog_compiler_static_CXX='-static'
14810:
14811: case $host_os in
14812: aix*)
14813: # All AIX code is PIC.
14814: if test "$host_cpu" = ia64; then
14815: # AIX 5 now supports IA64 processor
14816: lt_prog_compiler_static_CXX='-Bstatic'
14817: fi
14818: ;;
14819:
14820: amigaos*)
14821: case $host_cpu in
14822: powerpc)
14823: # see comment about AmigaOS4 .so support
14824: lt_prog_compiler_pic_CXX='-fPIC'
14825: ;;
14826: m68k)
14827: # FIXME: we need at least 68020 code to build shared libraries, but
14828: # adding the `-m68020' flag to GCC prevents building anything better,
14829: # like `-m68040'.
14830: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14831: ;;
14832: esac
14833: ;;
14834:
14835: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14836: # PIC is the default for these OSes.
14837: ;;
14838: mingw* | cygwin* | os2* | pw32* | cegcc*)
14839: # This hack is so that the source file can tell whether it is being
14840: # built for inclusion in a dll (and should export symbols for example).
14841: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14842: # (--disable-auto-import) libraries
14843: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14844: ;;
14845: darwin* | rhapsody*)
14846: # PIC is the default on this platform
14847: # Common symbols not allowed in MH_DYLIB files
14848: lt_prog_compiler_pic_CXX='-fno-common'
14849: ;;
14850: *djgpp*)
14851: # DJGPP does not support shared libraries at all
14852: lt_prog_compiler_pic_CXX=
14853: ;;
14854: haiku*)
14855: # PIC is the default for Haiku.
14856: # The "-static" flag exists, but is broken.
14857: lt_prog_compiler_static_CXX=
14858: ;;
14859: interix[3-9]*)
14860: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14861: # Instead, we relocate shared libraries at runtime.
14862: ;;
14863: sysv4*MP*)
14864: if test -d /usr/nec; then
14865: lt_prog_compiler_pic_CXX=-Kconform_pic
14866: fi
14867: ;;
14868: hpux*)
14869: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14870: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14871: # sets the default TLS model and affects inlining.
14872: case $host_cpu in
14873: hppa*64*)
14874: ;;
14875: *)
14876: lt_prog_compiler_pic_CXX='-fPIC'
14877: ;;
14878: esac
14879: ;;
14880: *qnx* | *nto*)
14881: # QNX uses GNU C++, but need to define -shared option too, otherwise
14882: # it will coredump.
14883: lt_prog_compiler_pic_CXX='-fPIC -shared'
14884: ;;
14885: *)
14886: lt_prog_compiler_pic_CXX='-fPIC'
14887: ;;
14888: esac
14889: else
14890: case $host_os in
14891: aix[4-9]*)
14892: # All AIX code is PIC.
14893: if test "$host_cpu" = ia64; then
14894: # AIX 5 now supports IA64 processor
14895: lt_prog_compiler_static_CXX='-Bstatic'
14896: else
14897: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14898: fi
14899: ;;
14900: chorus*)
14901: case $cc_basename in
14902: cxch68*)
14903: # Green Hills C++ Compiler
14904: # _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"
14905: ;;
14906: esac
14907: ;;
14908: mingw* | cygwin* | os2* | pw32* | cegcc*)
14909: # This hack is so that the source file can tell whether it is being
14910: # built for inclusion in a dll (and should export symbols for example).
14911: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14912: ;;
14913: dgux*)
14914: case $cc_basename in
14915: ec++*)
14916: lt_prog_compiler_pic_CXX='-KPIC'
14917: ;;
14918: ghcx*)
14919: # Green Hills C++ Compiler
14920: lt_prog_compiler_pic_CXX='-pic'
14921: ;;
14922: *)
14923: ;;
14924: esac
14925: ;;
14926: freebsd* | dragonfly*)
14927: # FreeBSD uses GNU C++
14928: ;;
14929: hpux9* | hpux10* | hpux11*)
14930: case $cc_basename in
14931: CC*)
14932: lt_prog_compiler_wl_CXX='-Wl,'
14933: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14934: if test "$host_cpu" != ia64; then
14935: lt_prog_compiler_pic_CXX='+Z'
14936: fi
14937: ;;
14938: aCC*)
14939: lt_prog_compiler_wl_CXX='-Wl,'
14940: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14941: case $host_cpu in
14942: hppa*64*|ia64*)
14943: # +Z the default
14944: ;;
14945: *)
14946: lt_prog_compiler_pic_CXX='+Z'
14947: ;;
14948: esac
14949: ;;
14950: *)
14951: ;;
14952: esac
14953: ;;
14954: interix*)
14955: # This is c89, which is MS Visual C++ (no shared libs)
14956: # Anyone wants to do a port?
14957: ;;
14958: irix5* | irix6* | nonstopux*)
14959: case $cc_basename in
14960: CC*)
14961: lt_prog_compiler_wl_CXX='-Wl,'
14962: lt_prog_compiler_static_CXX='-non_shared'
14963: # CC pic flag -KPIC is the default.
14964: ;;
14965: *)
14966: ;;
14967: esac
14968: ;;
14969: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14970: case $cc_basename in
14971: KCC*)
14972: # KAI C++ Compiler
14973: lt_prog_compiler_wl_CXX='--backend -Wl,'
14974: lt_prog_compiler_pic_CXX='-fPIC'
14975: ;;
14976: ecpc* )
14977: # old Intel C++ for x86_64 which still supported -KPIC.
14978: lt_prog_compiler_wl_CXX='-Wl,'
14979: lt_prog_compiler_pic_CXX='-KPIC'
14980: lt_prog_compiler_static_CXX='-static'
14981: ;;
14982: icpc* )
14983: # Intel C++, used to be incompatible with GCC.
14984: # ICC 10 doesn't accept -KPIC any more.
14985: lt_prog_compiler_wl_CXX='-Wl,'
14986: lt_prog_compiler_pic_CXX='-fPIC'
14987: lt_prog_compiler_static_CXX='-static'
14988: ;;
14989: pgCC* | pgcpp*)
14990: # Portland Group C++ compiler
14991: lt_prog_compiler_wl_CXX='-Wl,'
14992: lt_prog_compiler_pic_CXX='-fpic'
14993: lt_prog_compiler_static_CXX='-Bstatic'
14994: ;;
14995: cxx*)
14996: # Compaq C++
14997: # Make sure the PIC flag is empty. It appears that all Alpha
14998: # Linux and Compaq Tru64 Unix objects are PIC.
14999: lt_prog_compiler_pic_CXX=
15000: lt_prog_compiler_static_CXX='-non_shared'
15001: ;;
15002: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15003: # IBM XL 8.0, 9.0 on PPC and BlueGene
15004: lt_prog_compiler_wl_CXX='-Wl,'
15005: lt_prog_compiler_pic_CXX='-qpic'
15006: lt_prog_compiler_static_CXX='-qstaticlink'
15007: ;;
15008: *)
15009: case `$CC -V 2>&1 | sed 5q` in
15010: *Sun\ C*)
15011: # Sun C++ 5.9
15012: lt_prog_compiler_pic_CXX='-KPIC'
15013: lt_prog_compiler_static_CXX='-Bstatic'
15014: lt_prog_compiler_wl_CXX='-Qoption ld '
15015: ;;
15016: esac
15017: ;;
15018: esac
15019: ;;
15020: lynxos*)
15021: ;;
15022: m88k*)
15023: ;;
15024: mvs*)
15025: case $cc_basename in
15026: cxx*)
15027: lt_prog_compiler_pic_CXX='-W c,exportall'
15028: ;;
15029: *)
15030: ;;
15031: esac
15032: ;;
15033: netbsd*)
15034: ;;
15035: *qnx* | *nto*)
15036: # QNX uses GNU C++, but need to define -shared option too, otherwise
15037: # it will coredump.
15038: lt_prog_compiler_pic_CXX='-fPIC -shared'
15039: ;;
15040: osf3* | osf4* | osf5*)
15041: case $cc_basename in
15042: KCC*)
15043: lt_prog_compiler_wl_CXX='--backend -Wl,'
15044: ;;
15045: RCC*)
15046: # Rational C++ 2.4.1
15047: lt_prog_compiler_pic_CXX='-pic'
15048: ;;
15049: cxx*)
15050: # Digital/Compaq C++
15051: lt_prog_compiler_wl_CXX='-Wl,'
15052: # Make sure the PIC flag is empty. It appears that all Alpha
15053: # Linux and Compaq Tru64 Unix objects are PIC.
15054: lt_prog_compiler_pic_CXX=
15055: lt_prog_compiler_static_CXX='-non_shared'
15056: ;;
15057: *)
15058: ;;
15059: esac
15060: ;;
15061: psos*)
15062: ;;
15063: solaris*)
15064: case $cc_basename in
15065: CC* | sunCC*)
15066: # Sun C++ 4.2, 5.x and Centerline C++
15067: lt_prog_compiler_pic_CXX='-KPIC'
15068: lt_prog_compiler_static_CXX='-Bstatic'
15069: lt_prog_compiler_wl_CXX='-Qoption ld '
15070: ;;
15071: gcx*)
15072: # Green Hills C++ Compiler
15073: lt_prog_compiler_pic_CXX='-PIC'
15074: ;;
15075: *)
15076: ;;
15077: esac
15078: ;;
15079: sunos4*)
15080: case $cc_basename in
15081: CC*)
15082: # Sun C++ 4.x
15083: lt_prog_compiler_pic_CXX='-pic'
15084: lt_prog_compiler_static_CXX='-Bstatic'
15085: ;;
15086: lcc*)
15087: # Lucid
15088: lt_prog_compiler_pic_CXX='-pic'
15089: ;;
15090: *)
15091: ;;
15092: esac
15093: ;;
15094: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15095: case $cc_basename in
15096: CC*)
15097: lt_prog_compiler_wl_CXX='-Wl,'
15098: lt_prog_compiler_pic_CXX='-KPIC'
15099: lt_prog_compiler_static_CXX='-Bstatic'
15100: ;;
15101: esac
15102: ;;
15103: tandem*)
15104: case $cc_basename in
15105: NCC*)
15106: # NonStop-UX NCC 3.20
15107: lt_prog_compiler_pic_CXX='-KPIC'
15108: ;;
15109: *)
15110: ;;
15111: esac
15112: ;;
15113: vxworks*)
15114: ;;
15115: *)
15116: lt_prog_compiler_can_build_shared_CXX=no
15117: ;;
15118: esac
15119: fi
15120:
15121: case $host_os in
15122: # For platforms which do not support PIC, -DPIC is meaningless:
15123: *djgpp*)
15124: lt_prog_compiler_pic_CXX=
15125: ;;
15126: *)
15127: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15128: ;;
15129: esac
15130:
1.150 moko 15131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15132: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15133: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15134: $as_echo_n "(cached) " >&6
1.128 moko 15135: else
15136: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15137: fi
1.150 moko 15138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15139: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 15140: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15141:
15142: #
15143: # Check to make sure the PIC flag actually works.
15144: #
15145: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 15146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15147: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15148: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15149: $as_echo_n "(cached) " >&6
1.128 moko 15150: else
15151: lt_cv_prog_compiler_pic_works_CXX=no
15152: ac_outfile=conftest.$ac_objext
15153: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15154: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15155: # Insert the option either (1) after the last *FLAGS variable, or
15156: # (2) before a word containing "conftest.", or (3) at the end.
15157: # Note that $ac_compile itself does not contain backslashes and begins
15158: # with a dollar sign (not a hyphen), so the echo should work correctly.
15159: # The option is referenced via a variable to avoid confusing sed.
15160: lt_compile=`echo "$ac_compile" | $SED \
15161: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15162: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15163: -e 's:$: $lt_compiler_flag:'`
15164: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15165: (eval "$lt_compile" 2>conftest.err)
15166: ac_status=$?
15167: cat conftest.err >&5
15168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169: if (exit $ac_status) && test -s "$ac_outfile"; then
15170: # The compiler can only warn and ignore the option if not recognized
15171: # So say no if there are warnings other than the usual output.
15172: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15173: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15174: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15175: lt_cv_prog_compiler_pic_works_CXX=yes
15176: fi
15177: fi
15178: $RM conftest*
15179:
15180: fi
1.150 moko 15181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15182: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 15183:
15184: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15185: case $lt_prog_compiler_pic_CXX in
15186: "" | " "*) ;;
15187: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15188: esac
15189: else
15190: lt_prog_compiler_pic_CXX=
15191: lt_prog_compiler_can_build_shared_CXX=no
15192: fi
15193:
15194: fi
15195:
15196:
15197:
15198:
15199:
15200: #
15201: # Check to make sure the static flag actually works.
15202: #
15203: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 15204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15205: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15206: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15207: $as_echo_n "(cached) " >&6
1.128 moko 15208: else
15209: lt_cv_prog_compiler_static_works_CXX=no
15210: save_LDFLAGS="$LDFLAGS"
15211: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15212: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15213: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15214: # The linker can only warn and ignore the option if not recognized
15215: # So say no if there are warnings
15216: if test -s conftest.err; then
15217: # Append any errors to the config.log.
15218: cat conftest.err 1>&5
15219: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15220: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15221: if diff conftest.exp conftest.er2 >/dev/null; then
15222: lt_cv_prog_compiler_static_works_CXX=yes
15223: fi
15224: else
15225: lt_cv_prog_compiler_static_works_CXX=yes
15226: fi
15227: fi
15228: $RM -r conftest*
15229: LDFLAGS="$save_LDFLAGS"
15230:
15231: fi
1.150 moko 15232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15233: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 15234:
15235: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15236: :
15237: else
15238: lt_prog_compiler_static_CXX=
15239: fi
15240:
15241:
15242:
15243:
1.150 moko 15244: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15245: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15246: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15247: $as_echo_n "(cached) " >&6
1.128 moko 15248: else
15249: lt_cv_prog_compiler_c_o_CXX=no
15250: $RM -r conftest 2>/dev/null
15251: mkdir conftest
15252: cd conftest
15253: mkdir out
15254: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15255:
15256: lt_compiler_flag="-o out/conftest2.$ac_objext"
15257: # Insert the option either (1) after the last *FLAGS variable, or
15258: # (2) before a word containing "conftest.", or (3) at the end.
15259: # Note that $ac_compile itself does not contain backslashes and begins
15260: # with a dollar sign (not a hyphen), so the echo should work correctly.
15261: lt_compile=`echo "$ac_compile" | $SED \
15262: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15263: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15264: -e 's:$: $lt_compiler_flag:'`
15265: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15266: (eval "$lt_compile" 2>out/conftest.err)
15267: ac_status=$?
15268: cat out/conftest.err >&5
15269: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15271: then
15272: # The compiler can only warn and ignore the option if not recognized
15273: # So say no if there are warnings
15274: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15275: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15276: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15277: lt_cv_prog_compiler_c_o_CXX=yes
15278: fi
15279: fi
15280: chmod u+w . 2>&5
15281: $RM conftest*
15282: # SGI C++ compiler will create directory out/ii_files/ for
15283: # template instantiation
15284: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15285: $RM out/* && rmdir out
15286: cd ..
15287: $RM -r conftest
15288: $RM conftest*
15289:
15290: fi
1.150 moko 15291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15292: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15293:
15294:
15295:
1.150 moko 15296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15297: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15298: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15299: $as_echo_n "(cached) " >&6
1.128 moko 15300: else
15301: lt_cv_prog_compiler_c_o_CXX=no
15302: $RM -r conftest 2>/dev/null
15303: mkdir conftest
15304: cd conftest
15305: mkdir out
15306: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15307:
15308: lt_compiler_flag="-o out/conftest2.$ac_objext"
15309: # Insert the option either (1) after the last *FLAGS variable, or
15310: # (2) before a word containing "conftest.", or (3) at the end.
15311: # Note that $ac_compile itself does not contain backslashes and begins
15312: # with a dollar sign (not a hyphen), so the echo should work correctly.
15313: lt_compile=`echo "$ac_compile" | $SED \
15314: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15315: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15316: -e 's:$: $lt_compiler_flag:'`
15317: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15318: (eval "$lt_compile" 2>out/conftest.err)
15319: ac_status=$?
15320: cat out/conftest.err >&5
15321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15323: then
15324: # The compiler can only warn and ignore the option if not recognized
15325: # So say no if there are warnings
15326: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15327: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15328: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15329: lt_cv_prog_compiler_c_o_CXX=yes
15330: fi
15331: fi
15332: chmod u+w . 2>&5
15333: $RM conftest*
15334: # SGI C++ compiler will create directory out/ii_files/ for
15335: # template instantiation
15336: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15337: $RM out/* && rmdir out
15338: cd ..
15339: $RM -r conftest
15340: $RM conftest*
15341:
15342: fi
1.150 moko 15343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15344: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15345:
15346:
15347:
15348:
15349: hard_links="nottested"
15350: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15351: # do not overwrite the value of need_locks provided by the user
1.150 moko 15352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15353: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15354: hard_links=yes
15355: $RM conftest*
15356: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15357: touch conftest.a
15358: ln conftest.a conftest.b 2>&5 || hard_links=no
15359: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15361: $as_echo "$hard_links" >&6; }
1.128 moko 15362: if test "$hard_links" = no; then
1.150 moko 15363: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15364: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15365: need_locks=warn
15366: fi
15367: else
15368: need_locks=no
15369: fi
15370:
15371:
15372:
1.150 moko 15373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15374: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15375:
15376: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15377: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15378: case $host_os in
15379: aix[4-9]*)
15380: # If we're using GNU nm, then we don't want the "-C" option.
15381: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15382: # Also, AIX nm treats weak defined symbols like other global defined
15383: # symbols, whereas GNU nm marks them as "W".
15384: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15385: 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'
15386: else
15387: 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'
15388: fi
15389: ;;
15390: pw32*)
15391: export_symbols_cmds_CXX="$ltdll_cmds"
15392: ;;
15393: cygwin* | mingw* | cegcc*)
15394: case $cc_basename in
15395: cl*)
15396: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15397: ;;
15398: *)
15399: 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'
15400: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15401: ;;
15402: esac
15403: ;;
15404: *)
15405: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15406: ;;
15407: esac
15408:
1.150 moko 15409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15410: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15411: test "$ld_shlibs_CXX" = no && can_build_shared=no
15412:
15413: with_gnu_ld_CXX=$with_gnu_ld
15414:
15415:
15416:
15417:
15418:
15419:
15420: #
15421: # Do we need to explicitly link libc?
15422: #
15423: case "x$archive_cmds_need_lc_CXX" in
15424: x|xyes)
15425: # Assume -lc should be added
15426: archive_cmds_need_lc_CXX=yes
15427:
15428: if test "$enable_shared" = yes && test "$GCC" = yes; then
15429: case $archive_cmds_CXX in
15430: *'~'*)
15431: # FIXME: we may have to deal with multi-command sequences.
15432: ;;
15433: '$CC '*)
15434: # Test whether the compiler implicitly links with -lc since on some
15435: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15436: # to ld, don't add -lc before -lgcc.
1.150 moko 15437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15438: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15439: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15440: $as_echo_n "(cached) " >&6
1.128 moko 15441: else
15442: $RM conftest*
15443: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15444:
1.150 moko 15445: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15446: (eval $ac_compile) 2>&5
15447: ac_status=$?
1.150 moko 15448: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15449: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15450: soname=conftest
15451: lib=conftest
15452: libobjs=conftest.$ac_objext
15453: deplibs=
15454: wl=$lt_prog_compiler_wl_CXX
15455: pic_flag=$lt_prog_compiler_pic_CXX
15456: compiler_flags=-v
15457: linker_flags=-v
15458: verstring=
15459: output_objdir=.
15460: libname=conftest
15461: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15462: allow_undefined_flag_CXX=
1.150 moko 15463: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15464: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15465: ac_status=$?
1.150 moko 15466: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15467: test $ac_status = 0; }
1.128 moko 15468: then
15469: lt_cv_archive_cmds_need_lc_CXX=no
15470: else
15471: lt_cv_archive_cmds_need_lc_CXX=yes
15472: fi
15473: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15474: else
15475: cat conftest.err 1>&5
15476: fi
15477: $RM conftest*
15478:
15479: fi
1.150 moko 15480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15481: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15482: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15483: ;;
15484: esac
15485: fi
15486: ;;
15487: esac
15488:
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:
1.150 moko 15550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15551: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15552:
15553: library_names_spec=
15554: libname_spec='lib$name'
15555: soname_spec=
15556: shrext_cmds=".so"
15557: postinstall_cmds=
15558: postuninstall_cmds=
15559: finish_cmds=
15560: finish_eval=
15561: shlibpath_var=
15562: shlibpath_overrides_runpath=unknown
15563: version_type=none
15564: dynamic_linker="$host_os ld.so"
15565: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15566: need_lib_prefix=unknown
15567: hardcode_into_libs=no
15568:
15569: # when you set need_version to no, make sure it does not cause -set_version
15570: # flags to be left without arguments
15571: need_version=unknown
15572:
15573: case $host_os in
15574: aix3*)
15575: version_type=linux # correct to gnu/linux during the next big refactor
15576: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15577: shlibpath_var=LIBPATH
15578:
15579: # AIX 3 has no versioning support, so we append a major version to the name.
15580: soname_spec='${libname}${release}${shared_ext}$major'
15581: ;;
15582:
15583: aix[4-9]*)
15584: version_type=linux # correct to gnu/linux during the next big refactor
15585: need_lib_prefix=no
15586: need_version=no
15587: hardcode_into_libs=yes
15588: if test "$host_cpu" = ia64; then
15589: # AIX 5 supports IA64
15590: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15591: shlibpath_var=LD_LIBRARY_PATH
15592: else
15593: # With GCC up to 2.95.x, collect2 would create an import file
15594: # for dependence libraries. The import file would start with
15595: # the line `#! .'. This would cause the generated library to
15596: # depend on `.', always an invalid library. This was fixed in
15597: # development snapshots of GCC prior to 3.0.
15598: case $host_os in
15599: aix4 | aix4.[01] | aix4.[01].*)
15600: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15601: echo ' yes '
15602: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15603: :
15604: else
15605: can_build_shared=no
15606: fi
15607: ;;
15608: esac
15609: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15610: # soname into executable. Probably we can add versioning support to
15611: # collect2, so additional links can be useful in future.
15612: if test "$aix_use_runtimelinking" = yes; then
15613: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15614: # instead of lib<name>.a to let people know that these are not
15615: # typical AIX shared libraries.
15616: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617: else
15618: # We preserve .a as extension for shared libraries through AIX4.2
15619: # and later when we are not doing run time linking.
15620: library_names_spec='${libname}${release}.a $libname.a'
15621: soname_spec='${libname}${release}${shared_ext}$major'
15622: fi
15623: shlibpath_var=LIBPATH
15624: fi
15625: ;;
15626:
15627: amigaos*)
15628: case $host_cpu in
15629: powerpc)
15630: # Since July 2007 AmigaOS4 officially supports .so libraries.
15631: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15632: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633: ;;
15634: m68k)
15635: library_names_spec='$libname.ixlibrary $libname.a'
15636: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15637: 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'
15638: ;;
15639: esac
15640: ;;
15641:
15642: beos*)
15643: library_names_spec='${libname}${shared_ext}'
15644: dynamic_linker="$host_os ld.so"
15645: shlibpath_var=LIBRARY_PATH
15646: ;;
15647:
15648: bsdi[45]*)
15649: version_type=linux # correct to gnu/linux during the next big refactor
15650: need_version=no
15651: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652: soname_spec='${libname}${release}${shared_ext}$major'
15653: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15654: shlibpath_var=LD_LIBRARY_PATH
15655: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15656: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15657: # the default ld.so.conf also contains /usr/contrib/lib and
15658: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15659: # libtool to hard-code these into programs
15660: ;;
15661:
15662: cygwin* | mingw* | pw32* | cegcc*)
15663: version_type=windows
15664: shrext_cmds=".dll"
15665: need_version=no
15666: need_lib_prefix=no
15667:
15668: case $GCC,$cc_basename in
15669: yes,*)
15670: # gcc
15671: library_names_spec='$libname.dll.a'
15672: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15673: postinstall_cmds='base_file=`basename \${file}`~
15674: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15675: dldir=$destdir/`dirname \$dlpath`~
15676: test -d \$dldir || mkdir -p \$dldir~
15677: $install_prog $dir/$dlname \$dldir/$dlname~
15678: chmod a+x \$dldir/$dlname~
15679: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15680: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15681: fi'
15682: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15683: dlpath=$dir/\$dldll~
15684: $RM \$dlpath'
15685: shlibpath_overrides_runpath=yes
15686:
15687: case $host_os in
15688: cygwin*)
15689: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15690: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15691:
15692: ;;
15693: mingw* | cegcc*)
15694: # MinGW DLLs use traditional 'lib' prefix
15695: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15696: ;;
15697: pw32*)
15698: # pw32 DLLs use 'pw' prefix rather than 'lib'
15699: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15700: ;;
15701: esac
15702: dynamic_linker='Win32 ld.exe'
15703: ;;
15704:
15705: *,cl*)
15706: # Native MSVC
15707: libname_spec='$name'
15708: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15709: library_names_spec='${libname}.dll.lib'
15710:
15711: case $build_os in
15712: mingw*)
15713: sys_lib_search_path_spec=
15714: lt_save_ifs=$IFS
15715: IFS=';'
15716: for lt_path in $LIB
15717: do
15718: IFS=$lt_save_ifs
15719: # Let DOS variable expansion print the short 8.3 style file name.
15720: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15721: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15722: done
15723: IFS=$lt_save_ifs
15724: # Convert to MSYS style.
15725: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15726: ;;
15727: cygwin*)
15728: # Convert to unix form, then to dos form, then back to unix form
15729: # but this time dos style (no spaces!) so that the unix form looks
15730: # like /cygdrive/c/PROGRA~1:/cygdr...
15731: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15732: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15733: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15734: ;;
15735: *)
15736: sys_lib_search_path_spec="$LIB"
15737: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15738: # It is most probably a Windows format PATH.
15739: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15740: else
15741: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15742: fi
15743: # FIXME: find the short name or the path components, as spaces are
15744: # common. (e.g. "Program Files" -> "PROGRA~1")
15745: ;;
15746: esac
15747:
15748: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15749: postinstall_cmds='base_file=`basename \${file}`~
15750: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15751: dldir=$destdir/`dirname \$dlpath`~
15752: test -d \$dldir || mkdir -p \$dldir~
15753: $install_prog $dir/$dlname \$dldir/$dlname'
15754: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15755: dlpath=$dir/\$dldll~
15756: $RM \$dlpath'
15757: shlibpath_overrides_runpath=yes
15758: dynamic_linker='Win32 link.exe'
15759: ;;
15760:
15761: *)
15762: # Assume MSVC wrapper
15763: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15764: dynamic_linker='Win32 ld.exe'
15765: ;;
15766: esac
15767: # FIXME: first we should search . and the directory the executable is in
15768: shlibpath_var=PATH
15769: ;;
15770:
15771: darwin* | rhapsody*)
15772: dynamic_linker="$host_os dyld"
15773: version_type=darwin
15774: need_lib_prefix=no
15775: need_version=no
15776: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15777: soname_spec='${libname}${release}${major}$shared_ext'
15778: shlibpath_overrides_runpath=yes
15779: shlibpath_var=DYLD_LIBRARY_PATH
15780: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15781:
15782: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15783: ;;
15784:
15785: dgux*)
15786: version_type=linux # correct to gnu/linux during the next big refactor
15787: need_lib_prefix=no
15788: need_version=no
15789: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15790: soname_spec='${libname}${release}${shared_ext}$major'
15791: shlibpath_var=LD_LIBRARY_PATH
15792: ;;
15793:
15794: freebsd* | dragonfly*)
15795: # DragonFly does not have aout. When/if they implement a new
15796: # versioning mechanism, adjust this.
15797: if test -x /usr/bin/objformat; then
15798: objformat=`/usr/bin/objformat`
15799: else
15800: case $host_os in
15801: freebsd[23].*) objformat=aout ;;
15802: *) objformat=elf ;;
15803: esac
15804: fi
15805: version_type=freebsd-$objformat
15806: case $version_type in
15807: freebsd-elf*)
15808: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15809: need_version=no
15810: need_lib_prefix=no
15811: ;;
15812: freebsd-*)
15813: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15814: need_version=yes
15815: ;;
15816: esac
15817: shlibpath_var=LD_LIBRARY_PATH
15818: case $host_os in
15819: freebsd2.*)
15820: shlibpath_overrides_runpath=yes
15821: ;;
15822: freebsd3.[01]* | freebsdelf3.[01]*)
15823: shlibpath_overrides_runpath=yes
15824: hardcode_into_libs=yes
15825: ;;
15826: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15827: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15828: shlibpath_overrides_runpath=no
15829: hardcode_into_libs=yes
15830: ;;
15831: *) # from 4.6 on, and DragonFly
15832: shlibpath_overrides_runpath=yes
15833: hardcode_into_libs=yes
15834: ;;
15835: esac
15836: ;;
15837:
15838: gnu*)
15839: version_type=linux # correct to gnu/linux during the next big refactor
15840: need_lib_prefix=no
15841: need_version=no
15842: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15843: soname_spec='${libname}${release}${shared_ext}$major'
15844: shlibpath_var=LD_LIBRARY_PATH
15845: shlibpath_overrides_runpath=no
15846: hardcode_into_libs=yes
15847: ;;
15848:
15849: haiku*)
15850: version_type=linux # correct to gnu/linux during the next big refactor
15851: need_lib_prefix=no
15852: need_version=no
15853: dynamic_linker="$host_os runtime_loader"
15854: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15855: soname_spec='${libname}${release}${shared_ext}$major'
15856: shlibpath_var=LIBRARY_PATH
15857: shlibpath_overrides_runpath=yes
15858: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15859: hardcode_into_libs=yes
15860: ;;
15861:
15862: hpux9* | hpux10* | hpux11*)
15863: # Give a soname corresponding to the major version so that dld.sl refuses to
15864: # link against other versions.
15865: version_type=sunos
15866: need_lib_prefix=no
15867: need_version=no
15868: case $host_cpu in
15869: ia64*)
15870: shrext_cmds='.so'
15871: hardcode_into_libs=yes
15872: dynamic_linker="$host_os dld.so"
15873: shlibpath_var=LD_LIBRARY_PATH
15874: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15875: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15876: soname_spec='${libname}${release}${shared_ext}$major'
15877: if test "X$HPUX_IA64_MODE" = X32; then
15878: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15879: else
15880: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15881: fi
15882: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15883: ;;
15884: hppa*64*)
15885: shrext_cmds='.sl'
15886: hardcode_into_libs=yes
15887: dynamic_linker="$host_os dld.sl"
15888: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15889: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15890: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891: soname_spec='${libname}${release}${shared_ext}$major'
15892: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15893: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15894: ;;
15895: *)
15896: shrext_cmds='.sl'
15897: dynamic_linker="$host_os dld.sl"
15898: shlibpath_var=SHLIB_PATH
15899: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15900: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901: soname_spec='${libname}${release}${shared_ext}$major'
15902: ;;
15903: esac
15904: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15905: postinstall_cmds='chmod 555 $lib'
15906: # or fails outright, so override atomically:
15907: install_override_mode=555
15908: ;;
15909:
15910: interix[3-9]*)
15911: version_type=linux # correct to gnu/linux during the next big refactor
15912: need_lib_prefix=no
15913: need_version=no
15914: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15915: soname_spec='${libname}${release}${shared_ext}$major'
15916: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15917: shlibpath_var=LD_LIBRARY_PATH
15918: shlibpath_overrides_runpath=no
15919: hardcode_into_libs=yes
15920: ;;
15921:
15922: irix5* | irix6* | nonstopux*)
15923: case $host_os in
15924: nonstopux*) version_type=nonstopux ;;
15925: *)
15926: if test "$lt_cv_prog_gnu_ld" = yes; then
15927: version_type=linux # correct to gnu/linux during the next big refactor
15928: else
15929: version_type=irix
15930: fi ;;
15931: esac
15932: need_lib_prefix=no
15933: need_version=no
15934: soname_spec='${libname}${release}${shared_ext}$major'
15935: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15936: case $host_os in
15937: irix5* | nonstopux*)
15938: libsuff= shlibsuff=
15939: ;;
15940: *)
15941: case $LD in # libtool.m4 will add one of these switches to LD
15942: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15943: libsuff= shlibsuff= libmagic=32-bit;;
15944: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15945: libsuff=32 shlibsuff=N32 libmagic=N32;;
15946: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15947: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15948: *) libsuff= shlibsuff= libmagic=never-match;;
15949: esac
15950: ;;
15951: esac
15952: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15953: shlibpath_overrides_runpath=no
15954: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15955: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15956: hardcode_into_libs=yes
15957: ;;
15958:
15959: # No shared lib support for Linux oldld, aout, or coff.
15960: linux*oldld* | linux*aout* | linux*coff*)
15961: dynamic_linker=no
15962: ;;
15963:
15964: # This must be glibc/ELF.
15965: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15966: version_type=linux # correct to gnu/linux during the next big refactor
15967: need_lib_prefix=no
15968: need_version=no
15969: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970: soname_spec='${libname}${release}${shared_ext}$major'
15971: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15972: shlibpath_var=LD_LIBRARY_PATH
15973: shlibpath_overrides_runpath=no
15974:
15975: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 15976: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15977: $as_echo_n "(cached) " >&6
1.128 moko 15978: else
15979: lt_cv_shlibpath_overrides_runpath=no
15980: save_LDFLAGS=$LDFLAGS
15981: save_libdir=$libdir
15982: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15983: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 15984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15985: /* end confdefs.h. */
15986:
15987: int
15988: main ()
15989: {
15990:
15991: ;
15992: return 0;
15993: }
15994: _ACEOF
1.150 moko 15995: if ac_fn_cxx_try_link "$LINENO"; then :
15996: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 15997: lt_cv_shlibpath_overrides_runpath=yes
15998: fi
15999: fi
1.150 moko 16000: rm -f core conftest.err conftest.$ac_objext \
16001: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16002: LDFLAGS=$save_LDFLAGS
16003: libdir=$save_libdir
16004:
16005: fi
16006:
16007: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16008:
16009: # This implies no fast_install, which is unacceptable.
16010: # Some rework will be needed to allow for fast_install
16011: # before this can be enabled.
16012: hardcode_into_libs=yes
16013:
16014: # Append ld.so.conf contents to the search path
16015: if test -f /etc/ld.so.conf; then
16016: 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' ' '`
16017: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16018: fi
16019:
16020: # We used to test for /lib/ld.so.1 and disable shared libraries on
16021: # powerpc, because MkLinux only supported shared libraries with the
16022: # GNU dynamic linker. Since this was broken with cross compilers,
16023: # most powerpc-linux boxes support dynamic linking these days and
16024: # people can always --disable-shared, the test was removed, and we
16025: # assume the GNU/Linux dynamic linker is in use.
16026: dynamic_linker='GNU/Linux ld.so'
16027: ;;
16028:
16029: netbsd*)
16030: version_type=sunos
16031: need_lib_prefix=no
16032: need_version=no
16033: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16034: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16035: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16036: dynamic_linker='NetBSD (a.out) ld.so'
16037: else
16038: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16039: soname_spec='${libname}${release}${shared_ext}$major'
16040: dynamic_linker='NetBSD ld.elf_so'
16041: fi
16042: shlibpath_var=LD_LIBRARY_PATH
16043: shlibpath_overrides_runpath=yes
16044: hardcode_into_libs=yes
16045: ;;
16046:
16047: newsos6)
16048: version_type=linux # correct to gnu/linux during the next big refactor
16049: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050: shlibpath_var=LD_LIBRARY_PATH
16051: shlibpath_overrides_runpath=yes
16052: ;;
16053:
16054: *nto* | *qnx*)
16055: version_type=qnx
16056: need_lib_prefix=no
16057: need_version=no
16058: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059: soname_spec='${libname}${release}${shared_ext}$major'
16060: shlibpath_var=LD_LIBRARY_PATH
16061: shlibpath_overrides_runpath=no
16062: hardcode_into_libs=yes
16063: dynamic_linker='ldqnx.so'
16064: ;;
16065:
16066: openbsd*)
16067: version_type=sunos
16068: sys_lib_dlsearch_path_spec="/usr/lib"
16069: need_lib_prefix=no
16070: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16071: case $host_os in
16072: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16073: *) need_version=no ;;
16074: esac
16075: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16076: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16077: shlibpath_var=LD_LIBRARY_PATH
16078: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16079: case $host_os in
16080: openbsd2.[89] | openbsd2.[89].*)
16081: shlibpath_overrides_runpath=no
16082: ;;
16083: *)
16084: shlibpath_overrides_runpath=yes
16085: ;;
16086: esac
16087: else
16088: shlibpath_overrides_runpath=yes
16089: fi
16090: ;;
16091:
16092: os2*)
16093: libname_spec='$name'
16094: shrext_cmds=".dll"
16095: need_lib_prefix=no
16096: library_names_spec='$libname${shared_ext} $libname.a'
16097: dynamic_linker='OS/2 ld.exe'
16098: shlibpath_var=LIBPATH
16099: ;;
16100:
16101: osf3* | osf4* | osf5*)
16102: version_type=osf
16103: need_lib_prefix=no
16104: need_version=no
16105: soname_spec='${libname}${release}${shared_ext}$major'
16106: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107: shlibpath_var=LD_LIBRARY_PATH
16108: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16109: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16110: ;;
16111:
16112: rdos*)
16113: dynamic_linker=no
16114: ;;
16115:
16116: solaris*)
16117: version_type=linux # correct to gnu/linux during the next big refactor
16118: need_lib_prefix=no
16119: need_version=no
16120: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121: soname_spec='${libname}${release}${shared_ext}$major'
16122: shlibpath_var=LD_LIBRARY_PATH
16123: shlibpath_overrides_runpath=yes
16124: hardcode_into_libs=yes
16125: # ldd complains unless libraries are executable
16126: postinstall_cmds='chmod +x $lib'
16127: ;;
16128:
16129: sunos4*)
16130: version_type=sunos
16131: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16132: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16133: shlibpath_var=LD_LIBRARY_PATH
16134: shlibpath_overrides_runpath=yes
16135: if test "$with_gnu_ld" = yes; then
16136: need_lib_prefix=no
16137: fi
16138: need_version=yes
16139: ;;
16140:
16141: sysv4 | sysv4.3*)
16142: version_type=linux # correct to gnu/linux during the next big refactor
16143: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144: soname_spec='${libname}${release}${shared_ext}$major'
16145: shlibpath_var=LD_LIBRARY_PATH
16146: case $host_vendor in
16147: sni)
16148: shlibpath_overrides_runpath=no
16149: need_lib_prefix=no
16150: runpath_var=LD_RUN_PATH
16151: ;;
16152: siemens)
16153: need_lib_prefix=no
16154: ;;
16155: motorola)
16156: need_lib_prefix=no
16157: need_version=no
16158: shlibpath_overrides_runpath=no
16159: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16160: ;;
16161: esac
16162: ;;
16163:
16164: sysv4*MP*)
16165: if test -d /usr/nec ;then
16166: version_type=linux # correct to gnu/linux during the next big refactor
16167: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16168: soname_spec='$libname${shared_ext}.$major'
16169: shlibpath_var=LD_LIBRARY_PATH
16170: fi
16171: ;;
16172:
16173: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16174: version_type=freebsd-elf
16175: need_lib_prefix=no
16176: need_version=no
16177: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16178: soname_spec='${libname}${release}${shared_ext}$major'
16179: shlibpath_var=LD_LIBRARY_PATH
16180: shlibpath_overrides_runpath=yes
16181: hardcode_into_libs=yes
16182: if test "$with_gnu_ld" = yes; then
16183: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16184: else
16185: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16186: case $host_os in
16187: sco3.2v5*)
16188: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16189: ;;
16190: esac
16191: fi
16192: sys_lib_dlsearch_path_spec='/usr/lib'
16193: ;;
16194:
16195: tpf*)
16196: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16197: version_type=linux # correct to gnu/linux during the next big refactor
16198: need_lib_prefix=no
16199: need_version=no
16200: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201: shlibpath_var=LD_LIBRARY_PATH
16202: shlibpath_overrides_runpath=no
16203: hardcode_into_libs=yes
16204: ;;
16205:
16206: uts4*)
16207: version_type=linux # correct to gnu/linux during the next big refactor
16208: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209: soname_spec='${libname}${release}${shared_ext}$major'
16210: shlibpath_var=LD_LIBRARY_PATH
16211: ;;
16212:
16213: *)
16214: dynamic_linker=no
16215: ;;
16216: esac
1.150 moko 16217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16218: $as_echo "$dynamic_linker" >&6; }
1.128 moko 16219: test "$dynamic_linker" = no && can_build_shared=no
16220:
16221: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16222: if test "$GCC" = yes; then
16223: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16224: fi
16225:
16226: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16227: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16228: fi
16229: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16230: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16231: fi
16232:
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:
1.150 moko 16270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16271: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 16272: hardcode_action_CXX=
16273: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16274: test -n "$runpath_var_CXX" ||
16275: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16276:
16277: # We can hardcode non-existent directories.
16278: if test "$hardcode_direct_CXX" != no &&
16279: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16280: # have to relink, otherwise we might link with an installed library
16281: # when we should be linking with a yet-to-be-installed one
16282: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16283: test "$hardcode_minus_L_CXX" != no; then
16284: # Linking always hardcodes the temporary library directory.
16285: hardcode_action_CXX=relink
16286: else
16287: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16288: hardcode_action_CXX=immediate
16289: fi
16290: else
16291: # We cannot hardcode anything, or else we can only hardcode existing
16292: # directories.
16293: hardcode_action_CXX=unsupported
16294: fi
1.150 moko 16295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16296: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16297:
16298: if test "$hardcode_action_CXX" = relink ||
16299: test "$inherit_rpath_CXX" = yes; then
16300: # Fast installation is not supported
16301: enable_fast_install=no
16302: elif test "$shlibpath_overrides_runpath" = yes ||
16303: test "$enable_shared" = no; then
16304: # Fast installation is not necessary
16305: enable_fast_install=needless
16306: fi
16307:
16308:
16309:
16310:
16311:
16312:
16313:
16314: fi # test -n "$compiler"
16315:
16316: CC=$lt_save_CC
16317: CFLAGS=$lt_save_CFLAGS
16318: LDCXX=$LD
16319: LD=$lt_save_LD
16320: GCC=$lt_save_GCC
16321: with_gnu_ld=$lt_save_with_gnu_ld
16322: lt_cv_path_LDCXX=$lt_cv_path_LD
16323: lt_cv_path_LD=$lt_save_path_LD
16324: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16325: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16326: fi # test "$_lt_caught_CXX_error" != yes
16327:
16328: ac_ext=c
16329: ac_cpp='$CPP $CPPFLAGS'
16330: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16331: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16332: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16333:
16334:
16335:
16336:
16337:
16338:
16339:
16340:
16341:
16342:
16343:
16344:
16345:
16346:
16347:
1.150 moko 16348: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16349:
16350:
16351:
16352:
16353: # Only expand once:
16354:
16355:
1.150 moko 16356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16357: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16358: if ${libltdl_cv_shlibext+:} false; then :
16359: $as_echo_n "(cached) " >&6
1.128 moko 16360: else
16361:
16362: module=yes
16363: eval libltdl_cv_shlibext=$shrext_cmds
16364: module=no
16365: eval libltdl_cv_shrext=$shrext_cmds
16366:
16367: fi
1.150 moko 16368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16369: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16370: if test -n "$libltdl_cv_shlibext"; then
16371:
16372: cat >>confdefs.h <<_ACEOF
16373: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16374: _ACEOF
16375:
16376: fi
16377: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16378:
16379: cat >>confdefs.h <<_ACEOF
16380: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16381: _ACEOF
16382:
16383: fi
16384:
1.150 moko 16385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16386: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16387: if ${lt_cv_module_path_var+:} false; then :
16388: $as_echo_n "(cached) " >&6
1.128 moko 16389: else
16390: lt_cv_module_path_var="$shlibpath_var"
16391: fi
1.150 moko 16392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16393: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16394: if test -n "$lt_cv_module_path_var"; then
16395:
16396: cat >>confdefs.h <<_ACEOF
16397: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16398: _ACEOF
16399:
16400: fi
16401:
1.150 moko 16402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16403: $as_echo_n "checking for the default library search path... " >&6; }
16404: if ${lt_cv_sys_dlsearch_path+:} false; then :
16405: $as_echo_n "(cached) " >&6
1.128 moko 16406: else
16407: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16408: fi
1.150 moko 16409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16410: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16411: if test -n "$lt_cv_sys_dlsearch_path"; then
16412: sys_dlsearch_path=
16413: for dir in $lt_cv_sys_dlsearch_path; do
16414: if test -z "$sys_dlsearch_path"; then
16415: sys_dlsearch_path="$dir"
16416: else
16417: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16418: fi
16419: done
16420:
16421: cat >>confdefs.h <<_ACEOF
16422: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16423: _ACEOF
16424:
16425: fi
16426:
16427:
16428: LT_DLLOADERS=
16429:
16430:
16431: ac_ext=c
16432: ac_cpp='$CPP $CPPFLAGS'
16433: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16434: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16435: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16436:
16437:
16438: LIBADD_DLOPEN=
1.150 moko 16439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16440: $as_echo_n "checking for library containing dlopen... " >&6; }
16441: if ${ac_cv_search_dlopen+:} false; then :
16442: $as_echo_n "(cached) " >&6
1.128 moko 16443: else
16444: ac_func_search_save_LIBS=$LIBS
1.150 moko 16445: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16446: /* end confdefs.h. */
16447:
1.150 moko 16448: /* Override any GCC internal prototype to avoid an error.
16449: Use char because int might match the return type of a GCC
16450: builtin and then its argument prototype would still apply. */
1.128 moko 16451: #ifdef __cplusplus
16452: extern "C"
16453: #endif
16454: char dlopen ();
16455: int
16456: main ()
16457: {
1.150 moko 16458: return dlopen ();
1.128 moko 16459: ;
16460: return 0;
16461: }
16462: _ACEOF
1.150 moko 16463: for ac_lib in '' dl; do
16464: if test -z "$ac_lib"; then
16465: ac_res="none required"
16466: else
16467: ac_res=-l$ac_lib
16468: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16469: fi
16470: if ac_fn_c_try_link "$LINENO"; then :
16471: ac_cv_search_dlopen=$ac_res
16472: fi
16473: rm -f core conftest.err conftest.$ac_objext \
16474: conftest$ac_exeext
16475: if ${ac_cv_search_dlopen+:} false; then :
16476: break
1.128 moko 16477: fi
1.150 moko 16478: done
16479: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16480:
16481: else
1.150 moko 16482: ac_cv_search_dlopen=no
1.128 moko 16483: fi
1.150 moko 16484: rm conftest.$ac_ext
1.128 moko 16485: LIBS=$ac_func_search_save_LIBS
16486: fi
1.150 moko 16487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16488: $as_echo "$ac_cv_search_dlopen" >&6; }
16489: ac_res=$ac_cv_search_dlopen
16490: if test "$ac_res" != no; then :
16491: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16492:
1.150 moko 16493: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16494:
16495: if test "$ac_cv_search_dlopen" != "none required" ; then
16496: LIBADD_DLOPEN="-ldl"
16497: fi
16498: libltdl_cv_lib_dl_dlopen="yes"
16499: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16500: else
1.150 moko 16501: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16502: /* end confdefs.h. */
16503: #if HAVE_DLFCN_H
16504: # include <dlfcn.h>
16505: #endif
16506:
16507: int
16508: main ()
16509: {
16510: dlopen(0, 0);
16511: ;
16512: return 0;
16513: }
16514: _ACEOF
1.150 moko 16515: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16516:
1.150 moko 16517: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16518:
16519: libltdl_cv_func_dlopen="yes"
16520: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16521: else
1.150 moko 16522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16523: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16524: if ${ac_cv_lib_svld_dlopen+:} false; then :
16525: $as_echo_n "(cached) " >&6
1.128 moko 16526: else
16527: ac_check_lib_save_LIBS=$LIBS
16528: LIBS="-lsvld $LIBS"
1.150 moko 16529: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16530: /* end confdefs.h. */
16531:
1.150 moko 16532: /* Override any GCC internal prototype to avoid an error.
16533: Use char because int might match the return type of a GCC
16534: builtin and then its argument prototype would still apply. */
1.128 moko 16535: #ifdef __cplusplus
16536: extern "C"
16537: #endif
16538: char dlopen ();
16539: int
16540: main ()
16541: {
1.150 moko 16542: return dlopen ();
1.128 moko 16543: ;
16544: return 0;
16545: }
16546: _ACEOF
1.150 moko 16547: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16548: ac_cv_lib_svld_dlopen=yes
16549: else
1.150 moko 16550: ac_cv_lib_svld_dlopen=no
1.128 moko 16551: fi
1.150 moko 16552: rm -f core conftest.err conftest.$ac_objext \
16553: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16554: LIBS=$ac_check_lib_save_LIBS
16555: fi
1.150 moko 16556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16557: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16558: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16559:
1.150 moko 16560: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16561:
16562: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16563: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16564: fi
16565:
16566: fi
1.150 moko 16567: rm -f core conftest.err conftest.$ac_objext \
16568: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16569: fi
16570:
16571: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16572: then
16573: lt_save_LIBS="$LIBS"
16574: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16575: for ac_func in dlerror
16576: do :
16577: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16578: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16579: cat >>confdefs.h <<_ACEOF
1.150 moko 16580: #define HAVE_DLERROR 1
1.128 moko 16581: _ACEOF
16582:
16583: fi
16584: done
16585:
16586: LIBS="$lt_save_LIBS"
16587: fi
16588:
16589:
16590: LIBADD_SHL_LOAD=
1.150 moko 16591: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16592: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16593:
1.150 moko 16594: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16595:
16596: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16597: else
1.150 moko 16598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16599: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16600: if ${ac_cv_lib_dld_shl_load+:} false; then :
16601: $as_echo_n "(cached) " >&6
1.66 paf 16602: else
16603: ac_check_lib_save_LIBS=$LIBS
16604: LIBS="-ldld $LIBS"
1.150 moko 16605: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16606: /* end confdefs.h. */
1.10 paf 16607:
1.150 moko 16608: /* Override any GCC internal prototype to avoid an error.
16609: Use char because int might match the return type of a GCC
16610: builtin and then its argument prototype would still apply. */
1.66 paf 16611: #ifdef __cplusplus
16612: extern "C"
16613: #endif
16614: char shl_load ();
16615: int
16616: main ()
16617: {
1.150 moko 16618: return shl_load ();
1.66 paf 16619: ;
16620: return 0;
16621: }
16622: _ACEOF
1.150 moko 16623: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16624: ac_cv_lib_dld_shl_load=yes
16625: else
1.150 moko 16626: ac_cv_lib_dld_shl_load=no
1.66 paf 16627: fi
1.150 moko 16628: rm -f core conftest.err conftest.$ac_objext \
16629: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16630: LIBS=$ac_check_lib_save_LIBS
16631: fi
1.150 moko 16632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16633: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16634: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16635:
1.150 moko 16636: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16637:
1.128 moko 16638: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16639: LIBADD_SHL_LOAD="-ldld"
16640: fi
16641:
16642: fi
16643:
16644:
16645:
16646: case $host_os in
16647: darwin[1567].*)
16648: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16649: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16650: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16651:
16652: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16653:
1.150 moko 16654: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16655: fi
1.128 moko 16656:
1.150 moko 16657: ;;
16658: beos*)
1.128 moko 16659: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16660: ;;
16661: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16662: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16663: "
16664: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16665: ac_have_decl=1
1.128 moko 16666: else
1.150 moko 16667: ac_have_decl=0
1.128 moko 16668: fi
16669:
16670: cat >>confdefs.h <<_ACEOF
1.150 moko 16671: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16672: _ACEOF
16673:
16674: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16675: ;;
16676: esac
16677:
1.150 moko 16678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16679: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16680: if ${ac_cv_lib_dld_dld_link+:} false; then :
16681: $as_echo_n "(cached) " >&6
1.66 paf 16682: else
16683: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16684: LIBS="-ldld $LIBS"
1.150 moko 16685: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16686: /* end confdefs.h. */
1.62 paf 16687:
1.150 moko 16688: /* Override any GCC internal prototype to avoid an error.
16689: Use char because int might match the return type of a GCC
16690: builtin and then its argument prototype would still apply. */
1.66 paf 16691: #ifdef __cplusplus
16692: extern "C"
16693: #endif
1.128 moko 16694: char dld_link ();
1.66 paf 16695: int
16696: main ()
16697: {
1.150 moko 16698: return dld_link ();
1.66 paf 16699: ;
16700: return 0;
16701: }
16702: _ACEOF
1.150 moko 16703: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16704: ac_cv_lib_dld_dld_link=yes
1.66 paf 16705: else
1.150 moko 16706: ac_cv_lib_dld_dld_link=no
1.128 moko 16707: fi
1.150 moko 16708: rm -f core conftest.err conftest.$ac_objext \
16709: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16710: LIBS=$ac_check_lib_save_LIBS
16711: fi
1.150 moko 16712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16713: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16714: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16715:
1.150 moko 16716: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16717:
16718: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16719: fi
16720:
16721:
16722:
16723:
16724: LT_DLPREOPEN=
16725: if test -n "$LT_DLLOADERS"
16726: then
16727: for lt_loader in $LT_DLLOADERS; do
16728: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16729: done
16730:
1.150 moko 16731: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16732:
16733: fi
16734:
16735:
16736: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16737:
16738:
16739: ac_ext=c
16740: ac_cpp='$CPP $CPPFLAGS'
16741: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16742: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16743: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16744:
16745:
1.150 moko 16746: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16747: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16748: if ${lt_cv_sys_symbol_underscore+:} false; then :
16749: $as_echo_n "(cached) " >&6
1.128 moko 16750: else
16751: lt_cv_sys_symbol_underscore=no
16752: cat > conftest.$ac_ext <<_LT_EOF
16753: void nm_test_func(){}
16754: int main(){nm_test_func;return 0;}
16755: _LT_EOF
1.150 moko 16756: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16757: (eval $ac_compile) 2>&5
16758: ac_status=$?
1.150 moko 16759: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16760: test $ac_status = 0; }; then
1.128 moko 16761: # Now try to grab the symbols.
16762: ac_nlist=conftest.nm
1.150 moko 16763: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16764: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16765: ac_status=$?
1.150 moko 16766: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16767: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16768: # See whether the symbols have a leading underscore.
16769: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16770: lt_cv_sys_symbol_underscore=yes
16771: else
16772: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16773: :
16774: else
16775: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16776: fi
16777: fi
16778: else
16779: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16780: fi
16781: else
16782: echo "configure: failed program was:" >&5
16783: cat conftest.c >&5
16784: fi
16785: rm -rf conftest*
1.29 paf 16786:
1.66 paf 16787: fi
1.150 moko 16788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16789: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16790: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16791:
1.62 paf 16792:
1.128 moko 16793: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16794: if test x"$libltdl_cv_func_dlopen" = xyes ||
16795: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16797: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16798: if ${libltdl_cv_need_uscore+:} false; then :
16799: $as_echo_n "(cached) " >&6
1.66 paf 16800: else
1.128 moko 16801: libltdl_cv_need_uscore=unknown
16802: save_LIBS="$LIBS"
16803: LIBS="$LIBS $LIBADD_DLOPEN"
16804: if test "$cross_compiling" = yes; then :
16805: libltdl_cv_need_uscore=cross
16806: else
16807: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16808: lt_status=$lt_dlunknown
16809: cat > conftest.$ac_ext <<_LT_EOF
16810: #line $LINENO "configure"
16811: #include "confdefs.h"
16812:
1.66 paf 16813: #if HAVE_DLFCN_H
1.128 moko 16814: #include <dlfcn.h>
16815: #endif
16816:
16817: #include <stdio.h>
16818:
16819: #ifdef RTLD_GLOBAL
16820: # define LT_DLGLOBAL RTLD_GLOBAL
16821: #else
16822: # ifdef DL_GLOBAL
16823: # define LT_DLGLOBAL DL_GLOBAL
16824: # else
16825: # define LT_DLGLOBAL 0
16826: # endif
16827: #endif
16828:
16829: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16830: find out it does not work in some platform. */
16831: #ifndef LT_DLLAZY_OR_NOW
16832: # ifdef RTLD_LAZY
16833: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16834: # else
16835: # ifdef DL_LAZY
16836: # define LT_DLLAZY_OR_NOW DL_LAZY
16837: # else
16838: # ifdef RTLD_NOW
16839: # define LT_DLLAZY_OR_NOW RTLD_NOW
16840: # else
16841: # ifdef DL_NOW
16842: # define LT_DLLAZY_OR_NOW DL_NOW
16843: # else
16844: # define LT_DLLAZY_OR_NOW 0
16845: # endif
16846: # endif
16847: # endif
16848: # endif
16849: #endif
16850:
16851: /* When -fvisbility=hidden is used, assume the code has been annotated
16852: correspondingly for the symbols needed. */
16853: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16854: int fnord () __attribute__((visibility("default")));
1.66 paf 16855: #endif
1.62 paf 16856:
1.128 moko 16857: int fnord () { return 42; }
16858: int main ()
1.66 paf 16859: {
1.128 moko 16860: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16861: int status = $lt_dlunknown;
16862:
16863: if (self)
16864: {
16865: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16866: else
16867: {
16868: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16869: else puts (dlerror ());
16870: }
16871: /* dlclose (self); */
16872: }
16873: else
16874: puts (dlerror ());
16875:
16876: return status;
1.66 paf 16877: }
1.128 moko 16878: _LT_EOF
1.150 moko 16879: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16880: (eval $ac_link) 2>&5
1.66 paf 16881: ac_status=$?
1.150 moko 16882: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16883: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16884: (./conftest; exit; ) >&5 2>/dev/null
16885: lt_status=$?
16886: case x$lt_status in
16887: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16888: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16889: x$lt_dlunknown|x*) ;;
16890: esac
16891: else :
16892: # compilation failed
16893:
16894: fi
16895: fi
16896: rm -fr conftest*
16897:
16898: LIBS="$save_LIBS"
16899:
16900: fi
1.150 moko 16901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16902: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16903: fi
16904: fi
16905:
16906: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16907:
1.150 moko 16908: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16909:
1.128 moko 16910: fi
16911:
1.150 moko 16912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16913: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16914: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16915: $as_echo_n "(cached) " >&6
1.66 paf 16916: else
1.128 moko 16917: # PORTME does your system automatically load deplibs for dlopen?
16918: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16919: # For now, we just catch OSes we know something about -- in the
16920: # future, we'll try test this programmatically.
16921: lt_cv_sys_dlopen_deplibs=unknown
16922: case $host_os in
16923: aix3*|aix4.1.*|aix4.2.*)
16924: # Unknown whether this is true for these versions of AIX, but
16925: # we want this `case' here to explicitly catch those versions.
16926: lt_cv_sys_dlopen_deplibs=unknown
16927: ;;
16928: aix[4-9]*)
16929: lt_cv_sys_dlopen_deplibs=yes
16930: ;;
16931: amigaos*)
16932: case $host_cpu in
16933: powerpc)
16934: lt_cv_sys_dlopen_deplibs=no
16935: ;;
16936: esac
16937: ;;
16938: darwin*)
16939: # Assuming the user has installed a libdl from somewhere, this is true
16940: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16941: lt_cv_sys_dlopen_deplibs=yes
16942: ;;
16943: freebsd* | dragonfly*)
16944: lt_cv_sys_dlopen_deplibs=yes
16945: ;;
16946: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16947: # GNU and its variants, using gnu ld.so (Glibc)
16948: lt_cv_sys_dlopen_deplibs=yes
16949: ;;
16950: hpux10*|hpux11*)
16951: lt_cv_sys_dlopen_deplibs=yes
16952: ;;
16953: interix*)
16954: lt_cv_sys_dlopen_deplibs=yes
16955: ;;
16956: irix[12345]*|irix6.[01]*)
16957: # Catch all versions of IRIX before 6.2, and indicate that we don't
16958: # know how it worked for any of those versions.
16959: lt_cv_sys_dlopen_deplibs=unknown
16960: ;;
16961: irix*)
16962: # The case above catches anything before 6.2, and it's known that
16963: # at 6.2 and later dlopen does load deplibs.
16964: lt_cv_sys_dlopen_deplibs=yes
16965: ;;
16966: netbsd*)
16967: lt_cv_sys_dlopen_deplibs=yes
16968: ;;
16969: openbsd*)
16970: lt_cv_sys_dlopen_deplibs=yes
16971: ;;
16972: osf[1234]*)
16973: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16974: # it did *not* use an RPATH in a shared library to find objects the
16975: # library depends on, so we explicitly say `no'.
16976: lt_cv_sys_dlopen_deplibs=no
16977: ;;
16978: osf5.0|osf5.0a|osf5.1)
16979: # dlopen *does* load deplibs and with the right loader patch applied
16980: # it even uses RPATH in a shared library to search for shared objects
16981: # that the library depends on, but there's no easy way to know if that
16982: # patch is installed. Since this is the case, all we can really
16983: # say is unknown -- it depends on the patch being installed. If
16984: # it is, this changes to `yes'. Without it, it would be `no'.
16985: lt_cv_sys_dlopen_deplibs=unknown
16986: ;;
16987: osf*)
16988: # the two cases above should catch all versions of osf <= 5.1. Read
16989: # the comments above for what we know about them.
16990: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16991: # is used to find them so we can finally say `yes'.
16992: lt_cv_sys_dlopen_deplibs=yes
16993: ;;
16994: qnx*)
16995: lt_cv_sys_dlopen_deplibs=yes
16996: ;;
16997: solaris*)
16998: lt_cv_sys_dlopen_deplibs=yes
16999: ;;
17000: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17001: libltdl_cv_sys_dlopen_deplibs=yes
17002: ;;
17003: esac
17004:
17005: fi
1.150 moko 17006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
17007: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 17008: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
17009:
1.150 moko 17010: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 17011:
17012: fi
17013:
17014: :
17015:
17016: for ac_header in argz.h
1.150 moko 17017: do :
17018: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
17019: "
17020: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 17021: cat >>confdefs.h <<_ACEOF
1.150 moko 17022: #define HAVE_ARGZ_H 1
1.128 moko 17023: _ACEOF
17024:
1.66 paf 17025: fi
1.62 paf 17026:
1.128 moko 17027: done
17028:
1.29 paf 17029:
1.150 moko 17030: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 17031: # include <argz.h>
17032: #endif
1.150 moko 17033: "
17034: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 17035:
1.128 moko 17036: cat >>confdefs.h <<_ACEOF
17037: #define HAVE_ERROR_T 1
1.62 paf 17038: _ACEOF
1.16 paf 17039:
17040:
1.128 moko 17041: else
1.16 paf 17042:
1.150 moko 17043: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 17044:
1.12 paf 17045:
1.150 moko 17046: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 17047:
1.66 paf 17048: fi
1.12 paf 17049:
1.128 moko 17050:
17051: ARGZ_H=
17052: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17053: argz_next argz_stringify
1.150 moko 17054: do :
17055: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17056: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17057: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17058: cat >>confdefs.h <<_ACEOF
1.150 moko 17059: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17060: _ACEOF
17061:
17062: else
17063: ARGZ_H=argz.h;
17064:
17065: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17066:
17067: fi
17068: done
17069:
17070:
1.150 moko 17071: if test -z "$ARGZ_H"; then :
17072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
17073: $as_echo_n "checking if argz actually works... " >&6; }
17074: if ${lt_cv_sys_argz_works+:} false; then :
17075: $as_echo_n "(cached) " >&6
1.128 moko 17076: else
17077: case $host_os in #(
17078: *cygwin*)
17079: lt_cv_sys_argz_works=no
17080: if test "$cross_compiling" != no; then
17081: lt_cv_sys_argz_works="guessing no"
17082: else
17083: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17084: save_IFS=$IFS
17085: IFS=-.
17086: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17087: IFS=$save_IFS
17088: lt_os_major=${2-0}
17089: lt_os_minor=${3-0}
17090: lt_os_micro=${4-0}
17091: if test "$lt_os_major" -gt 1 \
17092: || { test "$lt_os_major" -eq 1 \
17093: && { test "$lt_os_minor" -gt 5 \
17094: || { test "$lt_os_minor" -eq 5 \
17095: && test "$lt_os_micro" -gt 24; }; }; }; then
17096: lt_cv_sys_argz_works=yes
17097: fi
17098: fi
17099: ;; #(
17100: *) lt_cv_sys_argz_works=yes ;;
17101: esac
17102: fi
1.150 moko 17103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
17104: $as_echo "$lt_cv_sys_argz_works" >&6; }
17105: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 17106:
1.150 moko 17107: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 17108:
1.62 paf 17109: else
1.128 moko 17110: ARGZ_H=argz.h
17111:
17112:
17113: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17114:
17115: fi
1.62 paf 17116: fi
1.128 moko 17117:
17118:
17119:
1.150 moko 17120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
17121: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
17122: if ${libltdl_cv_preloaded_symbols+:} false; then :
17123: $as_echo_n "(cached) " >&6
1.128 moko 17124: else
17125: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17126: libltdl_cv_preloaded_symbols=yes
17127: else
17128: libltdl_cv_preloaded_symbols=no
17129: fi
17130:
1.62 paf 17131: fi
1.150 moko 17132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
17133: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 17134: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17135:
1.150 moko 17136: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 17137:
17138: fi
17139:
1.150 moko 17140:
17141:
1.128 moko 17142: # Set options
17143:
17144:
17145:
17146:
17147:
17148:
17149:
17150:
17151:
17152:
1.66 paf 17153:
17154:
1.150 moko 17155: # Check whether --with-included_ltdl was given.
17156: if test "${with_included_ltdl+set}" = set; then :
17157: withval=$with_included_ltdl;
17158: fi
1.64 paf 17159:
17160:
1.128 moko 17161: if test "x$with_included_ltdl" != xyes; then
17162: # We are not being forced to use the included libltdl sources, so
17163: # decide whether there is a useful installed version we can use.
1.150 moko 17164: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 17165:
1.150 moko 17166: "
17167: if test "x$ac_cv_header_ltdl_h" = xyes; then :
17168: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 17169: #include <ltdl.h>
1.150 moko 17170: "
17171: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
17172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
17173: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
17174: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
17175: $as_echo_n "(cached) " >&6
1.79 paf 17176: else
1.128 moko 17177: ac_check_lib_save_LIBS=$LIBS
17178: LIBS="-lltdl $LIBS"
1.150 moko 17179: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 17180: /* end confdefs.h. */
1.128 moko 17181:
1.150 moko 17182: /* Override any GCC internal prototype to avoid an error.
17183: Use char because int might match the return type of a GCC
17184: builtin and then its argument prototype would still apply. */
1.128 moko 17185: #ifdef __cplusplus
17186: extern "C"
17187: #endif
17188: char lt_dladvise_preload ();
1.79 paf 17189: int
17190: main ()
17191: {
1.150 moko 17192: return lt_dladvise_preload ();
1.79 paf 17193: ;
17194: return 0;
17195: }
17196: _ACEOF
1.150 moko 17197: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 17198: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17199: else
1.150 moko 17200: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 17201: fi
1.150 moko 17202: rm -f core conftest.err conftest.$ac_objext \
17203: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17204: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17205: fi
1.150 moko 17206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17207: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
17208: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 17209: with_included_ltdl=no
1.79 paf 17210: else
1.128 moko 17211: with_included_ltdl=yes
17212: fi
17213:
1.79 paf 17214: else
1.128 moko 17215: with_included_ltdl=yes
17216: fi
1.79 paf 17217:
1.128 moko 17218: else
17219: with_included_ltdl=yes
1.79 paf 17220: fi
1.128 moko 17221:
17222:
1.79 paf 17223: fi
1.128 moko 17224:
17225:
17226:
17227:
1.150 moko 17228: # Check whether --with-ltdl_include was given.
17229: if test "${with_ltdl_include+set}" = set; then :
17230: withval=$with_ltdl_include;
17231: fi
1.128 moko 17232:
17233:
17234: if test -n "$with_ltdl_include"; then
17235: if test -f "$with_ltdl_include/ltdl.h"; then :
17236: else
1.150 moko 17237: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 17238: fi
17239: else
17240: with_ltdl_include=no
1.79 paf 17241: fi
1.128 moko 17242:
17243:
1.150 moko 17244: # Check whether --with-ltdl_lib was given.
17245: if test "${with_ltdl_lib+set}" = set; then :
17246: withval=$with_ltdl_lib;
17247: fi
1.128 moko 17248:
17249:
17250: if test -n "$with_ltdl_lib"; then
17251: if test -f "$with_ltdl_lib/libltdl.la"; then :
17252: else
1.150 moko 17253: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 17254: fi
17255: else
17256: with_ltdl_lib=no
1.79 paf 17257: fi
17258:
1.128 moko 17259: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17260: ,yes,no,no,)
17261: case $enable_ltdl_convenience in
1.150 moko 17262: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 17263: "") enable_ltdl_convenience=yes
17264: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17265: esac
1.150 moko 17266: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 17267: LTDLDEPS=$LIBLTDL
17268: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17269:
17270:
17271:
17272:
17273:
17274: # For backwards non-gettext consistent compatibility...
17275: INCLTDL="$LTDLINCL"
17276:
1.79 paf 17277:
1.128 moko 17278: ;;
17279: ,no,no,no,)
17280: # If the included ltdl is not to be used, then use the
17281: # preinstalled libltdl we found.
1.79 paf 17282:
1.150 moko 17283: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 17284:
1.128 moko 17285: LIBLTDL=-lltdl
17286: LTDLDEPS=
17287: LTDLINCL=
17288: ;;
17289: ,no*,no,*)
1.150 moko 17290: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17291: ;;
17292: *) with_included_ltdl=no
17293: LIBLTDL="-L$with_ltdl_lib -lltdl"
17294: LTDLDEPS=
17295: LTDLINCL="-I$with_ltdl_include"
17296: ;;
17297: esac
17298: INCLTDL="$LTDLINCL"
17299:
17300: # Report our decision...
1.150 moko 17301: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17302: $as_echo_n "checking where to find libltdl headers... " >&6; }
17303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17304: $as_echo "$LTDLINCL" >&6; }
17305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17306: $as_echo_n "checking where to find libltdl library... " >&6; }
17307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17308: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17309:
17310:
17311:
1.150 moko 17312: # Check whether --enable-ltdl-install was given.
17313: if test "${enable_ltdl_install+set}" = set; then :
17314: enableval=$enable_ltdl_install;
17315: fi
1.128 moko 17316:
17317:
17318: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17319: *yes*) ;;
17320: *) enable_ltdl_convenience=yes ;;
17321: esac
17322:
1.150 moko 17323: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17324: INSTALL_LTDL_TRUE=
17325: INSTALL_LTDL_FALSE='#'
17326: else
17327: INSTALL_LTDL_TRUE='#'
17328: INSTALL_LTDL_FALSE=
17329: fi
17330:
1.150 moko 17331: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17332: CONVENIENCE_LTDL_TRUE=
17333: CONVENIENCE_LTDL_FALSE='#'
17334: else
17335: CONVENIENCE_LTDL_TRUE='#'
17336: CONVENIENCE_LTDL_FALSE=
17337: fi
17338:
17339:
17340:
1.150 moko 17341: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17342:
17343:
17344:
17345:
17346: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17347: # the user used. This is so that ltdl.h can pick up the parent projects
17348: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17349: # definitions required by ltdl.c.
17350: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17351:
17352:
17353:
1.150 moko 17354: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17355: do :
17356: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17357: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17358: "
17359: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17360: cat >>confdefs.h <<_ACEOF
17361: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17362: _ACEOF
1.128 moko 17363:
1.150 moko 17364: fi
1.128 moko 17365:
1.150 moko 17366: done
1.128 moko 17367:
17368:
1.150 moko 17369: for ac_func in closedir opendir readdir
17370: do :
17371: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17373: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17374: cat >>confdefs.h <<_ACEOF
17375: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17376: _ACEOF
1.66 paf 17377:
17378: else
1.64 paf 17379:
1.66 paf 17380:
1.128 moko 17381: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17382:
1.66 paf 17383: fi
1.128 moko 17384: done
17385:
17386: for ac_func in strlcat strlcpy
1.150 moko 17387: do :
17388: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17389: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17390: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17391: cat >>confdefs.h <<_ACEOF
1.150 moko 17392: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17393: _ACEOF
17394:
17395: else
17396:
17397:
17398: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17399:
1.62 paf 17400: fi
1.128 moko 17401: done
17402:
17403:
1.64 paf 17404:
1.128 moko 17405: cat >>confdefs.h <<_ACEOF
17406: #define LT_LIBEXT "$libext"
1.62 paf 17407: _ACEOF
1.64 paf 17408:
1.128 moko 17409:
17410: name=
17411: eval "lt_libprefix=\"$libname_spec\""
17412:
17413: cat >>confdefs.h <<_ACEOF
17414: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17415: _ACEOF
1.128 moko 17416:
17417:
17418: name=ltdl
17419: eval "LTDLOPEN=\"$libname_spec\""
17420:
17421:
17422:
17423:
17424:
17425:
17426:
17427:
17428: # Only expand once:
17429:
17430:
17431:
17432:
1.150 moko 17433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17434: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17435: if ${ac_cv_c_bigendian+:} false; then :
17436: $as_echo_n "(cached) " >&6
17437: else
17438: ac_cv_c_bigendian=unknown
17439: # See if we're dealing with a universal compiler.
17440: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441: /* end confdefs.h. */
17442: #ifndef __APPLE_CC__
17443: not a universal capable compiler
17444: #endif
17445: typedef int dummy;
17446:
17447: _ACEOF
17448: if ac_fn_c_try_compile "$LINENO"; then :
17449:
17450: # Check for potential -arch flags. It is not universal unless
17451: # there are at least two -arch flags with different values.
17452: ac_arch=
17453: ac_prev=
17454: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17455: if test -n "$ac_prev"; then
17456: case $ac_word in
17457: i?86 | x86_64 | ppc | ppc64)
17458: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17459: ac_arch=$ac_word
17460: else
17461: ac_cv_c_bigendian=universal
17462: break
17463: fi
17464: ;;
17465: esac
17466: ac_prev=
17467: elif test "x$ac_word" = "x-arch"; then
17468: ac_prev=arch
17469: fi
17470: done
17471: fi
17472: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473: if test $ac_cv_c_bigendian = unknown; then
17474: # See if sys/param.h defines the BYTE_ORDER macro.
17475: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17476: /* end confdefs.h. */
1.128 moko 17477: #include <sys/types.h>
1.150 moko 17478: #include <sys/param.h>
1.128 moko 17479:
17480: int
17481: main ()
17482: {
1.150 moko 17483: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17484: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17485: && LITTLE_ENDIAN)
17486: bogus endian macros
17487: #endif
1.64 paf 17488:
1.128 moko 17489: ;
17490: return 0;
17491: }
1.66 paf 17492: _ACEOF
1.150 moko 17493: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17494: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17495: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17496: /* end confdefs.h. */
1.128 moko 17497: #include <sys/types.h>
1.150 moko 17498: #include <sys/param.h>
1.64 paf 17499:
17500: int
17501: main ()
1.128 moko 17502: {
17503: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17504: not big endian
17505: #endif
1.128 moko 17506:
17507: ;
17508: return 0;
1.64 paf 17509: }
17510: _ACEOF
1.150 moko 17511: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17512: ac_cv_c_bigendian=yes
1.64 paf 17513: else
1.150 moko 17514: ac_cv_c_bigendian=no
17515: fi
17516: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17517: fi
17518: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519: fi
17520: if test $ac_cv_c_bigendian = unknown; then
17521: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17522: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523: /* end confdefs.h. */
17524: #include <limits.h>
1.64 paf 17525:
1.150 moko 17526: int
17527: main ()
17528: {
17529: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17530: bogus endian macros
17531: #endif
1.66 paf 17532:
1.150 moko 17533: ;
17534: return 0;
17535: }
1.62 paf 17536: _ACEOF
1.150 moko 17537: if ac_fn_c_try_compile "$LINENO"; then :
17538: # It does; now see whether it defined to _BIG_ENDIAN or not.
17539: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17540: /* end confdefs.h. */
1.150 moko 17541: #include <limits.h>
17542:
1.128 moko 17543: int
17544: main ()
17545: {
1.150 moko 17546: #ifndef _BIG_ENDIAN
17547: not big endian
17548: #endif
17549:
1.128 moko 17550: ;
17551: return 0;
17552: }
1.62 paf 17553: _ACEOF
1.150 moko 17554: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17555: ac_cv_c_bigendian=yes
1.150 moko 17556: else
17557: ac_cv_c_bigendian=no
1.128 moko 17558: fi
1.150 moko 17559: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17560: fi
1.150 moko 17561: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17562: fi
17563: if test $ac_cv_c_bigendian = unknown; then
17564: # Compile a test program.
17565: if test "$cross_compiling" = yes; then :
17566: # Try to guess by grepping values from an object file.
17567: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568: /* end confdefs.h. */
17569: short int ascii_mm[] =
17570: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17571: short int ascii_ii[] =
17572: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17573: int use_ascii (int i) {
17574: return ascii_mm[i] + ascii_ii[i];
17575: }
17576: short int ebcdic_ii[] =
17577: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17578: short int ebcdic_mm[] =
17579: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17580: int use_ebcdic (int i) {
17581: return ebcdic_mm[i] + ebcdic_ii[i];
17582: }
17583: extern int foo;
1.62 paf 17584:
1.150 moko 17585: int
17586: main ()
17587: {
17588: return use_ascii (foo) == use_ebcdic (foo);
17589: ;
17590: return 0;
17591: }
17592: _ACEOF
17593: if ac_fn_c_try_compile "$LINENO"; then :
17594: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17595: ac_cv_c_bigendian=yes
17596: fi
17597: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17598: if test "$ac_cv_c_bigendian" = unknown; then
17599: ac_cv_c_bigendian=no
17600: else
17601: # finding both strings is unlikely to happen, but who knows?
17602: ac_cv_c_bigendian=unknown
17603: fi
17604: fi
1.128 moko 17605: fi
1.150 moko 17606: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17607: else
1.150 moko 17608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17609: /* end confdefs.h. */
1.150 moko 17610: $ac_includes_default
1.128 moko 17611: int
17612: main ()
17613: {
1.150 moko 17614:
17615: /* Are we little or big endian? From Harbison&Steele. */
17616: union
17617: {
17618: long int l;
17619: char c[sizeof (long int)];
17620: } u;
17621: u.l = 1;
17622: return u.c[sizeof (long int) - 1] == 1;
17623:
17624: ;
17625: return 0;
1.128 moko 17626: }
17627: _ACEOF
1.150 moko 17628: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17629: ac_cv_c_bigendian=no
17630: else
1.150 moko 17631: ac_cv_c_bigendian=yes
1.128 moko 17632: fi
1.150 moko 17633: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17634: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17635: fi
1.150 moko 17636:
17637: fi
1.66 paf 17638: fi
1.150 moko 17639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17640: $as_echo "$ac_cv_c_bigendian" >&6; }
17641: case $ac_cv_c_bigendian in #(
17642: yes)
17643:
17644: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17645:
17646: ;; #(
17647: no)
1.128 moko 17648:
1.150 moko 17649: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17650:
1.150 moko 17651: ;; #(
17652: universal)
1.128 moko 17653:
1.150 moko 17654: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17655:
1.150 moko 17656: ;; #(
17657: *)
17658: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17659: ;;
1.150 moko 17660: esac
1.66 paf 17661:
17662:
1.150 moko 17663: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17664: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17665:
1.66 paf 17666: else
1.1 paf 17667:
1.66 paf 17668: cat >>confdefs.h <<_ACEOF
1.150 moko 17669: #define size_t unsigned int
1.66 paf 17670: _ACEOF
1.62 paf 17671:
17672: fi
1.66 paf 17673:
1.156 moko 17674: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17675: if test "x$ac_cv_type_ssize_t" = xyes; then :
17676:
17677: else
17678:
17679: cat >>confdefs.h <<_ACEOF
17680: #define ssize_t int
17681: _ACEOF
17682:
17683: fi
17684:
1.159 moko 17685: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17686: case $ac_cv_c_uint8_t in #(
17687: no|yes) ;; #(
17688: *)
17689:
17690: $as_echo "#define _UINT8_T 1" >>confdefs.h
17691:
17692:
17693: cat >>confdefs.h <<_ACEOF
17694: #define uint8_t $ac_cv_c_uint8_t
17695: _ACEOF
17696: ;;
17697: esac
17698:
1.165 moko 17699: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17700: case $ac_cv_c_uint16_t in #(
17701: no|yes) ;; #(
17702: *)
17703:
17704:
17705: cat >>confdefs.h <<_ACEOF
17706: #define uint16_t $ac_cv_c_uint16_t
17707: _ACEOF
17708: ;;
17709: esac
17710:
1.156 moko 17711: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17712: case $ac_cv_c_uint32_t in #(
17713: no|yes) ;; #(
17714: *)
17715:
17716: $as_echo "#define _UINT32_T 1" >>confdefs.h
17717:
17718:
17719: cat >>confdefs.h <<_ACEOF
17720: #define uint32_t $ac_cv_c_uint32_t
17721: _ACEOF
17722: ;;
17723: esac
1.128 moko 17724:
1.159 moko 17725: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17726: case $ac_cv_c_uint64_t in #(
17727: no|yes) ;; #(
17728: *)
17729:
17730: $as_echo "#define _UINT64_T 1" >>confdefs.h
17731:
17732:
17733: cat >>confdefs.h <<_ACEOF
17734: #define uint64_t $ac_cv_c_uint64_t
17735: _ACEOF
17736: ;;
17737: esac
17738:
17739:
1.161 moko 17740: ac_header_dirent=no
17741: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17742: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17744: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17745: if eval \${$as_ac_Header+:} false; then :
17746: $as_echo_n "(cached) " >&6
17747: else
17748: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749: /* end confdefs.h. */
17750: #include <sys/types.h>
17751: #include <$ac_hdr>
17752:
17753: int
17754: main ()
17755: {
17756: if ((DIR *) 0)
17757: return 0;
17758: ;
17759: return 0;
17760: }
17761: _ACEOF
17762: if ac_fn_c_try_compile "$LINENO"; then :
17763: eval "$as_ac_Header=yes"
17764: else
17765: eval "$as_ac_Header=no"
17766: fi
17767: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768: fi
17769: eval ac_res=\$$as_ac_Header
17770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17771: $as_echo "$ac_res" >&6; }
17772: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17773: cat >>confdefs.h <<_ACEOF
17774: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17775: _ACEOF
17776:
17777: ac_header_dirent=$ac_hdr; break
17778: fi
17779:
17780: done
17781: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17782: if test $ac_header_dirent = dirent.h; then
17783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17784: $as_echo_n "checking for library containing opendir... " >&6; }
17785: if ${ac_cv_search_opendir+:} false; then :
17786: $as_echo_n "(cached) " >&6
17787: else
17788: ac_func_search_save_LIBS=$LIBS
17789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17790: /* end confdefs.h. */
17791:
17792: /* Override any GCC internal prototype to avoid an error.
17793: Use char because int might match the return type of a GCC
17794: builtin and then its argument prototype would still apply. */
17795: #ifdef __cplusplus
17796: extern "C"
17797: #endif
17798: char opendir ();
17799: int
17800: main ()
17801: {
17802: return opendir ();
17803: ;
17804: return 0;
17805: }
17806: _ACEOF
17807: for ac_lib in '' dir; do
17808: if test -z "$ac_lib"; then
17809: ac_res="none required"
17810: else
17811: ac_res=-l$ac_lib
17812: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17813: fi
17814: if ac_fn_c_try_link "$LINENO"; then :
17815: ac_cv_search_opendir=$ac_res
17816: fi
17817: rm -f core conftest.err conftest.$ac_objext \
17818: conftest$ac_exeext
17819: if ${ac_cv_search_opendir+:} false; then :
17820: break
17821: fi
17822: done
17823: if ${ac_cv_search_opendir+:} false; then :
17824:
17825: else
17826: ac_cv_search_opendir=no
17827: fi
17828: rm conftest.$ac_ext
17829: LIBS=$ac_func_search_save_LIBS
17830: fi
17831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17832: $as_echo "$ac_cv_search_opendir" >&6; }
17833: ac_res=$ac_cv_search_opendir
17834: if test "$ac_res" != no; then :
17835: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17836:
17837: fi
17838:
17839: else
17840: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17841: $as_echo_n "checking for library containing opendir... " >&6; }
17842: if ${ac_cv_search_opendir+:} false; then :
17843: $as_echo_n "(cached) " >&6
17844: else
17845: ac_func_search_save_LIBS=$LIBS
17846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847: /* end confdefs.h. */
17848:
17849: /* Override any GCC internal prototype to avoid an error.
17850: Use char because int might match the return type of a GCC
17851: builtin and then its argument prototype would still apply. */
17852: #ifdef __cplusplus
17853: extern "C"
17854: #endif
17855: char opendir ();
17856: int
17857: main ()
17858: {
17859: return opendir ();
17860: ;
17861: return 0;
17862: }
17863: _ACEOF
17864: for ac_lib in '' x; do
17865: if test -z "$ac_lib"; then
17866: ac_res="none required"
17867: else
17868: ac_res=-l$ac_lib
17869: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17870: fi
17871: if ac_fn_c_try_link "$LINENO"; then :
17872: ac_cv_search_opendir=$ac_res
17873: fi
17874: rm -f core conftest.err conftest.$ac_objext \
17875: conftest$ac_exeext
17876: if ${ac_cv_search_opendir+:} false; then :
17877: break
17878: fi
17879: done
17880: if ${ac_cv_search_opendir+:} false; then :
17881:
17882: else
17883: ac_cv_search_opendir=no
17884: fi
17885: rm conftest.$ac_ext
17886: LIBS=$ac_func_search_save_LIBS
17887: fi
17888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17889: $as_echo "$ac_cv_search_opendir" >&6; }
17890: ac_res=$ac_cv_search_opendir
17891: if test "$ac_res" != no; then :
17892: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17893:
17894: fi
17895:
17896: fi
17897:
17898:
17899:
17900: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17901: #include <sys/types.h>
17902: #ifdef HAVE_DIRENT_H
17903: # include <dirent.h>
17904: #else
17905: # define dirent direct
17906: # ifdef HAVE_SYS_NDIR_H
17907: # include <sys/ndir.h>
17908: # endif
17909: # ifdef HAVE_SYS_DIR_H
17910: # include <sys/dir.h>
17911: # endif
17912: # ifdef HAVE_NDIR_H
17913: # include <ndir.h>
17914: # endif
17915: #endif
17916:
17917: "
17918: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17919:
17920: cat >>confdefs.h <<_ACEOF
17921: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17922: _ACEOF
17923:
17924:
17925: fi
17926:
17927:
1.159 moko 17928:
1.171 moko 17929: # Check whether --enable-largefile was given.
17930: if test "${enable_largefile+set}" = set; then :
17931: enableval=$enable_largefile;
17932: fi
17933:
17934: if test "$enable_largefile" != no; then
17935:
17936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17937: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17938: if ${ac_cv_sys_largefile_CC+:} false; then :
17939: $as_echo_n "(cached) " >&6
17940: else
17941: ac_cv_sys_largefile_CC=no
17942: if test "$GCC" != yes; then
17943: ac_save_CC=$CC
17944: while :; do
17945: # IRIX 6.2 and later do not support large files by default,
17946: # so use the C compiler's -n32 option if that helps.
17947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948: /* end confdefs.h. */
17949: #include <sys/types.h>
17950: /* Check that off_t can represent 2**63 - 1 correctly.
17951: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17952: since some C++ compilers masquerading as C compilers
17953: incorrectly reject 9223372036854775807. */
1.191 moko 17954: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 17955: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17956: && LARGE_OFF_T % 2147483647 == 1)
17957: ? 1 : -1];
17958: int
17959: main ()
17960: {
17961:
17962: ;
17963: return 0;
17964: }
17965: _ACEOF
17966: if ac_fn_c_try_compile "$LINENO"; then :
17967: break
17968: fi
17969: rm -f core conftest.err conftest.$ac_objext
17970: CC="$CC -n32"
17971: if ac_fn_c_try_compile "$LINENO"; then :
17972: ac_cv_sys_largefile_CC=' -n32'; break
17973: fi
17974: rm -f core conftest.err conftest.$ac_objext
17975: break
17976: done
17977: CC=$ac_save_CC
17978: rm -f conftest.$ac_ext
17979: fi
17980: fi
17981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17982: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17983: if test "$ac_cv_sys_largefile_CC" != no; then
17984: CC=$CC$ac_cv_sys_largefile_CC
17985: fi
17986:
17987: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17988: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17989: if ${ac_cv_sys_file_offset_bits+:} false; then :
17990: $as_echo_n "(cached) " >&6
17991: else
17992: while :; do
17993: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994: /* end confdefs.h. */
17995: #include <sys/types.h>
17996: /* Check that off_t can represent 2**63 - 1 correctly.
17997: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17998: since some C++ compilers masquerading as C compilers
17999: incorrectly reject 9223372036854775807. */
1.191 moko 18000: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18001: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18002: && LARGE_OFF_T % 2147483647 == 1)
18003: ? 1 : -1];
18004: int
18005: main ()
18006: {
18007:
18008: ;
18009: return 0;
18010: }
18011: _ACEOF
18012: if ac_fn_c_try_compile "$LINENO"; then :
18013: ac_cv_sys_file_offset_bits=no; break
18014: fi
18015: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017: /* end confdefs.h. */
18018: #define _FILE_OFFSET_BITS 64
18019: #include <sys/types.h>
18020: /* Check that off_t can represent 2**63 - 1 correctly.
18021: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18022: since some C++ compilers masquerading as C compilers
18023: incorrectly reject 9223372036854775807. */
1.191 moko 18024: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18025: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18026: && LARGE_OFF_T % 2147483647 == 1)
18027: ? 1 : -1];
18028: int
18029: main ()
18030: {
18031:
18032: ;
18033: return 0;
18034: }
18035: _ACEOF
18036: if ac_fn_c_try_compile "$LINENO"; then :
18037: ac_cv_sys_file_offset_bits=64; break
18038: fi
18039: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18040: ac_cv_sys_file_offset_bits=unknown
18041: break
18042: done
18043: fi
18044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18045: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18046: case $ac_cv_sys_file_offset_bits in #(
18047: no | unknown) ;;
18048: *)
18049: cat >>confdefs.h <<_ACEOF
18050: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18051: _ACEOF
18052: ;;
18053: esac
18054: rm -rf conftest*
18055: if test $ac_cv_sys_file_offset_bits = unknown; then
18056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18057: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18058: if ${ac_cv_sys_large_files+:} false; then :
18059: $as_echo_n "(cached) " >&6
18060: else
18061: while :; do
18062: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063: /* end confdefs.h. */
18064: #include <sys/types.h>
18065: /* Check that off_t can represent 2**63 - 1 correctly.
18066: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18067: since some C++ compilers masquerading as C compilers
18068: incorrectly reject 9223372036854775807. */
1.191 moko 18069: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18070: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18071: && LARGE_OFF_T % 2147483647 == 1)
18072: ? 1 : -1];
18073: int
18074: main ()
18075: {
18076:
18077: ;
18078: return 0;
18079: }
18080: _ACEOF
18081: if ac_fn_c_try_compile "$LINENO"; then :
18082: ac_cv_sys_large_files=no; break
18083: fi
18084: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086: /* end confdefs.h. */
18087: #define _LARGE_FILES 1
18088: #include <sys/types.h>
18089: /* Check that off_t can represent 2**63 - 1 correctly.
18090: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18091: since some C++ compilers masquerading as C compilers
18092: incorrectly reject 9223372036854775807. */
1.191 moko 18093: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18094: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18095: && LARGE_OFF_T % 2147483647 == 1)
18096: ? 1 : -1];
18097: int
18098: main ()
18099: {
18100:
18101: ;
18102: return 0;
18103: }
18104: _ACEOF
18105: if ac_fn_c_try_compile "$LINENO"; then :
18106: ac_cv_sys_large_files=1; break
18107: fi
18108: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18109: ac_cv_sys_large_files=unknown
18110: break
18111: done
18112: fi
18113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18114: $as_echo "$ac_cv_sys_large_files" >&6; }
18115: case $ac_cv_sys_large_files in #(
18116: no | unknown) ;;
18117: *)
18118: cat >>confdefs.h <<_ACEOF
18119: #define _LARGE_FILES $ac_cv_sys_large_files
18120: _ACEOF
18121: ;;
18122: esac
18123: rm -rf conftest*
18124: fi
18125:
18126:
18127: fi
18128:
18129:
1.159 moko 18130: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18131: $as_echo_n "checking for ANSI C header files... " >&6; }
18132: if ${ac_cv_header_stdc+:} false; then :
18133: $as_echo_n "(cached) " >&6
18134: else
18135: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136: /* end confdefs.h. */
18137: #include <stdlib.h>
18138: #include <stdarg.h>
18139: #include <string.h>
18140: #include <float.h>
18141:
18142: int
18143: main ()
18144: {
18145:
18146: ;
18147: return 0;
18148: }
18149: _ACEOF
18150: if ac_fn_c_try_compile "$LINENO"; then :
18151: ac_cv_header_stdc=yes
18152: else
18153: ac_cv_header_stdc=no
18154: fi
18155: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18156:
18157: if test $ac_cv_header_stdc = yes; then
18158: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18159: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160: /* end confdefs.h. */
18161: #include <string.h>
18162:
18163: _ACEOF
18164: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18165: $EGREP "memchr" >/dev/null 2>&1; then :
18166:
18167: else
18168: ac_cv_header_stdc=no
18169: fi
18170: rm -f conftest*
18171:
18172: fi
18173:
18174: if test $ac_cv_header_stdc = yes; then
18175: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18176: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177: /* end confdefs.h. */
18178: #include <stdlib.h>
18179:
18180: _ACEOF
18181: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18182: $EGREP "free" >/dev/null 2>&1; then :
18183:
18184: else
18185: ac_cv_header_stdc=no
18186: fi
18187: rm -f conftest*
18188:
18189: fi
18190:
18191: if test $ac_cv_header_stdc = yes; then
18192: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18193: if test "$cross_compiling" = yes; then :
18194: :
18195: else
18196: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197: /* end confdefs.h. */
18198: #include <ctype.h>
18199: #include <stdlib.h>
18200: #if ((' ' & 0x0FF) == 0x020)
18201: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18202: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18203: #else
18204: # define ISLOWER(c) \
18205: (('a' <= (c) && (c) <= 'i') \
18206: || ('j' <= (c) && (c) <= 'r') \
18207: || ('s' <= (c) && (c) <= 'z'))
18208: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18209: #endif
18210:
18211: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18212: int
18213: main ()
18214: {
18215: int i;
18216: for (i = 0; i < 256; i++)
18217: if (XOR (islower (i), ISLOWER (i))
18218: || toupper (i) != TOUPPER (i))
18219: return 2;
18220: return 0;
18221: }
18222: _ACEOF
18223: if ac_fn_c_try_run "$LINENO"; then :
18224:
18225: else
18226: ac_cv_header_stdc=no
18227: fi
18228: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18229: conftest.$ac_objext conftest.beam conftest.$ac_ext
18230: fi
18231:
18232: fi
18233: fi
18234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18235: $as_echo "$ac_cv_header_stdc" >&6; }
18236: if test $ac_cv_header_stdc = yes; then
18237:
18238: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18239:
18240: fi
1.128 moko 18241:
1.150 moko 18242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18243: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18244: if ${ac_cv_header_time+:} false; then :
18245: $as_echo_n "(cached) " >&6
1.62 paf 18246: else
1.150 moko 18247: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18248: /* end confdefs.h. */
1.66 paf 18249: #include <sys/types.h>
18250: #include <sys/time.h>
18251: #include <time.h>
1.62 paf 18252:
18253: int
18254: main ()
18255: {
1.66 paf 18256: if ((struct tm *) 0)
18257: return 0;
1.62 paf 18258: ;
18259: return 0;
18260: }
18261: _ACEOF
1.150 moko 18262: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 18263: ac_cv_header_time=yes
1.1 paf 18264: else
1.150 moko 18265: ac_cv_header_time=no
1.1 paf 18266: fi
1.150 moko 18267: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18268: fi
1.150 moko 18269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18270: $as_echo "$ac_cv_header_time" >&6; }
1.66 paf 18271: if test $ac_cv_header_time = yes; then
1.1 paf 18272:
1.150 moko 18273: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.66 paf 18274:
1.1 paf 18275: fi
1.66 paf 18276:
1.1 paf 18277:
1.159 moko 18278: 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
18279: do :
18280: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18281: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18282: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18283: cat >>confdefs.h <<_ACEOF
18284: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18285: _ACEOF
18286:
18287: fi
1.150 moko 18288:
1.159 moko 18289: done
18290:
18291: for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h
18292: do :
18293: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18294: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18295: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18296: cat >>confdefs.h <<_ACEOF
18297: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18298: _ACEOF
18299:
18300: fi
18301:
18302: done
18303:
1.164 moko 18304: 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 18305: do :
18306: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18307: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18308: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18309: cat >>confdefs.h <<_ACEOF
18310: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18311: _ACEOF
18312:
18313: fi
18314:
18315: done
18316:
1.163 moko 18317: for ac_header in sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 18318: do :
18319: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18320: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18321: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 18322: cat >>confdefs.h <<_ACEOF
1.150 moko 18323: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18324: _ACEOF
18325:
18326: fi
18327:
1.66 paf 18328: done
1.62 paf 18329:
18330:
18331:
1.66 paf 18332: case "$host" in
1.107 misha 18333: *-freebsd4*)
18334:
1.150 moko 18335: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 18336:
18337: ;;
1.66 paf 18338: *-sunos5.6* | *-solaris2.6*)
1.150 moko 18339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
18340: $as_echo_n "checking for main in -lxnet... " >&6; }
18341: if ${ac_cv_lib_xnet_main+:} false; then :
18342: $as_echo_n "(cached) " >&6
1.62 paf 18343: else
1.66 paf 18344: ac_check_lib_save_LIBS=$LIBS
18345: LIBS="-lxnet $LIBS"
1.150 moko 18346: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18347: /* end confdefs.h. */
18348:
1.66 paf 18349:
18350: int
18351: main ()
18352: {
1.150 moko 18353: return main ();
1.66 paf 18354: ;
18355: return 0;
18356: }
1.62 paf 18357: _ACEOF
1.150 moko 18358: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18359: ac_cv_lib_xnet_main=yes
1.62 paf 18360: else
1.150 moko 18361: ac_cv_lib_xnet_main=no
1.62 paf 18362: fi
1.150 moko 18363: rm -f core conftest.err conftest.$ac_objext \
18364: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18365: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18366: fi
1.150 moko 18367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
18368: $as_echo "$ac_cv_lib_xnet_main" >&6; }
18369: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 18370: cat >>confdefs.h <<_ACEOF
1.66 paf 18371: #define HAVE_LIBXNET 1
1.62 paf 18372: _ACEOF
1.1 paf 18373:
1.66 paf 18374: LIBS="-lxnet $LIBS"
18375:
1.1 paf 18376: fi
18377:
1.66 paf 18378: ;;
18379: *-sunos5* | *-solaris2*)
1.150 moko 18380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
18381: $as_echo_n "checking for main in -lsocket... " >&6; }
18382: if ${ac_cv_lib_socket_main+:} false; then :
18383: $as_echo_n "(cached) " >&6
1.62 paf 18384: else
1.66 paf 18385: ac_check_lib_save_LIBS=$LIBS
18386: LIBS="-lsocket $LIBS"
1.150 moko 18387: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18388: /* end confdefs.h. */
1.66 paf 18389:
18390:
1.62 paf 18391: int
18392: main ()
18393: {
1.150 moko 18394: return main ();
1.62 paf 18395: ;
18396: return 0;
18397: }
18398: _ACEOF
1.150 moko 18399: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18400: ac_cv_lib_socket_main=yes
1.1 paf 18401: else
1.150 moko 18402: ac_cv_lib_socket_main=no
1.1 paf 18403: fi
1.150 moko 18404: rm -f core conftest.err conftest.$ac_objext \
18405: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18406: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18407: fi
1.150 moko 18408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
18409: $as_echo "$ac_cv_lib_socket_main" >&6; }
18410: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 18411: cat >>confdefs.h <<_ACEOF
18412: #define HAVE_LIBSOCKET 1
18413: _ACEOF
1.1 paf 18414:
1.66 paf 18415: LIBS="-lsocket $LIBS"
1.1 paf 18416:
18417: fi
18418:
1.150 moko 18419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
18420: $as_echo_n "checking for main in -lnsl... " >&6; }
18421: if ${ac_cv_lib_nsl_main+:} false; then :
18422: $as_echo_n "(cached) " >&6
1.62 paf 18423: else
1.66 paf 18424: ac_check_lib_save_LIBS=$LIBS
18425: LIBS="-lnsl $LIBS"
1.150 moko 18426: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18427: /* end confdefs.h. */
1.66 paf 18428:
18429:
1.62 paf 18430: int
18431: main ()
18432: {
1.150 moko 18433: return main ();
1.62 paf 18434: ;
18435: return 0;
18436: }
18437: _ACEOF
1.150 moko 18438: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18439: ac_cv_lib_nsl_main=yes
1.30 paf 18440: else
1.150 moko 18441: ac_cv_lib_nsl_main=no
1.30 paf 18442: fi
1.150 moko 18443: rm -f core conftest.err conftest.$ac_objext \
18444: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18445: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18446: fi
1.150 moko 18447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
18448: $as_echo "$ac_cv_lib_nsl_main" >&6; }
18449: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 18450: cat >>confdefs.h <<_ACEOF
18451: #define HAVE_LIBNSL 1
18452: _ACEOF
1.30 paf 18453:
1.66 paf 18454: LIBS="-lnsl $LIBS"
1.30 paf 18455:
18456: fi
18457:
1.66 paf 18458: ;;
18459: *-nec-sysv4*)
1.150 moko 18460: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18461: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18462: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18463: $as_echo_n "(cached) " >&6
1.62 paf 18464: else
1.66 paf 18465: ac_check_lib_save_LIBS=$LIBS
18466: LIBS="-lnsl $LIBS"
1.150 moko 18467: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18468: /* end confdefs.h. */
1.66 paf 18469:
1.150 moko 18470: /* Override any GCC internal prototype to avoid an error.
18471: Use char because int might match the return type of a GCC
18472: builtin and then its argument prototype would still apply. */
1.66 paf 18473: #ifdef __cplusplus
18474: extern "C"
18475: #endif
18476: char gethostbyname ();
1.62 paf 18477: int
18478: main ()
18479: {
1.150 moko 18480: return gethostbyname ();
1.62 paf 18481: ;
18482: return 0;
18483: }
18484: _ACEOF
1.150 moko 18485: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18486: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18487: else
1.150 moko 18488: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18489: fi
1.150 moko 18490: rm -f core conftest.err conftest.$ac_objext \
18491: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18492: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18493: fi
1.150 moko 18494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18495: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18496: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 18497: cat >>confdefs.h <<_ACEOF
18498: #define HAVE_LIBNSL 1
18499: _ACEOF
1.30 paf 18500:
1.66 paf 18501: LIBS="-lnsl $LIBS"
1.30 paf 18502:
18503: fi
18504:
1.150 moko 18505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18506: $as_echo_n "checking for socket in -lsocket... " >&6; }
18507: if ${ac_cv_lib_socket_socket+:} false; then :
18508: $as_echo_n "(cached) " >&6
1.8 paf 18509: else
1.66 paf 18510: ac_check_lib_save_LIBS=$LIBS
18511: LIBS="-lsocket $LIBS"
1.150 moko 18512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18513: /* end confdefs.h. */
18514:
1.150 moko 18515: /* Override any GCC internal prototype to avoid an error.
18516: Use char because int might match the return type of a GCC
18517: builtin and then its argument prototype would still apply. */
1.66 paf 18518: #ifdef __cplusplus
18519: extern "C"
18520: #endif
18521: char socket ();
1.62 paf 18522: int
18523: main ()
18524: {
1.150 moko 18525: return socket ();
1.62 paf 18526: ;
18527: return 0;
18528: }
18529: _ACEOF
1.150 moko 18530: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18531: ac_cv_lib_socket_socket=yes
1.8 paf 18532: else
1.150 moko 18533: ac_cv_lib_socket_socket=no
1.8 paf 18534: fi
1.150 moko 18535: rm -f core conftest.err conftest.$ac_objext \
18536: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18537: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18538: fi
1.150 moko 18539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18540: $as_echo "$ac_cv_lib_socket_socket" >&6; }
18541: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 18542: cat >>confdefs.h <<_ACEOF
1.128 moko 18543: #define HAVE_LIBSOCKET 1
1.66 paf 18544: _ACEOF
18545:
1.128 moko 18546: LIBS="-lsocket $LIBS"
1.66 paf 18547:
1.62 paf 18548: fi
18549:
1.66 paf 18550: ;;
1.128 moko 18551: *-cygwin*)
18552:
1.150 moko 18553: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 18554:
1.66 paf 18555: ;;
18556: esac
1.1 paf 18557:
1.150 moko 18558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18559: $as_echo_n "checking for sin in -lm... " >&6; }
18560: if ${ac_cv_lib_m_sin+:} false; then :
18561: $as_echo_n "(cached) " >&6
1.1 paf 18562: else
1.62 paf 18563: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18564: LIBS="-lm $LIBS"
1.150 moko 18565: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18566: /* end confdefs.h. */
18567:
1.150 moko 18568: /* Override any GCC internal prototype to avoid an error.
18569: Use char because int might match the return type of a GCC
18570: builtin and then its argument prototype would still apply. */
1.66 paf 18571: #ifdef __cplusplus
18572: extern "C"
18573: #endif
18574: char sin ();
1.62 paf 18575: int
18576: main ()
18577: {
1.150 moko 18578: return sin ();
1.62 paf 18579: ;
18580: return 0;
18581: }
18582: _ACEOF
1.150 moko 18583: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18584: ac_cv_lib_m_sin=yes
1.62 paf 18585: else
1.150 moko 18586: ac_cv_lib_m_sin=no
1.62 paf 18587: fi
1.150 moko 18588: rm -f core conftest.err conftest.$ac_objext \
18589: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18590: LIBS=$ac_check_lib_save_LIBS
18591: fi
1.150 moko 18592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18593: $as_echo "$ac_cv_lib_m_sin" >&6; }
18594: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 18595: cat >>confdefs.h <<_ACEOF
1.66 paf 18596: #define HAVE_LIBM 1
1.62 paf 18597: _ACEOF
1.1 paf 18598:
1.66 paf 18599: LIBS="-lm $LIBS"
1.1 paf 18600:
18601: fi
18602:
1.150 moko 18603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18604: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18605: if ${ac_cv_lib_crypt_crypt+:} false; then :
18606: $as_echo_n "(cached) " >&6
1.1 paf 18607: else
1.62 paf 18608: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18609: LIBS="-lcrypt $LIBS"
1.150 moko 18610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18611: /* end confdefs.h. */
18612:
1.150 moko 18613: /* Override any GCC internal prototype to avoid an error.
18614: Use char because int might match the return type of a GCC
18615: builtin and then its argument prototype would still apply. */
1.66 paf 18616: #ifdef __cplusplus
18617: extern "C"
18618: #endif
18619: char crypt ();
1.62 paf 18620: int
18621: main ()
18622: {
1.150 moko 18623: return crypt ();
1.62 paf 18624: ;
18625: return 0;
18626: }
18627: _ACEOF
1.150 moko 18628: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18629: ac_cv_lib_crypt_crypt=yes
1.62 paf 18630: else
1.150 moko 18631: ac_cv_lib_crypt_crypt=no
1.62 paf 18632: fi
1.150 moko 18633: rm -f core conftest.err conftest.$ac_objext \
18634: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18635: LIBS=$ac_check_lib_save_LIBS
18636: fi
1.150 moko 18637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18638: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18639: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 18640: cat >>confdefs.h <<_ACEOF
1.66 paf 18641: #define HAVE_LIBCRYPT 1
1.62 paf 18642: _ACEOF
1.1 paf 18643:
1.66 paf 18644: LIBS="-lcrypt $LIBS"
18645:
18646: fi
18647:
18648:
18649:
1.159 moko 18650: for ac_func in flock _locking fcntl lockf ftruncate fchmod
18651: do :
18652: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18653: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18654: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18655: cat >>confdefs.h <<_ACEOF
18656: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18657: _ACEOF
18658:
18659: fi
18660: done
1.66 paf 18661:
1.159 moko 18662: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv
1.150 moko 18663: do :
18664: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18665: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18666: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18667: cat >>confdefs.h <<_ACEOF
1.150 moko 18668: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18669: _ACEOF
1.1 paf 18670:
1.66 paf 18671: fi
18672: done
18673:
1.1 paf 18674:
18675:
1.159 moko 18676:
1.67 paf 18677: pa_func=sigsetjmp
1.150 moko 18678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18679: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
18680: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18681: /* end confdefs.h. */
18682:
18683: #ifdef HAVE_SETJMP_H
18684: # include <setjmp.h>
18685: #endif
18686:
18687: int
18688: main ()
18689: {
18690:
18691: $pa_func(0,0);
18692:
18693: ;
18694: return 0;
18695: }
18696: _ACEOF
1.150 moko 18697: if ac_fn_c_try_compile "$LINENO"; then :
18698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18699: $as_echo "yes" >&6; }
1.67 paf 18700: cat >>confdefs.h <<_ACEOF
1.150 moko 18701: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18702: _ACEOF
18703:
18704:
18705: else
1.150 moko 18706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707: $as_echo "no" >&6; }
1.67 paf 18708:
18709: fi
1.150 moko 18710: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18711:
18712:
18713:
1.159 moko 18714:
1.150 moko 18715: ac_ext=cpp
1.67 paf 18716: ac_cpp='$CXXCPP $CPPFLAGS'
18717: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18718: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18719: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18720:
18721:
18722:
1.188 moko 18723: for pa_func in trunc round sign isfinite
1.67 paf 18724: do
18725:
1.150 moko 18726: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18727: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
18728: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18729: /* end confdefs.h. */
18730:
18731: #ifdef HAVE_MATH_H
18732: # include <math.h>
18733: #endif
18734:
18735: int
18736: main ()
18737: {
18738:
18739: double result=$pa_func(1.6);
18740:
18741: ;
18742: return 0;
18743: }
18744: _ACEOF
1.150 moko 18745: if ac_fn_cxx_try_compile "$LINENO"; then :
18746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18747: $as_echo "yes" >&6; }
1.67 paf 18748: cat >>confdefs.h <<_ACEOF
1.150 moko 18749: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18750: _ACEOF
1.66 paf 18751:
1.62 paf 18752: else
1.150 moko 18753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18754: $as_echo "no" >&6; }
1.62 paf 18755:
18756: fi
1.150 moko 18757: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18758:
18759: done
18760:
18761: ac_ext=c
18762: ac_cpp='$CPP $CPPFLAGS'
18763: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18764: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18765: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18766:
18767:
18768:
18769: for ac_func in qsort
18770: do :
18771: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18772: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18773: cat >>confdefs.h <<_ACEOF
1.150 moko 18774: #define HAVE_QSORT 1
1.62 paf 18775: _ACEOF
1.1 paf 18776:
1.66 paf 18777: else
1.150 moko 18778: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18779: fi
1.66 paf 18780: done
1.1 paf 18781:
18782:
1.62 paf 18783:
1.159 moko 18784:
1.177 moko 18785: ac_ext=cpp
18786: ac_cpp='$CXXCPP $CPPFLAGS'
18787: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18788: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18789: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18790:
1.150 moko 18791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18792: $as_echo_n "checking for timezone variable... " >&6; }
18793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18794: /* end confdefs.h. */
1.66 paf 18795: #include <time.h>
1.62 paf 18796: int
18797: main ()
18798: {
1.177 moko 18799: int test=timezone;
1.62 paf 18800: ;
18801: return 0;
18802: }
18803: _ACEOF
1.177 moko 18804: if ac_fn_cxx_try_compile "$LINENO"; then :
1.150 moko 18805: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18807: $as_echo "yes" >&6; }
1.62 paf 18808: else
1.150 moko 18809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18810: $as_echo "no" >&6; }
1.62 paf 18811: fi
1.150 moko 18812: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.177 moko 18813: ac_ext=c
18814: ac_cpp='$CPP $CPPFLAGS'
18815: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18818:
1.1 paf 18819:
1.176 moko 18820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18821: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
1.150 moko 18822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18823: /* end confdefs.h. */
1.66 paf 18824: #include <time.h>
1.62 paf 18825: int
18826: main ()
18827: {
1.176 moko 18828: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18829: ;
18830: return 0;
18831: }
18832: _ACEOF
1.150 moko 18833: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18834: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18836: $as_echo "yes" >&6; }
1.62 paf 18837: else
1.150 moko 18838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18839: $as_echo "no" >&6; }
1.62 paf 18840: fi
1.150 moko 18841: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18842:
1.176 moko 18843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18844: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
1.150 moko 18845: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18846: /* end confdefs.h. */
1.66 paf 18847: #include <time.h>
1.62 paf 18848: int
18849: main ()
18850: {
1.176 moko 18851: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18852: ;
18853: return 0;
18854: }
18855: _ACEOF
1.150 moko 18856: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18857: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18859: $as_echo "yes" >&6; }
1.62 paf 18860: else
1.150 moko 18861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18862: $as_echo "no" >&6; }
1.62 paf 18863: fi
1.150 moko 18864: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18865:
1.176 moko 18866: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
18867: $as_echo_n "checking for 0..9999 year date range support... " >&6; }
18868: if test "$cross_compiling" = yes; then :
18869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18870: $as_echo "no" >&6; }
18871: else
18872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18873: /* end confdefs.h. */
1.176 moko 18874:
18875: #include <string.h>
1.66 paf 18876: #include <time.h>
1.176 moko 18877:
18878: int main() {
18879: struct tm tmL,tmH;
18880: memset(&tmL, 0, sizeof(tmL));
18881: memset(&tmH, 0, sizeof(tmH));
18882: tmL.tm_year=-1900;
18883: tmL.tm_mon=-1;
18884: tmH.tm_year=9999-1900;
18885: tmH.tm_mon=12-1;
18886: tmH.tm_mday=31;
18887: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 18888: }
1.176 moko 18889:
1.62 paf 18890: _ACEOF
1.176 moko 18891: if ac_fn_c_try_run "$LINENO"; then :
18892: $as_echo "#define PA_DATE64 1" >>confdefs.h
1.158 moko 18893: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18894: $as_echo "yes" >&6; }
1.62 paf 18895: else
1.150 moko 18896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18897: $as_echo "no" >&6; }
1.62 paf 18898: fi
1.176 moko 18899: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18900: conftest.$ac_objext conftest.beam conftest.$ac_ext
18901: fi
1.31 paf 18902:
1.1 paf 18903:
18904:
18905:
1.62 paf 18906:
18907:
18908:
1.150 moko 18909: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18910:
18911:
1.173 moko 18912: 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 18913:
18914: cat >confcache <<\_ACEOF
1.1 paf 18915: # This file is a shell script that caches the results of configure
18916: # tests run on this system so they can be shared between configure
1.62 paf 18917: # scripts and configure runs, see configure's option --config-cache.
18918: # It is not useful on other systems. If it contains results you don't
18919: # want to keep, you may remove or edit it.
1.1 paf 18920: #
1.62 paf 18921: # config.status only pays attention to the cache file if you give it
18922: # the --recheck option to rerun configure.
1.1 paf 18923: #
1.62 paf 18924: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18925: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18926: # following values.
18927:
18928: _ACEOF
18929:
1.1 paf 18930: # The following way of writing the cache mishandles newlines in values,
18931: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 18932: # So, we kill variables containing newlines.
1.1 paf 18933: # Ultrix sh set writes to stderr and can't be redirected directly,
18934: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 18935: (
18936: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18937: eval ac_val=\$$ac_var
18938: case $ac_val in #(
18939: *${as_nl}*)
18940: case $ac_var in #(
18941: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18942: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18943: esac
18944: case $ac_var in #(
18945: _ | IFS | as_nl) ;; #(
18946: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18947: *) { eval $ac_var=; unset $ac_var;} ;;
18948: esac ;;
18949: esac
18950: done
18951:
1.62 paf 18952: (set) 2>&1 |
1.150 moko 18953: case $as_nl`(ac_space=' '; set) 2>&1` in #(
18954: *${as_nl}ac_space=\ *)
18955: # `set' does not quote correctly, so add quotes: double-quote
18956: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 18957: sed -n \
1.86 paf 18958: "s/'/'\\\\''/g;
18959: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 18960: ;; #(
1.62 paf 18961: *)
18962: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 18963: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 18964: ;;
1.150 moko 18965: esac |
18966: sort
18967: ) |
1.62 paf 18968: sed '
1.150 moko 18969: /^ac_cv_env_/b end
1.62 paf 18970: t clear
1.150 moko 18971: :clear
1.62 paf 18972: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18973: t end
1.150 moko 18974: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18975: :end' >>confcache
18976: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18977: if test -w "$cache_file"; then
18978: if test "x$cache_file" != "x/dev/null"; then
18979: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18980: $as_echo "$as_me: updating cache $cache_file" >&6;}
18981: if test ! -f "$cache_file" || test -h "$cache_file"; then
18982: cat confcache >"$cache_file"
18983: else
18984: case $cache_file in #(
18985: */* | ?:*)
18986: mv -f confcache "$cache_file"$$ &&
18987: mv -f "$cache_file"$$ "$cache_file" ;; #(
18988: *)
18989: mv -f confcache "$cache_file" ;;
18990: esac
18991: fi
18992: fi
1.1 paf 18993: else
1.150 moko 18994: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18995: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 18996: fi
18997: fi
18998: rm -f confcache
18999:
19000: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19001: # Let make expand exec_prefix.
19002: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19003:
1.62 paf 19004: DEFS=-DHAVE_CONFIG_H
19005:
19006: ac_libobjs=
19007: ac_ltlibobjs=
19008: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19009: # 1. Remove the extension, and $U if already installed.
1.150 moko 19010: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19011: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19012: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19013: # will be set to the directory where LIBOBJS objects are built.
19014: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19015: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 19016: done
19017: LIBOBJS=$ac_libobjs
19018:
19019: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19020:
19021:
1.187 moko 19022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19023: $as_echo_n "checking that generated files are newer than configure... " >&6; }
19024: if test -n "$am_sleep_pid"; then
19025: # Hide warnings about reused PIDs.
19026: wait $am_sleep_pid 2>/dev/null
19027: fi
19028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19029: $as_echo "done" >&6; }
1.150 moko 19030: if test -n "$EXEEXT"; then
19031: am__EXEEXT_TRUE=
19032: am__EXEEXT_FALSE='#'
19033: else
19034: am__EXEEXT_TRUE='#'
19035: am__EXEEXT_FALSE=
19036: fi
19037:
1.62 paf 19038: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 19039: as_fn_error $? "conditional \"AMDEP\" was never defined.
19040: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19041: fi
1.66 paf 19042: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 19043: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19044: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19045: fi
1.66 paf 19046: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 19047: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19048: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19049: fi
1.122 moko 19050: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 19051: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
19052: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19053: fi
1.128 moko 19054: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 19055: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
19056: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19057: fi
19058: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 19059: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
19060: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19061: fi
1.150 moko 19062: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 19063:
19064: _ltdl_libobjs=
19065: _ltdl_ltlibobjs=
19066: if test -n "$_LT_LIBOBJS"; then
19067: # Remove the extension.
19068: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19069: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19070: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19071: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19072: done
19073: fi
19074: ltdl_LIBOBJS=$_ltdl_libobjs
19075:
19076: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19077:
19078:
1.62 paf 19079:
1.150 moko 19080:
19081: : "${CONFIG_STATUS=./config.status}"
19082: ac_write_fail=0
1.62 paf 19083: ac_clean_files_save=$ac_clean_files
19084: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 19085: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19086: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19087: as_write_fail=0
19088: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 19089: #! $SHELL
19090: # Generated by $as_me.
19091: # Run this file to recreate the current configuration.
19092: # Compiler output produced by configure, useful for debugging
19093: # configure, is in config.log if it exists.
19094:
19095: debug=false
19096: ac_cs_recheck=false
19097: ac_cs_silent=false
1.150 moko 19098:
1.62 paf 19099: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 19100: export SHELL
19101: _ASEOF
19102: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19103: ## -------------------- ##
19104: ## M4sh Initialization. ##
19105: ## -------------------- ##
1.62 paf 19106:
1.150 moko 19107: # Be more Bourne compatible
19108: DUALCASE=1; export DUALCASE # for MKS sh
19109: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 19110: emulate sh
19111: NULLCMD=:
1.150 moko 19112: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 19113: # is contrary to our usage. Disable this feature.
19114: alias -g '${1+"$@"}'='"$@"'
1.150 moko 19115: setopt NO_GLOB_SUBST
19116: else
19117: case `(set -o) 2>/dev/null` in #(
19118: *posix*) :
19119: set -o posix ;; #(
19120: *) :
19121: ;;
19122: esac
19123: fi
19124:
19125:
19126: as_nl='
19127: '
19128: export as_nl
19129: # Printing a long string crashes Solaris 7 /usr/bin/printf.
19130: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19131: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19132: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19133: # Prefer a ksh shell builtin over an external printf program on Solaris,
19134: # but without wasting forks for bash or zsh.
19135: if test -z "$BASH_VERSION$ZSH_VERSION" \
19136: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19137: as_echo='print -r --'
19138: as_echo_n='print -rn --'
19139: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19140: as_echo='printf %s\n'
19141: as_echo_n='printf %s'
19142: else
19143: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19144: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19145: as_echo_n='/usr/ucb/echo -n'
19146: else
19147: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19148: as_echo_n_body='eval
19149: arg=$1;
19150: case $arg in #(
19151: *"$as_nl"*)
19152: expr "X$arg" : "X\\(.*\\)$as_nl";
19153: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19154: esac;
19155: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19156: '
19157: export as_echo_n_body
19158: as_echo_n='sh -c $as_echo_n_body as_echo'
19159: fi
19160: export as_echo_body
19161: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 19162: fi
19163:
1.150 moko 19164: # The user is always right.
19165: if test "${PATH_SEPARATOR+set}" != set; then
19166: PATH_SEPARATOR=:
19167: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19168: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19169: PATH_SEPARATOR=';'
19170: }
1.62 paf 19171: fi
19172:
19173:
1.150 moko 19174: # IFS
19175: # We need space, tab and new line, in precisely that order. Quoting is
19176: # there to prevent editors from complaining about space-tab.
19177: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19178: # splitting by setting IFS to empty value.)
19179: IFS=" "" $as_nl"
19180:
19181: # Find who we are. Look in the path if we contain no directory separator.
19182: as_myself=
19183: case $0 in #((
19184: *[\\/]* ) as_myself=$0 ;;
19185: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19186: for as_dir in $PATH
19187: do
19188: IFS=$as_save_IFS
19189: test -z "$as_dir" && as_dir=.
19190: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19191: done
19192: IFS=$as_save_IFS
19193:
19194: ;;
19195: esac
19196: # We did not find ourselves, most probably we were run as `sh COMMAND'
19197: # in which case we are not to be found in the path.
19198: if test "x$as_myself" = x; then
19199: as_myself=$0
19200: fi
19201: if test ! -f "$as_myself"; then
19202: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19203: exit 1
19204: fi
19205:
19206: # Unset variables that we do not need and which cause bugs (e.g. in
19207: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19208: # suppresses any "Segmentation fault" message there. '((' could
19209: # trigger a bug in pdksh 5.2.14.
19210: for as_var in BASH_ENV ENV MAIL MAILPATH
19211: do eval test x\${$as_var+set} = xset \
19212: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19213: done
1.62 paf 19214: PS1='$ '
19215: PS2='> '
19216: PS4='+ '
19217:
19218: # NLS nuisances.
1.150 moko 19219: LC_ALL=C
19220: export LC_ALL
19221: LANGUAGE=C
19222: export LANGUAGE
19223:
19224: # CDPATH.
19225: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19226:
19227:
19228: # as_fn_error STATUS ERROR [LINENO LOG_FD]
19229: # ----------------------------------------
19230: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19231: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19232: # script with STATUS, using 1 if that was 0.
19233: as_fn_error ()
19234: {
19235: as_status=$1; test $as_status -eq 0 && as_status=1
19236: if test "$4"; then
19237: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19238: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19239: fi
19240: $as_echo "$as_me: error: $2" >&2
19241: as_fn_exit $as_status
19242: } # as_fn_error
19243:
19244:
19245: # as_fn_set_status STATUS
19246: # -----------------------
19247: # Set $? to STATUS, without forking.
19248: as_fn_set_status ()
19249: {
19250: return $1
19251: } # as_fn_set_status
19252:
19253: # as_fn_exit STATUS
19254: # -----------------
19255: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19256: as_fn_exit ()
19257: {
19258: set +e
19259: as_fn_set_status $1
19260: exit $1
19261: } # as_fn_exit
19262:
19263: # as_fn_unset VAR
19264: # ---------------
19265: # Portably unset VAR.
19266: as_fn_unset ()
19267: {
19268: { eval $1=; unset $1;}
19269: }
19270: as_unset=as_fn_unset
19271: # as_fn_append VAR VALUE
19272: # ----------------------
19273: # Append the text in VALUE to the end of the definition contained in VAR. Take
19274: # advantage of any shell optimizations that allow amortized linear growth over
19275: # repeated appends, instead of the typical quadratic growth present in naive
19276: # implementations.
19277: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19278: eval 'as_fn_append ()
19279: {
19280: eval $1+=\$2
19281: }'
19282: else
19283: as_fn_append ()
19284: {
19285: eval $1=\$$1\$2
19286: }
19287: fi # as_fn_append
19288:
19289: # as_fn_arith ARG...
19290: # ------------------
19291: # Perform arithmetic evaluation on the ARGs, and store the result in the
19292: # global $as_val. Take advantage of shells that can avoid forks. The arguments
19293: # must be portable across $(()) and expr.
19294: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19295: eval 'as_fn_arith ()
19296: {
19297: as_val=$(( $* ))
19298: }'
19299: else
19300: as_fn_arith ()
19301: {
19302: as_val=`expr "$@" || test $? -eq 1`
19303: }
19304: fi # as_fn_arith
19305:
1.1 paf 19306:
1.150 moko 19307: if expr a : '\(a\)' >/dev/null 2>&1 &&
19308: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 19309: as_expr=expr
19310: else
19311: as_expr=false
19312: fi
19313:
1.150 moko 19314: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 19315: as_basename=basename
19316: else
19317: as_basename=false
19318: fi
19319:
1.150 moko 19320: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19321: as_dirname=dirname
19322: else
19323: as_dirname=false
19324: fi
1.62 paf 19325:
1.150 moko 19326: as_me=`$as_basename -- "$0" ||
1.62 paf 19327: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19328: X"$0" : 'X\(//\)$' \| \
1.150 moko 19329: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19330: $as_echo X/"$0" |
19331: sed '/^.*\/\([^/][^/]*\)\/*$/{
19332: s//\1/
19333: q
19334: }
19335: /^X\/\(\/\/\)$/{
19336: s//\1/
19337: q
19338: }
19339: /^X\/\(\/\).*/{
19340: s//\1/
19341: q
19342: }
19343: s/.*/./; q'`
1.62 paf 19344:
19345: # Avoid depending upon Character Ranges.
19346: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19347: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19348: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19349: as_cr_digits='0123456789'
19350: as_cr_alnum=$as_cr_Letters$as_cr_digits
19351:
1.150 moko 19352: ECHO_C= ECHO_N= ECHO_T=
19353: case `echo -n x` in #(((((
19354: -n*)
19355: case `echo 'xy\c'` in
19356: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19357: xy) ECHO_C='\c';;
19358: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19359: ECHO_T=' ';;
19360: esac;;
19361: *)
19362: ECHO_N='-n';;
1.62 paf 19363: esac
19364:
1.150 moko 19365: rm -f conf$$ conf$$.exe conf$$.file
19366: if test -d conf$$.dir; then
19367: rm -f conf$$.dir/conf$$.file
1.62 paf 19368: else
1.150 moko 19369: rm -f conf$$.dir
19370: mkdir conf$$.dir 2>/dev/null
1.62 paf 19371: fi
1.150 moko 19372: if (echo >conf$$.file) 2>/dev/null; then
19373: if ln -s conf$$.file conf$$ 2>/dev/null; then
19374: as_ln_s='ln -s'
19375: # ... but there are two gotchas:
19376: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19377: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 19378: # In both cases, we have to default to `cp -pR'.
1.150 moko 19379: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 19380: as_ln_s='cp -pR'
1.150 moko 19381: elif ln conf$$.file conf$$ 2>/dev/null; then
19382: as_ln_s=ln
19383: else
1.166 moko 19384: as_ln_s='cp -pR'
1.62 paf 19385: fi
19386: else
1.166 moko 19387: as_ln_s='cp -pR'
1.62 paf 19388: fi
1.150 moko 19389: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19390: rmdir conf$$.dir 2>/dev/null
19391:
19392:
19393: # as_fn_mkdir_p
19394: # -------------
19395: # Create "$as_dir" as a directory, including parents if necessary.
19396: as_fn_mkdir_p ()
19397: {
19398:
19399: case $as_dir in #(
19400: -*) as_dir=./$as_dir;;
19401: esac
19402: test -d "$as_dir" || eval $as_mkdir_p || {
19403: as_dirs=
19404: while :; do
19405: case $as_dir in #(
19406: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19407: *) as_qdir=$as_dir;;
19408: esac
19409: as_dirs="'$as_qdir' $as_dirs"
19410: as_dir=`$as_dirname -- "$as_dir" ||
19411: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19412: X"$as_dir" : 'X\(//\)[^/]' \| \
19413: X"$as_dir" : 'X\(//\)$' \| \
19414: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19415: $as_echo X"$as_dir" |
19416: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19417: s//\1/
19418: q
19419: }
19420: /^X\(\/\/\)[^/].*/{
19421: s//\1/
19422: q
19423: }
19424: /^X\(\/\/\)$/{
19425: s//\1/
19426: q
19427: }
19428: /^X\(\/\).*/{
19429: s//\1/
19430: q
19431: }
19432: s/.*/./; q'`
19433: test -d "$as_dir" && break
19434: done
19435: test -z "$as_dirs" || eval "mkdir $as_dirs"
19436: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19437:
1.62 paf 19438:
1.150 moko 19439: } # as_fn_mkdir_p
1.62 paf 19440: if mkdir -p . 2>/dev/null; then
1.150 moko 19441: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 19442: else
1.86 paf 19443: test -d ./-p && rmdir ./-p
1.62 paf 19444: as_mkdir_p=false
19445: fi
19446:
1.166 moko 19447:
19448: # as_fn_executable_p FILE
19449: # -----------------------
19450: # Test if FILE is an executable regular file.
19451: as_fn_executable_p ()
19452: {
19453: test -f "$1" && test -x "$1"
19454: } # as_fn_executable_p
19455: as_test_x='test -x'
19456: as_executable_p=as_fn_executable_p
1.62 paf 19457:
19458: # Sed expression to map a string onto a valid CPP name.
1.86 paf 19459: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19460:
19461: # Sed expression to map a string onto a valid variable name.
1.86 paf 19462: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19463:
19464:
19465: exec 6>&1
1.150 moko 19466: ## ----------------------------------- ##
19467: ## Main body of $CONFIG_STATUS script. ##
19468: ## ----------------------------------- ##
19469: _ASEOF
19470: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 19471:
1.150 moko 19472: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19473: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 19474: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 19475: # values after options handling.
19476: ac_log="
1.186 moko 19477: This file was extended by parser $as_me 3.4.6b, which was
1.166 moko 19478: generated by GNU Autoconf 2.69. Invocation command line was
1.62 paf 19479:
19480: CONFIG_FILES = $CONFIG_FILES
19481: CONFIG_HEADERS = $CONFIG_HEADERS
19482: CONFIG_LINKS = $CONFIG_LINKS
19483: CONFIG_COMMANDS = $CONFIG_COMMANDS
19484: $ $0 $@
19485:
1.150 moko 19486: on `(hostname || uname -n) 2>/dev/null | sed 1q`
19487: "
19488:
1.62 paf 19489: _ACEOF
19490:
1.150 moko 19491: case $ac_config_files in *"
19492: "*) set x $ac_config_files; shift; ac_config_files=$*;;
19493: esac
1.62 paf 19494:
1.150 moko 19495: case $ac_config_headers in *"
19496: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19497: esac
1.62 paf 19498:
19499:
1.150 moko 19500: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19501: # Files that config.status was made for.
19502: config_files="$ac_config_files"
19503: config_headers="$ac_config_headers"
19504: config_commands="$ac_config_commands"
1.62 paf 19505:
1.150 moko 19506: _ACEOF
1.62 paf 19507:
1.150 moko 19508: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19509: ac_cs_usage="\
1.150 moko 19510: \`$as_me' instantiates files and other configuration actions
19511: from templates according to the current configuration. Unless the files
19512: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 19513:
1.150 moko 19514: Usage: $0 [OPTION]... [TAG]...
1.62 paf 19515:
19516: -h, --help print this help, then exit
1.150 moko 19517: -V, --version print version number and configuration settings, then exit
19518: --config print configuration, then exit
19519: -q, --quiet, --silent
19520: do not print progress messages
1.62 paf 19521: -d, --debug don't remove temporary files
19522: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 19523: --file=FILE[:TEMPLATE]
19524: instantiate the configuration file FILE
19525: --header=FILE[:TEMPLATE]
19526: instantiate the configuration header FILE
1.62 paf 19527:
19528: Configuration files:
19529: $config_files
19530:
19531: Configuration headers:
19532: $config_headers
19533:
19534: Configuration commands:
19535: $config_commands
19536:
1.150 moko 19537: Report bugs to the package provider."
19538:
1.62 paf 19539: _ACEOF
1.150 moko 19540: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19541: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 19542: ac_cs_version="\\
1.186 moko 19543: parser config.status 3.4.6b
1.166 moko 19544: configured by $0, generated by GNU Autoconf 2.69,
1.150 moko 19545: with options \\"\$ac_cs_config\\"
1.62 paf 19546:
1.166 moko 19547: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 19548: This config.status script is free software; the Free Software Foundation
19549: gives unlimited permission to copy, distribute and modify it."
1.150 moko 19550:
19551: ac_pwd='$ac_pwd'
19552: srcdir='$srcdir'
19553: INSTALL='$INSTALL'
19554: MKDIR_P='$MKDIR_P'
19555: AWK='$AWK'
19556: test -n "\$AWK" || AWK=awk
1.62 paf 19557: _ACEOF
19558:
1.150 moko 19559: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19560: # The default lists apply if the user does not specify any file.
1.62 paf 19561: ac_need_defaults=:
19562: while test $# != 0
19563: do
19564: case $1 in
1.150 moko 19565: --*=?*)
19566: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19567: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 19568: ac_shift=:
19569: ;;
1.150 moko 19570: --*=)
19571: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19572: ac_optarg=
19573: ac_shift=:
19574: ;;
19575: *)
1.62 paf 19576: ac_option=$1
19577: ac_optarg=$2
19578: ac_shift=shift
19579: ;;
19580: esac
19581:
19582: case $ac_option in
19583: # Handling of the options.
19584: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19585: ac_cs_recheck=: ;;
1.150 moko 19586: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19587: $as_echo "$ac_cs_version"; exit ;;
19588: --config | --confi | --conf | --con | --co | --c )
19589: $as_echo "$ac_cs_config"; exit ;;
19590: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 19591: debug=: ;;
19592: --file | --fil | --fi | --f )
19593: $ac_shift
1.150 moko 19594: case $ac_optarg in
19595: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19596: '') as_fn_error $? "missing file argument" ;;
19597: esac
19598: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 19599: ac_need_defaults=false;;
19600: --header | --heade | --head | --hea )
19601: $ac_shift
1.150 moko 19602: case $ac_optarg in
19603: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19604: esac
19605: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 19606: ac_need_defaults=false;;
1.150 moko 19607: --he | --h)
19608: # Conflict between --help and --header
19609: as_fn_error $? "ambiguous option: \`$1'
19610: Try \`$0 --help' for more information.";;
19611: --help | --hel | -h )
19612: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 19613: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19614: | -silent | --silent | --silen | --sile | --sil | --si | --s)
19615: ac_cs_silent=: ;;
19616:
19617: # This is an error.
1.150 moko 19618: -*) as_fn_error $? "unrecognized option: \`$1'
19619: Try \`$0 --help' for more information." ;;
1.62 paf 19620:
1.150 moko 19621: *) as_fn_append ac_config_targets " $1"
19622: ac_need_defaults=false ;;
1.62 paf 19623:
19624: esac
19625: shift
19626: done
19627:
19628: ac_configure_extra_args=
19629:
19630: if $ac_cs_silent; then
19631: exec 6>/dev/null
1.150 moko 19632: ac_configure_extra_args="$ac_configure_extra_args --silent"
19633: fi
19634:
19635: _ACEOF
19636: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19637: if \$ac_cs_recheck; then
1.166 moko 19638: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 19639: shift
19640: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19641: CONFIG_SHELL='$SHELL'
19642: export CONFIG_SHELL
19643: exec "\$@"
19644: fi
19645:
19646: _ACEOF
19647: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19648: exec 5>>config.log
19649: {
19650: echo
19651: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19652: ## Running $as_me. ##
19653: _ASBOX
19654: $as_echo "$ac_log"
19655: } >&5
1.62 paf 19656:
19657: _ACEOF
1.150 moko 19658: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 19659: #
1.150 moko 19660: # INIT-COMMANDS
1.1 paf 19661: #
1.62 paf 19662: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19663:
1.128 moko 19664:
19665: # The HP-UX ksh and POSIX shell print the target directory to stdout
19666: # if CDPATH is set.
19667: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19668:
19669: sed_quote_subst='$sed_quote_subst'
19670: double_quote_subst='$double_quote_subst'
19671: delay_variable_subst='$delay_variable_subst'
19672: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19673: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19674: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19675: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19676: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19677: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19678: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19679: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19680: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19681: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19682: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19683: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19684: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19685: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19686: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19687: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19688: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19689: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19690: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19691: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19692: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19693: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19694: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19695: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19696: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19697: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19698: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19699: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19700: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19701: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19702: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19703: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19704: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19705: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19706: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19707: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19708: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19709: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19710: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19711: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19712: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19713: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19714: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19715: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19716: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19717: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19718: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19719: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19720: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19721: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19722: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19723: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19724: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19725: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19726: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19727: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19728: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19729: 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"`'
19730: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19731: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19732: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19733: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19734: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19735: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19736: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19737: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19738: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19739: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19740: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19741: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19742: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19743: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19744: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19745: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19746: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19747: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19748: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19749: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19750: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19751: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19752: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19753: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19754: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19755: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19756: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19757: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19758: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19759: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19760: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19761: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19762: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19763: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19764: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19765: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19766: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19767: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19768: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19769: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19770: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19771: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19772: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19773: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19774: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19775: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19776: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19777: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19778: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19779: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19780: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19781: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19782: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19783: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19784: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19785: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19786: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19787: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19788: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19789: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19790: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19791: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19792: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19793: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19794: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19795: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19796: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19797: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19798: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19799: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19800: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19801: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19802: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19803: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19804: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19805: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19806: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19807: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19808: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19809: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19810: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19811: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19812: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19813: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19814: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19815: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19816: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19817: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19818: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19819: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19820: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19821: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19822: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19823: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19824: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19825: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19826: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19827: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19828: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19829: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19830: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19831: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19832: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19833: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19834: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19835: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19836: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19837: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19838: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19839: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19840: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19841: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19842: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19843: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19844: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19845: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19846: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19847: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19848: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19849: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19850: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19851: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19852: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19853: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19854: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19855: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19856: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19857:
19858: LTCC='$LTCC'
19859: LTCFLAGS='$LTCFLAGS'
19860: compiler='$compiler_DEFAULT'
19861:
19862: # A function that is used when there is no print builtin or printf.
19863: func_fallback_echo ()
19864: {
19865: eval 'cat <<_LTECHO_EOF
19866: \$1
19867: _LTECHO_EOF'
19868: }
19869:
19870: # Quote evaled strings.
19871: for var in AS \
19872: DLLTOOL \
19873: OBJDUMP \
19874: SHELL \
19875: ECHO \
19876: PATH_SEPARATOR \
19877: SED \
19878: GREP \
19879: EGREP \
19880: FGREP \
19881: LD \
19882: NM \
19883: LN_S \
19884: lt_SP2NL \
19885: lt_NL2SP \
19886: reload_flag \
19887: deplibs_check_method \
19888: file_magic_cmd \
19889: file_magic_glob \
19890: want_nocaseglob \
19891: sharedlib_from_linklib_cmd \
19892: AR \
19893: AR_FLAGS \
19894: archiver_list_spec \
19895: STRIP \
19896: RANLIB \
19897: CC \
19898: CFLAGS \
19899: compiler \
19900: lt_cv_sys_global_symbol_pipe \
19901: lt_cv_sys_global_symbol_to_cdecl \
19902: lt_cv_sys_global_symbol_to_c_name_address \
19903: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19904: nm_file_list_spec \
19905: lt_prog_compiler_no_builtin_flag \
19906: lt_prog_compiler_pic \
19907: lt_prog_compiler_wl \
19908: lt_prog_compiler_static \
19909: lt_cv_prog_compiler_c_o \
19910: need_locks \
19911: MANIFEST_TOOL \
19912: DSYMUTIL \
19913: NMEDIT \
19914: LIPO \
19915: OTOOL \
19916: OTOOL64 \
19917: shrext_cmds \
19918: export_dynamic_flag_spec \
19919: whole_archive_flag_spec \
19920: compiler_needs_object \
19921: with_gnu_ld \
19922: allow_undefined_flag \
19923: no_undefined_flag \
19924: hardcode_libdir_flag_spec \
19925: hardcode_libdir_separator \
19926: exclude_expsyms \
19927: include_expsyms \
19928: file_list_spec \
19929: variables_saved_for_relink \
19930: libname_spec \
19931: library_names_spec \
19932: soname_spec \
19933: install_override_mode \
19934: finish_eval \
19935: old_striplib \
19936: striplib \
19937: compiler_lib_search_dirs \
19938: predep_objects \
19939: postdep_objects \
19940: predeps \
19941: postdeps \
19942: compiler_lib_search_path \
19943: LD_CXX \
19944: reload_flag_CXX \
19945: compiler_CXX \
19946: lt_prog_compiler_no_builtin_flag_CXX \
19947: lt_prog_compiler_pic_CXX \
19948: lt_prog_compiler_wl_CXX \
19949: lt_prog_compiler_static_CXX \
19950: lt_cv_prog_compiler_c_o_CXX \
19951: export_dynamic_flag_spec_CXX \
19952: whole_archive_flag_spec_CXX \
19953: compiler_needs_object_CXX \
19954: with_gnu_ld_CXX \
19955: allow_undefined_flag_CXX \
19956: no_undefined_flag_CXX \
19957: hardcode_libdir_flag_spec_CXX \
19958: hardcode_libdir_separator_CXX \
19959: exclude_expsyms_CXX \
19960: include_expsyms_CXX \
19961: file_list_spec_CXX \
19962: compiler_lib_search_dirs_CXX \
19963: predep_objects_CXX \
19964: postdep_objects_CXX \
19965: predeps_CXX \
19966: postdeps_CXX \
19967: compiler_lib_search_path_CXX; do
19968: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19969: *[\\\\\\\`\\"\\\$]*)
19970: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19971: ;;
19972: *)
19973: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19974: ;;
19975: esac
19976: done
19977:
19978: # Double-quote double-evaled strings.
19979: for var in reload_cmds \
19980: old_postinstall_cmds \
19981: old_postuninstall_cmds \
19982: old_archive_cmds \
19983: extract_expsyms_cmds \
19984: old_archive_from_new_cmds \
19985: old_archive_from_expsyms_cmds \
19986: archive_cmds \
19987: archive_expsym_cmds \
19988: module_cmds \
19989: module_expsym_cmds \
19990: export_symbols_cmds \
19991: prelink_cmds \
19992: postlink_cmds \
19993: postinstall_cmds \
19994: postuninstall_cmds \
19995: finish_cmds \
19996: sys_lib_search_path_spec \
19997: sys_lib_dlsearch_path_spec \
19998: reload_cmds_CXX \
19999: old_archive_cmds_CXX \
20000: old_archive_from_new_cmds_CXX \
20001: old_archive_from_expsyms_cmds_CXX \
20002: archive_cmds_CXX \
20003: archive_expsym_cmds_CXX \
20004: module_cmds_CXX \
20005: module_expsym_cmds_CXX \
20006: export_symbols_cmds_CXX \
20007: prelink_cmds_CXX \
20008: postlink_cmds_CXX; do
20009: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20010: *[\\\\\\\`\\"\\\$]*)
20011: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20012: ;;
20013: *)
20014: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20015: ;;
20016: esac
20017: done
20018:
20019: ac_aux_dir='$ac_aux_dir'
20020: xsi_shell='$xsi_shell'
20021: lt_shell_append='$lt_shell_append'
20022:
20023: # See if we are running on zsh, and set the options which allow our
20024: # commands through without removal of \ escapes INIT.
20025: if test -n "\${ZSH_VERSION+set}" ; then
20026: setopt NO_GLOB_SUBST
20027: fi
20028:
20029:
20030: PACKAGE='$PACKAGE'
20031: VERSION='$VERSION'
20032: TIMESTAMP='$TIMESTAMP'
20033: RM='$RM'
20034: ofile='$ofile'
20035:
20036:
20037:
20038:
20039:
20040:
1.62 paf 20041: _ACEOF
20042:
1.150 moko 20043: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20044:
1.150 moko 20045: # Handling of arguments.
1.62 paf 20046: for ac_config_target in $ac_config_targets
1.1 paf 20047: do
1.150 moko 20048: case $ac_config_target in
20049: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20050: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20051: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20052: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20053: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20054: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20055: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20056: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20057: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20058: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20059: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20060: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20061: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
20062: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20063: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
20064: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
20065: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20066: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20067: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
20068: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
20069: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
20070: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
20071: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 20072: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
20073: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 20074: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
20075: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20076: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
20077: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
20078: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20079: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20080: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
20081: "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20082: "bin/auto.p.dist") CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
20083:
20084: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 20085: esac
20086: done
20087:
1.150 moko 20088:
1.62 paf 20089: # If the user did not use the arguments to specify the items to instantiate,
20090: # then the envvar interface is used. Set only those that are not.
20091: # We use the long form for the default assignment because of an extremely
20092: # bizarre bug on SunOS 4.1.3.
20093: if $ac_need_defaults; then
20094: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20095: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20096: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20097: fi
20098:
20099: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 20100: # simply because there is no reason against having it here, and in addition,
1.62 paf 20101: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 20102: # Hook for its removal unless debugging.
20103: # Note that there is a small window in which the directory will not be cleaned:
20104: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 20105: $debug ||
20106: {
1.150 moko 20107: tmp= ac_tmp=
20108: trap 'exit_status=$?
20109: : "${ac_tmp:=$tmp}"
20110: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20111: ' 0
20112: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 20113: }
20114: # Create a (secure) tmp directory for tmp files.
20115:
20116: {
1.150 moko 20117: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20118: test -d "$tmp"
1.62 paf 20119: } ||
20120: {
1.150 moko 20121: tmp=./conf$$-$RANDOM
20122: (umask 077 && mkdir "$tmp")
20123: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20124: ac_tmp=$tmp
20125:
20126: # Set up the scripts for CONFIG_FILES section.
20127: # No need to generate them if there are no CONFIG_FILES.
20128: # This happens for instance with `./config.status config.h'.
20129: if test -n "$CONFIG_FILES"; then
20130:
20131:
20132: ac_cr=`echo X | tr X '\015'`
20133: # On cygwin, bash can eat \r inside `` if the user requested igncr.
20134: # But we know of no other shell where ac_cr would be empty at this
20135: # point, so we can use a bashism as a fallback.
20136: if test "x$ac_cr" = x; then
20137: eval ac_cr=\$\'\\r\'
20138: fi
20139: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20140: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20141: ac_cs_awk_cr='\\r'
20142: else
20143: ac_cs_awk_cr=$ac_cr
20144: fi
20145:
20146: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20147: _ACEOF
20148:
20149:
1.62 paf 20150: {
1.150 moko 20151: echo "cat >conf$$subs.awk <<_ACEOF" &&
20152: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20153: echo "_ACEOF"
20154: } >conf$$subs.sh ||
20155: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20156: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20157: ac_delim='%!_!# '
20158: for ac_last_try in false false false false false :; do
20159: . ./conf$$subs.sh ||
20160: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20161:
20162: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20163: if test $ac_delim_n = $ac_delim_num; then
20164: break
20165: elif $ac_last_try; then
20166: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20167: else
20168: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20169: fi
20170: done
20171: rm -f conf$$subs.sh
20172:
20173: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20174: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20175: _ACEOF
20176: sed -n '
20177: h
20178: s/^/S["/; s/!.*/"]=/
20179: p
20180: g
20181: s/^[^!]*!//
20182: :repl
20183: t repl
20184: s/'"$ac_delim"'$//
20185: t delim
20186: :nl
20187: h
20188: s/\(.\{148\}\)..*/\1/
20189: t more1
20190: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20191: p
20192: n
20193: b repl
20194: :more1
20195: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20196: p
20197: g
20198: s/.\{148\}//
20199: t nl
20200: :delim
20201: h
20202: s/\(.\{148\}\)..*/\1/
20203: t more2
20204: s/["\\]/\\&/g; s/^/"/; s/$/"/
20205: p
20206: b
20207: :more2
20208: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20209: p
20210: g
20211: s/.\{148\}//
20212: t delim
20213: ' <conf$$subs.awk | sed '
20214: /^[^""]/{
20215: N
20216: s/\n//
20217: }
20218: ' >>$CONFIG_STATUS || ac_write_fail=1
20219: rm -f conf$$subs.awk
20220: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20221: _ACAWK
20222: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20223: for (key in S) S_is_set[key] = 1
20224: FS = ""
20225:
20226: }
20227: {
20228: line = $ 0
20229: nfields = split(line, field, "@")
20230: substed = 0
20231: len = length(field[1])
20232: for (i = 2; i < nfields; i++) {
20233: key = field[i]
20234: keylen = length(key)
20235: if (S_is_set[key]) {
20236: value = S[key]
20237: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20238: len += length(value) + length(field[++i])
20239: substed = 1
20240: } else
20241: len += 1 + keylen
20242: }
20243:
20244: print line
1.62 paf 20245: }
20246:
1.150 moko 20247: _ACAWK
20248: _ACEOF
20249: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20250: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20251: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20252: else
20253: cat
20254: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20255: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 20256: _ACEOF
1.1 paf 20257:
1.150 moko 20258: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20259: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20260: # trailing colons and then remove the whole line if VPATH becomes empty
20261: # (actually we leave an empty line to preserve line numbers).
20262: if test "x$srcdir" = x.; then
20263: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20264: h
20265: s///
20266: s/^/:/
20267: s/[ ]*$/:/
20268: s/:\$(srcdir):/:/g
20269: s/:\${srcdir}:/:/g
20270: s/:@srcdir@:/:/g
20271: s/^:*//
20272: s/:*$//
20273: x
20274: s/\(=[ ]*\).*/\1/
20275: G
20276: s/\n//
20277: s/^[^=]*=[ ]*$//
20278: }'
20279: fi
1.62 paf 20280:
1.150 moko 20281: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20282: fi # test -n "$CONFIG_FILES"
1.1 paf 20283:
1.150 moko 20284: # Set up the scripts for CONFIG_HEADERS section.
20285: # No need to generate them if there are no CONFIG_HEADERS.
20286: # This happens for instance with `./config.status Makefile'.
20287: if test -n "$CONFIG_HEADERS"; then
20288: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20289: BEGIN {
20290: _ACEOF
20291:
20292: # Transform confdefs.h into an awk script `defines.awk', embedded as
20293: # here-document in config.status, that substitutes the proper values into
20294: # config.h.in to produce config.h.
20295:
20296: # Create a delimiter string that does not exist in confdefs.h, to ease
20297: # handling of long lines.
20298: ac_delim='%!_!# '
20299: for ac_last_try in false false :; do
20300: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20301: if test -z "$ac_tt"; then
20302: break
20303: elif $ac_last_try; then
20304: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20305: else
20306: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 20307: fi
1.150 moko 20308: done
1.1 paf 20309:
1.150 moko 20310: # For the awk script, D is an array of macro values keyed by name,
20311: # likewise P contains macro parameters if any. Preserve backslash
20312: # newline sequences.
20313:
20314: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20315: sed -n '
20316: s/.\{148\}/&'"$ac_delim"'/g
20317: t rset
20318: :rset
20319: s/^[ ]*#[ ]*define[ ][ ]*/ /
20320: t def
20321: d
20322: :def
20323: s/\\$//
20324: t bsnl
20325: s/["\\]/\\&/g
20326: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20327: D["\1"]=" \3"/p
20328: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20329: d
20330: :bsnl
20331: s/["\\]/\\&/g
20332: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20333: D["\1"]=" \3\\\\\\n"\\/p
20334: t cont
20335: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20336: t cont
20337: d
20338: :cont
20339: n
20340: s/.\{148\}/&'"$ac_delim"'/g
20341: t clear
20342: :clear
20343: s/\\$//
20344: t bsnlc
20345: s/["\\]/\\&/g; s/^/"/; s/$/"/p
20346: d
20347: :bsnlc
20348: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20349: b cont
20350: ' <confdefs.h | sed '
20351: s/'"$ac_delim"'/"\\\
20352: "/g' >>$CONFIG_STATUS || ac_write_fail=1
20353:
20354: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20355: for (key in D) D_is_set[key] = 1
20356: FS = ""
20357: }
20358: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20359: line = \$ 0
20360: split(line, arg, " ")
20361: if (arg[1] == "#") {
20362: defundef = arg[2]
20363: mac1 = arg[3]
20364: } else {
20365: defundef = substr(arg[1], 2)
20366: mac1 = arg[2]
20367: }
20368: split(mac1, mac2, "(") #)
20369: macro = mac2[1]
20370: prefix = substr(line, 1, index(line, defundef) - 1)
20371: if (D_is_set[macro]) {
20372: # Preserve the white space surrounding the "#".
20373: print prefix "define", macro P[macro] D[macro]
20374: next
20375: } else {
20376: # Replace #undef with comments. This is necessary, for example,
20377: # in the case of _POSIX_SOURCE, which is predefined and required
20378: # on some systems where configure will not decide to define it.
20379: if (defundef == "undef") {
20380: print "/*", prefix defundef, macro, "*/"
20381: next
20382: }
20383: }
20384: }
20385: { print }
20386: _ACAWK
1.62 paf 20387: _ACEOF
1.150 moko 20388: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20389: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20390: fi # test -n "$CONFIG_HEADERS"
20391:
20392:
20393: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20394: shift
20395: for ac_tag
20396: do
20397: case $ac_tag in
20398: :[FHLC]) ac_mode=$ac_tag; continue;;
20399: esac
20400: case $ac_mode$ac_tag in
20401: :[FHL]*:*);;
20402: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20403: :[FH]-) ac_tag=-:-;;
20404: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20405: esac
20406: ac_save_IFS=$IFS
20407: IFS=:
20408: set x $ac_tag
20409: IFS=$ac_save_IFS
20410: shift
20411: ac_file=$1
20412: shift
20413:
20414: case $ac_mode in
20415: :L) ac_source=$1;;
20416: :[FH])
20417: ac_file_inputs=
20418: for ac_f
20419: do
20420: case $ac_f in
20421: -) ac_f="$ac_tmp/stdin";;
20422: *) # Look for the file first in the build tree, then in the source tree
20423: # (if the path is not absolute). The absolute path cannot be DOS-style,
20424: # because $ac_f cannot contain `:'.
20425: test -f "$ac_f" ||
20426: case $ac_f in
20427: [\\/$]*) false;;
20428: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20429: esac ||
20430: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20431: esac
20432: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20433: as_fn_append ac_file_inputs " '$ac_f'"
20434: done
20435:
20436: # Let's still pretend it is `configure' which instantiates (i.e., don't
20437: # use $as_me), people would be surprised to read:
20438: # /* config.h. Generated by config.status. */
20439: configure_input='Generated from '`
20440: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20441: `' by configure.'
20442: if test x"$ac_file" != x-; then
20443: configure_input="$ac_file. $configure_input"
20444: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20445: $as_echo "$as_me: creating $ac_file" >&6;}
20446: fi
20447: # Neutralize special characters interpreted by sed in replacement strings.
20448: case $configure_input in #(
20449: *\&* | *\|* | *\\* )
20450: ac_sed_conf_input=`$as_echo "$configure_input" |
20451: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20452: *) ac_sed_conf_input=$configure_input;;
20453: esac
20454:
20455: case $ac_tag in
20456: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20457: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20458: esac
20459: ;;
1.1 paf 20460: esac
20461:
1.150 moko 20462: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 20463: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20464: X"$ac_file" : 'X\(//\)[^/]' \| \
20465: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 20466: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20467: $as_echo X"$ac_file" |
20468: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20469: s//\1/
20470: q
20471: }
20472: /^X\(\/\/\)[^/].*/{
20473: s//\1/
20474: q
20475: }
20476: /^X\(\/\/\)$/{
20477: s//\1/
20478: q
20479: }
20480: /^X\(\/\).*/{
20481: s//\1/
20482: q
20483: }
20484: s/.*/./; q'`
20485: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 20486: ac_builddir=.
20487:
1.150 moko 20488: case "$ac_dir" in
20489: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20490: *)
20491: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20492: # A ".." for each directory in $ac_dir_suffix.
20493: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20494: case $ac_top_builddir_sub in
20495: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20496: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20497: esac ;;
20498: esac
20499: ac_abs_top_builddir=$ac_pwd
20500: ac_abs_builddir=$ac_pwd$ac_dir_suffix
20501: # for backward compatibility:
20502: ac_top_builddir=$ac_top_build_prefix
1.62 paf 20503:
20504: case $srcdir in
1.150 moko 20505: .) # We are building in place.
1.62 paf 20506: ac_srcdir=.
1.150 moko 20507: ac_top_srcdir=$ac_top_builddir_sub
20508: ac_abs_top_srcdir=$ac_pwd ;;
20509: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 20510: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 20511: ac_top_srcdir=$srcdir
20512: ac_abs_top_srcdir=$srcdir ;;
20513: *) # Relative name.
20514: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20515: ac_top_srcdir=$ac_top_build_prefix$srcdir
20516: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 20517: esac
1.150 moko 20518: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 20519:
1.62 paf 20520:
1.150 moko 20521: case $ac_mode in
20522: :F)
20523: #
20524: # CONFIG_FILE
20525: #
1.1 paf 20526:
1.62 paf 20527: case $INSTALL in
20528: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 20529: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 20530: esac
1.150 moko 20531: ac_MKDIR_P=$MKDIR_P
20532: case $MKDIR_P in
20533: [\\/$]* | ?:[\\/]* ) ;;
20534: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20535: esac
20536: _ACEOF
1.1 paf 20537:
1.150 moko 20538: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20539: # If the template does not know about datarootdir, expand it.
20540: # FIXME: This hack should be removed a few years after 2.60.
20541: ac_datarootdir_hack=; ac_datarootdir_seen=
20542: ac_sed_dataroot='
20543: /datarootdir/ {
20544: p
20545: q
20546: }
20547: /@datadir@/p
20548: /@docdir@/p
20549: /@infodir@/p
20550: /@localedir@/p
20551: /@mandir@/p'
20552: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20553: *datarootdir*) ac_datarootdir_seen=yes;;
20554: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20555: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20556: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20557: _ACEOF
20558: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20559: ac_datarootdir_hack='
20560: s&@datadir@&$datadir&g
20561: s&@docdir@&$docdir&g
20562: s&@infodir@&$infodir&g
20563: s&@localedir@&$localedir&g
20564: s&@mandir@&$mandir&g
20565: s&\\\${datarootdir}&$datarootdir&g' ;;
20566: esac
20567: _ACEOF
1.62 paf 20568:
1.150 moko 20569: # Neutralize VPATH when `$srcdir' = `.'.
20570: # Shell code in configure.ac might set extrasub.
20571: # FIXME: do we really want to maintain this feature?
20572: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20573: ac_sed_extra="$ac_vpsub
1.62 paf 20574: $extrasub
20575: _ACEOF
1.150 moko 20576: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20577: :t
20578: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 20579: s|@configure_input@|$ac_sed_conf_input|;t t
20580: s&@top_builddir@&$ac_top_builddir_sub&;t t
20581: s&@top_build_prefix@&$ac_top_build_prefix&;t t
20582: s&@srcdir@&$ac_srcdir&;t t
20583: s&@abs_srcdir@&$ac_abs_srcdir&;t t
20584: s&@top_srcdir@&$ac_top_srcdir&;t t
20585: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20586: s&@builddir@&$ac_builddir&;t t
20587: s&@abs_builddir@&$ac_abs_builddir&;t t
20588: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20589: s&@INSTALL@&$ac_INSTALL&;t t
20590: s&@MKDIR_P@&$ac_MKDIR_P&;t t
20591: $ac_datarootdir_hack
20592: "
20593: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20594: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20595:
20596: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20597: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20598: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20599: "$ac_tmp/out"`; test -z "$ac_out"; } &&
20600: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20601: which seems to be undefined. Please make sure it is defined" >&5
20602: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20603: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 20604:
1.150 moko 20605: rm -f "$ac_tmp/stdin"
1.62 paf 20606: case $ac_file in
1.150 moko 20607: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20608: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20609: esac \
20610: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20611: ;;
20612: :H)
20613: #
20614: # CONFIG_HEADER
20615: #
1.62 paf 20616: if test x"$ac_file" != x-; then
1.150 moko 20617: {
20618: $as_echo "/* $configure_input */" \
20619: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20620: } >"$ac_tmp/config.h" \
20621: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20622: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20623: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20624: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 20625: else
1.150 moko 20626: rm -f "$ac_file"
20627: mv "$ac_tmp/config.h" "$ac_file" \
20628: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 20629: fi
20630: else
1.150 moko 20631: $as_echo "/* $configure_input */" \
20632: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20633: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 20634: fi
1.150 moko 20635: # Compute "$ac_file"'s index in $config_headers.
20636: _am_arg="$ac_file"
1.86 paf 20637: _am_stamp_count=1
20638: for _am_header in $config_headers :; do
20639: case $_am_header in
1.150 moko 20640: $_am_arg | $_am_arg:* )
1.86 paf 20641: break ;;
20642: * )
20643: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20644: esac
20645: done
1.150 moko 20646: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20647: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20648: X"$_am_arg" : 'X\(//\)[^/]' \| \
20649: X"$_am_arg" : 'X\(//\)$' \| \
20650: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20651: $as_echo X"$_am_arg" |
20652: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20653: s//\1/
20654: q
20655: }
20656: /^X\(\/\/\)[^/].*/{
20657: s//\1/
20658: q
20659: }
20660: /^X\(\/\/\)$/{
20661: s//\1/
20662: q
20663: }
20664: /^X\(\/\).*/{
20665: s//\1/
20666: q
20667: }
20668: s/.*/./; q'`/stamp-h$_am_stamp_count
20669: ;;
1.62 paf 20670:
1.150 moko 20671: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20672: $as_echo "$as_me: executing $ac_file commands" >&6;}
20673: ;;
20674: esac
1.86 paf 20675:
1.62 paf 20676:
1.150 moko 20677: case $ac_file$ac_mode in
20678: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 20679: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 20680: # are listed without --file. Let's play safe and only enable the eval
20681: # if we detect the quoting.
20682: case $CONFIG_FILES in
20683: *\'*) eval set x "$CONFIG_FILES" ;;
20684: *) set x $CONFIG_FILES ;;
20685: esac
20686: shift
20687: for mf
20688: do
20689: # Strip MF so we end up with the name of the file.
20690: mf=`echo "$mf" | sed -e 's/:.*$//'`
20691: # Check whether this is an Automake generated Makefile or not.
1.187 moko 20692: # We used to match only the files named 'Makefile.in', but
1.150 moko 20693: # some people rename them; so instead we look at the file content.
20694: # Grep'ing the first line is not enough: some people post-process
20695: # each Makefile.in and add a new line on top of each file to say so.
20696: # Grep'ing the whole file is not good either: AIX grep has a line
20697: # limit of 2048, but all sed's we know have understand at least 4000.
20698: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20699: dirpart=`$as_dirname -- "$mf" ||
1.62 paf 20700: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20701: X"$mf" : 'X\(//\)[^/]' \| \
20702: X"$mf" : 'X\(//\)$' \| \
1.150 moko 20703: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20704: $as_echo X"$mf" |
20705: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20706: s//\1/
20707: q
20708: }
20709: /^X\(\/\/\)[^/].*/{
20710: s//\1/
20711: q
20712: }
20713: /^X\(\/\/\)$/{
20714: s//\1/
20715: q
20716: }
20717: /^X\(\/\).*/{
20718: s//\1/
20719: q
20720: }
20721: s/.*/./; q'`
20722: else
20723: continue
20724: fi
20725: # Extract the definition of DEPDIR, am__include, and am__quote
1.187 moko 20726: # from the Makefile without running 'make'.
1.150 moko 20727: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20728: test -z "$DEPDIR" && continue
20729: am__include=`sed -n 's/^am__include = //p' < "$mf"`
1.187 moko 20730: test -z "$am__include" && continue
1.150 moko 20731: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20732: # Find all dependency output files, they are included files with
20733: # $(DEPDIR) in their names. We invoke sed twice because it is the
20734: # simplest approach to changing $(DEPDIR) to its actual value in the
20735: # expansion.
20736: for file in `sed -n "
20737: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.187 moko 20738: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1.150 moko 20739: # Make sure the directory exists.
20740: test -f "$dirpart/$file" && continue
20741: fdir=`$as_dirname -- "$file" ||
1.62 paf 20742: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20743: X"$file" : 'X\(//\)[^/]' \| \
20744: X"$file" : 'X\(//\)$' \| \
1.150 moko 20745: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20746: $as_echo X"$file" |
20747: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20748: s//\1/
20749: q
20750: }
20751: /^X\(\/\/\)[^/].*/{
20752: s//\1/
20753: q
20754: }
20755: /^X\(\/\/\)$/{
20756: s//\1/
20757: q
20758: }
20759: /^X\(\/\).*/{
20760: s//\1/
20761: q
20762: }
20763: s/.*/./; q'`
20764: as_dir=$dirpart/$fdir; as_fn_mkdir_p
20765: # echo "creating $dirpart/$file"
20766: echo '# dummy' > "$dirpart/$file"
1.62 paf 20767: done
20768: done
1.150 moko 20769: }
1.62 paf 20770: ;;
1.150 moko 20771: "libtool":C)
1.128 moko 20772:
20773: # See if we are running on zsh, and set the options which allow our
20774: # commands through without removal of \ escapes.
20775: if test -n "${ZSH_VERSION+set}" ; then
20776: setopt NO_GLOB_SUBST
20777: fi
20778:
20779: cfgfile="${ofile}T"
20780: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20781: $RM "$cfgfile"
20782:
20783: cat <<_LT_EOF >> "$cfgfile"
20784: #! $SHELL
20785:
20786: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20787: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20788: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20789: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20790: #
20791: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20792: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20793: # Foundation, Inc.
20794: # Written by Gordon Matzigkeit, 1996
20795: #
20796: # This file is part of GNU Libtool.
20797: #
20798: # GNU Libtool is free software; you can redistribute it and/or
20799: # modify it under the terms of the GNU General Public License as
20800: # published by the Free Software Foundation; either version 2 of
20801: # the License, or (at your option) any later version.
20802: #
20803: # As a special exception to the GNU General Public License,
20804: # if you distribute this file as part of a program or library that
20805: # is built using GNU Libtool, you may include this file under the
20806: # same distribution terms that you use for the rest of that program.
20807: #
20808: # GNU Libtool is distributed in the hope that it will be useful,
20809: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20810: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20811: # GNU General Public License for more details.
20812: #
20813: # You should have received a copy of the GNU General Public License
20814: # along with GNU Libtool; see the file COPYING. If not, a copy
20815: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20816: # obtained by writing to the Free Software Foundation, Inc.,
20817: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20818:
20819:
20820: # The names of the tagged configurations supported by this script.
20821: available_tags="CXX "
20822:
20823: # ### BEGIN LIBTOOL CONFIG
20824:
20825: # Which release of libtool.m4 was used?
20826: macro_version=$macro_version
20827: macro_revision=$macro_revision
20828:
20829: # Assembler program.
20830: AS=$lt_AS
20831:
20832: # DLL creation program.
20833: DLLTOOL=$lt_DLLTOOL
20834:
20835: # Object dumper program.
20836: OBJDUMP=$lt_OBJDUMP
20837:
1.145 moko 20838: # What type of objects to build.
20839: pic_mode=$pic_mode
20840:
1.128 moko 20841: # Whether or not to build shared libraries.
20842: build_libtool_libs=$enable_shared
20843:
1.138 moko 20844: # Whether or not to build static libraries.
20845: build_old_libs=$enable_static
20846:
1.128 moko 20847: # Whether or not to optimize for fast installation.
20848: fast_install=$enable_fast_install
20849:
20850: # Shell to use when invoking shell scripts.
20851: SHELL=$lt_SHELL
20852:
20853: # An echo program that protects backslashes.
20854: ECHO=$lt_ECHO
20855:
20856: # The PATH separator for the build system.
20857: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20858:
20859: # The host system.
20860: host_alias=$host_alias
20861: host=$host
20862: host_os=$host_os
20863:
20864: # The build system.
20865: build_alias=$build_alias
20866: build=$build
20867: build_os=$build_os
20868:
20869: # A sed program that does not truncate output.
20870: SED=$lt_SED
20871:
20872: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20873: Xsed="\$SED -e 1s/^X//"
20874:
20875: # A grep program that handles long lines.
20876: GREP=$lt_GREP
20877:
20878: # An ERE matcher.
20879: EGREP=$lt_EGREP
20880:
20881: # A literal string matcher.
20882: FGREP=$lt_FGREP
20883:
20884: # A BSD- or MS-compatible name lister.
20885: NM=$lt_NM
20886:
20887: # Whether we need soft or hard links.
20888: LN_S=$lt_LN_S
20889:
20890: # What is the maximum length of a command?
20891: max_cmd_len=$max_cmd_len
20892:
20893: # Object file suffix (normally "o").
20894: objext=$ac_objext
20895:
20896: # Executable file suffix (normally "").
20897: exeext=$exeext
20898:
20899: # whether the shell understands "unset".
20900: lt_unset=$lt_unset
20901:
20902: # turn spaces into newlines.
20903: SP2NL=$lt_lt_SP2NL
20904:
20905: # turn newlines into spaces.
20906: NL2SP=$lt_lt_NL2SP
20907:
20908: # convert \$build file names to \$host format.
20909: to_host_file_cmd=$lt_cv_to_host_file_cmd
20910:
20911: # convert \$build files to toolchain format.
20912: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20913:
20914: # Method to check whether dependent libraries are shared objects.
20915: deplibs_check_method=$lt_deplibs_check_method
20916:
20917: # Command to use when deplibs_check_method = "file_magic".
20918: file_magic_cmd=$lt_file_magic_cmd
20919:
20920: # How to find potential files when deplibs_check_method = "file_magic".
20921: file_magic_glob=$lt_file_magic_glob
20922:
20923: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20924: want_nocaseglob=$lt_want_nocaseglob
20925:
20926: # Command to associate shared and link libraries.
20927: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20928:
20929: # The archiver.
20930: AR=$lt_AR
20931:
20932: # Flags to create an archive.
20933: AR_FLAGS=$lt_AR_FLAGS
20934:
20935: # How to feed a file listing to the archiver.
20936: archiver_list_spec=$lt_archiver_list_spec
20937:
20938: # A symbol stripping program.
20939: STRIP=$lt_STRIP
20940:
20941: # Commands used to install an old-style archive.
20942: RANLIB=$lt_RANLIB
20943: old_postinstall_cmds=$lt_old_postinstall_cmds
20944: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20945:
20946: # Whether to use a lock for old archive extraction.
20947: lock_old_archive_extraction=$lock_old_archive_extraction
20948:
20949: # A C compiler.
20950: LTCC=$lt_CC
20951:
20952: # LTCC compiler flags.
20953: LTCFLAGS=$lt_CFLAGS
20954:
20955: # Take the output of nm and produce a listing of raw symbols and C names.
20956: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20957:
20958: # Transform the output of nm in a proper C declaration.
20959: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20960:
20961: # Transform the output of nm in a C name address pair.
20962: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20963:
20964: # Transform the output of nm in a C name address pair when lib prefix is needed.
20965: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20966:
20967: # Specify filename containing input files for \$NM.
20968: nm_file_list_spec=$lt_nm_file_list_spec
20969:
20970: # The root where to search for dependent libraries,and in which our libraries should be installed.
20971: lt_sysroot=$lt_sysroot
20972:
20973: # The name of the directory that contains temporary libtool files.
20974: objdir=$objdir
20975:
20976: # Used to examine libraries when file_magic_cmd begins with "file".
20977: MAGIC_CMD=$MAGIC_CMD
20978:
20979: # Must we lock files when doing compilation?
20980: need_locks=$lt_need_locks
20981:
20982: # Manifest tool.
20983: MANIFEST_TOOL=$lt_MANIFEST_TOOL
20984:
20985: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20986: DSYMUTIL=$lt_DSYMUTIL
20987:
20988: # Tool to change global to local symbols on Mac OS X.
20989: NMEDIT=$lt_NMEDIT
20990:
20991: # Tool to manipulate fat objects and archives on Mac OS X.
20992: LIPO=$lt_LIPO
20993:
20994: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20995: OTOOL=$lt_OTOOL
20996:
20997: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20998: OTOOL64=$lt_OTOOL64
20999:
21000: # Old archive suffix (normally "a").
21001: libext=$libext
21002:
21003: # Shared library suffix (normally ".so").
21004: shrext_cmds=$lt_shrext_cmds
21005:
21006: # The commands to extract the exported symbol list from a shared archive.
21007: extract_expsyms_cmds=$lt_extract_expsyms_cmds
21008:
21009: # Variables whose values should be saved in libtool wrapper scripts and
21010: # restored at link time.
21011: variables_saved_for_relink=$lt_variables_saved_for_relink
21012:
21013: # Do we need the "lib" prefix for modules?
21014: need_lib_prefix=$need_lib_prefix
21015:
21016: # Do we need a version for libraries?
21017: need_version=$need_version
21018:
21019: # Library versioning type.
21020: version_type=$version_type
21021:
21022: # Shared library runtime path variable.
21023: runpath_var=$runpath_var
21024:
21025: # Shared library path variable.
21026: shlibpath_var=$shlibpath_var
21027:
21028: # Is shlibpath searched before the hard-coded library search path?
21029: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21030:
21031: # Format of library name prefix.
21032: libname_spec=$lt_libname_spec
21033:
21034: # List of archive names. First name is the real one, the rest are links.
21035: # The last name is the one that the linker finds with -lNAME
21036: library_names_spec=$lt_library_names_spec
21037:
21038: # The coded name of the library, if different from the real name.
21039: soname_spec=$lt_soname_spec
21040:
21041: # Permission mode override for installation of shared libraries.
21042: install_override_mode=$lt_install_override_mode
21043:
21044: # Command to use after installation of a shared archive.
21045: postinstall_cmds=$lt_postinstall_cmds
21046:
21047: # Command to use after uninstallation of a shared archive.
21048: postuninstall_cmds=$lt_postuninstall_cmds
21049:
21050: # Commands used to finish a libtool library installation in a directory.
21051: finish_cmds=$lt_finish_cmds
21052:
21053: # As "finish_cmds", except a single script fragment to be evaled but
21054: # not shown.
21055: finish_eval=$lt_finish_eval
21056:
21057: # Whether we should hardcode library paths into libraries.
21058: hardcode_into_libs=$hardcode_into_libs
21059:
21060: # Compile-time system search path for libraries.
21061: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21062:
21063: # Run-time system search path for libraries.
21064: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21065:
21066: # Whether dlopen is supported.
21067: dlopen_support=$enable_dlopen
21068:
21069: # Whether dlopen of programs is supported.
21070: dlopen_self=$enable_dlopen_self
21071:
21072: # Whether dlopen of statically linked programs is supported.
21073: dlopen_self_static=$enable_dlopen_self_static
21074:
21075: # Commands to strip libraries.
21076: old_striplib=$lt_old_striplib
21077: striplib=$lt_striplib
21078:
21079:
21080: # The linker used to build libraries.
21081: LD=$lt_LD
21082:
21083: # How to create reloadable object files.
21084: reload_flag=$lt_reload_flag
21085: reload_cmds=$lt_reload_cmds
21086:
21087: # Commands used to build an old-style archive.
21088: old_archive_cmds=$lt_old_archive_cmds
21089:
21090: # A language specific compiler.
21091: CC=$lt_compiler
21092:
21093: # Is the compiler the GNU compiler?
21094: with_gcc=$GCC
21095:
21096: # Compiler flag to turn off builtin functions.
21097: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21098:
21099: # Additional compiler flags for building library objects.
21100: pic_flag=$lt_lt_prog_compiler_pic
21101:
21102: # How to pass a linker flag through the compiler.
21103: wl=$lt_lt_prog_compiler_wl
21104:
21105: # Compiler flag to prevent dynamic linking.
21106: link_static_flag=$lt_lt_prog_compiler_static
21107:
21108: # Does compiler simultaneously support -c and -o options?
21109: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21110:
21111: # Whether or not to add -lc for building shared libraries.
21112: build_libtool_need_lc=$archive_cmds_need_lc
21113:
21114: # Whether or not to disallow shared libs when runtime libs are static.
21115: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21116:
21117: # Compiler flag to allow reflexive dlopens.
21118: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21119:
21120: # Compiler flag to generate shared objects directly from archives.
21121: whole_archive_flag_spec=$lt_whole_archive_flag_spec
21122:
21123: # Whether the compiler copes with passing no objects directly.
21124: compiler_needs_object=$lt_compiler_needs_object
21125:
21126: # Create an old-style archive from a shared archive.
21127: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21128:
21129: # Create a temporary old-style archive to link instead of a shared archive.
21130: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21131:
21132: # Commands used to build a shared archive.
21133: archive_cmds=$lt_archive_cmds
21134: archive_expsym_cmds=$lt_archive_expsym_cmds
21135:
21136: # Commands used to build a loadable module if different from building
21137: # a shared archive.
21138: module_cmds=$lt_module_cmds
21139: module_expsym_cmds=$lt_module_expsym_cmds
21140:
21141: # Whether we are building with GNU ld or not.
21142: with_gnu_ld=$lt_with_gnu_ld
21143:
21144: # Flag that allows shared libraries with undefined symbols to be built.
21145: allow_undefined_flag=$lt_allow_undefined_flag
21146:
21147: # Flag that enforces no undefined symbols.
21148: no_undefined_flag=$lt_no_undefined_flag
21149:
21150: # Flag to hardcode \$libdir into a binary during linking.
21151: # This must work even if \$libdir does not exist
21152: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21153:
21154: # Whether we need a single "-rpath" flag with a separated argument.
21155: hardcode_libdir_separator=$lt_hardcode_libdir_separator
21156:
21157: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21158: # DIR into the resulting binary.
21159: hardcode_direct=$hardcode_direct
21160:
21161: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21162: # DIR into the resulting binary and the resulting library dependency is
21163: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21164: # library is relocated.
21165: hardcode_direct_absolute=$hardcode_direct_absolute
21166:
21167: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21168: # into the resulting binary.
21169: hardcode_minus_L=$hardcode_minus_L
21170:
21171: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21172: # into the resulting binary.
21173: hardcode_shlibpath_var=$hardcode_shlibpath_var
21174:
21175: # Set to "yes" if building a shared library automatically hardcodes DIR
21176: # into the library and all subsequent libraries and executables linked
21177: # against it.
21178: hardcode_automatic=$hardcode_automatic
21179:
21180: # Set to yes if linker adds runtime paths of dependent libraries
21181: # to runtime path list.
21182: inherit_rpath=$inherit_rpath
21183:
21184: # Whether libtool must link a program against all its dependency libraries.
21185: link_all_deplibs=$link_all_deplibs
21186:
21187: # Set to "yes" if exported symbols are required.
21188: always_export_symbols=$always_export_symbols
21189:
21190: # The commands to list exported symbols.
21191: export_symbols_cmds=$lt_export_symbols_cmds
21192:
21193: # Symbols that should not be listed in the preloaded symbols.
21194: exclude_expsyms=$lt_exclude_expsyms
21195:
21196: # Symbols that must always be exported.
21197: include_expsyms=$lt_include_expsyms
21198:
21199: # Commands necessary for linking programs (against libraries) with templates.
21200: prelink_cmds=$lt_prelink_cmds
21201:
21202: # Commands necessary for finishing linking programs.
21203: postlink_cmds=$lt_postlink_cmds
21204:
21205: # Specify filename containing input files.
21206: file_list_spec=$lt_file_list_spec
21207:
21208: # How to hardcode a shared library path into an executable.
21209: hardcode_action=$hardcode_action
21210:
21211: # The directories searched by this compiler when creating a shared library.
21212: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21213:
21214: # Dependencies to place before and after the objects being linked to
21215: # create a shared library.
21216: predep_objects=$lt_predep_objects
21217: postdep_objects=$lt_postdep_objects
21218: predeps=$lt_predeps
21219: postdeps=$lt_postdeps
21220:
21221: # The library search path used internally by the compiler when linking
21222: # a shared library.
21223: compiler_lib_search_path=$lt_compiler_lib_search_path
21224:
21225: # ### END LIBTOOL CONFIG
21226:
21227: _LT_EOF
21228:
21229: case $host_os in
21230: aix3*)
21231: cat <<\_LT_EOF >> "$cfgfile"
21232: # AIX sometimes has problems with the GCC collect2 program. For some
21233: # reason, if we set the COLLECT_NAMES environment variable, the problems
21234: # vanish in a puff of smoke.
21235: if test "X${COLLECT_NAMES+set}" != Xset; then
21236: COLLECT_NAMES=
21237: export COLLECT_NAMES
21238: fi
21239: _LT_EOF
21240: ;;
21241: esac
21242:
21243:
21244: ltmain="$ac_aux_dir/ltmain.sh"
21245:
21246:
21247: # We use sed instead of cat because bash on DJGPP gets confused if
21248: # if finds mixed CR/LF and LF-only lines. Since sed operates in
21249: # text mode, it properly converts lines to CR/LF. This bash problem
21250: # is reportedly fixed, but why not run on old versions too?
21251: sed '$q' "$ltmain" >> "$cfgfile" \
21252: || (rm -f "$cfgfile"; exit 1)
21253:
21254: if test x"$xsi_shell" = xyes; then
21255: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21256: func_dirname ()\
21257: {\
21258: \ case ${1} in\
21259: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21260: \ * ) func_dirname_result="${3}" ;;\
21261: \ esac\
21262: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21263: && mv -f "$cfgfile.tmp" "$cfgfile" \
21264: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21265: test 0 -eq $? || _lt_function_replace_fail=:
21266:
21267:
21268: sed -e '/^func_basename ()$/,/^} # func_basename /c\
21269: func_basename ()\
21270: {\
21271: \ func_basename_result="${1##*/}"\
21272: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21273: && mv -f "$cfgfile.tmp" "$cfgfile" \
21274: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21275: test 0 -eq $? || _lt_function_replace_fail=:
21276:
21277:
21278: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21279: func_dirname_and_basename ()\
21280: {\
21281: \ case ${1} in\
21282: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21283: \ * ) func_dirname_result="${3}" ;;\
21284: \ esac\
21285: \ func_basename_result="${1##*/}"\
21286: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21287: && mv -f "$cfgfile.tmp" "$cfgfile" \
21288: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21289: test 0 -eq $? || _lt_function_replace_fail=:
21290:
21291:
21292: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21293: func_stripname ()\
21294: {\
21295: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21296: \ # positional parameters, so assign one to ordinary parameter first.\
21297: \ func_stripname_result=${3}\
21298: \ func_stripname_result=${func_stripname_result#"${1}"}\
21299: \ func_stripname_result=${func_stripname_result%"${2}"}\
21300: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21301: && mv -f "$cfgfile.tmp" "$cfgfile" \
21302: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21303: test 0 -eq $? || _lt_function_replace_fail=:
21304:
21305:
21306: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21307: func_split_long_opt ()\
21308: {\
21309: \ func_split_long_opt_name=${1%%=*}\
21310: \ func_split_long_opt_arg=${1#*=}\
21311: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21312: && mv -f "$cfgfile.tmp" "$cfgfile" \
21313: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21314: test 0 -eq $? || _lt_function_replace_fail=:
21315:
21316:
21317: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21318: func_split_short_opt ()\
21319: {\
21320: \ func_split_short_opt_arg=${1#??}\
21321: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21322: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21323: && mv -f "$cfgfile.tmp" "$cfgfile" \
21324: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21325: test 0 -eq $? || _lt_function_replace_fail=:
21326:
21327:
21328: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21329: func_lo2o ()\
21330: {\
21331: \ case ${1} in\
21332: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21333: \ *) func_lo2o_result=${1} ;;\
21334: \ esac\
21335: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21336: && mv -f "$cfgfile.tmp" "$cfgfile" \
21337: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21338: test 0 -eq $? || _lt_function_replace_fail=:
21339:
21340:
21341: sed -e '/^func_xform ()$/,/^} # func_xform /c\
21342: func_xform ()\
21343: {\
21344: func_xform_result=${1%.*}.lo\
21345: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21346: && mv -f "$cfgfile.tmp" "$cfgfile" \
21347: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21348: test 0 -eq $? || _lt_function_replace_fail=:
21349:
21350:
21351: sed -e '/^func_arith ()$/,/^} # func_arith /c\
21352: func_arith ()\
21353: {\
21354: func_arith_result=$(( $* ))\
21355: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21356: && mv -f "$cfgfile.tmp" "$cfgfile" \
21357: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21358: test 0 -eq $? || _lt_function_replace_fail=:
21359:
21360:
21361: sed -e '/^func_len ()$/,/^} # func_len /c\
21362: func_len ()\
21363: {\
21364: func_len_result=${#1}\
21365: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21366: && mv -f "$cfgfile.tmp" "$cfgfile" \
21367: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21368: test 0 -eq $? || _lt_function_replace_fail=:
21369:
21370: fi
21371:
21372: if test x"$lt_shell_append" = xyes; then
21373: sed -e '/^func_append ()$/,/^} # func_append /c\
21374: func_append ()\
21375: {\
21376: eval "${1}+=\\${2}"\
21377: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21378: && mv -f "$cfgfile.tmp" "$cfgfile" \
21379: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21380: test 0 -eq $? || _lt_function_replace_fail=:
21381:
21382:
21383: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21384: func_append_quoted ()\
21385: {\
21386: \ func_quote_for_eval "${2}"\
21387: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21388: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21389: && mv -f "$cfgfile.tmp" "$cfgfile" \
21390: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21391: test 0 -eq $? || _lt_function_replace_fail=:
21392:
21393:
21394: # Save a `func_append' function call where possible by direct use of '+='
21395: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21396: && mv -f "$cfgfile.tmp" "$cfgfile" \
21397: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21398: test 0 -eq $? || _lt_function_replace_fail=:
21399: else
21400: # Save a `func_append' function call even when '+=' is not available
21401: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21402: && mv -f "$cfgfile.tmp" "$cfgfile" \
21403: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21404: test 0 -eq $? || _lt_function_replace_fail=:
21405: fi
21406:
21407: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 21408: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21409: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 21410: fi
21411:
21412:
21413: mv -f "$cfgfile" "$ofile" ||
21414: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21415: chmod +x "$ofile"
21416:
21417:
21418: cat <<_LT_EOF >> "$ofile"
21419:
21420: # ### BEGIN LIBTOOL TAG CONFIG: CXX
21421:
21422: # The linker used to build libraries.
21423: LD=$lt_LD_CXX
21424:
21425: # How to create reloadable object files.
21426: reload_flag=$lt_reload_flag_CXX
21427: reload_cmds=$lt_reload_cmds_CXX
21428:
21429: # Commands used to build an old-style archive.
21430: old_archive_cmds=$lt_old_archive_cmds_CXX
21431:
21432: # A language specific compiler.
21433: CC=$lt_compiler_CXX
21434:
21435: # Is the compiler the GNU compiler?
21436: with_gcc=$GCC_CXX
21437:
21438: # Compiler flag to turn off builtin functions.
21439: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21440:
21441: # Additional compiler flags for building library objects.
21442: pic_flag=$lt_lt_prog_compiler_pic_CXX
21443:
21444: # How to pass a linker flag through the compiler.
21445: wl=$lt_lt_prog_compiler_wl_CXX
21446:
21447: # Compiler flag to prevent dynamic linking.
21448: link_static_flag=$lt_lt_prog_compiler_static_CXX
21449:
21450: # Does compiler simultaneously support -c and -o options?
21451: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21452:
21453: # Whether or not to add -lc for building shared libraries.
21454: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21455:
21456: # Whether or not to disallow shared libs when runtime libs are static.
21457: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21458:
21459: # Compiler flag to allow reflexive dlopens.
21460: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21461:
21462: # Compiler flag to generate shared objects directly from archives.
21463: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21464:
21465: # Whether the compiler copes with passing no objects directly.
21466: compiler_needs_object=$lt_compiler_needs_object_CXX
21467:
21468: # Create an old-style archive from a shared archive.
21469: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21470:
21471: # Create a temporary old-style archive to link instead of a shared archive.
21472: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21473:
21474: # Commands used to build a shared archive.
21475: archive_cmds=$lt_archive_cmds_CXX
21476: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21477:
21478: # Commands used to build a loadable module if different from building
21479: # a shared archive.
21480: module_cmds=$lt_module_cmds_CXX
21481: module_expsym_cmds=$lt_module_expsym_cmds_CXX
21482:
21483: # Whether we are building with GNU ld or not.
21484: with_gnu_ld=$lt_with_gnu_ld_CXX
21485:
21486: # Flag that allows shared libraries with undefined symbols to be built.
21487: allow_undefined_flag=$lt_allow_undefined_flag_CXX
21488:
21489: # Flag that enforces no undefined symbols.
21490: no_undefined_flag=$lt_no_undefined_flag_CXX
21491:
21492: # Flag to hardcode \$libdir into a binary during linking.
21493: # This must work even if \$libdir does not exist
21494: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21495:
21496: # Whether we need a single "-rpath" flag with a separated argument.
21497: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21498:
21499: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21500: # DIR into the resulting binary.
21501: hardcode_direct=$hardcode_direct_CXX
21502:
21503: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21504: # DIR into the resulting binary and the resulting library dependency is
21505: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21506: # library is relocated.
21507: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21508:
21509: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21510: # into the resulting binary.
21511: hardcode_minus_L=$hardcode_minus_L_CXX
21512:
21513: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21514: # into the resulting binary.
21515: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21516:
21517: # Set to "yes" if building a shared library automatically hardcodes DIR
21518: # into the library and all subsequent libraries and executables linked
21519: # against it.
21520: hardcode_automatic=$hardcode_automatic_CXX
21521:
21522: # Set to yes if linker adds runtime paths of dependent libraries
21523: # to runtime path list.
21524: inherit_rpath=$inherit_rpath_CXX
21525:
21526: # Whether libtool must link a program against all its dependency libraries.
21527: link_all_deplibs=$link_all_deplibs_CXX
21528:
21529: # Set to "yes" if exported symbols are required.
21530: always_export_symbols=$always_export_symbols_CXX
21531:
21532: # The commands to list exported symbols.
21533: export_symbols_cmds=$lt_export_symbols_cmds_CXX
21534:
21535: # Symbols that should not be listed in the preloaded symbols.
21536: exclude_expsyms=$lt_exclude_expsyms_CXX
21537:
21538: # Symbols that must always be exported.
21539: include_expsyms=$lt_include_expsyms_CXX
21540:
21541: # Commands necessary for linking programs (against libraries) with templates.
21542: prelink_cmds=$lt_prelink_cmds_CXX
21543:
21544: # Commands necessary for finishing linking programs.
21545: postlink_cmds=$lt_postlink_cmds_CXX
21546:
21547: # Specify filename containing input files.
21548: file_list_spec=$lt_file_list_spec_CXX
21549:
21550: # How to hardcode a shared library path into an executable.
21551: hardcode_action=$hardcode_action_CXX
21552:
21553: # The directories searched by this compiler when creating a shared library.
21554: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21555:
21556: # Dependencies to place before and after the objects being linked to
21557: # create a shared library.
21558: predep_objects=$lt_predep_objects_CXX
21559: postdep_objects=$lt_postdep_objects_CXX
21560: predeps=$lt_predeps_CXX
21561: postdeps=$lt_postdeps_CXX
21562:
21563: # The library search path used internally by the compiler when linking
21564: # a shared library.
21565: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21566:
21567: # ### END LIBTOOL TAG CONFIG: CXX
21568: _LT_EOF
21569:
21570: ;;
1.150 moko 21571:
1.62 paf 21572: esac
1.150 moko 21573: done # for ac_tag
1.62 paf 21574:
21575:
1.150 moko 21576: as_fn_exit 0
1.62 paf 21577: _ACEOF
21578: ac_clean_files=$ac_clean_files_save
21579:
1.150 moko 21580: test $ac_write_fail = 0 ||
21581: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21582:
1.1 paf 21583:
1.62 paf 21584: # configure is writing to config.log, and then calls config.status.
21585: # config.status does its own redirection, appending to config.log.
21586: # Unfortunately, on DOS this fails, as config.log is still kept open
21587: # by configure, so config.status won't be able to write to it; its
21588: # output is simply discarded. So we exec the FD to /dev/null,
21589: # effectively closing config.log, so it can be properly (re)opened and
21590: # appended to by config.status. When coming back to configure, we
21591: # need to make the FD available again.
21592: if test "$no_create" != yes; then
21593: ac_cs_success=:
21594: ac_config_status_args=
21595: test "$silent" = yes &&
21596: ac_config_status_args="$ac_config_status_args --quiet"
21597: exec 5>/dev/null
21598: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21599: exec 5>>config.log
21600: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21601: # would make configure fail if this is the last instruction.
1.150 moko 21602: $ac_cs_success || as_fn_exit 1
1.62 paf 21603: fi
21604:
21605: #
21606: # CONFIG_SUBDIRS section.
21607: #
1.1 paf 21608: if test "$no_recursion" != yes; then
21609:
1.150 moko 21610: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21611: # so they do not pile up.
1.1 paf 21612: ac_sub_configure_args=
21613: ac_prev=
1.150 moko 21614: eval "set x $ac_configure_args"
21615: shift
21616: for ac_arg
21617: do
1.1 paf 21618: if test -n "$ac_prev"; then
21619: ac_prev=
21620: continue
21621: fi
1.62 paf 21622: case $ac_arg in
1.1 paf 21623: -cache-file | --cache-file | --cache-fil | --cache-fi \
21624: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21625: ac_prev=cache_file ;;
21626: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 21627: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21628: | --c=*)
21629: ;;
21630: --config-cache | -C)
1.1 paf 21631: ;;
21632: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21633: ac_prev=srcdir ;;
21634: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21635: ;;
1.62 paf 21636: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21637: ac_prev=prefix ;;
21638: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21639: ;;
1.150 moko 21640: --disable-option-checking)
21641: ;;
21642: *)
21643: case $ac_arg in
21644: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21645: esac
21646: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 21647: esac
21648: done
21649:
1.62 paf 21650: # Always prepend --prefix to ensure using the same prefix
21651: # in subdir configurations.
1.150 moko 21652: ac_arg="--prefix=$prefix"
21653: case $ac_arg in
21654: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21655: esac
21656: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21657:
21658: # Pass --silent
21659: if test "$silent" = yes; then
21660: ac_sub_configure_args="--silent $ac_sub_configure_args"
21661: fi
21662:
21663: # Always prepend --disable-option-checking to silence warnings, since
21664: # different subdirs can have different --enable and --with options.
21665: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 21666:
21667: ac_popdir=`pwd`
21668: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21669:
21670: # Do not complain, so a configure script can configure whichever
21671: # parts of a large source tree are present.
1.150 moko 21672: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21673:
1.150 moko 21674: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21675: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21676: $as_echo "$ac_msg" >&6
21677: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21678: ac_builddir=.
21679:
1.150 moko 21680: case "$ac_dir" in
21681: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21682: *)
21683: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21684: # A ".." for each directory in $ac_dir_suffix.
21685: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21686: case $ac_top_builddir_sub in
21687: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21688: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21689: esac ;;
21690: esac
21691: ac_abs_top_builddir=$ac_pwd
21692: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21693: # for backward compatibility:
21694: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21695:
21696: case $srcdir in
1.150 moko 21697: .) # We are building in place.
1.62 paf 21698: ac_srcdir=.
1.150 moko 21699: ac_top_srcdir=$ac_top_builddir_sub
21700: ac_abs_top_srcdir=$ac_pwd ;;
21701: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21702: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21703: ac_top_srcdir=$srcdir
21704: ac_abs_top_srcdir=$srcdir ;;
21705: *) # Relative name.
21706: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21707: ac_top_srcdir=$ac_top_build_prefix$srcdir
21708: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21709: esac
1.150 moko 21710: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21711:
21712:
1.150 moko 21713: cd "$ac_dir"
1.1 paf 21714:
21715: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21716: if test -f "$ac_srcdir/configure.gnu"; then
21717: ac_sub_configure=$ac_srcdir/configure.gnu
21718: elif test -f "$ac_srcdir/configure"; then
21719: ac_sub_configure=$ac_srcdir/configure
21720: elif test -f "$ac_srcdir/configure.in"; then
21721: # This should be Cygnus configure.
21722: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21723: else
1.150 moko 21724: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21725: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21726: ac_sub_configure=
21727: fi
21728:
21729: # The recursion is here.
21730: if test -n "$ac_sub_configure"; then
21731: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21732: case $cache_file in
21733: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21734: *) # Relative name.
21735: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21736: esac
21737:
1.150 moko 21738: { $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
21739: $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 21740: # The eval makes quoting arguments work.
1.150 moko 21741: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21742: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21743: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21744: fi
21745:
1.150 moko 21746: cd "$ac_popdir"
1.1 paf 21747: done
21748: fi
1.150 moko 21749: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21750: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21751: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21752: fi
1.1 paf 21753:
E-mail: