Annotation of parser3/configure, revision 1.194
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.186 moko 3: # Generated by GNU Autoconf 2.69 for parser 3.4.6b.
1.150 moko 4: #
5: #
1.166 moko 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.150 moko 7: #
1.1 paf 8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.150 moko 11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
1.62 paf 14:
1.150 moko 15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 18: emulate sh
19: NULLCMD=:
1.150 moko 20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
1.150 moko 23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 70: fi
71:
1.150 moko 72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
1.62 paf 79: fi
80:
81:
1.150 moko 82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
1.62 paf 122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
1.150 moko 127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
1.166 moko 135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
1.150 moko 160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
1.166 moko 193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
1.150 moko 195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199:
200: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204: PATH=/empty FPATH=/empty; export PATH FPATH
205: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207: test \$(( 1 + 1 )) = 2 || exit 1"
208: if (eval "$as_required") 2>/dev/null; then :
209: as_have_required=yes
210: else
211: as_have_required=no
212: fi
213: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214:
215: else
216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217: as_found=false
218: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.62 paf 219: do
1.150 moko 220: IFS=$as_save_IFS
221: test -z "$as_dir" && as_dir=.
222: as_found=:
223: case $as_dir in #(
224: /*)
225: for as_base in sh bash ksh sh5; do
226: # Try only shells that exist, to save several forks.
227: as_shell=$as_dir/$as_base
228: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230: CONFIG_SHELL=$as_shell as_have_required=yes
231: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: break 2
233: fi
234: fi
235: done;;
236: esac
237: as_found=false
238: done
239: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241: CONFIG_SHELL=$SHELL as_have_required=yes
242: fi; }
243: IFS=$as_save_IFS
244:
245:
246: if test "x$CONFIG_SHELL" != x; then :
1.166 moko 247: export CONFIG_SHELL
248: # We cannot yet assume a decent shell, so we have to provide a
249: # neutralization value for shells without unset; and this also
250: # works around shells that cannot unset nonexistent variables.
251: # Preserve -v and -x to the replacement shell.
252: BASH_ENV=/dev/null
253: ENV=/dev/null
254: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255: case $- in # ((((
256: *v*x* | *x*v* ) as_opts=-vx ;;
257: *v* ) as_opts=-v ;;
258: *x* ) as_opts=-x ;;
259: * ) as_opts= ;;
260: esac
261: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262: # Admittedly, this is quite paranoid, since all the known shells bail
263: # out after a failed `exec'.
264: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265: exit 255
1.150 moko 266: fi
267:
268: if test x$as_have_required = xno; then :
269: $as_echo "$0: This script requires a shell more modern than all"
270: $as_echo "$0: the shells that I found on your system."
271: if test x${ZSH_VERSION+set} = xset ; then
272: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.62 paf 274: else
1.150 moko 275: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276: $0: including any error possibly output before this
277: $0: message. Then install a modern shell, or manually run
278: $0: the script under such a shell if you do have one."
1.62 paf 279: fi
1.150 moko 280: exit 1
281: fi
282: fi
283: fi
284: SHELL=${CONFIG_SHELL-/bin/sh}
285: export SHELL
286: # Unset more variables known to interfere with behavior of common tools.
287: CLICOLOR_FORCE= GREP_OPTIONS=
288: unset CLICOLOR_FORCE GREP_OPTIONS
289:
290: ## --------------------- ##
291: ## M4sh Shell Functions. ##
292: ## --------------------- ##
293: # as_fn_unset VAR
294: # ---------------
295: # Portably unset VAR.
296: as_fn_unset ()
297: {
298: { eval $1=; unset $1;}
299: }
300: as_unset=as_fn_unset
301:
302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
325:
326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
333: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342: $as_echo X"$as_dir" |
343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364:
365:
366: } # as_fn_mkdir_p
1.166 moko 367:
368: # as_fn_executable_p FILE
369: # -----------------------
370: # Test if FILE is an executable regular file.
371: as_fn_executable_p ()
372: {
373: test -f "$1" && test -x "$1"
374: } # as_fn_executable_p
1.150 moko 375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
392:
393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
409:
410:
411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
1.62 paf 426:
1.150 moko 427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
1.150 moko 434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
1.150 moko 440: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441: as_dirname=dirname
442: else
443: as_dirname=false
444: fi
1.62 paf 445:
1.150 moko 446: as_me=`$as_basename -- "$0" ||
1.62 paf 447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
1.150 moko 449: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450: $as_echo X/"$0" |
451: sed '/^.*\/\([^/][^/]*\)\/*$/{
452: s//\1/
453: q
454: }
455: /^X\/\(\/\/\)$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\).*/{
460: s//\1/
461: q
462: }
463: s/.*/./; q'`
1.62 paf 464:
465: # Avoid depending upon Character Ranges.
466: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469: as_cr_digits='0123456789'
470: as_cr_alnum=$as_cr_Letters$as_cr_digits
471:
472:
1.150 moko 473: as_lineno_1=$LINENO as_lineno_1a=$LINENO
474: as_lineno_2=$LINENO as_lineno_2a=$LINENO
475: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478: sed -n '
479: p
480: /[$]LINENO/=
481: ' <$as_myself |
1.62 paf 482: sed '
1.150 moko 483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
1.62 paf 487: N
1.150 moko 488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.62 paf 490: t loop
1.150 moko 491: s/-\n.*//
1.62 paf 492: ' >$as_me.lineno &&
1.150 moko 493: chmod +x "$as_me.lineno" ||
494: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.62 paf 495:
1.166 moko 496: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497: # already done that, so ensure we don't try to do so again and fall
498: # in an infinite loop. This has already happened in practice.
499: _as_can_reexec=no; export _as_can_reexec
1.62 paf 500: # Don't try to exec as it changes $[0], causing all sort of problems
501: # (the dirname of $[0] is not the place where we might find the
1.150 moko 502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
1.62 paf 504: # Exit status is that of the last command.
505: exit
506: }
507:
1.150 moko 508: ECHO_C= ECHO_N= ECHO_T=
509: case `echo -n x` in #(((((
510: -n*)
511: case `echo 'xy\c'` in
512: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513: xy) ECHO_C='\c';;
514: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515: ECHO_T=' ';;
516: esac;;
517: *)
518: ECHO_N='-n';;
1.62 paf 519: esac
520:
1.150 moko 521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
1.62 paf 524: else
1.150 moko 525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
1.62 paf 527: fi
1.150 moko 528: if (echo >conf$$.file) 2>/dev/null; then
529: if ln -s conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s='ln -s'
531: # ... but there are two gotchas:
532: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 534: # In both cases, we have to default to `cp -pR'.
1.150 moko 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 536: as_ln_s='cp -pR'
1.150 moko 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.166 moko 540: as_ln_s='cp -pR'
1.62 paf 541: fi
542: else
1.166 moko 543: as_ln_s='cp -pR'
1.62 paf 544: fi
1.150 moko 545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
1.62 paf 547:
548: if mkdir -p . 2>/dev/null; then
1.150 moko 549: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 550: else
1.86 paf 551: test -d ./-p && rmdir ./-p
1.62 paf 552: as_mkdir_p=false
553: fi
554:
1.166 moko 555: as_test_x='test -x'
556: as_executable_p=as_fn_executable_p
1.62 paf 557:
558: # Sed expression to map a string onto a valid CPP name.
1.86 paf 559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 560:
561: # Sed expression to map a string onto a valid variable name.
1.86 paf 562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 563:
1.128 moko 564: lt_ltdl_dir='src/lib/ltdl'
565:
566: SHELL=${CONFIG_SHELL-/bin/sh}
567:
568: lt_dlopen_dir="$lt_ltdl_dir"
569:
1.1 paf 570:
1.150 moko 571: test -n "$DJDIR" || exec 7<&0 </dev/null
572: exec 6>&1
573:
1.62 paf 574: # Name of the host.
1.150 moko 575: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.62 paf 576: # so uname gets run too.
577: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578:
579: #
580: # Initializations.
581: #
1.1 paf 582: ac_default_prefix=/usr/local
1.150 moko 583: ac_clean_files=
1.62 paf 584: ac_config_libobj_dir=.
1.150 moko 585: LIBOBJS=
1.62 paf 586: cross_compiling=no
587: subdirs=
588: MFLAGS=
589: MAKEFLAGS=
590:
591: # Identity of this package.
1.128 moko 592: PACKAGE_NAME='parser'
593: PACKAGE_TARNAME='parser'
1.186 moko 594: PACKAGE_VERSION='3.4.6b'
595: PACKAGE_STRING='parser 3.4.6b'
1.128 moko 596: PACKAGE_BUGREPORT=''
1.150 moko 597: PACKAGE_URL=''
1.62 paf 598:
599: ac_unique_file="README"
600: # Factoring default headers for most tests.
601: ac_includes_default="\
602: #include <stdio.h>
1.150 moko 603: #ifdef HAVE_SYS_TYPES_H
1.62 paf 604: # include <sys/types.h>
605: #endif
1.150 moko 606: #ifdef HAVE_SYS_STAT_H
1.62 paf 607: # include <sys/stat.h>
608: #endif
1.150 moko 609: #ifdef STDC_HEADERS
1.62 paf 610: # include <stdlib.h>
611: # include <stddef.h>
612: #else
1.150 moko 613: # ifdef HAVE_STDLIB_H
1.62 paf 614: # include <stdlib.h>
615: # endif
616: #endif
1.150 moko 617: #ifdef HAVE_STRING_H
618: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.62 paf 619: # include <memory.h>
620: # endif
621: # include <string.h>
622: #endif
1.150 moko 623: #ifdef HAVE_STRINGS_H
1.62 paf 624: # include <strings.h>
625: #endif
1.150 moko 626: #ifdef HAVE_INTTYPES_H
1.62 paf 627: # include <inttypes.h>
628: #endif
1.150 moko 629: #ifdef HAVE_STDINT_H
630: # include <stdint.h>
631: #endif
632: #ifdef HAVE_UNISTD_H
1.62 paf 633: # include <unistd.h>
634: #endif"
635:
1.150 moko 636: enable_option_checking=no
637: ac_subst_vars='ltdl_LTLIBOBJS
638: ltdl_LIBOBJS
639: am__EXEEXT_FALSE
640: am__EXEEXT_TRUE
641: LTLIBOBJS
642: LIBOBJS
643: LTDLOPEN
644: LT_CONFIG_H
645: subdirs
646: CONVENIENCE_LTDL_FALSE
647: CONVENIENCE_LTDL_TRUE
648: INSTALL_LTDL_FALSE
649: INSTALL_LTDL_TRUE
650: ARGZ_H
651: sys_symbol_underscore
652: LIBADD_DL
653: LT_DLPREOPEN
654: LIBADD_DLD_LINK
655: LIBADD_SHL_LOAD
656: LIBADD_DLOPEN
657: LT_DLLOADERS
658: INCLTDL
659: LTDLINCL
660: LTDLDEPS
661: LIBLTDL
662: CXXCPP
663: CPP
664: OTOOL64
665: OTOOL
666: LIPO
667: NMEDIT
668: DSYMUTIL
669: MANIFEST_TOOL
670: RANLIB
671: ac_ct_AR
672: AR
673: LN_S
674: NM
675: ac_ct_DUMPBIN
676: DUMPBIN
677: LD
678: FGREP
679: EGREP
680: GREP
681: SED
682: LIBTOOL
683: OBJDUMP
684: DLLTOOL
685: AS
686: COMPILE_APACHE_MODULE_FALSE
687: COMPILE_APACHE_MODULE_TRUE
688: APACHE_CFLAGS
689: APACHE_INC
690: APACHE
691: MIME_LIBS
692: MIME_INCLUDES
693: XML_LIBS
694: XML_INCLUDES
695: PCRE_LIBS
696: PCRE_INCLUDES
697: GC_LIBS
698: dll_extension
699: am__fastdepCC_FALSE
700: am__fastdepCC_TRUE
701: CCDEPMODE
702: ac_ct_CC
703: CFLAGS
704: CC
705: am__fastdepCXX_FALSE
706: am__fastdepCXX_TRUE
707: CXXDEPMODE
1.187 moko 708: am__nodep
1.150 moko 709: AMDEPBACKSLASH
710: AMDEP_FALSE
711: AMDEP_TRUE
712: am__quote
713: am__include
714: DEPDIR
715: OBJEXT
716: EXEEXT
717: ac_ct_CXX
718: CPPFLAGS
719: LDFLAGS
720: CXXFLAGS
721: CXX
722: YFLAGS
723: YACC
724: host_os
725: host_vendor
726: host_cpu
727: host
728: build_os
729: build_vendor
730: build_cpu
731: build
732: P3S
1.187 moko 733: AM_BACKSLASH
734: AM_DEFAULT_VERBOSITY
735: AM_DEFAULT_V
736: AM_V
1.150 moko 737: am__untar
738: am__tar
739: AMTAR
740: am__leading_dot
741: SET_MAKE
742: AWK
743: mkdir_p
744: MKDIR_P
745: INSTALL_STRIP_PROGRAM
746: STRIP
747: install_sh
748: MAKEINFO
749: AUTOHEADER
750: AUTOMAKE
751: AUTOCONF
752: ACLOCAL
753: VERSION
754: PACKAGE
755: CYGPATH_W
756: am__isrc
757: INSTALL_DATA
758: INSTALL_SCRIPT
759: INSTALL_PROGRAM
760: target_alias
761: host_alias
762: build_alias
763: LIBS
764: ECHO_T
765: ECHO_N
766: ECHO_C
767: DEFS
768: mandir
769: localedir
770: libdir
771: psdir
772: pdfdir
773: dvidir
774: htmldir
775: infodir
776: docdir
777: oldincludedir
778: includedir
1.191 moko 779: runstatedir
1.150 moko 780: localstatedir
781: sharedstatedir
782: sysconfdir
783: datadir
784: datarootdir
785: libexecdir
786: sbindir
787: bindir
788: program_transform_name
789: prefix
790: exec_prefix
791: PACKAGE_URL
792: PACKAGE_BUGREPORT
793: PACKAGE_STRING
794: PACKAGE_VERSION
795: PACKAGE_TARNAME
796: PACKAGE_NAME
797: PATH_SEPARATOR
798: SHELL'
1.62 paf 799: ac_subst_files=''
1.150 moko 800: ac_user_opts='
801: enable_option_checking
1.187 moko 802: enable_silent_rules
1.150 moko 803: enable_dependency_tracking
804: with_build_warnings
1.182 moko 805: with_coverage
806: with_profiler
1.150 moko 807: with_assertions
808: with_sjlj_exceptions
809: enable_safe_mode
810: enable_execs
811: enable_stringstream
812: with_gc
813: with_pcre
814: with_xml
1.154 moko 815: with_mailreceive
1.150 moko 816: with_sendmail
817: with_apache
818: with_pic
819: enable_shared
820: enable_static
821: enable_fast_install
822: with_gnu_ld
823: with_sysroot
824: enable_libtool_lock
825: with_included_ltdl
826: with_ltdl_include
827: with_ltdl_lib
828: enable_ltdl_install
1.171 moko 829: enable_largefile
1.150 moko 830: '
831: ac_precious_vars='build_alias
832: host_alias
833: target_alias
834: YACC
835: YFLAGS
836: CXX
837: CXXFLAGS
838: LDFLAGS
839: LIBS
840: CPPFLAGS
841: CCC
842: CC
843: CFLAGS
844: CPP
845: CXXCPP'
846: ac_subdirs_all='src/lib/ltdl'
1.1 paf 847:
848: # Initialize some variables set by options.
1.62 paf 849: ac_init_help=
850: ac_init_version=false
1.150 moko 851: ac_unrecognized_opts=
852: ac_unrecognized_sep=
1.1 paf 853: # The variables have the same names as the options, with
854: # dashes changed to underlines.
1.62 paf 855: cache_file=/dev/null
1.1 paf 856: exec_prefix=NONE
857: no_create=
858: no_recursion=
859: prefix=NONE
860: program_prefix=NONE
861: program_suffix=NONE
862: program_transform_name=s,x,x,
863: silent=
864: site=
865: srcdir=
866: verbose=
867: x_includes=NONE
868: x_libraries=NONE
1.62 paf 869:
870: # Installation directory options.
871: # These are left unexpanded so users can "make install exec_prefix=/foo"
872: # and all the variables that are supposed to be based on exec_prefix
873: # by default will actually change.
874: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 875: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 876: bindir='${exec_prefix}/bin'
877: sbindir='${exec_prefix}/sbin'
878: libexecdir='${exec_prefix}/libexec'
1.150 moko 879: datarootdir='${prefix}/share'
880: datadir='${datarootdir}'
1.1 paf 881: sysconfdir='${prefix}/etc'
882: sharedstatedir='${prefix}/com'
883: localstatedir='${prefix}/var'
1.191 moko 884: runstatedir='${localstatedir}/run'
1.1 paf 885: includedir='${prefix}/include'
886: oldincludedir='/usr/include'
1.150 moko 887: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888: infodir='${datarootdir}/info'
889: htmldir='${docdir}'
890: dvidir='${docdir}'
891: pdfdir='${docdir}'
892: psdir='${docdir}'
893: libdir='${exec_prefix}/lib'
894: localedir='${datarootdir}/locale'
895: mandir='${datarootdir}/man'
1.1 paf 896:
897: ac_prev=
1.150 moko 898: ac_dashdash=
1.1 paf 899: for ac_option
900: do
901: # If the previous option needs an argument, assign it.
902: if test -n "$ac_prev"; then
1.150 moko 903: eval $ac_prev=\$ac_option
1.1 paf 904: ac_prev=
905: continue
906: fi
907:
1.150 moko 908: case $ac_option in
909: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910: *=) ac_optarg= ;;
911: *) ac_optarg=yes ;;
912: esac
1.1 paf 913:
914: # Accept the important Cygnus configure options, so we can diagnose typos.
915:
1.150 moko 916: case $ac_dashdash$ac_option in
917: --)
918: ac_dashdash=yes ;;
1.1 paf 919:
920: -bindir | --bindir | --bindi | --bind | --bin | --bi)
921: ac_prev=bindir ;;
922: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 923: bindir=$ac_optarg ;;
1.1 paf 924:
925: -build | --build | --buil | --bui | --bu)
1.62 paf 926: ac_prev=build_alias ;;
1.1 paf 927: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 928: build_alias=$ac_optarg ;;
1.1 paf 929:
930: -cache-file | --cache-file | --cache-fil | --cache-fi \
931: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932: ac_prev=cache_file ;;
933: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 935: cache_file=$ac_optarg ;;
936:
937: --config-cache | -C)
938: cache_file=config.cache ;;
1.1 paf 939:
1.150 moko 940: -datadir | --datadir | --datadi | --datad)
1.1 paf 941: ac_prev=datadir ;;
1.150 moko 942: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 943: datadir=$ac_optarg ;;
1.1 paf 944:
1.150 moko 945: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946: | --dataroo | --dataro | --datar)
947: ac_prev=datarootdir ;;
948: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950: datarootdir=$ac_optarg ;;
951:
1.1 paf 952: -disable-* | --disable-*)
1.150 moko 953: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 954: # Reject names that are not valid shell variable names.
1.150 moko 955: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956: as_fn_error $? "invalid feature name: $ac_useropt"
957: ac_useropt_orig=$ac_useropt
958: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959: case $ac_user_opts in
960: *"
961: "enable_$ac_useropt"
962: "*) ;;
963: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964: ac_unrecognized_sep=', ';;
965: esac
966: eval enable_$ac_useropt=no ;;
967:
968: -docdir | --docdir | --docdi | --doc | --do)
969: ac_prev=docdir ;;
970: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971: docdir=$ac_optarg ;;
972:
973: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974: ac_prev=dvidir ;;
975: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976: dvidir=$ac_optarg ;;
1.1 paf 977:
978: -enable-* | --enable-*)
1.150 moko 979: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 980: # Reject names that are not valid shell variable names.
1.150 moko 981: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982: as_fn_error $? "invalid feature name: $ac_useropt"
983: ac_useropt_orig=$ac_useropt
984: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985: case $ac_user_opts in
986: *"
987: "enable_$ac_useropt"
988: "*) ;;
989: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990: ac_unrecognized_sep=', ';;
1.1 paf 991: esac
1.150 moko 992: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 993:
994: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996: | --exec | --exe | --ex)
997: ac_prev=exec_prefix ;;
998: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000: | --exec=* | --exe=* | --ex=*)
1.62 paf 1001: exec_prefix=$ac_optarg ;;
1.1 paf 1002:
1003: -gas | --gas | --ga | --g)
1004: # Obsolete; use --with-gas.
1005: with_gas=yes ;;
1006:
1.62 paf 1007: -help | --help | --hel | --he | -h)
1008: ac_init_help=long ;;
1009: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010: ac_init_help=recursive ;;
1011: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012: ac_init_help=short ;;
1.1 paf 1013:
1014: -host | --host | --hos | --ho)
1.62 paf 1015: ac_prev=host_alias ;;
1.1 paf 1016: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1017: host_alias=$ac_optarg ;;
1.1 paf 1018:
1.150 moko 1019: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020: ac_prev=htmldir ;;
1021: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022: | --ht=*)
1023: htmldir=$ac_optarg ;;
1024:
1.1 paf 1025: -includedir | --includedir | --includedi | --included | --include \
1026: | --includ | --inclu | --incl | --inc)
1027: ac_prev=includedir ;;
1028: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1030: includedir=$ac_optarg ;;
1.1 paf 1031:
1032: -infodir | --infodir | --infodi | --infod | --info | --inf)
1033: ac_prev=infodir ;;
1034: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1035: infodir=$ac_optarg ;;
1.1 paf 1036:
1037: -libdir | --libdir | --libdi | --libd)
1038: ac_prev=libdir ;;
1039: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1040: libdir=$ac_optarg ;;
1.1 paf 1041:
1042: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043: | --libexe | --libex | --libe)
1044: ac_prev=libexecdir ;;
1045: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1047: libexecdir=$ac_optarg ;;
1.1 paf 1048:
1.150 moko 1049: -localedir | --localedir | --localedi | --localed | --locale)
1050: ac_prev=localedir ;;
1051: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052: localedir=$ac_optarg ;;
1053:
1.1 paf 1054: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1055: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1056: ac_prev=localstatedir ;;
1057: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1058: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1059: localstatedir=$ac_optarg ;;
1.1 paf 1060:
1061: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062: ac_prev=mandir ;;
1063: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1064: mandir=$ac_optarg ;;
1.1 paf 1065:
1066: -nfp | --nfp | --nf)
1067: # Obsolete; use --without-fp.
1068: with_fp=no ;;
1069:
1070: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1071: | --no-cr | --no-c | -n)
1.1 paf 1072: no_create=yes ;;
1073:
1074: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076: no_recursion=yes ;;
1077:
1078: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080: | --oldin | --oldi | --old | --ol | --o)
1081: ac_prev=oldincludedir ;;
1082: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1085: oldincludedir=$ac_optarg ;;
1.1 paf 1086:
1087: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088: ac_prev=prefix ;;
1089: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1090: prefix=$ac_optarg ;;
1.1 paf 1091:
1092: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093: | --program-pre | --program-pr | --program-p)
1094: ac_prev=program_prefix ;;
1095: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1097: program_prefix=$ac_optarg ;;
1.1 paf 1098:
1099: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100: | --program-suf | --program-su | --program-s)
1101: ac_prev=program_suffix ;;
1102: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1104: program_suffix=$ac_optarg ;;
1.1 paf 1105:
1106: -program-transform-name | --program-transform-name \
1107: | --program-transform-nam | --program-transform-na \
1108: | --program-transform-n | --program-transform- \
1109: | --program-transform | --program-transfor \
1110: | --program-transfo | --program-transf \
1111: | --program-trans | --program-tran \
1112: | --progr-tra | --program-tr | --program-t)
1113: ac_prev=program_transform_name ;;
1114: -program-transform-name=* | --program-transform-name=* \
1115: | --program-transform-nam=* | --program-transform-na=* \
1116: | --program-transform-n=* | --program-transform-=* \
1117: | --program-transform=* | --program-transfor=* \
1118: | --program-transfo=* | --program-transf=* \
1119: | --program-trans=* | --program-tran=* \
1120: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1121: program_transform_name=$ac_optarg ;;
1.1 paf 1122:
1.150 moko 1123: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124: ac_prev=pdfdir ;;
1125: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126: pdfdir=$ac_optarg ;;
1127:
1128: -psdir | --psdir | --psdi | --psd | --ps)
1129: ac_prev=psdir ;;
1130: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131: psdir=$ac_optarg ;;
1132:
1.1 paf 1133: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134: | -silent | --silent | --silen | --sile | --sil)
1135: silent=yes ;;
1136:
1.191 moko 1137: -runstatedir | --runstatedir | --runstatedi | --runstated \
1138: | --runstate | --runstat | --runsta | --runst | --runs \
1139: | --run | --ru | --r)
1140: ac_prev=runstatedir ;;
1141: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1142: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1143: | --run=* | --ru=* | --r=*)
1144: runstatedir=$ac_optarg ;;
1145:
1.1 paf 1146: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147: ac_prev=sbindir ;;
1148: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149: | --sbi=* | --sb=*)
1.62 paf 1150: sbindir=$ac_optarg ;;
1.1 paf 1151:
1152: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154: | --sharedst | --shareds | --shared | --share | --shar \
1155: | --sha | --sh)
1156: ac_prev=sharedstatedir ;;
1157: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160: | --sha=* | --sh=*)
1.62 paf 1161: sharedstatedir=$ac_optarg ;;
1.1 paf 1162:
1163: -site | --site | --sit)
1164: ac_prev=site ;;
1165: -site=* | --site=* | --sit=*)
1.62 paf 1166: site=$ac_optarg ;;
1.1 paf 1167:
1168: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169: ac_prev=srcdir ;;
1170: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1171: srcdir=$ac_optarg ;;
1.1 paf 1172:
1173: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174: | --syscon | --sysco | --sysc | --sys | --sy)
1175: ac_prev=sysconfdir ;;
1176: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1178: sysconfdir=$ac_optarg ;;
1.1 paf 1179:
1180: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1181: ac_prev=target_alias ;;
1.1 paf 1182: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1183: target_alias=$ac_optarg ;;
1.1 paf 1184:
1185: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186: verbose=yes ;;
1187:
1.62 paf 1188: -version | --version | --versio | --versi | --vers | -V)
1189: ac_init_version=: ;;
1.1 paf 1190:
1191: -with-* | --with-*)
1.150 moko 1192: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1193: # Reject names that are not valid shell variable names.
1.150 moko 1194: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195: as_fn_error $? "invalid package name: $ac_useropt"
1196: ac_useropt_orig=$ac_useropt
1197: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198: case $ac_user_opts in
1199: *"
1200: "with_$ac_useropt"
1201: "*) ;;
1202: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203: ac_unrecognized_sep=', ';;
1.1 paf 1204: esac
1.150 moko 1205: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1206:
1207: -without-* | --without-*)
1.150 moko 1208: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1209: # Reject names that are not valid shell variable names.
1.150 moko 1210: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211: as_fn_error $? "invalid package name: $ac_useropt"
1212: ac_useropt_orig=$ac_useropt
1213: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214: case $ac_user_opts in
1215: *"
1216: "with_$ac_useropt"
1217: "*) ;;
1218: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219: ac_unrecognized_sep=', ';;
1220: esac
1221: eval with_$ac_useropt=no ;;
1.1 paf 1222:
1223: --x)
1224: # Obsolete; use --with-x.
1225: with_x=yes ;;
1226:
1227: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228: | --x-incl | --x-inc | --x-in | --x-i)
1229: ac_prev=x_includes ;;
1230: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1232: x_includes=$ac_optarg ;;
1.1 paf 1233:
1234: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236: ac_prev=x_libraries ;;
1237: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1239: x_libraries=$ac_optarg ;;
1.1 paf 1240:
1.150 moko 1241: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242: Try \`$0 --help' for more information"
1.1 paf 1243: ;;
1244:
1.62 paf 1245: *=*)
1246: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247: # Reject names that are not valid shell variable names.
1.150 moko 1248: case $ac_envvar in #(
1249: '' | [0-9]* | *[!_$as_cr_alnum]* )
1250: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251: esac
1252: eval $ac_envvar=\$ac_optarg
1.62 paf 1253: export $ac_envvar ;;
1254:
1.1 paf 1255: *)
1.62 paf 1256: # FIXME: should be removed in autoconf 3.0.
1.150 moko 1257: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1258: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.150 moko 1259: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1261: ;;
1262:
1263: esac
1264: done
1265:
1266: if test -n "$ac_prev"; then
1.62 paf 1267: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1268: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1269: fi
1270:
1.150 moko 1271: if test -n "$ac_unrecognized_opts"; then
1272: case $enable_option_checking in
1273: no) ;;
1274: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276: esac
1277: fi
1278:
1279: # Check all directory arguments for consistency.
1280: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281: datadir sysconfdir sharedstatedir localstatedir includedir \
1282: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.191 moko 1283: libdir localedir mandir runstatedir
1.62 paf 1284: do
1.150 moko 1285: eval ac_val=\$$ac_var
1286: # Remove trailing slashes.
1.62 paf 1287: case $ac_val in
1.150 moko 1288: */ )
1289: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290: eval $ac_var=\$ac_val;;
1.62 paf 1291: esac
1.150 moko 1292: # Be sure to have absolute directory names.
1.62 paf 1293: case $ac_val in
1.150 moko 1294: [\\/$]* | ?:[\\/]* ) continue;;
1295: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1296: esac
1.150 moko 1297: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1298: done
1299:
1.62 paf 1300: # There might be people who depend on the old broken behavior: `$host'
1301: # used to hold the argument of --host etc.
1302: # FIXME: To remove some day.
1303: build=$build_alias
1304: host=$host_alias
1305: target=$target_alias
1306:
1307: # FIXME: To remove some day.
1308: if test "x$host_alias" != x; then
1309: if test "x$build_alias" = x; then
1310: cross_compiling=maybe
1311: elif test "x$build_alias" != "x$host_alias"; then
1312: cross_compiling=yes
1313: fi
1314: fi
1315:
1316: ac_tool_prefix=
1317: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1318:
1.62 paf 1319: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1320:
1321:
1.150 moko 1322: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323: ac_ls_di=`ls -di .` &&
1324: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325: as_fn_error $? "working directory cannot be determined"
1326: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327: as_fn_error $? "pwd does not report name of working directory"
1328:
1329:
1.1 paf 1330: # Find the source files, if location was not specified.
1331: if test -z "$srcdir"; then
1332: ac_srcdir_defaulted=yes
1.150 moko 1333: # Try the directory containing this script, then the parent directory.
1334: ac_confdir=`$as_dirname -- "$as_myself" ||
1335: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336: X"$as_myself" : 'X\(//\)[^/]' \| \
1337: X"$as_myself" : 'X\(//\)$' \| \
1338: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339: $as_echo X"$as_myself" |
1340: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341: s//\1/
1342: q
1343: }
1344: /^X\(\/\/\)[^/].*/{
1345: s//\1/
1346: q
1347: }
1348: /^X\(\/\/\)$/{
1349: s//\1/
1350: q
1351: }
1352: /^X\(\/\).*/{
1353: s//\1/
1354: q
1355: }
1356: s/.*/./; q'`
1.1 paf 1357: srcdir=$ac_confdir
1.150 moko 1358: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1359: srcdir=..
1360: fi
1361: else
1362: ac_srcdir_defaulted=no
1363: fi
1.150 moko 1364: if test ! -r "$srcdir/$ac_unique_file"; then
1365: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367: fi
1368: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369: ac_abs_confdir=`(
1370: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371: pwd)`
1372: # When building in place, set srcdir=.
1373: if test "$ac_abs_confdir" = "$ac_pwd"; then
1374: srcdir=.
1375: fi
1376: # Remove unnecessary trailing slashes from srcdir.
1377: # Double slashes in file names in object file debugging info
1378: # mess up M-x gdb in Emacs.
1379: case $srcdir in
1380: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381: esac
1382: for ac_var in $ac_precious_vars; do
1383: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384: eval ac_env_${ac_var}_value=\$${ac_var}
1385: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387: done
1.62 paf 1388:
1389: #
1390: # Report the --help message.
1391: #
1392: if test "$ac_init_help" = "long"; then
1393: # Omit some internal or obsolete options to make the list less imposing.
1394: # This message is too long to be a string in the A/UX 3.1 sh.
1395: cat <<_ACEOF
1.186 moko 1396: \`configure' configures parser 3.4.6b to adapt to many kinds of systems.
1.62 paf 1397:
1398: Usage: $0 [OPTION]... [VAR=VALUE]...
1399:
1400: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401: VAR=VALUE. See below for descriptions of some of the useful variables.
1402:
1403: Defaults for the options are specified in brackets.
1404:
1405: Configuration:
1406: -h, --help display this help and exit
1407: --help=short display options specific to this package
1408: --help=recursive display the short help of all the included packages
1409: -V, --version display version information and exit
1.150 moko 1410: -q, --quiet, --silent do not print \`checking ...' messages
1.62 paf 1411: --cache-file=FILE cache test results in FILE [disabled]
1412: -C, --config-cache alias for \`--cache-file=config.cache'
1413: -n, --no-create do not create output files
1414: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415:
1416: Installation directories:
1417: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1418: [$ac_default_prefix]
1.62 paf 1419: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1420: [PREFIX]
1.62 paf 1421:
1422: By default, \`make install' will install all the files in
1423: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425: for instance \`--prefix=\$HOME'.
1426:
1427: For better control, use the options below.
1428:
1429: Fine tuning of the installation directories:
1.150 moko 1430: --bindir=DIR user executables [EPREFIX/bin]
1431: --sbindir=DIR system admin executables [EPREFIX/sbin]
1432: --libexecdir=DIR program executables [EPREFIX/libexec]
1433: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.191 moko 1436: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.150 moko 1437: --libdir=DIR object code libraries [EPREFIX/lib]
1438: --includedir=DIR C header files [PREFIX/include]
1439: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442: --infodir=DIR info documentation [DATAROOTDIR/info]
1443: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444: --mandir=DIR man documentation [DATAROOTDIR/man]
1445: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1446: --htmldir=DIR html documentation [DOCDIR]
1447: --dvidir=DIR dvi documentation [DOCDIR]
1448: --pdfdir=DIR pdf documentation [DOCDIR]
1449: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1450: _ACEOF
1451:
1452: cat <<\_ACEOF
1453:
1454: Program names:
1455: --program-prefix=PREFIX prepend PREFIX to installed program names
1456: --program-suffix=SUFFIX append SUFFIX to installed program names
1457: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458:
1459: System types:
1460: --build=BUILD configure for building on BUILD [guessed]
1461: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462: _ACEOF
1463: fi
1464:
1465: if test -n "$ac_init_help"; then
1.128 moko 1466: case $ac_init_help in
1.186 moko 1467: short | recursive ) echo "Configuration of parser 3.4.6b:";;
1.128 moko 1468: esac
1.62 paf 1469: cat <<\_ACEOF
1470:
1471: Optional Features:
1.150 moko 1472: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1473: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1475: --enable-silent-rules less verbose build output (undo: "make V=1")
1476: --disable-silent-rules verbose build output (undo: "make V=0")
1477: --enable-dependency-tracking
1478: do not reject slow dependency extractors
1479: --disable-dependency-tracking
1480: speeds up one-time build
1.67 paf 1481: --disable-safe-mode to enable reading and executing
1.62 paf 1482: files belonging to group+user other then effective
1.146 moko 1483: --disable-execs to disable any execs
1.62 paf 1484: (file::exec, file::cgi, unix mail:send)
1.94 misha 1485: --disable-stringstream to disable stringstream usage.
1486: when disabled table.save use more memory but it's safer on freebsd 4.x
1.150 moko 1487: --enable-shared[=PKGS] build shared libraries [default=yes]
1488: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1489: --enable-fast-install[=PKGS]
1490: optimize for fast installation [default=yes]
1491: --disable-libtool-lock avoid locking (might break parallel builds)
1492: --enable-ltdl-install install libltdl
1.171 moko 1493: --disable-largefile omit support for large files
1.62 paf 1494:
1495: Optional Packages:
1496: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1498: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1499: --with-coverage to enable gcov code coverage support
1500: --with-profiler to enable gprof code profiler support
1.67 paf 1501: --with-assertions to enable assertions
1.128 moko 1502: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.146 moko 1503: --with-gc=D D is the directory where
1.142 moko 1504: Boehm garbage collecting library is installed
1.146 moko 1505: --with-pcre=D D is the directory where
1.142 moko 1506: PCRE library is installed
1.146 moko 1507: --with-xml=D D is the directory where
1.142 moko 1508: Gnome XML libraries are installed
1.154 moko 1509: --with-mailreceive=D is the directory where
1510: Gnome MIME library is installed
1.62 paf 1511: \"--with-sendmail=COMMAND\" forces this command to send mail.
1512: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1513: (makes parser ignore user-defined sendmail commands)
1.146 moko 1514: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1515: builds apache DSO module using apxs
1.150 moko 1516: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.128 moko 1517: both]
1518: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1519: --with-sysroot=DIR Search for dependent libraries within DIR
1520: (or the compiler's sysroot if not specified).
1521: --with-included-ltdl use the GNU ltdl sources included here
1522: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1523: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1524:
1525: Some influential environment variables:
1.150 moko 1526: YACC The `Yet Another Compiler Compiler' implementation to use.
1527: Defaults to the first program found out of: `bison -y', `byacc',
1528: `yacc'.
1529: YFLAGS The list of arguments that will be passed by default to $YACC.
1530: This script will default YFLAGS to the empty string to avoid a
1531: default value of `-d' given by some make applications.
1.66 paf 1532: CXX C++ compiler command
1533: CXXFLAGS C++ compiler flags
1.62 paf 1534: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535: nonstandard directory <lib dir>
1.150 moko 1536: LIBS libraries to pass to the linker, e.g. -l<library>
1537: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538: you have headers in a nonstandard directory <include dir>
1.66 paf 1539: CC C compiler command
1540: CFLAGS C compiler flags
1541: CPP C preprocessor
1.128 moko 1542: CXXCPP C++ preprocessor
1.62 paf 1543:
1544: Use these variables to override the choices made by `configure' or to help
1545: it to find libraries and programs with nonstandard names/locations.
1546:
1.150 moko 1547: Report bugs to the package provider.
1.62 paf 1548: _ACEOF
1.150 moko 1549: ac_status=$?
1.62 paf 1550: fi
1551:
1552: if test "$ac_init_help" = "recursive"; then
1553: # If there are subdirs, report their specific --help.
1554: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1555: test -d "$ac_dir" ||
1556: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557: continue
1.62 paf 1558: ac_builddir=.
1559:
1.150 moko 1560: case "$ac_dir" in
1561: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562: *)
1563: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564: # A ".." for each directory in $ac_dir_suffix.
1565: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566: case $ac_top_builddir_sub in
1567: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569: esac ;;
1570: esac
1571: ac_abs_top_builddir=$ac_pwd
1572: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573: # for backward compatibility:
1574: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1575:
1576: case $srcdir in
1.150 moko 1577: .) # We are building in place.
1.62 paf 1578: ac_srcdir=.
1.150 moko 1579: ac_top_srcdir=$ac_top_builddir_sub
1580: ac_abs_top_srcdir=$ac_pwd ;;
1581: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1582: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1583: ac_top_srcdir=$srcdir
1584: ac_abs_top_srcdir=$srcdir ;;
1585: *) # Relative name.
1586: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587: ac_top_srcdir=$ac_top_build_prefix$srcdir
1588: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1589: esac
1.150 moko 1590: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1591:
1.150 moko 1592: cd "$ac_dir" || { ac_status=$?; continue; }
1593: # Check for guested configure.
1594: if test -f "$ac_srcdir/configure.gnu"; then
1595: echo &&
1596: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597: elif test -f "$ac_srcdir/configure"; then
1598: echo &&
1599: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1600: else
1.150 moko 1601: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602: fi || ac_status=$?
1603: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1604: done
1605: fi
1606:
1.150 moko 1607: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1608: if $ac_init_version; then
1609: cat <<\_ACEOF
1.186 moko 1610: parser configure 3.4.6b
1.166 moko 1611: generated by GNU Autoconf 2.69
1.62 paf 1612:
1.166 moko 1613: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 1614: This configure script is free software; the Free Software Foundation
1615: gives unlimited permission to copy, distribute and modify it.
1616: _ACEOF
1.150 moko 1617: exit
1.62 paf 1618: fi
1619:
1.150 moko 1620: ## ------------------------ ##
1621: ## Autoconf initialization. ##
1622: ## ------------------------ ##
1623:
1624: # ac_fn_cxx_try_compile LINENO
1625: # ----------------------------
1626: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627: ac_fn_cxx_try_compile ()
1.62 paf 1628: {
1.150 moko 1629: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630: rm -f conftest.$ac_objext
1631: if { { ac_try="$ac_compile"
1632: case "(($ac_try" in
1633: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634: *) ac_try_echo=$ac_try;;
1635: esac
1636: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637: $as_echo "$ac_try_echo"; } >&5
1638: (eval "$ac_compile") 2>conftest.err
1639: ac_status=$?
1640: if test -s conftest.err; then
1641: grep -v '^ *+' conftest.err >conftest.er1
1642: cat conftest.er1 >&5
1643: mv -f conftest.er1 conftest.err
1644: fi
1645: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646: test $ac_status = 0; } && {
1647: test -z "$ac_cxx_werror_flag" ||
1648: test ! -s conftest.err
1649: } && test -s conftest.$ac_objext; then :
1650: ac_retval=0
1651: else
1652: $as_echo "$as_me: failed program was:" >&5
1653: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1654:
1.150 moko 1655: ac_retval=1
1656: fi
1657: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658: as_fn_set_status $ac_retval
1.62 paf 1659:
1.150 moko 1660: } # ac_fn_cxx_try_compile
1661:
1662: # ac_fn_c_try_compile LINENO
1663: # --------------------------
1664: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1665: ac_fn_c_try_compile ()
1666: {
1667: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668: rm -f conftest.$ac_objext
1669: if { { ac_try="$ac_compile"
1670: case "(($ac_try" in
1671: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672: *) ac_try_echo=$ac_try;;
1673: esac
1674: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675: $as_echo "$ac_try_echo"; } >&5
1676: (eval "$ac_compile") 2>conftest.err
1677: ac_status=$?
1678: if test -s conftest.err; then
1679: grep -v '^ *+' conftest.err >conftest.er1
1680: cat conftest.er1 >&5
1681: mv -f conftest.er1 conftest.err
1682: fi
1683: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684: test $ac_status = 0; } && {
1685: test -z "$ac_c_werror_flag" ||
1686: test ! -s conftest.err
1687: } && test -s conftest.$ac_objext; then :
1688: ac_retval=0
1689: else
1690: $as_echo "$as_me: failed program was:" >&5
1691: sed 's/^/| /' conftest.$ac_ext >&5
1692:
1693: ac_retval=1
1694: fi
1695: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696: as_fn_set_status $ac_retval
1697:
1698: } # ac_fn_c_try_compile
1699:
1700: # ac_fn_c_try_link LINENO
1701: # -----------------------
1702: # Try to link conftest.$ac_ext, and return whether this succeeded.
1703: ac_fn_c_try_link ()
1704: {
1705: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706: rm -f conftest.$ac_objext conftest$ac_exeext
1707: if { { ac_try="$ac_link"
1708: case "(($ac_try" in
1709: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710: *) ac_try_echo=$ac_try;;
1711: esac
1712: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713: $as_echo "$ac_try_echo"; } >&5
1714: (eval "$ac_link") 2>conftest.err
1715: ac_status=$?
1716: if test -s conftest.err; then
1717: grep -v '^ *+' conftest.err >conftest.er1
1718: cat conftest.er1 >&5
1719: mv -f conftest.er1 conftest.err
1720: fi
1721: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722: test $ac_status = 0; } && {
1723: test -z "$ac_c_werror_flag" ||
1724: test ! -s conftest.err
1725: } && test -s conftest$ac_exeext && {
1726: test "$cross_compiling" = yes ||
1.166 moko 1727: test -x conftest$ac_exeext
1.150 moko 1728: }; then :
1729: ac_retval=0
1730: else
1731: $as_echo "$as_me: failed program was:" >&5
1732: sed 's/^/| /' conftest.$ac_ext >&5
1733:
1734: ac_retval=1
1735: fi
1736: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738: # interfere with the next link command; also delete a directory that is
1739: # left behind by Apple's compiler. We do this before executing the actions.
1740: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742: as_fn_set_status $ac_retval
1743:
1744: } # ac_fn_c_try_link
1745:
1746: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747: # -------------------------------------------------------
1748: # Tests whether HEADER exists and can be compiled using the include files in
1749: # INCLUDES, setting the cache variable VAR accordingly.
1750: ac_fn_c_check_header_compile ()
1751: {
1752: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754: $as_echo_n "checking for $2... " >&6; }
1755: if eval \${$3+:} false; then :
1756: $as_echo_n "(cached) " >&6
1757: else
1758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759: /* end confdefs.h. */
1760: $4
1761: #include <$2>
1762: _ACEOF
1763: if ac_fn_c_try_compile "$LINENO"; then :
1764: eval "$3=yes"
1765: else
1766: eval "$3=no"
1767: fi
1768: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769: fi
1770: eval ac_res=\$$3
1771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772: $as_echo "$ac_res" >&6; }
1773: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774:
1775: } # ac_fn_c_check_header_compile
1776:
1777: # ac_fn_c_try_cpp LINENO
1778: # ----------------------
1779: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780: ac_fn_c_try_cpp ()
1781: {
1782: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783: if { { ac_try="$ac_cpp conftest.$ac_ext"
1784: case "(($ac_try" in
1785: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786: *) ac_try_echo=$ac_try;;
1787: esac
1788: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789: $as_echo "$ac_try_echo"; } >&5
1790: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791: ac_status=$?
1792: if test -s conftest.err; then
1793: grep -v '^ *+' conftest.err >conftest.er1
1794: cat conftest.er1 >&5
1795: mv -f conftest.er1 conftest.err
1796: fi
1797: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798: test $ac_status = 0; } > conftest.i && {
1799: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800: test ! -s conftest.err
1801: }; then :
1802: ac_retval=0
1803: else
1804: $as_echo "$as_me: failed program was:" >&5
1805: sed 's/^/| /' conftest.$ac_ext >&5
1806:
1807: ac_retval=1
1808: fi
1809: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810: as_fn_set_status $ac_retval
1811:
1812: } # ac_fn_c_try_cpp
1813:
1814: # ac_fn_c_try_run LINENO
1815: # ----------------------
1816: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817: # that executables *can* be run.
1818: ac_fn_c_try_run ()
1819: {
1820: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821: if { { ac_try="$ac_link"
1822: case "(($ac_try" in
1823: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824: *) ac_try_echo=$ac_try;;
1825: esac
1826: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827: $as_echo "$ac_try_echo"; } >&5
1828: (eval "$ac_link") 2>&5
1829: ac_status=$?
1830: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832: { { case "(($ac_try" in
1833: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834: *) ac_try_echo=$ac_try;;
1835: esac
1836: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837: $as_echo "$ac_try_echo"; } >&5
1838: (eval "$ac_try") 2>&5
1839: ac_status=$?
1840: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841: test $ac_status = 0; }; }; then :
1842: ac_retval=0
1843: else
1844: $as_echo "$as_me: program exited with status $ac_status" >&5
1845: $as_echo "$as_me: failed program was:" >&5
1846: sed 's/^/| /' conftest.$ac_ext >&5
1847:
1848: ac_retval=$ac_status
1849: fi
1850: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852: as_fn_set_status $ac_retval
1853:
1854: } # ac_fn_c_try_run
1855:
1856: # ac_fn_c_check_func LINENO FUNC VAR
1857: # ----------------------------------
1858: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1859: ac_fn_c_check_func ()
1860: {
1861: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863: $as_echo_n "checking for $2... " >&6; }
1864: if eval \${$3+:} false; then :
1865: $as_echo_n "(cached) " >&6
1866: else
1867: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868: /* end confdefs.h. */
1869: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1871: #define $2 innocuous_$2
1872:
1873: /* System header to define __stub macros and hopefully few prototypes,
1874: which can conflict with char $2 (); below.
1875: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876: <limits.h> exists even on freestanding compilers. */
1877:
1878: #ifdef __STDC__
1879: # include <limits.h>
1880: #else
1881: # include <assert.h>
1882: #endif
1883:
1884: #undef $2
1885:
1886: /* Override any GCC internal prototype to avoid an error.
1887: Use char because int might match the return type of a GCC
1888: builtin and then its argument prototype would still apply. */
1889: #ifdef __cplusplus
1890: extern "C"
1891: #endif
1892: char $2 ();
1893: /* The GNU C library defines this for functions which it implements
1894: to always fail with ENOSYS. Some functions are actually named
1895: something starting with __ and the normal name is an alias. */
1896: #if defined __stub_$2 || defined __stub___$2
1897: choke me
1898: #endif
1899:
1900: int
1901: main ()
1902: {
1903: return $2 ();
1904: ;
1905: return 0;
1906: }
1907: _ACEOF
1908: if ac_fn_c_try_link "$LINENO"; then :
1909: eval "$3=yes"
1910: else
1911: eval "$3=no"
1912: fi
1913: rm -f core conftest.err conftest.$ac_objext \
1914: conftest$ac_exeext conftest.$ac_ext
1915: fi
1916: eval ac_res=\$$3
1917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918: $as_echo "$ac_res" >&6; }
1919: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920:
1921: } # ac_fn_c_check_func
1922:
1923: # ac_fn_cxx_try_cpp LINENO
1924: # ------------------------
1925: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1926: ac_fn_cxx_try_cpp ()
1927: {
1928: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929: if { { ac_try="$ac_cpp conftest.$ac_ext"
1930: case "(($ac_try" in
1931: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932: *) ac_try_echo=$ac_try;;
1933: esac
1934: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935: $as_echo "$ac_try_echo"; } >&5
1936: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1937: ac_status=$?
1938: if test -s conftest.err; then
1939: grep -v '^ *+' conftest.err >conftest.er1
1940: cat conftest.er1 >&5
1941: mv -f conftest.er1 conftest.err
1942: fi
1943: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944: test $ac_status = 0; } > conftest.i && {
1945: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1946: test ! -s conftest.err
1947: }; then :
1948: ac_retval=0
1949: else
1950: $as_echo "$as_me: failed program was:" >&5
1951: sed 's/^/| /' conftest.$ac_ext >&5
1952:
1953: ac_retval=1
1954: fi
1955: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956: as_fn_set_status $ac_retval
1957:
1958: } # ac_fn_cxx_try_cpp
1959:
1960: # ac_fn_cxx_try_link LINENO
1961: # -------------------------
1962: # Try to link conftest.$ac_ext, and return whether this succeeded.
1963: ac_fn_cxx_try_link ()
1964: {
1965: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966: rm -f conftest.$ac_objext conftest$ac_exeext
1967: if { { ac_try="$ac_link"
1968: case "(($ac_try" in
1969: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970: *) ac_try_echo=$ac_try;;
1971: esac
1972: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973: $as_echo "$ac_try_echo"; } >&5
1974: (eval "$ac_link") 2>conftest.err
1975: ac_status=$?
1976: if test -s conftest.err; then
1977: grep -v '^ *+' conftest.err >conftest.er1
1978: cat conftest.er1 >&5
1979: mv -f conftest.er1 conftest.err
1980: fi
1981: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982: test $ac_status = 0; } && {
1983: test -z "$ac_cxx_werror_flag" ||
1984: test ! -s conftest.err
1985: } && test -s conftest$ac_exeext && {
1986: test "$cross_compiling" = yes ||
1.166 moko 1987: test -x conftest$ac_exeext
1.150 moko 1988: }; then :
1989: ac_retval=0
1990: else
1991: $as_echo "$as_me: failed program was:" >&5
1992: sed 's/^/| /' conftest.$ac_ext >&5
1993:
1994: ac_retval=1
1995: fi
1996: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998: # interfere with the next link command; also delete a directory that is
1999: # left behind by Apple's compiler. We do this before executing the actions.
2000: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002: as_fn_set_status $ac_retval
2003:
2004: } # ac_fn_cxx_try_link
2005:
2006: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2007: # ---------------------------------------------
2008: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2009: # accordingly.
2010: ac_fn_c_check_decl ()
2011: {
2012: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013: as_decl_name=`echo $2|sed 's/ *(.*//'`
2014: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2016: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2017: if eval \${$3+:} false; then :
2018: $as_echo_n "(cached) " >&6
2019: else
2020: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021: /* end confdefs.h. */
2022: $4
2023: int
2024: main ()
2025: {
2026: #ifndef $as_decl_name
2027: #ifdef __cplusplus
2028: (void) $as_decl_use;
2029: #else
2030: (void) $as_decl_name;
2031: #endif
2032: #endif
2033:
2034: ;
2035: return 0;
2036: }
2037: _ACEOF
2038: if ac_fn_c_try_compile "$LINENO"; then :
2039: eval "$3=yes"
2040: else
2041: eval "$3=no"
2042: fi
2043: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044: fi
2045: eval ac_res=\$$3
2046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047: $as_echo "$ac_res" >&6; }
2048: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049:
2050: } # ac_fn_c_check_decl
2051:
2052: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053: # -------------------------------------------
2054: # Tests whether TYPE exists after having included INCLUDES, setting cache
2055: # variable VAR accordingly.
2056: ac_fn_c_check_type ()
2057: {
2058: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060: $as_echo_n "checking for $2... " >&6; }
2061: if eval \${$3+:} false; then :
2062: $as_echo_n "(cached) " >&6
2063: else
2064: eval "$3=no"
2065: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066: /* end confdefs.h. */
2067: $4
2068: int
2069: main ()
2070: {
2071: if (sizeof ($2))
2072: return 0;
2073: ;
2074: return 0;
2075: }
2076: _ACEOF
2077: if ac_fn_c_try_compile "$LINENO"; then :
2078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079: /* end confdefs.h. */
2080: $4
2081: int
2082: main ()
2083: {
2084: if (sizeof (($2)))
2085: return 0;
2086: ;
2087: return 0;
2088: }
2089: _ACEOF
2090: if ac_fn_c_try_compile "$LINENO"; then :
2091:
2092: else
2093: eval "$3=yes"
2094: fi
2095: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096: fi
2097: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098: fi
2099: eval ac_res=\$$3
2100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101: $as_echo "$ac_res" >&6; }
2102: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103:
2104: } # ac_fn_c_check_type
2105:
1.156 moko 2106: # ac_fn_c_find_uintX_t LINENO BITS VAR
2107: # ------------------------------------
2108: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2109: # accordingly.
2110: ac_fn_c_find_uintX_t ()
2111: {
2112: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2114: $as_echo_n "checking for uint$2_t... " >&6; }
2115: if eval \${$3+:} false; then :
2116: $as_echo_n "(cached) " >&6
2117: else
2118: eval "$3=no"
2119: # Order is important - never check a type that is potentially smaller
2120: # than half of the expected target width.
2121: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2122: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124: /* end confdefs.h. */
2125: $ac_includes_default
2126: int
2127: main ()
2128: {
2129: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2130: test_array [0] = 0;
2131: return test_array [0];
1.156 moko 2132:
2133: ;
2134: return 0;
2135: }
2136: _ACEOF
2137: if ac_fn_c_try_compile "$LINENO"; then :
2138: case $ac_type in #(
2139: uint$2_t) :
2140: eval "$3=yes" ;; #(
2141: *) :
2142: eval "$3=\$ac_type" ;;
2143: esac
2144: fi
2145: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146: if eval test \"x\$"$3"\" = x"no"; then :
2147:
2148: else
2149: break
2150: fi
2151: done
2152: fi
2153: eval ac_res=\$$3
2154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155: $as_echo "$ac_res" >&6; }
2156: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157:
2158: } # ac_fn_c_find_uintX_t
2159:
1.161 moko 2160: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2161: # ----------------------------------------------------
2162: # Tries to find if the field MEMBER exists in type AGGR, after including
2163: # INCLUDES, setting cache variable VAR accordingly.
2164: ac_fn_c_check_member ()
2165: {
2166: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2168: $as_echo_n "checking for $2.$3... " >&6; }
2169: if eval \${$4+:} false; then :
2170: $as_echo_n "(cached) " >&6
2171: else
2172: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173: /* end confdefs.h. */
2174: $5
2175: int
2176: main ()
2177: {
2178: static $2 ac_aggr;
2179: if (ac_aggr.$3)
2180: return 0;
2181: ;
2182: return 0;
2183: }
2184: _ACEOF
2185: if ac_fn_c_try_compile "$LINENO"; then :
2186: eval "$4=yes"
2187: else
2188: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189: /* end confdefs.h. */
2190: $5
2191: int
2192: main ()
2193: {
2194: static $2 ac_aggr;
2195: if (sizeof ac_aggr.$3)
2196: return 0;
2197: ;
2198: return 0;
2199: }
2200: _ACEOF
2201: if ac_fn_c_try_compile "$LINENO"; then :
2202: eval "$4=yes"
2203: else
2204: eval "$4=no"
2205: fi
2206: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207: fi
2208: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209: fi
2210: eval ac_res=\$$4
2211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212: $as_echo "$ac_res" >&6; }
2213: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214:
2215: } # ac_fn_c_check_member
2216:
1.150 moko 2217: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2218: # -------------------------------------------------------
2219: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2220: # the include files in INCLUDES and setting the cache variable VAR
2221: # accordingly.
2222: ac_fn_c_check_header_mongrel ()
2223: {
2224: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225: if eval \${$3+:} false; then :
2226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227: $as_echo_n "checking for $2... " >&6; }
2228: if eval \${$3+:} false; then :
2229: $as_echo_n "(cached) " >&6
2230: fi
2231: eval ac_res=\$$3
2232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233: $as_echo "$ac_res" >&6; }
2234: else
2235: # Is the header compilable?
2236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2237: $as_echo_n "checking $2 usability... " >&6; }
2238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239: /* end confdefs.h. */
2240: $4
2241: #include <$2>
2242: _ACEOF
2243: if ac_fn_c_try_compile "$LINENO"; then :
2244: ac_header_compiler=yes
2245: else
2246: ac_header_compiler=no
2247: fi
2248: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2250: $as_echo "$ac_header_compiler" >&6; }
2251:
2252: # Is the header present?
2253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2254: $as_echo_n "checking $2 presence... " >&6; }
2255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256: /* end confdefs.h. */
2257: #include <$2>
2258: _ACEOF
2259: if ac_fn_c_try_cpp "$LINENO"; then :
2260: ac_header_preproc=yes
2261: else
2262: ac_header_preproc=no
2263: fi
2264: rm -f conftest.err conftest.i conftest.$ac_ext
2265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2266: $as_echo "$ac_header_preproc" >&6; }
2267:
2268: # So? What about this header?
2269: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2270: yes:no: )
2271: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2272: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2273: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2274: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2275: ;;
2276: no:yes:* )
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2278: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2279: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2280: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2281: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2282: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2283: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2284: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2285: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2286: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2287: ;;
2288: esac
2289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290: $as_echo_n "checking for $2... " >&6; }
2291: if eval \${$3+:} false; then :
2292: $as_echo_n "(cached) " >&6
2293: else
2294: eval "$3=\$ac_header_compiler"
2295: fi
2296: eval ac_res=\$$3
2297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298: $as_echo "$ac_res" >&6; }
2299: fi
2300: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301:
2302: } # ac_fn_c_check_header_mongrel
2303: cat >config.log <<_ACEOF
2304: This file contains any messages produced by compilers while
2305: running configure, to aid debugging if configure makes a mistake.
2306:
1.186 moko 2307: It was created by parser $as_me 3.4.6b, which was
1.166 moko 2308: generated by GNU Autoconf 2.69. Invocation command line was
1.150 moko 2309:
2310: $ $0 $@
2311:
2312: _ACEOF
2313: exec 5>>config.log
2314: {
2315: cat <<_ASUNAME
2316: ## --------- ##
2317: ## Platform. ##
2318: ## --------- ##
2319:
2320: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2325:
2326: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2328:
2329: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2330: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2331: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2332: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2333: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2334: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2335: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2336:
2337: _ASUNAME
2338:
2339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340: for as_dir in $PATH
2341: do
2342: IFS=$as_save_IFS
2343: test -z "$as_dir" && as_dir=.
1.150 moko 2344: $as_echo "PATH: $as_dir"
2345: done
2346: IFS=$as_save_IFS
1.1 paf 2347:
1.62 paf 2348: } >&5
2349:
2350: cat >&5 <<_ACEOF
2351:
2352:
2353: ## ----------- ##
2354: ## Core tests. ##
2355: ## ----------- ##
2356:
2357: _ACEOF
2358:
2359:
2360: # Keep a trace of the command line.
2361: # Strip out --no-create and --no-recursion so they do not pile up.
2362: # Strip out --silent because we don't want to record it for future runs.
2363: # Also quote any args containing shell meta-characters.
2364: # Make two passes to allow for proper duplicate-argument suppression.
2365: ac_configure_args=
2366: ac_configure_args0=
2367: ac_configure_args1=
2368: ac_must_keep_next=false
2369: for ac_pass in 1 2
2370: do
2371: for ac_arg
2372: do
2373: case $ac_arg in
2374: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2375: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2376: | -silent | --silent | --silen | --sile | --sil)
2377: continue ;;
1.150 moko 2378: *\'*)
2379: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2380: esac
2381: case $ac_pass in
1.150 moko 2382: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2383: 2)
1.150 moko 2384: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2385: if test $ac_must_keep_next = true; then
1.86 paf 2386: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2387: else
1.86 paf 2388: case $ac_arg in
2389: *=* | --config-cache | -C | -disable-* | --disable-* \
2390: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2391: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2392: | -with-* | --with-* | -without-* | --without-* | --x)
2393: case "$ac_configure_args0 " in
2394: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395: esac
2396: ;;
2397: -* ) ac_must_keep_next=true ;;
2398: esac
1.62 paf 2399: fi
1.150 moko 2400: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2401: ;;
2402: esac
2403: done
2404: done
1.150 moko 2405: { ac_configure_args0=; unset ac_configure_args0;}
2406: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2407:
2408: # When interrupted or exit'd, cleanup temporary files, and complete
2409: # config.log. We remove comments because anyway the quotes in there
2410: # would cause problems or look ugly.
1.150 moko 2411: # WARNING: Use '\'' to represent an apostrophe within the trap.
2412: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2413: trap 'exit_status=$?
2414: # Save into config.log some information that might help in debugging.
2415: {
2416: echo
2417:
1.150 moko 2418: $as_echo "## ---------------- ##
1.62 paf 2419: ## Cache variables. ##
1.150 moko 2420: ## ---------------- ##"
1.62 paf 2421: echo
2422: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2423: (
2424: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425: eval ac_val=\$$ac_var
2426: case $ac_val in #(
2427: *${as_nl}*)
2428: case $ac_var in #(
2429: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431: esac
2432: case $ac_var in #(
2433: _ | IFS | as_nl) ;; #(
2434: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435: *) { eval $ac_var=; unset $ac_var;} ;;
2436: esac ;;
2437: esac
2438: done
1.62 paf 2439: (set) 2>&1 |
1.150 moko 2440: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441: *${as_nl}ac_space=\ *)
1.62 paf 2442: sed -n \
1.150 moko 2443: "s/'\''/'\''\\\\'\'''\''/g;
2444: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445: ;; #(
1.62 paf 2446: *)
1.150 moko 2447: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2448: ;;
1.150 moko 2449: esac |
2450: sort
2451: )
1.62 paf 2452: echo
2453:
1.150 moko 2454: $as_echo "## ----------------- ##
1.62 paf 2455: ## Output variables. ##
1.150 moko 2456: ## ----------------- ##"
1.62 paf 2457: echo
2458: for ac_var in $ac_subst_vars
2459: do
1.150 moko 2460: eval ac_val=\$$ac_var
2461: case $ac_val in
2462: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463: esac
2464: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2465: done | sort
2466: echo
2467:
2468: if test -n "$ac_subst_files"; then
1.150 moko 2469: $as_echo "## ------------------- ##
2470: ## File substitutions. ##
2471: ## ------------------- ##"
1.62 paf 2472: echo
2473: for ac_var in $ac_subst_files
2474: do
1.150 moko 2475: eval ac_val=\$$ac_var
2476: case $ac_val in
2477: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478: esac
2479: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2480: done | sort
2481: echo
2482: fi
2483:
2484: if test -s confdefs.h; then
1.150 moko 2485: $as_echo "## ----------- ##
1.62 paf 2486: ## confdefs.h. ##
1.150 moko 2487: ## ----------- ##"
1.62 paf 2488: echo
1.150 moko 2489: cat confdefs.h
1.62 paf 2490: echo
2491: fi
2492: test "$ac_signal" != 0 &&
1.150 moko 2493: $as_echo "$as_me: caught signal $ac_signal"
2494: $as_echo "$as_me: exit $exit_status"
1.62 paf 2495: } >&5
1.150 moko 2496: rm -f core *.core core.conftest.* &&
2497: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2498: exit $exit_status
1.150 moko 2499: ' 0
1.62 paf 2500: for ac_signal in 1 2 13 15; do
1.150 moko 2501: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2502: done
2503: ac_signal=0
2504:
2505: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2506: rm -f -r conftest* confdefs.h
2507:
2508: $as_echo "/* confdefs.h */" > confdefs.h
1.62 paf 2509:
2510: # Predefined preprocessor variables.
2511:
2512: cat >>confdefs.h <<_ACEOF
2513: #define PACKAGE_NAME "$PACKAGE_NAME"
2514: _ACEOF
2515:
2516: cat >>confdefs.h <<_ACEOF
2517: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2518: _ACEOF
2519:
2520: cat >>confdefs.h <<_ACEOF
2521: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2522: _ACEOF
2523:
2524: cat >>confdefs.h <<_ACEOF
2525: #define PACKAGE_STRING "$PACKAGE_STRING"
2526: _ACEOF
2527:
1.150 moko 2528: cat >>confdefs.h <<_ACEOF
2529: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2530: _ACEOF
1.62 paf 2531:
2532: cat >>confdefs.h <<_ACEOF
1.150 moko 2533: #define PACKAGE_URL "$PACKAGE_URL"
1.62 paf 2534: _ACEOF
2535:
2536:
2537: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2538: # Prefer an explicitly selected file to automatically selected ones.
2539: ac_site_file1=NONE
2540: ac_site_file2=NONE
2541: if test -n "$CONFIG_SITE"; then
2542: # We do not want a PATH search for config.site.
2543: case $CONFIG_SITE in #((
2544: -*) ac_site_file1=./$CONFIG_SITE;;
2545: */*) ac_site_file1=$CONFIG_SITE;;
2546: *) ac_site_file1=./$CONFIG_SITE;;
2547: esac
2548: elif test "x$prefix" != xNONE; then
2549: ac_site_file1=$prefix/share/config.site
2550: ac_site_file2=$prefix/etc/config.site
2551: else
2552: ac_site_file1=$ac_default_prefix/share/config.site
2553: ac_site_file2=$ac_default_prefix/etc/config.site
2554: fi
2555: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2556: do
2557: test "x$ac_site_file" = xNONE && continue
2558: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2559: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2560: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2561: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2562: . "$ac_site_file" \
2563: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565: as_fn_error $? "failed to load site script $ac_site_file
2566: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2567: fi
2568: done
2569:
2570: if test -r "$cache_file"; then
1.150 moko 2571: # Some versions of bash will fail to source /dev/null (special files
2572: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2573: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2574: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2575: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2576: case $cache_file in
1.150 moko 2577: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2578: *) . "./$cache_file";;
1.62 paf 2579: esac
2580: fi
1.1 paf 2581: else
1.150 moko 2582: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2583: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2584: >$cache_file
2585: fi
2586:
2587: # Check that the precious variables saved in the cache have kept the same
2588: # value.
2589: ac_cache_corrupted=false
1.150 moko 2590: for ac_var in $ac_precious_vars; do
1.62 paf 2591: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2592: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 2593: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2594: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 2595: case $ac_old_set,$ac_new_set in
2596: set,)
1.150 moko 2597: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.62 paf 2599: ac_cache_corrupted=: ;;
2600: ,set)
1.150 moko 2601: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.62 paf 2603: ac_cache_corrupted=: ;;
2604: ,);;
2605: *)
2606: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 2607: # differences in whitespace do not lead to failure.
2608: ac_old_val_w=`echo x $ac_old_val`
2609: ac_new_val_w=`echo x $ac_new_val`
2610: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613: ac_cache_corrupted=:
2614: else
2615: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617: eval $ac_var=\$ac_old_val
2618: fi
2619: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2620: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2621: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2622: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.62 paf 2623: fi;;
2624: esac
2625: # Pass precious variables to config.status.
2626: if test "$ac_new_set" = set; then
2627: case $ac_new_val in
1.150 moko 2628: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2629: *) ac_arg=$ac_var=$ac_new_val ;;
2630: esac
2631: case " $ac_configure_args " in
2632: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 2633: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 2634: esac
2635: fi
2636: done
2637: if $ac_cache_corrupted; then
1.150 moko 2638: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2642: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2643: fi
2644: ## -------------------- ##
2645: ## Main body of script. ##
2646: ## -------------------- ##
1.1 paf 2647:
2648: ac_ext=c
2649: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 2650: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653:
2654:
2655:
2656:
2657:
1.187 moko 2658: am__api_version='1.15'
1.62 paf 2659:
1.1 paf 2660: ac_aux_dir=
1.150 moko 2661: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2662: if test -f "$ac_dir/install-sh"; then
1.1 paf 2663: ac_aux_dir=$ac_dir
2664: ac_install_sh="$ac_aux_dir/install-sh -c"
2665: break
1.150 moko 2666: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2667: ac_aux_dir=$ac_dir
2668: ac_install_sh="$ac_aux_dir/install.sh -c"
2669: break
1.150 moko 2670: elif test -f "$ac_dir/shtool"; then
1.62 paf 2671: ac_aux_dir=$ac_dir
2672: ac_install_sh="$ac_aux_dir/shtool install -c"
2673: break
1.1 paf 2674: fi
2675: done
2676: if test -z "$ac_aux_dir"; then
1.150 moko 2677: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2678: fi
2679:
2680: # These three variables are undocumented and unsupported,
2681: # and are intended to be withdrawn in a future Autoconf release.
2682: # They can cause serious problems if a builder's source tree is in a directory
2683: # whose full name contains unusual characters.
2684: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2685: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2686: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2687:
1.1 paf 2688:
2689: # Find a good install program. We prefer a C program (faster),
2690: # so one script is as good as another. But avoid the broken or
2691: # incompatible versions:
2692: # SysV /etc/install, /usr/sbin/install
2693: # SunOS /usr/etc/install
2694: # IRIX /sbin/install
2695: # AIX /bin/install
1.62 paf 2696: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2697: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2698: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2699: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 2700: # OS/2's system install, which has a completely different semantic
1.1 paf 2701: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 2702: # Reject install programs that cannot install multiple files.
2703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2704: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2705: if test -z "$INSTALL"; then
1.150 moko 2706: if ${ac_cv_path_install+:} false; then :
2707: $as_echo_n "(cached) " >&6
1.1 paf 2708: else
1.62 paf 2709: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710: for as_dir in $PATH
2711: do
2712: IFS=$as_save_IFS
2713: test -z "$as_dir" && as_dir=.
1.150 moko 2714: # Account for people who put trailing slashes in PATH elements.
2715: case $as_dir/ in #((
2716: ./ | .// | /[cC]/* | \
1.62 paf 2717: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 2718: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 2719: /usr/ucb/* ) ;;
2720: *)
2721: # OSF1 and SCO ODT 3.0 have their own names for install.
2722: # Don't use installbsd from OSF since it installs stuff as root
2723: # by default.
2724: for ac_prog in ginstall scoinst install; do
2725: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2726: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.86 paf 2727: if test $ac_prog = install &&
2728: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729: # AIX install. It has an incompatible calling convention.
2730: :
2731: elif test $ac_prog = install &&
2732: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733: # program-specific install script used by HP pwplus--don't use.
2734: :
2735: else
1.150 moko 2736: rm -rf conftest.one conftest.two conftest.dir
2737: echo one > conftest.one
2738: echo two > conftest.two
2739: mkdir conftest.dir
2740: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2741: test -s conftest.one && test -s conftest.two &&
2742: test -s conftest.dir/conftest.one &&
2743: test -s conftest.dir/conftest.two
2744: then
2745: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2746: break 3
2747: fi
1.86 paf 2748: fi
2749: fi
1.1 paf 2750: done
1.62 paf 2751: done
2752: ;;
2753: esac
2754:
1.150 moko 2755: done
2756: IFS=$as_save_IFS
2757:
2758: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2759:
2760: fi
2761: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 2762: INSTALL=$ac_cv_path_install
1.1 paf 2763: else
1.150 moko 2764: # As a last resort, use the slow shell script. Don't cache a
2765: # value for INSTALL within a source directory, because that will
1.1 paf 2766: # break other packages using the cache if that directory is
1.150 moko 2767: # removed, or if the value is a relative name.
1.62 paf 2768: INSTALL=$ac_install_sh
1.1 paf 2769: fi
2770: fi
1.150 moko 2771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2772: $as_echo "$INSTALL" >&6; }
1.1 paf 2773:
2774: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2775: # It thinks the first close brace ends the variable substitution.
2776: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2777:
1.62 paf 2778: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2779:
2780: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2781:
1.150 moko 2782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2783: $as_echo_n "checking whether build environment is sane... " >&6; }
2784: # Reject unsafe characters in $srcdir or the absolute working directory
2785: # name. Accept space and tab only in the latter.
2786: am_lf='
2787: '
2788: case `pwd` in
2789: *[\\\"\#\$\&\'\`$am_lf]*)
2790: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2791: esac
2792: case $srcdir in
2793: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 2794: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 2795: esac
2796:
1.187 moko 2797: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 2798: # arguments. Must try -L first in case configure is actually a
2799: # symlink; some systems play weird games with the mod time of symlinks
2800: # (eg FreeBSD returns the mod time of the symlink's containing
2801: # directory).
2802: if (
1.187 moko 2803: am_has_slept=no
2804: for am_try in 1 2; do
2805: echo "timestamp, slept: $am_has_slept" > conftest.file
2806: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2807: if test "$*" = "X"; then
2808: # -L didn't work.
2809: set X `ls -t "$srcdir/configure" conftest.file`
2810: fi
2811: if test "$*" != "X $srcdir/configure conftest.file" \
2812: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2813:
1.187 moko 2814: # If neither matched, then we have a broken ls. This can happen
2815: # if, for instance, CONFIG_SHELL is bash and it inherits a
2816: # broken ls alias from the environment. This has actually
2817: # happened. Such a system could not be considered "sane".
2818: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2819: alias in your environment" "$LINENO" 5
2820: fi
2821: if test "$2" = conftest.file || test $am_try -eq 2; then
2822: break
2823: fi
2824: # Just in case.
2825: sleep 1
2826: am_has_slept=yes
2827: done
1.62 paf 2828: test "$2" = conftest.file
1.1 paf 2829: )
2830: then
2831: # Ok.
2832: :
2833: else
1.150 moko 2834: as_fn_error $? "newly created file is older than distributed files!
2835: Check your system clock" "$LINENO" 5
1.1 paf 2836: fi
1.150 moko 2837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838: $as_echo "yes" >&6; }
1.187 moko 2839: # If we didn't sleep, we still need to ensure time stamps of config.status and
2840: # generated files are strictly newer.
2841: am_sleep_pid=
2842: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2843: ( sleep 1 ) &
2844: am_sleep_pid=$!
2845: fi
2846:
2847: rm -f conftest.file
2848:
1.1 paf 2849: test "$program_prefix" != NONE &&
1.150 moko 2850: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2851: # Use a double $ so make ignores it.
2852: test "$program_suffix" != NONE &&
1.150 moko 2853: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2854: # Double any \ or $.
1.62 paf 2855: # By default was `s,x,x', remove it if useless.
1.150 moko 2856: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2857: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.62 paf 2858:
1.187 moko 2859: # Expand $ac_aux_dir to an absolute path.
2860: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 2861:
1.150 moko 2862: if test x"${MISSING+set}" != xset; then
2863: case $am_aux_dir in
2864: *\ * | *\ *)
2865: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2866: *)
2867: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2868: esac
2869: fi
1.62 paf 2870: # Use eval to expand $SHELL
1.187 moko 2871: if eval "$MISSING --is-lightweight"; then
2872: am_missing_run="$MISSING "
1.62 paf 2873: else
2874: am_missing_run=
1.187 moko 2875: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2876: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 2877: fi
2878:
1.187 moko 2879: if test x"${install_sh+set}" != xset; then
1.150 moko 2880: case $am_aux_dir in
2881: *\ * | *\ *)
2882: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2883: *)
2884: install_sh="\${SHELL} $am_aux_dir/install-sh"
2885: esac
1.86 paf 2886: fi
2887:
1.187 moko 2888: # Installed binaries are usually stripped using 'strip' when the user
2889: # run "make install-strip". However 'strip' might not be the right
1.150 moko 2890: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 2891: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 2892: if test "$cross_compiling" != no; then
2893: if test -n "$ac_tool_prefix"; then
2894: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2895: set dummy ${ac_tool_prefix}strip; ac_word=$2
2896: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897: $as_echo_n "checking for $ac_word... " >&6; }
2898: if ${ac_cv_prog_STRIP+:} false; then :
2899: $as_echo_n "(cached) " >&6
2900: else
2901: if test -n "$STRIP"; then
2902: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2903: else
2904: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905: for as_dir in $PATH
2906: do
2907: IFS=$as_save_IFS
2908: test -z "$as_dir" && as_dir=.
2909: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2910: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2911: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2912: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913: break 2
2914: fi
2915: done
2916: done
2917: IFS=$as_save_IFS
2918:
2919: fi
2920: fi
2921: STRIP=$ac_cv_prog_STRIP
2922: if test -n "$STRIP"; then
2923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2924: $as_echo "$STRIP" >&6; }
2925: else
2926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927: $as_echo "no" >&6; }
2928: fi
2929:
2930:
2931: fi
2932: if test -z "$ac_cv_prog_STRIP"; then
2933: ac_ct_STRIP=$STRIP
2934: # Extract the first word of "strip", so it can be a program name with args.
2935: set dummy strip; ac_word=$2
2936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937: $as_echo_n "checking for $ac_word... " >&6; }
2938: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2939: $as_echo_n "(cached) " >&6
2940: else
2941: if test -n "$ac_ct_STRIP"; then
2942: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2943: else
2944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945: for as_dir in $PATH
2946: do
2947: IFS=$as_save_IFS
2948: test -z "$as_dir" && as_dir=.
2949: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2950: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2951: ac_cv_prog_ac_ct_STRIP="strip"
2952: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953: break 2
2954: fi
2955: done
2956: done
2957: IFS=$as_save_IFS
2958:
2959: fi
2960: fi
2961: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2962: if test -n "$ac_ct_STRIP"; then
2963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2964: $as_echo "$ac_ct_STRIP" >&6; }
2965: else
2966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967: $as_echo "no" >&6; }
2968: fi
2969:
2970: if test "x$ac_ct_STRIP" = x; then
2971: STRIP=":"
2972: else
2973: case $cross_compiling:$ac_tool_warned in
2974: yes:)
2975: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977: ac_tool_warned=yes ;;
2978: esac
2979: STRIP=$ac_ct_STRIP
2980: fi
2981: else
2982: STRIP="$ac_cv_prog_STRIP"
2983: fi
2984:
2985: fi
2986: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2987:
2988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2989: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2990: if test -z "$MKDIR_P"; then
2991: if ${ac_cv_path_mkdir+:} false; then :
2992: $as_echo_n "(cached) " >&6
2993: else
2994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2996: do
2997: IFS=$as_save_IFS
2998: test -z "$as_dir" && as_dir=.
2999: for ac_prog in mkdir gmkdir; do
3000: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3001: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.150 moko 3002: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3003: 'mkdir (GNU coreutils) '* | \
3004: 'mkdir (coreutils) '* | \
3005: 'mkdir (fileutils) '4.1*)
3006: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3007: break 3;;
3008: esac
3009: done
3010: done
3011: done
3012: IFS=$as_save_IFS
3013:
3014: fi
3015:
3016: test -d ./--version && rmdir ./--version
3017: if test "${ac_cv_path_mkdir+set}" = set; then
3018: MKDIR_P="$ac_cv_path_mkdir -p"
3019: else
3020: # As a last resort, use the slow shell script. Don't cache a
3021: # value for MKDIR_P within a source directory, because that will
3022: # break other packages using the cache if that directory is
3023: # removed, or if the value is a relative name.
3024: MKDIR_P="$ac_install_sh -d"
3025: fi
3026: fi
3027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3028: $as_echo "$MKDIR_P" >&6; }
3029:
3030: for ac_prog in gawk mawk nawk awk
1.62 paf 3031: do
3032: # Extract the first word of "$ac_prog", so it can be a program name with args.
3033: set dummy $ac_prog; ac_word=$2
1.150 moko 3034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035: $as_echo_n "checking for $ac_word... " >&6; }
3036: if ${ac_cv_prog_AWK+:} false; then :
3037: $as_echo_n "(cached) " >&6
1.62 paf 3038: else
3039: if test -n "$AWK"; then
3040: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041: else
3042: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043: for as_dir in $PATH
3044: do
3045: IFS=$as_save_IFS
3046: test -z "$as_dir" && as_dir=.
1.150 moko 3047: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3048: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3049: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3050: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3051: break 2
3052: fi
3053: done
1.150 moko 3054: done
3055: IFS=$as_save_IFS
1.62 paf 3056:
3057: fi
3058: fi
3059: AWK=$ac_cv_prog_AWK
3060: if test -n "$AWK"; then
1.150 moko 3061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3062: $as_echo "$AWK" >&6; }
1.62 paf 3063: else
1.150 moko 3064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065: $as_echo "no" >&6; }
1.62 paf 3066: fi
1.1 paf 3067:
1.150 moko 3068:
1.62 paf 3069: test -n "$AWK" && break
3070: done
1.1 paf 3071:
1.150 moko 3072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3073: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3074: set x ${MAKE-make}
3075: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3076: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3077: $as_echo_n "(cached) " >&6
1.1 paf 3078: else
1.62 paf 3079: cat >conftest.make <<\_ACEOF
1.150 moko 3080: SHELL = /bin/sh
1.1 paf 3081: all:
1.150 moko 3082: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3083: _ACEOF
1.150 moko 3084: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3085: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3086: *@@@%%%=?*=@@@%%%*)
3087: eval ac_cv_prog_make_${ac_make}_set=yes;;
3088: *)
3089: eval ac_cv_prog_make_${ac_make}_set=no;;
3090: esac
1.62 paf 3091: rm -f conftest.make
1.1 paf 3092: fi
1.150 moko 3093: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095: $as_echo "yes" >&6; }
1.1 paf 3096: SET_MAKE=
3097: else
1.150 moko 3098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099: $as_echo "no" >&6; }
1.1 paf 3100: SET_MAKE="MAKE=${MAKE-make}"
3101: fi
3102:
1.86 paf 3103: rm -rf .tst 2>/dev/null
3104: mkdir .tst 2>/dev/null
3105: if test -d .tst; then
3106: am__leading_dot=.
3107: else
3108: am__leading_dot=_
3109: fi
3110: rmdir .tst 2>/dev/null
3111:
1.187 moko 3112: # Check whether --enable-silent-rules was given.
3113: if test "${enable_silent_rules+set}" = set; then :
3114: enableval=$enable_silent_rules;
3115: fi
3116:
3117: case $enable_silent_rules in # (((
3118: yes) AM_DEFAULT_VERBOSITY=0;;
3119: no) AM_DEFAULT_VERBOSITY=1;;
3120: *) AM_DEFAULT_VERBOSITY=1;;
3121: esac
3122: am_make=${MAKE-make}
3123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3124: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3125: if ${am_cv_make_support_nested_variables+:} false; then :
3126: $as_echo_n "(cached) " >&6
3127: else
3128: if $as_echo 'TRUE=$(BAR$(V))
3129: BAR0=false
3130: BAR1=true
3131: V=1
3132: am__doit:
3133: @$(TRUE)
3134: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3135: am_cv_make_support_nested_variables=yes
3136: else
3137: am_cv_make_support_nested_variables=no
3138: fi
3139: fi
3140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3141: $as_echo "$am_cv_make_support_nested_variables" >&6; }
3142: if test $am_cv_make_support_nested_variables = yes; then
3143: AM_V='$(V)'
3144: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3145: else
3146: AM_V=$AM_DEFAULT_VERBOSITY
3147: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3148: fi
3149: AM_BACKSLASH='\'
3150:
1.150 moko 3151: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3152: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3153: # is not polluted with repeated "-I."
3154: am__isrc=' -I$(srcdir)'
3155: # test to see if srcdir already configured
3156: if test -f $srcdir/config.status; then
3157: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3158: fi
1.62 paf 3159: fi
3160:
3161: # test whether we have cygpath
3162: if test -z "$CYGPATH_W"; then
3163: if (cygpath --version) >/dev/null 2>/dev/null; then
3164: CYGPATH_W='cygpath -w'
3165: else
3166: CYGPATH_W=echo
3167: fi
3168: fi
3169:
3170:
3171: # Define the identity of the package.
1.128 moko 3172: PACKAGE='parser'
1.186 moko 3173: VERSION='3.4.6b'
1.128 moko 3174:
3175:
3176: cat >>confdefs.h <<_ACEOF
3177: #define PACKAGE "$PACKAGE"
3178: _ACEOF
1.1 paf 3179:
3180:
1.128 moko 3181: cat >>confdefs.h <<_ACEOF
3182: #define VERSION "$VERSION"
3183: _ACEOF
3184:
1.62 paf 3185: # Some tools Automake needs.
3186:
3187: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3188:
3189:
3190: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3191:
3192:
3193: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3194:
3195:
3196: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3197:
3198:
3199: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 3200:
1.187 moko 3201: # For better backward compatibility. To be removed once Automake 1.9.x
3202: # dies out for good. For more background, see:
3203: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3204: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3205: mkdir_p='$(MKDIR_P)'
3206:
3207: # We need awk for the "check" target (and possibly the TAP driver). The
3208: # system "awk" is bad on some platforms.
3209: # Always define AMTAR for backward compatibility. Yes, it's still used
3210: # in the wild :-( We should find a proper way to deprecate it ...
3211: AMTAR='$${TAR-tar}'
3212:
3213:
3214: # We'll loop over all known methods to create a tar archive until one works.
3215: _am_tools='gnutar pax cpio none'
3216:
3217: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3218:
1.86 paf 3219:
3220:
3221:
3222:
1.62 paf 3223:
1.187 moko 3224: # POSIX will say in a future version that running "rm -f" with no argument
3225: # is OK; and we want to be able to make that assumption in our Makefile
3226: # recipes. So use an aggressive probe to check that the usage we want is
3227: # actually supported "in the wild" to an acceptable degree.
3228: # See automake bug#10828.
3229: # To make any issue more visible, cause the running configure to be aborted
3230: # by default if the 'rm' program in use doesn't match our expectations; the
3231: # user can still override this though.
3232: if rm -f && rm -fr && rm -rf; then : OK; else
3233: cat >&2 <<'END'
3234: Oops!
1.1 paf 3235:
1.187 moko 3236: Your 'rm' program seems unable to run without file operands specified
3237: on the command line, even when the '-f' option is present. This is contrary
3238: to the behaviour of most rm programs out there, and not conforming with
3239: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3240:
3241: Please tell bug-automake@gnu.org about your system, including the value
3242: of your $PATH and any error possibly output before this message. This
3243: can help us improve future automake versions.
3244:
3245: END
3246: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3247: echo 'Configuration will proceed anyway, since you have set the' >&2
3248: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3249: echo >&2
3250: else
3251: cat >&2 <<'END'
3252: Aborting the configuration process, to ensure you take notice of the issue.
3253:
3254: You can download and install GNU coreutils to get an 'rm' implementation
3255: that behaves properly: <http://www.gnu.org/software/coreutils/>.
3256:
3257: If you want to complete the configuration process using your problematic
3258: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3259: to "yes", and re-run configure.
3260:
3261: END
3262: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3263: fi
3264: fi
1.1 paf 3265:
3266:
1.128 moko 3267:
1.12 paf 3268: P3S=`cd $srcdir/src ; pwd`
1.1 paf 3269:
3270:
1.128 moko 3271:
1.41 paf 3272: # Make sure we can run config.sub.
1.150 moko 3273: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3274: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.62 paf 3275:
1.150 moko 3276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3277: $as_echo_n "checking build system type... " >&6; }
3278: if ${ac_cv_build+:} false; then :
3279: $as_echo_n "(cached) " >&6
3280: else
3281: ac_build_alias=$build_alias
3282: test "x$ac_build_alias" = x &&
3283: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3284: test "x$ac_build_alias" = x &&
3285: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3286: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3287: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3288:
3289: fi
3290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3291: $as_echo "$ac_cv_build" >&6; }
3292: case $ac_cv_build in
3293: *-*-*) ;;
3294: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3295: esac
3296: build=$ac_cv_build
3297: ac_save_IFS=$IFS; IFS='-'
3298: set x $ac_cv_build
3299: shift
3300: build_cpu=$1
3301: build_vendor=$2
3302: shift; shift
3303: # Remember, the first character of IFS is used to create $*,
3304: # except with old shells:
3305: build_os=$*
3306: IFS=$ac_save_IFS
3307: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3308:
3309:
3310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3311: $as_echo_n "checking host system type... " >&6; }
3312: if ${ac_cv_host+:} false; then :
3313: $as_echo_n "(cached) " >&6
3314: else
3315: if test "x$host_alias" = x; then
3316: ac_cv_host=$ac_cv_build
3317: else
3318: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3319: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.62 paf 3320: fi
3321:
3322: fi
1.150 moko 3323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3324: $as_echo "$ac_cv_host" >&6; }
3325: case $ac_cv_host in
3326: *-*-*) ;;
3327: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3328: esac
1.62 paf 3329: host=$ac_cv_host
1.150 moko 3330: ac_save_IFS=$IFS; IFS='-'
3331: set x $ac_cv_host
3332: shift
3333: host_cpu=$1
3334: host_vendor=$2
3335: shift; shift
3336: # Remember, the first character of IFS is used to create $*,
3337: # except with old shells:
3338: host_os=$*
3339: IFS=$ac_save_IFS
3340: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 3341:
3342:
3343:
1.148 moko 3344: cat >>confdefs.h <<_ACEOF
3345: #define PARSER_VERSION "$VERSION (compiled on $host)"
1.147 moko 3346: _ACEOF
3347:
3348:
1.41 paf 3349:
1.67 paf 3350: case $host_os in
3351: *cygwin* )
1.150 moko 3352: $as_echo "#define CYGWIN /**/" >>confdefs.h
1.67 paf 3353: ;;
3354: esac
1.41 paf 3355:
1.128 moko 3356:
1.1 paf 3357:
1.62 paf 3358: for ac_prog in gawk mawk nawk awk
1.41 paf 3359: do
1.62 paf 3360: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3361: set dummy $ac_prog; ac_word=$2
1.150 moko 3362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363: $as_echo_n "checking for $ac_word... " >&6; }
3364: if ${ac_cv_prog_AWK+:} false; then :
3365: $as_echo_n "(cached) " >&6
1.41 paf 3366: else
3367: if test -n "$AWK"; then
3368: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3369: else
1.62 paf 3370: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371: for as_dir in $PATH
3372: do
3373: IFS=$as_save_IFS
3374: test -z "$as_dir" && as_dir=.
1.150 moko 3375: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3376: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3377: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3378: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3379: break 2
3380: fi
3381: done
1.150 moko 3382: done
3383: IFS=$as_save_IFS
1.62 paf 3384:
1.41 paf 3385: fi
3386: fi
1.62 paf 3387: AWK=$ac_cv_prog_AWK
1.41 paf 3388: if test -n "$AWK"; then
1.150 moko 3389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3390: $as_echo "$AWK" >&6; }
1.41 paf 3391: else
1.150 moko 3392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393: $as_echo "no" >&6; }
1.41 paf 3394: fi
3395:
1.150 moko 3396:
1.62 paf 3397: test -n "$AWK" && break
1.41 paf 3398: done
3399:
3400:
3401: for ac_prog in 'bison -y' byacc
3402: do
1.62 paf 3403: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3404: set dummy $ac_prog; ac_word=$2
1.150 moko 3405: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406: $as_echo_n "checking for $ac_word... " >&6; }
3407: if ${ac_cv_prog_YACC+:} false; then :
3408: $as_echo_n "(cached) " >&6
1.41 paf 3409: else
3410: if test -n "$YACC"; then
3411: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3412: else
1.62 paf 3413: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414: for as_dir in $PATH
3415: do
3416: IFS=$as_save_IFS
3417: test -z "$as_dir" && as_dir=.
1.150 moko 3418: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3419: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3420: ac_cv_prog_YACC="$ac_prog"
1.150 moko 3421: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3422: break 2
3423: fi
3424: done
1.150 moko 3425: done
3426: IFS=$as_save_IFS
1.62 paf 3427:
1.41 paf 3428: fi
3429: fi
1.62 paf 3430: YACC=$ac_cv_prog_YACC
1.41 paf 3431: if test -n "$YACC"; then
1.150 moko 3432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3433: $as_echo "$YACC" >&6; }
1.41 paf 3434: else
1.150 moko 3435: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436: $as_echo "no" >&6; }
1.41 paf 3437: fi
3438:
1.150 moko 3439:
1.62 paf 3440: test -n "$YACC" && break
1.41 paf 3441: done
3442: test -n "$YACC" || YACC="yacc"
3443:
3444: if test "$YACC" != "bison -y"; then
1.150 moko 3445: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
3446: $as_echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 3447: else
1.150 moko 3448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
3449: $as_echo_n "checking bison version... " >&6; }
1.67 paf 3450: oldIFS=$IFS; IFS=.
3451: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
3452: IFS=$oldIFS
3453: if test "$1" = "1" -a "$2" -lt "25"; then
1.150 moko 3454: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
3455: $as_echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 3456: fi
1.150 moko 3457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
3458: $as_echo "$1.$2 (ok)" >&6; }
1.62 paf 3459: fi
3460:
1.150 moko 3461: ac_ext=cpp
1.66 paf 3462: ac_cpp='$CXXCPP $CPPFLAGS'
3463: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 3466: if test -z "$CXX"; then
3467: if test -n "$CCC"; then
3468: CXX=$CCC
3469: else
3470: if test -n "$ac_tool_prefix"; then
3471: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3472: do
3473: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3474: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 3475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476: $as_echo_n "checking for $ac_word... " >&6; }
3477: if ${ac_cv_prog_CXX+:} false; then :
3478: $as_echo_n "(cached) " >&6
1.62 paf 3479: else
1.66 paf 3480: if test -n "$CXX"; then
3481: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 3482: else
3483: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484: for as_dir in $PATH
3485: do
3486: IFS=$as_save_IFS
3487: test -z "$as_dir" && as_dir=.
1.150 moko 3488: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3489: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3490: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.150 moko 3491: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3492: break 2
3493: fi
3494: done
1.150 moko 3495: done
3496: IFS=$as_save_IFS
1.62 paf 3497:
3498: fi
3499: fi
1.66 paf 3500: CXX=$ac_cv_prog_CXX
3501: if test -n "$CXX"; then
1.150 moko 3502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3503: $as_echo "$CXX" >&6; }
1.62 paf 3504: else
1.150 moko 3505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506: $as_echo "no" >&6; }
1.41 paf 3507: fi
3508:
1.150 moko 3509:
1.66 paf 3510: test -n "$CXX" && break
3511: done
1.62 paf 3512: fi
1.66 paf 3513: if test -z "$CXX"; then
3514: ac_ct_CXX=$CXX
1.150 moko 3515: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3516: do
3517: # Extract the first word of "$ac_prog", so it can be a program name with args.
3518: set dummy $ac_prog; ac_word=$2
1.150 moko 3519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520: $as_echo_n "checking for $ac_word... " >&6; }
3521: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3522: $as_echo_n "(cached) " >&6
1.62 paf 3523: else
1.66 paf 3524: if test -n "$ac_ct_CXX"; then
3525: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 3526: else
3527: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528: for as_dir in $PATH
3529: do
3530: IFS=$as_save_IFS
3531: test -z "$as_dir" && as_dir=.
1.150 moko 3532: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3533: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3534: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.150 moko 3535: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3536: break 2
3537: fi
3538: done
1.150 moko 3539: done
3540: IFS=$as_save_IFS
1.62 paf 3541:
3542: fi
3543: fi
1.66 paf 3544: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3545: if test -n "$ac_ct_CXX"; then
1.150 moko 3546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3547: $as_echo "$ac_ct_CXX" >&6; }
1.62 paf 3548: else
1.150 moko 3549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550: $as_echo "no" >&6; }
1.62 paf 3551: fi
3552:
1.150 moko 3553:
1.66 paf 3554: test -n "$ac_ct_CXX" && break
3555: done
3556:
1.150 moko 3557: if test "x$ac_ct_CXX" = x; then
3558: CXX="g++"
3559: else
3560: case $cross_compiling:$ac_tool_warned in
3561: yes:)
3562: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3563: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3564: ac_tool_warned=yes ;;
3565: esac
3566: CXX=$ac_ct_CXX
3567: fi
1.62 paf 3568: fi
3569:
1.150 moko 3570: fi
3571: fi
1.66 paf 3572: # Provide some information about the compiler.
1.150 moko 3573: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3574: set X $ac_compile
3575: ac_compiler=$2
3576: for ac_option in --version -v -V -qversion; do
3577: { { ac_try="$ac_compiler $ac_option >&5"
3578: case "(($ac_try" in
3579: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580: *) ac_try_echo=$ac_try;;
3581: esac
3582: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583: $as_echo "$ac_try_echo"; } >&5
3584: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 3585: ac_status=$?
1.150 moko 3586: if test -s conftest.err; then
3587: sed '10a\
3588: ... rest of stderr output deleted ...
3589: 10q' conftest.err >conftest.er1
3590: cat conftest.er1 >&5
3591: fi
3592: rm -f conftest.er1 conftest.err
3593: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594: test $ac_status = 0; }
3595: done
1.66 paf 3596:
1.150 moko 3597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3598: /* end confdefs.h. */
3599:
3600: int
3601: main ()
3602: {
3603:
3604: ;
3605: return 0;
3606: }
3607: _ACEOF
3608: ac_clean_files_save=$ac_clean_files
1.150 moko 3609: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 3610: # Try to create an executable without -o first, disregard a.out.
3611: # It will help us diagnose broken compilers, and finding out an intuition
3612: # of exeext.
1.150 moko 3613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3614: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3615: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3616:
3617: # The possible output files:
3618: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3619:
3620: ac_rmfiles=
3621: for ac_file in $ac_files
3622: do
3623: case $ac_file in
3624: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626: esac
3627: done
3628: rm -f $ac_rmfiles
3629:
3630: if { { ac_try="$ac_link_default"
3631: case "(($ac_try" in
3632: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633: *) ac_try_echo=$ac_try;;
3634: esac
3635: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636: $as_echo "$ac_try_echo"; } >&5
3637: (eval "$ac_link_default") 2>&5
3638: ac_status=$?
3639: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640: test $ac_status = 0; }; then :
3641: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3642: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3643: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3644: # so that the user can short-circuit this test for compilers unknown to
3645: # Autoconf.
3646: for ac_file in $ac_files ''
1.62 paf 3647: do
1.66 paf 3648: test -f "$ac_file" || continue
3649: case $ac_file in
1.150 moko 3650: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 3651: ;;
1.66 paf 3652: [ab].out )
1.86 paf 3653: # We found the default executable, but exeext='' is most
3654: # certainly right.
3655: break;;
1.66 paf 3656: *.* )
1.150 moko 3657: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3658: then :; else
3659: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660: fi
3661: # We set ac_cv_exeext here because the later test for it is not
3662: # safe: cross compilers may not add the suffix if given an `-o'
3663: # argument, so we may need to know it at that point already.
3664: # Even if this section looks crufty: it has the advantage of
3665: # actually working.
1.86 paf 3666: break;;
1.66 paf 3667: * )
1.86 paf 3668: break;;
1.66 paf 3669: esac
1.62 paf 3670: done
1.150 moko 3671: test "$ac_cv_exeext" = no && ac_cv_exeext=
3672:
1.66 paf 3673: else
1.150 moko 3674: ac_file=''
3675: fi
3676: if test -z "$ac_file"; then :
3677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678: $as_echo "no" >&6; }
3679: $as_echo "$as_me: failed program was:" >&5
1.66 paf 3680: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3681:
1.150 moko 3682: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684: as_fn_error 77 "C++ compiler cannot create executables
3685: See \`config.log' for more details" "$LINENO" 5; }
3686: else
3687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3688: $as_echo "yes" >&6; }
1.1 paf 3689: fi
1.150 moko 3690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3691: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3693: $as_echo "$ac_file" >&6; }
1.66 paf 3694: ac_exeext=$ac_cv_exeext
1.62 paf 3695:
1.150 moko 3696: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 3697: ac_clean_files=$ac_clean_files_save
1.150 moko 3698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3699: $as_echo_n "checking for suffix of executables... " >&6; }
3700: if { { ac_try="$ac_link"
3701: case "(($ac_try" in
3702: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703: *) ac_try_echo=$ac_try;;
3704: esac
3705: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706: $as_echo "$ac_try_echo"; } >&5
3707: (eval "$ac_link") 2>&5
1.62 paf 3708: ac_status=$?
1.150 moko 3709: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710: test $ac_status = 0; }; then :
1.62 paf 3711: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3712: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3713: # work properly (i.e., refer to `conftest.exe'), while it won't with
3714: # `rm'.
3715: for ac_file in conftest.exe conftest conftest.*; do
3716: test -f "$ac_file" || continue
3717: case $ac_file in
1.150 moko 3718: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 3719: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 3720: break;;
1.62 paf 3721: * ) break;;
3722: esac
3723: done
3724: else
1.150 moko 3725: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3728: See \`config.log' for more details" "$LINENO" 5; }
3729: fi
3730: rm -f conftest conftest$ac_cv_exeext
3731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3732: $as_echo "$ac_cv_exeext" >&6; }
1.62 paf 3733:
3734: rm -f conftest.$ac_ext
3735: EXEEXT=$ac_cv_exeext
3736: ac_exeext=$EXEEXT
1.150 moko 3737: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738: /* end confdefs.h. */
3739: #include <stdio.h>
3740: int
3741: main ()
3742: {
3743: FILE *f = fopen ("conftest.out", "w");
3744: return ferror (f) || fclose (f) != 0;
3745:
3746: ;
3747: return 0;
3748: }
3749: _ACEOF
3750: ac_clean_files="$ac_clean_files conftest.out"
3751: # Check that the compiler produces executables we can run. If not, either
3752: # the compiler is broken, or we cross compile.
3753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3754: $as_echo_n "checking whether we are cross compiling... " >&6; }
3755: if test "$cross_compiling" != yes; then
3756: { { ac_try="$ac_link"
3757: case "(($ac_try" in
3758: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759: *) ac_try_echo=$ac_try;;
3760: esac
3761: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762: $as_echo "$ac_try_echo"; } >&5
3763: (eval "$ac_link") 2>&5
3764: ac_status=$?
3765: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766: test $ac_status = 0; }
3767: if { ac_try='./conftest$ac_cv_exeext'
3768: { { case "(($ac_try" in
3769: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770: *) ac_try_echo=$ac_try;;
3771: esac
3772: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773: $as_echo "$ac_try_echo"; } >&5
3774: (eval "$ac_try") 2>&5
3775: ac_status=$?
3776: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777: test $ac_status = 0; }; }; then
3778: cross_compiling=no
3779: else
3780: if test "$cross_compiling" = maybe; then
3781: cross_compiling=yes
3782: else
3783: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785: as_fn_error $? "cannot run C++ compiled programs.
3786: If you meant to cross compile, use \`--host'.
3787: See \`config.log' for more details" "$LINENO" 5; }
3788: fi
3789: fi
3790: fi
3791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3792: $as_echo "$cross_compiling" >&6; }
3793:
3794: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3795: ac_clean_files=$ac_clean_files_save
3796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3797: $as_echo_n "checking for suffix of object files... " >&6; }
3798: if ${ac_cv_objext+:} false; then :
3799: $as_echo_n "(cached) " >&6
1.62 paf 3800: else
1.150 moko 3801: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3802: /* end confdefs.h. */
3803:
3804: int
3805: main ()
3806: {
3807:
3808: ;
3809: return 0;
3810: }
3811: _ACEOF
3812: rm -f conftest.o conftest.obj
1.150 moko 3813: if { { ac_try="$ac_compile"
3814: case "(($ac_try" in
3815: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816: *) ac_try_echo=$ac_try;;
3817: esac
3818: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819: $as_echo "$ac_try_echo"; } >&5
3820: (eval "$ac_compile") 2>&5
3821: ac_status=$?
3822: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823: test $ac_status = 0; }; then :
3824: for ac_file in conftest.o conftest.obj conftest.*; do
3825: test -f "$ac_file" || continue;
1.62 paf 3826: case $ac_file in
1.150 moko 3827: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 3828: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3829: break;;
3830: esac
3831: done
3832: else
1.150 moko 3833: $as_echo "$as_me: failed program was:" >&5
1.62 paf 3834: sed 's/^/| /' conftest.$ac_ext >&5
3835:
1.150 moko 3836: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838: as_fn_error $? "cannot compute suffix of object files: cannot compile
3839: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 3840: fi
3841: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3842: fi
1.150 moko 3843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3844: $as_echo "$ac_cv_objext" >&6; }
1.66 paf 3845: OBJEXT=$ac_cv_objext
3846: ac_objext=$OBJEXT
1.150 moko 3847: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3848: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3849: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3850: $as_echo_n "(cached) " >&6
1.62 paf 3851: else
1.150 moko 3852: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3853: /* end confdefs.h. */
1.66 paf 3854:
1.62 paf 3855: int
3856: main ()
3857: {
1.66 paf 3858: #ifndef __GNUC__
3859: choke me
3860: #endif
3861:
1.62 paf 3862: ;
3863: return 0;
3864: }
3865: _ACEOF
1.150 moko 3866: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3867: ac_compiler_gnu=yes
1.62 paf 3868: else
1.150 moko 3869: ac_compiler_gnu=no
1.1 paf 3870: fi
1.150 moko 3871: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3872: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 3873:
3874: fi
1.150 moko 3875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3876: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3877: if test $ac_compiler_gnu = yes; then
3878: GXX=yes
3879: else
3880: GXX=
3881: fi
1.66 paf 3882: ac_test_CXXFLAGS=${CXXFLAGS+set}
3883: ac_save_CXXFLAGS=$CXXFLAGS
1.150 moko 3884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3885: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3886: if ${ac_cv_prog_cxx_g+:} false; then :
3887: $as_echo_n "(cached) " >&6
3888: else
3889: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3890: ac_cxx_werror_flag=yes
3891: ac_cv_prog_cxx_g=no
3892: CXXFLAGS="-g"
3893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3894: /* end confdefs.h. */
1.1 paf 3895:
1.66 paf 3896: int
3897: main ()
3898: {
1.1 paf 3899:
1.66 paf 3900: ;
3901: return 0;
3902: }
1.62 paf 3903: _ACEOF
1.150 moko 3904: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3905: ac_cv_prog_cxx_g=yes
3906: else
1.150 moko 3907: CXXFLAGS=""
3908: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909: /* end confdefs.h. */
1.66 paf 3910:
1.62 paf 3911: int
3912: main ()
3913: {
1.150 moko 3914:
1.62 paf 3915: ;
3916: return 0;
3917: }
3918: _ACEOF
1.150 moko 3919: if ac_fn_cxx_try_compile "$LINENO"; then :
3920:
1.1 paf 3921: else
1.150 moko 3922: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3923: CXXFLAGS="-g"
3924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925: /* end confdefs.h. */
1.62 paf 3926:
3927: int
3928: main ()
3929: {
1.150 moko 3930:
1.62 paf 3931: ;
3932: return 0;
3933: }
3934: _ACEOF
1.150 moko 3935: if ac_fn_cxx_try_compile "$LINENO"; then :
3936: ac_cv_prog_cxx_g=yes
3937: fi
3938: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939: fi
3940: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941: fi
3942: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3944: fi
3945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3946: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3947: if test "$ac_test_CXXFLAGS" = set; then
3948: CXXFLAGS=$ac_save_CXXFLAGS
3949: elif test $ac_cv_prog_cxx_g = yes; then
3950: if test "$GXX" = yes; then
3951: CXXFLAGS="-g -O2"
3952: else
3953: CXXFLAGS="-g"
3954: fi
1.1 paf 3955: else
1.150 moko 3956: if test "$GXX" = yes; then
3957: CXXFLAGS="-O2"
3958: else
3959: CXXFLAGS=
3960: fi
1.1 paf 3961: fi
1.62 paf 3962: ac_ext=c
3963: ac_cpp='$CPP $CPPFLAGS'
3964: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 3967: DEPDIR="${am__leading_dot}deps"
1.62 paf 3968:
1.150 moko 3969: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 3970:
3971:
3972: am_make=${MAKE-make}
3973: cat > confinc << 'END'
1.86 paf 3974: am__doit:
1.150 moko 3975: @echo this is the am__doit target
1.86 paf 3976: .PHONY: am__doit
1.62 paf 3977: END
3978: # If we don't find an include directive, just comment out the code.
1.150 moko 3979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3980: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.62 paf 3981: am__include="#"
3982: am__quote=
3983: _am_result=none
3984: # First try GNU make style include.
3985: echo "include confinc" > confmf
1.187 moko 3986: # Ignore all kinds of additional output from 'make'.
1.150 moko 3987: case `$am_make -s -f confmf 2> /dev/null` in #(
3988: *the\ am__doit\ target*)
3989: am__include=include
3990: am__quote=
3991: _am_result=GNU
3992: ;;
3993: esac
1.62 paf 3994: # Now try BSD make style include.
3995: if test "$am__include" = "#"; then
3996: echo '.include "confinc"' > confmf
1.150 moko 3997: case `$am_make -s -f confmf 2> /dev/null` in #(
3998: *the\ am__doit\ target*)
3999: am__include=.include
4000: am__quote="\""
4001: _am_result=BSD
4002: ;;
4003: esac
1.62 paf 4004: fi
4005:
4006:
1.150 moko 4007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4008: $as_echo "$_am_result" >&6; }
1.62 paf 4009: rm -f confinc confmf
4010:
1.150 moko 4011: # Check whether --enable-dependency-tracking was given.
4012: if test "${enable_dependency_tracking+set}" = set; then :
4013: enableval=$enable_dependency_tracking;
4014: fi
1.62 paf 4015:
4016: if test "x$enable_dependency_tracking" != xno; then
4017: am_depcomp="$ac_aux_dir/depcomp"
4018: AMDEPBACKSLASH='\'
1.187 moko 4019: am__nodep='_no'
1.1 paf 4020: fi
1.150 moko 4021: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 4022: AMDEP_TRUE=
4023: AMDEP_FALSE='#'
4024: else
4025: AMDEP_TRUE='#'
4026: AMDEP_FALSE=
4027: fi
1.1 paf 4028:
4029:
4030:
1.66 paf 4031: depcc="$CXX" am_compiler_list=
1.1 paf 4032:
1.150 moko 4033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4034: $as_echo_n "checking dependency style of $depcc... " >&6; }
4035: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4036: $as_echo_n "(cached) " >&6
1.62 paf 4037: else
4038: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4039: # We make a subdir and do the tests there. Otherwise we can end up
4040: # making bogus files that we don't know about and never remove. For
4041: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4042: # making a dummy file named 'D' -- because '-MD' means "put the output
4043: # in D".
4044: rm -rf conftest.dir
1.62 paf 4045: mkdir conftest.dir
4046: # Copy depcomp to subdir because otherwise we won't find it if we're
4047: # using a relative directory.
4048: cp "$am_depcomp" conftest.dir
4049: cd conftest.dir
1.86 paf 4050: # We will build objects and dependencies in a subdirectory because
4051: # it helps to detect inapplicable dependency modes. For instance
4052: # both Tru64's cc and ICC support -MD to output dependencies as a
4053: # side effect of compilation, but ICC will put the dependencies in
4054: # the current directory while Tru64 will put them in the object
4055: # directory.
4056: mkdir sub
1.1 paf 4057:
1.66 paf 4058: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 4059: if test "$am_compiler_list" = ""; then
4060: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 4061: fi
1.150 moko 4062: am__universal=false
4063: case " $depcc " in #(
4064: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4065: esac
4066:
1.62 paf 4067: for depmode in $am_compiler_list; do
1.86 paf 4068: # Setup a source with many dependencies, because some compilers
4069: # like to wrap large dependency lists on column 80 (with \), and
4070: # we should not choose a depcomp mode which is confused by this.
4071: #
1.62 paf 4072: # We need to recreate these files for each test, as the compiler may
4073: # overwrite some of them when testing with obscure command lines.
4074: # This happens at least with the AIX C compiler.
1.86 paf 4075: : > sub/conftest.c
4076: for i in 1 2 3 4 5 6; do
4077: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4078: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4079: # Solaris 10 /bin/sh.
4080: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4081: done
4082: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4083:
1.187 moko 4084: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4085: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4086: # handle '-M -o', and we need to detect this. Also, some Intel
4087: # versions had trouble with output in subdirs.
1.150 moko 4088: am__obj=sub/conftest.${OBJEXT-o}
4089: am__minus_obj="-o $am__obj"
1.62 paf 4090: case $depmode in
1.150 moko 4091: gcc)
4092: # This depmode causes a compiler race in universal mode.
4093: test "$am__universal" = false || continue
4094: ;;
1.62 paf 4095: nosideeffect)
1.187 moko 4096: # After this tag, mechanisms are not by side-effect, so they'll
4097: # only be used when explicitly requested.
1.62 paf 4098: if test "x$enable_dependency_tracking" = xyes; then
4099: continue
4100: else
4101: break
4102: fi
4103: ;;
1.187 moko 4104: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4105: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4106: # not run yet. These depmodes are late enough in the game, and
4107: # so weak that their functioning should not be impacted.
4108: am__obj=conftest.${OBJEXT-o}
4109: am__minus_obj=
4110: ;;
1.62 paf 4111: none) break ;;
4112: esac
4113: if depmode=$depmode \
1.150 moko 4114: source=sub/conftest.c object=$am__obj \
1.86 paf 4115: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4116: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4117: >/dev/null 2>conftest.err &&
1.150 moko 4118: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4119: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4120: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 4121: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4122: # icc doesn't choke on unknown options, it will just issue warnings
4123: # or remarks (even with -Werror). So we grep stderr for any message
4124: # that says an option was ignored or not supported.
4125: # When given -MP, icc 7.0 and 7.1 complain thusly:
4126: # icc: Command line warning: ignoring option '-M'; no argument required
4127: # The diagnosis changed in icc 8.0:
4128: # icc: Command line remark: option '-MP' not supported
4129: if (grep 'ignoring option' conftest.err ||
4130: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4131: am_cv_CXX_dependencies_compiler_type=$depmode
4132: break
4133: fi
1.66 paf 4134: fi
4135: done
4136:
4137: cd ..
4138: rm -rf conftest.dir
4139: else
4140: am_cv_CXX_dependencies_compiler_type=none
4141: fi
4142:
4143: fi
1.150 moko 4144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4145: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 4146: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4147:
1.150 moko 4148: if
1.66 paf 4149: test "x$enable_dependency_tracking" != xno \
4150: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4151: am__fastdepCXX_TRUE=
4152: am__fastdepCXX_FALSE='#'
4153: else
4154: am__fastdepCXX_TRUE='#'
4155: am__fastdepCXX_FALSE=
4156: fi
4157:
4158:
4159: ac_ext=c
4160: ac_cpp='$CPP $CPPFLAGS'
4161: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164: if test -n "$ac_tool_prefix"; then
4165: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4166: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.150 moko 4167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168: $as_echo_n "checking for $ac_word... " >&6; }
4169: if ${ac_cv_prog_CC+:} false; then :
4170: $as_echo_n "(cached) " >&6
1.66 paf 4171: else
4172: if test -n "$CC"; then
4173: ac_cv_prog_CC="$CC" # Let the user override the test.
4174: else
4175: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176: for as_dir in $PATH
4177: do
4178: IFS=$as_save_IFS
4179: test -z "$as_dir" && as_dir=.
1.150 moko 4180: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4181: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4182: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.150 moko 4183: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4184: break 2
4185: fi
4186: done
1.150 moko 4187: done
4188: IFS=$as_save_IFS
1.66 paf 4189:
4190: fi
4191: fi
4192: CC=$ac_cv_prog_CC
4193: if test -n "$CC"; then
1.150 moko 4194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4195: $as_echo "$CC" >&6; }
1.66 paf 4196: else
1.150 moko 4197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198: $as_echo "no" >&6; }
1.66 paf 4199: fi
4200:
1.150 moko 4201:
1.66 paf 4202: fi
4203: if test -z "$ac_cv_prog_CC"; then
4204: ac_ct_CC=$CC
4205: # Extract the first word of "gcc", so it can be a program name with args.
4206: set dummy gcc; ac_word=$2
1.150 moko 4207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208: $as_echo_n "checking for $ac_word... " >&6; }
4209: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4210: $as_echo_n "(cached) " >&6
1.66 paf 4211: else
4212: if test -n "$ac_ct_CC"; then
4213: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4214: else
4215: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216: for as_dir in $PATH
4217: do
4218: IFS=$as_save_IFS
4219: test -z "$as_dir" && as_dir=.
1.150 moko 4220: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4221: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4222: ac_cv_prog_ac_ct_CC="gcc"
1.150 moko 4223: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4224: break 2
4225: fi
4226: done
1.150 moko 4227: done
4228: IFS=$as_save_IFS
1.66 paf 4229:
4230: fi
4231: fi
4232: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4233: if test -n "$ac_ct_CC"; then
1.150 moko 4234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4235: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4236: else
1.150 moko 4237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238: $as_echo "no" >&6; }
1.62 paf 4239: fi
4240:
1.150 moko 4241: if test "x$ac_ct_CC" = x; then
4242: CC=""
4243: else
4244: case $cross_compiling:$ac_tool_warned in
4245: yes:)
4246: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248: ac_tool_warned=yes ;;
4249: esac
4250: CC=$ac_ct_CC
4251: fi
1.66 paf 4252: else
4253: CC="$ac_cv_prog_CC"
1.1 paf 4254: fi
1.62 paf 4255:
1.66 paf 4256: if test -z "$CC"; then
1.150 moko 4257: if test -n "$ac_tool_prefix"; then
4258: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 4259: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.150 moko 4260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261: $as_echo_n "checking for $ac_word... " >&6; }
4262: if ${ac_cv_prog_CC+:} false; then :
4263: $as_echo_n "(cached) " >&6
1.66 paf 4264: else
4265: if test -n "$CC"; then
4266: ac_cv_prog_CC="$CC" # Let the user override the test.
4267: else
4268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269: for as_dir in $PATH
4270: do
4271: IFS=$as_save_IFS
4272: test -z "$as_dir" && as_dir=.
1.150 moko 4273: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4274: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4275: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.150 moko 4276: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4277: break 2
4278: fi
4279: done
1.150 moko 4280: done
4281: IFS=$as_save_IFS
1.62 paf 4282:
1.66 paf 4283: fi
4284: fi
4285: CC=$ac_cv_prog_CC
4286: if test -n "$CC"; then
1.150 moko 4287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288: $as_echo "$CC" >&6; }
1.62 paf 4289: else
1.150 moko 4290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291: $as_echo "no" >&6; }
1.1 paf 4292: fi
4293:
1.150 moko 4294:
1.66 paf 4295: fi
1.1 paf 4296: fi
1.66 paf 4297: if test -z "$CC"; then
4298: # Extract the first word of "cc", so it can be a program name with args.
4299: set dummy cc; ac_word=$2
1.150 moko 4300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301: $as_echo_n "checking for $ac_word... " >&6; }
4302: if ${ac_cv_prog_CC+:} false; then :
4303: $as_echo_n "(cached) " >&6
1.66 paf 4304: else
4305: if test -n "$CC"; then
4306: ac_cv_prog_CC="$CC" # Let the user override the test.
4307: else
4308: ac_prog_rejected=no
4309: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310: for as_dir in $PATH
4311: do
4312: IFS=$as_save_IFS
4313: test -z "$as_dir" && as_dir=.
1.150 moko 4314: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4315: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4316: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4317: ac_prog_rejected=yes
4318: continue
4319: fi
4320: ac_cv_prog_CC="cc"
1.150 moko 4321: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4322: break 2
4323: fi
4324: done
1.150 moko 4325: done
4326: IFS=$as_save_IFS
1.62 paf 4327:
1.66 paf 4328: if test $ac_prog_rejected = yes; then
4329: # We found a bogon in the path, so make sure we never use it.
4330: set dummy $ac_cv_prog_CC
4331: shift
4332: if test $# != 0; then
4333: # We chose a different compiler from the bogus one.
4334: # However, it has the same basename, so the bogon will be chosen
4335: # first if we set CC to just the basename; use the full file name.
4336: shift
4337: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4338: fi
4339: fi
4340: fi
4341: fi
4342: CC=$ac_cv_prog_CC
4343: if test -n "$CC"; then
1.150 moko 4344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345: $as_echo "$CC" >&6; }
1.66 paf 4346: else
1.150 moko 4347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348: $as_echo "no" >&6; }
1.1 paf 4349: fi
4350:
1.150 moko 4351:
1.66 paf 4352: fi
4353: if test -z "$CC"; then
4354: if test -n "$ac_tool_prefix"; then
1.150 moko 4355: for ac_prog in cl.exe
1.62 paf 4356: do
4357: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 4359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360: $as_echo_n "checking for $ac_word... " >&6; }
4361: if ${ac_cv_prog_CC+:} false; then :
4362: $as_echo_n "(cached) " >&6
1.62 paf 4363: else
1.66 paf 4364: if test -n "$CC"; then
4365: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 4366: else
4367: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368: for as_dir in $PATH
4369: do
4370: IFS=$as_save_IFS
4371: test -z "$as_dir" && as_dir=.
1.150 moko 4372: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4373: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4374: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.150 moko 4375: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4376: break 2
4377: fi
4378: done
1.150 moko 4379: done
4380: IFS=$as_save_IFS
1.1 paf 4381:
1.62 paf 4382: fi
4383: fi
1.66 paf 4384: CC=$ac_cv_prog_CC
4385: if test -n "$CC"; then
1.150 moko 4386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387: $as_echo "$CC" >&6; }
1.1 paf 4388: else
1.150 moko 4389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390: $as_echo "no" >&6; }
1.1 paf 4391: fi
4392:
1.150 moko 4393:
1.66 paf 4394: test -n "$CC" && break
1.62 paf 4395: done
4396: fi
1.66 paf 4397: if test -z "$CC"; then
4398: ac_ct_CC=$CC
1.150 moko 4399: for ac_prog in cl.exe
1.62 paf 4400: do
4401: # Extract the first word of "$ac_prog", so it can be a program name with args.
4402: set dummy $ac_prog; ac_word=$2
1.150 moko 4403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404: $as_echo_n "checking for $ac_word... " >&6; }
4405: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4406: $as_echo_n "(cached) " >&6
1.62 paf 4407: else
1.66 paf 4408: if test -n "$ac_ct_CC"; then
4409: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 4410: else
1.62 paf 4411: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412: for as_dir in $PATH
4413: do
4414: IFS=$as_save_IFS
4415: test -z "$as_dir" && as_dir=.
1.150 moko 4416: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4417: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4418: ac_cv_prog_ac_ct_CC="$ac_prog"
1.150 moko 4419: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4420: break 2
4421: fi
4422: done
1.150 moko 4423: done
4424: IFS=$as_save_IFS
1.62 paf 4425:
4426: fi
4427: fi
1.66 paf 4428: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4429: if test -n "$ac_ct_CC"; then
1.150 moko 4430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4431: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4432: else
1.150 moko 4433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434: $as_echo "no" >&6; }
1.1 paf 4435: fi
4436:
1.150 moko 4437:
1.66 paf 4438: test -n "$ac_ct_CC" && break
4439: done
4440:
1.150 moko 4441: if test "x$ac_ct_CC" = x; then
4442: CC=""
4443: else
4444: case $cross_compiling:$ac_tool_warned in
4445: yes:)
4446: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448: ac_tool_warned=yes ;;
4449: esac
4450: CC=$ac_ct_CC
4451: fi
1.66 paf 4452: fi
4453:
4454: fi
1.62 paf 4455:
1.1 paf 4456:
1.150 moko 4457: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459: as_fn_error $? "no acceptable C compiler found in \$PATH
4460: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 4461:
4462: # Provide some information about the compiler.
1.150 moko 4463: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4464: set X $ac_compile
4465: ac_compiler=$2
4466: for ac_option in --version -v -V -qversion; do
4467: { { ac_try="$ac_compiler $ac_option >&5"
4468: case "(($ac_try" in
4469: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470: *) ac_try_echo=$ac_try;;
4471: esac
4472: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473: $as_echo "$ac_try_echo"; } >&5
4474: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 4475: ac_status=$?
1.150 moko 4476: if test -s conftest.err; then
4477: sed '10a\
4478: ... rest of stderr output deleted ...
4479: 10q' conftest.err >conftest.er1
4480: cat conftest.er1 >&5
4481: fi
4482: rm -f conftest.er1 conftest.err
4483: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484: test $ac_status = 0; }
4485: done
4486:
4487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4488: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4489: if ${ac_cv_c_compiler_gnu+:} false; then :
4490: $as_echo_n "(cached) " >&6
1.62 paf 4491: else
1.150 moko 4492: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4493: /* end confdefs.h. */
4494:
4495: int
4496: main ()
4497: {
4498: #ifndef __GNUC__
4499: choke me
4500: #endif
4501:
4502: ;
4503: return 0;
4504: }
4505: _ACEOF
1.150 moko 4506: if ac_fn_c_try_compile "$LINENO"; then :
1.62 paf 4507: ac_compiler_gnu=yes
4508: else
1.150 moko 4509: ac_compiler_gnu=no
1.62 paf 4510: fi
1.150 moko 4511: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 4512: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 4513:
4514: fi
1.150 moko 4515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4516: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4517: if test $ac_compiler_gnu = yes; then
4518: GCC=yes
4519: else
4520: GCC=
4521: fi
1.66 paf 4522: ac_test_CFLAGS=${CFLAGS+set}
4523: ac_save_CFLAGS=$CFLAGS
1.150 moko 4524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4526: if ${ac_cv_prog_cc_g+:} false; then :
4527: $as_echo_n "(cached) " >&6
4528: else
4529: ac_save_c_werror_flag=$ac_c_werror_flag
4530: ac_c_werror_flag=yes
4531: ac_cv_prog_cc_g=no
4532: CFLAGS="-g"
4533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4534: /* end confdefs.h. */
4535:
4536: int
4537: main ()
4538: {
4539:
4540: ;
4541: return 0;
4542: }
4543: _ACEOF
1.150 moko 4544: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 4545: ac_cv_prog_cc_g=yes
1.62 paf 4546: else
1.150 moko 4547: CFLAGS=""
4548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549: /* end confdefs.h. */
4550:
4551: int
4552: main ()
4553: {
1.62 paf 4554:
1.150 moko 4555: ;
4556: return 0;
4557: }
4558: _ACEOF
4559: if ac_fn_c_try_compile "$LINENO"; then :
4560:
4561: else
4562: ac_c_werror_flag=$ac_save_c_werror_flag
4563: CFLAGS="-g"
4564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565: /* end confdefs.h. */
4566:
4567: int
4568: main ()
4569: {
4570:
4571: ;
4572: return 0;
4573: }
4574: _ACEOF
4575: if ac_fn_c_try_compile "$LINENO"; then :
4576: ac_cv_prog_cc_g=yes
4577: fi
4578: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4579: fi
1.150 moko 4580: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4581: fi
1.150 moko 4582: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583: ac_c_werror_flag=$ac_save_c_werror_flag
4584: fi
4585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4586: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.66 paf 4587: if test "$ac_test_CFLAGS" = set; then
4588: CFLAGS=$ac_save_CFLAGS
4589: elif test $ac_cv_prog_cc_g = yes; then
4590: if test "$GCC" = yes; then
4591: CFLAGS="-g -O2"
1.1 paf 4592: else
1.66 paf 4593: CFLAGS="-g"
1.1 paf 4594: fi
4595: else
1.66 paf 4596: if test "$GCC" = yes; then
4597: CFLAGS="-O2"
1.1 paf 4598: else
1.66 paf 4599: CFLAGS=
1.1 paf 4600: fi
4601: fi
1.150 moko 4602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4603: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4604: if ${ac_cv_prog_cc_c89+:} false; then :
4605: $as_echo_n "(cached) " >&6
1.66 paf 4606: else
1.150 moko 4607: ac_cv_prog_cc_c89=no
1.66 paf 4608: ac_save_CC=$CC
1.150 moko 4609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4610: /* end confdefs.h. */
4611: #include <stdarg.h>
4612: #include <stdio.h>
1.166 moko 4613: struct stat;
1.66 paf 4614: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4615: struct buf { int x; };
4616: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4617: static char *e (p, i)
4618: char **p;
4619: int i;
4620: {
4621: return p[i];
4622: }
4623: static char *f (char * (*g) (char **, int), char **p, ...)
4624: {
4625: char *s;
4626: va_list v;
4627: va_start (v,p);
4628: s = g (p, va_arg (v,int));
4629: va_end (v);
4630: return s;
4631: }
1.86 paf 4632:
4633: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4634: function prototypes and stuff, but not '\xHH' hex character constants.
4635: These don't provoke an error unfortunately, instead are silently treated
1.150 moko 4636: as 'x'. The following induces an error, until -std is added to get
1.86 paf 4637: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4638: array size at least. It's necessary to write '\x00'==0 to get something
1.150 moko 4639: that's true only with -std. */
1.86 paf 4640: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4641:
1.150 moko 4642: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4643: inside strings and character constants. */
4644: #define FOO(x) 'x'
4645: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4646:
1.66 paf 4647: int test (int i, double x);
4648: struct s1 {int (*f) (int a);};
4649: struct s2 {int (*f) (double a);};
4650: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4651: int argc;
4652: char **argv;
4653: int
4654: main ()
4655: {
4656: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4657: ;
4658: return 0;
4659: }
4660: _ACEOF
1.150 moko 4661: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4662: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 4663: do
4664: CC="$ac_save_CC $ac_arg"
1.150 moko 4665: if ac_fn_c_try_compile "$LINENO"; then :
4666: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 4667: fi
1.150 moko 4668: rm -f core conftest.err conftest.$ac_objext
4669: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 4670: done
1.150 moko 4671: rm -f conftest.$ac_ext
1.66 paf 4672: CC=$ac_save_CC
4673:
4674: fi
1.150 moko 4675: # AC_CACHE_VAL
4676: case "x$ac_cv_prog_cc_c89" in
4677: x)
4678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4679: $as_echo "none needed" >&6; } ;;
4680: xno)
4681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4682: $as_echo "unsupported" >&6; } ;;
1.66 paf 4683: *)
1.150 moko 4684: CC="$CC $ac_cv_prog_cc_c89"
4685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4686: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.66 paf 4687: esac
1.150 moko 4688: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.62 paf 4689:
4690: fi
1.66 paf 4691:
1.62 paf 4692: ac_ext=c
4693: ac_cpp='$CPP $CPPFLAGS'
4694: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697:
1.187 moko 4698: ac_ext=c
4699: ac_cpp='$CPP $CPPFLAGS'
4700: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4704: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4705: if ${am_cv_prog_cc_c_o+:} false; then :
4706: $as_echo_n "(cached) " >&6
4707: else
4708: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709: /* end confdefs.h. */
4710:
4711: int
4712: main ()
4713: {
4714:
4715: ;
4716: return 0;
4717: }
4718: _ACEOF
4719: # Make sure it works both with $CC and with simple cc.
4720: # Following AC_PROG_CC_C_O, we do the test twice because some
4721: # compilers refuse to overwrite an existing .o file with -o,
4722: # though they will create one.
4723: am_cv_prog_cc_c_o=yes
4724: for am_i in 1 2; do
4725: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4726: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4727: ac_status=$?
4728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729: (exit $ac_status); } \
4730: && test -f conftest2.$ac_objext; then
4731: : OK
4732: else
4733: am_cv_prog_cc_c_o=no
4734: break
4735: fi
4736: done
4737: rm -f core conftest*
4738: unset am_i
4739: fi
4740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4741: $as_echo "$am_cv_prog_cc_c_o" >&6; }
4742: if test "$am_cv_prog_cc_c_o" != yes; then
4743: # Losing compiler, so override with the script.
4744: # FIXME: It is wrong to rewrite CC.
4745: # But if we don't then we get into trouble of one sort or another.
4746: # A longer-term fix would be to have automake use am__CC in this case,
4747: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4748: CC="$am_aux_dir/compile $CC"
4749: fi
4750: ac_ext=c
4751: ac_cpp='$CPP $CPPFLAGS'
4752: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755:
4756:
1.66 paf 4757: depcc="$CC" am_compiler_list=
1.62 paf 4758:
1.150 moko 4759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760: $as_echo_n "checking dependency style of $depcc... " >&6; }
4761: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4762: $as_echo_n "(cached) " >&6
1.62 paf 4763: else
4764: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4765: # We make a subdir and do the tests there. Otherwise we can end up
4766: # making bogus files that we don't know about and never remove. For
4767: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4768: # making a dummy file named 'D' -- because '-MD' means "put the output
4769: # in D".
4770: rm -rf conftest.dir
1.62 paf 4771: mkdir conftest.dir
4772: # Copy depcomp to subdir because otherwise we won't find it if we're
4773: # using a relative directory.
4774: cp "$am_depcomp" conftest.dir
4775: cd conftest.dir
1.86 paf 4776: # We will build objects and dependencies in a subdirectory because
4777: # it helps to detect inapplicable dependency modes. For instance
4778: # both Tru64's cc and ICC support -MD to output dependencies as a
4779: # side effect of compilation, but ICC will put the dependencies in
4780: # the current directory while Tru64 will put them in the object
4781: # directory.
4782: mkdir sub
1.62 paf 4783:
1.66 paf 4784: am_cv_CC_dependencies_compiler_type=none
1.62 paf 4785: if test "$am_compiler_list" = ""; then
4786: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4787: fi
1.150 moko 4788: am__universal=false
4789: case " $depcc " in #(
4790: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4791: esac
4792:
1.62 paf 4793: for depmode in $am_compiler_list; do
1.86 paf 4794: # Setup a source with many dependencies, because some compilers
4795: # like to wrap large dependency lists on column 80 (with \), and
4796: # we should not choose a depcomp mode which is confused by this.
4797: #
1.62 paf 4798: # We need to recreate these files for each test, as the compiler may
4799: # overwrite some of them when testing with obscure command lines.
4800: # This happens at least with the AIX C compiler.
1.86 paf 4801: : > sub/conftest.c
4802: for i in 1 2 3 4 5 6; do
4803: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4804: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4805: # Solaris 10 /bin/sh.
4806: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4807: done
4808: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4809:
1.187 moko 4810: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4811: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4812: # handle '-M -o', and we need to detect this. Also, some Intel
4813: # versions had trouble with output in subdirs.
1.150 moko 4814: am__obj=sub/conftest.${OBJEXT-o}
4815: am__minus_obj="-o $am__obj"
1.62 paf 4816: case $depmode in
1.150 moko 4817: gcc)
4818: # This depmode causes a compiler race in universal mode.
4819: test "$am__universal" = false || continue
4820: ;;
1.62 paf 4821: nosideeffect)
1.187 moko 4822: # After this tag, mechanisms are not by side-effect, so they'll
4823: # only be used when explicitly requested.
1.62 paf 4824: if test "x$enable_dependency_tracking" = xyes; then
4825: continue
4826: else
4827: break
4828: fi
4829: ;;
1.187 moko 4830: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4831: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4832: # not run yet. These depmodes are late enough in the game, and
4833: # so weak that their functioning should not be impacted.
4834: am__obj=conftest.${OBJEXT-o}
4835: am__minus_obj=
4836: ;;
1.62 paf 4837: none) break ;;
4838: esac
1.66 paf 4839: if depmode=$depmode \
1.150 moko 4840: source=sub/conftest.c object=$am__obj \
1.86 paf 4841: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4842: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4843: >/dev/null 2>conftest.err &&
1.150 moko 4844: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4845: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4846: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 4847: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4848: # icc doesn't choke on unknown options, it will just issue warnings
4849: # or remarks (even with -Werror). So we grep stderr for any message
4850: # that says an option was ignored or not supported.
4851: # When given -MP, icc 7.0 and 7.1 complain thusly:
4852: # icc: Command line warning: ignoring option '-M'; no argument required
4853: # The diagnosis changed in icc 8.0:
4854: # icc: Command line remark: option '-MP' not supported
4855: if (grep 'ignoring option' conftest.err ||
4856: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4857: am_cv_CC_dependencies_compiler_type=$depmode
4858: break
4859: fi
1.66 paf 4860: fi
4861: done
4862:
4863: cd ..
4864: rm -rf conftest.dir
4865: else
4866: am_cv_CC_dependencies_compiler_type=none
4867: fi
4868:
4869: fi
1.150 moko 4870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4871: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 4872: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4873:
1.150 moko 4874: if
1.66 paf 4875: test "x$enable_dependency_tracking" != xno \
4876: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4877: am__fastdepCC_TRUE=
4878: am__fastdepCC_FALSE='#'
4879: else
4880: am__fastdepCC_TRUE='#'
4881: am__fastdepCC_FALSE=
4882: fi
4883:
4884:
1.128 moko 4885:
1.66 paf 4886: ac_ext=c
4887: ac_cpp='$CPP $CPPFLAGS'
4888: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891:
1.67 paf 4892:
1.62 paf 4893:
1.150 moko 4894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
4895: $as_echo_n "checking for dynamic-link library extension... " >&6; }
1.128 moko 4896: case "$host_os" in
1.158 moko 4897: *cygwin* ) dll_extension=dll;;
4898: * ) dll_extension=so
1.66 paf 4899: esac
1.150 moko 4900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
4901: $as_echo "$dll_extension" >&6; }
1.1 paf 4902:
1.71 paf 4903:
4904:
4905:
1.150 moko 4906: # Check whether --with-build-warnings was given.
4907: if test "${with_build_warnings+set}" = set; then :
4908: withval=$with_build_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
4909: $as_echo "$as_me: WARNING: enabling compiler warnings" >&2;}
1.183 moko 4910: CXXFLAGS="$CXXFLAGS -Wextra -Wall -Wno-parentheses"
1.71 paf 4911:
1.150 moko 4912: fi
4913:
1.1 paf 4914:
4915:
1.182 moko 4916: # Check whether --with-coverage was given.
4917: if test "${with_coverage+set}" = set; then :
4918: withval=$with_coverage; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
4919: $as_echo "$as_me: WARNING: enabling gcov support" >&2;}
4920: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
4921: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
4922: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
4923: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
4924: LDFLAGS="$LDFLAGS -lgcov"
4925:
4926: fi
4927:
4928:
4929:
4930: # Check whether --with-profiler was given.
4931: if test "${with_profiler+set}" = set; then :
4932: withval=$with_profiler; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
4933: $as_echo "$as_me: WARNING: enabling gprof support" >&2;}
1.193 moko 4934: CFLAGS="$CFLAGS -O0 -pg -g"
4935: CXXFLAGS="$CXXFLAGS -O0 -pg -g"
1.182 moko 4936:
4937: fi
4938:
4939:
4940:
1.150 moko 4941: # Check whether --with-assertions was given.
4942: if test "${with_assertions+set}" = set; then :
4943: withval=$with_assertions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
4944: $as_echo "$as_me: WARNING: enabling assertions" >&2;}
1.67 paf 4945:
4946: else
4947:
1.150 moko 4948: $as_echo "#define NDEBUG /**/" >>confdefs.h
4949:
1.67 paf 4950:
1.150 moko 4951: fi
1.67 paf 4952:
4953:
1.94 misha 4954:
1.150 moko 4955: # Check whether --with-sjlj-exceptions was given.
4956: if test "${with_sjlj_exceptions+set}" = set; then :
4957: withval=$with_sjlj_exceptions;
4958: $as_echo "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 4959:
4960:
1.150 moko 4961: fi
1.128 moko 4962:
4963:
1.62 paf 4964:
1.150 moko 4965: # Check whether --enable-safe-mode was given.
4966: if test "${enable_safe_mode+set}" = set; then :
4967: enableval=$enable_safe_mode;
1.67 paf 4968: SAFE_MODE=$enableval
1.60 paf 4969:
1.1 paf 4970:
1.150 moko 4971: fi
4972:
1.128 moko 4973:
1.60 paf 4974: if test "$SAFE_MODE" = "no"; then
1.150 moko 4975: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
4976: $as_echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 4977: else
1.62 paf 4978:
1.150 moko 4979: $as_echo "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 4980:
4981: fi
4982:
1.94 misha 4983:
1.150 moko 4984: # Check whether --enable-execs was given.
4985: if test "${enable_execs+set}" = set; then :
4986: enableval=$enable_execs;
1.13 paf 4987: if test "$enableval" = "no"; then
1.150 moko 4988: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
4989: $as_echo "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 4990:
1.150 moko 4991: $as_echo "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 4992:
4993: fi
4994:
4995:
1.150 moko 4996: fi
1.13 paf 4997:
1.60 paf 4998:
1.94 misha 4999:
1.150 moko 5000: # Check whether --enable-stringstream was given.
5001: if test "${enable_stringstream+set}" = set; then :
5002: enableval=$enable_stringstream;
1.94 misha 5003: if test "$enableval" = "no"; then
1.150 moko 5004: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
5005: $as_echo "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 5006:
1.150 moko 5007: $as_echo "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 5008:
5009: fi
5010:
5011:
1.150 moko 5012: fi
1.94 misha 5013:
5014:
1.62 paf 5015:
1.17 paf 5016:
1.150 moko 5017: # Check whether --with-gc was given.
5018: if test "${with_gc+set}" = set; then :
5019: withval=$with_gc;
1.17 paf 5020:
1.142 moko 5021: GC=$withval
5022: GC_LIBS="$GC/libgc.la"
5023:
5024: if test -f $GC_LIBS; then
5025: GC_OK="yes"
5026: else
5027: GC_LIBS="-L$GC -lgc"
5028: fi
1.62 paf 5029:
1.151 moko 5030: if test "$GC" = "yes"; then
5031: GC=""
5032: GC_LIBS="-lgc"
5033: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
5034: $as_echo "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
5035: fi
5036:
1.142 moko 5037: else
1.17 paf 5038:
1.142 moko 5039: GC_LIBS="-lgc"
1.150 moko 5040: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
5041: $as_echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
5042:
5043: fi
1.17 paf 5044:
5045:
1.142 moko 5046: if test -z "$GC_OK"; then
1.150 moko 5047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
5048: $as_echo_n "checking for libgc... " >&6; }
1.138 moko 5049: SAVE_LIBS=$LIBS
5050: LIBS="$LIBS $GC_LIBS"
1.128 moko 5051:
1.150 moko 5052: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 5053: /* end confdefs.h. */
1.142 moko 5054: extern int GC_dont_gc;
1.67 paf 5055: int
5056: main ()
5057: {
1.142 moko 5058: GC_dont_gc=0;
1.67 paf 5059: ;
5060: return 0;
5061: }
5062: _ACEOF
1.150 moko 5063: if ac_fn_c_try_link "$LINENO"; then :
5064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5065: $as_echo "yes" >&6; }
1.67 paf 5066:
5067: else
1.150 moko 5068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069: $as_echo "no" >&6; }
1.142 moko 5070: if test -z "$GC"; then
1.151 moko 5071: as_fn_error $? "please specify path to libgc: --with-gc=D" "$LINENO" 5
1.142 moko 5072: else
1.150 moko 5073: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 5074: fi
1.67 paf 5075:
5076: fi
1.150 moko 5077: rm -f core conftest.err conftest.$ac_objext \
5078: conftest$ac_exeext conftest.$ac_ext
1.138 moko 5079: LIBS=$SAVE_LIBS
5080: fi
1.67 paf 5081:
5082:
1.1 paf 5083:
1.15 paf 5084:
1.142 moko 5085:
1.150 moko 5086: # Check whether --with-pcre was given.
5087: if test "${with_pcre+set}" = set; then :
5088: withval=$with_pcre;
1.100 misha 5089: PCRE=$withval
1.142 moko 5090: PCRE_INCLUDES="-I$PCRE/include"
5091: PCRE_LIBS="$PCRE/lib/libpcre.la"
1.100 misha 5092:
1.142 moko 5093: if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
5094: PCRE_OK="yes"
5095: else
1.191 moko 5096: PCRE_LIBS="-L$PCRE/lib -lpcre"
1.100 misha 5097: fi
5098:
1.151 moko 5099: if test "$PCRE" = "yes"; then
5100: PCRE=""
5101: PCRE_LIBS="-lpcre"
5102: PCRE_INCLUDES=""
5103: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
5104: $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
5105: fi
1.142 moko 5106:
5107: else
5108:
5109: PCRE_LIBS="-lpcre"
1.149 moko 5110: PCRE_INCLUDES=""
1.150 moko 5111: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
5112: $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
5113:
5114: fi
1.100 misha 5115:
5116:
1.142 moko 5117: if test -z "$PCRE_OK"; then
1.150 moko 5118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prce" >&5
5119: $as_echo_n "checking for prce... " >&6; }
1.142 moko 5120: SAVE_LIBS=$LIBS
5121: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.150 moko 5122: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5123: /* end confdefs.h. */
5124: #include <pcre.h>
5125: int
5126: main ()
5127: {
5128: const char *v=pcre_version();
5129: ;
5130: return 0;
5131: }
5132: _ACEOF
1.150 moko 5133: if ac_fn_c_try_link "$LINENO"; then :
5134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5135: $as_echo "yes" >&6; }
1.142 moko 5136:
5137: else
1.150 moko 5138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139: $as_echo "no" >&6; }
1.142 moko 5140: if test -z "$PCRE"; then
1.151 moko 5141: as_fn_error $? "please specify path to PCRE: --with-pcre=D" "$LINENO" 5
1.142 moko 5142: else
1.150 moko 5143: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 5144: fi
5145:
5146: fi
1.150 moko 5147: rm -f core conftest.err conftest.$ac_objext \
5148: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5149: LIBS=$SAVE_LIBS
5150: fi
1.100 misha 5151:
5152:
5153:
5154:
1.66 paf 5155:
5156:
1.150 moko 5157: # Check whether --with-xml was given.
5158: if test "${with_xml+set}" = set; then :
5159: withval=$with_xml;
1.66 paf 5160:
1.142 moko 5161: XML=$withval
5162: XML_LIBS="-lxml2 -lxslt -lexslt"
5163:
5164: if test -z "$XML" -o "$XML" = "yes"; then
5165: XML=""
5166: XML_INCLUDES="-I/usr/include/libxml2"
1.150 moko 5167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
5168: $as_echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 5169: else
5170: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.193 moko 5171: XML_LIBS="-L$XML/lib $XML_LIBS"
1.67 paf 5172:
1.142 moko 5173: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
5174: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
5175: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
5176: XML_OK="yes"
5177: fi
1.67 paf 5178: fi
1.66 paf 5179:
1.142 moko 5180: if test -z "$XML_OK"; then
1.150 moko 5181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
5182: $as_echo_n "checking for xml... " >&6; }
1.142 moko 5183: SAVE_LIBS=$LIBS
5184: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.150 moko 5185: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5186: /* end confdefs.h. */
5187: #include <libxslt/xslt.h>
5188: int
5189: main ()
5190: {
5191: const char *v=xsltEngineVersion;
5192: ;
5193: return 0;
5194: }
5195: _ACEOF
1.150 moko 5196: if ac_fn_c_try_link "$LINENO"; then :
5197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5198: $as_echo "yes" >&6; }
1.142 moko 5199:
5200: else
1.150 moko 5201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202: $as_echo "no" >&6; }
1.142 moko 5203: if test -z "$XML"; then
1.151 moko 5204: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=D" "$LINENO" 5
1.142 moko 5205: else
1.150 moko 5206: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 5207: fi
5208:
5209: fi
1.150 moko 5210: rm -f core conftest.err conftest.$ac_objext \
5211: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5212: LIBS=$SAVE_LIBS
1.67 paf 5213: fi
1.66 paf 5214:
1.150 moko 5215: $as_echo "#define XML /**/" >>confdefs.h
5216:
1.66 paf 5217:
1.150 moko 5218: fi
1.66 paf 5219:
1.90 paf 5220:
1.66 paf 5221:
5222:
5223:
5224:
1.90 paf 5225:
1.154 moko 5226: # Check whether --with-mailreceive was given.
5227: if test "${with_mailreceive+set}" = set; then :
5228: withval=$with_mailreceive;
5229: MIME=$withval
1.155 moko 5230: GLIB="glib-2.0"
1.154 moko 5231: GMIME="gmime-2.4"
5232:
5233: if test -z "$MIME" -o "$MIME" = "yes"; then
5234: MIME=""
5235: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5236: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
1.194 ! moko 5237: if test -z "$MIME_LIBS"; then
! 5238: GMIME="gmime-3.0"
! 5239: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
! 5240: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
! 5241: fi
1.154 moko 5242: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
5243: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
5244: else
1.155 moko 5245: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 5246: MIME_LIBS="-l$GMIME"
5247: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
5248: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 5249: if test -f $MIME/lib/lib$GLIB.la; then
5250: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
5251: else
5252: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
5253: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
5254: fi
1.154 moko 5255: MIME_OK="yes"
5256: fi
1.67 paf 5257: fi
1.66 paf 5258:
1.154 moko 5259: if test -z "$MIME_OK"; then
5260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
5261: $as_echo_n "checking for mime... " >&6; }
5262: SAVE_LIBS=$LIBS
5263: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
5264: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265: /* end confdefs.h. */
5266: #include <gmime/gmime.h>
5267: int
5268: main ()
5269: {
5270: guint v=gmime_major_version;
5271: ;
5272: return 0;
5273: }
5274: _ACEOF
5275: if ac_fn_c_try_link "$LINENO"; then :
5276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277: $as_echo "yes" >&6; }
1.66 paf 5278:
1.154 moko 5279: else
5280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281: $as_echo "no" >&6; }
5282: if test -z "$MIME"; then
5283: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=D" "$LINENO" 5
5284: else
5285: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 5286: fi
1.66 paf 5287:
1.150 moko 5288: fi
1.154 moko 5289: rm -f core conftest.err conftest.$ac_objext \
5290: conftest$ac_exeext conftest.$ac_ext
5291: LIBS=$SAVE_LIBS
1.67 paf 5292: fi
1.66 paf 5293:
1.150 moko 5294: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 5295:
5296:
1.154 moko 5297: fi
1.66 paf 5298:
5299:
5300:
5301:
5302:
5303:
5304:
1.150 moko 5305: # Check whether --with-sendmail was given.
5306: if test "${with_sendmail+set}" = set; then :
5307: withval=$with_sendmail;
1.66 paf 5308: cat >>confdefs.h <<_ACEOF
5309: #define PA_FORCED_SENDMAIL "$withval"
5310: _ACEOF
5311:
5312:
1.150 moko 5313: fi
1.66 paf 5314:
5315:
5316:
1.122 moko 5317:
1.150 moko 5318: # Check whether --with-apache was given.
5319: if test "${with_apache+set}" = set; then :
5320: withval=$with_apache;
1.122 moko 5321: APXS=$withval
5322:
5323: if test -z "$APXS" -o "$APXS" = "yes"; then
5324: APXS=`which apxs 2>/dev/null`
1.142 moko 5325: if test -z "$APXS"; then
5326: APXS=`which apxs2 2>/dev/null`
5327: fi
5328: fi
1.122 moko 5329:
5330: APACHE=`$APXS -q TARGET 2>/dev/null`
5331:
5332: if test -z "$APACHE"; then
1.150 moko 5333: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5334: fi
1.7 paf 5335:
1.122 moko 5336: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5337: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5338: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5339: APACHE_CFLAGS=`$APXS -q CFLAGS`
5340:
1.150 moko 5341: fi
1.7 paf 5342:
5343:
1.62 paf 5344:
1.122 moko 5345:
1.150 moko 5346: if test -n "$APACHE"; then
1.122 moko 5347: COMPILE_APACHE_MODULE_TRUE=
5348: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5349: else
1.122 moko 5350: COMPILE_APACHE_MODULE_TRUE='#'
5351: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5352: fi
1.1 paf 5353:
5354:
5355:
1.62 paf 5356:
5357:
1.7 paf 5358:
1.1 paf 5359:
5360:
5361:
1.62 paf 5362:
1.128 moko 5363: case `pwd` in
5364: *\ * | *\ *)
1.150 moko 5365: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5366: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5367: esac
5368:
5369:
5370:
5371: macro_version='2.4.2'
5372: macro_revision='1.3337'
5373:
5374:
5375:
5376:
5377:
5378:
5379:
5380:
5381:
5382:
5383:
5384:
5385:
5386: ltmain="$ac_aux_dir/ltmain.sh"
5387:
5388: # Backslashify metacharacters that are still active within
5389: # double-quoted strings.
5390: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5391:
1.128 moko 5392: # Same as above, but do not quote variable references.
5393: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5394:
1.128 moko 5395: # Sed substitution to delay expansion of an escaped shell variable in a
5396: # double_quote_subst'ed string.
5397: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5398:
1.128 moko 5399: # Sed substitution to delay expansion of an escaped single quote.
5400: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5401:
1.128 moko 5402: # Sed substitution to avoid accidental globbing in evaled expressions
5403: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5404:
1.128 moko 5405: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5406: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5407: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5408:
1.150 moko 5409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5410: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5411: # Test print first, because it will be a builtin if present.
5412: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5413: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5414: ECHO='print -r --'
5415: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5416: ECHO='printf %s\n'
5417: else
5418: # Use this function as a fallback that always works.
5419: func_fallback_echo ()
5420: {
5421: eval 'cat <<_LTECHO_EOF
5422: $1
5423: _LTECHO_EOF'
5424: }
5425: ECHO='func_fallback_echo'
5426: fi
1.86 paf 5427:
1.128 moko 5428: # func_echo_all arg...
5429: # Invoke $ECHO with all args, space-separated.
5430: func_echo_all ()
1.66 paf 5431: {
1.128 moko 5432: $ECHO ""
1.66 paf 5433: }
1.10 paf 5434:
1.128 moko 5435: case "$ECHO" in
1.150 moko 5436: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5437: $as_echo "printf" >&6; } ;;
5438: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5439: $as_echo "print -r" >&6; } ;;
5440: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5441: $as_echo "cat" >&6; } ;;
1.128 moko 5442: esac
5443:
5444:
5445:
5446:
5447:
5448:
5449:
5450:
5451:
5452:
5453:
5454:
5455:
5456:
1.150 moko 5457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5458: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5459: if ${ac_cv_path_SED+:} false; then :
5460: $as_echo_n "(cached) " >&6
5461: else
5462: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5463: for ac_i in 1 2 3 4 5 6 7; do
5464: ac_script="$ac_script$as_nl$ac_script"
5465: done
5466: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5467: { ac_script=; unset ac_script;}
5468: if test -z "$SED"; then
5469: ac_path_SED_found=false
5470: # Loop through the user's path and test for each of PROGNAME-LIST
5471: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5472: for as_dir in $PATH
5473: do
5474: IFS=$as_save_IFS
5475: test -z "$as_dir" && as_dir=.
1.150 moko 5476: for ac_prog in sed gsed; do
1.128 moko 5477: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5478: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5479: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 5480: # Check for GNU ac_path_SED and select it if it is found.
5481: # Check for GNU $ac_path_SED
5482: case `"$ac_path_SED" --version 2>&1` in
5483: *GNU*)
5484: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5485: *)
5486: ac_count=0
5487: $as_echo_n 0123456789 >"conftest.in"
5488: while :
5489: do
5490: cat "conftest.in" "conftest.in" >"conftest.tmp"
5491: mv "conftest.tmp" "conftest.in"
5492: cp "conftest.in" "conftest.nl"
5493: $as_echo '' >> "conftest.nl"
5494: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5495: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5496: as_fn_arith $ac_count + 1 && ac_count=$as_val
5497: if test $ac_count -gt ${ac_path_SED_max-0}; then
5498: # Best one so far, save it but keep looking for a better one
5499: ac_cv_path_SED="$ac_path_SED"
5500: ac_path_SED_max=$ac_count
5501: fi
5502: # 10*(2^10) chars as input seems more than enough
5503: test $ac_count -gt 10 && break
5504: done
5505: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5506: esac
5507:
5508: $ac_path_SED_found && break 3
1.128 moko 5509: done
5510: done
1.150 moko 5511: done
1.128 moko 5512: IFS=$as_save_IFS
1.150 moko 5513: if test -z "$ac_cv_path_SED"; then
5514: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5515: fi
1.150 moko 5516: else
5517: ac_cv_path_SED=$SED
5518: fi
1.10 paf 5519:
1.66 paf 5520: fi
1.150 moko 5521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5522: $as_echo "$ac_cv_path_SED" >&6; }
5523: SED="$ac_cv_path_SED"
5524: rm -f conftest.sed
1.128 moko 5525:
5526: test -z "$SED" && SED=sed
5527: Xsed="$SED -e 1s/^X//"
1.10 paf 5528:
1.128 moko 5529:
5530:
5531:
5532:
5533:
5534:
5535:
5536:
5537:
5538:
1.150 moko 5539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5540: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5541: if ${ac_cv_path_GREP+:} false; then :
5542: $as_echo_n "(cached) " >&6
5543: else
5544: if test -z "$GREP"; then
5545: ac_path_GREP_found=false
5546: # Loop through the user's path and test for each of PROGNAME-LIST
5547: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5549: do
5550: IFS=$as_save_IFS
5551: test -z "$as_dir" && as_dir=.
5552: for ac_prog in grep ggrep; do
5553: for ac_exec_ext in '' $ac_executable_extensions; do
5554: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5555: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 5556: # Check for GNU ac_path_GREP and select it if it is found.
5557: # Check for GNU $ac_path_GREP
5558: case `"$ac_path_GREP" --version 2>&1` in
5559: *GNU*)
5560: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5561: *)
5562: ac_count=0
5563: $as_echo_n 0123456789 >"conftest.in"
5564: while :
5565: do
5566: cat "conftest.in" "conftest.in" >"conftest.tmp"
5567: mv "conftest.tmp" "conftest.in"
5568: cp "conftest.in" "conftest.nl"
5569: $as_echo 'GREP' >> "conftest.nl"
5570: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5571: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5572: as_fn_arith $ac_count + 1 && ac_count=$as_val
5573: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5574: # Best one so far, save it but keep looking for a better one
5575: ac_cv_path_GREP="$ac_path_GREP"
5576: ac_path_GREP_max=$ac_count
1.128 moko 5577: fi
1.150 moko 5578: # 10*(2^10) chars as input seems more than enough
5579: test $ac_count -gt 10 && break
5580: done
5581: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5582: esac
5583:
5584: $ac_path_GREP_found && break 3
5585: done
5586: done
5587: done
5588: IFS=$as_save_IFS
5589: if test -z "$ac_cv_path_GREP"; then
5590: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5591: fi
5592: else
5593: ac_cv_path_GREP=$GREP
5594: fi
5595:
1.128 moko 5596: fi
1.150 moko 5597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5598: $as_echo "$ac_cv_path_GREP" >&6; }
5599: GREP="$ac_cv_path_GREP"
5600:
5601:
5602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5603: $as_echo_n "checking for egrep... " >&6; }
5604: if ${ac_cv_path_EGREP+:} false; then :
5605: $as_echo_n "(cached) " >&6
5606: else
5607: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5608: then ac_cv_path_EGREP="$GREP -E"
5609: else
5610: if test -z "$EGREP"; then
5611: ac_path_EGREP_found=false
5612: # Loop through the user's path and test for each of PROGNAME-LIST
5613: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5615: do
5616: IFS=$as_save_IFS
5617: test -z "$as_dir" && as_dir=.
5618: for ac_prog in egrep; do
5619: for ac_exec_ext in '' $ac_executable_extensions; do
5620: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5621: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 5622: # Check for GNU ac_path_EGREP and select it if it is found.
5623: # Check for GNU $ac_path_EGREP
5624: case `"$ac_path_EGREP" --version 2>&1` in
5625: *GNU*)
5626: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5627: *)
5628: ac_count=0
5629: $as_echo_n 0123456789 >"conftest.in"
5630: while :
5631: do
5632: cat "conftest.in" "conftest.in" >"conftest.tmp"
5633: mv "conftest.tmp" "conftest.in"
5634: cp "conftest.in" "conftest.nl"
5635: $as_echo 'EGREP' >> "conftest.nl"
5636: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5637: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5638: as_fn_arith $ac_count + 1 && ac_count=$as_val
5639: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5640: # Best one so far, save it but keep looking for a better one
5641: ac_cv_path_EGREP="$ac_path_EGREP"
5642: ac_path_EGREP_max=$ac_count
5643: fi
5644: # 10*(2^10) chars as input seems more than enough
5645: test $ac_count -gt 10 && break
5646: done
5647: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5648: esac
1.128 moko 5649:
1.150 moko 5650: $ac_path_EGREP_found && break 3
5651: done
5652: done
5653: done
5654: IFS=$as_save_IFS
5655: if test -z "$ac_cv_path_EGREP"; then
5656: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5657: fi
5658: else
5659: ac_cv_path_EGREP=$EGREP
5660: fi
1.128 moko 5661:
1.150 moko 5662: fi
5663: fi
5664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5665: $as_echo "$ac_cv_path_EGREP" >&6; }
5666: EGREP="$ac_cv_path_EGREP"
5667:
5668:
5669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5670: $as_echo_n "checking for fgrep... " >&6; }
5671: if ${ac_cv_path_FGREP+:} false; then :
5672: $as_echo_n "(cached) " >&6
5673: else
5674: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5675: then ac_cv_path_FGREP="$GREP -F"
5676: else
5677: if test -z "$FGREP"; then
5678: ac_path_FGREP_found=false
5679: # Loop through the user's path and test for each of PROGNAME-LIST
5680: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5682: do
5683: IFS=$as_save_IFS
5684: test -z "$as_dir" && as_dir=.
5685: for ac_prog in fgrep; do
5686: for ac_exec_ext in '' $ac_executable_extensions; do
5687: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5688: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 5689: # Check for GNU ac_path_FGREP and select it if it is found.
5690: # Check for GNU $ac_path_FGREP
5691: case `"$ac_path_FGREP" --version 2>&1` in
5692: *GNU*)
5693: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5694: *)
5695: ac_count=0
5696: $as_echo_n 0123456789 >"conftest.in"
5697: while :
5698: do
5699: cat "conftest.in" "conftest.in" >"conftest.tmp"
5700: mv "conftest.tmp" "conftest.in"
5701: cp "conftest.in" "conftest.nl"
5702: $as_echo 'FGREP' >> "conftest.nl"
5703: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5704: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5705: as_fn_arith $ac_count + 1 && ac_count=$as_val
5706: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5707: # Best one so far, save it but keep looking for a better one
5708: ac_cv_path_FGREP="$ac_path_FGREP"
5709: ac_path_FGREP_max=$ac_count
1.128 moko 5710: fi
1.150 moko 5711: # 10*(2^10) chars as input seems more than enough
5712: test $ac_count -gt 10 && break
5713: done
5714: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5715: esac
5716:
5717: $ac_path_FGREP_found && break 3
5718: done
5719: done
5720: done
5721: IFS=$as_save_IFS
5722: if test -z "$ac_cv_path_FGREP"; then
5723: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5724: fi
5725: else
5726: ac_cv_path_FGREP=$FGREP
5727: fi
5728:
5729: fi
1.128 moko 5730: fi
1.150 moko 5731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5732: $as_echo "$ac_cv_path_FGREP" >&6; }
5733: FGREP="$ac_cv_path_FGREP"
1.128 moko 5734:
5735:
5736: test -z "$GREP" && GREP=grep
5737:
5738:
5739:
5740:
5741:
5742:
5743:
5744:
5745:
5746:
5747:
5748:
5749:
5750:
5751:
5752:
5753:
5754:
5755:
1.150 moko 5756: # Check whether --with-gnu-ld was given.
5757: if test "${with_gnu_ld+set}" = set; then :
5758: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5759: else
5760: with_gnu_ld=no
1.150 moko 5761: fi
5762:
1.128 moko 5763: ac_prog=ld
5764: if test "$GCC" = yes; then
5765: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5767: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5768: case $host in
5769: *-*-mingw*)
5770: # gcc leaves a trailing carriage return which upsets mingw
5771: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5772: *)
5773: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5774: esac
5775: case $ac_prog in
5776: # Accept absolute paths.
5777: [\\/]* | ?:[\\/]*)
5778: re_direlt='/[^/][^/]*/\.\./'
5779: # Canonicalize the pathname of ld
5780: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5781: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5782: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5783: done
5784: test -z "$LD" && LD="$ac_prog"
5785: ;;
5786: "")
5787: # If it fails, then pretend we aren't using GCC.
5788: ac_prog=ld
5789: ;;
5790: *)
5791: # If it is relative, then search for the first ld in PATH.
5792: with_gnu_ld=unknown
5793: ;;
5794: esac
5795: elif test "$with_gnu_ld" = yes; then
1.150 moko 5796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5797: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5798: else
1.150 moko 5799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5800: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5801: fi
1.150 moko 5802: if ${lt_cv_path_LD+:} false; then :
5803: $as_echo_n "(cached) " >&6
1.128 moko 5804: else
5805: if test -z "$LD"; then
5806: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5807: for ac_dir in $PATH; do
5808: IFS="$lt_save_ifs"
5809: test -z "$ac_dir" && ac_dir=.
5810: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5811: lt_cv_path_LD="$ac_dir/$ac_prog"
5812: # Check to see if the program is GNU ld. I'd rather use --version,
5813: # but apparently some variants of GNU ld only accept -v.
5814: # Break only if it was the GNU/non-GNU ld that we prefer.
5815: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5816: *GNU* | *'with BFD'*)
5817: test "$with_gnu_ld" != no && break
5818: ;;
5819: *)
5820: test "$with_gnu_ld" != yes && break
5821: ;;
5822: esac
5823: fi
5824: done
5825: IFS="$lt_save_ifs"
5826: else
5827: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5828: fi
5829: fi
5830:
5831: LD="$lt_cv_path_LD"
5832: if test -n "$LD"; then
1.150 moko 5833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5834: $as_echo "$LD" >&6; }
1.128 moko 5835: else
1.150 moko 5836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837: $as_echo "no" >&6; }
1.128 moko 5838: fi
1.150 moko 5839: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5840: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5841: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5842: if ${lt_cv_prog_gnu_ld+:} false; then :
5843: $as_echo_n "(cached) " >&6
1.128 moko 5844: else
5845: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5846: case `$LD -v 2>&1 </dev/null` in
5847: *GNU* | *'with BFD'*)
5848: lt_cv_prog_gnu_ld=yes
5849: ;;
5850: *)
5851: lt_cv_prog_gnu_ld=no
5852: ;;
5853: esac
5854: fi
1.150 moko 5855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5856: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5857: with_gnu_ld=$lt_cv_prog_gnu_ld
5858:
5859:
5860:
5861:
5862:
5863:
5864:
5865:
5866:
1.150 moko 5867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5868: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5869: if ${lt_cv_path_NM+:} false; then :
5870: $as_echo_n "(cached) " >&6
1.128 moko 5871: else
5872: if test -n "$NM"; then
5873: # Let the user override the test.
5874: lt_cv_path_NM="$NM"
5875: else
5876: lt_nm_to_check="${ac_tool_prefix}nm"
5877: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5878: lt_nm_to_check="$lt_nm_to_check nm"
5879: fi
5880: for lt_tmp_nm in $lt_nm_to_check; do
5881: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5882: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5883: IFS="$lt_save_ifs"
5884: test -z "$ac_dir" && ac_dir=.
5885: tmp_nm="$ac_dir/$lt_tmp_nm"
5886: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5887: # Check to see if the nm accepts a BSD-compat flag.
5888: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5889: # nm: unknown option "B" ignored
5890: # Tru64's nm complains that /dev/null is an invalid object file
5891: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5892: */dev/null* | *'Invalid file or object type'*)
5893: lt_cv_path_NM="$tmp_nm -B"
5894: break
5895: ;;
5896: *)
5897: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5898: */dev/null*)
5899: lt_cv_path_NM="$tmp_nm -p"
5900: break
5901: ;;
5902: *)
5903: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5904: continue # so that we can try to find one that supports BSD flags
5905: ;;
5906: esac
5907: ;;
5908: esac
5909: fi
5910: done
5911: IFS="$lt_save_ifs"
5912: done
5913: : ${lt_cv_path_NM=no}
5914: fi
5915: fi
1.150 moko 5916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5917: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5918: if test "$lt_cv_path_NM" != "no"; then
5919: NM="$lt_cv_path_NM"
5920: else
5921: # Didn't find any BSD compatible name lister, look for dumpbin.
5922: if test -n "$DUMPBIN"; then :
5923: # Let the user override the test.
5924: else
5925: if test -n "$ac_tool_prefix"; then
5926: for ac_prog in dumpbin "link -dump"
5927: do
5928: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5929: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5930: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931: $as_echo_n "checking for $ac_word... " >&6; }
5932: if ${ac_cv_prog_DUMPBIN+:} false; then :
5933: $as_echo_n "(cached) " >&6
1.128 moko 5934: else
5935: if test -n "$DUMPBIN"; then
5936: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5937: else
5938: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939: for as_dir in $PATH
5940: do
5941: IFS=$as_save_IFS
5942: test -z "$as_dir" && as_dir=.
1.150 moko 5943: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5944: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5945: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 5946: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5947: break 2
5948: fi
5949: done
1.150 moko 5950: done
5951: IFS=$as_save_IFS
1.128 moko 5952:
5953: fi
5954: fi
5955: DUMPBIN=$ac_cv_prog_DUMPBIN
5956: if test -n "$DUMPBIN"; then
1.150 moko 5957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5958: $as_echo "$DUMPBIN" >&6; }
1.128 moko 5959: else
1.150 moko 5960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961: $as_echo "no" >&6; }
1.128 moko 5962: fi
5963:
1.150 moko 5964:
1.128 moko 5965: test -n "$DUMPBIN" && break
5966: done
5967: fi
5968: if test -z "$DUMPBIN"; then
5969: ac_ct_DUMPBIN=$DUMPBIN
5970: for ac_prog in dumpbin "link -dump"
5971: do
5972: # Extract the first word of "$ac_prog", so it can be a program name with args.
5973: set dummy $ac_prog; ac_word=$2
1.150 moko 5974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975: $as_echo_n "checking for $ac_word... " >&6; }
5976: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5977: $as_echo_n "(cached) " >&6
1.128 moko 5978: else
5979: if test -n "$ac_ct_DUMPBIN"; then
5980: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5981: else
5982: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983: for as_dir in $PATH
5984: do
5985: IFS=$as_save_IFS
5986: test -z "$as_dir" && as_dir=.
1.150 moko 5987: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5988: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5989: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 5990: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5991: break 2
5992: fi
5993: done
1.150 moko 5994: done
5995: IFS=$as_save_IFS
1.128 moko 5996:
5997: fi
5998: fi
5999: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6000: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 6001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6002: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 6003: else
1.150 moko 6004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005: $as_echo "no" >&6; }
1.128 moko 6006: fi
6007:
1.150 moko 6008:
1.128 moko 6009: test -n "$ac_ct_DUMPBIN" && break
6010: done
6011:
1.150 moko 6012: if test "x$ac_ct_DUMPBIN" = x; then
6013: DUMPBIN=":"
6014: else
6015: case $cross_compiling:$ac_tool_warned in
6016: yes:)
6017: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6018: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6019: ac_tool_warned=yes ;;
6020: esac
6021: DUMPBIN=$ac_ct_DUMPBIN
6022: fi
1.128 moko 6023: fi
6024:
6025: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6026: *COFF*)
6027: DUMPBIN="$DUMPBIN -symbols"
6028: ;;
6029: *)
6030: DUMPBIN=:
6031: ;;
6032: esac
6033: fi
6034:
6035: if test "$DUMPBIN" != ":"; then
6036: NM="$DUMPBIN"
6037: fi
6038: fi
6039: test -z "$NM" && NM=nm
6040:
6041:
6042:
6043:
6044:
6045:
1.150 moko 6046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6047: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6048: if ${lt_cv_nm_interface+:} false; then :
6049: $as_echo_n "(cached) " >&6
1.128 moko 6050: else
6051: lt_cv_nm_interface="BSD nm"
6052: echo "int some_variable = 0;" > conftest.$ac_ext
6053: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6054: (eval "$ac_compile" 2>conftest.err)
6055: cat conftest.err >&5
6056: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6057: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6058: cat conftest.err >&5
6059: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6060: cat conftest.out >&5
6061: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6062: lt_cv_nm_interface="MS dumpbin"
6063: fi
6064: rm -f conftest*
6065: fi
1.150 moko 6066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6067: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 6068:
1.150 moko 6069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6070: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 6071: LN_S=$as_ln_s
6072: if test "$LN_S" = "ln -s"; then
1.150 moko 6073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6074: $as_echo "yes" >&6; }
1.128 moko 6075: else
1.150 moko 6076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6077: $as_echo "no, using $LN_S" >&6; }
1.128 moko 6078: fi
6079:
6080: # find the maximum length of command line arguments
1.150 moko 6081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6082: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6083: if ${lt_cv_sys_max_cmd_len+:} false; then :
6084: $as_echo_n "(cached) " >&6
1.128 moko 6085: else
6086: i=0
6087: teststring="ABCD"
6088:
6089: case $build_os in
6090: msdosdjgpp*)
6091: # On DJGPP, this test can blow up pretty badly due to problems in libc
6092: # (any single argument exceeding 2000 bytes causes a buffer overrun
6093: # during glob expansion). Even if it were fixed, the result of this
6094: # check would be larger than it should be.
6095: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6096: ;;
6097:
6098: gnu*)
6099: # Under GNU Hurd, this test is not required because there is
6100: # no limit to the length of command line arguments.
6101: # Libtool will interpret -1 as no limit whatsoever
6102: lt_cv_sys_max_cmd_len=-1;
6103: ;;
6104:
6105: cygwin* | mingw* | cegcc*)
6106: # On Win9x/ME, this test blows up -- it succeeds, but takes
6107: # about 5 minutes as the teststring grows exponentially.
6108: # Worse, since 9x/ME are not pre-emptively multitasking,
6109: # you end up with a "frozen" computer, even though with patience
6110: # the test eventually succeeds (with a max line length of 256k).
6111: # Instead, let's just punt: use the minimum linelength reported by
6112: # all of the supported platforms: 8192 (on NT/2K/XP).
6113: lt_cv_sys_max_cmd_len=8192;
6114: ;;
6115:
6116: mint*)
6117: # On MiNT this can take a long time and run out of memory.
6118: lt_cv_sys_max_cmd_len=8192;
6119: ;;
6120:
6121: amigaos*)
6122: # On AmigaOS with pdksh, this test takes hours, literally.
6123: # So we just punt and use a minimum line length of 8192.
6124: lt_cv_sys_max_cmd_len=8192;
6125: ;;
6126:
6127: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6128: # This has been around since 386BSD, at least. Likely further.
6129: if test -x /sbin/sysctl; then
6130: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6131: elif test -x /usr/sbin/sysctl; then
6132: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6133: else
6134: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6135: fi
6136: # And add a safety zone
6137: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6138: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6139: ;;
6140:
6141: interix*)
6142: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6143: lt_cv_sys_max_cmd_len=196608
6144: ;;
6145:
6146: os2*)
6147: # The test takes a long time on OS/2.
6148: lt_cv_sys_max_cmd_len=8192
6149: ;;
6150:
6151: osf*)
6152: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6153: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6154: # nice to cause kernel panics so lets avoid the loop below.
6155: # First set a reasonable default.
6156: lt_cv_sys_max_cmd_len=16384
6157: #
6158: if test -x /sbin/sysconfig; then
6159: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6160: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6161: esac
6162: fi
6163: ;;
6164: sco3.2v5*)
6165: lt_cv_sys_max_cmd_len=102400
6166: ;;
6167: sysv5* | sco5v6* | sysv4.2uw2*)
6168: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6169: if test -n "$kargmax"; then
6170: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6171: else
6172: lt_cv_sys_max_cmd_len=32768
6173: fi
6174: ;;
6175: *)
6176: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6177: if test -n "$lt_cv_sys_max_cmd_len"; then
6178: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6179: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6180: else
6181: # Make teststring a little bigger before we do anything with it.
6182: # a 1K string should be a reasonable start.
6183: for i in 1 2 3 4 5 6 7 8 ; do
6184: teststring=$teststring$teststring
6185: done
6186: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6187: # If test is not a shell built-in, we'll probably end up computing a
6188: # maximum length that is only half of the actual maximum length, but
6189: # we can't tell.
6190: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6191: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6192: test $i != 17 # 1/2 MB should be enough
6193: do
6194: i=`expr $i + 1`
6195: teststring=$teststring$teststring
6196: done
6197: # Only check the string length outside the loop.
6198: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6199: teststring=
6200: # Add a significant safety factor because C++ compilers can tack on
6201: # massive amounts of additional arguments before passing them to the
6202: # linker. It appears as though 1/2 is a usable value.
6203: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6204: fi
6205: ;;
6206: esac
6207:
6208: fi
6209:
6210: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 6211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6212: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 6213: else
1.150 moko 6214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6215: $as_echo "none" >&6; }
1.128 moko 6216: fi
6217: max_cmd_len=$lt_cv_sys_max_cmd_len
6218:
6219:
6220:
6221:
6222:
6223:
6224: : ${CP="cp -f"}
6225: : ${MV="mv -f"}
6226: : ${RM="rm -f"}
6227:
1.150 moko 6228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6229: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 6230: # Try some XSI features
6231: xsi_shell=no
6232: ( _lt_dummy="a/b/c"
6233: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6234: = c,a/b,b/c, \
6235: && eval 'test $(( 1 + 1 )) -eq 2 \
6236: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6237: && xsi_shell=yes
1.150 moko 6238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6239: $as_echo "$xsi_shell" >&6; }
1.128 moko 6240:
6241:
1.150 moko 6242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6243: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 6244: lt_shell_append=no
6245: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6246: >/dev/null 2>&1 \
6247: && lt_shell_append=yes
1.150 moko 6248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6249: $as_echo "$lt_shell_append" >&6; }
1.128 moko 6250:
6251:
6252: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6253: lt_unset=unset
6254: else
6255: lt_unset=false
6256: fi
6257:
6258:
6259:
6260:
6261:
6262: # test EBCDIC or ASCII
6263: case `echo X|tr X '\101'` in
6264: A) # ASCII based system
6265: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6266: lt_SP2NL='tr \040 \012'
6267: lt_NL2SP='tr \015\012 \040\040'
6268: ;;
6269: *) # EBCDIC based system
6270: lt_SP2NL='tr \100 \n'
6271: lt_NL2SP='tr \r\n \100\100'
6272: ;;
6273: esac
6274:
6275:
6276:
6277:
6278:
6279:
6280:
6281:
6282:
1.150 moko 6283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6284: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6285: if ${lt_cv_to_host_file_cmd+:} false; then :
6286: $as_echo_n "(cached) " >&6
1.128 moko 6287: else
6288: case $host in
6289: *-*-mingw* )
6290: case $build in
6291: *-*-mingw* ) # actually msys
6292: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6293: ;;
6294: *-*-cygwin* )
6295: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6296: ;;
6297: * ) # otherwise, assume *nix
6298: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6299: ;;
6300: esac
6301: ;;
6302: *-*-cygwin* )
6303: case $build in
6304: *-*-mingw* ) # actually msys
6305: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6306: ;;
6307: *-*-cygwin* )
6308: lt_cv_to_host_file_cmd=func_convert_file_noop
6309: ;;
6310: * ) # otherwise, assume *nix
6311: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6312: ;;
6313: esac
6314: ;;
6315: * ) # unhandled hosts (and "normal" native builds)
6316: lt_cv_to_host_file_cmd=func_convert_file_noop
6317: ;;
6318: esac
6319:
6320: fi
6321:
6322: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6324: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6325:
6326:
6327:
6328:
6329:
1.150 moko 6330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6331: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6332: if ${lt_cv_to_tool_file_cmd+:} false; then :
6333: $as_echo_n "(cached) " >&6
1.128 moko 6334: else
6335: #assume ordinary cross tools, or native build.
6336: lt_cv_to_tool_file_cmd=func_convert_file_noop
6337: case $host in
6338: *-*-mingw* )
6339: case $build in
6340: *-*-mingw* ) # actually msys
6341: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6342: ;;
6343: esac
6344: ;;
6345: esac
6346:
6347: fi
6348:
6349: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6351: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6352:
6353:
6354:
6355:
6356:
1.150 moko 6357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6358: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6359: if ${lt_cv_ld_reload_flag+:} false; then :
6360: $as_echo_n "(cached) " >&6
1.128 moko 6361: else
6362: lt_cv_ld_reload_flag='-r'
6363: fi
1.150 moko 6364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6365: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6366: reload_flag=$lt_cv_ld_reload_flag
6367: case $reload_flag in
6368: "" | " "*) ;;
6369: *) reload_flag=" $reload_flag" ;;
6370: esac
6371: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6372: case $host_os in
6373: cygwin* | mingw* | pw32* | cegcc*)
6374: if test "$GCC" != yes; then
6375: reload_cmds=false
6376: fi
6377: ;;
6378: darwin*)
6379: if test "$GCC" = yes; then
6380: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6381: else
6382: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6383: fi
6384: ;;
6385: esac
6386:
6387:
6388:
6389:
6390:
6391:
6392:
6393:
6394:
6395: if test -n "$ac_tool_prefix"; then
6396: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6397: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399: $as_echo_n "checking for $ac_word... " >&6; }
6400: if ${ac_cv_prog_OBJDUMP+:} false; then :
6401: $as_echo_n "(cached) " >&6
1.128 moko 6402: else
6403: if test -n "$OBJDUMP"; then
6404: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6405: else
6406: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407: for as_dir in $PATH
6408: do
6409: IFS=$as_save_IFS
6410: test -z "$as_dir" && as_dir=.
1.150 moko 6411: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6412: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6413: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6414: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6415: break 2
6416: fi
6417: done
1.150 moko 6418: done
6419: IFS=$as_save_IFS
1.128 moko 6420:
6421: fi
6422: fi
6423: OBJDUMP=$ac_cv_prog_OBJDUMP
6424: if test -n "$OBJDUMP"; then
1.150 moko 6425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6426: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6427: else
1.150 moko 6428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429: $as_echo "no" >&6; }
1.128 moko 6430: fi
6431:
1.150 moko 6432:
1.128 moko 6433: fi
6434: if test -z "$ac_cv_prog_OBJDUMP"; then
6435: ac_ct_OBJDUMP=$OBJDUMP
6436: # Extract the first word of "objdump", so it can be a program name with args.
6437: set dummy objdump; ac_word=$2
1.150 moko 6438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439: $as_echo_n "checking for $ac_word... " >&6; }
6440: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6441: $as_echo_n "(cached) " >&6
1.128 moko 6442: else
6443: if test -n "$ac_ct_OBJDUMP"; then
6444: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6445: else
6446: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447: for as_dir in $PATH
6448: do
6449: IFS=$as_save_IFS
6450: test -z "$as_dir" && as_dir=.
1.150 moko 6451: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6452: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6453: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6454: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6455: break 2
6456: fi
6457: done
1.150 moko 6458: done
6459: IFS=$as_save_IFS
1.128 moko 6460:
6461: fi
6462: fi
6463: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6464: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6466: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6467: else
1.150 moko 6468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469: $as_echo "no" >&6; }
1.128 moko 6470: fi
6471:
1.150 moko 6472: if test "x$ac_ct_OBJDUMP" = x; then
6473: OBJDUMP="false"
6474: else
6475: case $cross_compiling:$ac_tool_warned in
6476: yes:)
6477: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479: ac_tool_warned=yes ;;
6480: esac
6481: OBJDUMP=$ac_ct_OBJDUMP
6482: fi
1.128 moko 6483: else
6484: OBJDUMP="$ac_cv_prog_OBJDUMP"
6485: fi
6486:
6487: test -z "$OBJDUMP" && OBJDUMP=objdump
6488:
6489:
6490:
6491:
6492:
6493:
1.150 moko 6494: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6495: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6496: if ${lt_cv_deplibs_check_method+:} false; then :
6497: $as_echo_n "(cached) " >&6
1.128 moko 6498: else
6499: lt_cv_file_magic_cmd='$MAGIC_CMD'
6500: lt_cv_file_magic_test_file=
6501: lt_cv_deplibs_check_method='unknown'
6502: # Need to set the preceding variable on all platforms that support
6503: # interlibrary dependencies.
6504: # 'none' -- dependencies not supported.
6505: # `unknown' -- same as none, but documents that we really don't know.
6506: # 'pass_all' -- all dependencies passed with no checks.
6507: # 'test_compile' -- check by making test program.
6508: # 'file_magic [[regex]]' -- check by looking for files in library path
6509: # which responds to the $file_magic_cmd with a given extended regex.
6510: # If you have `file' or equivalent on your system and you're not sure
6511: # whether `pass_all' will *always* work, you probably want this one.
6512:
6513: case $host_os in
6514: aix[4-9]*)
6515: lt_cv_deplibs_check_method=pass_all
6516: ;;
6517:
6518: beos*)
6519: lt_cv_deplibs_check_method=pass_all
6520: ;;
6521:
6522: bsdi[45]*)
6523: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6524: lt_cv_file_magic_cmd='/usr/bin/file -L'
6525: lt_cv_file_magic_test_file=/shlib/libc.so
6526: ;;
6527:
6528: cygwin*)
6529: # func_win32_libid is a shell function defined in ltmain.sh
6530: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6531: lt_cv_file_magic_cmd='func_win32_libid'
6532: ;;
6533:
6534: mingw* | pw32*)
6535: # Base MSYS/MinGW do not provide the 'file' command needed by
6536: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6537: # unless we find 'file', for example because we are cross-compiling.
6538: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6539: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6540: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6541: lt_cv_file_magic_cmd='func_win32_libid'
6542: else
6543: # Keep this pattern in sync with the one in func_win32_libid.
6544: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6545: lt_cv_file_magic_cmd='$OBJDUMP -f'
6546: fi
6547: ;;
6548:
6549: cegcc*)
6550: # use the weaker test based on 'objdump'. See mingw*.
6551: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6552: lt_cv_file_magic_cmd='$OBJDUMP -f'
6553: ;;
6554:
6555: darwin* | rhapsody*)
6556: lt_cv_deplibs_check_method=pass_all
6557: ;;
6558:
6559: freebsd* | dragonfly*)
6560: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6561: case $host_cpu in
6562: i*86 )
6563: # Not sure whether the presence of OpenBSD here was a mistake.
6564: # Let's accept both of them until this is cleared up.
6565: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6566: lt_cv_file_magic_cmd=/usr/bin/file
6567: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6568: ;;
6569: esac
6570: else
6571: lt_cv_deplibs_check_method=pass_all
6572: fi
6573: ;;
6574:
6575: gnu*)
6576: lt_cv_deplibs_check_method=pass_all
6577: ;;
6578:
6579: haiku*)
6580: lt_cv_deplibs_check_method=pass_all
6581: ;;
6582:
6583: hpux10.20* | hpux11*)
6584: lt_cv_file_magic_cmd=/usr/bin/file
6585: case $host_cpu in
6586: ia64*)
6587: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6588: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6589: ;;
6590: hppa*64*)
6591: 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]'
6592: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6593: ;;
6594: *)
6595: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6596: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6597: ;;
6598: esac
6599: ;;
6600:
6601: interix[3-9]*)
6602: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6603: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6604: ;;
6605:
6606: irix5* | irix6* | nonstopux*)
6607: case $LD in
6608: *-32|*"-32 ") libmagic=32-bit;;
6609: *-n32|*"-n32 ") libmagic=N32;;
6610: *-64|*"-64 ") libmagic=64-bit;;
6611: *) libmagic=never-match;;
6612: esac
6613: lt_cv_deplibs_check_method=pass_all
6614: ;;
6615:
6616: # This must be glibc/ELF.
6617: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6618: lt_cv_deplibs_check_method=pass_all
6619: ;;
6620:
6621: netbsd*)
6622: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6623: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6624: else
6625: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6626: fi
6627: ;;
6628:
6629: newos6*)
6630: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6631: lt_cv_file_magic_cmd=/usr/bin/file
6632: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6633: ;;
6634:
6635: *nto* | *qnx*)
6636: lt_cv_deplibs_check_method=pass_all
6637: ;;
6638:
6639: openbsd*)
6640: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6641: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6642: else
6643: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6644: fi
6645: ;;
6646:
6647: osf3* | osf4* | osf5*)
6648: lt_cv_deplibs_check_method=pass_all
6649: ;;
6650:
6651: rdos*)
6652: lt_cv_deplibs_check_method=pass_all
6653: ;;
6654:
6655: solaris*)
6656: lt_cv_deplibs_check_method=pass_all
6657: ;;
6658:
6659: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6660: lt_cv_deplibs_check_method=pass_all
6661: ;;
6662:
6663: sysv4 | sysv4.3*)
6664: case $host_vendor in
6665: motorola)
6666: 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]'
6667: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6668: ;;
6669: ncr)
6670: lt_cv_deplibs_check_method=pass_all
6671: ;;
6672: sequent)
6673: lt_cv_file_magic_cmd='/bin/file'
6674: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6675: ;;
6676: sni)
6677: lt_cv_file_magic_cmd='/bin/file'
6678: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6679: lt_cv_file_magic_test_file=/lib/libc.so
6680: ;;
6681: siemens)
6682: lt_cv_deplibs_check_method=pass_all
6683: ;;
6684: pc)
6685: lt_cv_deplibs_check_method=pass_all
6686: ;;
6687: esac
6688: ;;
6689:
6690: tpf*)
6691: lt_cv_deplibs_check_method=pass_all
6692: ;;
6693: esac
6694:
6695: fi
1.150 moko 6696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6697: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6698:
6699: file_magic_glob=
6700: want_nocaseglob=no
6701: if test "$build" = "$host"; then
6702: case $host_os in
6703: mingw* | pw32*)
6704: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6705: want_nocaseglob=yes
6706: else
6707: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6708: fi
6709: ;;
6710: esac
6711: fi
6712:
6713: file_magic_cmd=$lt_cv_file_magic_cmd
6714: deplibs_check_method=$lt_cv_deplibs_check_method
6715: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6716:
6717:
6718:
6719:
6720:
6721:
6722:
6723:
6724:
6725:
6726:
6727:
6728:
6729:
6730:
6731:
6732:
6733:
6734:
6735:
6736:
6737:
6738: if test -n "$ac_tool_prefix"; then
6739: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6740: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742: $as_echo_n "checking for $ac_word... " >&6; }
6743: if ${ac_cv_prog_DLLTOOL+:} false; then :
6744: $as_echo_n "(cached) " >&6
1.128 moko 6745: else
6746: if test -n "$DLLTOOL"; then
6747: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6748: else
6749: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750: for as_dir in $PATH
6751: do
6752: IFS=$as_save_IFS
6753: test -z "$as_dir" && as_dir=.
1.150 moko 6754: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6755: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6756: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6757: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6758: break 2
6759: fi
6760: done
1.150 moko 6761: done
6762: IFS=$as_save_IFS
1.128 moko 6763:
6764: fi
6765: fi
6766: DLLTOOL=$ac_cv_prog_DLLTOOL
6767: if test -n "$DLLTOOL"; then
1.150 moko 6768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6769: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6770: else
1.150 moko 6771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772: $as_echo "no" >&6; }
1.128 moko 6773: fi
6774:
1.150 moko 6775:
1.128 moko 6776: fi
6777: if test -z "$ac_cv_prog_DLLTOOL"; then
6778: ac_ct_DLLTOOL=$DLLTOOL
6779: # Extract the first word of "dlltool", so it can be a program name with args.
6780: set dummy dlltool; ac_word=$2
1.150 moko 6781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782: $as_echo_n "checking for $ac_word... " >&6; }
6783: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6784: $as_echo_n "(cached) " >&6
1.128 moko 6785: else
6786: if test -n "$ac_ct_DLLTOOL"; then
6787: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6788: else
6789: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790: for as_dir in $PATH
6791: do
6792: IFS=$as_save_IFS
6793: test -z "$as_dir" && as_dir=.
1.150 moko 6794: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6795: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6796: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6797: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6798: break 2
6799: fi
6800: done
1.150 moko 6801: done
6802: IFS=$as_save_IFS
1.128 moko 6803:
6804: fi
6805: fi
6806: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6807: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6809: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6810: else
1.150 moko 6811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812: $as_echo "no" >&6; }
1.128 moko 6813: fi
6814:
1.150 moko 6815: if test "x$ac_ct_DLLTOOL" = x; then
6816: DLLTOOL="false"
6817: else
6818: case $cross_compiling:$ac_tool_warned in
6819: yes:)
6820: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822: ac_tool_warned=yes ;;
6823: esac
6824: DLLTOOL=$ac_ct_DLLTOOL
6825: fi
1.128 moko 6826: else
6827: DLLTOOL="$ac_cv_prog_DLLTOOL"
6828: fi
6829:
6830: test -z "$DLLTOOL" && DLLTOOL=dlltool
6831:
6832:
6833:
6834:
6835:
6836:
6837:
1.150 moko 6838: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6839: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6840: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6841: $as_echo_n "(cached) " >&6
1.128 moko 6842: else
6843: lt_cv_sharedlib_from_linklib_cmd='unknown'
6844:
6845: case $host_os in
6846: cygwin* | mingw* | pw32* | cegcc*)
6847: # two different shell functions defined in ltmain.sh
6848: # decide which to use based on capabilities of $DLLTOOL
6849: case `$DLLTOOL --help 2>&1` in
6850: *--identify-strict*)
6851: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6852: ;;
6853: *)
6854: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6855: ;;
6856: esac
6857: ;;
6858: *)
6859: # fallback: assume linklib IS sharedlib
6860: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6861: ;;
6862: esac
6863:
6864: fi
1.150 moko 6865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6866: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6867: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6868: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6869:
6870:
6871:
6872:
6873:
6874:
6875:
6876: if test -n "$ac_tool_prefix"; then
6877: for ac_prog in ar
6878: do
6879: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6880: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882: $as_echo_n "checking for $ac_word... " >&6; }
6883: if ${ac_cv_prog_AR+:} false; then :
6884: $as_echo_n "(cached) " >&6
1.128 moko 6885: else
6886: if test -n "$AR"; then
6887: ac_cv_prog_AR="$AR" # Let the user override the test.
6888: else
6889: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890: for as_dir in $PATH
6891: do
6892: IFS=$as_save_IFS
6893: test -z "$as_dir" && as_dir=.
1.150 moko 6894: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6895: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6896: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6897: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6898: break 2
6899: fi
6900: done
1.150 moko 6901: done
6902: IFS=$as_save_IFS
1.128 moko 6903:
6904: fi
6905: fi
6906: AR=$ac_cv_prog_AR
6907: if test -n "$AR"; then
1.150 moko 6908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6909: $as_echo "$AR" >&6; }
1.128 moko 6910: else
1.150 moko 6911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912: $as_echo "no" >&6; }
1.128 moko 6913: fi
6914:
1.150 moko 6915:
1.128 moko 6916: test -n "$AR" && break
6917: done
6918: fi
6919: if test -z "$AR"; then
6920: ac_ct_AR=$AR
6921: for ac_prog in ar
6922: do
6923: # Extract the first word of "$ac_prog", so it can be a program name with args.
6924: set dummy $ac_prog; ac_word=$2
1.150 moko 6925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926: $as_echo_n "checking for $ac_word... " >&6; }
6927: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6928: $as_echo_n "(cached) " >&6
1.128 moko 6929: else
6930: if test -n "$ac_ct_AR"; then
6931: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6932: else
6933: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934: for as_dir in $PATH
6935: do
6936: IFS=$as_save_IFS
6937: test -z "$as_dir" && as_dir=.
1.150 moko 6938: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6939: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6940: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 6941: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6942: break 2
6943: fi
6944: done
1.150 moko 6945: done
6946: IFS=$as_save_IFS
1.128 moko 6947:
6948: fi
6949: fi
6950: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6951: if test -n "$ac_ct_AR"; then
1.150 moko 6952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6953: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 6954: else
1.150 moko 6955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956: $as_echo "no" >&6; }
1.128 moko 6957: fi
6958:
1.150 moko 6959:
1.128 moko 6960: test -n "$ac_ct_AR" && break
6961: done
6962:
1.150 moko 6963: if test "x$ac_ct_AR" = x; then
6964: AR="false"
6965: else
6966: case $cross_compiling:$ac_tool_warned in
6967: yes:)
6968: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970: ac_tool_warned=yes ;;
6971: esac
6972: AR=$ac_ct_AR
6973: fi
1.128 moko 6974: fi
6975:
6976: : ${AR=ar}
6977: : ${AR_FLAGS=cru}
6978:
6979:
6980:
6981:
6982:
6983:
6984:
6985:
6986:
6987:
6988:
1.150 moko 6989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6990: $as_echo_n "checking for archiver @FILE support... " >&6; }
6991: if ${lt_cv_ar_at_file+:} false; then :
6992: $as_echo_n "(cached) " >&6
1.128 moko 6993: else
6994: lt_cv_ar_at_file=no
1.150 moko 6995: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 6996: /* end confdefs.h. */
6997:
6998: int
6999: main ()
7000: {
7001:
7002: ;
7003: return 0;
7004: }
7005: _ACEOF
1.150 moko 7006: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 7007: echo conftest.$ac_objext > conftest.lst
7008: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 7009: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7010: (eval $lt_ar_try) 2>&5
7011: ac_status=$?
1.150 moko 7012: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013: test $ac_status = 0; }
1.128 moko 7014: if test "$ac_status" -eq 0; then
7015: # Ensure the archiver fails upon bogus file names.
7016: rm -f conftest.$ac_objext libconftest.a
1.150 moko 7017: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7018: (eval $lt_ar_try) 2>&5
7019: ac_status=$?
1.150 moko 7020: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7021: test $ac_status = 0; }
1.128 moko 7022: if test "$ac_status" -ne 0; then
7023: lt_cv_ar_at_file=@
7024: fi
7025: fi
7026: rm -f conftest.* libconftest.a
7027:
7028: fi
1.150 moko 7029: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 7030:
7031: fi
1.150 moko 7032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7033: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 7034:
7035: if test "x$lt_cv_ar_at_file" = xno; then
7036: archiver_list_spec=
7037: else
7038: archiver_list_spec=$lt_cv_ar_at_file
7039: fi
7040:
7041:
7042:
7043:
7044:
7045:
7046:
7047: if test -n "$ac_tool_prefix"; then
7048: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7049: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 7050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051: $as_echo_n "checking for $ac_word... " >&6; }
7052: if ${ac_cv_prog_STRIP+:} false; then :
7053: $as_echo_n "(cached) " >&6
1.128 moko 7054: else
7055: if test -n "$STRIP"; then
7056: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7057: else
7058: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059: for as_dir in $PATH
7060: do
7061: IFS=$as_save_IFS
7062: test -z "$as_dir" && as_dir=.
1.150 moko 7063: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7064: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7065: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 7066: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7067: break 2
7068: fi
7069: done
1.150 moko 7070: done
7071: IFS=$as_save_IFS
1.128 moko 7072:
7073: fi
7074: fi
7075: STRIP=$ac_cv_prog_STRIP
7076: if test -n "$STRIP"; then
1.150 moko 7077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7078: $as_echo "$STRIP" >&6; }
1.128 moko 7079: else
1.150 moko 7080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081: $as_echo "no" >&6; }
1.128 moko 7082: fi
7083:
1.150 moko 7084:
1.128 moko 7085: fi
7086: if test -z "$ac_cv_prog_STRIP"; then
7087: ac_ct_STRIP=$STRIP
7088: # Extract the first word of "strip", so it can be a program name with args.
7089: set dummy strip; ac_word=$2
1.150 moko 7090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091: $as_echo_n "checking for $ac_word... " >&6; }
7092: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7093: $as_echo_n "(cached) " >&6
1.128 moko 7094: else
7095: if test -n "$ac_ct_STRIP"; then
7096: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7097: else
7098: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099: for as_dir in $PATH
7100: do
7101: IFS=$as_save_IFS
7102: test -z "$as_dir" && as_dir=.
1.150 moko 7103: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7104: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7105: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 7106: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7107: break 2
7108: fi
7109: done
1.150 moko 7110: done
7111: IFS=$as_save_IFS
1.128 moko 7112:
7113: fi
7114: fi
7115: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7116: if test -n "$ac_ct_STRIP"; then
1.150 moko 7117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7118: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 7119: else
1.150 moko 7120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121: $as_echo "no" >&6; }
1.128 moko 7122: fi
7123:
1.150 moko 7124: if test "x$ac_ct_STRIP" = x; then
7125: STRIP=":"
7126: else
7127: case $cross_compiling:$ac_tool_warned in
7128: yes:)
7129: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131: ac_tool_warned=yes ;;
7132: esac
7133: STRIP=$ac_ct_STRIP
7134: fi
1.128 moko 7135: else
7136: STRIP="$ac_cv_prog_STRIP"
7137: fi
7138:
7139: test -z "$STRIP" && STRIP=:
7140:
7141:
7142:
7143:
7144:
7145:
7146: if test -n "$ac_tool_prefix"; then
7147: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7148: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 7149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150: $as_echo_n "checking for $ac_word... " >&6; }
7151: if ${ac_cv_prog_RANLIB+:} false; then :
7152: $as_echo_n "(cached) " >&6
1.128 moko 7153: else
7154: if test -n "$RANLIB"; then
7155: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7156: else
7157: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158: for as_dir in $PATH
7159: do
7160: IFS=$as_save_IFS
7161: test -z "$as_dir" && as_dir=.
1.150 moko 7162: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7163: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7164: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 7165: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7166: break 2
7167: fi
7168: done
1.150 moko 7169: done
7170: IFS=$as_save_IFS
1.128 moko 7171:
7172: fi
7173: fi
7174: RANLIB=$ac_cv_prog_RANLIB
7175: if test -n "$RANLIB"; then
1.150 moko 7176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7177: $as_echo "$RANLIB" >&6; }
1.128 moko 7178: else
1.150 moko 7179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180: $as_echo "no" >&6; }
1.128 moko 7181: fi
7182:
1.150 moko 7183:
1.128 moko 7184: fi
7185: if test -z "$ac_cv_prog_RANLIB"; then
7186: ac_ct_RANLIB=$RANLIB
7187: # Extract the first word of "ranlib", so it can be a program name with args.
7188: set dummy ranlib; ac_word=$2
1.150 moko 7189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190: $as_echo_n "checking for $ac_word... " >&6; }
7191: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7192: $as_echo_n "(cached) " >&6
1.128 moko 7193: else
7194: if test -n "$ac_ct_RANLIB"; then
7195: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7196: else
7197: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198: for as_dir in $PATH
7199: do
7200: IFS=$as_save_IFS
7201: test -z "$as_dir" && as_dir=.
1.150 moko 7202: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7203: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7204: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 7205: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7206: break 2
7207: fi
7208: done
1.150 moko 7209: done
7210: IFS=$as_save_IFS
1.128 moko 7211:
7212: fi
7213: fi
7214: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7215: if test -n "$ac_ct_RANLIB"; then
1.150 moko 7216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7217: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 7218: else
1.150 moko 7219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220: $as_echo "no" >&6; }
1.128 moko 7221: fi
7222:
1.150 moko 7223: if test "x$ac_ct_RANLIB" = x; then
7224: RANLIB=":"
7225: else
7226: case $cross_compiling:$ac_tool_warned in
7227: yes:)
7228: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7229: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7230: ac_tool_warned=yes ;;
7231: esac
7232: RANLIB=$ac_ct_RANLIB
7233: fi
1.128 moko 7234: else
7235: RANLIB="$ac_cv_prog_RANLIB"
7236: fi
7237:
7238: test -z "$RANLIB" && RANLIB=:
7239:
7240:
7241:
7242:
7243:
7244:
7245: # Determine commands to create old-style static archives.
7246: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7247: old_postinstall_cmds='chmod 644 $oldlib'
7248: old_postuninstall_cmds=
7249:
7250: if test -n "$RANLIB"; then
7251: case $host_os in
7252: openbsd*)
7253: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7254: ;;
7255: *)
7256: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7257: ;;
7258: esac
7259: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7260: fi
7261:
7262: case $host_os in
7263: darwin*)
7264: lock_old_archive_extraction=yes ;;
7265: *)
7266: lock_old_archive_extraction=no ;;
7267: esac
7268:
7269:
7270:
7271:
7272:
7273:
7274:
7275:
7276:
7277:
7278:
7279:
7280:
7281:
7282:
7283:
7284:
7285:
7286:
7287:
7288:
7289:
7290:
7291:
7292:
7293:
7294:
7295:
7296:
7297:
7298:
7299:
7300:
7301:
7302:
7303:
7304:
7305:
7306:
7307: # If no C compiler was specified, use CC.
7308: LTCC=${LTCC-"$CC"}
7309:
7310: # If no C compiler flags were specified, use CFLAGS.
7311: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7312:
7313: # Allow CC to be a program name with arguments.
7314: compiler=$CC
7315:
7316:
7317: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7319: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7320: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7321: $as_echo_n "(cached) " >&6
1.128 moko 7322: else
7323:
7324: # These are sane defaults that work on at least a few old systems.
7325: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7326:
7327: # Character class describing NM global symbol codes.
7328: symcode='[BCDEGRST]'
7329:
7330: # Regexp to match symbols that can be accessed directly from C.
7331: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7332:
7333: # Define system-specific variables.
7334: case $host_os in
7335: aix*)
7336: symcode='[BCDT]'
7337: ;;
7338: cygwin* | mingw* | pw32* | cegcc*)
7339: symcode='[ABCDGISTW]'
7340: ;;
7341: hpux*)
7342: if test "$host_cpu" = ia64; then
7343: symcode='[ABCDEGRST]'
7344: fi
7345: ;;
7346: irix* | nonstopux*)
7347: symcode='[BCDEGRST]'
7348: ;;
7349: osf*)
7350: symcode='[BCDEGQRST]'
7351: ;;
7352: solaris*)
7353: symcode='[BDRT]'
7354: ;;
7355: sco3.2v5*)
7356: symcode='[DT]'
7357: ;;
7358: sysv4.2uw2*)
7359: symcode='[DT]'
7360: ;;
7361: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7362: symcode='[ABDT]'
7363: ;;
7364: sysv4)
7365: symcode='[DFNSTU]'
7366: ;;
7367: esac
7368:
7369: # If we're using GNU nm, then use its standard symbol codes.
7370: case `$NM -V 2>&1` in
7371: *GNU* | *'with BFD'*)
7372: symcode='[ABCDGIRSTW]' ;;
7373: esac
7374:
7375: # Transform an extracted symbol line into a proper C declaration.
7376: # Some systems (esp. on ia64) link data and code symbols differently,
7377: # so use this general approach.
7378: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7379:
7380: # Transform an extracted symbol line into symbol name and symbol address
7381: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7382: 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'"
7383:
7384: # Handle CRLF in mingw tool chain
7385: opt_cr=
7386: case $build_os in
7387: mingw*)
7388: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7389: ;;
7390: esac
7391:
7392: # Try without a prefix underscore, then with it.
7393: for ac_symprfx in "" "_"; do
7394:
7395: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7396: symxfrm="\\1 $ac_symprfx\\2 \\2"
7397:
7398: # Write the raw and C identifiers.
7399: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7400: # Fake it for dumpbin and say T for any non-static function
7401: # and D for any global variable.
7402: # Also find C++ and __fastcall symbols from MSVC++,
7403: # which start with @ or ?.
7404: lt_cv_sys_global_symbol_pipe="$AWK '"\
7405: " {last_section=section; section=\$ 3};"\
7406: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7407: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7408: " \$ 0!~/External *\|/{next};"\
7409: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7410: " {if(hide[section]) next};"\
7411: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7412: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7413: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7414: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7415: " ' prfx=^$ac_symprfx"
7416: else
7417: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7418: fi
7419: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7420:
7421: # Check to see that the pipe works correctly.
7422: pipe_works=no
7423:
7424: rm -f conftest*
7425: cat > conftest.$ac_ext <<_LT_EOF
7426: #ifdef __cplusplus
7427: extern "C" {
7428: #endif
7429: char nm_test_var;
7430: void nm_test_func(void);
7431: void nm_test_func(void){}
7432: #ifdef __cplusplus
7433: }
7434: #endif
7435: int main(){nm_test_var='a';nm_test_func();return(0);}
7436: _LT_EOF
7437:
1.150 moko 7438: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7439: (eval $ac_compile) 2>&5
7440: ac_status=$?
1.150 moko 7441: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442: test $ac_status = 0; }; then
1.128 moko 7443: # Now try to grab the symbols.
7444: nlist=conftest.nm
1.150 moko 7445: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7446: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7447: ac_status=$?
1.150 moko 7448: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7450: # Try sorting and uniquifying the output.
7451: if sort "$nlist" | uniq > "$nlist"T; then
7452: mv -f "$nlist"T "$nlist"
7453: else
7454: rm -f "$nlist"T
7455: fi
7456:
7457: # Make sure that we snagged all the symbols we need.
7458: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7459: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7460: cat <<_LT_EOF > conftest.$ac_ext
7461: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7462: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7463: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7464: relocations are performed -- see ld's documentation on pseudo-relocs. */
7465: # define LT_DLSYM_CONST
7466: #elif defined(__osf__)
7467: /* This system does not cope well with relocations in const data. */
7468: # define LT_DLSYM_CONST
7469: #else
7470: # define LT_DLSYM_CONST const
7471: #endif
7472:
7473: #ifdef __cplusplus
7474: extern "C" {
7475: #endif
7476:
7477: _LT_EOF
7478: # Now generate the symbol file.
7479: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7480:
7481: cat <<_LT_EOF >> conftest.$ac_ext
7482:
7483: /* The mapping between symbol names and symbols. */
7484: LT_DLSYM_CONST struct {
7485: const char *name;
7486: void *address;
7487: }
7488: lt__PROGRAM__LTX_preloaded_symbols[] =
7489: {
7490: { "@PROGRAM@", (void *) 0 },
7491: _LT_EOF
7492: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7493: cat <<\_LT_EOF >> conftest.$ac_ext
7494: {0, (void *) 0}
7495: };
7496:
7497: /* This works around a problem in FreeBSD linker */
7498: #ifdef FREEBSD_WORKAROUND
7499: static const void *lt_preloaded_setup() {
7500: return lt__PROGRAM__LTX_preloaded_symbols;
7501: }
7502: #endif
7503:
7504: #ifdef __cplusplus
7505: }
7506: #endif
7507: _LT_EOF
7508: # Now try linking the two files.
7509: mv conftest.$ac_objext conftstm.$ac_objext
7510: lt_globsym_save_LIBS=$LIBS
7511: lt_globsym_save_CFLAGS=$CFLAGS
7512: LIBS="conftstm.$ac_objext"
7513: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7514: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7515: (eval $ac_link) 2>&5
7516: ac_status=$?
1.150 moko 7517: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7519: pipe_works=yes
7520: fi
7521: LIBS=$lt_globsym_save_LIBS
7522: CFLAGS=$lt_globsym_save_CFLAGS
7523: else
7524: echo "cannot find nm_test_func in $nlist" >&5
7525: fi
7526: else
7527: echo "cannot find nm_test_var in $nlist" >&5
7528: fi
7529: else
7530: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7531: fi
7532: else
7533: echo "$progname: failed program was:" >&5
7534: cat conftest.$ac_ext >&5
7535: fi
7536: rm -rf conftest* conftst*
7537:
7538: # Do not use the global_symbol_pipe unless it works.
7539: if test "$pipe_works" = yes; then
7540: break
7541: else
7542: lt_cv_sys_global_symbol_pipe=
7543: fi
7544: done
7545:
7546: fi
7547:
7548: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7549: lt_cv_sys_global_symbol_to_cdecl=
7550: fi
7551: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7553: $as_echo "failed" >&6; }
1.128 moko 7554: else
1.150 moko 7555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7556: $as_echo "ok" >&6; }
1.128 moko 7557: fi
7558:
7559: # Response file support.
7560: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7561: nm_file_list_spec='@'
7562: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7563: nm_file_list_spec='@'
7564: fi
7565:
7566:
7567:
7568:
7569:
7570:
7571:
7572:
7573:
7574:
7575:
7576:
7577:
7578:
7579:
7580:
7581:
7582:
7583:
7584:
7585:
7586:
7587:
7588:
7589:
7590:
7591:
1.150 moko 7592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7593: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7594:
1.150 moko 7595: # Check whether --with-sysroot was given.
7596: if test "${with_sysroot+set}" = set; then :
7597: withval=$with_sysroot;
1.128 moko 7598: else
7599: with_sysroot=no
1.150 moko 7600: fi
7601:
1.128 moko 7602:
7603: lt_sysroot=
7604: case ${with_sysroot} in #(
7605: yes)
7606: if test "$GCC" = yes; then
7607: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7608: fi
7609: ;; #(
7610: /*)
7611: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7612: ;; #(
7613: no|'')
7614: ;; #(
7615: *)
1.150 moko 7616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7617: $as_echo "${with_sysroot}" >&6; }
7618: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7619: ;;
7620: esac
7621:
1.150 moko 7622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7623: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7624:
7625:
7626:
7627:
7628:
1.150 moko 7629: # Check whether --enable-libtool-lock was given.
7630: if test "${enable_libtool_lock+set}" = set; then :
7631: enableval=$enable_libtool_lock;
7632: fi
1.128 moko 7633:
7634: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7635:
7636: # Some flags need to be propagated to the compiler or linker for good
7637: # libtool support.
7638: case $host in
7639: ia64-*-hpux*)
7640: # Find out which ABI we are using.
7641: echo 'int i;' > conftest.$ac_ext
1.150 moko 7642: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7643: (eval $ac_compile) 2>&5
7644: ac_status=$?
1.150 moko 7645: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646: test $ac_status = 0; }; then
1.128 moko 7647: case `/usr/bin/file conftest.$ac_objext` in
7648: *ELF-32*)
7649: HPUX_IA64_MODE="32"
7650: ;;
7651: *ELF-64*)
7652: HPUX_IA64_MODE="64"
7653: ;;
7654: esac
7655: fi
7656: rm -rf conftest*
7657: ;;
7658: *-*-irix6*)
7659: # Find out which ABI we are using.
7660: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7661: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7662: (eval $ac_compile) 2>&5
7663: ac_status=$?
1.150 moko 7664: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7665: test $ac_status = 0; }; then
1.128 moko 7666: if test "$lt_cv_prog_gnu_ld" = yes; then
7667: case `/usr/bin/file conftest.$ac_objext` in
7668: *32-bit*)
7669: LD="${LD-ld} -melf32bsmip"
7670: ;;
7671: *N32*)
7672: LD="${LD-ld} -melf32bmipn32"
7673: ;;
7674: *64-bit*)
7675: LD="${LD-ld} -melf64bmip"
7676: ;;
7677: esac
7678: else
7679: case `/usr/bin/file conftest.$ac_objext` in
7680: *32-bit*)
7681: LD="${LD-ld} -32"
7682: ;;
7683: *N32*)
7684: LD="${LD-ld} -n32"
7685: ;;
7686: *64-bit*)
7687: LD="${LD-ld} -64"
7688: ;;
7689: esac
7690: fi
7691: fi
7692: rm -rf conftest*
7693: ;;
7694:
7695: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7696: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7697: # Find out which ABI we are using.
7698: echo 'int i;' > conftest.$ac_ext
1.150 moko 7699: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7700: (eval $ac_compile) 2>&5
7701: ac_status=$?
1.150 moko 7702: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703: test $ac_status = 0; }; then
1.128 moko 7704: case `/usr/bin/file conftest.o` in
7705: *32-bit*)
7706: case $host in
7707: x86_64-*kfreebsd*-gnu)
7708: LD="${LD-ld} -m elf_i386_fbsd"
7709: ;;
7710: x86_64-*linux*)
7711: LD="${LD-ld} -m elf_i386"
7712: ;;
7713: ppc64-*linux*|powerpc64-*linux*)
7714: LD="${LD-ld} -m elf32ppclinux"
7715: ;;
7716: s390x-*linux*)
7717: LD="${LD-ld} -m elf_s390"
7718: ;;
7719: sparc64-*linux*)
7720: LD="${LD-ld} -m elf32_sparc"
7721: ;;
7722: esac
7723: ;;
7724: *64-bit*)
7725: case $host in
7726: x86_64-*kfreebsd*-gnu)
7727: LD="${LD-ld} -m elf_x86_64_fbsd"
7728: ;;
7729: x86_64-*linux*)
7730: LD="${LD-ld} -m elf_x86_64"
7731: ;;
7732: ppc*-*linux*|powerpc*-*linux*)
7733: LD="${LD-ld} -m elf64ppc"
7734: ;;
7735: s390*-*linux*|s390*-*tpf*)
7736: LD="${LD-ld} -m elf64_s390"
7737: ;;
7738: sparc*-*linux*)
7739: LD="${LD-ld} -m elf64_sparc"
7740: ;;
7741: esac
7742: ;;
7743: esac
7744: fi
7745: rm -rf conftest*
7746: ;;
7747:
7748: *-*-sco3.2v5*)
7749: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7750: SAVE_CFLAGS="$CFLAGS"
7751: CFLAGS="$CFLAGS -belf"
1.150 moko 7752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7753: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7754: if ${lt_cv_cc_needs_belf+:} false; then :
7755: $as_echo_n "(cached) " >&6
1.128 moko 7756: else
7757: ac_ext=c
7758: ac_cpp='$CPP $CPPFLAGS'
7759: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762:
1.150 moko 7763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7764: /* end confdefs.h. */
7765:
7766: int
7767: main ()
7768: {
7769:
7770: ;
7771: return 0;
7772: }
7773: _ACEOF
1.150 moko 7774: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7775: lt_cv_cc_needs_belf=yes
7776: else
1.150 moko 7777: lt_cv_cc_needs_belf=no
1.128 moko 7778: fi
1.150 moko 7779: rm -f core conftest.err conftest.$ac_objext \
7780: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7781: ac_ext=c
7782: ac_cpp='$CPP $CPPFLAGS'
7783: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786:
7787: fi
1.150 moko 7788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7789: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7790: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7791: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7792: CFLAGS="$SAVE_CFLAGS"
7793: fi
7794: ;;
7795: *-*solaris*)
7796: # Find out which ABI we are using.
7797: echo 'int i;' > conftest.$ac_ext
1.150 moko 7798: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7799: (eval $ac_compile) 2>&5
7800: ac_status=$?
1.150 moko 7801: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802: test $ac_status = 0; }; then
1.128 moko 7803: case `/usr/bin/file conftest.o` in
7804: *64-bit*)
7805: case $lt_cv_prog_gnu_ld in
7806: yes*)
7807: case $host in
7808: i?86-*-solaris*)
7809: LD="${LD-ld} -m elf_x86_64"
7810: ;;
7811: sparc*-*-solaris*)
7812: LD="${LD-ld} -m elf64_sparc"
7813: ;;
7814: esac
7815: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7816: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7817: LD="${LD-ld}_sol2"
7818: fi
7819: ;;
7820: *)
7821: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7822: LD="${LD-ld} -64"
7823: fi
7824: ;;
7825: esac
7826: ;;
7827: esac
7828: fi
7829: rm -rf conftest*
7830: ;;
7831: esac
7832:
7833: need_locks="$enable_libtool_lock"
7834:
7835: if test -n "$ac_tool_prefix"; then
7836: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7837: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7838: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839: $as_echo_n "checking for $ac_word... " >&6; }
7840: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7841: $as_echo_n "(cached) " >&6
1.128 moko 7842: else
7843: if test -n "$MANIFEST_TOOL"; then
7844: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7845: else
7846: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847: for as_dir in $PATH
7848: do
7849: IFS=$as_save_IFS
7850: test -z "$as_dir" && as_dir=.
1.150 moko 7851: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7852: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7853: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7854: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7855: break 2
7856: fi
7857: done
1.150 moko 7858: done
7859: IFS=$as_save_IFS
1.128 moko 7860:
7861: fi
7862: fi
7863: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7864: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7866: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7867: else
1.150 moko 7868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869: $as_echo "no" >&6; }
1.128 moko 7870: fi
7871:
1.150 moko 7872:
1.128 moko 7873: fi
7874: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7875: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7876: # Extract the first word of "mt", so it can be a program name with args.
7877: set dummy mt; ac_word=$2
1.150 moko 7878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879: $as_echo_n "checking for $ac_word... " >&6; }
7880: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7881: $as_echo_n "(cached) " >&6
1.128 moko 7882: else
7883: if test -n "$ac_ct_MANIFEST_TOOL"; then
7884: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7885: else
7886: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887: for as_dir in $PATH
7888: do
7889: IFS=$as_save_IFS
7890: test -z "$as_dir" && as_dir=.
1.150 moko 7891: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7892: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7893: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7894: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7895: break 2
7896: fi
7897: done
1.150 moko 7898: done
7899: IFS=$as_save_IFS
1.128 moko 7900:
7901: fi
7902: fi
7903: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7904: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7906: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7907: else
1.150 moko 7908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909: $as_echo "no" >&6; }
1.128 moko 7910: fi
7911:
1.150 moko 7912: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7913: MANIFEST_TOOL=":"
7914: else
7915: case $cross_compiling:$ac_tool_warned in
7916: yes:)
7917: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7918: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7919: ac_tool_warned=yes ;;
7920: esac
7921: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7922: fi
1.128 moko 7923: else
7924: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7925: fi
7926:
7927: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7929: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7930: if ${lt_cv_path_mainfest_tool+:} false; then :
7931: $as_echo_n "(cached) " >&6
1.128 moko 7932: else
7933: lt_cv_path_mainfest_tool=no
7934: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7935: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7936: cat conftest.err >&5
7937: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7938: lt_cv_path_mainfest_tool=yes
7939: fi
7940: rm -f conftest*
7941: fi
1.150 moko 7942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7943: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 7944: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7945: MANIFEST_TOOL=:
7946: fi
7947:
7948:
7949:
7950:
7951:
7952:
7953: case $host_os in
7954: rhapsody* | darwin*)
7955: if test -n "$ac_tool_prefix"; then
7956: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7957: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 7958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959: $as_echo_n "checking for $ac_word... " >&6; }
7960: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7961: $as_echo_n "(cached) " >&6
1.128 moko 7962: else
7963: if test -n "$DSYMUTIL"; then
7964: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7965: else
7966: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967: for as_dir in $PATH
7968: do
7969: IFS=$as_save_IFS
7970: test -z "$as_dir" && as_dir=.
1.150 moko 7971: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7972: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7973: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 7974: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7975: break 2
7976: fi
7977: done
1.150 moko 7978: done
7979: IFS=$as_save_IFS
1.128 moko 7980:
7981: fi
7982: fi
7983: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7984: if test -n "$DSYMUTIL"; then
1.150 moko 7985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7986: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 7987: else
1.150 moko 7988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989: $as_echo "no" >&6; }
1.128 moko 7990: fi
7991:
1.150 moko 7992:
1.128 moko 7993: fi
7994: if test -z "$ac_cv_prog_DSYMUTIL"; then
7995: ac_ct_DSYMUTIL=$DSYMUTIL
7996: # Extract the first word of "dsymutil", so it can be a program name with args.
7997: set dummy dsymutil; ac_word=$2
1.150 moko 7998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999: $as_echo_n "checking for $ac_word... " >&6; }
8000: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8001: $as_echo_n "(cached) " >&6
1.128 moko 8002: else
8003: if test -n "$ac_ct_DSYMUTIL"; then
8004: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8005: else
8006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007: for as_dir in $PATH
8008: do
8009: IFS=$as_save_IFS
8010: test -z "$as_dir" && as_dir=.
1.150 moko 8011: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8012: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8013: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 8014: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8015: break 2
8016: fi
8017: done
1.150 moko 8018: done
8019: IFS=$as_save_IFS
1.128 moko 8020:
8021: fi
8022: fi
8023: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8024: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 8025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8026: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 8027: else
1.150 moko 8028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029: $as_echo "no" >&6; }
1.128 moko 8030: fi
8031:
1.150 moko 8032: if test "x$ac_ct_DSYMUTIL" = x; then
8033: DSYMUTIL=":"
8034: else
8035: case $cross_compiling:$ac_tool_warned in
8036: yes:)
8037: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8038: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8039: ac_tool_warned=yes ;;
8040: esac
8041: DSYMUTIL=$ac_ct_DSYMUTIL
8042: fi
1.128 moko 8043: else
8044: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8045: fi
8046:
8047: if test -n "$ac_tool_prefix"; then
8048: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8049: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 8050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051: $as_echo_n "checking for $ac_word... " >&6; }
8052: if ${ac_cv_prog_NMEDIT+:} false; then :
8053: $as_echo_n "(cached) " >&6
1.128 moko 8054: else
8055: if test -n "$NMEDIT"; then
8056: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8057: else
8058: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059: for as_dir in $PATH
8060: do
8061: IFS=$as_save_IFS
8062: test -z "$as_dir" && as_dir=.
1.150 moko 8063: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8064: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8065: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 8066: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8067: break 2
8068: fi
8069: done
1.150 moko 8070: done
8071: IFS=$as_save_IFS
1.128 moko 8072:
8073: fi
8074: fi
8075: NMEDIT=$ac_cv_prog_NMEDIT
8076: if test -n "$NMEDIT"; then
1.150 moko 8077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8078: $as_echo "$NMEDIT" >&6; }
1.128 moko 8079: else
1.150 moko 8080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081: $as_echo "no" >&6; }
1.128 moko 8082: fi
8083:
1.150 moko 8084:
1.128 moko 8085: fi
8086: if test -z "$ac_cv_prog_NMEDIT"; then
8087: ac_ct_NMEDIT=$NMEDIT
8088: # Extract the first word of "nmedit", so it can be a program name with args.
8089: set dummy nmedit; ac_word=$2
1.150 moko 8090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091: $as_echo_n "checking for $ac_word... " >&6; }
8092: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8093: $as_echo_n "(cached) " >&6
1.128 moko 8094: else
8095: if test -n "$ac_ct_NMEDIT"; then
8096: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8097: else
8098: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099: for as_dir in $PATH
8100: do
8101: IFS=$as_save_IFS
8102: test -z "$as_dir" && as_dir=.
1.150 moko 8103: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8104: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8105: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 8106: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8107: break 2
8108: fi
8109: done
1.150 moko 8110: done
8111: IFS=$as_save_IFS
1.128 moko 8112:
8113: fi
8114: fi
8115: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8116: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 8117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8118: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 8119: else
1.150 moko 8120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121: $as_echo "no" >&6; }
1.128 moko 8122: fi
8123:
1.150 moko 8124: if test "x$ac_ct_NMEDIT" = x; then
8125: NMEDIT=":"
8126: else
8127: case $cross_compiling:$ac_tool_warned in
8128: yes:)
8129: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8130: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8131: ac_tool_warned=yes ;;
8132: esac
8133: NMEDIT=$ac_ct_NMEDIT
8134: fi
1.128 moko 8135: else
8136: NMEDIT="$ac_cv_prog_NMEDIT"
8137: fi
8138:
8139: if test -n "$ac_tool_prefix"; then
8140: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8141: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 8142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143: $as_echo_n "checking for $ac_word... " >&6; }
8144: if ${ac_cv_prog_LIPO+:} false; then :
8145: $as_echo_n "(cached) " >&6
1.128 moko 8146: else
8147: if test -n "$LIPO"; then
8148: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8149: else
8150: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151: for as_dir in $PATH
8152: do
8153: IFS=$as_save_IFS
8154: test -z "$as_dir" && as_dir=.
1.150 moko 8155: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8156: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8157: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 8158: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8159: break 2
8160: fi
8161: done
1.150 moko 8162: done
8163: IFS=$as_save_IFS
1.128 moko 8164:
8165: fi
8166: fi
8167: LIPO=$ac_cv_prog_LIPO
8168: if test -n "$LIPO"; then
1.150 moko 8169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8170: $as_echo "$LIPO" >&6; }
1.128 moko 8171: else
1.150 moko 8172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173: $as_echo "no" >&6; }
1.128 moko 8174: fi
8175:
1.150 moko 8176:
1.128 moko 8177: fi
8178: if test -z "$ac_cv_prog_LIPO"; then
8179: ac_ct_LIPO=$LIPO
8180: # Extract the first word of "lipo", so it can be a program name with args.
8181: set dummy lipo; ac_word=$2
1.150 moko 8182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183: $as_echo_n "checking for $ac_word... " >&6; }
8184: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8185: $as_echo_n "(cached) " >&6
1.128 moko 8186: else
8187: if test -n "$ac_ct_LIPO"; then
8188: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8189: else
8190: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191: for as_dir in $PATH
8192: do
8193: IFS=$as_save_IFS
8194: test -z "$as_dir" && as_dir=.
1.150 moko 8195: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8196: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8197: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 8198: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8199: break 2
8200: fi
8201: done
1.150 moko 8202: done
8203: IFS=$as_save_IFS
1.128 moko 8204:
8205: fi
8206: fi
8207: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8208: if test -n "$ac_ct_LIPO"; then
1.150 moko 8209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8210: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 8211: else
1.150 moko 8212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213: $as_echo "no" >&6; }
1.128 moko 8214: fi
8215:
1.150 moko 8216: if test "x$ac_ct_LIPO" = x; then
8217: LIPO=":"
8218: else
8219: case $cross_compiling:$ac_tool_warned in
8220: yes:)
8221: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8222: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8223: ac_tool_warned=yes ;;
8224: esac
8225: LIPO=$ac_ct_LIPO
8226: fi
1.128 moko 8227: else
8228: LIPO="$ac_cv_prog_LIPO"
8229: fi
8230:
8231: if test -n "$ac_tool_prefix"; then
8232: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8233: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 8234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235: $as_echo_n "checking for $ac_word... " >&6; }
8236: if ${ac_cv_prog_OTOOL+:} false; then :
8237: $as_echo_n "(cached) " >&6
1.128 moko 8238: else
8239: if test -n "$OTOOL"; then
8240: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8241: else
8242: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243: for as_dir in $PATH
8244: do
8245: IFS=$as_save_IFS
8246: test -z "$as_dir" && as_dir=.
1.150 moko 8247: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8248: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8249: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 8250: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8251: break 2
8252: fi
8253: done
1.150 moko 8254: done
8255: IFS=$as_save_IFS
1.128 moko 8256:
8257: fi
8258: fi
8259: OTOOL=$ac_cv_prog_OTOOL
8260: if test -n "$OTOOL"; then
1.150 moko 8261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8262: $as_echo "$OTOOL" >&6; }
1.128 moko 8263: else
1.150 moko 8264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265: $as_echo "no" >&6; }
1.128 moko 8266: fi
8267:
1.150 moko 8268:
1.128 moko 8269: fi
8270: if test -z "$ac_cv_prog_OTOOL"; then
8271: ac_ct_OTOOL=$OTOOL
8272: # Extract the first word of "otool", so it can be a program name with args.
8273: set dummy otool; ac_word=$2
1.150 moko 8274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275: $as_echo_n "checking for $ac_word... " >&6; }
8276: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8277: $as_echo_n "(cached) " >&6
1.128 moko 8278: else
8279: if test -n "$ac_ct_OTOOL"; then
8280: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8281: else
8282: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283: for as_dir in $PATH
8284: do
8285: IFS=$as_save_IFS
8286: test -z "$as_dir" && as_dir=.
1.150 moko 8287: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8288: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8289: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 8290: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8291: break 2
8292: fi
8293: done
1.150 moko 8294: done
8295: IFS=$as_save_IFS
1.128 moko 8296:
8297: fi
8298: fi
8299: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8300: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8302: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8303: else
1.150 moko 8304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305: $as_echo "no" >&6; }
1.128 moko 8306: fi
8307:
1.150 moko 8308: if test "x$ac_ct_OTOOL" = x; then
8309: OTOOL=":"
8310: else
8311: case $cross_compiling:$ac_tool_warned in
8312: yes:)
8313: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315: ac_tool_warned=yes ;;
8316: esac
8317: OTOOL=$ac_ct_OTOOL
8318: fi
1.128 moko 8319: else
8320: OTOOL="$ac_cv_prog_OTOOL"
8321: fi
8322:
8323: if test -n "$ac_tool_prefix"; then
8324: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8325: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327: $as_echo_n "checking for $ac_word... " >&6; }
8328: if ${ac_cv_prog_OTOOL64+:} false; then :
8329: $as_echo_n "(cached) " >&6
1.128 moko 8330: else
8331: if test -n "$OTOOL64"; then
8332: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8333: else
8334: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335: for as_dir in $PATH
8336: do
8337: IFS=$as_save_IFS
8338: test -z "$as_dir" && as_dir=.
1.150 moko 8339: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8340: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8341: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8342: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8343: break 2
8344: fi
8345: done
1.150 moko 8346: done
8347: IFS=$as_save_IFS
1.128 moko 8348:
8349: fi
8350: fi
8351: OTOOL64=$ac_cv_prog_OTOOL64
8352: if test -n "$OTOOL64"; then
1.150 moko 8353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8354: $as_echo "$OTOOL64" >&6; }
1.128 moko 8355: else
1.150 moko 8356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357: $as_echo "no" >&6; }
1.128 moko 8358: fi
8359:
1.150 moko 8360:
1.128 moko 8361: fi
8362: if test -z "$ac_cv_prog_OTOOL64"; then
8363: ac_ct_OTOOL64=$OTOOL64
8364: # Extract the first word of "otool64", so it can be a program name with args.
8365: set dummy otool64; ac_word=$2
1.150 moko 8366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367: $as_echo_n "checking for $ac_word... " >&6; }
8368: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8369: $as_echo_n "(cached) " >&6
1.128 moko 8370: else
8371: if test -n "$ac_ct_OTOOL64"; then
8372: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8373: else
8374: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375: for as_dir in $PATH
8376: do
8377: IFS=$as_save_IFS
8378: test -z "$as_dir" && as_dir=.
1.150 moko 8379: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8380: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8381: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8382: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8383: break 2
8384: fi
8385: done
1.150 moko 8386: done
8387: IFS=$as_save_IFS
1.128 moko 8388:
8389: fi
8390: fi
8391: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8392: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8394: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8395: else
1.150 moko 8396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397: $as_echo "no" >&6; }
1.128 moko 8398: fi
8399:
1.150 moko 8400: if test "x$ac_ct_OTOOL64" = x; then
8401: OTOOL64=":"
8402: else
8403: case $cross_compiling:$ac_tool_warned in
8404: yes:)
8405: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8406: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8407: ac_tool_warned=yes ;;
8408: esac
8409: OTOOL64=$ac_ct_OTOOL64
8410: fi
1.128 moko 8411: else
8412: OTOOL64="$ac_cv_prog_OTOOL64"
8413: fi
8414:
8415:
8416:
8417:
8418:
8419:
8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
8432:
8433:
8434:
8435:
8436:
8437:
8438:
8439:
8440:
1.150 moko 8441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8442: $as_echo_n "checking for -single_module linker flag... " >&6; }
8443: if ${lt_cv_apple_cc_single_mod+:} false; then :
8444: $as_echo_n "(cached) " >&6
1.128 moko 8445: else
8446: lt_cv_apple_cc_single_mod=no
8447: if test -z "${LT_MULTI_MODULE}"; then
8448: # By default we will add the -single_module flag. You can override
8449: # by either setting the environment variable LT_MULTI_MODULE
8450: # non-empty at configure time, or by adding -multi_module to the
8451: # link flags.
8452: rm -rf libconftest.dylib*
8453: echo "int foo(void){return 1;}" > conftest.c
8454: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8455: -dynamiclib -Wl,-single_module conftest.c" >&5
8456: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8457: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8458: _lt_result=$?
8459: # If there is a non-empty error log, and "single_module"
8460: # appears in it, assume the flag caused a linker warning
8461: if test -s conftest.err && $GREP single_module conftest.err; then
8462: cat conftest.err >&5
8463: # Otherwise, if the output was created with a 0 exit code from
8464: # the compiler, it worked.
8465: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8466: lt_cv_apple_cc_single_mod=yes
8467: else
8468: cat conftest.err >&5
8469: fi
8470: rm -rf libconftest.dylib*
8471: rm -f conftest.*
8472: fi
8473: fi
1.150 moko 8474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8475: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8476:
1.150 moko 8477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8478: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8479: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8480: $as_echo_n "(cached) " >&6
1.128 moko 8481: else
8482: lt_cv_ld_exported_symbols_list=no
8483: save_LDFLAGS=$LDFLAGS
8484: echo "_main" > conftest.sym
8485: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8486: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8487: /* end confdefs.h. */
8488:
8489: int
8490: main ()
8491: {
8492:
8493: ;
8494: return 0;
8495: }
8496: _ACEOF
1.150 moko 8497: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8498: lt_cv_ld_exported_symbols_list=yes
8499: else
1.150 moko 8500: lt_cv_ld_exported_symbols_list=no
1.128 moko 8501: fi
1.150 moko 8502: rm -f core conftest.err conftest.$ac_objext \
8503: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8504: LDFLAGS="$save_LDFLAGS"
8505:
8506: fi
1.150 moko 8507: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8508: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8509:
1.150 moko 8510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8511: $as_echo_n "checking for -force_load linker flag... " >&6; }
8512: if ${lt_cv_ld_force_load+:} false; then :
8513: $as_echo_n "(cached) " >&6
1.128 moko 8514: else
8515: lt_cv_ld_force_load=no
8516: cat > conftest.c << _LT_EOF
8517: int forced_loaded() { return 2;}
8518: _LT_EOF
8519: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8520: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8521: echo "$AR cru libconftest.a conftest.o" >&5
8522: $AR cru libconftest.a conftest.o 2>&5
8523: echo "$RANLIB libconftest.a" >&5
8524: $RANLIB libconftest.a 2>&5
8525: cat > conftest.c << _LT_EOF
8526: int main() { return 0;}
8527: _LT_EOF
8528: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8529: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8530: _lt_result=$?
8531: if test -s conftest.err && $GREP force_load conftest.err; then
8532: cat conftest.err >&5
8533: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8534: lt_cv_ld_force_load=yes
8535: else
8536: cat conftest.err >&5
8537: fi
8538: rm -f conftest.err libconftest.a conftest conftest.c
8539: rm -rf conftest.dSYM
8540:
8541: fi
1.150 moko 8542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8543: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8544: case $host_os in
8545: rhapsody* | darwin1.[012])
8546: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8547: darwin1.*)
8548: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8549: darwin*) # darwin 5.x on
8550: # if running on 10.5 or later, the deployment target defaults
8551: # to the OS version, if on x86, and 10.4, the deployment
8552: # target defaults to 10.4. Don't you love it?
8553: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8554: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8555: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8556: 10.[012]*)
8557: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8558: 10.*)
8559: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8560: esac
8561: ;;
8562: esac
8563: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8564: _lt_dar_single_mod='$single_module'
8565: fi
8566: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8567: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8568: else
8569: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8570: fi
8571: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8572: _lt_dsymutil='~$DSYMUTIL $lib || :'
8573: else
8574: _lt_dsymutil=
8575: fi
8576: ;;
8577: esac
8578:
8579: ac_ext=c
8580: ac_cpp='$CPP $CPPFLAGS'
8581: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8582: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8583: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8585: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8586: # On Suns, sometimes $CPP names a directory.
8587: if test -n "$CPP" && test -d "$CPP"; then
8588: CPP=
8589: fi
8590: if test -z "$CPP"; then
1.150 moko 8591: if ${ac_cv_prog_CPP+:} false; then :
8592: $as_echo_n "(cached) " >&6
1.128 moko 8593: else
8594: # Double quotes because CPP needs to be expanded
8595: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8596: do
8597: ac_preproc_ok=false
8598: for ac_c_preproc_warn_flag in '' yes
8599: do
8600: # Use a header file that comes with gcc, so configuring glibc
8601: # with a fresh cross-compiler works.
8602: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8603: # <limits.h> exists even on freestanding compilers.
8604: # On the NeXT, cc -E runs the code through the compiler's parser,
8605: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8607: /* end confdefs.h. */
8608: #ifdef __STDC__
8609: # include <limits.h>
8610: #else
8611: # include <assert.h>
8612: #endif
8613: Syntax error
8614: _ACEOF
1.150 moko 8615: if ac_fn_c_try_cpp "$LINENO"; then :
8616:
1.128 moko 8617: else
8618: # Broken: fails on valid input.
8619: continue
8620: fi
1.150 moko 8621: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8622:
1.150 moko 8623: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8624: # can be detected and how.
1.150 moko 8625: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8626: /* end confdefs.h. */
8627: #include <ac_nonexistent.h>
8628: _ACEOF
1.150 moko 8629: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8630: # Broken: success on invalid input.
8631: continue
8632: else
8633: # Passes both tests.
8634: ac_preproc_ok=:
8635: break
8636: fi
1.150 moko 8637: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8638:
8639: done
8640: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8641: rm -f conftest.i conftest.err conftest.$ac_ext
8642: if $ac_preproc_ok; then :
1.128 moko 8643: break
8644: fi
8645:
8646: done
8647: ac_cv_prog_CPP=$CPP
8648:
8649: fi
8650: CPP=$ac_cv_prog_CPP
8651: else
8652: ac_cv_prog_CPP=$CPP
8653: fi
1.150 moko 8654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8655: $as_echo "$CPP" >&6; }
1.128 moko 8656: ac_preproc_ok=false
8657: for ac_c_preproc_warn_flag in '' yes
8658: do
8659: # Use a header file that comes with gcc, so configuring glibc
8660: # with a fresh cross-compiler works.
8661: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8662: # <limits.h> exists even on freestanding compilers.
8663: # On the NeXT, cc -E runs the code through the compiler's parser,
8664: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8666: /* end confdefs.h. */
8667: #ifdef __STDC__
8668: # include <limits.h>
8669: #else
8670: # include <assert.h>
8671: #endif
8672: Syntax error
8673: _ACEOF
1.150 moko 8674: if ac_fn_c_try_cpp "$LINENO"; then :
8675:
1.128 moko 8676: else
8677: # Broken: fails on valid input.
8678: continue
8679: fi
1.150 moko 8680: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8681:
1.150 moko 8682: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8683: # can be detected and how.
1.150 moko 8684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8685: /* end confdefs.h. */
8686: #include <ac_nonexistent.h>
8687: _ACEOF
1.150 moko 8688: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8689: # Broken: success on invalid input.
8690: continue
8691: else
8692: # Passes both tests.
8693: ac_preproc_ok=:
8694: break
8695: fi
1.150 moko 8696: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8697:
8698: done
8699: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8700: rm -f conftest.i conftest.err conftest.$ac_ext
8701: if $ac_preproc_ok; then :
8702:
1.128 moko 8703: else
1.150 moko 8704: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8705: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8706: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8707: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8708: fi
8709:
8710: ac_ext=c
8711: ac_cpp='$CPP $CPPFLAGS'
8712: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715:
8716:
1.150 moko 8717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8718: $as_echo_n "checking for ANSI C header files... " >&6; }
8719: if ${ac_cv_header_stdc+:} false; then :
8720: $as_echo_n "(cached) " >&6
1.128 moko 8721: else
1.150 moko 8722: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8723: /* end confdefs.h. */
8724: #include <stdlib.h>
8725: #include <stdarg.h>
8726: #include <string.h>
8727: #include <float.h>
8728:
8729: int
8730: main ()
8731: {
8732:
8733: ;
8734: return 0;
8735: }
8736: _ACEOF
1.150 moko 8737: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8738: ac_cv_header_stdc=yes
8739: else
1.150 moko 8740: ac_cv_header_stdc=no
1.128 moko 8741: fi
1.150 moko 8742: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8743:
8744: if test $ac_cv_header_stdc = yes; then
8745: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8747: /* end confdefs.h. */
8748: #include <string.h>
8749:
8750: _ACEOF
8751: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8752: $EGREP "memchr" >/dev/null 2>&1; then :
8753:
1.128 moko 8754: else
8755: ac_cv_header_stdc=no
8756: fi
8757: rm -f conftest*
8758:
8759: fi
8760:
8761: if test $ac_cv_header_stdc = yes; then
8762: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8764: /* end confdefs.h. */
8765: #include <stdlib.h>
8766:
8767: _ACEOF
8768: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8769: $EGREP "free" >/dev/null 2>&1; then :
8770:
1.128 moko 8771: else
8772: ac_cv_header_stdc=no
8773: fi
8774: rm -f conftest*
8775:
8776: fi
8777:
8778: if test $ac_cv_header_stdc = yes; then
8779: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8780: if test "$cross_compiling" = yes; then :
1.128 moko 8781: :
8782: else
1.150 moko 8783: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8784: /* end confdefs.h. */
8785: #include <ctype.h>
1.150 moko 8786: #include <stdlib.h>
1.128 moko 8787: #if ((' ' & 0x0FF) == 0x020)
8788: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8789: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8790: #else
8791: # define ISLOWER(c) \
8792: (('a' <= (c) && (c) <= 'i') \
8793: || ('j' <= (c) && (c) <= 'r') \
8794: || ('s' <= (c) && (c) <= 'z'))
8795: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8796: #endif
8797:
8798: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8799: int
8800: main ()
8801: {
8802: int i;
8803: for (i = 0; i < 256; i++)
8804: if (XOR (islower (i), ISLOWER (i))
8805: || toupper (i) != TOUPPER (i))
1.150 moko 8806: return 2;
8807: return 0;
1.128 moko 8808: }
8809: _ACEOF
1.150 moko 8810: if ac_fn_c_try_run "$LINENO"; then :
8811:
1.128 moko 8812: else
1.150 moko 8813: ac_cv_header_stdc=no
1.128 moko 8814: fi
1.150 moko 8815: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8816: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8817: fi
1.150 moko 8818:
1.128 moko 8819: fi
8820: fi
1.150 moko 8821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8822: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8823: if test $ac_cv_header_stdc = yes; then
8824:
1.150 moko 8825: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8826:
8827: fi
8828:
8829: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8830: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8831: inttypes.h stdint.h unistd.h
8832: do :
8833: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8834: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8835: "
8836: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8837: cat >>confdefs.h <<_ACEOF
8838: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8839: _ACEOF
1.128 moko 8840:
1.150 moko 8841: fi
1.128 moko 8842:
1.150 moko 8843: done
1.128 moko 8844:
8845:
1.150 moko 8846: for ac_header in dlfcn.h
8847: do :
8848: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8849: "
8850: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8851: cat >>confdefs.h <<_ACEOF
8852: #define HAVE_DLFCN_H 1
8853: _ACEOF
1.128 moko 8854:
1.150 moko 8855: fi
1.128 moko 8856:
1.150 moko 8857: done
1.128 moko 8858:
8859:
8860:
8861:
1.150 moko 8862: func_stripname_cnf ()
8863: {
8864: case ${2} in
8865: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8866: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8867: esac
8868: } # func_stripname_cnf
1.128 moko 8869:
8870:
8871:
8872:
8873:
8874: # Set options
8875: enable_dlopen=yes
8876: enable_win32_dll=yes
8877:
8878: case $host in
8879: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8880: if test -n "$ac_tool_prefix"; then
8881: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8882: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8883: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884: $as_echo_n "checking for $ac_word... " >&6; }
8885: if ${ac_cv_prog_AS+:} false; then :
8886: $as_echo_n "(cached) " >&6
1.128 moko 8887: else
8888: if test -n "$AS"; then
8889: ac_cv_prog_AS="$AS" # Let the user override the test.
8890: else
8891: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892: for as_dir in $PATH
8893: do
8894: IFS=$as_save_IFS
8895: test -z "$as_dir" && as_dir=.
1.150 moko 8896: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8897: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8898: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8899: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8900: break 2
8901: fi
8902: done
1.150 moko 8903: done
8904: IFS=$as_save_IFS
1.128 moko 8905:
8906: fi
8907: fi
8908: AS=$ac_cv_prog_AS
8909: if test -n "$AS"; then
1.150 moko 8910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8911: $as_echo "$AS" >&6; }
1.128 moko 8912: else
1.150 moko 8913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914: $as_echo "no" >&6; }
1.128 moko 8915: fi
8916:
1.150 moko 8917:
1.128 moko 8918: fi
8919: if test -z "$ac_cv_prog_AS"; then
8920: ac_ct_AS=$AS
8921: # Extract the first word of "as", so it can be a program name with args.
8922: set dummy as; ac_word=$2
1.150 moko 8923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924: $as_echo_n "checking for $ac_word... " >&6; }
8925: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8926: $as_echo_n "(cached) " >&6
1.128 moko 8927: else
8928: if test -n "$ac_ct_AS"; then
8929: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8930: else
8931: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932: for as_dir in $PATH
8933: do
8934: IFS=$as_save_IFS
8935: test -z "$as_dir" && as_dir=.
1.150 moko 8936: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8937: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8938: ac_cv_prog_ac_ct_AS="as"
1.150 moko 8939: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8940: break 2
8941: fi
8942: done
1.150 moko 8943: done
8944: IFS=$as_save_IFS
1.128 moko 8945:
8946: fi
8947: fi
8948: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8949: if test -n "$ac_ct_AS"; then
1.150 moko 8950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8951: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 8952: else
1.150 moko 8953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954: $as_echo "no" >&6; }
1.128 moko 8955: fi
8956:
1.150 moko 8957: if test "x$ac_ct_AS" = x; then
8958: AS="false"
8959: else
8960: case $cross_compiling:$ac_tool_warned in
8961: yes:)
8962: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8963: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8964: ac_tool_warned=yes ;;
8965: esac
8966: AS=$ac_ct_AS
8967: fi
1.128 moko 8968: else
8969: AS="$ac_cv_prog_AS"
8970: fi
8971:
8972: if test -n "$ac_tool_prefix"; then
8973: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8974: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 8975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976: $as_echo_n "checking for $ac_word... " >&6; }
8977: if ${ac_cv_prog_DLLTOOL+:} false; then :
8978: $as_echo_n "(cached) " >&6
1.128 moko 8979: else
8980: if test -n "$DLLTOOL"; then
8981: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8982: else
8983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984: for as_dir in $PATH
8985: do
8986: IFS=$as_save_IFS
8987: test -z "$as_dir" && as_dir=.
1.150 moko 8988: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8989: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8990: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 8991: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8992: break 2
8993: fi
8994: done
1.150 moko 8995: done
8996: IFS=$as_save_IFS
1.128 moko 8997:
8998: fi
8999: fi
9000: DLLTOOL=$ac_cv_prog_DLLTOOL
9001: if test -n "$DLLTOOL"; then
1.150 moko 9002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9003: $as_echo "$DLLTOOL" >&6; }
1.128 moko 9004: else
1.150 moko 9005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006: $as_echo "no" >&6; }
1.128 moko 9007: fi
9008:
1.150 moko 9009:
1.128 moko 9010: fi
9011: if test -z "$ac_cv_prog_DLLTOOL"; then
9012: ac_ct_DLLTOOL=$DLLTOOL
9013: # Extract the first word of "dlltool", so it can be a program name with args.
9014: set dummy dlltool; ac_word=$2
1.150 moko 9015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016: $as_echo_n "checking for $ac_word... " >&6; }
9017: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9018: $as_echo_n "(cached) " >&6
1.128 moko 9019: else
9020: if test -n "$ac_ct_DLLTOOL"; then
9021: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9022: else
9023: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024: for as_dir in $PATH
9025: do
9026: IFS=$as_save_IFS
9027: test -z "$as_dir" && as_dir=.
1.150 moko 9028: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9029: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9030: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 9031: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9032: break 2
9033: fi
9034: done
1.150 moko 9035: done
9036: IFS=$as_save_IFS
1.128 moko 9037:
9038: fi
9039: fi
9040: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9041: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 9042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9043: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 9044: else
1.150 moko 9045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046: $as_echo "no" >&6; }
1.128 moko 9047: fi
9048:
1.150 moko 9049: if test "x$ac_ct_DLLTOOL" = x; then
9050: DLLTOOL="false"
9051: else
9052: case $cross_compiling:$ac_tool_warned in
9053: yes:)
9054: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9055: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9056: ac_tool_warned=yes ;;
9057: esac
9058: DLLTOOL=$ac_ct_DLLTOOL
9059: fi
1.128 moko 9060: else
9061: DLLTOOL="$ac_cv_prog_DLLTOOL"
9062: fi
9063:
9064: if test -n "$ac_tool_prefix"; then
9065: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9066: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 9067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9068: $as_echo_n "checking for $ac_word... " >&6; }
9069: if ${ac_cv_prog_OBJDUMP+:} false; then :
9070: $as_echo_n "(cached) " >&6
1.128 moko 9071: else
9072: if test -n "$OBJDUMP"; then
9073: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9074: else
9075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076: for as_dir in $PATH
9077: do
9078: IFS=$as_save_IFS
9079: test -z "$as_dir" && as_dir=.
1.150 moko 9080: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9081: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9082: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 9083: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9084: break 2
9085: fi
9086: done
1.150 moko 9087: done
9088: IFS=$as_save_IFS
1.128 moko 9089:
9090: fi
9091: fi
9092: OBJDUMP=$ac_cv_prog_OBJDUMP
9093: if test -n "$OBJDUMP"; then
1.150 moko 9094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9095: $as_echo "$OBJDUMP" >&6; }
1.128 moko 9096: else
1.150 moko 9097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098: $as_echo "no" >&6; }
1.128 moko 9099: fi
9100:
1.150 moko 9101:
1.128 moko 9102: fi
9103: if test -z "$ac_cv_prog_OBJDUMP"; then
9104: ac_ct_OBJDUMP=$OBJDUMP
9105: # Extract the first word of "objdump", so it can be a program name with args.
9106: set dummy objdump; ac_word=$2
1.150 moko 9107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108: $as_echo_n "checking for $ac_word... " >&6; }
9109: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9110: $as_echo_n "(cached) " >&6
1.128 moko 9111: else
9112: if test -n "$ac_ct_OBJDUMP"; then
9113: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9114: else
9115: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116: for as_dir in $PATH
9117: do
9118: IFS=$as_save_IFS
9119: test -z "$as_dir" && as_dir=.
1.150 moko 9120: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9121: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9122: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 9123: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9124: break 2
9125: fi
9126: done
1.150 moko 9127: done
9128: IFS=$as_save_IFS
1.128 moko 9129:
9130: fi
9131: fi
9132: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9133: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 9134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9135: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 9136: else
1.150 moko 9137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138: $as_echo "no" >&6; }
1.128 moko 9139: fi
9140:
1.150 moko 9141: if test "x$ac_ct_OBJDUMP" = x; then
9142: OBJDUMP="false"
9143: else
9144: case $cross_compiling:$ac_tool_warned in
9145: yes:)
9146: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9147: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9148: ac_tool_warned=yes ;;
9149: esac
9150: OBJDUMP=$ac_ct_OBJDUMP
9151: fi
1.128 moko 9152: else
9153: OBJDUMP="$ac_cv_prog_OBJDUMP"
9154: fi
9155:
9156: ;;
9157: esac
9158:
9159: test -z "$AS" && AS=as
9160:
9161:
9162:
9163:
9164:
9165: test -z "$DLLTOOL" && DLLTOOL=dlltool
9166:
9167:
9168:
9169:
9170:
9171: test -z "$OBJDUMP" && OBJDUMP=objdump
9172:
9173:
9174:
9175:
9176:
1.150 moko 9177: # Check whether --with-pic was given.
9178: if test "${with_pic+set}" = set; then :
9179: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 9180: case $withval in
9181: yes|no) pic_mode=$withval ;;
9182: *)
9183: pic_mode=default
9184: # Look at the argument we got. We use all the common list separators.
9185: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9186: for lt_pkg in $withval; do
9187: IFS="$lt_save_ifs"
9188: if test "X$lt_pkg" = "X$lt_p"; then
9189: pic_mode=yes
9190: fi
9191: done
9192: IFS="$lt_save_ifs"
9193: ;;
9194: esac
9195: else
9196: pic_mode=default
1.150 moko 9197: fi
9198:
1.145 moko 9199:
9200: test -z "$pic_mode" && pic_mode=no
9201:
9202:
9203:
9204:
9205:
9206:
1.128 moko 9207:
9208:
9209:
9210:
1.150 moko 9211: # Check whether --enable-shared was given.
9212: if test "${enable_shared+set}" = set; then :
9213: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 9214: case $enableval in
9215: yes) enable_shared=yes ;;
9216: no) enable_shared=no ;;
9217: *)
9218: enable_shared=no
9219: # Look at the argument we got. We use all the common list separators.
9220: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9221: for pkg in $enableval; do
9222: IFS="$lt_save_ifs"
9223: if test "X$pkg" = "X$p"; then
9224: enable_shared=yes
9225: fi
9226: done
9227: IFS="$lt_save_ifs"
9228: ;;
9229: esac
9230: else
9231: enable_shared=yes
1.150 moko 9232: fi
9233:
1.128 moko 9234:
9235:
9236:
9237:
9238:
9239:
9240:
9241:
1.150 moko 9242: # Check whether --enable-static was given.
9243: if test "${enable_static+set}" = set; then :
9244: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 9245: case $enableval in
9246: yes) enable_static=yes ;;
9247: no) enable_static=no ;;
9248: *)
9249: enable_static=no
9250: # Look at the argument we got. We use all the common list separators.
9251: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9252: for pkg in $enableval; do
9253: IFS="$lt_save_ifs"
9254: if test "X$pkg" = "X$p"; then
9255: enable_static=yes
9256: fi
9257: done
9258: IFS="$lt_save_ifs"
9259: ;;
9260: esac
9261: else
9262: enable_static=yes
1.150 moko 9263: fi
9264:
1.138 moko 9265:
9266:
9267:
9268:
9269:
9270:
9271:
1.128 moko 9272:
9273:
1.150 moko 9274: # Check whether --enable-fast-install was given.
9275: if test "${enable_fast_install+set}" = set; then :
9276: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 9277: case $enableval in
9278: yes) enable_fast_install=yes ;;
9279: no) enable_fast_install=no ;;
9280: *)
9281: enable_fast_install=no
9282: # Look at the argument we got. We use all the common list separators.
9283: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9284: for pkg in $enableval; do
9285: IFS="$lt_save_ifs"
9286: if test "X$pkg" = "X$p"; then
9287: enable_fast_install=yes
9288: fi
9289: done
9290: IFS="$lt_save_ifs"
9291: ;;
9292: esac
9293: else
9294: enable_fast_install=yes
1.150 moko 9295: fi
9296:
1.128 moko 9297:
9298:
9299:
9300:
9301:
9302:
9303:
9304:
9305:
9306:
9307: # This can be used to rebuild libtool when needed
9308: LIBTOOL_DEPS="$ltmain"
9309:
9310: # Always use our own libtool.
9311: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9312:
9313:
9314:
9315:
9316:
9317:
9318:
9319:
9320:
9321:
9322:
9323:
9324:
9325:
9326:
9327:
9328:
9329:
9330:
9331:
9332:
9333:
9334:
9335:
9336:
9337:
9338:
9339:
9340:
9341:
9342: test -z "$LN_S" && LN_S="ln -s"
9343:
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351:
9352:
9353:
9354:
9355:
9356:
9357: if test -n "${ZSH_VERSION+set}" ; then
9358: setopt NO_GLOB_SUBST
9359: fi
9360:
1.150 moko 9361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9362: $as_echo_n "checking for objdir... " >&6; }
9363: if ${lt_cv_objdir+:} false; then :
9364: $as_echo_n "(cached) " >&6
1.128 moko 9365: else
9366: rm -f .libs 2>/dev/null
9367: mkdir .libs 2>/dev/null
9368: if test -d .libs; then
9369: lt_cv_objdir=.libs
9370: else
9371: # MS-DOS does not allow filenames that begin with a dot.
9372: lt_cv_objdir=_libs
9373: fi
9374: rmdir .libs 2>/dev/null
9375: fi
1.150 moko 9376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9377: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9378: objdir=$lt_cv_objdir
9379:
9380:
9381:
9382:
9383:
9384: cat >>confdefs.h <<_ACEOF
9385: #define LT_OBJDIR "$lt_cv_objdir/"
9386: _ACEOF
9387:
9388:
9389:
9390:
9391: case $host_os in
9392: aix3*)
9393: # AIX sometimes has problems with the GCC collect2 program. For some
9394: # reason, if we set the COLLECT_NAMES environment variable, the problems
9395: # vanish in a puff of smoke.
9396: if test "X${COLLECT_NAMES+set}" != Xset; then
9397: COLLECT_NAMES=
9398: export COLLECT_NAMES
9399: fi
9400: ;;
9401: esac
9402:
9403: # Global variables:
9404: ofile=libtool
9405: can_build_shared=yes
9406:
9407: # All known linkers require a `.a' archive for static linking (except MSVC,
9408: # which needs '.lib').
9409: libext=a
9410:
9411: with_gnu_ld="$lt_cv_prog_gnu_ld"
9412:
9413: old_CC="$CC"
9414: old_CFLAGS="$CFLAGS"
9415:
9416: # Set sane defaults for various variables
9417: test -z "$CC" && CC=cc
9418: test -z "$LTCC" && LTCC=$CC
9419: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9420: test -z "$LD" && LD=ld
9421: test -z "$ac_objext" && ac_objext=o
9422:
9423: for cc_temp in $compiler""; do
9424: case $cc_temp in
9425: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9426: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9427: \-*) ;;
9428: *) break;;
9429: esac
9430: done
9431: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9432:
9433:
9434: # Only perform the check for file, if the check method requires it
9435: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9436: case $deplibs_check_method in
9437: file_magic*)
9438: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9440: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9441: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9442: $as_echo_n "(cached) " >&6
1.128 moko 9443: else
9444: case $MAGIC_CMD in
9445: [\\/*] | ?:[\\/]*)
9446: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9447: ;;
9448: *)
9449: lt_save_MAGIC_CMD="$MAGIC_CMD"
9450: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9451: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9452: for ac_dir in $ac_dummy; do
9453: IFS="$lt_save_ifs"
9454: test -z "$ac_dir" && ac_dir=.
9455: if test -f $ac_dir/${ac_tool_prefix}file; then
9456: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9457: if test -n "$file_magic_test_file"; then
9458: case $deplibs_check_method in
9459: "file_magic "*)
9460: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9461: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9462: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9463: $EGREP "$file_magic_regex" > /dev/null; then
9464: :
9465: else
9466: cat <<_LT_EOF 1>&2
9467:
9468: *** Warning: the command libtool uses to detect shared libraries,
9469: *** $file_magic_cmd, produces output that libtool cannot recognize.
9470: *** The result is that libtool may fail to recognize shared libraries
9471: *** as such. This will affect the creation of libtool libraries that
9472: *** depend on shared libraries, but programs linked with such libtool
9473: *** libraries will work regardless of this problem. Nevertheless, you
9474: *** may want to report the problem to your system manager and/or to
9475: *** bug-libtool@gnu.org
9476:
9477: _LT_EOF
9478: fi ;;
9479: esac
9480: fi
9481: break
9482: fi
9483: done
9484: IFS="$lt_save_ifs"
9485: MAGIC_CMD="$lt_save_MAGIC_CMD"
9486: ;;
9487: esac
9488: fi
9489:
9490: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9491: if test -n "$MAGIC_CMD"; then
1.150 moko 9492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9493: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9494: else
1.150 moko 9495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496: $as_echo "no" >&6; }
1.128 moko 9497: fi
9498:
9499:
9500:
9501:
9502:
9503: if test -z "$lt_cv_path_MAGIC_CMD"; then
9504: if test -n "$ac_tool_prefix"; then
1.150 moko 9505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9506: $as_echo_n "checking for file... " >&6; }
9507: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9508: $as_echo_n "(cached) " >&6
1.128 moko 9509: else
9510: case $MAGIC_CMD in
9511: [\\/*] | ?:[\\/]*)
9512: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9513: ;;
9514: *)
9515: lt_save_MAGIC_CMD="$MAGIC_CMD"
9516: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9517: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9518: for ac_dir in $ac_dummy; do
9519: IFS="$lt_save_ifs"
9520: test -z "$ac_dir" && ac_dir=.
9521: if test -f $ac_dir/file; then
9522: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9523: if test -n "$file_magic_test_file"; then
9524: case $deplibs_check_method in
9525: "file_magic "*)
9526: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9527: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9528: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9529: $EGREP "$file_magic_regex" > /dev/null; then
9530: :
9531: else
9532: cat <<_LT_EOF 1>&2
9533:
9534: *** Warning: the command libtool uses to detect shared libraries,
9535: *** $file_magic_cmd, produces output that libtool cannot recognize.
9536: *** The result is that libtool may fail to recognize shared libraries
9537: *** as such. This will affect the creation of libtool libraries that
9538: *** depend on shared libraries, but programs linked with such libtool
9539: *** libraries will work regardless of this problem. Nevertheless, you
9540: *** may want to report the problem to your system manager and/or to
9541: *** bug-libtool@gnu.org
9542:
9543: _LT_EOF
9544: fi ;;
9545: esac
9546: fi
9547: break
9548: fi
9549: done
9550: IFS="$lt_save_ifs"
9551: MAGIC_CMD="$lt_save_MAGIC_CMD"
9552: ;;
9553: esac
9554: fi
9555:
9556: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9557: if test -n "$MAGIC_CMD"; then
1.150 moko 9558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9559: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9560: else
1.150 moko 9561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562: $as_echo "no" >&6; }
1.128 moko 9563: fi
9564:
9565:
9566: else
9567: MAGIC_CMD=:
9568: fi
9569: fi
9570:
9571: fi
9572: ;;
9573: esac
9574:
9575: # Use C for the default configuration in the libtool script
9576:
9577: lt_save_CC="$CC"
9578: ac_ext=c
9579: ac_cpp='$CPP $CPPFLAGS'
9580: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9581: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9582: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9583:
9584:
9585: # Source file extension for C test sources.
9586: ac_ext=c
9587:
9588: # Object file extension for compiled C test sources.
9589: objext=o
9590: objext=$objext
9591:
9592: # Code to be used in simple compile tests
9593: lt_simple_compile_test_code="int some_variable = 0;"
9594:
9595: # Code to be used in simple link tests
9596: lt_simple_link_test_code='int main(){return(0);}'
9597:
9598:
9599:
9600:
9601:
9602:
9603:
9604: # If no C compiler was specified, use CC.
9605: LTCC=${LTCC-"$CC"}
9606:
9607: # If no C compiler flags were specified, use CFLAGS.
9608: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9609:
9610: # Allow CC to be a program name with arguments.
9611: compiler=$CC
9612:
9613: # Save the default compiler, since it gets overwritten when the other
9614: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9615: compiler_DEFAULT=$CC
9616:
9617: # save warnings/boilerplate of simple test code
9618: ac_outfile=conftest.$ac_objext
9619: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9620: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9621: _lt_compiler_boilerplate=`cat conftest.err`
9622: $RM conftest*
9623:
9624: ac_outfile=conftest.$ac_objext
9625: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9626: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9627: _lt_linker_boilerplate=`cat conftest.err`
9628: $RM -r conftest*
9629:
9630:
9631: ## CAVEAT EMPTOR:
9632: ## There is no encapsulation within the following macros, do not change
9633: ## the running order or otherwise move them around unless you know exactly
9634: ## what you are doing...
9635: if test -n "$compiler"; then
9636:
9637: lt_prog_compiler_no_builtin_flag=
9638:
9639: if test "$GCC" = yes; then
9640: case $cc_basename in
9641: nvcc*)
9642: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9643: *)
9644: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9645: esac
9646:
1.150 moko 9647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9648: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9649: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9650: $as_echo_n "(cached) " >&6
1.128 moko 9651: else
9652: lt_cv_prog_compiler_rtti_exceptions=no
9653: ac_outfile=conftest.$ac_objext
9654: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655: lt_compiler_flag="-fno-rtti -fno-exceptions"
9656: # Insert the option either (1) after the last *FLAGS variable, or
9657: # (2) before a word containing "conftest.", or (3) at the end.
9658: # Note that $ac_compile itself does not contain backslashes and begins
9659: # with a dollar sign (not a hyphen), so the echo should work correctly.
9660: # The option is referenced via a variable to avoid confusing sed.
9661: lt_compile=`echo "$ac_compile" | $SED \
9662: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664: -e 's:$: $lt_compiler_flag:'`
9665: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9666: (eval "$lt_compile" 2>conftest.err)
9667: ac_status=$?
9668: cat conftest.err >&5
9669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670: if (exit $ac_status) && test -s "$ac_outfile"; then
9671: # The compiler can only warn and ignore the option if not recognized
9672: # So say no if there are warnings other than the usual output.
9673: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9674: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9675: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9676: lt_cv_prog_compiler_rtti_exceptions=yes
9677: fi
9678: fi
9679: $RM conftest*
9680:
9681: fi
1.150 moko 9682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9683: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9684:
9685: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9686: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9687: else
9688: :
9689: fi
9690:
9691: fi
9692:
9693:
9694:
9695:
9696:
9697:
9698: lt_prog_compiler_wl=
9699: lt_prog_compiler_pic=
9700: lt_prog_compiler_static=
9701:
9702:
9703: if test "$GCC" = yes; then
9704: lt_prog_compiler_wl='-Wl,'
9705: lt_prog_compiler_static='-static'
9706:
9707: case $host_os in
9708: aix*)
9709: # All AIX code is PIC.
9710: if test "$host_cpu" = ia64; then
9711: # AIX 5 now supports IA64 processor
9712: lt_prog_compiler_static='-Bstatic'
9713: fi
9714: ;;
9715:
9716: amigaos*)
9717: case $host_cpu in
9718: powerpc)
9719: # see comment about AmigaOS4 .so support
9720: lt_prog_compiler_pic='-fPIC'
9721: ;;
9722: m68k)
9723: # FIXME: we need at least 68020 code to build shared libraries, but
9724: # adding the `-m68020' flag to GCC prevents building anything better,
9725: # like `-m68040'.
9726: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9727: ;;
9728: esac
9729: ;;
9730:
9731: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9732: # PIC is the default for these OSes.
9733: ;;
9734:
9735: mingw* | cygwin* | pw32* | os2* | cegcc*)
9736: # This hack is so that the source file can tell whether it is being
9737: # built for inclusion in a dll (and should export symbols for example).
9738: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9739: # (--disable-auto-import) libraries
9740: lt_prog_compiler_pic='-DDLL_EXPORT'
9741: ;;
9742:
9743: darwin* | rhapsody*)
9744: # PIC is the default on this platform
9745: # Common symbols not allowed in MH_DYLIB files
9746: lt_prog_compiler_pic='-fno-common'
9747: ;;
9748:
9749: haiku*)
9750: # PIC is the default for Haiku.
9751: # The "-static" flag exists, but is broken.
9752: lt_prog_compiler_static=
9753: ;;
9754:
9755: hpux*)
9756: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9757: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9758: # sets the default TLS model and affects inlining.
9759: case $host_cpu in
9760: hppa*64*)
9761: # +Z the default
9762: ;;
9763: *)
9764: lt_prog_compiler_pic='-fPIC'
9765: ;;
9766: esac
9767: ;;
9768:
9769: interix[3-9]*)
9770: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9771: # Instead, we relocate shared libraries at runtime.
9772: ;;
9773:
9774: msdosdjgpp*)
9775: # Just because we use GCC doesn't mean we suddenly get shared libraries
9776: # on systems that don't support them.
9777: lt_prog_compiler_can_build_shared=no
9778: enable_shared=no
9779: ;;
9780:
9781: *nto* | *qnx*)
9782: # QNX uses GNU C++, but need to define -shared option too, otherwise
9783: # it will coredump.
9784: lt_prog_compiler_pic='-fPIC -shared'
9785: ;;
9786:
9787: sysv4*MP*)
9788: if test -d /usr/nec; then
9789: lt_prog_compiler_pic=-Kconform_pic
9790: fi
9791: ;;
9792:
9793: *)
9794: lt_prog_compiler_pic='-fPIC'
9795: ;;
9796: esac
9797:
9798: case $cc_basename in
9799: nvcc*) # Cuda Compiler Driver 2.2
9800: lt_prog_compiler_wl='-Xlinker '
9801: if test -n "$lt_prog_compiler_pic"; then
9802: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9803: fi
9804: ;;
9805: esac
9806: else
9807: # PORTME Check for flag to pass linker flags through the system compiler.
9808: case $host_os in
9809: aix*)
9810: lt_prog_compiler_wl='-Wl,'
9811: if test "$host_cpu" = ia64; then
9812: # AIX 5 now supports IA64 processor
9813: lt_prog_compiler_static='-Bstatic'
9814: else
9815: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9816: fi
9817: ;;
9818:
9819: mingw* | cygwin* | pw32* | os2* | cegcc*)
9820: # This hack is so that the source file can tell whether it is being
9821: # built for inclusion in a dll (and should export symbols for example).
9822: lt_prog_compiler_pic='-DDLL_EXPORT'
9823: ;;
9824:
9825: hpux9* | hpux10* | hpux11*)
9826: lt_prog_compiler_wl='-Wl,'
9827: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9828: # not for PA HP-UX.
9829: case $host_cpu in
9830: hppa*64*|ia64*)
9831: # +Z the default
9832: ;;
9833: *)
9834: lt_prog_compiler_pic='+Z'
9835: ;;
9836: esac
9837: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9838: lt_prog_compiler_static='${wl}-a ${wl}archive'
9839: ;;
9840:
9841: irix5* | irix6* | nonstopux*)
9842: lt_prog_compiler_wl='-Wl,'
9843: # PIC (with -KPIC) is the default.
9844: lt_prog_compiler_static='-non_shared'
9845: ;;
9846:
9847: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9848: case $cc_basename in
9849: # old Intel for x86_64 which still supported -KPIC.
9850: ecc*)
9851: lt_prog_compiler_wl='-Wl,'
9852: lt_prog_compiler_pic='-KPIC'
9853: lt_prog_compiler_static='-static'
9854: ;;
9855: # icc used to be incompatible with GCC.
9856: # ICC 10 doesn't accept -KPIC any more.
9857: icc* | ifort*)
9858: lt_prog_compiler_wl='-Wl,'
9859: lt_prog_compiler_pic='-fPIC'
9860: lt_prog_compiler_static='-static'
9861: ;;
9862: # Lahey Fortran 8.1.
9863: lf95*)
9864: lt_prog_compiler_wl='-Wl,'
9865: lt_prog_compiler_pic='--shared'
9866: lt_prog_compiler_static='--static'
9867: ;;
9868: nagfor*)
9869: # NAG Fortran compiler
9870: lt_prog_compiler_wl='-Wl,-Wl,,'
9871: lt_prog_compiler_pic='-PIC'
9872: lt_prog_compiler_static='-Bstatic'
9873: ;;
9874: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9875: # Portland Group compilers (*not* the Pentium gcc compiler,
9876: # which looks to be a dead project)
9877: lt_prog_compiler_wl='-Wl,'
9878: lt_prog_compiler_pic='-fpic'
9879: lt_prog_compiler_static='-Bstatic'
9880: ;;
9881: ccc*)
9882: lt_prog_compiler_wl='-Wl,'
9883: # All Alpha code is PIC.
9884: lt_prog_compiler_static='-non_shared'
9885: ;;
9886: xl* | bgxl* | bgf* | mpixl*)
9887: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9888: lt_prog_compiler_wl='-Wl,'
9889: lt_prog_compiler_pic='-qpic'
9890: lt_prog_compiler_static='-qstaticlink'
9891: ;;
9892: *)
9893: case `$CC -V 2>&1 | sed 5q` in
9894: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9895: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9896: lt_prog_compiler_pic='-KPIC'
9897: lt_prog_compiler_static='-Bstatic'
9898: lt_prog_compiler_wl=''
9899: ;;
9900: *Sun\ F* | *Sun*Fortran*)
9901: lt_prog_compiler_pic='-KPIC'
9902: lt_prog_compiler_static='-Bstatic'
9903: lt_prog_compiler_wl='-Qoption ld '
9904: ;;
9905: *Sun\ C*)
9906: # Sun C 5.9
9907: lt_prog_compiler_pic='-KPIC'
9908: lt_prog_compiler_static='-Bstatic'
9909: lt_prog_compiler_wl='-Wl,'
9910: ;;
9911: *Intel*\ [CF]*Compiler*)
9912: lt_prog_compiler_wl='-Wl,'
9913: lt_prog_compiler_pic='-fPIC'
9914: lt_prog_compiler_static='-static'
9915: ;;
9916: *Portland\ Group*)
9917: lt_prog_compiler_wl='-Wl,'
9918: lt_prog_compiler_pic='-fpic'
9919: lt_prog_compiler_static='-Bstatic'
9920: ;;
9921: esac
9922: ;;
9923: esac
9924: ;;
9925:
9926: newsos6)
9927: lt_prog_compiler_pic='-KPIC'
9928: lt_prog_compiler_static='-Bstatic'
9929: ;;
9930:
9931: *nto* | *qnx*)
9932: # QNX uses GNU C++, but need to define -shared option too, otherwise
9933: # it will coredump.
9934: lt_prog_compiler_pic='-fPIC -shared'
9935: ;;
9936:
9937: osf3* | osf4* | osf5*)
9938: lt_prog_compiler_wl='-Wl,'
9939: # All OSF/1 code is PIC.
9940: lt_prog_compiler_static='-non_shared'
9941: ;;
9942:
9943: rdos*)
9944: lt_prog_compiler_static='-non_shared'
9945: ;;
9946:
9947: solaris*)
9948: lt_prog_compiler_pic='-KPIC'
9949: lt_prog_compiler_static='-Bstatic'
9950: case $cc_basename in
9951: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9952: lt_prog_compiler_wl='-Qoption ld ';;
9953: *)
9954: lt_prog_compiler_wl='-Wl,';;
9955: esac
9956: ;;
9957:
9958: sunos4*)
9959: lt_prog_compiler_wl='-Qoption ld '
9960: lt_prog_compiler_pic='-PIC'
9961: lt_prog_compiler_static='-Bstatic'
9962: ;;
9963:
9964: sysv4 | sysv4.2uw2* | sysv4.3*)
9965: lt_prog_compiler_wl='-Wl,'
9966: lt_prog_compiler_pic='-KPIC'
9967: lt_prog_compiler_static='-Bstatic'
9968: ;;
9969:
9970: sysv4*MP*)
9971: if test -d /usr/nec ;then
9972: lt_prog_compiler_pic='-Kconform_pic'
9973: lt_prog_compiler_static='-Bstatic'
9974: fi
9975: ;;
9976:
9977: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9978: lt_prog_compiler_wl='-Wl,'
9979: lt_prog_compiler_pic='-KPIC'
9980: lt_prog_compiler_static='-Bstatic'
9981: ;;
9982:
9983: unicos*)
9984: lt_prog_compiler_wl='-Wl,'
9985: lt_prog_compiler_can_build_shared=no
9986: ;;
9987:
9988: uts4*)
9989: lt_prog_compiler_pic='-pic'
9990: lt_prog_compiler_static='-Bstatic'
9991: ;;
9992:
9993: *)
9994: lt_prog_compiler_can_build_shared=no
9995: ;;
9996: esac
9997: fi
9998:
9999: case $host_os in
10000: # For platforms which do not support PIC, -DPIC is meaningless:
10001: *djgpp*)
10002: lt_prog_compiler_pic=
10003: ;;
10004: *)
10005: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10006: ;;
10007: esac
10008:
1.150 moko 10009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10010: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10011: if ${lt_cv_prog_compiler_pic+:} false; then :
10012: $as_echo_n "(cached) " >&6
1.128 moko 10013: else
10014: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10015: fi
1.150 moko 10016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10017: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 10018: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10019:
10020: #
10021: # Check to make sure the PIC flag actually works.
10022: #
10023: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 10024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10025: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10026: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10027: $as_echo_n "(cached) " >&6
1.128 moko 10028: else
10029: lt_cv_prog_compiler_pic_works=no
10030: ac_outfile=conftest.$ac_objext
10031: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10032: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10033: # Insert the option either (1) after the last *FLAGS variable, or
10034: # (2) before a word containing "conftest.", or (3) at the end.
10035: # Note that $ac_compile itself does not contain backslashes and begins
10036: # with a dollar sign (not a hyphen), so the echo should work correctly.
10037: # The option is referenced via a variable to avoid confusing sed.
10038: lt_compile=`echo "$ac_compile" | $SED \
10039: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10040: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10041: -e 's:$: $lt_compiler_flag:'`
10042: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10043: (eval "$lt_compile" 2>conftest.err)
10044: ac_status=$?
10045: cat conftest.err >&5
10046: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047: if (exit $ac_status) && test -s "$ac_outfile"; then
10048: # The compiler can only warn and ignore the option if not recognized
10049: # So say no if there are warnings other than the usual output.
10050: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10051: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10052: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10053: lt_cv_prog_compiler_pic_works=yes
10054: fi
10055: fi
10056: $RM conftest*
10057:
10058: fi
1.150 moko 10059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10060: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 10061:
10062: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10063: case $lt_prog_compiler_pic in
10064: "" | " "*) ;;
10065: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10066: esac
10067: else
10068: lt_prog_compiler_pic=
10069: lt_prog_compiler_can_build_shared=no
10070: fi
10071:
10072: fi
10073:
10074:
10075:
10076:
10077:
10078:
10079:
10080:
10081:
10082:
10083:
10084: #
10085: # Check to make sure the static flag actually works.
10086: #
10087: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 10088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10089: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10090: if ${lt_cv_prog_compiler_static_works+:} false; then :
10091: $as_echo_n "(cached) " >&6
1.128 moko 10092: else
10093: lt_cv_prog_compiler_static_works=no
10094: save_LDFLAGS="$LDFLAGS"
10095: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10096: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10097: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10098: # The linker can only warn and ignore the option if not recognized
10099: # So say no if there are warnings
10100: if test -s conftest.err; then
10101: # Append any errors to the config.log.
10102: cat conftest.err 1>&5
10103: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10104: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10105: if diff conftest.exp conftest.er2 >/dev/null; then
10106: lt_cv_prog_compiler_static_works=yes
10107: fi
10108: else
10109: lt_cv_prog_compiler_static_works=yes
10110: fi
10111: fi
10112: $RM -r conftest*
10113: LDFLAGS="$save_LDFLAGS"
10114:
10115: fi
1.150 moko 10116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10117: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 10118:
10119: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10120: :
10121: else
10122: lt_prog_compiler_static=
10123: fi
10124:
10125:
10126:
10127:
10128:
10129:
10130:
1.150 moko 10131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10132: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10133: if ${lt_cv_prog_compiler_c_o+:} false; then :
10134: $as_echo_n "(cached) " >&6
1.128 moko 10135: else
10136: lt_cv_prog_compiler_c_o=no
10137: $RM -r conftest 2>/dev/null
10138: mkdir conftest
10139: cd conftest
10140: mkdir out
10141: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10142:
10143: lt_compiler_flag="-o out/conftest2.$ac_objext"
10144: # Insert the option either (1) after the last *FLAGS variable, or
10145: # (2) before a word containing "conftest.", or (3) at the end.
10146: # Note that $ac_compile itself does not contain backslashes and begins
10147: # with a dollar sign (not a hyphen), so the echo should work correctly.
10148: lt_compile=`echo "$ac_compile" | $SED \
10149: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10150: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10151: -e 's:$: $lt_compiler_flag:'`
10152: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10153: (eval "$lt_compile" 2>out/conftest.err)
10154: ac_status=$?
10155: cat out/conftest.err >&5
10156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10158: then
10159: # The compiler can only warn and ignore the option if not recognized
10160: # So say no if there are warnings
10161: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10162: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10163: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10164: lt_cv_prog_compiler_c_o=yes
10165: fi
10166: fi
10167: chmod u+w . 2>&5
10168: $RM conftest*
10169: # SGI C++ compiler will create directory out/ii_files/ for
10170: # template instantiation
10171: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10172: $RM out/* && rmdir out
10173: cd ..
10174: $RM -r conftest
10175: $RM conftest*
10176:
10177: fi
1.150 moko 10178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10179: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10180:
10181:
10182:
10183:
10184:
10185:
1.150 moko 10186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10187: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10188: if ${lt_cv_prog_compiler_c_o+:} false; then :
10189: $as_echo_n "(cached) " >&6
1.128 moko 10190: else
10191: lt_cv_prog_compiler_c_o=no
10192: $RM -r conftest 2>/dev/null
10193: mkdir conftest
10194: cd conftest
10195: mkdir out
10196: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10197:
10198: lt_compiler_flag="-o out/conftest2.$ac_objext"
10199: # Insert the option either (1) after the last *FLAGS variable, or
10200: # (2) before a word containing "conftest.", or (3) at the end.
10201: # Note that $ac_compile itself does not contain backslashes and begins
10202: # with a dollar sign (not a hyphen), so the echo should work correctly.
10203: lt_compile=`echo "$ac_compile" | $SED \
10204: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10205: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10206: -e 's:$: $lt_compiler_flag:'`
10207: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10208: (eval "$lt_compile" 2>out/conftest.err)
10209: ac_status=$?
10210: cat out/conftest.err >&5
10211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10213: then
10214: # The compiler can only warn and ignore the option if not recognized
10215: # So say no if there are warnings
10216: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10217: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10218: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10219: lt_cv_prog_compiler_c_o=yes
10220: fi
10221: fi
10222: chmod u+w . 2>&5
10223: $RM conftest*
10224: # SGI C++ compiler will create directory out/ii_files/ for
10225: # template instantiation
10226: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10227: $RM out/* && rmdir out
10228: cd ..
10229: $RM -r conftest
10230: $RM conftest*
10231:
10232: fi
1.150 moko 10233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10234: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10235:
10236:
10237:
10238:
10239: hard_links="nottested"
10240: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10241: # do not overwrite the value of need_locks provided by the user
1.150 moko 10242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10243: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 10244: hard_links=yes
10245: $RM conftest*
10246: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10247: touch conftest.a
10248: ln conftest.a conftest.b 2>&5 || hard_links=no
10249: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 10250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10251: $as_echo "$hard_links" >&6; }
1.128 moko 10252: if test "$hard_links" = no; then
1.150 moko 10253: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10254: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 10255: need_locks=warn
10256: fi
10257: else
10258: need_locks=no
10259: fi
10260:
10261:
10262:
10263:
10264:
10265:
1.150 moko 10266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10267: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 10268:
10269: runpath_var=
10270: allow_undefined_flag=
10271: always_export_symbols=no
10272: archive_cmds=
10273: archive_expsym_cmds=
10274: compiler_needs_object=no
10275: enable_shared_with_static_runtimes=no
10276: export_dynamic_flag_spec=
10277: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10278: hardcode_automatic=no
10279: hardcode_direct=no
10280: hardcode_direct_absolute=no
10281: hardcode_libdir_flag_spec=
10282: hardcode_libdir_separator=
10283: hardcode_minus_L=no
10284: hardcode_shlibpath_var=unsupported
10285: inherit_rpath=no
10286: link_all_deplibs=unknown
10287: module_cmds=
10288: module_expsym_cmds=
10289: old_archive_from_new_cmds=
10290: old_archive_from_expsyms_cmds=
10291: thread_safe_flag_spec=
10292: whole_archive_flag_spec=
10293: # include_expsyms should be a list of space-separated symbols to be *always*
10294: # included in the symbol list
10295: include_expsyms=
10296: # exclude_expsyms can be an extended regexp of symbols to exclude
10297: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10298: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10299: # as well as any symbol that contains `d'.
10300: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10301: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10302: # platforms (ab)use it in PIC code, but their linkers get confused if
10303: # the symbol is explicitly referenced. Since portable code cannot
10304: # rely on this symbol name, it's probably fine to never include it in
10305: # preloaded symbol tables.
10306: # Exclude shared library initialization/finalization symbols.
10307: extract_expsyms_cmds=
10308:
10309: case $host_os in
10310: cygwin* | mingw* | pw32* | cegcc*)
10311: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10312: # When not using gcc, we currently assume that we are using
10313: # Microsoft Visual C++.
10314: if test "$GCC" != yes; then
10315: with_gnu_ld=no
10316: fi
10317: ;;
10318: interix*)
10319: # we just hope/assume this is gcc and not c89 (= MSVC++)
10320: with_gnu_ld=yes
10321: ;;
10322: openbsd*)
10323: with_gnu_ld=no
10324: ;;
10325: esac
10326:
10327: ld_shlibs=yes
10328:
10329: # On some targets, GNU ld is compatible enough with the native linker
10330: # that we're better off using the native interface for both.
10331: lt_use_gnu_ld_interface=no
10332: if test "$with_gnu_ld" = yes; then
10333: case $host_os in
10334: aix*)
10335: # The AIX port of GNU ld has always aspired to compatibility
10336: # with the native linker. However, as the warning in the GNU ld
10337: # block says, versions before 2.19.5* couldn't really create working
10338: # shared libraries, regardless of the interface used.
10339: case `$LD -v 2>&1` in
10340: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10341: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10342: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10343: *)
10344: lt_use_gnu_ld_interface=yes
10345: ;;
10346: esac
10347: ;;
10348: *)
10349: lt_use_gnu_ld_interface=yes
10350: ;;
10351: esac
10352: fi
10353:
10354: if test "$lt_use_gnu_ld_interface" = yes; then
10355: # If archive_cmds runs LD, not CC, wlarc should be empty
10356: wlarc='${wl}'
10357:
10358: # Set some defaults for GNU ld with shared library support. These
10359: # are reset later if shared libraries are not supported. Putting them
10360: # here allows them to be overridden if necessary.
10361: runpath_var=LD_RUN_PATH
10362: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10363: export_dynamic_flag_spec='${wl}--export-dynamic'
10364: # ancient GNU ld didn't support --whole-archive et. al.
10365: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10366: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10367: else
10368: whole_archive_flag_spec=
10369: fi
10370: supports_anon_versioning=no
10371: case `$LD -v 2>&1` in
10372: *GNU\ gold*) supports_anon_versioning=yes ;;
10373: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10374: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10375: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10376: *\ 2.11.*) ;; # other 2.11 versions
10377: *) supports_anon_versioning=yes ;;
10378: esac
10379:
10380: # See if GNU ld supports shared libraries.
10381: case $host_os in
10382: aix[3-9]*)
10383: # On AIX/PPC, the GNU linker is very broken
10384: if test "$host_cpu" != ia64; then
10385: ld_shlibs=no
10386: cat <<_LT_EOF 1>&2
10387:
10388: *** Warning: the GNU linker, at least up to release 2.19, is reported
10389: *** to be unable to reliably create shared libraries on AIX.
10390: *** Therefore, libtool is disabling shared libraries support. If you
10391: *** really care for shared libraries, you may want to install binutils
10392: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10393: *** You will then need to restart the configuration process.
10394:
10395: _LT_EOF
10396: fi
10397: ;;
10398:
10399: amigaos*)
10400: case $host_cpu in
10401: powerpc)
10402: # see comment about AmigaOS4 .so support
10403: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10404: archive_expsym_cmds=''
10405: ;;
10406: m68k)
10407: 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)'
10408: hardcode_libdir_flag_spec='-L$libdir'
10409: hardcode_minus_L=yes
10410: ;;
10411: esac
10412: ;;
10413:
10414: beos*)
10415: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10416: allow_undefined_flag=unsupported
10417: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10418: # support --undefined. This deserves some investigation. FIXME
10419: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10420: else
10421: ld_shlibs=no
10422: fi
10423: ;;
10424:
10425: cygwin* | mingw* | pw32* | cegcc*)
10426: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10427: # as there is no search path for DLLs.
10428: hardcode_libdir_flag_spec='-L$libdir'
10429: export_dynamic_flag_spec='${wl}--export-all-symbols'
10430: allow_undefined_flag=unsupported
10431: always_export_symbols=no
10432: enable_shared_with_static_runtimes=yes
10433: 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'
10434: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10435:
10436: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10437: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10438: # If the export-symbols file already is a .def file (1st line
10439: # is EXPORTS), use it as is; otherwise, prepend...
10440: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10441: cp $export_symbols $output_objdir/$soname.def;
10442: else
10443: echo EXPORTS > $output_objdir/$soname.def;
10444: cat $export_symbols >> $output_objdir/$soname.def;
10445: fi~
10446: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10447: else
10448: ld_shlibs=no
10449: fi
10450: ;;
10451:
10452: haiku*)
10453: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10454: link_all_deplibs=yes
10455: ;;
10456:
10457: interix[3-9]*)
10458: hardcode_direct=no
10459: hardcode_shlibpath_var=no
10460: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10461: export_dynamic_flag_spec='${wl}-E'
10462: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10463: # Instead, shared libraries are loaded at an image base (0x10000000 by
10464: # default) and relocated if they conflict, which is a slow very memory
10465: # consuming and fragmenting process. To avoid this, we pick a random,
10466: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10467: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10468: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10469: 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'
10470: ;;
10471:
10472: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10473: tmp_diet=no
10474: if test "$host_os" = linux-dietlibc; then
10475: case $cc_basename in
10476: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10477: esac
10478: fi
10479: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10480: && test "$tmp_diet" = no
10481: then
10482: tmp_addflag=' $pic_flag'
10483: tmp_sharedflag='-shared'
10484: case $cc_basename,$host_cpu in
10485: pgcc*) # Portland Group C compiler
10486: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10487: tmp_addflag=' $pic_flag'
10488: ;;
10489: pgf77* | pgf90* | pgf95* | pgfortran*)
10490: # Portland Group f77 and f90 compilers
10491: 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'
10492: tmp_addflag=' $pic_flag -Mnomain' ;;
10493: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10494: tmp_addflag=' -i_dynamic' ;;
10495: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10496: tmp_addflag=' -i_dynamic -nofor_main' ;;
10497: ifc* | ifort*) # Intel Fortran compiler
10498: tmp_addflag=' -nofor_main' ;;
10499: lf95*) # Lahey Fortran 8.1
10500: whole_archive_flag_spec=
10501: tmp_sharedflag='--shared' ;;
10502: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10503: tmp_sharedflag='-qmkshrobj'
10504: tmp_addflag= ;;
10505: nvcc*) # Cuda Compiler Driver 2.2
10506: 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'
10507: compiler_needs_object=yes
10508: ;;
10509: esac
10510: case `$CC -V 2>&1 | sed 5q` in
10511: *Sun\ C*) # Sun C 5.9
10512: 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'
10513: compiler_needs_object=yes
10514: tmp_sharedflag='-G' ;;
10515: *Sun\ F*) # Sun Fortran 8.3
10516: tmp_sharedflag='-G' ;;
10517: esac
10518: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10519:
10520: if test "x$supports_anon_versioning" = xyes; then
10521: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10522: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10523: echo "local: *; };" >> $output_objdir/$libname.ver~
10524: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10525: fi
10526:
10527: case $cc_basename in
10528: xlf* | bgf* | bgxlf* | mpixlf*)
10529: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10530: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10531: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10532: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10533: if test "x$supports_anon_versioning" = xyes; then
10534: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10535: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10536: echo "local: *; };" >> $output_objdir/$libname.ver~
10537: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10538: fi
10539: ;;
10540: esac
10541: else
10542: ld_shlibs=no
10543: fi
10544: ;;
10545:
10546: netbsd*)
10547: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10548: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10549: wlarc=
10550: else
10551: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10552: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10553: fi
10554: ;;
10555:
10556: solaris*)
10557: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10558: ld_shlibs=no
10559: cat <<_LT_EOF 1>&2
10560:
10561: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10562: *** create shared libraries on Solaris systems. Therefore, libtool
10563: *** is disabling shared libraries support. We urge you to upgrade GNU
10564: *** binutils to release 2.9.1 or newer. Another option is to modify
10565: *** your PATH or compiler configuration so that the native linker is
10566: *** used, and then restart.
10567:
10568: _LT_EOF
10569: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10570: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10572: else
10573: ld_shlibs=no
10574: fi
10575: ;;
10576:
10577: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10578: case `$LD -v 2>&1` in
10579: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10580: ld_shlibs=no
10581: cat <<_LT_EOF 1>&2
10582:
10583: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10584: *** reliably create shared libraries on SCO systems. Therefore, libtool
10585: *** is disabling shared libraries support. We urge you to upgrade GNU
10586: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10587: *** your PATH or compiler configuration so that the native linker is
10588: *** used, and then restart.
10589:
10590: _LT_EOF
10591: ;;
10592: *)
10593: # For security reasons, it is highly recommended that you always
10594: # use absolute paths for naming shared libraries, and exclude the
10595: # DT_RUNPATH tag from executables and libraries. But doing so
10596: # requires that you compile everything twice, which is a pain.
10597: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10598: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10599: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10600: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10601: else
10602: ld_shlibs=no
10603: fi
10604: ;;
10605: esac
10606: ;;
10607:
10608: sunos4*)
10609: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10610: wlarc=
10611: hardcode_direct=yes
10612: hardcode_shlibpath_var=no
10613: ;;
10614:
10615: *)
10616: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10617: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10618: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10619: else
10620: ld_shlibs=no
10621: fi
10622: ;;
10623: esac
10624:
10625: if test "$ld_shlibs" = no; then
10626: runpath_var=
10627: hardcode_libdir_flag_spec=
10628: export_dynamic_flag_spec=
10629: whole_archive_flag_spec=
10630: fi
10631: else
10632: # PORTME fill in a description of your system's linker (not GNU ld)
10633: case $host_os in
10634: aix3*)
10635: allow_undefined_flag=unsupported
10636: always_export_symbols=yes
10637: 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'
10638: # Note: this linker hardcodes the directories in LIBPATH if there
10639: # are no directories specified by -L.
10640: hardcode_minus_L=yes
10641: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10642: # Neither direct hardcoding nor static linking is supported with a
10643: # broken collect2.
10644: hardcode_direct=unsupported
10645: fi
10646: ;;
10647:
10648: aix[4-9]*)
10649: if test "$host_cpu" = ia64; then
10650: # On IA64, the linker does run time linking by default, so we don't
10651: # have to do anything special.
10652: aix_use_runtimelinking=no
10653: exp_sym_flag='-Bexport'
10654: no_entry_flag=""
10655: else
10656: # If we're using GNU nm, then we don't want the "-C" option.
10657: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10658: # Also, AIX nm treats weak defined symbols like other global
10659: # defined symbols, whereas GNU nm marks them as "W".
10660: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10661: 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'
10662: else
10663: 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'
10664: fi
10665: aix_use_runtimelinking=no
10666:
10667: # Test if we are trying to use run time linking or normal
10668: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10669: # need to do runtime linking.
10670: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10671: for ld_flag in $LDFLAGS; do
10672: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10673: aix_use_runtimelinking=yes
10674: break
10675: fi
10676: done
10677: ;;
10678: esac
10679:
10680: exp_sym_flag='-bexport'
10681: no_entry_flag='-bnoentry'
10682: fi
10683:
10684: # When large executables or shared objects are built, AIX ld can
10685: # have problems creating the table of contents. If linking a library
10686: # or program results in "error TOC overflow" add -mminimal-toc to
10687: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10688: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10689:
10690: archive_cmds=''
10691: hardcode_direct=yes
10692: hardcode_direct_absolute=yes
10693: hardcode_libdir_separator=':'
10694: link_all_deplibs=yes
10695: file_list_spec='${wl}-f,'
10696:
10697: if test "$GCC" = yes; then
10698: case $host_os in aix4.[012]|aix4.[012].*)
10699: # We only want to do this on AIX 4.2 and lower, the check
10700: # below for broken collect2 doesn't work under 4.3+
10701: collect2name=`${CC} -print-prog-name=collect2`
10702: if test -f "$collect2name" &&
10703: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10704: then
10705: # We have reworked collect2
10706: :
10707: else
10708: # We have old collect2
10709: hardcode_direct=unsupported
10710: # It fails to find uninstalled libraries when the uninstalled
10711: # path is not listed in the libpath. Setting hardcode_minus_L
10712: # to unsupported forces relinking
10713: hardcode_minus_L=yes
10714: hardcode_libdir_flag_spec='-L$libdir'
10715: hardcode_libdir_separator=
10716: fi
10717: ;;
10718: esac
10719: shared_flag='-shared'
10720: if test "$aix_use_runtimelinking" = yes; then
10721: shared_flag="$shared_flag "'${wl}-G'
10722: fi
10723: else
10724: # not using gcc
10725: if test "$host_cpu" = ia64; then
10726: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10727: # chokes on -Wl,-G. The following line is correct:
10728: shared_flag='-G'
10729: else
10730: if test "$aix_use_runtimelinking" = yes; then
10731: shared_flag='${wl}-G'
10732: else
10733: shared_flag='${wl}-bM:SRE'
10734: fi
10735: fi
10736: fi
10737:
10738: export_dynamic_flag_spec='${wl}-bexpall'
10739: # It seems that -bexpall does not export symbols beginning with
10740: # underscore (_), so it is better to generate a list of symbols to export.
10741: always_export_symbols=yes
10742: if test "$aix_use_runtimelinking" = yes; then
10743: # Warning - without using the other runtime loading flags (-brtl),
10744: # -berok will link without error, but may produce a broken library.
10745: allow_undefined_flag='-berok'
10746: # Determine the default libpath from the value encoded in an
10747: # empty executable.
10748: if test "${lt_cv_aix_libpath+set}" = set; then
10749: aix_libpath=$lt_cv_aix_libpath
10750: else
1.150 moko 10751: if ${lt_cv_aix_libpath_+:} false; then :
10752: $as_echo_n "(cached) " >&6
1.128 moko 10753: else
1.150 moko 10754: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10755: /* end confdefs.h. */
10756:
10757: int
10758: main ()
10759: {
10760:
10761: ;
10762: return 0;
10763: }
10764: _ACEOF
1.150 moko 10765: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10766:
10767: lt_aix_libpath_sed='
10768: /Import File Strings/,/^$/ {
10769: /^0/ {
10770: s/^0 *\([^ ]*\) *$/\1/
10771: p
10772: }
10773: }'
10774: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10775: # Check for a 64-bit object if we didn't find anything.
10776: if test -z "$lt_cv_aix_libpath_"; then
10777: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10778: fi
10779: fi
1.150 moko 10780: rm -f core conftest.err conftest.$ac_objext \
10781: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10782: if test -z "$lt_cv_aix_libpath_"; then
10783: lt_cv_aix_libpath_="/usr/lib:/lib"
10784: fi
10785:
10786: fi
10787:
10788: aix_libpath=$lt_cv_aix_libpath_
10789: fi
10790:
10791: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10792: 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"
10793: else
10794: if test "$host_cpu" = ia64; then
10795: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10796: allow_undefined_flag="-z nodefs"
10797: 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"
10798: else
10799: # Determine the default libpath from the value encoded in an
10800: # empty executable.
10801: if test "${lt_cv_aix_libpath+set}" = set; then
10802: aix_libpath=$lt_cv_aix_libpath
10803: else
1.150 moko 10804: if ${lt_cv_aix_libpath_+:} false; then :
10805: $as_echo_n "(cached) " >&6
1.128 moko 10806: else
1.150 moko 10807: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10808: /* end confdefs.h. */
10809:
10810: int
10811: main ()
10812: {
10813:
10814: ;
10815: return 0;
10816: }
10817: _ACEOF
1.150 moko 10818: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10819:
10820: lt_aix_libpath_sed='
10821: /Import File Strings/,/^$/ {
10822: /^0/ {
10823: s/^0 *\([^ ]*\) *$/\1/
10824: p
10825: }
10826: }'
10827: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10828: # Check for a 64-bit object if we didn't find anything.
10829: if test -z "$lt_cv_aix_libpath_"; then
10830: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10831: fi
10832: fi
1.150 moko 10833: rm -f core conftest.err conftest.$ac_objext \
10834: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10835: if test -z "$lt_cv_aix_libpath_"; then
10836: lt_cv_aix_libpath_="/usr/lib:/lib"
10837: fi
10838:
10839: fi
10840:
10841: aix_libpath=$lt_cv_aix_libpath_
10842: fi
10843:
10844: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10845: # Warning - without using the other run time loading flags,
10846: # -berok will link without error, but may produce a broken library.
10847: no_undefined_flag=' ${wl}-bernotok'
10848: allow_undefined_flag=' ${wl}-berok'
10849: if test "$with_gnu_ld" = yes; then
10850: # We only use this code for GNU lds that support --whole-archive.
10851: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10852: else
10853: # Exported symbols can be pulled into shared objects from archives
10854: whole_archive_flag_spec='$convenience'
10855: fi
10856: archive_cmds_need_lc=yes
10857: # This is similar to how AIX traditionally builds its shared libraries.
10858: 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'
10859: fi
10860: fi
10861: ;;
10862:
10863: amigaos*)
10864: case $host_cpu in
10865: powerpc)
10866: # see comment about AmigaOS4 .so support
10867: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10868: archive_expsym_cmds=''
10869: ;;
10870: m68k)
10871: 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)'
10872: hardcode_libdir_flag_spec='-L$libdir'
10873: hardcode_minus_L=yes
10874: ;;
10875: esac
10876: ;;
10877:
10878: bsdi[45]*)
10879: export_dynamic_flag_spec=-rdynamic
10880: ;;
10881:
10882: cygwin* | mingw* | pw32* | cegcc*)
10883: # When not using gcc, we currently assume that we are using
10884: # Microsoft Visual C++.
10885: # hardcode_libdir_flag_spec is actually meaningless, as there is
10886: # no search path for DLLs.
10887: case $cc_basename in
10888: cl*)
10889: # Native MSVC
10890: hardcode_libdir_flag_spec=' '
10891: allow_undefined_flag=unsupported
10892: always_export_symbols=yes
10893: file_list_spec='@'
10894: # Tell ltmain to make .lib files, not .a files.
10895: libext=lib
10896: # Tell ltmain to make .dll files, not .so files.
10897: shrext_cmds=".dll"
10898: # FIXME: Setting linknames here is a bad hack.
10899: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10900: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10901: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10902: else
10903: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10904: fi~
10905: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10906: linknames='
10907: # The linker will not automatically build a static lib if we build a DLL.
10908: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10909: enable_shared_with_static_runtimes=yes
10910: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10911: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10912: # Don't use ranlib
10913: old_postinstall_cmds='chmod 644 $oldlib'
10914: postlink_cmds='lt_outputfile="@OUTPUT@"~
10915: lt_tool_outputfile="@TOOL_OUTPUT@"~
10916: case $lt_outputfile in
10917: *.exe|*.EXE) ;;
10918: *)
10919: lt_outputfile="$lt_outputfile.exe"
10920: lt_tool_outputfile="$lt_tool_outputfile.exe"
10921: ;;
10922: esac~
10923: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10924: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10925: $RM "$lt_outputfile.manifest";
10926: fi'
10927: ;;
10928: *)
10929: # Assume MSVC wrapper
10930: hardcode_libdir_flag_spec=' '
10931: allow_undefined_flag=unsupported
10932: # Tell ltmain to make .lib files, not .a files.
10933: libext=lib
10934: # Tell ltmain to make .dll files, not .so files.
10935: shrext_cmds=".dll"
10936: # FIXME: Setting linknames here is a bad hack.
10937: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10938: # The linker will automatically build a .lib file if we build a DLL.
10939: old_archive_from_new_cmds='true'
10940: # FIXME: Should let the user specify the lib program.
10941: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10942: enable_shared_with_static_runtimes=yes
10943: ;;
10944: esac
10945: ;;
10946:
10947: darwin* | rhapsody*)
10948:
10949:
10950: archive_cmds_need_lc=no
10951: hardcode_direct=no
10952: hardcode_automatic=yes
10953: hardcode_shlibpath_var=unsupported
10954: if test "$lt_cv_ld_force_load" = "yes"; then
10955: 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\"`'
10956:
10957: else
10958: whole_archive_flag_spec=''
10959: fi
10960: link_all_deplibs=yes
10961: allow_undefined_flag="$_lt_dar_allow_undefined"
10962: case $cc_basename in
10963: ifort*) _lt_dar_can_shared=yes ;;
10964: *) _lt_dar_can_shared=$GCC ;;
10965: esac
10966: if test "$_lt_dar_can_shared" = "yes"; then
10967: output_verbose_link_cmd=func_echo_all
10968: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10969: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10970: 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}"
10971: 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}"
10972:
10973: else
10974: ld_shlibs=no
10975: fi
10976:
10977: ;;
10978:
10979: dgux*)
10980: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981: hardcode_libdir_flag_spec='-L$libdir'
10982: hardcode_shlibpath_var=no
10983: ;;
10984:
10985: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10986: # support. Future versions do this automatically, but an explicit c++rt0.o
10987: # does not break anything, and helps significantly (at the cost of a little
10988: # extra space).
10989: freebsd2.2*)
10990: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10991: hardcode_libdir_flag_spec='-R$libdir'
10992: hardcode_direct=yes
10993: hardcode_shlibpath_var=no
10994: ;;
10995:
10996: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10997: freebsd2.*)
10998: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10999: hardcode_direct=yes
11000: hardcode_minus_L=yes
11001: hardcode_shlibpath_var=no
11002: ;;
11003:
11004: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11005: freebsd* | dragonfly*)
11006: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11007: hardcode_libdir_flag_spec='-R$libdir'
11008: hardcode_direct=yes
11009: hardcode_shlibpath_var=no
11010: ;;
11011:
11012: hpux9*)
11013: if test "$GCC" = yes; then
11014: 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'
11015: else
11016: 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'
11017: fi
11018: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11019: hardcode_libdir_separator=:
11020: hardcode_direct=yes
11021:
11022: # hardcode_minus_L: Not really in the search PATH,
11023: # but as the default location of the library.
11024: hardcode_minus_L=yes
11025: export_dynamic_flag_spec='${wl}-E'
11026: ;;
11027:
11028: hpux10*)
11029: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11030: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11031: else
11032: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11033: fi
11034: if test "$with_gnu_ld" = no; then
11035: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11036: hardcode_libdir_separator=:
11037: hardcode_direct=yes
11038: hardcode_direct_absolute=yes
11039: export_dynamic_flag_spec='${wl}-E'
11040: # hardcode_minus_L: Not really in the search PATH,
11041: # but as the default location of the library.
11042: hardcode_minus_L=yes
11043: fi
11044: ;;
11045:
11046: hpux11*)
11047: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11048: case $host_cpu in
11049: hppa*64*)
11050: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051: ;;
11052: ia64*)
11053: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11054: ;;
11055: *)
11056: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11057: ;;
11058: esac
11059: else
11060: case $host_cpu in
11061: hppa*64*)
11062: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11063: ;;
11064: ia64*)
11065: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11066: ;;
11067: *)
11068:
11069: # Older versions of the 11.00 compiler do not understand -b yet
11070: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 11071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11072: $as_echo_n "checking if $CC understands -b... " >&6; }
11073: if ${lt_cv_prog_compiler__b+:} false; then :
11074: $as_echo_n "(cached) " >&6
1.128 moko 11075: else
11076: lt_cv_prog_compiler__b=no
11077: save_LDFLAGS="$LDFLAGS"
11078: LDFLAGS="$LDFLAGS -b"
11079: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11080: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11081: # The linker can only warn and ignore the option if not recognized
11082: # So say no if there are warnings
11083: if test -s conftest.err; then
11084: # Append any errors to the config.log.
11085: cat conftest.err 1>&5
11086: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11087: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11088: if diff conftest.exp conftest.er2 >/dev/null; then
11089: lt_cv_prog_compiler__b=yes
11090: fi
11091: else
11092: lt_cv_prog_compiler__b=yes
11093: fi
11094: fi
11095: $RM -r conftest*
11096: LDFLAGS="$save_LDFLAGS"
11097:
11098: fi
1.150 moko 11099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11100: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 11101:
11102: if test x"$lt_cv_prog_compiler__b" = xyes; then
11103: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11104: else
11105: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11106: fi
11107:
11108: ;;
11109: esac
11110: fi
11111: if test "$with_gnu_ld" = no; then
11112: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11113: hardcode_libdir_separator=:
11114:
11115: case $host_cpu in
11116: hppa*64*|ia64*)
11117: hardcode_direct=no
11118: hardcode_shlibpath_var=no
11119: ;;
11120: *)
11121: hardcode_direct=yes
11122: hardcode_direct_absolute=yes
11123: export_dynamic_flag_spec='${wl}-E'
11124:
11125: # hardcode_minus_L: Not really in the search PATH,
11126: # but as the default location of the library.
11127: hardcode_minus_L=yes
11128: ;;
11129: esac
11130: fi
11131: ;;
11132:
11133: irix5* | irix6* | nonstopux*)
11134: if test "$GCC" = yes; then
11135: 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'
11136: # Try to use the -exported_symbol ld option, if it does not
11137: # work, assume that -exports_file does not work either and
11138: # implicitly export all symbols.
11139: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 11140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11141: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11142: if ${lt_cv_irix_exported_symbol+:} false; then :
11143: $as_echo_n "(cached) " >&6
1.128 moko 11144: else
11145: save_LDFLAGS="$LDFLAGS"
11146: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 11147: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11148: /* end confdefs.h. */
11149: int foo (void) { return 0; }
11150: _ACEOF
1.150 moko 11151: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 11152: lt_cv_irix_exported_symbol=yes
11153: else
1.150 moko 11154: lt_cv_irix_exported_symbol=no
1.128 moko 11155: fi
1.150 moko 11156: rm -f core conftest.err conftest.$ac_objext \
11157: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11158: LDFLAGS="$save_LDFLAGS"
11159: fi
1.150 moko 11160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11161: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 11162: if test "$lt_cv_irix_exported_symbol" = yes; then
11163: 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'
11164: fi
11165: else
11166: 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'
11167: 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'
11168: fi
11169: archive_cmds_need_lc='no'
11170: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11171: hardcode_libdir_separator=:
11172: inherit_rpath=yes
11173: link_all_deplibs=yes
11174: ;;
11175:
11176: netbsd*)
11177: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11178: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11179: else
11180: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11181: fi
11182: hardcode_libdir_flag_spec='-R$libdir'
11183: hardcode_direct=yes
11184: hardcode_shlibpath_var=no
11185: ;;
11186:
11187: newsos6)
11188: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11189: hardcode_direct=yes
11190: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11191: hardcode_libdir_separator=:
11192: hardcode_shlibpath_var=no
11193: ;;
11194:
11195: *nto* | *qnx*)
11196: ;;
11197:
11198: openbsd*)
11199: if test -f /usr/libexec/ld.so; then
11200: hardcode_direct=yes
11201: hardcode_shlibpath_var=no
11202: hardcode_direct_absolute=yes
11203: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11204: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11205: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11206: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11207: export_dynamic_flag_spec='${wl}-E'
11208: else
11209: case $host_os in
11210: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11211: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11212: hardcode_libdir_flag_spec='-R$libdir'
11213: ;;
11214: *)
11215: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11216: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11217: ;;
11218: esac
11219: fi
11220: else
11221: ld_shlibs=no
11222: fi
11223: ;;
11224:
11225: os2*)
11226: hardcode_libdir_flag_spec='-L$libdir'
11227: hardcode_minus_L=yes
11228: allow_undefined_flag=unsupported
11229: 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'
11230: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11231: ;;
11232:
11233: osf3*)
11234: if test "$GCC" = yes; then
11235: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11236: 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'
11237: else
11238: allow_undefined_flag=' -expect_unresolved \*'
11239: 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'
11240: fi
11241: archive_cmds_need_lc='no'
11242: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11243: hardcode_libdir_separator=:
11244: ;;
11245:
11246: osf4* | osf5*) # as osf3* with the addition of -msym flag
11247: if test "$GCC" = yes; then
11248: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11249: 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'
11250: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11251: else
11252: allow_undefined_flag=' -expect_unresolved \*'
11253: 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'
11254: 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~
11255: $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'
11256:
11257: # Both c and cxx compiler support -rpath directly
11258: hardcode_libdir_flag_spec='-rpath $libdir'
11259: fi
11260: archive_cmds_need_lc='no'
11261: hardcode_libdir_separator=:
11262: ;;
11263:
11264: solaris*)
11265: no_undefined_flag=' -z defs'
11266: if test "$GCC" = yes; then
11267: wlarc='${wl}'
11268: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11269: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11270: $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'
11271: else
11272: case `$CC -V 2>&1` in
11273: *"Compilers 5.0"*)
11274: wlarc=''
11275: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11276: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11277: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11278: ;;
11279: *)
11280: wlarc='${wl}'
11281: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11282: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11283: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11284: ;;
11285: esac
11286: fi
11287: hardcode_libdir_flag_spec='-R$libdir'
11288: hardcode_shlibpath_var=no
11289: case $host_os in
11290: solaris2.[0-5] | solaris2.[0-5].*) ;;
11291: *)
11292: # The compiler driver will combine and reorder linker options,
11293: # but understands `-z linker_flag'. GCC discards it without `$wl',
11294: # but is careful enough not to reorder.
11295: # Supported since Solaris 2.6 (maybe 2.5.1?)
11296: if test "$GCC" = yes; then
11297: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11298: else
11299: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11300: fi
11301: ;;
11302: esac
11303: link_all_deplibs=yes
11304: ;;
11305:
11306: sunos4*)
11307: if test "x$host_vendor" = xsequent; then
11308: # Use $CC to link under sequent, because it throws in some extra .o
11309: # files that make .init and .fini sections work.
11310: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11311: else
11312: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11313: fi
11314: hardcode_libdir_flag_spec='-L$libdir'
11315: hardcode_direct=yes
11316: hardcode_minus_L=yes
11317: hardcode_shlibpath_var=no
11318: ;;
11319:
11320: sysv4)
11321: case $host_vendor in
11322: sni)
11323: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11324: hardcode_direct=yes # is this really true???
11325: ;;
11326: siemens)
11327: ## LD is ld it makes a PLAMLIB
11328: ## CC just makes a GrossModule.
11329: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11330: reload_cmds='$CC -r -o $output$reload_objs'
11331: hardcode_direct=no
11332: ;;
11333: motorola)
11334: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11335: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11336: ;;
11337: esac
11338: runpath_var='LD_RUN_PATH'
11339: hardcode_shlibpath_var=no
11340: ;;
11341:
11342: sysv4.3*)
11343: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344: hardcode_shlibpath_var=no
11345: export_dynamic_flag_spec='-Bexport'
11346: ;;
11347:
11348: sysv4*MP*)
11349: if test -d /usr/nec; then
11350: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11351: hardcode_shlibpath_var=no
11352: runpath_var=LD_RUN_PATH
11353: hardcode_runpath_var=yes
11354: ld_shlibs=yes
11355: fi
11356: ;;
11357:
11358: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11359: no_undefined_flag='${wl}-z,text'
11360: archive_cmds_need_lc=no
11361: hardcode_shlibpath_var=no
11362: runpath_var='LD_RUN_PATH'
11363:
11364: if test "$GCC" = yes; then
11365: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11366: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11367: else
11368: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11369: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11370: fi
11371: ;;
11372:
11373: sysv5* | sco3.2v5* | sco5v6*)
11374: # Note: We can NOT use -z defs as we might desire, because we do not
11375: # link with -lc, and that would cause any symbols used from libc to
11376: # always be unresolved, which means just about no library would
11377: # ever link correctly. If we're not using GNU ld we use -z text
11378: # though, which does catch some bad symbols but isn't as heavy-handed
11379: # as -z defs.
11380: no_undefined_flag='${wl}-z,text'
11381: allow_undefined_flag='${wl}-z,nodefs'
11382: archive_cmds_need_lc=no
11383: hardcode_shlibpath_var=no
11384: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11385: hardcode_libdir_separator=':'
11386: link_all_deplibs=yes
11387: export_dynamic_flag_spec='${wl}-Bexport'
11388: runpath_var='LD_RUN_PATH'
11389:
11390: if test "$GCC" = yes; then
11391: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11392: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11393: else
11394: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11396: fi
11397: ;;
11398:
11399: uts4*)
11400: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11401: hardcode_libdir_flag_spec='-L$libdir'
11402: hardcode_shlibpath_var=no
11403: ;;
11404:
11405: *)
11406: ld_shlibs=no
11407: ;;
11408: esac
11409:
11410: if test x$host_vendor = xsni; then
11411: case $host in
11412: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11413: export_dynamic_flag_spec='${wl}-Blargedynsym'
11414: ;;
11415: esac
11416: fi
11417: fi
11418:
1.150 moko 11419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11420: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11421: test "$ld_shlibs" = no && can_build_shared=no
11422:
11423: with_gnu_ld=$with_gnu_ld
11424:
11425:
11426:
11427:
11428:
11429:
11430:
11431:
11432:
11433:
11434:
11435:
11436:
11437:
11438:
11439: #
11440: # Do we need to explicitly link libc?
11441: #
11442: case "x$archive_cmds_need_lc" in
11443: x|xyes)
11444: # Assume -lc should be added
11445: archive_cmds_need_lc=yes
11446:
11447: if test "$enable_shared" = yes && test "$GCC" = yes; then
11448: case $archive_cmds in
11449: *'~'*)
11450: # FIXME: we may have to deal with multi-command sequences.
11451: ;;
11452: '$CC '*)
11453: # Test whether the compiler implicitly links with -lc since on some
11454: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11455: # to ld, don't add -lc before -lgcc.
1.150 moko 11456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11457: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11458: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11459: $as_echo_n "(cached) " >&6
1.128 moko 11460: else
11461: $RM conftest*
11462: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11463:
1.150 moko 11464: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11465: (eval $ac_compile) 2>&5
11466: ac_status=$?
1.150 moko 11467: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11468: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11469: soname=conftest
11470: lib=conftest
11471: libobjs=conftest.$ac_objext
11472: deplibs=
11473: wl=$lt_prog_compiler_wl
11474: pic_flag=$lt_prog_compiler_pic
11475: compiler_flags=-v
11476: linker_flags=-v
11477: verstring=
11478: output_objdir=.
11479: libname=conftest
11480: lt_save_allow_undefined_flag=$allow_undefined_flag
11481: allow_undefined_flag=
1.150 moko 11482: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11483: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11484: ac_status=$?
1.150 moko 11485: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486: test $ac_status = 0; }
1.128 moko 11487: then
11488: lt_cv_archive_cmds_need_lc=no
11489: else
11490: lt_cv_archive_cmds_need_lc=yes
11491: fi
11492: allow_undefined_flag=$lt_save_allow_undefined_flag
11493: else
11494: cat conftest.err 1>&5
11495: fi
11496: $RM conftest*
11497:
11498: fi
1.150 moko 11499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11500: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11501: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11502: ;;
11503: esac
11504: fi
11505: ;;
11506: esac
11507:
11508:
11509:
11510:
11511:
11512:
11513:
11514:
11515:
11516:
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
11572:
11573:
11574:
11575:
11576:
11577:
11578:
11579:
11580:
11581:
11582:
11583:
11584:
11585:
11586:
11587:
11588:
11589:
11590:
11591:
11592:
11593:
11594:
11595:
11596:
11597:
11598:
11599:
11600:
11601:
11602:
11603:
11604:
11605:
11606:
11607:
11608:
11609:
11610:
11611:
11612:
11613:
11614:
11615:
11616:
11617:
11618:
11619:
11620:
11621:
11622:
11623:
11624:
11625:
11626:
11627:
11628:
11629:
11630:
11631:
11632:
11633:
11634:
11635:
11636:
11637:
11638:
11639:
11640:
11641:
11642:
11643:
11644:
11645:
11646:
11647:
11648:
11649:
11650:
11651:
11652:
11653:
11654:
11655:
11656:
11657:
11658:
1.150 moko 11659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11660: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11661:
11662: if test "$GCC" = yes; then
11663: case $host_os in
11664: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11665: *) lt_awk_arg="/^libraries:/" ;;
11666: esac
11667: case $host_os in
11668: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11669: *) lt_sed_strip_eq="s,=/,/,g" ;;
11670: esac
11671: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11672: case $lt_search_path_spec in
11673: *\;*)
11674: # if the path contains ";" then we assume it to be the separator
11675: # otherwise default to the standard path separator (i.e. ":") - it is
11676: # assumed that no part of a normal pathname contains ";" but that should
11677: # okay in the real world where ";" in dirpaths is itself problematic.
11678: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11679: ;;
11680: *)
11681: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11682: ;;
11683: esac
11684: # Ok, now we have the path, separated by spaces, we can step through it
11685: # and add multilib dir if necessary.
11686: lt_tmp_lt_search_path_spec=
11687: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11688: for lt_sys_path in $lt_search_path_spec; do
11689: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11690: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11691: else
11692: test -d "$lt_sys_path" && \
11693: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11694: fi
11695: done
11696: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11697: BEGIN {RS=" "; FS="/|\n";} {
11698: lt_foo="";
11699: lt_count=0;
11700: for (lt_i = NF; lt_i > 0; lt_i--) {
11701: if ($lt_i != "" && $lt_i != ".") {
11702: if ($lt_i == "..") {
11703: lt_count++;
11704: } else {
11705: if (lt_count == 0) {
11706: lt_foo="/" $lt_i lt_foo;
11707: } else {
11708: lt_count--;
11709: }
11710: }
11711: }
11712: }
11713: if (lt_foo != "") { lt_freq[lt_foo]++; }
11714: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11715: }'`
11716: # AWK program above erroneously prepends '/' to C:/dos/paths
11717: # for these hosts.
11718: case $host_os in
11719: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11720: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11721: esac
11722: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11723: else
11724: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11725: fi
11726: library_names_spec=
11727: libname_spec='lib$name'
11728: soname_spec=
11729: shrext_cmds=".so"
11730: postinstall_cmds=
11731: postuninstall_cmds=
11732: finish_cmds=
11733: finish_eval=
11734: shlibpath_var=
11735: shlibpath_overrides_runpath=unknown
11736: version_type=none
11737: dynamic_linker="$host_os ld.so"
11738: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11739: need_lib_prefix=unknown
11740: hardcode_into_libs=no
11741:
11742: # when you set need_version to no, make sure it does not cause -set_version
11743: # flags to be left without arguments
11744: need_version=unknown
11745:
11746: case $host_os in
11747: aix3*)
11748: version_type=linux # correct to gnu/linux during the next big refactor
11749: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11750: shlibpath_var=LIBPATH
11751:
11752: # AIX 3 has no versioning support, so we append a major version to the name.
11753: soname_spec='${libname}${release}${shared_ext}$major'
11754: ;;
11755:
11756: aix[4-9]*)
11757: version_type=linux # correct to gnu/linux during the next big refactor
11758: need_lib_prefix=no
11759: need_version=no
11760: hardcode_into_libs=yes
11761: if test "$host_cpu" = ia64; then
11762: # AIX 5 supports IA64
11763: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11764: shlibpath_var=LD_LIBRARY_PATH
11765: else
11766: # With GCC up to 2.95.x, collect2 would create an import file
11767: # for dependence libraries. The import file would start with
11768: # the line `#! .'. This would cause the generated library to
11769: # depend on `.', always an invalid library. This was fixed in
11770: # development snapshots of GCC prior to 3.0.
11771: case $host_os in
11772: aix4 | aix4.[01] | aix4.[01].*)
11773: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11774: echo ' yes '
11775: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11776: :
11777: else
11778: can_build_shared=no
11779: fi
11780: ;;
11781: esac
11782: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11783: # soname into executable. Probably we can add versioning support to
11784: # collect2, so additional links can be useful in future.
11785: if test "$aix_use_runtimelinking" = yes; then
11786: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11787: # instead of lib<name>.a to let people know that these are not
11788: # typical AIX shared libraries.
11789: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790: else
11791: # We preserve .a as extension for shared libraries through AIX4.2
11792: # and later when we are not doing run time linking.
11793: library_names_spec='${libname}${release}.a $libname.a'
11794: soname_spec='${libname}${release}${shared_ext}$major'
11795: fi
11796: shlibpath_var=LIBPATH
11797: fi
11798: ;;
11799:
11800: amigaos*)
11801: case $host_cpu in
11802: powerpc)
11803: # Since July 2007 AmigaOS4 officially supports .so libraries.
11804: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11805: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806: ;;
11807: m68k)
11808: library_names_spec='$libname.ixlibrary $libname.a'
11809: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11810: 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'
11811: ;;
11812: esac
11813: ;;
11814:
11815: beos*)
11816: library_names_spec='${libname}${shared_ext}'
11817: dynamic_linker="$host_os ld.so"
11818: shlibpath_var=LIBRARY_PATH
11819: ;;
11820:
11821: bsdi[45]*)
11822: version_type=linux # correct to gnu/linux during the next big refactor
11823: need_version=no
11824: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11825: soname_spec='${libname}${release}${shared_ext}$major'
11826: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11827: shlibpath_var=LD_LIBRARY_PATH
11828: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11829: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11830: # the default ld.so.conf also contains /usr/contrib/lib and
11831: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11832: # libtool to hard-code these into programs
11833: ;;
11834:
11835: cygwin* | mingw* | pw32* | cegcc*)
11836: version_type=windows
11837: shrext_cmds=".dll"
11838: need_version=no
11839: need_lib_prefix=no
11840:
11841: case $GCC,$cc_basename in
11842: yes,*)
11843: # gcc
11844: library_names_spec='$libname.dll.a'
11845: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11846: postinstall_cmds='base_file=`basename \${file}`~
11847: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11848: dldir=$destdir/`dirname \$dlpath`~
11849: test -d \$dldir || mkdir -p \$dldir~
11850: $install_prog $dir/$dlname \$dldir/$dlname~
11851: chmod a+x \$dldir/$dlname~
11852: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11853: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11854: fi'
11855: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11856: dlpath=$dir/\$dldll~
11857: $RM \$dlpath'
11858: shlibpath_overrides_runpath=yes
11859:
11860: case $host_os in
11861: cygwin*)
11862: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11863: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11864:
11865: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11866: ;;
11867: mingw* | cegcc*)
11868: # MinGW DLLs use traditional 'lib' prefix
11869: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11870: ;;
11871: pw32*)
11872: # pw32 DLLs use 'pw' prefix rather than 'lib'
11873: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11874: ;;
11875: esac
11876: dynamic_linker='Win32 ld.exe'
11877: ;;
11878:
11879: *,cl*)
11880: # Native MSVC
11881: libname_spec='$name'
11882: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11883: library_names_spec='${libname}.dll.lib'
11884:
11885: case $build_os in
11886: mingw*)
11887: sys_lib_search_path_spec=
11888: lt_save_ifs=$IFS
11889: IFS=';'
11890: for lt_path in $LIB
11891: do
11892: IFS=$lt_save_ifs
11893: # Let DOS variable expansion print the short 8.3 style file name.
11894: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11895: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11896: done
11897: IFS=$lt_save_ifs
11898: # Convert to MSYS style.
11899: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11900: ;;
11901: cygwin*)
11902: # Convert to unix form, then to dos form, then back to unix form
11903: # but this time dos style (no spaces!) so that the unix form looks
11904: # like /cygdrive/c/PROGRA~1:/cygdr...
11905: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11906: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11907: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11908: ;;
11909: *)
11910: sys_lib_search_path_spec="$LIB"
11911: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11912: # It is most probably a Windows format PATH.
11913: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11914: else
11915: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11916: fi
11917: # FIXME: find the short name or the path components, as spaces are
11918: # common. (e.g. "Program Files" -> "PROGRA~1")
11919: ;;
11920: esac
11921:
11922: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11923: postinstall_cmds='base_file=`basename \${file}`~
11924: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11925: dldir=$destdir/`dirname \$dlpath`~
11926: test -d \$dldir || mkdir -p \$dldir~
11927: $install_prog $dir/$dlname \$dldir/$dlname'
11928: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11929: dlpath=$dir/\$dldll~
11930: $RM \$dlpath'
11931: shlibpath_overrides_runpath=yes
11932: dynamic_linker='Win32 link.exe'
11933: ;;
11934:
11935: *)
11936: # Assume MSVC wrapper
11937: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11938: dynamic_linker='Win32 ld.exe'
11939: ;;
11940: esac
11941: # FIXME: first we should search . and the directory the executable is in
11942: shlibpath_var=PATH
11943: ;;
11944:
11945: darwin* | rhapsody*)
11946: dynamic_linker="$host_os dyld"
11947: version_type=darwin
11948: need_lib_prefix=no
11949: need_version=no
11950: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11951: soname_spec='${libname}${release}${major}$shared_ext'
11952: shlibpath_overrides_runpath=yes
11953: shlibpath_var=DYLD_LIBRARY_PATH
11954: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11955:
11956: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11957: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11958: ;;
11959:
11960: dgux*)
11961: version_type=linux # correct to gnu/linux during the next big refactor
11962: need_lib_prefix=no
11963: need_version=no
11964: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11965: soname_spec='${libname}${release}${shared_ext}$major'
11966: shlibpath_var=LD_LIBRARY_PATH
11967: ;;
11968:
11969: freebsd* | dragonfly*)
11970: # DragonFly does not have aout. When/if they implement a new
11971: # versioning mechanism, adjust this.
11972: if test -x /usr/bin/objformat; then
11973: objformat=`/usr/bin/objformat`
11974: else
11975: case $host_os in
11976: freebsd[23].*) objformat=aout ;;
11977: *) objformat=elf ;;
11978: esac
11979: fi
11980: version_type=freebsd-$objformat
11981: case $version_type in
11982: freebsd-elf*)
11983: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11984: need_version=no
11985: need_lib_prefix=no
11986: ;;
11987: freebsd-*)
11988: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11989: need_version=yes
11990: ;;
11991: esac
11992: shlibpath_var=LD_LIBRARY_PATH
11993: case $host_os in
11994: freebsd2.*)
11995: shlibpath_overrides_runpath=yes
11996: ;;
11997: freebsd3.[01]* | freebsdelf3.[01]*)
11998: shlibpath_overrides_runpath=yes
11999: hardcode_into_libs=yes
12000: ;;
12001: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12002: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12003: shlibpath_overrides_runpath=no
12004: hardcode_into_libs=yes
12005: ;;
12006: *) # from 4.6 on, and DragonFly
12007: shlibpath_overrides_runpath=yes
12008: hardcode_into_libs=yes
12009: ;;
12010: esac
12011: ;;
12012:
12013: gnu*)
12014: version_type=linux # correct to gnu/linux during the next big refactor
12015: need_lib_prefix=no
12016: need_version=no
12017: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12018: soname_spec='${libname}${release}${shared_ext}$major'
12019: shlibpath_var=LD_LIBRARY_PATH
12020: shlibpath_overrides_runpath=no
12021: hardcode_into_libs=yes
12022: ;;
12023:
12024: haiku*)
12025: version_type=linux # correct to gnu/linux during the next big refactor
12026: need_lib_prefix=no
12027: need_version=no
12028: dynamic_linker="$host_os runtime_loader"
12029: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12030: soname_spec='${libname}${release}${shared_ext}$major'
12031: shlibpath_var=LIBRARY_PATH
12032: shlibpath_overrides_runpath=yes
12033: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12034: hardcode_into_libs=yes
12035: ;;
12036:
12037: hpux9* | hpux10* | hpux11*)
12038: # Give a soname corresponding to the major version so that dld.sl refuses to
12039: # link against other versions.
12040: version_type=sunos
12041: need_lib_prefix=no
12042: need_version=no
12043: case $host_cpu in
12044: ia64*)
12045: shrext_cmds='.so'
12046: hardcode_into_libs=yes
12047: dynamic_linker="$host_os dld.so"
12048: shlibpath_var=LD_LIBRARY_PATH
12049: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12050: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051: soname_spec='${libname}${release}${shared_ext}$major'
12052: if test "X$HPUX_IA64_MODE" = X32; then
12053: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12054: else
12055: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12056: fi
12057: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12058: ;;
12059: hppa*64*)
12060: shrext_cmds='.sl'
12061: hardcode_into_libs=yes
12062: dynamic_linker="$host_os dld.sl"
12063: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12064: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066: soname_spec='${libname}${release}${shared_ext}$major'
12067: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12068: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12069: ;;
12070: *)
12071: shrext_cmds='.sl'
12072: dynamic_linker="$host_os dld.sl"
12073: shlibpath_var=SHLIB_PATH
12074: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12075: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076: soname_spec='${libname}${release}${shared_ext}$major'
12077: ;;
12078: esac
12079: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12080: postinstall_cmds='chmod 555 $lib'
12081: # or fails outright, so override atomically:
12082: install_override_mode=555
12083: ;;
12084:
12085: interix[3-9]*)
12086: version_type=linux # correct to gnu/linux during the next big refactor
12087: need_lib_prefix=no
12088: need_version=no
12089: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12090: soname_spec='${libname}${release}${shared_ext}$major'
12091: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12092: shlibpath_var=LD_LIBRARY_PATH
12093: shlibpath_overrides_runpath=no
12094: hardcode_into_libs=yes
12095: ;;
12096:
12097: irix5* | irix6* | nonstopux*)
12098: case $host_os in
12099: nonstopux*) version_type=nonstopux ;;
12100: *)
12101: if test "$lt_cv_prog_gnu_ld" = yes; then
12102: version_type=linux # correct to gnu/linux during the next big refactor
12103: else
12104: version_type=irix
12105: fi ;;
12106: esac
12107: need_lib_prefix=no
12108: need_version=no
12109: soname_spec='${libname}${release}${shared_ext}$major'
12110: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12111: case $host_os in
12112: irix5* | nonstopux*)
12113: libsuff= shlibsuff=
12114: ;;
12115: *)
12116: case $LD in # libtool.m4 will add one of these switches to LD
12117: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12118: libsuff= shlibsuff= libmagic=32-bit;;
12119: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12120: libsuff=32 shlibsuff=N32 libmagic=N32;;
12121: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12122: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12123: *) libsuff= shlibsuff= libmagic=never-match;;
12124: esac
12125: ;;
12126: esac
12127: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12128: shlibpath_overrides_runpath=no
12129: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12130: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12131: hardcode_into_libs=yes
12132: ;;
12133:
12134: # No shared lib support for Linux oldld, aout, or coff.
12135: linux*oldld* | linux*aout* | linux*coff*)
12136: dynamic_linker=no
12137: ;;
12138:
12139: # This must be glibc/ELF.
12140: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12141: version_type=linux # correct to gnu/linux during the next big refactor
12142: need_lib_prefix=no
12143: need_version=no
12144: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12145: soname_spec='${libname}${release}${shared_ext}$major'
12146: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12147: shlibpath_var=LD_LIBRARY_PATH
12148: shlibpath_overrides_runpath=no
12149:
12150: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 12151: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12152: $as_echo_n "(cached) " >&6
1.128 moko 12153: else
12154: lt_cv_shlibpath_overrides_runpath=no
12155: save_LDFLAGS=$LDFLAGS
12156: save_libdir=$libdir
12157: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12158: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 12159: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12160: /* end confdefs.h. */
12161:
12162: int
12163: main ()
12164: {
12165:
12166: ;
12167: return 0;
12168: }
12169: _ACEOF
1.150 moko 12170: if ac_fn_c_try_link "$LINENO"; then :
12171: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 12172: lt_cv_shlibpath_overrides_runpath=yes
12173: fi
12174: fi
1.150 moko 12175: rm -f core conftest.err conftest.$ac_objext \
12176: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12177: LDFLAGS=$save_LDFLAGS
12178: libdir=$save_libdir
12179:
12180: fi
12181:
12182: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12183:
12184: # This implies no fast_install, which is unacceptable.
12185: # Some rework will be needed to allow for fast_install
12186: # before this can be enabled.
12187: hardcode_into_libs=yes
12188:
12189: # Append ld.so.conf contents to the search path
12190: if test -f /etc/ld.so.conf; then
12191: 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' ' '`
12192: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12193: fi
12194:
12195: # We used to test for /lib/ld.so.1 and disable shared libraries on
12196: # powerpc, because MkLinux only supported shared libraries with the
12197: # GNU dynamic linker. Since this was broken with cross compilers,
12198: # most powerpc-linux boxes support dynamic linking these days and
12199: # people can always --disable-shared, the test was removed, and we
12200: # assume the GNU/Linux dynamic linker is in use.
12201: dynamic_linker='GNU/Linux ld.so'
12202: ;;
12203:
12204: netbsd*)
12205: version_type=sunos
12206: need_lib_prefix=no
12207: need_version=no
12208: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12209: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12210: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12211: dynamic_linker='NetBSD (a.out) ld.so'
12212: else
12213: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12214: soname_spec='${libname}${release}${shared_ext}$major'
12215: dynamic_linker='NetBSD ld.elf_so'
12216: fi
12217: shlibpath_var=LD_LIBRARY_PATH
12218: shlibpath_overrides_runpath=yes
12219: hardcode_into_libs=yes
12220: ;;
12221:
12222: newsos6)
12223: version_type=linux # correct to gnu/linux during the next big refactor
12224: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12225: shlibpath_var=LD_LIBRARY_PATH
12226: shlibpath_overrides_runpath=yes
12227: ;;
12228:
12229: *nto* | *qnx*)
12230: version_type=qnx
12231: need_lib_prefix=no
12232: need_version=no
12233: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234: soname_spec='${libname}${release}${shared_ext}$major'
12235: shlibpath_var=LD_LIBRARY_PATH
12236: shlibpath_overrides_runpath=no
12237: hardcode_into_libs=yes
12238: dynamic_linker='ldqnx.so'
12239: ;;
12240:
12241: openbsd*)
12242: version_type=sunos
12243: sys_lib_dlsearch_path_spec="/usr/lib"
12244: need_lib_prefix=no
12245: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12246: case $host_os in
12247: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12248: *) need_version=no ;;
12249: esac
12250: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12251: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12252: shlibpath_var=LD_LIBRARY_PATH
12253: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12254: case $host_os in
12255: openbsd2.[89] | openbsd2.[89].*)
12256: shlibpath_overrides_runpath=no
12257: ;;
12258: *)
12259: shlibpath_overrides_runpath=yes
12260: ;;
12261: esac
12262: else
12263: shlibpath_overrides_runpath=yes
12264: fi
12265: ;;
12266:
12267: os2*)
12268: libname_spec='$name'
12269: shrext_cmds=".dll"
12270: need_lib_prefix=no
12271: library_names_spec='$libname${shared_ext} $libname.a'
12272: dynamic_linker='OS/2 ld.exe'
12273: shlibpath_var=LIBPATH
12274: ;;
12275:
12276: osf3* | osf4* | osf5*)
12277: version_type=osf
12278: need_lib_prefix=no
12279: need_version=no
12280: soname_spec='${libname}${release}${shared_ext}$major'
12281: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282: shlibpath_var=LD_LIBRARY_PATH
12283: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12284: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12285: ;;
12286:
12287: rdos*)
12288: dynamic_linker=no
12289: ;;
12290:
12291: solaris*)
12292: version_type=linux # correct to gnu/linux during the next big refactor
12293: need_lib_prefix=no
12294: need_version=no
12295: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296: soname_spec='${libname}${release}${shared_ext}$major'
12297: shlibpath_var=LD_LIBRARY_PATH
12298: shlibpath_overrides_runpath=yes
12299: hardcode_into_libs=yes
12300: # ldd complains unless libraries are executable
12301: postinstall_cmds='chmod +x $lib'
12302: ;;
12303:
12304: sunos4*)
12305: version_type=sunos
12306: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12307: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12308: shlibpath_var=LD_LIBRARY_PATH
12309: shlibpath_overrides_runpath=yes
12310: if test "$with_gnu_ld" = yes; then
12311: need_lib_prefix=no
12312: fi
12313: need_version=yes
12314: ;;
12315:
12316: sysv4 | sysv4.3*)
12317: version_type=linux # correct to gnu/linux during the next big refactor
12318: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319: soname_spec='${libname}${release}${shared_ext}$major'
12320: shlibpath_var=LD_LIBRARY_PATH
12321: case $host_vendor in
12322: sni)
12323: shlibpath_overrides_runpath=no
12324: need_lib_prefix=no
12325: runpath_var=LD_RUN_PATH
12326: ;;
12327: siemens)
12328: need_lib_prefix=no
12329: ;;
12330: motorola)
12331: need_lib_prefix=no
12332: need_version=no
12333: shlibpath_overrides_runpath=no
12334: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12335: ;;
12336: esac
12337: ;;
12338:
12339: sysv4*MP*)
12340: if test -d /usr/nec ;then
12341: version_type=linux # correct to gnu/linux during the next big refactor
12342: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12343: soname_spec='$libname${shared_ext}.$major'
12344: shlibpath_var=LD_LIBRARY_PATH
12345: fi
12346: ;;
12347:
12348: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12349: version_type=freebsd-elf
12350: need_lib_prefix=no
12351: need_version=no
12352: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12353: soname_spec='${libname}${release}${shared_ext}$major'
12354: shlibpath_var=LD_LIBRARY_PATH
12355: shlibpath_overrides_runpath=yes
12356: hardcode_into_libs=yes
12357: if test "$with_gnu_ld" = yes; then
12358: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12359: else
12360: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12361: case $host_os in
12362: sco3.2v5*)
12363: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12364: ;;
12365: esac
12366: fi
12367: sys_lib_dlsearch_path_spec='/usr/lib'
12368: ;;
12369:
12370: tpf*)
12371: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12372: version_type=linux # correct to gnu/linux during the next big refactor
12373: need_lib_prefix=no
12374: need_version=no
12375: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376: shlibpath_var=LD_LIBRARY_PATH
12377: shlibpath_overrides_runpath=no
12378: hardcode_into_libs=yes
12379: ;;
12380:
12381: uts4*)
12382: version_type=linux # correct to gnu/linux during the next big refactor
12383: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384: soname_spec='${libname}${release}${shared_ext}$major'
12385: shlibpath_var=LD_LIBRARY_PATH
12386: ;;
12387:
12388: *)
12389: dynamic_linker=no
12390: ;;
12391: esac
1.150 moko 12392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12393: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12394: test "$dynamic_linker" = no && can_build_shared=no
12395:
12396: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12397: if test "$GCC" = yes; then
12398: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12399: fi
12400:
12401: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12402: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12403: fi
12404: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12405: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12406: fi
12407:
12408:
12409:
12410:
12411:
12412:
12413:
12414:
12415:
12416:
12417:
12418:
12419:
12420:
12421:
12422:
12423:
12424:
12425:
12426:
12427:
12428:
12429:
12430:
12431:
12432:
12433:
12434:
12435:
12436:
12437:
12438:
12439:
12440:
12441:
12442:
12443:
12444:
12445:
12446:
12447:
12448:
12449:
12450:
12451:
12452:
12453:
12454:
12455:
12456:
12457:
12458:
12459:
12460:
12461:
12462:
12463:
12464:
12465:
12466:
12467:
12468:
12469:
12470:
12471:
12472:
12473:
12474:
12475:
12476:
12477:
12478:
12479:
12480:
12481:
12482:
12483:
12484:
12485:
12486:
12487:
12488:
12489:
12490:
12491:
12492:
12493:
12494:
12495:
12496:
12497:
12498:
1.150 moko 12499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12500: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12501: hardcode_action=
12502: if test -n "$hardcode_libdir_flag_spec" ||
12503: test -n "$runpath_var" ||
12504: test "X$hardcode_automatic" = "Xyes" ; then
12505:
12506: # We can hardcode non-existent directories.
12507: if test "$hardcode_direct" != no &&
12508: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12509: # have to relink, otherwise we might link with an installed library
12510: # when we should be linking with a yet-to-be-installed one
12511: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12512: test "$hardcode_minus_L" != no; then
12513: # Linking always hardcodes the temporary library directory.
12514: hardcode_action=relink
12515: else
12516: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12517: hardcode_action=immediate
12518: fi
12519: else
12520: # We cannot hardcode anything, or else we can only hardcode existing
12521: # directories.
12522: hardcode_action=unsupported
12523: fi
1.150 moko 12524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12525: $as_echo "$hardcode_action" >&6; }
1.128 moko 12526:
12527: if test "$hardcode_action" = relink ||
12528: test "$inherit_rpath" = yes; then
12529: # Fast installation is not supported
12530: enable_fast_install=no
12531: elif test "$shlibpath_overrides_runpath" = yes ||
12532: test "$enable_shared" = no; then
12533: # Fast installation is not necessary
12534: enable_fast_install=needless
12535: fi
12536:
12537:
12538:
12539:
12540:
12541:
12542: if test "x$enable_dlopen" != xyes; then
12543: enable_dlopen=unknown
12544: enable_dlopen_self=unknown
12545: enable_dlopen_self_static=unknown
12546: else
12547: lt_cv_dlopen=no
12548: lt_cv_dlopen_libs=
12549:
12550: case $host_os in
12551: beos*)
12552: lt_cv_dlopen="load_add_on"
12553: lt_cv_dlopen_libs=
12554: lt_cv_dlopen_self=yes
12555: ;;
12556:
12557: mingw* | pw32* | cegcc*)
12558: lt_cv_dlopen="LoadLibrary"
12559: lt_cv_dlopen_libs=
12560: ;;
12561:
12562: cygwin*)
12563: lt_cv_dlopen="dlopen"
12564: lt_cv_dlopen_libs=
12565: ;;
12566:
12567: darwin*)
12568: # if libdl is installed we need to link against it
1.150 moko 12569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12570: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12571: if ${ac_cv_lib_dl_dlopen+:} false; then :
12572: $as_echo_n "(cached) " >&6
1.128 moko 12573: else
12574: ac_check_lib_save_LIBS=$LIBS
12575: LIBS="-ldl $LIBS"
1.150 moko 12576: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12577: /* end confdefs.h. */
12578:
1.150 moko 12579: /* Override any GCC internal prototype to avoid an error.
12580: Use char because int might match the return type of a GCC
12581: builtin and then its argument prototype would still apply. */
1.128 moko 12582: #ifdef __cplusplus
12583: extern "C"
12584: #endif
12585: char dlopen ();
12586: int
12587: main ()
12588: {
1.150 moko 12589: return dlopen ();
1.128 moko 12590: ;
12591: return 0;
12592: }
12593: _ACEOF
1.150 moko 12594: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12595: ac_cv_lib_dl_dlopen=yes
12596: else
1.150 moko 12597: ac_cv_lib_dl_dlopen=no
1.128 moko 12598: fi
1.150 moko 12599: rm -f core conftest.err conftest.$ac_objext \
12600: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12601: LIBS=$ac_check_lib_save_LIBS
12602: fi
1.150 moko 12603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12604: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12605: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12606: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12607: else
12608:
12609: lt_cv_dlopen="dyld"
12610: lt_cv_dlopen_libs=
12611: lt_cv_dlopen_self=yes
12612:
12613: fi
12614:
12615: ;;
12616:
12617: *)
1.150 moko 12618: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12619: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12620: lt_cv_dlopen="shl_load"
12621: else
1.150 moko 12622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12623: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12624: if ${ac_cv_lib_dld_shl_load+:} false; then :
12625: $as_echo_n "(cached) " >&6
1.128 moko 12626: else
12627: ac_check_lib_save_LIBS=$LIBS
12628: LIBS="-ldld $LIBS"
1.150 moko 12629: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12630: /* end confdefs.h. */
12631:
1.150 moko 12632: /* Override any GCC internal prototype to avoid an error.
12633: Use char because int might match the return type of a GCC
12634: builtin and then its argument prototype would still apply. */
1.128 moko 12635: #ifdef __cplusplus
12636: extern "C"
12637: #endif
12638: char shl_load ();
12639: int
12640: main ()
12641: {
1.150 moko 12642: return shl_load ();
1.128 moko 12643: ;
12644: return 0;
12645: }
12646: _ACEOF
1.150 moko 12647: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12648: ac_cv_lib_dld_shl_load=yes
12649: else
1.150 moko 12650: ac_cv_lib_dld_shl_load=no
1.128 moko 12651: fi
1.150 moko 12652: rm -f core conftest.err conftest.$ac_objext \
12653: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12654: LIBS=$ac_check_lib_save_LIBS
12655: fi
1.150 moko 12656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12657: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12658: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12659: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12660: else
1.150 moko 12661: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12662: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12663: lt_cv_dlopen="dlopen"
12664: else
1.150 moko 12665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12666: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12667: if ${ac_cv_lib_dl_dlopen+:} false; then :
12668: $as_echo_n "(cached) " >&6
1.128 moko 12669: else
12670: ac_check_lib_save_LIBS=$LIBS
12671: LIBS="-ldl $LIBS"
1.150 moko 12672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12673: /* end confdefs.h. */
12674:
1.150 moko 12675: /* Override any GCC internal prototype to avoid an error.
12676: Use char because int might match the return type of a GCC
12677: builtin and then its argument prototype would still apply. */
1.128 moko 12678: #ifdef __cplusplus
12679: extern "C"
12680: #endif
12681: char dlopen ();
12682: int
12683: main ()
12684: {
1.150 moko 12685: return dlopen ();
1.128 moko 12686: ;
12687: return 0;
12688: }
12689: _ACEOF
1.150 moko 12690: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12691: ac_cv_lib_dl_dlopen=yes
12692: else
1.150 moko 12693: ac_cv_lib_dl_dlopen=no
1.128 moko 12694: fi
1.150 moko 12695: rm -f core conftest.err conftest.$ac_objext \
12696: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12697: LIBS=$ac_check_lib_save_LIBS
12698: fi
1.150 moko 12699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12700: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12701: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12702: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12703: else
1.150 moko 12704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12705: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12706: if ${ac_cv_lib_svld_dlopen+:} false; then :
12707: $as_echo_n "(cached) " >&6
1.128 moko 12708: else
12709: ac_check_lib_save_LIBS=$LIBS
12710: LIBS="-lsvld $LIBS"
1.150 moko 12711: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12712: /* end confdefs.h. */
12713:
1.150 moko 12714: /* Override any GCC internal prototype to avoid an error.
12715: Use char because int might match the return type of a GCC
12716: builtin and then its argument prototype would still apply. */
1.128 moko 12717: #ifdef __cplusplus
12718: extern "C"
12719: #endif
12720: char dlopen ();
12721: int
12722: main ()
12723: {
1.150 moko 12724: return dlopen ();
1.128 moko 12725: ;
12726: return 0;
12727: }
12728: _ACEOF
1.150 moko 12729: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12730: ac_cv_lib_svld_dlopen=yes
12731: else
1.150 moko 12732: ac_cv_lib_svld_dlopen=no
1.128 moko 12733: fi
1.150 moko 12734: rm -f core conftest.err conftest.$ac_objext \
12735: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12736: LIBS=$ac_check_lib_save_LIBS
12737: fi
1.150 moko 12738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12739: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12740: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12741: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12742: else
1.150 moko 12743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12744: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12745: if ${ac_cv_lib_dld_dld_link+:} false; then :
12746: $as_echo_n "(cached) " >&6
1.128 moko 12747: else
12748: ac_check_lib_save_LIBS=$LIBS
12749: LIBS="-ldld $LIBS"
1.150 moko 12750: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12751: /* end confdefs.h. */
12752:
1.150 moko 12753: /* Override any GCC internal prototype to avoid an error.
12754: Use char because int might match the return type of a GCC
12755: builtin and then its argument prototype would still apply. */
1.128 moko 12756: #ifdef __cplusplus
12757: extern "C"
12758: #endif
12759: char dld_link ();
12760: int
12761: main ()
12762: {
1.150 moko 12763: return dld_link ();
1.128 moko 12764: ;
12765: return 0;
12766: }
12767: _ACEOF
1.150 moko 12768: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12769: ac_cv_lib_dld_dld_link=yes
12770: else
1.150 moko 12771: ac_cv_lib_dld_dld_link=no
12772: fi
12773: rm -f core conftest.err conftest.$ac_objext \
12774: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12775: LIBS=$ac_check_lib_save_LIBS
12776: fi
1.150 moko 12777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12778: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12779: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12780: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12781: fi
12782:
12783:
12784: fi
12785:
12786:
12787: fi
12788:
12789:
12790: fi
12791:
12792:
12793: fi
12794:
12795:
12796: fi
12797:
12798: ;;
12799: esac
12800:
12801: if test "x$lt_cv_dlopen" != xno; then
12802: enable_dlopen=yes
12803: else
12804: enable_dlopen=no
12805: fi
12806:
12807: case $lt_cv_dlopen in
12808: dlopen)
12809: save_CPPFLAGS="$CPPFLAGS"
12810: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12811:
12812: save_LDFLAGS="$LDFLAGS"
12813: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12814:
12815: save_LIBS="$LIBS"
12816: LIBS="$lt_cv_dlopen_libs $LIBS"
12817:
1.150 moko 12818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12819: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12820: if ${lt_cv_dlopen_self+:} false; then :
12821: $as_echo_n "(cached) " >&6
1.128 moko 12822: else
12823: if test "$cross_compiling" = yes; then :
12824: lt_cv_dlopen_self=cross
12825: else
12826: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12827: lt_status=$lt_dlunknown
12828: cat > conftest.$ac_ext <<_LT_EOF
12829: #line $LINENO "configure"
12830: #include "confdefs.h"
12831:
12832: #if HAVE_DLFCN_H
12833: #include <dlfcn.h>
12834: #endif
12835:
12836: #include <stdio.h>
12837:
12838: #ifdef RTLD_GLOBAL
12839: # define LT_DLGLOBAL RTLD_GLOBAL
12840: #else
12841: # ifdef DL_GLOBAL
12842: # define LT_DLGLOBAL DL_GLOBAL
12843: # else
12844: # define LT_DLGLOBAL 0
12845: # endif
12846: #endif
12847:
12848: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12849: find out it does not work in some platform. */
12850: #ifndef LT_DLLAZY_OR_NOW
12851: # ifdef RTLD_LAZY
12852: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12853: # else
12854: # ifdef DL_LAZY
12855: # define LT_DLLAZY_OR_NOW DL_LAZY
12856: # else
12857: # ifdef RTLD_NOW
12858: # define LT_DLLAZY_OR_NOW RTLD_NOW
12859: # else
12860: # ifdef DL_NOW
12861: # define LT_DLLAZY_OR_NOW DL_NOW
12862: # else
12863: # define LT_DLLAZY_OR_NOW 0
12864: # endif
12865: # endif
12866: # endif
12867: # endif
12868: #endif
12869:
12870: /* When -fvisbility=hidden is used, assume the code has been annotated
12871: correspondingly for the symbols needed. */
12872: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12873: int fnord () __attribute__((visibility("default")));
12874: #endif
12875:
12876: int fnord () { return 42; }
12877: int main ()
12878: {
12879: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12880: int status = $lt_dlunknown;
12881:
12882: if (self)
12883: {
12884: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12885: else
12886: {
12887: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12888: else puts (dlerror ());
12889: }
12890: /* dlclose (self); */
12891: }
12892: else
12893: puts (dlerror ());
12894:
12895: return status;
12896: }
12897: _LT_EOF
1.150 moko 12898: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12899: (eval $ac_link) 2>&5
12900: ac_status=$?
1.150 moko 12901: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12903: (./conftest; exit; ) >&5 2>/dev/null
12904: lt_status=$?
12905: case x$lt_status in
12906: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12907: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12908: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12909: esac
12910: else :
12911: # compilation failed
12912: lt_cv_dlopen_self=no
12913: fi
12914: fi
12915: rm -fr conftest*
12916:
12917:
12918: fi
1.150 moko 12919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12920: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12921:
12922: if test "x$lt_cv_dlopen_self" = xyes; then
12923: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12925: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12926: if ${lt_cv_dlopen_self_static+:} false; then :
12927: $as_echo_n "(cached) " >&6
1.128 moko 12928: else
12929: if test "$cross_compiling" = yes; then :
12930: lt_cv_dlopen_self_static=cross
12931: else
12932: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12933: lt_status=$lt_dlunknown
12934: cat > conftest.$ac_ext <<_LT_EOF
12935: #line $LINENO "configure"
12936: #include "confdefs.h"
12937:
12938: #if HAVE_DLFCN_H
12939: #include <dlfcn.h>
12940: #endif
12941:
12942: #include <stdio.h>
12943:
12944: #ifdef RTLD_GLOBAL
12945: # define LT_DLGLOBAL RTLD_GLOBAL
12946: #else
12947: # ifdef DL_GLOBAL
12948: # define LT_DLGLOBAL DL_GLOBAL
12949: # else
12950: # define LT_DLGLOBAL 0
12951: # endif
12952: #endif
12953:
12954: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12955: find out it does not work in some platform. */
12956: #ifndef LT_DLLAZY_OR_NOW
12957: # ifdef RTLD_LAZY
12958: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12959: # else
12960: # ifdef DL_LAZY
12961: # define LT_DLLAZY_OR_NOW DL_LAZY
12962: # else
12963: # ifdef RTLD_NOW
12964: # define LT_DLLAZY_OR_NOW RTLD_NOW
12965: # else
12966: # ifdef DL_NOW
12967: # define LT_DLLAZY_OR_NOW DL_NOW
12968: # else
12969: # define LT_DLLAZY_OR_NOW 0
12970: # endif
12971: # endif
12972: # endif
12973: # endif
12974: #endif
12975:
12976: /* When -fvisbility=hidden is used, assume the code has been annotated
12977: correspondingly for the symbols needed. */
12978: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12979: int fnord () __attribute__((visibility("default")));
12980: #endif
12981:
12982: int fnord () { return 42; }
12983: int main ()
12984: {
12985: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12986: int status = $lt_dlunknown;
12987:
12988: if (self)
12989: {
12990: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12991: else
12992: {
12993: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12994: else puts (dlerror ());
12995: }
12996: /* dlclose (self); */
12997: }
12998: else
12999: puts (dlerror ());
13000:
13001: return status;
13002: }
13003: _LT_EOF
1.150 moko 13004: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 13005: (eval $ac_link) 2>&5
13006: ac_status=$?
1.150 moko 13007: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13008: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 13009: (./conftest; exit; ) >&5 2>/dev/null
13010: lt_status=$?
13011: case x$lt_status in
13012: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13013: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13014: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13015: esac
13016: else :
13017: # compilation failed
13018: lt_cv_dlopen_self_static=no
13019: fi
13020: fi
13021: rm -fr conftest*
13022:
13023:
13024: fi
1.150 moko 13025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13026: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 13027: fi
13028:
13029: CPPFLAGS="$save_CPPFLAGS"
13030: LDFLAGS="$save_LDFLAGS"
13031: LIBS="$save_LIBS"
13032: ;;
13033: esac
13034:
13035: case $lt_cv_dlopen_self in
13036: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13037: *) enable_dlopen_self=unknown ;;
13038: esac
13039:
13040: case $lt_cv_dlopen_self_static in
13041: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13042: *) enable_dlopen_self_static=unknown ;;
13043: esac
13044: fi
13045:
13046:
13047:
13048:
13049:
13050:
13051:
13052:
13053:
13054:
13055:
13056:
13057:
13058:
13059:
13060:
13061:
13062: striplib=
13063: old_striplib=
1.150 moko 13064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13065: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 13066: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13067: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13068: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 13069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13070: $as_echo "yes" >&6; }
1.128 moko 13071: else
13072: # FIXME - insert some real tests, host_os isn't really good enough
13073: case $host_os in
13074: darwin*)
13075: if test -n "$STRIP" ; then
13076: striplib="$STRIP -x"
13077: old_striplib="$STRIP -S"
1.150 moko 13078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13079: $as_echo "yes" >&6; }
1.128 moko 13080: else
1.150 moko 13081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082: $as_echo "no" >&6; }
1.128 moko 13083: fi
13084: ;;
13085: *)
1.150 moko 13086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087: $as_echo "no" >&6; }
1.128 moko 13088: ;;
13089: esac
13090: fi
13091:
13092:
13093:
13094:
13095:
13096:
13097:
13098:
13099:
13100:
13101:
13102:
13103: # Report which library types will actually be built
1.150 moko 13104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13105: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13107: $as_echo "$can_build_shared" >&6; }
1.128 moko 13108:
1.150 moko 13109: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13110: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 13111: test "$can_build_shared" = "no" && enable_shared=no
13112:
13113: # On AIX, shared libraries and static libraries use the same namespace, and
13114: # are all built from PIC.
13115: case $host_os in
13116: aix3*)
13117: test "$enable_shared" = yes && enable_static=no
13118: if test -n "$RANLIB"; then
13119: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13120: postinstall_cmds='$RANLIB $lib'
13121: fi
13122: ;;
13123:
13124: aix[4-9]*)
13125: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13126: test "$enable_shared" = yes && enable_static=no
13127: fi
13128: ;;
13129: esac
1.150 moko 13130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13131: $as_echo "$enable_shared" >&6; }
1.128 moko 13132:
1.150 moko 13133: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13134: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 13135: # Make sure either enable_shared or enable_static is yes.
13136: test "$enable_shared" = yes || enable_static=yes
1.150 moko 13137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13138: $as_echo "$enable_static" >&6; }
1.128 moko 13139:
13140:
13141:
13142:
13143: fi
13144: ac_ext=c
13145: ac_cpp='$CPP $CPPFLAGS'
13146: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13149:
13150: CC="$lt_save_CC"
13151:
13152: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13153: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13154: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 13155: ac_ext=cpp
1.128 moko 13156: ac_cpp='$CXXCPP $CPPFLAGS'
13157: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13158: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13159: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 13160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13161: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 13162: if test -z "$CXXCPP"; then
1.150 moko 13163: if ${ac_cv_prog_CXXCPP+:} false; then :
13164: $as_echo_n "(cached) " >&6
1.128 moko 13165: else
13166: # Double quotes because CXXCPP needs to be expanded
13167: for CXXCPP in "$CXX -E" "/lib/cpp"
13168: do
13169: ac_preproc_ok=false
13170: for ac_cxx_preproc_warn_flag in '' yes
13171: do
13172: # Use a header file that comes with gcc, so configuring glibc
13173: # with a fresh cross-compiler works.
13174: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13175: # <limits.h> exists even on freestanding compilers.
13176: # On the NeXT, cc -E runs the code through the compiler's parser,
13177: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13178: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13179: /* end confdefs.h. */
13180: #ifdef __STDC__
13181: # include <limits.h>
13182: #else
13183: # include <assert.h>
13184: #endif
13185: Syntax error
13186: _ACEOF
1.150 moko 13187: if ac_fn_cxx_try_cpp "$LINENO"; then :
13188:
1.128 moko 13189: else
13190: # Broken: fails on valid input.
13191: continue
13192: fi
1.150 moko 13193: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13194:
1.150 moko 13195: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13196: # can be detected and how.
1.150 moko 13197: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13198: /* end confdefs.h. */
13199: #include <ac_nonexistent.h>
13200: _ACEOF
1.150 moko 13201: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13202: # Broken: success on invalid input.
13203: continue
13204: else
13205: # Passes both tests.
13206: ac_preproc_ok=:
13207: break
13208: fi
1.150 moko 13209: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13210:
13211: done
13212: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13213: rm -f conftest.i conftest.err conftest.$ac_ext
13214: if $ac_preproc_ok; then :
1.128 moko 13215: break
13216: fi
13217:
13218: done
13219: ac_cv_prog_CXXCPP=$CXXCPP
13220:
13221: fi
13222: CXXCPP=$ac_cv_prog_CXXCPP
13223: else
13224: ac_cv_prog_CXXCPP=$CXXCPP
13225: fi
1.150 moko 13226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13227: $as_echo "$CXXCPP" >&6; }
1.128 moko 13228: ac_preproc_ok=false
13229: for ac_cxx_preproc_warn_flag in '' yes
13230: do
13231: # Use a header file that comes with gcc, so configuring glibc
13232: # with a fresh cross-compiler works.
13233: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13234: # <limits.h> exists even on freestanding compilers.
13235: # On the NeXT, cc -E runs the code through the compiler's parser,
13236: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13237: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13238: /* end confdefs.h. */
13239: #ifdef __STDC__
13240: # include <limits.h>
13241: #else
13242: # include <assert.h>
13243: #endif
13244: Syntax error
13245: _ACEOF
1.150 moko 13246: if ac_fn_cxx_try_cpp "$LINENO"; then :
13247:
1.128 moko 13248: else
13249: # Broken: fails on valid input.
13250: continue
13251: fi
1.150 moko 13252: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13253:
1.150 moko 13254: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13255: # can be detected and how.
1.150 moko 13256: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13257: /* end confdefs.h. */
13258: #include <ac_nonexistent.h>
13259: _ACEOF
1.150 moko 13260: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13261: # Broken: success on invalid input.
13262: continue
13263: else
13264: # Passes both tests.
13265: ac_preproc_ok=:
13266: break
13267: fi
1.150 moko 13268: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13269:
13270: done
13271: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13272: rm -f conftest.i conftest.err conftest.$ac_ext
13273: if $ac_preproc_ok; then :
13274:
1.128 moko 13275: else
1.150 moko 13276: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13277: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13278: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13279: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 13280: fi
13281:
13282: ac_ext=c
13283: ac_cpp='$CPP $CPPFLAGS'
13284: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13285: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13286: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13287:
13288: else
13289: _lt_caught_CXX_error=yes
13290: fi
13291:
1.150 moko 13292: ac_ext=cpp
1.128 moko 13293: ac_cpp='$CXXCPP $CPPFLAGS'
13294: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13297:
13298: archive_cmds_need_lc_CXX=no
13299: allow_undefined_flag_CXX=
13300: always_export_symbols_CXX=no
13301: archive_expsym_cmds_CXX=
13302: compiler_needs_object_CXX=no
13303: export_dynamic_flag_spec_CXX=
13304: hardcode_direct_CXX=no
13305: hardcode_direct_absolute_CXX=no
13306: hardcode_libdir_flag_spec_CXX=
13307: hardcode_libdir_separator_CXX=
13308: hardcode_minus_L_CXX=no
13309: hardcode_shlibpath_var_CXX=unsupported
13310: hardcode_automatic_CXX=no
13311: inherit_rpath_CXX=no
13312: module_cmds_CXX=
13313: module_expsym_cmds_CXX=
13314: link_all_deplibs_CXX=unknown
13315: old_archive_cmds_CXX=$old_archive_cmds
13316: reload_flag_CXX=$reload_flag
13317: reload_cmds_CXX=$reload_cmds
13318: no_undefined_flag_CXX=
13319: whole_archive_flag_spec_CXX=
13320: enable_shared_with_static_runtimes_CXX=no
13321:
13322: # Source file extension for C++ test sources.
13323: ac_ext=cpp
13324:
13325: # Object file extension for compiled C++ test sources.
13326: objext=o
13327: objext_CXX=$objext
13328:
13329: # No sense in running all these tests if we already determined that
13330: # the CXX compiler isn't working. Some variables (like enable_shared)
13331: # are currently assumed to apply to all compilers on this platform,
13332: # and will be corrupted by setting them based on a non-working compiler.
13333: if test "$_lt_caught_CXX_error" != yes; then
13334: # Code to be used in simple compile tests
13335: lt_simple_compile_test_code="int some_variable = 0;"
13336:
13337: # Code to be used in simple link tests
13338: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13339:
13340: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13341:
13342:
13343:
13344:
13345:
13346:
13347: # If no C compiler was specified, use CC.
13348: LTCC=${LTCC-"$CC"}
13349:
13350: # If no C compiler flags were specified, use CFLAGS.
13351: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13352:
13353: # Allow CC to be a program name with arguments.
13354: compiler=$CC
13355:
13356:
13357: # save warnings/boilerplate of simple test code
13358: ac_outfile=conftest.$ac_objext
13359: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13360: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13361: _lt_compiler_boilerplate=`cat conftest.err`
13362: $RM conftest*
13363:
13364: ac_outfile=conftest.$ac_objext
13365: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13366: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13367: _lt_linker_boilerplate=`cat conftest.err`
13368: $RM -r conftest*
13369:
13370:
13371: # Allow CC to be a program name with arguments.
13372: lt_save_CC=$CC
13373: lt_save_CFLAGS=$CFLAGS
13374: lt_save_LD=$LD
13375: lt_save_GCC=$GCC
13376: GCC=$GXX
13377: lt_save_with_gnu_ld=$with_gnu_ld
13378: lt_save_path_LD=$lt_cv_path_LD
13379: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13380: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13381: else
13382: $as_unset lt_cv_prog_gnu_ld
13383: fi
13384: if test -n "${lt_cv_path_LDCXX+set}"; then
13385: lt_cv_path_LD=$lt_cv_path_LDCXX
13386: else
13387: $as_unset lt_cv_path_LD
13388: fi
13389: test -z "${LDCXX+set}" || LD=$LDCXX
13390: CC=${CXX-"c++"}
13391: CFLAGS=$CXXFLAGS
13392: compiler=$CC
13393: compiler_CXX=$CC
13394: for cc_temp in $compiler""; do
13395: case $cc_temp in
13396: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13397: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13398: \-*) ;;
13399: *) break;;
13400: esac
13401: done
13402: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13403:
13404:
13405: if test -n "$compiler"; then
13406: # We don't want -fno-exception when compiling C++ code, so set the
13407: # no_builtin_flag separately
13408: if test "$GXX" = yes; then
13409: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13410: else
13411: lt_prog_compiler_no_builtin_flag_CXX=
13412: fi
13413:
13414: if test "$GXX" = yes; then
13415: # Set up default GNU C++ configuration
13416:
13417:
13418:
1.150 moko 13419: # Check whether --with-gnu-ld was given.
13420: if test "${with_gnu_ld+set}" = set; then :
13421: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13422: else
13423: with_gnu_ld=no
1.150 moko 13424: fi
13425:
1.128 moko 13426: ac_prog=ld
13427: if test "$GCC" = yes; then
13428: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13430: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13431: case $host in
13432: *-*-mingw*)
13433: # gcc leaves a trailing carriage return which upsets mingw
13434: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13435: *)
13436: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13437: esac
13438: case $ac_prog in
13439: # Accept absolute paths.
13440: [\\/]* | ?:[\\/]*)
13441: re_direlt='/[^/][^/]*/\.\./'
13442: # Canonicalize the pathname of ld
13443: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13444: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13445: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13446: done
13447: test -z "$LD" && LD="$ac_prog"
13448: ;;
13449: "")
13450: # If it fails, then pretend we aren't using GCC.
13451: ac_prog=ld
13452: ;;
13453: *)
13454: # If it is relative, then search for the first ld in PATH.
13455: with_gnu_ld=unknown
13456: ;;
13457: esac
13458: elif test "$with_gnu_ld" = yes; then
1.150 moko 13459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13460: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13461: else
1.150 moko 13462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13463: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13464: fi
1.150 moko 13465: if ${lt_cv_path_LD+:} false; then :
13466: $as_echo_n "(cached) " >&6
1.128 moko 13467: else
13468: if test -z "$LD"; then
13469: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13470: for ac_dir in $PATH; do
13471: IFS="$lt_save_ifs"
13472: test -z "$ac_dir" && ac_dir=.
13473: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13474: lt_cv_path_LD="$ac_dir/$ac_prog"
13475: # Check to see if the program is GNU ld. I'd rather use --version,
13476: # but apparently some variants of GNU ld only accept -v.
13477: # Break only if it was the GNU/non-GNU ld that we prefer.
13478: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13479: *GNU* | *'with BFD'*)
13480: test "$with_gnu_ld" != no && break
13481: ;;
13482: *)
13483: test "$with_gnu_ld" != yes && break
13484: ;;
13485: esac
13486: fi
13487: done
13488: IFS="$lt_save_ifs"
13489: else
13490: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13491: fi
13492: fi
13493:
13494: LD="$lt_cv_path_LD"
13495: if test -n "$LD"; then
1.150 moko 13496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13497: $as_echo "$LD" >&6; }
1.128 moko 13498: else
1.150 moko 13499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500: $as_echo "no" >&6; }
1.128 moko 13501: fi
1.150 moko 13502: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13503: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13504: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13505: if ${lt_cv_prog_gnu_ld+:} false; then :
13506: $as_echo_n "(cached) " >&6
1.128 moko 13507: else
13508: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13509: case `$LD -v 2>&1 </dev/null` in
13510: *GNU* | *'with BFD'*)
13511: lt_cv_prog_gnu_ld=yes
13512: ;;
13513: *)
13514: lt_cv_prog_gnu_ld=no
13515: ;;
13516: esac
13517: fi
1.150 moko 13518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13519: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13520: with_gnu_ld=$lt_cv_prog_gnu_ld
13521:
13522:
13523:
13524:
13525:
13526:
13527:
13528: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13529: # archiving commands below assume that GNU ld is being used.
13530: if test "$with_gnu_ld" = yes; then
13531: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532: 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'
13533:
13534: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13535: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13536:
13537: # If archive_cmds runs LD, not CC, wlarc should be empty
13538: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13539: # investigate it a little bit more. (MM)
13540: wlarc='${wl}'
13541:
13542: # ancient GNU ld didn't support --whole-archive et. al.
13543: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13544: $GREP 'no-whole-archive' > /dev/null; then
13545: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13546: else
13547: whole_archive_flag_spec_CXX=
13548: fi
13549: else
13550: with_gnu_ld=no
13551: wlarc=
13552:
13553: # A generic and very simple default shared library creation
13554: # command for GNU C++ for the case where it uses the native
13555: # linker, instead of GNU ld. If possible, this setting should
13556: # overridden to take advantage of the native linker features on
13557: # the platform it is being used on.
13558: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13559: fi
13560:
13561: # Commands to make compiler produce verbose output that lists
13562: # what "hidden" libraries, object files and flags are used when
13563: # linking a shared library.
13564: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13565:
13566: else
13567: GXX=no
13568: with_gnu_ld=no
13569: wlarc=
13570: fi
13571:
13572: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13574: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13575: ld_shlibs_CXX=yes
13576: case $host_os in
13577: aix3*)
13578: # FIXME: insert proper C++ library support
13579: ld_shlibs_CXX=no
13580: ;;
13581: aix[4-9]*)
13582: if test "$host_cpu" = ia64; then
13583: # On IA64, the linker does run time linking by default, so we don't
13584: # have to do anything special.
13585: aix_use_runtimelinking=no
13586: exp_sym_flag='-Bexport'
13587: no_entry_flag=""
13588: else
13589: aix_use_runtimelinking=no
13590:
13591: # Test if we are trying to use run time linking or normal
13592: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13593: # need to do runtime linking.
13594: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13595: for ld_flag in $LDFLAGS; do
13596: case $ld_flag in
13597: *-brtl*)
13598: aix_use_runtimelinking=yes
13599: break
13600: ;;
13601: esac
13602: done
13603: ;;
13604: esac
13605:
13606: exp_sym_flag='-bexport'
13607: no_entry_flag='-bnoentry'
13608: fi
13609:
13610: # When large executables or shared objects are built, AIX ld can
13611: # have problems creating the table of contents. If linking a library
13612: # or program results in "error TOC overflow" add -mminimal-toc to
13613: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13614: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13615:
13616: archive_cmds_CXX=''
13617: hardcode_direct_CXX=yes
13618: hardcode_direct_absolute_CXX=yes
13619: hardcode_libdir_separator_CXX=':'
13620: link_all_deplibs_CXX=yes
13621: file_list_spec_CXX='${wl}-f,'
13622:
13623: if test "$GXX" = yes; then
13624: case $host_os in aix4.[012]|aix4.[012].*)
13625: # We only want to do this on AIX 4.2 and lower, the check
13626: # below for broken collect2 doesn't work under 4.3+
13627: collect2name=`${CC} -print-prog-name=collect2`
13628: if test -f "$collect2name" &&
13629: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13630: then
13631: # We have reworked collect2
13632: :
13633: else
13634: # We have old collect2
13635: hardcode_direct_CXX=unsupported
13636: # It fails to find uninstalled libraries when the uninstalled
13637: # path is not listed in the libpath. Setting hardcode_minus_L
13638: # to unsupported forces relinking
13639: hardcode_minus_L_CXX=yes
13640: hardcode_libdir_flag_spec_CXX='-L$libdir'
13641: hardcode_libdir_separator_CXX=
13642: fi
13643: esac
13644: shared_flag='-shared'
13645: if test "$aix_use_runtimelinking" = yes; then
13646: shared_flag="$shared_flag "'${wl}-G'
13647: fi
13648: else
13649: # not using gcc
13650: if test "$host_cpu" = ia64; then
13651: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13652: # chokes on -Wl,-G. The following line is correct:
13653: shared_flag='-G'
13654: else
13655: if test "$aix_use_runtimelinking" = yes; then
13656: shared_flag='${wl}-G'
13657: else
13658: shared_flag='${wl}-bM:SRE'
13659: fi
13660: fi
13661: fi
13662:
13663: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13664: # It seems that -bexpall does not export symbols beginning with
13665: # underscore (_), so it is better to generate a list of symbols to
13666: # export.
13667: always_export_symbols_CXX=yes
13668: if test "$aix_use_runtimelinking" = yes; then
13669: # Warning - without using the other runtime loading flags (-brtl),
13670: # -berok will link without error, but may produce a broken library.
13671: allow_undefined_flag_CXX='-berok'
13672: # Determine the default libpath from the value encoded in an empty
13673: # executable.
13674: if test "${lt_cv_aix_libpath+set}" = set; then
13675: aix_libpath=$lt_cv_aix_libpath
13676: else
1.150 moko 13677: if ${lt_cv_aix_libpath__CXX+:} false; then :
13678: $as_echo_n "(cached) " >&6
1.128 moko 13679: else
1.150 moko 13680: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13681: /* end confdefs.h. */
13682:
13683: int
13684: main ()
13685: {
13686:
13687: ;
13688: return 0;
13689: }
13690: _ACEOF
1.150 moko 13691: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13692:
13693: lt_aix_libpath_sed='
13694: /Import File Strings/,/^$/ {
13695: /^0/ {
13696: s/^0 *\([^ ]*\) *$/\1/
13697: p
13698: }
13699: }'
13700: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13701: # Check for a 64-bit object if we didn't find anything.
13702: if test -z "$lt_cv_aix_libpath__CXX"; then
13703: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13704: fi
13705: fi
1.150 moko 13706: rm -f core conftest.err conftest.$ac_objext \
13707: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13708: if test -z "$lt_cv_aix_libpath__CXX"; then
13709: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13710: fi
13711:
13712: fi
13713:
13714: aix_libpath=$lt_cv_aix_libpath__CXX
13715: fi
13716:
13717: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13718:
13719: 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"
13720: else
13721: if test "$host_cpu" = ia64; then
13722: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13723: allow_undefined_flag_CXX="-z nodefs"
13724: 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"
13725: else
13726: # Determine the default libpath from the value encoded in an
13727: # empty executable.
13728: if test "${lt_cv_aix_libpath+set}" = set; then
13729: aix_libpath=$lt_cv_aix_libpath
13730: else
1.150 moko 13731: if ${lt_cv_aix_libpath__CXX+:} false; then :
13732: $as_echo_n "(cached) " >&6
1.128 moko 13733: else
1.150 moko 13734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13735: /* end confdefs.h. */
13736:
13737: int
13738: main ()
13739: {
13740:
13741: ;
13742: return 0;
13743: }
13744: _ACEOF
1.150 moko 13745: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13746:
13747: lt_aix_libpath_sed='
13748: /Import File Strings/,/^$/ {
13749: /^0/ {
13750: s/^0 *\([^ ]*\) *$/\1/
13751: p
13752: }
13753: }'
13754: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13755: # Check for a 64-bit object if we didn't find anything.
13756: if test -z "$lt_cv_aix_libpath__CXX"; then
13757: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13758: fi
13759: fi
1.150 moko 13760: rm -f core conftest.err conftest.$ac_objext \
13761: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13762: if test -z "$lt_cv_aix_libpath__CXX"; then
13763: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13764: fi
13765:
13766: fi
13767:
13768: aix_libpath=$lt_cv_aix_libpath__CXX
13769: fi
13770:
13771: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13772: # Warning - without using the other run time loading flags,
13773: # -berok will link without error, but may produce a broken library.
13774: no_undefined_flag_CXX=' ${wl}-bernotok'
13775: allow_undefined_flag_CXX=' ${wl}-berok'
13776: if test "$with_gnu_ld" = yes; then
13777: # We only use this code for GNU lds that support --whole-archive.
13778: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13779: else
13780: # Exported symbols can be pulled into shared objects from archives
13781: whole_archive_flag_spec_CXX='$convenience'
13782: fi
13783: archive_cmds_need_lc_CXX=yes
13784: # This is similar to how AIX traditionally builds its shared
13785: # libraries.
13786: 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'
13787: fi
13788: fi
13789: ;;
13790:
13791: beos*)
13792: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13793: allow_undefined_flag_CXX=unsupported
13794: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13795: # support --undefined. This deserves some investigation. FIXME
13796: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13797: else
13798: ld_shlibs_CXX=no
13799: fi
13800: ;;
13801:
13802: chorus*)
13803: case $cc_basename in
13804: *)
13805: # FIXME: insert proper C++ library support
13806: ld_shlibs_CXX=no
13807: ;;
13808: esac
13809: ;;
13810:
13811: cygwin* | mingw* | pw32* | cegcc*)
13812: case $GXX,$cc_basename in
13813: ,cl* | no,cl*)
13814: # Native MSVC
13815: # hardcode_libdir_flag_spec is actually meaningless, as there is
13816: # no search path for DLLs.
13817: hardcode_libdir_flag_spec_CXX=' '
13818: allow_undefined_flag_CXX=unsupported
13819: always_export_symbols_CXX=yes
13820: file_list_spec_CXX='@'
13821: # Tell ltmain to make .lib files, not .a files.
13822: libext=lib
13823: # Tell ltmain to make .dll files, not .so files.
13824: shrext_cmds=".dll"
13825: # FIXME: Setting linknames here is a bad hack.
13826: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13827: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13828: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13829: else
13830: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13831: fi~
13832: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13833: linknames='
13834: # The linker will not automatically build a static lib if we build a DLL.
13835: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13836: enable_shared_with_static_runtimes_CXX=yes
13837: # Don't use ranlib
13838: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13839: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13840: lt_tool_outputfile="@TOOL_OUTPUT@"~
13841: case $lt_outputfile in
13842: *.exe|*.EXE) ;;
13843: *)
13844: lt_outputfile="$lt_outputfile.exe"
13845: lt_tool_outputfile="$lt_tool_outputfile.exe"
13846: ;;
13847: esac~
13848: func_to_tool_file "$lt_outputfile"~
13849: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13850: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13851: $RM "$lt_outputfile.manifest";
13852: fi'
13853: ;;
13854: *)
13855: # g++
13856: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13857: # as there is no search path for DLLs.
13858: hardcode_libdir_flag_spec_CXX='-L$libdir'
13859: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13860: allow_undefined_flag_CXX=unsupported
13861: always_export_symbols_CXX=no
13862: enable_shared_with_static_runtimes_CXX=yes
13863:
13864: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13865: 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'
13866: # If the export-symbols file already is a .def file (1st line
13867: # is EXPORTS), use it as is; otherwise, prepend...
13868: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13869: cp $export_symbols $output_objdir/$soname.def;
13870: else
13871: echo EXPORTS > $output_objdir/$soname.def;
13872: cat $export_symbols >> $output_objdir/$soname.def;
13873: fi~
13874: $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'
13875: else
13876: ld_shlibs_CXX=no
13877: fi
13878: ;;
13879: esac
13880: ;;
13881: darwin* | rhapsody*)
13882:
13883:
13884: archive_cmds_need_lc_CXX=no
13885: hardcode_direct_CXX=no
13886: hardcode_automatic_CXX=yes
13887: hardcode_shlibpath_var_CXX=unsupported
13888: if test "$lt_cv_ld_force_load" = "yes"; then
13889: 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\"`'
13890:
13891: else
13892: whole_archive_flag_spec_CXX=''
13893: fi
13894: link_all_deplibs_CXX=yes
13895: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13896: case $cc_basename in
13897: ifort*) _lt_dar_can_shared=yes ;;
13898: *) _lt_dar_can_shared=$GCC ;;
13899: esac
13900: if test "$_lt_dar_can_shared" = "yes"; then
13901: output_verbose_link_cmd=func_echo_all
13902: 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}"
13903: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13904: 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}"
13905: 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}"
13906: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13907: 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}"
13908: 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}"
13909: fi
13910:
13911: else
13912: ld_shlibs_CXX=no
13913: fi
13914:
13915: ;;
13916:
13917: dgux*)
13918: case $cc_basename in
13919: ec++*)
13920: # FIXME: insert proper C++ library support
13921: ld_shlibs_CXX=no
13922: ;;
13923: ghcx*)
13924: # Green Hills C++ Compiler
13925: # FIXME: insert proper C++ library support
13926: ld_shlibs_CXX=no
13927: ;;
13928: *)
13929: # FIXME: insert proper C++ library support
13930: ld_shlibs_CXX=no
13931: ;;
13932: esac
13933: ;;
13934:
13935: freebsd2.*)
13936: # C++ shared libraries reported to be fairly broken before
13937: # switch to ELF
13938: ld_shlibs_CXX=no
13939: ;;
13940:
13941: freebsd-elf*)
13942: archive_cmds_need_lc_CXX=no
13943: ;;
13944:
13945: freebsd* | dragonfly*)
13946: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13947: # conventions
13948: ld_shlibs_CXX=yes
13949: ;;
13950:
13951: gnu*)
13952: ;;
13953:
13954: haiku*)
13955: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13956: link_all_deplibs_CXX=yes
13957: ;;
13958:
13959: hpux9*)
13960: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13961: hardcode_libdir_separator_CXX=:
13962: export_dynamic_flag_spec_CXX='${wl}-E'
13963: hardcode_direct_CXX=yes
13964: hardcode_minus_L_CXX=yes # Not in the search PATH,
13965: # but as the default
13966: # location of the library.
13967:
13968: case $cc_basename in
13969: CC*)
13970: # FIXME: insert proper C++ library support
13971: ld_shlibs_CXX=no
13972: ;;
13973: aCC*)
13974: 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'
13975: # Commands to make compiler produce verbose output that lists
13976: # what "hidden" libraries, object files and flags are used when
13977: # linking a shared library.
13978: #
13979: # There doesn't appear to be a way to prevent this compiler from
13980: # explicitly linking system object files so we need to strip them
13981: # from the output so that they don't get included in the library
13982: # dependencies.
13983: 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"'
13984: ;;
13985: *)
13986: if test "$GXX" = yes; then
13987: 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'
13988: else
13989: # FIXME: insert proper C++ library support
13990: ld_shlibs_CXX=no
13991: fi
13992: ;;
13993: esac
13994: ;;
13995:
13996: hpux10*|hpux11*)
13997: if test $with_gnu_ld = no; then
13998: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13999: hardcode_libdir_separator_CXX=:
14000:
14001: case $host_cpu in
14002: hppa*64*|ia64*)
14003: ;;
14004: *)
14005: export_dynamic_flag_spec_CXX='${wl}-E'
14006: ;;
14007: esac
14008: fi
14009: case $host_cpu in
14010: hppa*64*|ia64*)
14011: hardcode_direct_CXX=no
14012: hardcode_shlibpath_var_CXX=no
14013: ;;
14014: *)
14015: hardcode_direct_CXX=yes
14016: hardcode_direct_absolute_CXX=yes
14017: hardcode_minus_L_CXX=yes # Not in the search PATH,
14018: # but as the default
14019: # location of the library.
14020: ;;
14021: esac
14022:
14023: case $cc_basename in
14024: CC*)
14025: # FIXME: insert proper C++ library support
14026: ld_shlibs_CXX=no
14027: ;;
14028: aCC*)
14029: case $host_cpu in
14030: hppa*64*)
14031: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14032: ;;
14033: ia64*)
14034: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14035: ;;
14036: *)
14037: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14038: ;;
14039: esac
14040: # Commands to make compiler produce verbose output that lists
14041: # what "hidden" libraries, object files and flags are used when
14042: # linking a shared library.
14043: #
14044: # There doesn't appear to be a way to prevent this compiler from
14045: # explicitly linking system object files so we need to strip them
14046: # from the output so that they don't get included in the library
14047: # dependencies.
14048: 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"'
14049: ;;
14050: *)
14051: if test "$GXX" = yes; then
14052: if test $with_gnu_ld = no; then
14053: case $host_cpu in
14054: hppa*64*)
14055: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14056: ;;
14057: ia64*)
14058: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14059: ;;
14060: *)
14061: 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'
14062: ;;
14063: esac
14064: fi
14065: else
14066: # FIXME: insert proper C++ library support
14067: ld_shlibs_CXX=no
14068: fi
14069: ;;
14070: esac
14071: ;;
14072:
14073: interix[3-9]*)
14074: hardcode_direct_CXX=no
14075: hardcode_shlibpath_var_CXX=no
14076: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14077: export_dynamic_flag_spec_CXX='${wl}-E'
14078: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14079: # Instead, shared libraries are loaded at an image base (0x10000000 by
14080: # default) and relocated if they conflict, which is a slow very memory
14081: # consuming and fragmenting process. To avoid this, we pick a random,
14082: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14083: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14084: 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'
14085: 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'
14086: ;;
14087: irix5* | irix6*)
14088: case $cc_basename in
14089: CC*)
14090: # SGI C++
14091: 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'
14092:
14093: # Archives containing C++ object files must be created using
14094: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14095: # necessary to make sure instantiated templates are included
14096: # in the archive.
14097: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14098: ;;
14099: *)
14100: if test "$GXX" = yes; then
14101: if test "$with_gnu_ld" = no; then
14102: 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'
14103: else
14104: 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'
14105: fi
14106: fi
14107: link_all_deplibs_CXX=yes
14108: ;;
14109: esac
14110: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14111: hardcode_libdir_separator_CXX=:
14112: inherit_rpath_CXX=yes
14113: ;;
14114:
14115: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14116: case $cc_basename in
14117: KCC*)
14118: # Kuck and Associates, Inc. (KAI) C++ Compiler
14119:
14120: # KCC will only create a shared library if the output file
14121: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14122: # to its proper name (with version) after linking.
14123: 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'
14124: 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'
14125: # Commands to make compiler produce verbose output that lists
14126: # what "hidden" libraries, object files and flags are used when
14127: # linking a shared library.
14128: #
14129: # There doesn't appear to be a way to prevent this compiler from
14130: # explicitly linking system object files so we need to strip them
14131: # from the output so that they don't get included in the library
14132: # dependencies.
14133: 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"'
14134:
14135: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14136: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14137:
14138: # Archives containing C++ object files must be created using
14139: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14140: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14141: ;;
14142: icpc* | ecpc* )
14143: # Intel C++
14144: with_gnu_ld=yes
14145: # version 8.0 and above of icpc choke on multiply defined symbols
14146: # if we add $predep_objects and $postdep_objects, however 7.1 and
14147: # earlier do not add the objects themselves.
14148: case `$CC -V 2>&1` in
14149: *"Version 7."*)
14150: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14151: 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'
14152: ;;
14153: *) # Version 8.0 or newer
14154: tmp_idyn=
14155: case $host_cpu in
14156: ia64*) tmp_idyn=' -i_dynamic';;
14157: esac
14158: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14159: 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'
14160: ;;
14161: esac
14162: archive_cmds_need_lc_CXX=no
14163: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14164: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14165: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14166: ;;
14167: pgCC* | pgcpp*)
14168: # Portland Group C++ compiler
14169: case `$CC -V` in
14170: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14171: prelink_cmds_CXX='tpldir=Template.dir~
14172: rm -rf $tpldir~
14173: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14174: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14175: old_archive_cmds_CXX='tpldir=Template.dir~
14176: rm -rf $tpldir~
14177: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14178: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14179: $RANLIB $oldlib'
14180: archive_cmds_CXX='tpldir=Template.dir~
14181: rm -rf $tpldir~
14182: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14183: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14184: archive_expsym_cmds_CXX='tpldir=Template.dir~
14185: rm -rf $tpldir~
14186: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14187: $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'
14188: ;;
14189: *) # Version 6 and above use weak symbols
14190: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14191: 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'
14192: ;;
14193: esac
14194:
14195: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14196: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14197: 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'
14198: ;;
14199: cxx*)
14200: # Compaq C++
14201: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14202: 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'
14203:
14204: runpath_var=LD_RUN_PATH
14205: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14206: hardcode_libdir_separator_CXX=:
14207:
14208: # Commands to make compiler produce verbose output that lists
14209: # what "hidden" libraries, object files and flags are used when
14210: # linking a shared library.
14211: #
14212: # There doesn't appear to be a way to prevent this compiler from
14213: # explicitly linking system object files so we need to strip them
14214: # from the output so that they don't get included in the library
14215: # dependencies.
14216: 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'
14217: ;;
14218: xl* | mpixl* | bgxl*)
14219: # IBM XL 8.0 on PPC, with GNU ld
14220: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14221: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14222: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14223: if test "x$supports_anon_versioning" = xyes; then
14224: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14225: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14226: echo "local: *; };" >> $output_objdir/$libname.ver~
14227: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14228: fi
14229: ;;
14230: *)
14231: case `$CC -V 2>&1 | sed 5q` in
14232: *Sun\ C*)
14233: # Sun C++ 5.9
14234: no_undefined_flag_CXX=' -zdefs'
14235: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14236: 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'
14237: hardcode_libdir_flag_spec_CXX='-R$libdir'
14238: 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'
14239: compiler_needs_object_CXX=yes
14240:
14241: # Not sure whether something based on
14242: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14243: # would be better.
14244: output_verbose_link_cmd='func_echo_all'
14245:
14246: # Archives containing C++ object files must be created using
14247: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14248: # necessary to make sure instantiated templates are included
14249: # in the archive.
14250: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14251: ;;
14252: esac
14253: ;;
14254: esac
14255: ;;
14256:
14257: lynxos*)
14258: # FIXME: insert proper C++ library support
14259: ld_shlibs_CXX=no
14260: ;;
14261:
14262: m88k*)
14263: # FIXME: insert proper C++ library support
14264: ld_shlibs_CXX=no
14265: ;;
14266:
14267: mvs*)
14268: case $cc_basename in
14269: cxx*)
14270: # FIXME: insert proper C++ library support
14271: ld_shlibs_CXX=no
14272: ;;
14273: *)
14274: # FIXME: insert proper C++ library support
14275: ld_shlibs_CXX=no
14276: ;;
14277: esac
14278: ;;
14279:
14280: netbsd*)
14281: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14282: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14283: wlarc=
14284: hardcode_libdir_flag_spec_CXX='-R$libdir'
14285: hardcode_direct_CXX=yes
14286: hardcode_shlibpath_var_CXX=no
14287: fi
14288: # Workaround some broken pre-1.5 toolchains
14289: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14290: ;;
14291:
14292: *nto* | *qnx*)
14293: ld_shlibs_CXX=yes
14294: ;;
14295:
14296: openbsd2*)
14297: # C++ shared libraries are fairly broken
14298: ld_shlibs_CXX=no
14299: ;;
14300:
14301: openbsd*)
14302: if test -f /usr/libexec/ld.so; then
14303: hardcode_direct_CXX=yes
14304: hardcode_shlibpath_var_CXX=no
14305: hardcode_direct_absolute_CXX=yes
14306: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14307: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14308: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14309: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14310: export_dynamic_flag_spec_CXX='${wl}-E'
14311: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14312: fi
14313: output_verbose_link_cmd=func_echo_all
14314: else
14315: ld_shlibs_CXX=no
14316: fi
14317: ;;
14318:
14319: osf3* | osf4* | osf5*)
14320: case $cc_basename in
14321: KCC*)
14322: # Kuck and Associates, Inc. (KAI) C++ Compiler
14323:
14324: # KCC will only create a shared library if the output file
14325: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14326: # to its proper name (with version) after linking.
14327: 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'
14328:
14329: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14330: hardcode_libdir_separator_CXX=:
14331:
14332: # Archives containing C++ object files must be created using
14333: # the KAI C++ compiler.
14334: case $host in
14335: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14336: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14337: esac
14338: ;;
14339: RCC*)
14340: # Rational C++ 2.4.1
14341: # FIXME: insert proper C++ library support
14342: ld_shlibs_CXX=no
14343: ;;
14344: cxx*)
14345: case $host in
14346: osf3*)
14347: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14348: 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'
14349: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14350: ;;
14351: *)
14352: allow_undefined_flag_CXX=' -expect_unresolved \*'
14353: 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'
14354: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14355: echo "-hidden">> $lib.exp~
14356: $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~
14357: $RM $lib.exp'
14358: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14359: ;;
14360: esac
14361:
14362: hardcode_libdir_separator_CXX=:
14363:
14364: # Commands to make compiler produce verbose output that lists
14365: # what "hidden" libraries, object files and flags are used when
14366: # linking a shared library.
14367: #
14368: # There doesn't appear to be a way to prevent this compiler from
14369: # explicitly linking system object files so we need to strip them
14370: # from the output so that they don't get included in the library
14371: # dependencies.
14372: 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"'
14373: ;;
14374: *)
14375: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14376: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14377: case $host in
14378: osf3*)
14379: 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'
14380: ;;
14381: *)
14382: 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'
14383: ;;
14384: esac
14385:
14386: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14387: hardcode_libdir_separator_CXX=:
14388:
14389: # Commands to make compiler produce verbose output that lists
14390: # what "hidden" libraries, object files and flags are used when
14391: # linking a shared library.
14392: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14393:
14394: else
14395: # FIXME: insert proper C++ library support
14396: ld_shlibs_CXX=no
14397: fi
14398: ;;
14399: esac
14400: ;;
14401:
14402: psos*)
14403: # FIXME: insert proper C++ library support
14404: ld_shlibs_CXX=no
14405: ;;
14406:
14407: sunos4*)
14408: case $cc_basename in
14409: CC*)
14410: # Sun C++ 4.x
14411: # FIXME: insert proper C++ library support
14412: ld_shlibs_CXX=no
14413: ;;
14414: lcc*)
14415: # Lucid
14416: # FIXME: insert proper C++ library support
14417: ld_shlibs_CXX=no
14418: ;;
14419: *)
14420: # FIXME: insert proper C++ library support
14421: ld_shlibs_CXX=no
14422: ;;
14423: esac
14424: ;;
14425:
14426: solaris*)
14427: case $cc_basename in
14428: CC* | sunCC*)
14429: # Sun C++ 4.2, 5.x and Centerline C++
14430: archive_cmds_need_lc_CXX=yes
14431: no_undefined_flag_CXX=' -zdefs'
14432: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14433: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14434: $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'
14435:
14436: hardcode_libdir_flag_spec_CXX='-R$libdir'
14437: hardcode_shlibpath_var_CXX=no
14438: case $host_os in
14439: solaris2.[0-5] | solaris2.[0-5].*) ;;
14440: *)
14441: # The compiler driver will combine and reorder linker options,
14442: # but understands `-z linker_flag'.
14443: # Supported since Solaris 2.6 (maybe 2.5.1?)
14444: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14445: ;;
14446: esac
14447: link_all_deplibs_CXX=yes
14448:
14449: output_verbose_link_cmd='func_echo_all'
14450:
14451: # Archives containing C++ object files must be created using
14452: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14453: # necessary to make sure instantiated templates are included
14454: # in the archive.
14455: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14456: ;;
14457: gcx*)
14458: # Green Hills C++ Compiler
14459: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14460:
14461: # The C++ compiler must be used to create the archive.
14462: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14463: ;;
14464: *)
14465: # GNU C++ compiler with Solaris linker
14466: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14467: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14468: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14469: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14470: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14471: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14472:
14473: # Commands to make compiler produce verbose output that lists
14474: # what "hidden" libraries, object files and flags are used when
14475: # linking a shared library.
14476: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14477: else
14478: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14479: # platform.
14480: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14481: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14482: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14483:
14484: # Commands to make compiler produce verbose output that lists
14485: # what "hidden" libraries, object files and flags are used when
14486: # linking a shared library.
14487: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14488: fi
14489:
14490: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14491: case $host_os in
14492: solaris2.[0-5] | solaris2.[0-5].*) ;;
14493: *)
14494: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14495: ;;
14496: esac
14497: fi
14498: ;;
14499: esac
14500: ;;
14501:
14502: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14503: no_undefined_flag_CXX='${wl}-z,text'
14504: archive_cmds_need_lc_CXX=no
14505: hardcode_shlibpath_var_CXX=no
14506: runpath_var='LD_RUN_PATH'
14507:
14508: case $cc_basename in
14509: CC*)
14510: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14512: ;;
14513: *)
14514: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14516: ;;
14517: esac
14518: ;;
14519:
14520: sysv5* | sco3.2v5* | sco5v6*)
14521: # Note: We can NOT use -z defs as we might desire, because we do not
14522: # link with -lc, and that would cause any symbols used from libc to
14523: # always be unresolved, which means just about no library would
14524: # ever link correctly. If we're not using GNU ld we use -z text
14525: # though, which does catch some bad symbols but isn't as heavy-handed
14526: # as -z defs.
14527: no_undefined_flag_CXX='${wl}-z,text'
14528: allow_undefined_flag_CXX='${wl}-z,nodefs'
14529: archive_cmds_need_lc_CXX=no
14530: hardcode_shlibpath_var_CXX=no
14531: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14532: hardcode_libdir_separator_CXX=':'
14533: link_all_deplibs_CXX=yes
14534: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14535: runpath_var='LD_RUN_PATH'
14536:
14537: case $cc_basename in
14538: CC*)
14539: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14540: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14542: '"$old_archive_cmds_CXX"
14543: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14544: '"$reload_cmds_CXX"
14545: ;;
14546: *)
14547: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14549: ;;
14550: esac
14551: ;;
14552:
14553: tandem*)
14554: case $cc_basename in
14555: NCC*)
14556: # NonStop-UX NCC 3.20
14557: # FIXME: insert proper C++ library support
14558: ld_shlibs_CXX=no
14559: ;;
14560: *)
14561: # FIXME: insert proper C++ library support
14562: ld_shlibs_CXX=no
14563: ;;
14564: esac
14565: ;;
14566:
14567: vxworks*)
14568: # FIXME: insert proper C++ library support
14569: ld_shlibs_CXX=no
14570: ;;
14571:
14572: *)
14573: # FIXME: insert proper C++ library support
14574: ld_shlibs_CXX=no
14575: ;;
14576: esac
14577:
1.150 moko 14578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14579: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14580: test "$ld_shlibs_CXX" = no && can_build_shared=no
14581:
14582: GCC_CXX="$GXX"
14583: LD_CXX="$LD"
14584:
14585: ## CAVEAT EMPTOR:
14586: ## There is no encapsulation within the following macros, do not change
14587: ## the running order or otherwise move them around unless you know exactly
14588: ## what you are doing...
14589: # Dependencies to place before and after the object being linked:
14590: predep_objects_CXX=
14591: postdep_objects_CXX=
14592: predeps_CXX=
14593: postdeps_CXX=
14594: compiler_lib_search_path_CXX=
14595:
14596: cat > conftest.$ac_ext <<_LT_EOF
14597: class Foo
14598: {
14599: public:
14600: Foo (void) { a = 0; }
14601: private:
14602: int a;
14603: };
14604: _LT_EOF
14605:
14606:
14607: _lt_libdeps_save_CFLAGS=$CFLAGS
14608: case "$CC $CFLAGS " in #(
14609: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14610: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14611: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14612: esac
14613:
1.150 moko 14614: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14615: (eval $ac_compile) 2>&5
14616: ac_status=$?
1.150 moko 14617: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14618: test $ac_status = 0; }; then
1.128 moko 14619: # Parse the compiler output and extract the necessary
14620: # objects, libraries and library flags.
14621:
14622: # Sentinel used to keep track of whether or not we are before
14623: # the conftest object file.
14624: pre_test_object_deps_done=no
14625:
14626: for p in `eval "$output_verbose_link_cmd"`; do
14627: case ${prev}${p} in
14628:
14629: -L* | -R* | -l*)
14630: # Some compilers place space between "-{L,R}" and the path.
14631: # Remove the space.
14632: if test $p = "-L" ||
14633: test $p = "-R"; then
14634: prev=$p
14635: continue
14636: fi
14637:
14638: # Expand the sysroot to ease extracting the directories later.
14639: if test -z "$prev"; then
14640: case $p in
14641: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14642: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14643: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14644: esac
14645: fi
14646: case $p in
14647: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14648: esac
14649: if test "$pre_test_object_deps_done" = no; then
14650: case ${prev} in
14651: -L | -R)
14652: # Internal compiler library paths should come after those
14653: # provided the user. The postdeps already come after the
14654: # user supplied libs so there is no need to process them.
14655: if test -z "$compiler_lib_search_path_CXX"; then
14656: compiler_lib_search_path_CXX="${prev}${p}"
14657: else
14658: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14659: fi
14660: ;;
14661: # The "-l" case would never come before the object being
14662: # linked, so don't bother handling this case.
14663: esac
14664: else
14665: if test -z "$postdeps_CXX"; then
14666: postdeps_CXX="${prev}${p}"
14667: else
14668: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14669: fi
14670: fi
14671: prev=
14672: ;;
14673:
14674: *.lto.$objext) ;; # Ignore GCC LTO objects
14675: *.$objext)
14676: # This assumes that the test object file only shows up
14677: # once in the compiler output.
14678: if test "$p" = "conftest.$objext"; then
14679: pre_test_object_deps_done=yes
14680: continue
14681: fi
14682:
14683: if test "$pre_test_object_deps_done" = no; then
14684: if test -z "$predep_objects_CXX"; then
14685: predep_objects_CXX="$p"
14686: else
14687: predep_objects_CXX="$predep_objects_CXX $p"
14688: fi
14689: else
14690: if test -z "$postdep_objects_CXX"; then
14691: postdep_objects_CXX="$p"
14692: else
14693: postdep_objects_CXX="$postdep_objects_CXX $p"
14694: fi
14695: fi
14696: ;;
14697:
14698: *) ;; # Ignore the rest.
14699:
14700: esac
14701: done
14702:
14703: # Clean up.
14704: rm -f a.out a.exe
14705: else
14706: echo "libtool.m4: error: problem compiling CXX test program"
14707: fi
14708:
14709: $RM -f confest.$objext
14710: CFLAGS=$_lt_libdeps_save_CFLAGS
14711:
14712: # PORTME: override above test on systems where it is broken
14713: case $host_os in
14714: interix[3-9]*)
14715: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14716: # hack all around it, let's just trust "g++" to DTRT.
14717: predep_objects_CXX=
14718: postdep_objects_CXX=
14719: postdeps_CXX=
14720: ;;
14721:
14722: linux*)
14723: case `$CC -V 2>&1 | sed 5q` in
14724: *Sun\ C*)
14725: # Sun C++ 5.9
14726:
14727: # The more standards-conforming stlport4 library is
14728: # incompatible with the Cstd library. Avoid specifying
14729: # it if it's in CXXFLAGS. Ignore libCrun as
14730: # -library=stlport4 depends on it.
14731: case " $CXX $CXXFLAGS " in
14732: *" -library=stlport4 "*)
14733: solaris_use_stlport4=yes
14734: ;;
14735: esac
14736:
14737: if test "$solaris_use_stlport4" != yes; then
14738: postdeps_CXX='-library=Cstd -library=Crun'
14739: fi
14740: ;;
14741: esac
14742: ;;
14743:
14744: solaris*)
14745: case $cc_basename in
14746: CC* | sunCC*)
14747: # The more standards-conforming stlport4 library is
14748: # incompatible with the Cstd library. Avoid specifying
14749: # it if it's in CXXFLAGS. Ignore libCrun as
14750: # -library=stlport4 depends on it.
14751: case " $CXX $CXXFLAGS " in
14752: *" -library=stlport4 "*)
14753: solaris_use_stlport4=yes
14754: ;;
14755: esac
14756:
14757: # Adding this requires a known-good setup of shared libraries for
14758: # Sun compiler versions before 5.6, else PIC objects from an old
14759: # archive will be linked into the output, leading to subtle bugs.
14760: if test "$solaris_use_stlport4" != yes; then
14761: postdeps_CXX='-library=Cstd -library=Crun'
14762: fi
14763: ;;
14764: esac
14765: ;;
14766: esac
14767:
14768:
14769: case " $postdeps_CXX " in
14770: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14771: esac
14772: compiler_lib_search_dirs_CXX=
14773: if test -n "${compiler_lib_search_path_CXX}"; then
14774: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14775: fi
14776:
14777:
14778:
14779:
14780:
14781:
14782:
14783:
14784:
14785:
14786:
14787:
14788:
14789:
14790:
14791:
14792:
14793:
14794:
14795:
14796:
14797:
14798:
14799:
14800:
14801:
14802:
14803:
14804:
14805:
14806:
14807: lt_prog_compiler_wl_CXX=
14808: lt_prog_compiler_pic_CXX=
14809: lt_prog_compiler_static_CXX=
14810:
14811:
14812: # C++ specific cases for pic, static, wl, etc.
14813: if test "$GXX" = yes; then
14814: lt_prog_compiler_wl_CXX='-Wl,'
14815: lt_prog_compiler_static_CXX='-static'
14816:
14817: case $host_os in
14818: aix*)
14819: # All AIX code is PIC.
14820: if test "$host_cpu" = ia64; then
14821: # AIX 5 now supports IA64 processor
14822: lt_prog_compiler_static_CXX='-Bstatic'
14823: fi
14824: ;;
14825:
14826: amigaos*)
14827: case $host_cpu in
14828: powerpc)
14829: # see comment about AmigaOS4 .so support
14830: lt_prog_compiler_pic_CXX='-fPIC'
14831: ;;
14832: m68k)
14833: # FIXME: we need at least 68020 code to build shared libraries, but
14834: # adding the `-m68020' flag to GCC prevents building anything better,
14835: # like `-m68040'.
14836: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14837: ;;
14838: esac
14839: ;;
14840:
14841: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14842: # PIC is the default for these OSes.
14843: ;;
14844: mingw* | cygwin* | os2* | pw32* | cegcc*)
14845: # This hack is so that the source file can tell whether it is being
14846: # built for inclusion in a dll (and should export symbols for example).
14847: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14848: # (--disable-auto-import) libraries
14849: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14850: ;;
14851: darwin* | rhapsody*)
14852: # PIC is the default on this platform
14853: # Common symbols not allowed in MH_DYLIB files
14854: lt_prog_compiler_pic_CXX='-fno-common'
14855: ;;
14856: *djgpp*)
14857: # DJGPP does not support shared libraries at all
14858: lt_prog_compiler_pic_CXX=
14859: ;;
14860: haiku*)
14861: # PIC is the default for Haiku.
14862: # The "-static" flag exists, but is broken.
14863: lt_prog_compiler_static_CXX=
14864: ;;
14865: interix[3-9]*)
14866: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14867: # Instead, we relocate shared libraries at runtime.
14868: ;;
14869: sysv4*MP*)
14870: if test -d /usr/nec; then
14871: lt_prog_compiler_pic_CXX=-Kconform_pic
14872: fi
14873: ;;
14874: hpux*)
14875: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14876: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14877: # sets the default TLS model and affects inlining.
14878: case $host_cpu in
14879: hppa*64*)
14880: ;;
14881: *)
14882: lt_prog_compiler_pic_CXX='-fPIC'
14883: ;;
14884: esac
14885: ;;
14886: *qnx* | *nto*)
14887: # QNX uses GNU C++, but need to define -shared option too, otherwise
14888: # it will coredump.
14889: lt_prog_compiler_pic_CXX='-fPIC -shared'
14890: ;;
14891: *)
14892: lt_prog_compiler_pic_CXX='-fPIC'
14893: ;;
14894: esac
14895: else
14896: case $host_os in
14897: aix[4-9]*)
14898: # All AIX code is PIC.
14899: if test "$host_cpu" = ia64; then
14900: # AIX 5 now supports IA64 processor
14901: lt_prog_compiler_static_CXX='-Bstatic'
14902: else
14903: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14904: fi
14905: ;;
14906: chorus*)
14907: case $cc_basename in
14908: cxch68*)
14909: # Green Hills C++ Compiler
14910: # _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"
14911: ;;
14912: esac
14913: ;;
14914: mingw* | cygwin* | os2* | pw32* | cegcc*)
14915: # This hack is so that the source file can tell whether it is being
14916: # built for inclusion in a dll (and should export symbols for example).
14917: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14918: ;;
14919: dgux*)
14920: case $cc_basename in
14921: ec++*)
14922: lt_prog_compiler_pic_CXX='-KPIC'
14923: ;;
14924: ghcx*)
14925: # Green Hills C++ Compiler
14926: lt_prog_compiler_pic_CXX='-pic'
14927: ;;
14928: *)
14929: ;;
14930: esac
14931: ;;
14932: freebsd* | dragonfly*)
14933: # FreeBSD uses GNU C++
14934: ;;
14935: hpux9* | hpux10* | hpux11*)
14936: case $cc_basename in
14937: CC*)
14938: lt_prog_compiler_wl_CXX='-Wl,'
14939: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14940: if test "$host_cpu" != ia64; then
14941: lt_prog_compiler_pic_CXX='+Z'
14942: fi
14943: ;;
14944: aCC*)
14945: lt_prog_compiler_wl_CXX='-Wl,'
14946: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14947: case $host_cpu in
14948: hppa*64*|ia64*)
14949: # +Z the default
14950: ;;
14951: *)
14952: lt_prog_compiler_pic_CXX='+Z'
14953: ;;
14954: esac
14955: ;;
14956: *)
14957: ;;
14958: esac
14959: ;;
14960: interix*)
14961: # This is c89, which is MS Visual C++ (no shared libs)
14962: # Anyone wants to do a port?
14963: ;;
14964: irix5* | irix6* | nonstopux*)
14965: case $cc_basename in
14966: CC*)
14967: lt_prog_compiler_wl_CXX='-Wl,'
14968: lt_prog_compiler_static_CXX='-non_shared'
14969: # CC pic flag -KPIC is the default.
14970: ;;
14971: *)
14972: ;;
14973: esac
14974: ;;
14975: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14976: case $cc_basename in
14977: KCC*)
14978: # KAI C++ Compiler
14979: lt_prog_compiler_wl_CXX='--backend -Wl,'
14980: lt_prog_compiler_pic_CXX='-fPIC'
14981: ;;
14982: ecpc* )
14983: # old Intel C++ for x86_64 which still supported -KPIC.
14984: lt_prog_compiler_wl_CXX='-Wl,'
14985: lt_prog_compiler_pic_CXX='-KPIC'
14986: lt_prog_compiler_static_CXX='-static'
14987: ;;
14988: icpc* )
14989: # Intel C++, used to be incompatible with GCC.
14990: # ICC 10 doesn't accept -KPIC any more.
14991: lt_prog_compiler_wl_CXX='-Wl,'
14992: lt_prog_compiler_pic_CXX='-fPIC'
14993: lt_prog_compiler_static_CXX='-static'
14994: ;;
14995: pgCC* | pgcpp*)
14996: # Portland Group C++ compiler
14997: lt_prog_compiler_wl_CXX='-Wl,'
14998: lt_prog_compiler_pic_CXX='-fpic'
14999: lt_prog_compiler_static_CXX='-Bstatic'
15000: ;;
15001: cxx*)
15002: # Compaq C++
15003: # Make sure the PIC flag is empty. It appears that all Alpha
15004: # Linux and Compaq Tru64 Unix objects are PIC.
15005: lt_prog_compiler_pic_CXX=
15006: lt_prog_compiler_static_CXX='-non_shared'
15007: ;;
15008: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15009: # IBM XL 8.0, 9.0 on PPC and BlueGene
15010: lt_prog_compiler_wl_CXX='-Wl,'
15011: lt_prog_compiler_pic_CXX='-qpic'
15012: lt_prog_compiler_static_CXX='-qstaticlink'
15013: ;;
15014: *)
15015: case `$CC -V 2>&1 | sed 5q` in
15016: *Sun\ C*)
15017: # Sun C++ 5.9
15018: lt_prog_compiler_pic_CXX='-KPIC'
15019: lt_prog_compiler_static_CXX='-Bstatic'
15020: lt_prog_compiler_wl_CXX='-Qoption ld '
15021: ;;
15022: esac
15023: ;;
15024: esac
15025: ;;
15026: lynxos*)
15027: ;;
15028: m88k*)
15029: ;;
15030: mvs*)
15031: case $cc_basename in
15032: cxx*)
15033: lt_prog_compiler_pic_CXX='-W c,exportall'
15034: ;;
15035: *)
15036: ;;
15037: esac
15038: ;;
15039: netbsd*)
15040: ;;
15041: *qnx* | *nto*)
15042: # QNX uses GNU C++, but need to define -shared option too, otherwise
15043: # it will coredump.
15044: lt_prog_compiler_pic_CXX='-fPIC -shared'
15045: ;;
15046: osf3* | osf4* | osf5*)
15047: case $cc_basename in
15048: KCC*)
15049: lt_prog_compiler_wl_CXX='--backend -Wl,'
15050: ;;
15051: RCC*)
15052: # Rational C++ 2.4.1
15053: lt_prog_compiler_pic_CXX='-pic'
15054: ;;
15055: cxx*)
15056: # Digital/Compaq C++
15057: lt_prog_compiler_wl_CXX='-Wl,'
15058: # Make sure the PIC flag is empty. It appears that all Alpha
15059: # Linux and Compaq Tru64 Unix objects are PIC.
15060: lt_prog_compiler_pic_CXX=
15061: lt_prog_compiler_static_CXX='-non_shared'
15062: ;;
15063: *)
15064: ;;
15065: esac
15066: ;;
15067: psos*)
15068: ;;
15069: solaris*)
15070: case $cc_basename in
15071: CC* | sunCC*)
15072: # Sun C++ 4.2, 5.x and Centerline C++
15073: lt_prog_compiler_pic_CXX='-KPIC'
15074: lt_prog_compiler_static_CXX='-Bstatic'
15075: lt_prog_compiler_wl_CXX='-Qoption ld '
15076: ;;
15077: gcx*)
15078: # Green Hills C++ Compiler
15079: lt_prog_compiler_pic_CXX='-PIC'
15080: ;;
15081: *)
15082: ;;
15083: esac
15084: ;;
15085: sunos4*)
15086: case $cc_basename in
15087: CC*)
15088: # Sun C++ 4.x
15089: lt_prog_compiler_pic_CXX='-pic'
15090: lt_prog_compiler_static_CXX='-Bstatic'
15091: ;;
15092: lcc*)
15093: # Lucid
15094: lt_prog_compiler_pic_CXX='-pic'
15095: ;;
15096: *)
15097: ;;
15098: esac
15099: ;;
15100: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15101: case $cc_basename in
15102: CC*)
15103: lt_prog_compiler_wl_CXX='-Wl,'
15104: lt_prog_compiler_pic_CXX='-KPIC'
15105: lt_prog_compiler_static_CXX='-Bstatic'
15106: ;;
15107: esac
15108: ;;
15109: tandem*)
15110: case $cc_basename in
15111: NCC*)
15112: # NonStop-UX NCC 3.20
15113: lt_prog_compiler_pic_CXX='-KPIC'
15114: ;;
15115: *)
15116: ;;
15117: esac
15118: ;;
15119: vxworks*)
15120: ;;
15121: *)
15122: lt_prog_compiler_can_build_shared_CXX=no
15123: ;;
15124: esac
15125: fi
15126:
15127: case $host_os in
15128: # For platforms which do not support PIC, -DPIC is meaningless:
15129: *djgpp*)
15130: lt_prog_compiler_pic_CXX=
15131: ;;
15132: *)
15133: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15134: ;;
15135: esac
15136:
1.150 moko 15137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15138: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15139: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15140: $as_echo_n "(cached) " >&6
1.128 moko 15141: else
15142: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15143: fi
1.150 moko 15144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15145: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 15146: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15147:
15148: #
15149: # Check to make sure the PIC flag actually works.
15150: #
15151: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 15152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15153: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15154: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15155: $as_echo_n "(cached) " >&6
1.128 moko 15156: else
15157: lt_cv_prog_compiler_pic_works_CXX=no
15158: ac_outfile=conftest.$ac_objext
15159: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15160: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15161: # Insert the option either (1) after the last *FLAGS variable, or
15162: # (2) before a word containing "conftest.", or (3) at the end.
15163: # Note that $ac_compile itself does not contain backslashes and begins
15164: # with a dollar sign (not a hyphen), so the echo should work correctly.
15165: # The option is referenced via a variable to avoid confusing sed.
15166: lt_compile=`echo "$ac_compile" | $SED \
15167: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15168: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15169: -e 's:$: $lt_compiler_flag:'`
15170: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15171: (eval "$lt_compile" 2>conftest.err)
15172: ac_status=$?
15173: cat conftest.err >&5
15174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175: if (exit $ac_status) && test -s "$ac_outfile"; then
15176: # The compiler can only warn and ignore the option if not recognized
15177: # So say no if there are warnings other than the usual output.
15178: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15179: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15180: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15181: lt_cv_prog_compiler_pic_works_CXX=yes
15182: fi
15183: fi
15184: $RM conftest*
15185:
15186: fi
1.150 moko 15187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15188: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 15189:
15190: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15191: case $lt_prog_compiler_pic_CXX in
15192: "" | " "*) ;;
15193: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15194: esac
15195: else
15196: lt_prog_compiler_pic_CXX=
15197: lt_prog_compiler_can_build_shared_CXX=no
15198: fi
15199:
15200: fi
15201:
15202:
15203:
15204:
15205:
15206: #
15207: # Check to make sure the static flag actually works.
15208: #
15209: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 15210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15211: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15212: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15213: $as_echo_n "(cached) " >&6
1.128 moko 15214: else
15215: lt_cv_prog_compiler_static_works_CXX=no
15216: save_LDFLAGS="$LDFLAGS"
15217: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15218: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15219: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15220: # The linker can only warn and ignore the option if not recognized
15221: # So say no if there are warnings
15222: if test -s conftest.err; then
15223: # Append any errors to the config.log.
15224: cat conftest.err 1>&5
15225: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15226: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15227: if diff conftest.exp conftest.er2 >/dev/null; then
15228: lt_cv_prog_compiler_static_works_CXX=yes
15229: fi
15230: else
15231: lt_cv_prog_compiler_static_works_CXX=yes
15232: fi
15233: fi
15234: $RM -r conftest*
15235: LDFLAGS="$save_LDFLAGS"
15236:
15237: fi
1.150 moko 15238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15239: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 15240:
15241: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15242: :
15243: else
15244: lt_prog_compiler_static_CXX=
15245: fi
15246:
15247:
15248:
15249:
1.150 moko 15250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15251: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15252: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15253: $as_echo_n "(cached) " >&6
1.128 moko 15254: else
15255: lt_cv_prog_compiler_c_o_CXX=no
15256: $RM -r conftest 2>/dev/null
15257: mkdir conftest
15258: cd conftest
15259: mkdir out
15260: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261:
15262: lt_compiler_flag="-o out/conftest2.$ac_objext"
15263: # Insert the option either (1) after the last *FLAGS variable, or
15264: # (2) before a word containing "conftest.", or (3) at the end.
15265: # Note that $ac_compile itself does not contain backslashes and begins
15266: # with a dollar sign (not a hyphen), so the echo should work correctly.
15267: lt_compile=`echo "$ac_compile" | $SED \
15268: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15269: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15270: -e 's:$: $lt_compiler_flag:'`
15271: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15272: (eval "$lt_compile" 2>out/conftest.err)
15273: ac_status=$?
15274: cat out/conftest.err >&5
15275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15277: then
15278: # The compiler can only warn and ignore the option if not recognized
15279: # So say no if there are warnings
15280: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15281: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15282: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15283: lt_cv_prog_compiler_c_o_CXX=yes
15284: fi
15285: fi
15286: chmod u+w . 2>&5
15287: $RM conftest*
15288: # SGI C++ compiler will create directory out/ii_files/ for
15289: # template instantiation
15290: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15291: $RM out/* && rmdir out
15292: cd ..
15293: $RM -r conftest
15294: $RM conftest*
15295:
15296: fi
1.150 moko 15297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15298: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15299:
15300:
15301:
1.150 moko 15302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15303: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15304: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15305: $as_echo_n "(cached) " >&6
1.128 moko 15306: else
15307: lt_cv_prog_compiler_c_o_CXX=no
15308: $RM -r conftest 2>/dev/null
15309: mkdir conftest
15310: cd conftest
15311: mkdir out
15312: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15313:
15314: lt_compiler_flag="-o out/conftest2.$ac_objext"
15315: # Insert the option either (1) after the last *FLAGS variable, or
15316: # (2) before a word containing "conftest.", or (3) at the end.
15317: # Note that $ac_compile itself does not contain backslashes and begins
15318: # with a dollar sign (not a hyphen), so the echo should work correctly.
15319: lt_compile=`echo "$ac_compile" | $SED \
15320: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15321: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15322: -e 's:$: $lt_compiler_flag:'`
15323: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15324: (eval "$lt_compile" 2>out/conftest.err)
15325: ac_status=$?
15326: cat out/conftest.err >&5
15327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15329: then
15330: # The compiler can only warn and ignore the option if not recognized
15331: # So say no if there are warnings
15332: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15333: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15334: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15335: lt_cv_prog_compiler_c_o_CXX=yes
15336: fi
15337: fi
15338: chmod u+w . 2>&5
15339: $RM conftest*
15340: # SGI C++ compiler will create directory out/ii_files/ for
15341: # template instantiation
15342: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15343: $RM out/* && rmdir out
15344: cd ..
15345: $RM -r conftest
15346: $RM conftest*
15347:
15348: fi
1.150 moko 15349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15350: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15351:
15352:
15353:
15354:
15355: hard_links="nottested"
15356: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15357: # do not overwrite the value of need_locks provided by the user
1.150 moko 15358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15359: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15360: hard_links=yes
15361: $RM conftest*
15362: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15363: touch conftest.a
15364: ln conftest.a conftest.b 2>&5 || hard_links=no
15365: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15367: $as_echo "$hard_links" >&6; }
1.128 moko 15368: if test "$hard_links" = no; then
1.150 moko 15369: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15370: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15371: need_locks=warn
15372: fi
15373: else
15374: need_locks=no
15375: fi
15376:
15377:
15378:
1.150 moko 15379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15380: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15381:
15382: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15383: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15384: case $host_os in
15385: aix[4-9]*)
15386: # If we're using GNU nm, then we don't want the "-C" option.
15387: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15388: # Also, AIX nm treats weak defined symbols like other global defined
15389: # symbols, whereas GNU nm marks them as "W".
15390: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15391: 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'
15392: else
15393: 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'
15394: fi
15395: ;;
15396: pw32*)
15397: export_symbols_cmds_CXX="$ltdll_cmds"
15398: ;;
15399: cygwin* | mingw* | cegcc*)
15400: case $cc_basename in
15401: cl*)
15402: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15403: ;;
15404: *)
15405: 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'
15406: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15407: ;;
15408: esac
15409: ;;
15410: *)
15411: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15412: ;;
15413: esac
15414:
1.150 moko 15415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15416: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15417: test "$ld_shlibs_CXX" = no && can_build_shared=no
15418:
15419: with_gnu_ld_CXX=$with_gnu_ld
15420:
15421:
15422:
15423:
15424:
15425:
15426: #
15427: # Do we need to explicitly link libc?
15428: #
15429: case "x$archive_cmds_need_lc_CXX" in
15430: x|xyes)
15431: # Assume -lc should be added
15432: archive_cmds_need_lc_CXX=yes
15433:
15434: if test "$enable_shared" = yes && test "$GCC" = yes; then
15435: case $archive_cmds_CXX in
15436: *'~'*)
15437: # FIXME: we may have to deal with multi-command sequences.
15438: ;;
15439: '$CC '*)
15440: # Test whether the compiler implicitly links with -lc since on some
15441: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15442: # to ld, don't add -lc before -lgcc.
1.150 moko 15443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15444: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15445: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15446: $as_echo_n "(cached) " >&6
1.128 moko 15447: else
15448: $RM conftest*
15449: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15450:
1.150 moko 15451: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15452: (eval $ac_compile) 2>&5
15453: ac_status=$?
1.150 moko 15454: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15455: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15456: soname=conftest
15457: lib=conftest
15458: libobjs=conftest.$ac_objext
15459: deplibs=
15460: wl=$lt_prog_compiler_wl_CXX
15461: pic_flag=$lt_prog_compiler_pic_CXX
15462: compiler_flags=-v
15463: linker_flags=-v
15464: verstring=
15465: output_objdir=.
15466: libname=conftest
15467: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15468: allow_undefined_flag_CXX=
1.150 moko 15469: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15470: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15471: ac_status=$?
1.150 moko 15472: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15473: test $ac_status = 0; }
1.128 moko 15474: then
15475: lt_cv_archive_cmds_need_lc_CXX=no
15476: else
15477: lt_cv_archive_cmds_need_lc_CXX=yes
15478: fi
15479: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15480: else
15481: cat conftest.err 1>&5
15482: fi
15483: $RM conftest*
15484:
15485: fi
1.150 moko 15486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15487: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15488: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15489: ;;
15490: esac
15491: fi
15492: ;;
15493: esac
15494:
15495:
15496:
15497:
15498:
15499:
15500:
15501:
15502:
15503:
15504:
15505:
15506:
15507:
15508:
15509:
15510:
15511:
15512:
15513:
15514:
15515:
15516:
15517:
15518:
15519:
15520:
15521:
15522:
15523:
15524:
15525:
15526:
15527:
15528:
15529:
15530:
15531:
15532:
15533:
15534:
15535:
15536:
15537:
15538:
15539:
15540:
15541:
15542:
15543:
15544:
15545:
15546:
15547:
15548:
15549:
15550:
15551:
15552:
15553:
15554:
15555:
1.150 moko 15556: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15557: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15558:
15559: library_names_spec=
15560: libname_spec='lib$name'
15561: soname_spec=
15562: shrext_cmds=".so"
15563: postinstall_cmds=
15564: postuninstall_cmds=
15565: finish_cmds=
15566: finish_eval=
15567: shlibpath_var=
15568: shlibpath_overrides_runpath=unknown
15569: version_type=none
15570: dynamic_linker="$host_os ld.so"
15571: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15572: need_lib_prefix=unknown
15573: hardcode_into_libs=no
15574:
15575: # when you set need_version to no, make sure it does not cause -set_version
15576: # flags to be left without arguments
15577: need_version=unknown
15578:
15579: case $host_os in
15580: aix3*)
15581: version_type=linux # correct to gnu/linux during the next big refactor
15582: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15583: shlibpath_var=LIBPATH
15584:
15585: # AIX 3 has no versioning support, so we append a major version to the name.
15586: soname_spec='${libname}${release}${shared_ext}$major'
15587: ;;
15588:
15589: aix[4-9]*)
15590: version_type=linux # correct to gnu/linux during the next big refactor
15591: need_lib_prefix=no
15592: need_version=no
15593: hardcode_into_libs=yes
15594: if test "$host_cpu" = ia64; then
15595: # AIX 5 supports IA64
15596: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15597: shlibpath_var=LD_LIBRARY_PATH
15598: else
15599: # With GCC up to 2.95.x, collect2 would create an import file
15600: # for dependence libraries. The import file would start with
15601: # the line `#! .'. This would cause the generated library to
15602: # depend on `.', always an invalid library. This was fixed in
15603: # development snapshots of GCC prior to 3.0.
15604: case $host_os in
15605: aix4 | aix4.[01] | aix4.[01].*)
15606: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15607: echo ' yes '
15608: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15609: :
15610: else
15611: can_build_shared=no
15612: fi
15613: ;;
15614: esac
15615: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15616: # soname into executable. Probably we can add versioning support to
15617: # collect2, so additional links can be useful in future.
15618: if test "$aix_use_runtimelinking" = yes; then
15619: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15620: # instead of lib<name>.a to let people know that these are not
15621: # typical AIX shared libraries.
15622: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623: else
15624: # We preserve .a as extension for shared libraries through AIX4.2
15625: # and later when we are not doing run time linking.
15626: library_names_spec='${libname}${release}.a $libname.a'
15627: soname_spec='${libname}${release}${shared_ext}$major'
15628: fi
15629: shlibpath_var=LIBPATH
15630: fi
15631: ;;
15632:
15633: amigaos*)
15634: case $host_cpu in
15635: powerpc)
15636: # Since July 2007 AmigaOS4 officially supports .so libraries.
15637: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15638: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639: ;;
15640: m68k)
15641: library_names_spec='$libname.ixlibrary $libname.a'
15642: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15643: 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'
15644: ;;
15645: esac
15646: ;;
15647:
15648: beos*)
15649: library_names_spec='${libname}${shared_ext}'
15650: dynamic_linker="$host_os ld.so"
15651: shlibpath_var=LIBRARY_PATH
15652: ;;
15653:
15654: bsdi[45]*)
15655: version_type=linux # correct to gnu/linux during the next big refactor
15656: need_version=no
15657: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658: soname_spec='${libname}${release}${shared_ext}$major'
15659: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15660: shlibpath_var=LD_LIBRARY_PATH
15661: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15662: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15663: # the default ld.so.conf also contains /usr/contrib/lib and
15664: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15665: # libtool to hard-code these into programs
15666: ;;
15667:
15668: cygwin* | mingw* | pw32* | cegcc*)
15669: version_type=windows
15670: shrext_cmds=".dll"
15671: need_version=no
15672: need_lib_prefix=no
15673:
15674: case $GCC,$cc_basename in
15675: yes,*)
15676: # gcc
15677: library_names_spec='$libname.dll.a'
15678: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15679: postinstall_cmds='base_file=`basename \${file}`~
15680: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15681: dldir=$destdir/`dirname \$dlpath`~
15682: test -d \$dldir || mkdir -p \$dldir~
15683: $install_prog $dir/$dlname \$dldir/$dlname~
15684: chmod a+x \$dldir/$dlname~
15685: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15686: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15687: fi'
15688: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15689: dlpath=$dir/\$dldll~
15690: $RM \$dlpath'
15691: shlibpath_overrides_runpath=yes
15692:
15693: case $host_os in
15694: cygwin*)
15695: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15696: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15697:
15698: ;;
15699: mingw* | cegcc*)
15700: # MinGW DLLs use traditional 'lib' prefix
15701: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15702: ;;
15703: pw32*)
15704: # pw32 DLLs use 'pw' prefix rather than 'lib'
15705: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15706: ;;
15707: esac
15708: dynamic_linker='Win32 ld.exe'
15709: ;;
15710:
15711: *,cl*)
15712: # Native MSVC
15713: libname_spec='$name'
15714: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15715: library_names_spec='${libname}.dll.lib'
15716:
15717: case $build_os in
15718: mingw*)
15719: sys_lib_search_path_spec=
15720: lt_save_ifs=$IFS
15721: IFS=';'
15722: for lt_path in $LIB
15723: do
15724: IFS=$lt_save_ifs
15725: # Let DOS variable expansion print the short 8.3 style file name.
15726: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15727: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15728: done
15729: IFS=$lt_save_ifs
15730: # Convert to MSYS style.
15731: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15732: ;;
15733: cygwin*)
15734: # Convert to unix form, then to dos form, then back to unix form
15735: # but this time dos style (no spaces!) so that the unix form looks
15736: # like /cygdrive/c/PROGRA~1:/cygdr...
15737: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15738: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15739: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15740: ;;
15741: *)
15742: sys_lib_search_path_spec="$LIB"
15743: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15744: # It is most probably a Windows format PATH.
15745: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15746: else
15747: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15748: fi
15749: # FIXME: find the short name or the path components, as spaces are
15750: # common. (e.g. "Program Files" -> "PROGRA~1")
15751: ;;
15752: esac
15753:
15754: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15755: postinstall_cmds='base_file=`basename \${file}`~
15756: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15757: dldir=$destdir/`dirname \$dlpath`~
15758: test -d \$dldir || mkdir -p \$dldir~
15759: $install_prog $dir/$dlname \$dldir/$dlname'
15760: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15761: dlpath=$dir/\$dldll~
15762: $RM \$dlpath'
15763: shlibpath_overrides_runpath=yes
15764: dynamic_linker='Win32 link.exe'
15765: ;;
15766:
15767: *)
15768: # Assume MSVC wrapper
15769: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15770: dynamic_linker='Win32 ld.exe'
15771: ;;
15772: esac
15773: # FIXME: first we should search . and the directory the executable is in
15774: shlibpath_var=PATH
15775: ;;
15776:
15777: darwin* | rhapsody*)
15778: dynamic_linker="$host_os dyld"
15779: version_type=darwin
15780: need_lib_prefix=no
15781: need_version=no
15782: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15783: soname_spec='${libname}${release}${major}$shared_ext'
15784: shlibpath_overrides_runpath=yes
15785: shlibpath_var=DYLD_LIBRARY_PATH
15786: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15787:
15788: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15789: ;;
15790:
15791: dgux*)
15792: version_type=linux # correct to gnu/linux during the next big refactor
15793: need_lib_prefix=no
15794: need_version=no
15795: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15796: soname_spec='${libname}${release}${shared_ext}$major'
15797: shlibpath_var=LD_LIBRARY_PATH
15798: ;;
15799:
15800: freebsd* | dragonfly*)
15801: # DragonFly does not have aout. When/if they implement a new
15802: # versioning mechanism, adjust this.
15803: if test -x /usr/bin/objformat; then
15804: objformat=`/usr/bin/objformat`
15805: else
15806: case $host_os in
15807: freebsd[23].*) objformat=aout ;;
15808: *) objformat=elf ;;
15809: esac
15810: fi
15811: version_type=freebsd-$objformat
15812: case $version_type in
15813: freebsd-elf*)
15814: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15815: need_version=no
15816: need_lib_prefix=no
15817: ;;
15818: freebsd-*)
15819: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15820: need_version=yes
15821: ;;
15822: esac
15823: shlibpath_var=LD_LIBRARY_PATH
15824: case $host_os in
15825: freebsd2.*)
15826: shlibpath_overrides_runpath=yes
15827: ;;
15828: freebsd3.[01]* | freebsdelf3.[01]*)
15829: shlibpath_overrides_runpath=yes
15830: hardcode_into_libs=yes
15831: ;;
15832: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15833: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15834: shlibpath_overrides_runpath=no
15835: hardcode_into_libs=yes
15836: ;;
15837: *) # from 4.6 on, and DragonFly
15838: shlibpath_overrides_runpath=yes
15839: hardcode_into_libs=yes
15840: ;;
15841: esac
15842: ;;
15843:
15844: gnu*)
15845: version_type=linux # correct to gnu/linux during the next big refactor
15846: need_lib_prefix=no
15847: need_version=no
15848: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15849: soname_spec='${libname}${release}${shared_ext}$major'
15850: shlibpath_var=LD_LIBRARY_PATH
15851: shlibpath_overrides_runpath=no
15852: hardcode_into_libs=yes
15853: ;;
15854:
15855: haiku*)
15856: version_type=linux # correct to gnu/linux during the next big refactor
15857: need_lib_prefix=no
15858: need_version=no
15859: dynamic_linker="$host_os runtime_loader"
15860: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15861: soname_spec='${libname}${release}${shared_ext}$major'
15862: shlibpath_var=LIBRARY_PATH
15863: shlibpath_overrides_runpath=yes
15864: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15865: hardcode_into_libs=yes
15866: ;;
15867:
15868: hpux9* | hpux10* | hpux11*)
15869: # Give a soname corresponding to the major version so that dld.sl refuses to
15870: # link against other versions.
15871: version_type=sunos
15872: need_lib_prefix=no
15873: need_version=no
15874: case $host_cpu in
15875: ia64*)
15876: shrext_cmds='.so'
15877: hardcode_into_libs=yes
15878: dynamic_linker="$host_os dld.so"
15879: shlibpath_var=LD_LIBRARY_PATH
15880: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15881: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882: soname_spec='${libname}${release}${shared_ext}$major'
15883: if test "X$HPUX_IA64_MODE" = X32; then
15884: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15885: else
15886: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15887: fi
15888: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15889: ;;
15890: hppa*64*)
15891: shrext_cmds='.sl'
15892: hardcode_into_libs=yes
15893: dynamic_linker="$host_os dld.sl"
15894: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15895: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15896: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897: soname_spec='${libname}${release}${shared_ext}$major'
15898: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15899: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15900: ;;
15901: *)
15902: shrext_cmds='.sl'
15903: dynamic_linker="$host_os dld.sl"
15904: shlibpath_var=SHLIB_PATH
15905: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15906: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907: soname_spec='${libname}${release}${shared_ext}$major'
15908: ;;
15909: esac
15910: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15911: postinstall_cmds='chmod 555 $lib'
15912: # or fails outright, so override atomically:
15913: install_override_mode=555
15914: ;;
15915:
15916: interix[3-9]*)
15917: version_type=linux # correct to gnu/linux during the next big refactor
15918: need_lib_prefix=no
15919: need_version=no
15920: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15921: soname_spec='${libname}${release}${shared_ext}$major'
15922: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15923: shlibpath_var=LD_LIBRARY_PATH
15924: shlibpath_overrides_runpath=no
15925: hardcode_into_libs=yes
15926: ;;
15927:
15928: irix5* | irix6* | nonstopux*)
15929: case $host_os in
15930: nonstopux*) version_type=nonstopux ;;
15931: *)
15932: if test "$lt_cv_prog_gnu_ld" = yes; then
15933: version_type=linux # correct to gnu/linux during the next big refactor
15934: else
15935: version_type=irix
15936: fi ;;
15937: esac
15938: need_lib_prefix=no
15939: need_version=no
15940: soname_spec='${libname}${release}${shared_ext}$major'
15941: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15942: case $host_os in
15943: irix5* | nonstopux*)
15944: libsuff= shlibsuff=
15945: ;;
15946: *)
15947: case $LD in # libtool.m4 will add one of these switches to LD
15948: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15949: libsuff= shlibsuff= libmagic=32-bit;;
15950: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15951: libsuff=32 shlibsuff=N32 libmagic=N32;;
15952: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15953: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15954: *) libsuff= shlibsuff= libmagic=never-match;;
15955: esac
15956: ;;
15957: esac
15958: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15959: shlibpath_overrides_runpath=no
15960: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15961: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15962: hardcode_into_libs=yes
15963: ;;
15964:
15965: # No shared lib support for Linux oldld, aout, or coff.
15966: linux*oldld* | linux*aout* | linux*coff*)
15967: dynamic_linker=no
15968: ;;
15969:
15970: # This must be glibc/ELF.
15971: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15972: version_type=linux # correct to gnu/linux during the next big refactor
15973: need_lib_prefix=no
15974: need_version=no
15975: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976: soname_spec='${libname}${release}${shared_ext}$major'
15977: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15978: shlibpath_var=LD_LIBRARY_PATH
15979: shlibpath_overrides_runpath=no
15980:
15981: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 15982: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15983: $as_echo_n "(cached) " >&6
1.128 moko 15984: else
15985: lt_cv_shlibpath_overrides_runpath=no
15986: save_LDFLAGS=$LDFLAGS
15987: save_libdir=$libdir
15988: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15989: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 15990: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15991: /* end confdefs.h. */
15992:
15993: int
15994: main ()
15995: {
15996:
15997: ;
15998: return 0;
15999: }
16000: _ACEOF
1.150 moko 16001: if ac_fn_cxx_try_link "$LINENO"; then :
16002: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 16003: lt_cv_shlibpath_overrides_runpath=yes
16004: fi
16005: fi
1.150 moko 16006: rm -f core conftest.err conftest.$ac_objext \
16007: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16008: LDFLAGS=$save_LDFLAGS
16009: libdir=$save_libdir
16010:
16011: fi
16012:
16013: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16014:
16015: # This implies no fast_install, which is unacceptable.
16016: # Some rework will be needed to allow for fast_install
16017: # before this can be enabled.
16018: hardcode_into_libs=yes
16019:
16020: # Append ld.so.conf contents to the search path
16021: if test -f /etc/ld.so.conf; then
16022: 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' ' '`
16023: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16024: fi
16025:
16026: # We used to test for /lib/ld.so.1 and disable shared libraries on
16027: # powerpc, because MkLinux only supported shared libraries with the
16028: # GNU dynamic linker. Since this was broken with cross compilers,
16029: # most powerpc-linux boxes support dynamic linking these days and
16030: # people can always --disable-shared, the test was removed, and we
16031: # assume the GNU/Linux dynamic linker is in use.
16032: dynamic_linker='GNU/Linux ld.so'
16033: ;;
16034:
16035: netbsd*)
16036: version_type=sunos
16037: need_lib_prefix=no
16038: need_version=no
16039: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16040: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16041: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16042: dynamic_linker='NetBSD (a.out) ld.so'
16043: else
16044: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16045: soname_spec='${libname}${release}${shared_ext}$major'
16046: dynamic_linker='NetBSD ld.elf_so'
16047: fi
16048: shlibpath_var=LD_LIBRARY_PATH
16049: shlibpath_overrides_runpath=yes
16050: hardcode_into_libs=yes
16051: ;;
16052:
16053: newsos6)
16054: version_type=linux # correct to gnu/linux during the next big refactor
16055: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056: shlibpath_var=LD_LIBRARY_PATH
16057: shlibpath_overrides_runpath=yes
16058: ;;
16059:
16060: *nto* | *qnx*)
16061: version_type=qnx
16062: need_lib_prefix=no
16063: need_version=no
16064: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065: soname_spec='${libname}${release}${shared_ext}$major'
16066: shlibpath_var=LD_LIBRARY_PATH
16067: shlibpath_overrides_runpath=no
16068: hardcode_into_libs=yes
16069: dynamic_linker='ldqnx.so'
16070: ;;
16071:
16072: openbsd*)
16073: version_type=sunos
16074: sys_lib_dlsearch_path_spec="/usr/lib"
16075: need_lib_prefix=no
16076: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16077: case $host_os in
16078: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16079: *) need_version=no ;;
16080: esac
16081: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16082: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16083: shlibpath_var=LD_LIBRARY_PATH
16084: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16085: case $host_os in
16086: openbsd2.[89] | openbsd2.[89].*)
16087: shlibpath_overrides_runpath=no
16088: ;;
16089: *)
16090: shlibpath_overrides_runpath=yes
16091: ;;
16092: esac
16093: else
16094: shlibpath_overrides_runpath=yes
16095: fi
16096: ;;
16097:
16098: os2*)
16099: libname_spec='$name'
16100: shrext_cmds=".dll"
16101: need_lib_prefix=no
16102: library_names_spec='$libname${shared_ext} $libname.a'
16103: dynamic_linker='OS/2 ld.exe'
16104: shlibpath_var=LIBPATH
16105: ;;
16106:
16107: osf3* | osf4* | osf5*)
16108: version_type=osf
16109: need_lib_prefix=no
16110: need_version=no
16111: soname_spec='${libname}${release}${shared_ext}$major'
16112: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113: shlibpath_var=LD_LIBRARY_PATH
16114: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16115: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16116: ;;
16117:
16118: rdos*)
16119: dynamic_linker=no
16120: ;;
16121:
16122: solaris*)
16123: version_type=linux # correct to gnu/linux during the next big refactor
16124: need_lib_prefix=no
16125: need_version=no
16126: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127: soname_spec='${libname}${release}${shared_ext}$major'
16128: shlibpath_var=LD_LIBRARY_PATH
16129: shlibpath_overrides_runpath=yes
16130: hardcode_into_libs=yes
16131: # ldd complains unless libraries are executable
16132: postinstall_cmds='chmod +x $lib'
16133: ;;
16134:
16135: sunos4*)
16136: version_type=sunos
16137: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16138: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16139: shlibpath_var=LD_LIBRARY_PATH
16140: shlibpath_overrides_runpath=yes
16141: if test "$with_gnu_ld" = yes; then
16142: need_lib_prefix=no
16143: fi
16144: need_version=yes
16145: ;;
16146:
16147: sysv4 | sysv4.3*)
16148: version_type=linux # correct to gnu/linux during the next big refactor
16149: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150: soname_spec='${libname}${release}${shared_ext}$major'
16151: shlibpath_var=LD_LIBRARY_PATH
16152: case $host_vendor in
16153: sni)
16154: shlibpath_overrides_runpath=no
16155: need_lib_prefix=no
16156: runpath_var=LD_RUN_PATH
16157: ;;
16158: siemens)
16159: need_lib_prefix=no
16160: ;;
16161: motorola)
16162: need_lib_prefix=no
16163: need_version=no
16164: shlibpath_overrides_runpath=no
16165: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16166: ;;
16167: esac
16168: ;;
16169:
16170: sysv4*MP*)
16171: if test -d /usr/nec ;then
16172: version_type=linux # correct to gnu/linux during the next big refactor
16173: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16174: soname_spec='$libname${shared_ext}.$major'
16175: shlibpath_var=LD_LIBRARY_PATH
16176: fi
16177: ;;
16178:
16179: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16180: version_type=freebsd-elf
16181: need_lib_prefix=no
16182: need_version=no
16183: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16184: soname_spec='${libname}${release}${shared_ext}$major'
16185: shlibpath_var=LD_LIBRARY_PATH
16186: shlibpath_overrides_runpath=yes
16187: hardcode_into_libs=yes
16188: if test "$with_gnu_ld" = yes; then
16189: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16190: else
16191: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16192: case $host_os in
16193: sco3.2v5*)
16194: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16195: ;;
16196: esac
16197: fi
16198: sys_lib_dlsearch_path_spec='/usr/lib'
16199: ;;
16200:
16201: tpf*)
16202: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16203: version_type=linux # correct to gnu/linux during the next big refactor
16204: need_lib_prefix=no
16205: need_version=no
16206: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207: shlibpath_var=LD_LIBRARY_PATH
16208: shlibpath_overrides_runpath=no
16209: hardcode_into_libs=yes
16210: ;;
16211:
16212: uts4*)
16213: version_type=linux # correct to gnu/linux during the next big refactor
16214: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215: soname_spec='${libname}${release}${shared_ext}$major'
16216: shlibpath_var=LD_LIBRARY_PATH
16217: ;;
16218:
16219: *)
16220: dynamic_linker=no
16221: ;;
16222: esac
1.150 moko 16223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16224: $as_echo "$dynamic_linker" >&6; }
1.128 moko 16225: test "$dynamic_linker" = no && can_build_shared=no
16226:
16227: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16228: if test "$GCC" = yes; then
16229: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16230: fi
16231:
16232: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16233: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16234: fi
16235: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16236: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16237: fi
16238:
16239:
16240:
16241:
16242:
16243:
16244:
16245:
16246:
16247:
16248:
16249:
16250:
16251:
16252:
16253:
16254:
16255:
16256:
16257:
16258:
16259:
16260:
16261:
16262:
16263:
16264:
16265:
16266:
16267:
16268:
16269:
16270:
16271:
16272:
16273:
16274:
16275:
1.150 moko 16276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16277: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 16278: hardcode_action_CXX=
16279: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16280: test -n "$runpath_var_CXX" ||
16281: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16282:
16283: # We can hardcode non-existent directories.
16284: if test "$hardcode_direct_CXX" != no &&
16285: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16286: # have to relink, otherwise we might link with an installed library
16287: # when we should be linking with a yet-to-be-installed one
16288: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16289: test "$hardcode_minus_L_CXX" != no; then
16290: # Linking always hardcodes the temporary library directory.
16291: hardcode_action_CXX=relink
16292: else
16293: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16294: hardcode_action_CXX=immediate
16295: fi
16296: else
16297: # We cannot hardcode anything, or else we can only hardcode existing
16298: # directories.
16299: hardcode_action_CXX=unsupported
16300: fi
1.150 moko 16301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16302: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16303:
16304: if test "$hardcode_action_CXX" = relink ||
16305: test "$inherit_rpath_CXX" = yes; then
16306: # Fast installation is not supported
16307: enable_fast_install=no
16308: elif test "$shlibpath_overrides_runpath" = yes ||
16309: test "$enable_shared" = no; then
16310: # Fast installation is not necessary
16311: enable_fast_install=needless
16312: fi
16313:
16314:
16315:
16316:
16317:
16318:
16319:
16320: fi # test -n "$compiler"
16321:
16322: CC=$lt_save_CC
16323: CFLAGS=$lt_save_CFLAGS
16324: LDCXX=$LD
16325: LD=$lt_save_LD
16326: GCC=$lt_save_GCC
16327: with_gnu_ld=$lt_save_with_gnu_ld
16328: lt_cv_path_LDCXX=$lt_cv_path_LD
16329: lt_cv_path_LD=$lt_save_path_LD
16330: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16331: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16332: fi # test "$_lt_caught_CXX_error" != yes
16333:
16334: ac_ext=c
16335: ac_cpp='$CPP $CPPFLAGS'
16336: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16337: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16338: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16339:
16340:
16341:
16342:
16343:
16344:
16345:
16346:
16347:
16348:
16349:
16350:
16351:
16352:
16353:
1.150 moko 16354: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16355:
16356:
16357:
16358:
16359: # Only expand once:
16360:
16361:
1.150 moko 16362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16363: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16364: if ${libltdl_cv_shlibext+:} false; then :
16365: $as_echo_n "(cached) " >&6
1.128 moko 16366: else
16367:
16368: module=yes
16369: eval libltdl_cv_shlibext=$shrext_cmds
16370: module=no
16371: eval libltdl_cv_shrext=$shrext_cmds
16372:
16373: fi
1.150 moko 16374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16375: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16376: if test -n "$libltdl_cv_shlibext"; then
16377:
16378: cat >>confdefs.h <<_ACEOF
16379: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16380: _ACEOF
16381:
16382: fi
16383: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16384:
16385: cat >>confdefs.h <<_ACEOF
16386: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16387: _ACEOF
16388:
16389: fi
16390:
1.150 moko 16391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16392: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16393: if ${lt_cv_module_path_var+:} false; then :
16394: $as_echo_n "(cached) " >&6
1.128 moko 16395: else
16396: lt_cv_module_path_var="$shlibpath_var"
16397: fi
1.150 moko 16398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16399: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16400: if test -n "$lt_cv_module_path_var"; then
16401:
16402: cat >>confdefs.h <<_ACEOF
16403: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16404: _ACEOF
16405:
16406: fi
16407:
1.150 moko 16408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16409: $as_echo_n "checking for the default library search path... " >&6; }
16410: if ${lt_cv_sys_dlsearch_path+:} false; then :
16411: $as_echo_n "(cached) " >&6
1.128 moko 16412: else
16413: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16414: fi
1.150 moko 16415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16416: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16417: if test -n "$lt_cv_sys_dlsearch_path"; then
16418: sys_dlsearch_path=
16419: for dir in $lt_cv_sys_dlsearch_path; do
16420: if test -z "$sys_dlsearch_path"; then
16421: sys_dlsearch_path="$dir"
16422: else
16423: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16424: fi
16425: done
16426:
16427: cat >>confdefs.h <<_ACEOF
16428: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16429: _ACEOF
16430:
16431: fi
16432:
16433:
16434: LT_DLLOADERS=
16435:
16436:
16437: ac_ext=c
16438: ac_cpp='$CPP $CPPFLAGS'
16439: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16440: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16441: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16442:
16443:
16444: LIBADD_DLOPEN=
1.150 moko 16445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16446: $as_echo_n "checking for library containing dlopen... " >&6; }
16447: if ${ac_cv_search_dlopen+:} false; then :
16448: $as_echo_n "(cached) " >&6
1.128 moko 16449: else
16450: ac_func_search_save_LIBS=$LIBS
1.150 moko 16451: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16452: /* end confdefs.h. */
16453:
1.150 moko 16454: /* Override any GCC internal prototype to avoid an error.
16455: Use char because int might match the return type of a GCC
16456: builtin and then its argument prototype would still apply. */
1.128 moko 16457: #ifdef __cplusplus
16458: extern "C"
16459: #endif
16460: char dlopen ();
16461: int
16462: main ()
16463: {
1.150 moko 16464: return dlopen ();
1.128 moko 16465: ;
16466: return 0;
16467: }
16468: _ACEOF
1.150 moko 16469: for ac_lib in '' dl; do
16470: if test -z "$ac_lib"; then
16471: ac_res="none required"
16472: else
16473: ac_res=-l$ac_lib
16474: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16475: fi
16476: if ac_fn_c_try_link "$LINENO"; then :
16477: ac_cv_search_dlopen=$ac_res
16478: fi
16479: rm -f core conftest.err conftest.$ac_objext \
16480: conftest$ac_exeext
16481: if ${ac_cv_search_dlopen+:} false; then :
16482: break
1.128 moko 16483: fi
1.150 moko 16484: done
16485: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16486:
16487: else
1.150 moko 16488: ac_cv_search_dlopen=no
1.128 moko 16489: fi
1.150 moko 16490: rm conftest.$ac_ext
1.128 moko 16491: LIBS=$ac_func_search_save_LIBS
16492: fi
1.150 moko 16493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16494: $as_echo "$ac_cv_search_dlopen" >&6; }
16495: ac_res=$ac_cv_search_dlopen
16496: if test "$ac_res" != no; then :
16497: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16498:
1.150 moko 16499: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16500:
16501: if test "$ac_cv_search_dlopen" != "none required" ; then
16502: LIBADD_DLOPEN="-ldl"
16503: fi
16504: libltdl_cv_lib_dl_dlopen="yes"
16505: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16506: else
1.150 moko 16507: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16508: /* end confdefs.h. */
16509: #if HAVE_DLFCN_H
16510: # include <dlfcn.h>
16511: #endif
16512:
16513: int
16514: main ()
16515: {
16516: dlopen(0, 0);
16517: ;
16518: return 0;
16519: }
16520: _ACEOF
1.150 moko 16521: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16522:
1.150 moko 16523: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16524:
16525: libltdl_cv_func_dlopen="yes"
16526: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16527: else
1.150 moko 16528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16529: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16530: if ${ac_cv_lib_svld_dlopen+:} false; then :
16531: $as_echo_n "(cached) " >&6
1.128 moko 16532: else
16533: ac_check_lib_save_LIBS=$LIBS
16534: LIBS="-lsvld $LIBS"
1.150 moko 16535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16536: /* end confdefs.h. */
16537:
1.150 moko 16538: /* Override any GCC internal prototype to avoid an error.
16539: Use char because int might match the return type of a GCC
16540: builtin and then its argument prototype would still apply. */
1.128 moko 16541: #ifdef __cplusplus
16542: extern "C"
16543: #endif
16544: char dlopen ();
16545: int
16546: main ()
16547: {
1.150 moko 16548: return dlopen ();
1.128 moko 16549: ;
16550: return 0;
16551: }
16552: _ACEOF
1.150 moko 16553: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16554: ac_cv_lib_svld_dlopen=yes
16555: else
1.150 moko 16556: ac_cv_lib_svld_dlopen=no
1.128 moko 16557: fi
1.150 moko 16558: rm -f core conftest.err conftest.$ac_objext \
16559: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16560: LIBS=$ac_check_lib_save_LIBS
16561: fi
1.150 moko 16562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16563: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16564: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16565:
1.150 moko 16566: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16567:
16568: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16569: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16570: fi
16571:
16572: fi
1.150 moko 16573: rm -f core conftest.err conftest.$ac_objext \
16574: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16575: fi
16576:
16577: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16578: then
16579: lt_save_LIBS="$LIBS"
16580: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16581: for ac_func in dlerror
16582: do :
16583: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16584: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16585: cat >>confdefs.h <<_ACEOF
1.150 moko 16586: #define HAVE_DLERROR 1
1.128 moko 16587: _ACEOF
16588:
16589: fi
16590: done
16591:
16592: LIBS="$lt_save_LIBS"
16593: fi
16594:
16595:
16596: LIBADD_SHL_LOAD=
1.150 moko 16597: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16598: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16599:
1.150 moko 16600: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16601:
16602: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16603: else
1.150 moko 16604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16605: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16606: if ${ac_cv_lib_dld_shl_load+:} false; then :
16607: $as_echo_n "(cached) " >&6
1.66 paf 16608: else
16609: ac_check_lib_save_LIBS=$LIBS
16610: LIBS="-ldld $LIBS"
1.150 moko 16611: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16612: /* end confdefs.h. */
1.10 paf 16613:
1.150 moko 16614: /* Override any GCC internal prototype to avoid an error.
16615: Use char because int might match the return type of a GCC
16616: builtin and then its argument prototype would still apply. */
1.66 paf 16617: #ifdef __cplusplus
16618: extern "C"
16619: #endif
16620: char shl_load ();
16621: int
16622: main ()
16623: {
1.150 moko 16624: return shl_load ();
1.66 paf 16625: ;
16626: return 0;
16627: }
16628: _ACEOF
1.150 moko 16629: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16630: ac_cv_lib_dld_shl_load=yes
16631: else
1.150 moko 16632: ac_cv_lib_dld_shl_load=no
1.66 paf 16633: fi
1.150 moko 16634: rm -f core conftest.err conftest.$ac_objext \
16635: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16636: LIBS=$ac_check_lib_save_LIBS
16637: fi
1.150 moko 16638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16639: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16640: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16641:
1.150 moko 16642: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16643:
1.128 moko 16644: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16645: LIBADD_SHL_LOAD="-ldld"
16646: fi
16647:
16648: fi
16649:
16650:
16651:
16652: case $host_os in
16653: darwin[1567].*)
16654: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16655: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16656: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16657:
16658: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16659:
1.150 moko 16660: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16661: fi
1.128 moko 16662:
1.150 moko 16663: ;;
16664: beos*)
1.128 moko 16665: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16666: ;;
16667: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16668: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16669: "
16670: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16671: ac_have_decl=1
1.128 moko 16672: else
1.150 moko 16673: ac_have_decl=0
1.128 moko 16674: fi
16675:
16676: cat >>confdefs.h <<_ACEOF
1.150 moko 16677: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16678: _ACEOF
16679:
16680: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16681: ;;
16682: esac
16683:
1.150 moko 16684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16685: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16686: if ${ac_cv_lib_dld_dld_link+:} false; then :
16687: $as_echo_n "(cached) " >&6
1.66 paf 16688: else
16689: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16690: LIBS="-ldld $LIBS"
1.150 moko 16691: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16692: /* end confdefs.h. */
1.62 paf 16693:
1.150 moko 16694: /* Override any GCC internal prototype to avoid an error.
16695: Use char because int might match the return type of a GCC
16696: builtin and then its argument prototype would still apply. */
1.66 paf 16697: #ifdef __cplusplus
16698: extern "C"
16699: #endif
1.128 moko 16700: char dld_link ();
1.66 paf 16701: int
16702: main ()
16703: {
1.150 moko 16704: return dld_link ();
1.66 paf 16705: ;
16706: return 0;
16707: }
16708: _ACEOF
1.150 moko 16709: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16710: ac_cv_lib_dld_dld_link=yes
1.66 paf 16711: else
1.150 moko 16712: ac_cv_lib_dld_dld_link=no
1.128 moko 16713: fi
1.150 moko 16714: rm -f core conftest.err conftest.$ac_objext \
16715: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16716: LIBS=$ac_check_lib_save_LIBS
16717: fi
1.150 moko 16718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16719: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16720: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16721:
1.150 moko 16722: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16723:
16724: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16725: fi
16726:
16727:
16728:
16729:
16730: LT_DLPREOPEN=
16731: if test -n "$LT_DLLOADERS"
16732: then
16733: for lt_loader in $LT_DLLOADERS; do
16734: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16735: done
16736:
1.150 moko 16737: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16738:
16739: fi
16740:
16741:
16742: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16743:
16744:
16745: ac_ext=c
16746: ac_cpp='$CPP $CPPFLAGS'
16747: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16748: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16749: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16750:
16751:
1.150 moko 16752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16753: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16754: if ${lt_cv_sys_symbol_underscore+:} false; then :
16755: $as_echo_n "(cached) " >&6
1.128 moko 16756: else
16757: lt_cv_sys_symbol_underscore=no
16758: cat > conftest.$ac_ext <<_LT_EOF
16759: void nm_test_func(){}
16760: int main(){nm_test_func;return 0;}
16761: _LT_EOF
1.150 moko 16762: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16763: (eval $ac_compile) 2>&5
16764: ac_status=$?
1.150 moko 16765: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16766: test $ac_status = 0; }; then
1.128 moko 16767: # Now try to grab the symbols.
16768: ac_nlist=conftest.nm
1.150 moko 16769: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16770: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16771: ac_status=$?
1.150 moko 16772: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16773: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16774: # See whether the symbols have a leading underscore.
16775: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16776: lt_cv_sys_symbol_underscore=yes
16777: else
16778: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16779: :
16780: else
16781: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16782: fi
16783: fi
16784: else
16785: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16786: fi
16787: else
16788: echo "configure: failed program was:" >&5
16789: cat conftest.c >&5
16790: fi
16791: rm -rf conftest*
1.29 paf 16792:
1.66 paf 16793: fi
1.150 moko 16794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16795: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16796: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16797:
1.62 paf 16798:
1.128 moko 16799: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16800: if test x"$libltdl_cv_func_dlopen" = xyes ||
16801: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16803: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16804: if ${libltdl_cv_need_uscore+:} false; then :
16805: $as_echo_n "(cached) " >&6
1.66 paf 16806: else
1.128 moko 16807: libltdl_cv_need_uscore=unknown
16808: save_LIBS="$LIBS"
16809: LIBS="$LIBS $LIBADD_DLOPEN"
16810: if test "$cross_compiling" = yes; then :
16811: libltdl_cv_need_uscore=cross
16812: else
16813: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16814: lt_status=$lt_dlunknown
16815: cat > conftest.$ac_ext <<_LT_EOF
16816: #line $LINENO "configure"
16817: #include "confdefs.h"
16818:
1.66 paf 16819: #if HAVE_DLFCN_H
1.128 moko 16820: #include <dlfcn.h>
16821: #endif
16822:
16823: #include <stdio.h>
16824:
16825: #ifdef RTLD_GLOBAL
16826: # define LT_DLGLOBAL RTLD_GLOBAL
16827: #else
16828: # ifdef DL_GLOBAL
16829: # define LT_DLGLOBAL DL_GLOBAL
16830: # else
16831: # define LT_DLGLOBAL 0
16832: # endif
16833: #endif
16834:
16835: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16836: find out it does not work in some platform. */
16837: #ifndef LT_DLLAZY_OR_NOW
16838: # ifdef RTLD_LAZY
16839: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16840: # else
16841: # ifdef DL_LAZY
16842: # define LT_DLLAZY_OR_NOW DL_LAZY
16843: # else
16844: # ifdef RTLD_NOW
16845: # define LT_DLLAZY_OR_NOW RTLD_NOW
16846: # else
16847: # ifdef DL_NOW
16848: # define LT_DLLAZY_OR_NOW DL_NOW
16849: # else
16850: # define LT_DLLAZY_OR_NOW 0
16851: # endif
16852: # endif
16853: # endif
16854: # endif
16855: #endif
16856:
16857: /* When -fvisbility=hidden is used, assume the code has been annotated
16858: correspondingly for the symbols needed. */
16859: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16860: int fnord () __attribute__((visibility("default")));
1.66 paf 16861: #endif
1.62 paf 16862:
1.128 moko 16863: int fnord () { return 42; }
16864: int main ()
1.66 paf 16865: {
1.128 moko 16866: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16867: int status = $lt_dlunknown;
16868:
16869: if (self)
16870: {
16871: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16872: else
16873: {
16874: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16875: else puts (dlerror ());
16876: }
16877: /* dlclose (self); */
16878: }
16879: else
16880: puts (dlerror ());
16881:
16882: return status;
1.66 paf 16883: }
1.128 moko 16884: _LT_EOF
1.150 moko 16885: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16886: (eval $ac_link) 2>&5
1.66 paf 16887: ac_status=$?
1.150 moko 16888: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16889: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16890: (./conftest; exit; ) >&5 2>/dev/null
16891: lt_status=$?
16892: case x$lt_status in
16893: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16894: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16895: x$lt_dlunknown|x*) ;;
16896: esac
16897: else :
16898: # compilation failed
16899:
16900: fi
16901: fi
16902: rm -fr conftest*
16903:
16904: LIBS="$save_LIBS"
16905:
16906: fi
1.150 moko 16907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16908: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16909: fi
16910: fi
16911:
16912: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16913:
1.150 moko 16914: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16915:
1.128 moko 16916: fi
16917:
1.150 moko 16918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16919: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16920: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16921: $as_echo_n "(cached) " >&6
1.66 paf 16922: else
1.128 moko 16923: # PORTME does your system automatically load deplibs for dlopen?
16924: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16925: # For now, we just catch OSes we know something about -- in the
16926: # future, we'll try test this programmatically.
16927: lt_cv_sys_dlopen_deplibs=unknown
16928: case $host_os in
16929: aix3*|aix4.1.*|aix4.2.*)
16930: # Unknown whether this is true for these versions of AIX, but
16931: # we want this `case' here to explicitly catch those versions.
16932: lt_cv_sys_dlopen_deplibs=unknown
16933: ;;
16934: aix[4-9]*)
16935: lt_cv_sys_dlopen_deplibs=yes
16936: ;;
16937: amigaos*)
16938: case $host_cpu in
16939: powerpc)
16940: lt_cv_sys_dlopen_deplibs=no
16941: ;;
16942: esac
16943: ;;
16944: darwin*)
16945: # Assuming the user has installed a libdl from somewhere, this is true
16946: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16947: lt_cv_sys_dlopen_deplibs=yes
16948: ;;
16949: freebsd* | dragonfly*)
16950: lt_cv_sys_dlopen_deplibs=yes
16951: ;;
16952: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16953: # GNU and its variants, using gnu ld.so (Glibc)
16954: lt_cv_sys_dlopen_deplibs=yes
16955: ;;
16956: hpux10*|hpux11*)
16957: lt_cv_sys_dlopen_deplibs=yes
16958: ;;
16959: interix*)
16960: lt_cv_sys_dlopen_deplibs=yes
16961: ;;
16962: irix[12345]*|irix6.[01]*)
16963: # Catch all versions of IRIX before 6.2, and indicate that we don't
16964: # know how it worked for any of those versions.
16965: lt_cv_sys_dlopen_deplibs=unknown
16966: ;;
16967: irix*)
16968: # The case above catches anything before 6.2, and it's known that
16969: # at 6.2 and later dlopen does load deplibs.
16970: lt_cv_sys_dlopen_deplibs=yes
16971: ;;
16972: netbsd*)
16973: lt_cv_sys_dlopen_deplibs=yes
16974: ;;
16975: openbsd*)
16976: lt_cv_sys_dlopen_deplibs=yes
16977: ;;
16978: osf[1234]*)
16979: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16980: # it did *not* use an RPATH in a shared library to find objects the
16981: # library depends on, so we explicitly say `no'.
16982: lt_cv_sys_dlopen_deplibs=no
16983: ;;
16984: osf5.0|osf5.0a|osf5.1)
16985: # dlopen *does* load deplibs and with the right loader patch applied
16986: # it even uses RPATH in a shared library to search for shared objects
16987: # that the library depends on, but there's no easy way to know if that
16988: # patch is installed. Since this is the case, all we can really
16989: # say is unknown -- it depends on the patch being installed. If
16990: # it is, this changes to `yes'. Without it, it would be `no'.
16991: lt_cv_sys_dlopen_deplibs=unknown
16992: ;;
16993: osf*)
16994: # the two cases above should catch all versions of osf <= 5.1. Read
16995: # the comments above for what we know about them.
16996: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16997: # is used to find them so we can finally say `yes'.
16998: lt_cv_sys_dlopen_deplibs=yes
16999: ;;
17000: qnx*)
17001: lt_cv_sys_dlopen_deplibs=yes
17002: ;;
17003: solaris*)
17004: lt_cv_sys_dlopen_deplibs=yes
17005: ;;
17006: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17007: libltdl_cv_sys_dlopen_deplibs=yes
17008: ;;
17009: esac
17010:
17011: fi
1.150 moko 17012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
17013: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 17014: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
17015:
1.150 moko 17016: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 17017:
17018: fi
17019:
17020: :
17021:
17022: for ac_header in argz.h
1.150 moko 17023: do :
17024: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
17025: "
17026: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 17027: cat >>confdefs.h <<_ACEOF
1.150 moko 17028: #define HAVE_ARGZ_H 1
1.128 moko 17029: _ACEOF
17030:
1.66 paf 17031: fi
1.62 paf 17032:
1.128 moko 17033: done
17034:
1.29 paf 17035:
1.150 moko 17036: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 17037: # include <argz.h>
17038: #endif
1.150 moko 17039: "
17040: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 17041:
1.128 moko 17042: cat >>confdefs.h <<_ACEOF
17043: #define HAVE_ERROR_T 1
1.62 paf 17044: _ACEOF
1.16 paf 17045:
17046:
1.128 moko 17047: else
1.16 paf 17048:
1.150 moko 17049: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 17050:
1.12 paf 17051:
1.150 moko 17052: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 17053:
1.66 paf 17054: fi
1.12 paf 17055:
1.128 moko 17056:
17057: ARGZ_H=
17058: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17059: argz_next argz_stringify
1.150 moko 17060: do :
17061: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17062: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17063: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17064: cat >>confdefs.h <<_ACEOF
1.150 moko 17065: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17066: _ACEOF
17067:
17068: else
17069: ARGZ_H=argz.h;
17070:
17071: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17072:
17073: fi
17074: done
17075:
17076:
1.150 moko 17077: if test -z "$ARGZ_H"; then :
17078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
17079: $as_echo_n "checking if argz actually works... " >&6; }
17080: if ${lt_cv_sys_argz_works+:} false; then :
17081: $as_echo_n "(cached) " >&6
1.128 moko 17082: else
17083: case $host_os in #(
17084: *cygwin*)
17085: lt_cv_sys_argz_works=no
17086: if test "$cross_compiling" != no; then
17087: lt_cv_sys_argz_works="guessing no"
17088: else
17089: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17090: save_IFS=$IFS
17091: IFS=-.
17092: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17093: IFS=$save_IFS
17094: lt_os_major=${2-0}
17095: lt_os_minor=${3-0}
17096: lt_os_micro=${4-0}
17097: if test "$lt_os_major" -gt 1 \
17098: || { test "$lt_os_major" -eq 1 \
17099: && { test "$lt_os_minor" -gt 5 \
17100: || { test "$lt_os_minor" -eq 5 \
17101: && test "$lt_os_micro" -gt 24; }; }; }; then
17102: lt_cv_sys_argz_works=yes
17103: fi
17104: fi
17105: ;; #(
17106: *) lt_cv_sys_argz_works=yes ;;
17107: esac
17108: fi
1.150 moko 17109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
17110: $as_echo "$lt_cv_sys_argz_works" >&6; }
17111: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 17112:
1.150 moko 17113: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 17114:
1.62 paf 17115: else
1.128 moko 17116: ARGZ_H=argz.h
17117:
17118:
17119: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17120:
17121: fi
1.62 paf 17122: fi
1.128 moko 17123:
17124:
17125:
1.150 moko 17126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
17127: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
17128: if ${libltdl_cv_preloaded_symbols+:} false; then :
17129: $as_echo_n "(cached) " >&6
1.128 moko 17130: else
17131: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17132: libltdl_cv_preloaded_symbols=yes
17133: else
17134: libltdl_cv_preloaded_symbols=no
17135: fi
17136:
1.62 paf 17137: fi
1.150 moko 17138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
17139: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 17140: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17141:
1.150 moko 17142: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 17143:
17144: fi
17145:
1.150 moko 17146:
17147:
1.128 moko 17148: # Set options
17149:
17150:
17151:
17152:
17153:
17154:
17155:
17156:
17157:
17158:
1.66 paf 17159:
17160:
1.150 moko 17161: # Check whether --with-included_ltdl was given.
17162: if test "${with_included_ltdl+set}" = set; then :
17163: withval=$with_included_ltdl;
17164: fi
1.64 paf 17165:
17166:
1.128 moko 17167: if test "x$with_included_ltdl" != xyes; then
17168: # We are not being forced to use the included libltdl sources, so
17169: # decide whether there is a useful installed version we can use.
1.150 moko 17170: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 17171:
1.150 moko 17172: "
17173: if test "x$ac_cv_header_ltdl_h" = xyes; then :
17174: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 17175: #include <ltdl.h>
1.150 moko 17176: "
17177: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
17178: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
17179: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
17180: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
17181: $as_echo_n "(cached) " >&6
1.79 paf 17182: else
1.128 moko 17183: ac_check_lib_save_LIBS=$LIBS
17184: LIBS="-lltdl $LIBS"
1.150 moko 17185: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 17186: /* end confdefs.h. */
1.128 moko 17187:
1.150 moko 17188: /* Override any GCC internal prototype to avoid an error.
17189: Use char because int might match the return type of a GCC
17190: builtin and then its argument prototype would still apply. */
1.128 moko 17191: #ifdef __cplusplus
17192: extern "C"
17193: #endif
17194: char lt_dladvise_preload ();
1.79 paf 17195: int
17196: main ()
17197: {
1.150 moko 17198: return lt_dladvise_preload ();
1.79 paf 17199: ;
17200: return 0;
17201: }
17202: _ACEOF
1.150 moko 17203: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 17204: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17205: else
1.150 moko 17206: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 17207: fi
1.150 moko 17208: rm -f core conftest.err conftest.$ac_objext \
17209: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17210: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17211: fi
1.150 moko 17212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17213: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
17214: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 17215: with_included_ltdl=no
1.79 paf 17216: else
1.128 moko 17217: with_included_ltdl=yes
17218: fi
17219:
1.79 paf 17220: else
1.128 moko 17221: with_included_ltdl=yes
17222: fi
1.79 paf 17223:
1.128 moko 17224: else
17225: with_included_ltdl=yes
1.79 paf 17226: fi
1.128 moko 17227:
17228:
1.79 paf 17229: fi
1.128 moko 17230:
17231:
17232:
17233:
1.150 moko 17234: # Check whether --with-ltdl_include was given.
17235: if test "${with_ltdl_include+set}" = set; then :
17236: withval=$with_ltdl_include;
17237: fi
1.128 moko 17238:
17239:
17240: if test -n "$with_ltdl_include"; then
17241: if test -f "$with_ltdl_include/ltdl.h"; then :
17242: else
1.150 moko 17243: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 17244: fi
17245: else
17246: with_ltdl_include=no
1.79 paf 17247: fi
1.128 moko 17248:
17249:
1.150 moko 17250: # Check whether --with-ltdl_lib was given.
17251: if test "${with_ltdl_lib+set}" = set; then :
17252: withval=$with_ltdl_lib;
17253: fi
1.128 moko 17254:
17255:
17256: if test -n "$with_ltdl_lib"; then
17257: if test -f "$with_ltdl_lib/libltdl.la"; then :
17258: else
1.150 moko 17259: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 17260: fi
17261: else
17262: with_ltdl_lib=no
1.79 paf 17263: fi
17264:
1.128 moko 17265: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17266: ,yes,no,no,)
17267: case $enable_ltdl_convenience in
1.150 moko 17268: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 17269: "") enable_ltdl_convenience=yes
17270: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17271: esac
1.150 moko 17272: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 17273: LTDLDEPS=$LIBLTDL
17274: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17275:
17276:
17277:
17278:
17279:
17280: # For backwards non-gettext consistent compatibility...
17281: INCLTDL="$LTDLINCL"
17282:
1.79 paf 17283:
1.128 moko 17284: ;;
17285: ,no,no,no,)
17286: # If the included ltdl is not to be used, then use the
17287: # preinstalled libltdl we found.
1.79 paf 17288:
1.150 moko 17289: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 17290:
1.128 moko 17291: LIBLTDL=-lltdl
17292: LTDLDEPS=
17293: LTDLINCL=
17294: ;;
17295: ,no*,no,*)
1.150 moko 17296: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17297: ;;
17298: *) with_included_ltdl=no
17299: LIBLTDL="-L$with_ltdl_lib -lltdl"
17300: LTDLDEPS=
17301: LTDLINCL="-I$with_ltdl_include"
17302: ;;
17303: esac
17304: INCLTDL="$LTDLINCL"
17305:
17306: # Report our decision...
1.150 moko 17307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17308: $as_echo_n "checking where to find libltdl headers... " >&6; }
17309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17310: $as_echo "$LTDLINCL" >&6; }
17311: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17312: $as_echo_n "checking where to find libltdl library... " >&6; }
17313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17314: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17315:
17316:
17317:
1.150 moko 17318: # Check whether --enable-ltdl-install was given.
17319: if test "${enable_ltdl_install+set}" = set; then :
17320: enableval=$enable_ltdl_install;
17321: fi
1.128 moko 17322:
17323:
17324: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17325: *yes*) ;;
17326: *) enable_ltdl_convenience=yes ;;
17327: esac
17328:
1.150 moko 17329: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17330: INSTALL_LTDL_TRUE=
17331: INSTALL_LTDL_FALSE='#'
17332: else
17333: INSTALL_LTDL_TRUE='#'
17334: INSTALL_LTDL_FALSE=
17335: fi
17336:
1.150 moko 17337: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17338: CONVENIENCE_LTDL_TRUE=
17339: CONVENIENCE_LTDL_FALSE='#'
17340: else
17341: CONVENIENCE_LTDL_TRUE='#'
17342: CONVENIENCE_LTDL_FALSE=
17343: fi
17344:
17345:
17346:
1.150 moko 17347: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17348:
17349:
17350:
17351:
17352: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17353: # the user used. This is so that ltdl.h can pick up the parent projects
17354: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17355: # definitions required by ltdl.c.
17356: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17357:
17358:
17359:
1.150 moko 17360: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17361: do :
17362: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17363: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17364: "
17365: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17366: cat >>confdefs.h <<_ACEOF
17367: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17368: _ACEOF
1.128 moko 17369:
1.150 moko 17370: fi
1.128 moko 17371:
1.150 moko 17372: done
1.128 moko 17373:
17374:
1.150 moko 17375: for ac_func in closedir opendir readdir
17376: do :
17377: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17378: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17379: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17380: cat >>confdefs.h <<_ACEOF
17381: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17382: _ACEOF
1.66 paf 17383:
17384: else
1.64 paf 17385:
1.66 paf 17386:
1.128 moko 17387: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17388:
1.66 paf 17389: fi
1.128 moko 17390: done
17391:
17392: for ac_func in strlcat strlcpy
1.150 moko 17393: do :
17394: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17395: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17396: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17397: cat >>confdefs.h <<_ACEOF
1.150 moko 17398: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17399: _ACEOF
17400:
17401: else
17402:
17403:
17404: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17405:
1.62 paf 17406: fi
1.128 moko 17407: done
17408:
17409:
1.64 paf 17410:
1.128 moko 17411: cat >>confdefs.h <<_ACEOF
17412: #define LT_LIBEXT "$libext"
1.62 paf 17413: _ACEOF
1.64 paf 17414:
1.128 moko 17415:
17416: name=
17417: eval "lt_libprefix=\"$libname_spec\""
17418:
17419: cat >>confdefs.h <<_ACEOF
17420: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17421: _ACEOF
1.128 moko 17422:
17423:
17424: name=ltdl
17425: eval "LTDLOPEN=\"$libname_spec\""
17426:
17427:
17428:
17429:
17430:
17431:
17432:
17433:
17434: # Only expand once:
17435:
17436:
17437:
17438:
1.150 moko 17439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17440: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17441: if ${ac_cv_c_bigendian+:} false; then :
17442: $as_echo_n "(cached) " >&6
17443: else
17444: ac_cv_c_bigendian=unknown
17445: # See if we're dealing with a universal compiler.
17446: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447: /* end confdefs.h. */
17448: #ifndef __APPLE_CC__
17449: not a universal capable compiler
17450: #endif
17451: typedef int dummy;
17452:
17453: _ACEOF
17454: if ac_fn_c_try_compile "$LINENO"; then :
17455:
17456: # Check for potential -arch flags. It is not universal unless
17457: # there are at least two -arch flags with different values.
17458: ac_arch=
17459: ac_prev=
17460: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17461: if test -n "$ac_prev"; then
17462: case $ac_word in
17463: i?86 | x86_64 | ppc | ppc64)
17464: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17465: ac_arch=$ac_word
17466: else
17467: ac_cv_c_bigendian=universal
17468: break
17469: fi
17470: ;;
17471: esac
17472: ac_prev=
17473: elif test "x$ac_word" = "x-arch"; then
17474: ac_prev=arch
17475: fi
17476: done
17477: fi
17478: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479: if test $ac_cv_c_bigendian = unknown; then
17480: # See if sys/param.h defines the BYTE_ORDER macro.
17481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17482: /* end confdefs.h. */
1.128 moko 17483: #include <sys/types.h>
1.150 moko 17484: #include <sys/param.h>
1.128 moko 17485:
17486: int
17487: main ()
17488: {
1.150 moko 17489: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17490: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17491: && LITTLE_ENDIAN)
17492: bogus endian macros
17493: #endif
1.64 paf 17494:
1.128 moko 17495: ;
17496: return 0;
17497: }
1.66 paf 17498: _ACEOF
1.150 moko 17499: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17500: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17501: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17502: /* end confdefs.h. */
1.128 moko 17503: #include <sys/types.h>
1.150 moko 17504: #include <sys/param.h>
1.64 paf 17505:
17506: int
17507: main ()
1.128 moko 17508: {
17509: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17510: not big endian
17511: #endif
1.128 moko 17512:
17513: ;
17514: return 0;
1.64 paf 17515: }
17516: _ACEOF
1.150 moko 17517: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17518: ac_cv_c_bigendian=yes
1.64 paf 17519: else
1.150 moko 17520: ac_cv_c_bigendian=no
17521: fi
17522: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523: fi
17524: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525: fi
17526: if test $ac_cv_c_bigendian = unknown; then
17527: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529: /* end confdefs.h. */
17530: #include <limits.h>
1.64 paf 17531:
1.150 moko 17532: int
17533: main ()
17534: {
17535: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17536: bogus endian macros
17537: #endif
1.66 paf 17538:
1.150 moko 17539: ;
17540: return 0;
17541: }
1.62 paf 17542: _ACEOF
1.150 moko 17543: if ac_fn_c_try_compile "$LINENO"; then :
17544: # It does; now see whether it defined to _BIG_ENDIAN or not.
17545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17546: /* end confdefs.h. */
1.150 moko 17547: #include <limits.h>
17548:
1.128 moko 17549: int
17550: main ()
17551: {
1.150 moko 17552: #ifndef _BIG_ENDIAN
17553: not big endian
17554: #endif
17555:
1.128 moko 17556: ;
17557: return 0;
17558: }
1.62 paf 17559: _ACEOF
1.150 moko 17560: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17561: ac_cv_c_bigendian=yes
1.150 moko 17562: else
17563: ac_cv_c_bigendian=no
1.128 moko 17564: fi
1.150 moko 17565: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17566: fi
1.150 moko 17567: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568: fi
17569: if test $ac_cv_c_bigendian = unknown; then
17570: # Compile a test program.
17571: if test "$cross_compiling" = yes; then :
17572: # Try to guess by grepping values from an object file.
17573: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574: /* end confdefs.h. */
17575: short int ascii_mm[] =
17576: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17577: short int ascii_ii[] =
17578: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17579: int use_ascii (int i) {
17580: return ascii_mm[i] + ascii_ii[i];
17581: }
17582: short int ebcdic_ii[] =
17583: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17584: short int ebcdic_mm[] =
17585: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17586: int use_ebcdic (int i) {
17587: return ebcdic_mm[i] + ebcdic_ii[i];
17588: }
17589: extern int foo;
1.62 paf 17590:
1.150 moko 17591: int
17592: main ()
17593: {
17594: return use_ascii (foo) == use_ebcdic (foo);
17595: ;
17596: return 0;
17597: }
17598: _ACEOF
17599: if ac_fn_c_try_compile "$LINENO"; then :
17600: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17601: ac_cv_c_bigendian=yes
17602: fi
17603: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17604: if test "$ac_cv_c_bigendian" = unknown; then
17605: ac_cv_c_bigendian=no
17606: else
17607: # finding both strings is unlikely to happen, but who knows?
17608: ac_cv_c_bigendian=unknown
17609: fi
17610: fi
1.128 moko 17611: fi
1.150 moko 17612: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17613: else
1.150 moko 17614: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17615: /* end confdefs.h. */
1.150 moko 17616: $ac_includes_default
1.128 moko 17617: int
17618: main ()
17619: {
1.150 moko 17620:
17621: /* Are we little or big endian? From Harbison&Steele. */
17622: union
17623: {
17624: long int l;
17625: char c[sizeof (long int)];
17626: } u;
17627: u.l = 1;
17628: return u.c[sizeof (long int) - 1] == 1;
17629:
17630: ;
17631: return 0;
1.128 moko 17632: }
17633: _ACEOF
1.150 moko 17634: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17635: ac_cv_c_bigendian=no
17636: else
1.150 moko 17637: ac_cv_c_bigendian=yes
1.128 moko 17638: fi
1.150 moko 17639: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17640: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17641: fi
1.150 moko 17642:
17643: fi
1.66 paf 17644: fi
1.150 moko 17645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17646: $as_echo "$ac_cv_c_bigendian" >&6; }
17647: case $ac_cv_c_bigendian in #(
17648: yes)
17649:
17650: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17651:
17652: ;; #(
17653: no)
1.128 moko 17654:
1.150 moko 17655: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17656:
1.150 moko 17657: ;; #(
17658: universal)
1.128 moko 17659:
1.150 moko 17660: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17661:
1.150 moko 17662: ;; #(
17663: *)
17664: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17665: ;;
1.150 moko 17666: esac
1.66 paf 17667:
17668:
1.150 moko 17669: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17670: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17671:
1.66 paf 17672: else
1.1 paf 17673:
1.66 paf 17674: cat >>confdefs.h <<_ACEOF
1.150 moko 17675: #define size_t unsigned int
1.66 paf 17676: _ACEOF
1.62 paf 17677:
17678: fi
1.66 paf 17679:
1.156 moko 17680: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17681: if test "x$ac_cv_type_ssize_t" = xyes; then :
17682:
17683: else
17684:
17685: cat >>confdefs.h <<_ACEOF
17686: #define ssize_t int
17687: _ACEOF
17688:
17689: fi
17690:
1.159 moko 17691: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17692: case $ac_cv_c_uint8_t in #(
17693: no|yes) ;; #(
17694: *)
17695:
17696: $as_echo "#define _UINT8_T 1" >>confdefs.h
17697:
17698:
17699: cat >>confdefs.h <<_ACEOF
17700: #define uint8_t $ac_cv_c_uint8_t
17701: _ACEOF
17702: ;;
17703: esac
17704:
1.165 moko 17705: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17706: case $ac_cv_c_uint16_t in #(
17707: no|yes) ;; #(
17708: *)
17709:
17710:
17711: cat >>confdefs.h <<_ACEOF
17712: #define uint16_t $ac_cv_c_uint16_t
17713: _ACEOF
17714: ;;
17715: esac
17716:
1.156 moko 17717: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17718: case $ac_cv_c_uint32_t in #(
17719: no|yes) ;; #(
17720: *)
17721:
17722: $as_echo "#define _UINT32_T 1" >>confdefs.h
17723:
17724:
17725: cat >>confdefs.h <<_ACEOF
17726: #define uint32_t $ac_cv_c_uint32_t
17727: _ACEOF
17728: ;;
17729: esac
1.128 moko 17730:
1.159 moko 17731: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17732: case $ac_cv_c_uint64_t in #(
17733: no|yes) ;; #(
17734: *)
17735:
17736: $as_echo "#define _UINT64_T 1" >>confdefs.h
17737:
17738:
17739: cat >>confdefs.h <<_ACEOF
17740: #define uint64_t $ac_cv_c_uint64_t
17741: _ACEOF
17742: ;;
17743: esac
17744:
17745:
1.161 moko 17746: ac_header_dirent=no
17747: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17748: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17750: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17751: if eval \${$as_ac_Header+:} false; then :
17752: $as_echo_n "(cached) " >&6
17753: else
17754: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755: /* end confdefs.h. */
17756: #include <sys/types.h>
17757: #include <$ac_hdr>
17758:
17759: int
17760: main ()
17761: {
17762: if ((DIR *) 0)
17763: return 0;
17764: ;
17765: return 0;
17766: }
17767: _ACEOF
17768: if ac_fn_c_try_compile "$LINENO"; then :
17769: eval "$as_ac_Header=yes"
17770: else
17771: eval "$as_ac_Header=no"
17772: fi
17773: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774: fi
17775: eval ac_res=\$$as_ac_Header
17776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17777: $as_echo "$ac_res" >&6; }
17778: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17779: cat >>confdefs.h <<_ACEOF
17780: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17781: _ACEOF
17782:
17783: ac_header_dirent=$ac_hdr; break
17784: fi
17785:
17786: done
17787: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17788: if test $ac_header_dirent = dirent.h; then
17789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17790: $as_echo_n "checking for library containing opendir... " >&6; }
17791: if ${ac_cv_search_opendir+:} false; then :
17792: $as_echo_n "(cached) " >&6
17793: else
17794: ac_func_search_save_LIBS=$LIBS
17795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796: /* end confdefs.h. */
17797:
17798: /* Override any GCC internal prototype to avoid an error.
17799: Use char because int might match the return type of a GCC
17800: builtin and then its argument prototype would still apply. */
17801: #ifdef __cplusplus
17802: extern "C"
17803: #endif
17804: char opendir ();
17805: int
17806: main ()
17807: {
17808: return opendir ();
17809: ;
17810: return 0;
17811: }
17812: _ACEOF
17813: for ac_lib in '' dir; do
17814: if test -z "$ac_lib"; then
17815: ac_res="none required"
17816: else
17817: ac_res=-l$ac_lib
17818: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17819: fi
17820: if ac_fn_c_try_link "$LINENO"; then :
17821: ac_cv_search_opendir=$ac_res
17822: fi
17823: rm -f core conftest.err conftest.$ac_objext \
17824: conftest$ac_exeext
17825: if ${ac_cv_search_opendir+:} false; then :
17826: break
17827: fi
17828: done
17829: if ${ac_cv_search_opendir+:} false; then :
17830:
17831: else
17832: ac_cv_search_opendir=no
17833: fi
17834: rm conftest.$ac_ext
17835: LIBS=$ac_func_search_save_LIBS
17836: fi
17837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17838: $as_echo "$ac_cv_search_opendir" >&6; }
17839: ac_res=$ac_cv_search_opendir
17840: if test "$ac_res" != no; then :
17841: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17842:
17843: fi
17844:
17845: else
17846: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17847: $as_echo_n "checking for library containing opendir... " >&6; }
17848: if ${ac_cv_search_opendir+:} false; then :
17849: $as_echo_n "(cached) " >&6
17850: else
17851: ac_func_search_save_LIBS=$LIBS
17852: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853: /* end confdefs.h. */
17854:
17855: /* Override any GCC internal prototype to avoid an error.
17856: Use char because int might match the return type of a GCC
17857: builtin and then its argument prototype would still apply. */
17858: #ifdef __cplusplus
17859: extern "C"
17860: #endif
17861: char opendir ();
17862: int
17863: main ()
17864: {
17865: return opendir ();
17866: ;
17867: return 0;
17868: }
17869: _ACEOF
17870: for ac_lib in '' x; do
17871: if test -z "$ac_lib"; then
17872: ac_res="none required"
17873: else
17874: ac_res=-l$ac_lib
17875: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17876: fi
17877: if ac_fn_c_try_link "$LINENO"; then :
17878: ac_cv_search_opendir=$ac_res
17879: fi
17880: rm -f core conftest.err conftest.$ac_objext \
17881: conftest$ac_exeext
17882: if ${ac_cv_search_opendir+:} false; then :
17883: break
17884: fi
17885: done
17886: if ${ac_cv_search_opendir+:} false; then :
17887:
17888: else
17889: ac_cv_search_opendir=no
17890: fi
17891: rm conftest.$ac_ext
17892: LIBS=$ac_func_search_save_LIBS
17893: fi
17894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17895: $as_echo "$ac_cv_search_opendir" >&6; }
17896: ac_res=$ac_cv_search_opendir
17897: if test "$ac_res" != no; then :
17898: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17899:
17900: fi
17901:
17902: fi
17903:
17904:
17905:
17906: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17907: #include <sys/types.h>
17908: #ifdef HAVE_DIRENT_H
17909: # include <dirent.h>
17910: #else
17911: # define dirent direct
17912: # ifdef HAVE_SYS_NDIR_H
17913: # include <sys/ndir.h>
17914: # endif
17915: # ifdef HAVE_SYS_DIR_H
17916: # include <sys/dir.h>
17917: # endif
17918: # ifdef HAVE_NDIR_H
17919: # include <ndir.h>
17920: # endif
17921: #endif
17922:
17923: "
17924: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17925:
17926: cat >>confdefs.h <<_ACEOF
17927: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17928: _ACEOF
17929:
17930:
17931: fi
17932:
17933:
1.159 moko 17934:
1.171 moko 17935: # Check whether --enable-largefile was given.
17936: if test "${enable_largefile+set}" = set; then :
17937: enableval=$enable_largefile;
17938: fi
17939:
17940: if test "$enable_largefile" != no; then
17941:
17942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17943: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17944: if ${ac_cv_sys_largefile_CC+:} false; then :
17945: $as_echo_n "(cached) " >&6
17946: else
17947: ac_cv_sys_largefile_CC=no
17948: if test "$GCC" != yes; then
17949: ac_save_CC=$CC
17950: while :; do
17951: # IRIX 6.2 and later do not support large files by default,
17952: # so use the C compiler's -n32 option if that helps.
17953: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954: /* end confdefs.h. */
17955: #include <sys/types.h>
17956: /* Check that off_t can represent 2**63 - 1 correctly.
17957: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17958: since some C++ compilers masquerading as C compilers
17959: incorrectly reject 9223372036854775807. */
1.191 moko 17960: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 17961: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17962: && LARGE_OFF_T % 2147483647 == 1)
17963: ? 1 : -1];
17964: int
17965: main ()
17966: {
17967:
17968: ;
17969: return 0;
17970: }
17971: _ACEOF
17972: if ac_fn_c_try_compile "$LINENO"; then :
17973: break
17974: fi
17975: rm -f core conftest.err conftest.$ac_objext
17976: CC="$CC -n32"
17977: if ac_fn_c_try_compile "$LINENO"; then :
17978: ac_cv_sys_largefile_CC=' -n32'; break
17979: fi
17980: rm -f core conftest.err conftest.$ac_objext
17981: break
17982: done
17983: CC=$ac_save_CC
17984: rm -f conftest.$ac_ext
17985: fi
17986: fi
17987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17988: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17989: if test "$ac_cv_sys_largefile_CC" != no; then
17990: CC=$CC$ac_cv_sys_largefile_CC
17991: fi
17992:
17993: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17994: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17995: if ${ac_cv_sys_file_offset_bits+:} false; then :
17996: $as_echo_n "(cached) " >&6
17997: else
17998: while :; do
17999: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000: /* end confdefs.h. */
18001: #include <sys/types.h>
18002: /* Check that off_t can represent 2**63 - 1 correctly.
18003: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18004: since some C++ compilers masquerading as C compilers
18005: incorrectly reject 9223372036854775807. */
1.191 moko 18006: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18007: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18008: && LARGE_OFF_T % 2147483647 == 1)
18009: ? 1 : -1];
18010: int
18011: main ()
18012: {
18013:
18014: ;
18015: return 0;
18016: }
18017: _ACEOF
18018: if ac_fn_c_try_compile "$LINENO"; then :
18019: ac_cv_sys_file_offset_bits=no; break
18020: fi
18021: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023: /* end confdefs.h. */
18024: #define _FILE_OFFSET_BITS 64
18025: #include <sys/types.h>
18026: /* Check that off_t can represent 2**63 - 1 correctly.
18027: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18028: since some C++ compilers masquerading as C compilers
18029: incorrectly reject 9223372036854775807. */
1.191 moko 18030: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18031: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18032: && LARGE_OFF_T % 2147483647 == 1)
18033: ? 1 : -1];
18034: int
18035: main ()
18036: {
18037:
18038: ;
18039: return 0;
18040: }
18041: _ACEOF
18042: if ac_fn_c_try_compile "$LINENO"; then :
18043: ac_cv_sys_file_offset_bits=64; break
18044: fi
18045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18046: ac_cv_sys_file_offset_bits=unknown
18047: break
18048: done
18049: fi
18050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18051: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18052: case $ac_cv_sys_file_offset_bits in #(
18053: no | unknown) ;;
18054: *)
18055: cat >>confdefs.h <<_ACEOF
18056: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18057: _ACEOF
18058: ;;
18059: esac
18060: rm -rf conftest*
18061: if test $ac_cv_sys_file_offset_bits = unknown; then
18062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18063: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18064: if ${ac_cv_sys_large_files+:} false; then :
18065: $as_echo_n "(cached) " >&6
18066: else
18067: while :; do
18068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18069: /* end confdefs.h. */
18070: #include <sys/types.h>
18071: /* Check that off_t can represent 2**63 - 1 correctly.
18072: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18073: since some C++ compilers masquerading as C compilers
18074: incorrectly reject 9223372036854775807. */
1.191 moko 18075: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18076: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18077: && LARGE_OFF_T % 2147483647 == 1)
18078: ? 1 : -1];
18079: int
18080: main ()
18081: {
18082:
18083: ;
18084: return 0;
18085: }
18086: _ACEOF
18087: if ac_fn_c_try_compile "$LINENO"; then :
18088: ac_cv_sys_large_files=no; break
18089: fi
18090: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092: /* end confdefs.h. */
18093: #define _LARGE_FILES 1
18094: #include <sys/types.h>
18095: /* Check that off_t can represent 2**63 - 1 correctly.
18096: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18097: since some C++ compilers masquerading as C compilers
18098: incorrectly reject 9223372036854775807. */
1.191 moko 18099: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18100: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18101: && LARGE_OFF_T % 2147483647 == 1)
18102: ? 1 : -1];
18103: int
18104: main ()
18105: {
18106:
18107: ;
18108: return 0;
18109: }
18110: _ACEOF
18111: if ac_fn_c_try_compile "$LINENO"; then :
18112: ac_cv_sys_large_files=1; break
18113: fi
18114: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115: ac_cv_sys_large_files=unknown
18116: break
18117: done
18118: fi
18119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18120: $as_echo "$ac_cv_sys_large_files" >&6; }
18121: case $ac_cv_sys_large_files in #(
18122: no | unknown) ;;
18123: *)
18124: cat >>confdefs.h <<_ACEOF
18125: #define _LARGE_FILES $ac_cv_sys_large_files
18126: _ACEOF
18127: ;;
18128: esac
18129: rm -rf conftest*
18130: fi
18131:
18132:
18133: fi
18134:
18135:
1.159 moko 18136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18137: $as_echo_n "checking for ANSI C header files... " >&6; }
18138: if ${ac_cv_header_stdc+:} false; then :
18139: $as_echo_n "(cached) " >&6
18140: else
18141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142: /* end confdefs.h. */
18143: #include <stdlib.h>
18144: #include <stdarg.h>
18145: #include <string.h>
18146: #include <float.h>
18147:
18148: int
18149: main ()
18150: {
18151:
18152: ;
18153: return 0;
18154: }
18155: _ACEOF
18156: if ac_fn_c_try_compile "$LINENO"; then :
18157: ac_cv_header_stdc=yes
18158: else
18159: ac_cv_header_stdc=no
18160: fi
18161: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18162:
18163: if test $ac_cv_header_stdc = yes; then
18164: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166: /* end confdefs.h. */
18167: #include <string.h>
18168:
18169: _ACEOF
18170: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18171: $EGREP "memchr" >/dev/null 2>&1; then :
18172:
18173: else
18174: ac_cv_header_stdc=no
18175: fi
18176: rm -f conftest*
18177:
18178: fi
18179:
18180: if test $ac_cv_header_stdc = yes; then
18181: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18182: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183: /* end confdefs.h. */
18184: #include <stdlib.h>
18185:
18186: _ACEOF
18187: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18188: $EGREP "free" >/dev/null 2>&1; then :
18189:
18190: else
18191: ac_cv_header_stdc=no
18192: fi
18193: rm -f conftest*
18194:
18195: fi
18196:
18197: if test $ac_cv_header_stdc = yes; then
18198: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18199: if test "$cross_compiling" = yes; then :
18200: :
18201: else
18202: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203: /* end confdefs.h. */
18204: #include <ctype.h>
18205: #include <stdlib.h>
18206: #if ((' ' & 0x0FF) == 0x020)
18207: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18208: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18209: #else
18210: # define ISLOWER(c) \
18211: (('a' <= (c) && (c) <= 'i') \
18212: || ('j' <= (c) && (c) <= 'r') \
18213: || ('s' <= (c) && (c) <= 'z'))
18214: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18215: #endif
18216:
18217: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18218: int
18219: main ()
18220: {
18221: int i;
18222: for (i = 0; i < 256; i++)
18223: if (XOR (islower (i), ISLOWER (i))
18224: || toupper (i) != TOUPPER (i))
18225: return 2;
18226: return 0;
18227: }
18228: _ACEOF
18229: if ac_fn_c_try_run "$LINENO"; then :
18230:
18231: else
18232: ac_cv_header_stdc=no
18233: fi
18234: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18235: conftest.$ac_objext conftest.beam conftest.$ac_ext
18236: fi
18237:
18238: fi
18239: fi
18240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18241: $as_echo "$ac_cv_header_stdc" >&6; }
18242: if test $ac_cv_header_stdc = yes; then
18243:
18244: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18245:
18246: fi
1.128 moko 18247:
1.150 moko 18248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18249: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18250: if ${ac_cv_header_time+:} false; then :
18251: $as_echo_n "(cached) " >&6
1.62 paf 18252: else
1.150 moko 18253: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18254: /* end confdefs.h. */
1.66 paf 18255: #include <sys/types.h>
18256: #include <sys/time.h>
18257: #include <time.h>
1.62 paf 18258:
18259: int
18260: main ()
18261: {
1.66 paf 18262: if ((struct tm *) 0)
18263: return 0;
1.62 paf 18264: ;
18265: return 0;
18266: }
18267: _ACEOF
1.150 moko 18268: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 18269: ac_cv_header_time=yes
1.1 paf 18270: else
1.150 moko 18271: ac_cv_header_time=no
1.1 paf 18272: fi
1.150 moko 18273: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18274: fi
1.150 moko 18275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18276: $as_echo "$ac_cv_header_time" >&6; }
1.66 paf 18277: if test $ac_cv_header_time = yes; then
1.1 paf 18278:
1.150 moko 18279: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.66 paf 18280:
1.1 paf 18281: fi
1.66 paf 18282:
1.1 paf 18283:
1.159 moko 18284: 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
18285: do :
18286: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18287: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18288: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18289: cat >>confdefs.h <<_ACEOF
18290: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18291: _ACEOF
18292:
18293: fi
1.150 moko 18294:
1.159 moko 18295: done
18296:
18297: for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h
18298: do :
18299: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18300: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18301: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18302: cat >>confdefs.h <<_ACEOF
18303: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18304: _ACEOF
18305:
18306: fi
18307:
18308: done
18309:
1.164 moko 18310: 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 18311: do :
18312: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18313: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18314: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18315: cat >>confdefs.h <<_ACEOF
18316: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18317: _ACEOF
18318:
18319: fi
18320:
18321: done
18322:
1.163 moko 18323: for ac_header in sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 18324: do :
18325: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18326: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18327: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 18328: cat >>confdefs.h <<_ACEOF
1.150 moko 18329: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18330: _ACEOF
18331:
18332: fi
18333:
1.66 paf 18334: done
1.62 paf 18335:
18336:
18337:
1.66 paf 18338: case "$host" in
1.107 misha 18339: *-freebsd4*)
18340:
1.150 moko 18341: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 18342:
18343: ;;
1.66 paf 18344: *-sunos5.6* | *-solaris2.6*)
1.150 moko 18345: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
18346: $as_echo_n "checking for main in -lxnet... " >&6; }
18347: if ${ac_cv_lib_xnet_main+:} false; then :
18348: $as_echo_n "(cached) " >&6
1.62 paf 18349: else
1.66 paf 18350: ac_check_lib_save_LIBS=$LIBS
18351: LIBS="-lxnet $LIBS"
1.150 moko 18352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18353: /* end confdefs.h. */
18354:
1.66 paf 18355:
18356: int
18357: main ()
18358: {
1.150 moko 18359: return main ();
1.66 paf 18360: ;
18361: return 0;
18362: }
1.62 paf 18363: _ACEOF
1.150 moko 18364: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18365: ac_cv_lib_xnet_main=yes
1.62 paf 18366: else
1.150 moko 18367: ac_cv_lib_xnet_main=no
1.62 paf 18368: fi
1.150 moko 18369: rm -f core conftest.err conftest.$ac_objext \
18370: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18371: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18372: fi
1.150 moko 18373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
18374: $as_echo "$ac_cv_lib_xnet_main" >&6; }
18375: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 18376: cat >>confdefs.h <<_ACEOF
1.66 paf 18377: #define HAVE_LIBXNET 1
1.62 paf 18378: _ACEOF
1.1 paf 18379:
1.66 paf 18380: LIBS="-lxnet $LIBS"
18381:
1.1 paf 18382: fi
18383:
1.66 paf 18384: ;;
18385: *-sunos5* | *-solaris2*)
1.150 moko 18386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
18387: $as_echo_n "checking for main in -lsocket... " >&6; }
18388: if ${ac_cv_lib_socket_main+:} false; then :
18389: $as_echo_n "(cached) " >&6
1.62 paf 18390: else
1.66 paf 18391: ac_check_lib_save_LIBS=$LIBS
18392: LIBS="-lsocket $LIBS"
1.150 moko 18393: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18394: /* end confdefs.h. */
1.66 paf 18395:
18396:
1.62 paf 18397: int
18398: main ()
18399: {
1.150 moko 18400: return main ();
1.62 paf 18401: ;
18402: return 0;
18403: }
18404: _ACEOF
1.150 moko 18405: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18406: ac_cv_lib_socket_main=yes
1.1 paf 18407: else
1.150 moko 18408: ac_cv_lib_socket_main=no
1.1 paf 18409: fi
1.150 moko 18410: rm -f core conftest.err conftest.$ac_objext \
18411: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18412: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18413: fi
1.150 moko 18414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
18415: $as_echo "$ac_cv_lib_socket_main" >&6; }
18416: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 18417: cat >>confdefs.h <<_ACEOF
18418: #define HAVE_LIBSOCKET 1
18419: _ACEOF
1.1 paf 18420:
1.66 paf 18421: LIBS="-lsocket $LIBS"
1.1 paf 18422:
18423: fi
18424:
1.150 moko 18425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
18426: $as_echo_n "checking for main in -lnsl... " >&6; }
18427: if ${ac_cv_lib_nsl_main+:} false; then :
18428: $as_echo_n "(cached) " >&6
1.62 paf 18429: else
1.66 paf 18430: ac_check_lib_save_LIBS=$LIBS
18431: LIBS="-lnsl $LIBS"
1.150 moko 18432: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18433: /* end confdefs.h. */
1.66 paf 18434:
18435:
1.62 paf 18436: int
18437: main ()
18438: {
1.150 moko 18439: return main ();
1.62 paf 18440: ;
18441: return 0;
18442: }
18443: _ACEOF
1.150 moko 18444: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18445: ac_cv_lib_nsl_main=yes
1.30 paf 18446: else
1.150 moko 18447: ac_cv_lib_nsl_main=no
1.30 paf 18448: fi
1.150 moko 18449: rm -f core conftest.err conftest.$ac_objext \
18450: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18451: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18452: fi
1.150 moko 18453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
18454: $as_echo "$ac_cv_lib_nsl_main" >&6; }
18455: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 18456: cat >>confdefs.h <<_ACEOF
18457: #define HAVE_LIBNSL 1
18458: _ACEOF
1.30 paf 18459:
1.66 paf 18460: LIBS="-lnsl $LIBS"
1.30 paf 18461:
18462: fi
18463:
1.66 paf 18464: ;;
18465: *-nec-sysv4*)
1.150 moko 18466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18467: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18468: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18469: $as_echo_n "(cached) " >&6
1.62 paf 18470: else
1.66 paf 18471: ac_check_lib_save_LIBS=$LIBS
18472: LIBS="-lnsl $LIBS"
1.150 moko 18473: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18474: /* end confdefs.h. */
1.66 paf 18475:
1.150 moko 18476: /* Override any GCC internal prototype to avoid an error.
18477: Use char because int might match the return type of a GCC
18478: builtin and then its argument prototype would still apply. */
1.66 paf 18479: #ifdef __cplusplus
18480: extern "C"
18481: #endif
18482: char gethostbyname ();
1.62 paf 18483: int
18484: main ()
18485: {
1.150 moko 18486: return gethostbyname ();
1.62 paf 18487: ;
18488: return 0;
18489: }
18490: _ACEOF
1.150 moko 18491: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18492: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18493: else
1.150 moko 18494: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18495: fi
1.150 moko 18496: rm -f core conftest.err conftest.$ac_objext \
18497: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18498: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18499: fi
1.150 moko 18500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18501: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18502: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 18503: cat >>confdefs.h <<_ACEOF
18504: #define HAVE_LIBNSL 1
18505: _ACEOF
1.30 paf 18506:
1.66 paf 18507: LIBS="-lnsl $LIBS"
1.30 paf 18508:
18509: fi
18510:
1.150 moko 18511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18512: $as_echo_n "checking for socket in -lsocket... " >&6; }
18513: if ${ac_cv_lib_socket_socket+:} false; then :
18514: $as_echo_n "(cached) " >&6
1.8 paf 18515: else
1.66 paf 18516: ac_check_lib_save_LIBS=$LIBS
18517: LIBS="-lsocket $LIBS"
1.150 moko 18518: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18519: /* end confdefs.h. */
18520:
1.150 moko 18521: /* Override any GCC internal prototype to avoid an error.
18522: Use char because int might match the return type of a GCC
18523: builtin and then its argument prototype would still apply. */
1.66 paf 18524: #ifdef __cplusplus
18525: extern "C"
18526: #endif
18527: char socket ();
1.62 paf 18528: int
18529: main ()
18530: {
1.150 moko 18531: return socket ();
1.62 paf 18532: ;
18533: return 0;
18534: }
18535: _ACEOF
1.150 moko 18536: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18537: ac_cv_lib_socket_socket=yes
1.8 paf 18538: else
1.150 moko 18539: ac_cv_lib_socket_socket=no
1.8 paf 18540: fi
1.150 moko 18541: rm -f core conftest.err conftest.$ac_objext \
18542: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18543: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18544: fi
1.150 moko 18545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18546: $as_echo "$ac_cv_lib_socket_socket" >&6; }
18547: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 18548: cat >>confdefs.h <<_ACEOF
1.128 moko 18549: #define HAVE_LIBSOCKET 1
1.66 paf 18550: _ACEOF
18551:
1.128 moko 18552: LIBS="-lsocket $LIBS"
1.66 paf 18553:
1.62 paf 18554: fi
18555:
1.66 paf 18556: ;;
1.128 moko 18557: *-cygwin*)
18558:
1.150 moko 18559: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 18560:
1.66 paf 18561: ;;
18562: esac
1.1 paf 18563:
1.150 moko 18564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18565: $as_echo_n "checking for sin in -lm... " >&6; }
18566: if ${ac_cv_lib_m_sin+:} false; then :
18567: $as_echo_n "(cached) " >&6
1.1 paf 18568: else
1.62 paf 18569: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18570: LIBS="-lm $LIBS"
1.150 moko 18571: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18572: /* end confdefs.h. */
18573:
1.150 moko 18574: /* Override any GCC internal prototype to avoid an error.
18575: Use char because int might match the return type of a GCC
18576: builtin and then its argument prototype would still apply. */
1.66 paf 18577: #ifdef __cplusplus
18578: extern "C"
18579: #endif
18580: char sin ();
1.62 paf 18581: int
18582: main ()
18583: {
1.150 moko 18584: return sin ();
1.62 paf 18585: ;
18586: return 0;
18587: }
18588: _ACEOF
1.150 moko 18589: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18590: ac_cv_lib_m_sin=yes
1.62 paf 18591: else
1.150 moko 18592: ac_cv_lib_m_sin=no
1.62 paf 18593: fi
1.150 moko 18594: rm -f core conftest.err conftest.$ac_objext \
18595: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18596: LIBS=$ac_check_lib_save_LIBS
18597: fi
1.150 moko 18598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18599: $as_echo "$ac_cv_lib_m_sin" >&6; }
18600: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 18601: cat >>confdefs.h <<_ACEOF
1.66 paf 18602: #define HAVE_LIBM 1
1.62 paf 18603: _ACEOF
1.1 paf 18604:
1.66 paf 18605: LIBS="-lm $LIBS"
1.1 paf 18606:
18607: fi
18608:
1.150 moko 18609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18610: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18611: if ${ac_cv_lib_crypt_crypt+:} false; then :
18612: $as_echo_n "(cached) " >&6
1.1 paf 18613: else
1.62 paf 18614: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18615: LIBS="-lcrypt $LIBS"
1.150 moko 18616: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18617: /* end confdefs.h. */
18618:
1.150 moko 18619: /* Override any GCC internal prototype to avoid an error.
18620: Use char because int might match the return type of a GCC
18621: builtin and then its argument prototype would still apply. */
1.66 paf 18622: #ifdef __cplusplus
18623: extern "C"
18624: #endif
18625: char crypt ();
1.62 paf 18626: int
18627: main ()
18628: {
1.150 moko 18629: return crypt ();
1.62 paf 18630: ;
18631: return 0;
18632: }
18633: _ACEOF
1.150 moko 18634: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18635: ac_cv_lib_crypt_crypt=yes
1.62 paf 18636: else
1.150 moko 18637: ac_cv_lib_crypt_crypt=no
1.62 paf 18638: fi
1.150 moko 18639: rm -f core conftest.err conftest.$ac_objext \
18640: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18641: LIBS=$ac_check_lib_save_LIBS
18642: fi
1.150 moko 18643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18644: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18645: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 18646: cat >>confdefs.h <<_ACEOF
1.66 paf 18647: #define HAVE_LIBCRYPT 1
1.62 paf 18648: _ACEOF
1.1 paf 18649:
1.66 paf 18650: LIBS="-lcrypt $LIBS"
18651:
18652: fi
18653:
18654:
18655:
1.159 moko 18656: for ac_func in flock _locking fcntl lockf ftruncate fchmod
18657: do :
18658: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18659: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18660: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18661: cat >>confdefs.h <<_ACEOF
18662: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18663: _ACEOF
18664:
18665: fi
18666: done
1.66 paf 18667:
1.159 moko 18668: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv
1.150 moko 18669: do :
18670: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18671: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18672: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18673: cat >>confdefs.h <<_ACEOF
1.150 moko 18674: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18675: _ACEOF
1.1 paf 18676:
1.66 paf 18677: fi
18678: done
18679:
1.1 paf 18680:
18681:
1.159 moko 18682:
1.67 paf 18683: pa_func=sigsetjmp
1.150 moko 18684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18685: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
18686: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18687: /* end confdefs.h. */
18688:
18689: #ifdef HAVE_SETJMP_H
18690: # include <setjmp.h>
18691: #endif
18692:
18693: int
18694: main ()
18695: {
18696:
18697: $pa_func(0,0);
18698:
18699: ;
18700: return 0;
18701: }
18702: _ACEOF
1.150 moko 18703: if ac_fn_c_try_compile "$LINENO"; then :
18704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18705: $as_echo "yes" >&6; }
1.67 paf 18706: cat >>confdefs.h <<_ACEOF
1.150 moko 18707: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18708: _ACEOF
18709:
18710:
18711: else
1.150 moko 18712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18713: $as_echo "no" >&6; }
1.67 paf 18714:
18715: fi
1.150 moko 18716: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18717:
18718:
18719:
1.159 moko 18720:
1.150 moko 18721: ac_ext=cpp
1.67 paf 18722: ac_cpp='$CXXCPP $CPPFLAGS'
18723: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18724: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18725: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18726:
18727:
18728:
1.188 moko 18729: for pa_func in trunc round sign isfinite
1.67 paf 18730: do
18731:
1.150 moko 18732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18733: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
18734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18735: /* end confdefs.h. */
18736:
18737: #ifdef HAVE_MATH_H
18738: # include <math.h>
18739: #endif
18740:
18741: int
18742: main ()
18743: {
18744:
18745: double result=$pa_func(1.6);
18746:
18747: ;
18748: return 0;
18749: }
18750: _ACEOF
1.150 moko 18751: if ac_fn_cxx_try_compile "$LINENO"; then :
18752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753: $as_echo "yes" >&6; }
1.67 paf 18754: cat >>confdefs.h <<_ACEOF
1.150 moko 18755: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18756: _ACEOF
1.66 paf 18757:
1.62 paf 18758: else
1.150 moko 18759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18760: $as_echo "no" >&6; }
1.62 paf 18761:
18762: fi
1.150 moko 18763: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18764:
18765: done
18766:
18767: ac_ext=c
18768: ac_cpp='$CPP $CPPFLAGS'
18769: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18770: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18771: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18772:
18773:
18774:
18775: for ac_func in qsort
18776: do :
18777: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18778: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18779: cat >>confdefs.h <<_ACEOF
1.150 moko 18780: #define HAVE_QSORT 1
1.62 paf 18781: _ACEOF
1.1 paf 18782:
1.66 paf 18783: else
1.150 moko 18784: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18785: fi
1.66 paf 18786: done
1.1 paf 18787:
18788:
1.62 paf 18789:
1.159 moko 18790:
1.177 moko 18791: ac_ext=cpp
18792: ac_cpp='$CXXCPP $CPPFLAGS'
18793: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18794: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18795: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18796:
1.150 moko 18797: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18798: $as_echo_n "checking for timezone variable... " >&6; }
18799: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18800: /* end confdefs.h. */
1.66 paf 18801: #include <time.h>
1.62 paf 18802: int
18803: main ()
18804: {
1.177 moko 18805: int test=timezone;
1.62 paf 18806: ;
18807: return 0;
18808: }
18809: _ACEOF
1.177 moko 18810: if ac_fn_cxx_try_compile "$LINENO"; then :
1.150 moko 18811: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18813: $as_echo "yes" >&6; }
1.62 paf 18814: else
1.150 moko 18815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816: $as_echo "no" >&6; }
1.62 paf 18817: fi
1.150 moko 18818: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.177 moko 18819: ac_ext=c
18820: ac_cpp='$CPP $CPPFLAGS'
18821: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18822: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18823: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18824:
1.1 paf 18825:
1.176 moko 18826: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18827: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
1.150 moko 18828: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18829: /* end confdefs.h. */
1.66 paf 18830: #include <time.h>
1.62 paf 18831: int
18832: main ()
18833: {
1.176 moko 18834: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18835: ;
18836: return 0;
18837: }
18838: _ACEOF
1.150 moko 18839: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18840: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18842: $as_echo "yes" >&6; }
1.62 paf 18843: else
1.150 moko 18844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18845: $as_echo "no" >&6; }
1.62 paf 18846: fi
1.150 moko 18847: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18848:
1.176 moko 18849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18850: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
1.150 moko 18851: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18852: /* end confdefs.h. */
1.66 paf 18853: #include <time.h>
1.62 paf 18854: int
18855: main ()
18856: {
1.176 moko 18857: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18858: ;
18859: return 0;
18860: }
18861: _ACEOF
1.150 moko 18862: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18863: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18865: $as_echo "yes" >&6; }
1.62 paf 18866: else
1.150 moko 18867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868: $as_echo "no" >&6; }
1.62 paf 18869: fi
1.150 moko 18870: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18871:
1.176 moko 18872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
18873: $as_echo_n "checking for 0..9999 year date range support... " >&6; }
18874: if test "$cross_compiling" = yes; then :
18875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18876: $as_echo "no" >&6; }
18877: else
18878: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18879: /* end confdefs.h. */
1.176 moko 18880:
18881: #include <string.h>
1.66 paf 18882: #include <time.h>
1.176 moko 18883:
18884: int main() {
18885: struct tm tmL,tmH;
18886: memset(&tmL, 0, sizeof(tmL));
18887: memset(&tmH, 0, sizeof(tmH));
18888: tmL.tm_year=-1900;
18889: tmL.tm_mon=-1;
18890: tmH.tm_year=9999-1900;
18891: tmH.tm_mon=12-1;
18892: tmH.tm_mday=31;
18893: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 18894: }
1.176 moko 18895:
1.62 paf 18896: _ACEOF
1.176 moko 18897: if ac_fn_c_try_run "$LINENO"; then :
18898: $as_echo "#define PA_DATE64 1" >>confdefs.h
1.158 moko 18899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18900: $as_echo "yes" >&6; }
1.62 paf 18901: else
1.150 moko 18902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18903: $as_echo "no" >&6; }
1.62 paf 18904: fi
1.176 moko 18905: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18906: conftest.$ac_objext conftest.beam conftest.$ac_ext
18907: fi
1.31 paf 18908:
1.1 paf 18909:
18910:
18911:
1.62 paf 18912:
18913:
18914:
1.150 moko 18915: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18916:
18917:
1.173 moko 18918: 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 18919:
18920: cat >confcache <<\_ACEOF
1.1 paf 18921: # This file is a shell script that caches the results of configure
18922: # tests run on this system so they can be shared between configure
1.62 paf 18923: # scripts and configure runs, see configure's option --config-cache.
18924: # It is not useful on other systems. If it contains results you don't
18925: # want to keep, you may remove or edit it.
1.1 paf 18926: #
1.62 paf 18927: # config.status only pays attention to the cache file if you give it
18928: # the --recheck option to rerun configure.
1.1 paf 18929: #
1.62 paf 18930: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18931: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18932: # following values.
18933:
18934: _ACEOF
18935:
1.1 paf 18936: # The following way of writing the cache mishandles newlines in values,
18937: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 18938: # So, we kill variables containing newlines.
1.1 paf 18939: # Ultrix sh set writes to stderr and can't be redirected directly,
18940: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 18941: (
18942: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18943: eval ac_val=\$$ac_var
18944: case $ac_val in #(
18945: *${as_nl}*)
18946: case $ac_var in #(
18947: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18948: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18949: esac
18950: case $ac_var in #(
18951: _ | IFS | as_nl) ;; #(
18952: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18953: *) { eval $ac_var=; unset $ac_var;} ;;
18954: esac ;;
18955: esac
18956: done
18957:
1.62 paf 18958: (set) 2>&1 |
1.150 moko 18959: case $as_nl`(ac_space=' '; set) 2>&1` in #(
18960: *${as_nl}ac_space=\ *)
18961: # `set' does not quote correctly, so add quotes: double-quote
18962: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 18963: sed -n \
1.86 paf 18964: "s/'/'\\\\''/g;
18965: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 18966: ;; #(
1.62 paf 18967: *)
18968: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 18969: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 18970: ;;
1.150 moko 18971: esac |
18972: sort
18973: ) |
1.62 paf 18974: sed '
1.150 moko 18975: /^ac_cv_env_/b end
1.62 paf 18976: t clear
1.150 moko 18977: :clear
1.62 paf 18978: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18979: t end
1.150 moko 18980: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18981: :end' >>confcache
18982: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18983: if test -w "$cache_file"; then
18984: if test "x$cache_file" != "x/dev/null"; then
18985: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18986: $as_echo "$as_me: updating cache $cache_file" >&6;}
18987: if test ! -f "$cache_file" || test -h "$cache_file"; then
18988: cat confcache >"$cache_file"
18989: else
18990: case $cache_file in #(
18991: */* | ?:*)
18992: mv -f confcache "$cache_file"$$ &&
18993: mv -f "$cache_file"$$ "$cache_file" ;; #(
18994: *)
18995: mv -f confcache "$cache_file" ;;
18996: esac
18997: fi
18998: fi
1.1 paf 18999: else
1.150 moko 19000: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19001: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 19002: fi
19003: fi
19004: rm -f confcache
19005:
19006: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19007: # Let make expand exec_prefix.
19008: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19009:
1.62 paf 19010: DEFS=-DHAVE_CONFIG_H
19011:
19012: ac_libobjs=
19013: ac_ltlibobjs=
19014: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19015: # 1. Remove the extension, and $U if already installed.
1.150 moko 19016: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19017: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19018: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19019: # will be set to the directory where LIBOBJS objects are built.
19020: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19021: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 19022: done
19023: LIBOBJS=$ac_libobjs
19024:
19025: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19026:
19027:
1.187 moko 19028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19029: $as_echo_n "checking that generated files are newer than configure... " >&6; }
19030: if test -n "$am_sleep_pid"; then
19031: # Hide warnings about reused PIDs.
19032: wait $am_sleep_pid 2>/dev/null
19033: fi
19034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19035: $as_echo "done" >&6; }
1.150 moko 19036: if test -n "$EXEEXT"; then
19037: am__EXEEXT_TRUE=
19038: am__EXEEXT_FALSE='#'
19039: else
19040: am__EXEEXT_TRUE='#'
19041: am__EXEEXT_FALSE=
19042: fi
19043:
1.62 paf 19044: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 19045: as_fn_error $? "conditional \"AMDEP\" was never defined.
19046: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19047: fi
1.66 paf 19048: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 19049: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19050: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19051: fi
1.66 paf 19052: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 19053: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19054: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19055: fi
1.122 moko 19056: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 19057: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
19058: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19059: fi
1.128 moko 19060: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 19061: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
19062: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19063: fi
19064: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 19065: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
19066: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19067: fi
1.150 moko 19068: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 19069:
19070: _ltdl_libobjs=
19071: _ltdl_ltlibobjs=
19072: if test -n "$_LT_LIBOBJS"; then
19073: # Remove the extension.
19074: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19075: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19076: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19077: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19078: done
19079: fi
19080: ltdl_LIBOBJS=$_ltdl_libobjs
19081:
19082: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19083:
19084:
1.62 paf 19085:
1.150 moko 19086:
19087: : "${CONFIG_STATUS=./config.status}"
19088: ac_write_fail=0
1.62 paf 19089: ac_clean_files_save=$ac_clean_files
19090: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 19091: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19092: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19093: as_write_fail=0
19094: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 19095: #! $SHELL
19096: # Generated by $as_me.
19097: # Run this file to recreate the current configuration.
19098: # Compiler output produced by configure, useful for debugging
19099: # configure, is in config.log if it exists.
19100:
19101: debug=false
19102: ac_cs_recheck=false
19103: ac_cs_silent=false
1.150 moko 19104:
1.62 paf 19105: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 19106: export SHELL
19107: _ASEOF
19108: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19109: ## -------------------- ##
19110: ## M4sh Initialization. ##
19111: ## -------------------- ##
1.62 paf 19112:
1.150 moko 19113: # Be more Bourne compatible
19114: DUALCASE=1; export DUALCASE # for MKS sh
19115: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 19116: emulate sh
19117: NULLCMD=:
1.150 moko 19118: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 19119: # is contrary to our usage. Disable this feature.
19120: alias -g '${1+"$@"}'='"$@"'
1.150 moko 19121: setopt NO_GLOB_SUBST
19122: else
19123: case `(set -o) 2>/dev/null` in #(
19124: *posix*) :
19125: set -o posix ;; #(
19126: *) :
19127: ;;
19128: esac
19129: fi
19130:
19131:
19132: as_nl='
19133: '
19134: export as_nl
19135: # Printing a long string crashes Solaris 7 /usr/bin/printf.
19136: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19137: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19138: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19139: # Prefer a ksh shell builtin over an external printf program on Solaris,
19140: # but without wasting forks for bash or zsh.
19141: if test -z "$BASH_VERSION$ZSH_VERSION" \
19142: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19143: as_echo='print -r --'
19144: as_echo_n='print -rn --'
19145: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19146: as_echo='printf %s\n'
19147: as_echo_n='printf %s'
19148: else
19149: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19150: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19151: as_echo_n='/usr/ucb/echo -n'
19152: else
19153: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19154: as_echo_n_body='eval
19155: arg=$1;
19156: case $arg in #(
19157: *"$as_nl"*)
19158: expr "X$arg" : "X\\(.*\\)$as_nl";
19159: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19160: esac;
19161: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19162: '
19163: export as_echo_n_body
19164: as_echo_n='sh -c $as_echo_n_body as_echo'
19165: fi
19166: export as_echo_body
19167: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 19168: fi
19169:
1.150 moko 19170: # The user is always right.
19171: if test "${PATH_SEPARATOR+set}" != set; then
19172: PATH_SEPARATOR=:
19173: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19174: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19175: PATH_SEPARATOR=';'
19176: }
1.62 paf 19177: fi
19178:
19179:
1.150 moko 19180: # IFS
19181: # We need space, tab and new line, in precisely that order. Quoting is
19182: # there to prevent editors from complaining about space-tab.
19183: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19184: # splitting by setting IFS to empty value.)
19185: IFS=" "" $as_nl"
19186:
19187: # Find who we are. Look in the path if we contain no directory separator.
19188: as_myself=
19189: case $0 in #((
19190: *[\\/]* ) as_myself=$0 ;;
19191: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19192: for as_dir in $PATH
19193: do
19194: IFS=$as_save_IFS
19195: test -z "$as_dir" && as_dir=.
19196: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19197: done
19198: IFS=$as_save_IFS
19199:
19200: ;;
19201: esac
19202: # We did not find ourselves, most probably we were run as `sh COMMAND'
19203: # in which case we are not to be found in the path.
19204: if test "x$as_myself" = x; then
19205: as_myself=$0
19206: fi
19207: if test ! -f "$as_myself"; then
19208: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19209: exit 1
19210: fi
19211:
19212: # Unset variables that we do not need and which cause bugs (e.g. in
19213: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19214: # suppresses any "Segmentation fault" message there. '((' could
19215: # trigger a bug in pdksh 5.2.14.
19216: for as_var in BASH_ENV ENV MAIL MAILPATH
19217: do eval test x\${$as_var+set} = xset \
19218: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19219: done
1.62 paf 19220: PS1='$ '
19221: PS2='> '
19222: PS4='+ '
19223:
19224: # NLS nuisances.
1.150 moko 19225: LC_ALL=C
19226: export LC_ALL
19227: LANGUAGE=C
19228: export LANGUAGE
19229:
19230: # CDPATH.
19231: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19232:
19233:
19234: # as_fn_error STATUS ERROR [LINENO LOG_FD]
19235: # ----------------------------------------
19236: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19237: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19238: # script with STATUS, using 1 if that was 0.
19239: as_fn_error ()
19240: {
19241: as_status=$1; test $as_status -eq 0 && as_status=1
19242: if test "$4"; then
19243: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19244: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19245: fi
19246: $as_echo "$as_me: error: $2" >&2
19247: as_fn_exit $as_status
19248: } # as_fn_error
19249:
19250:
19251: # as_fn_set_status STATUS
19252: # -----------------------
19253: # Set $? to STATUS, without forking.
19254: as_fn_set_status ()
19255: {
19256: return $1
19257: } # as_fn_set_status
19258:
19259: # as_fn_exit STATUS
19260: # -----------------
19261: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19262: as_fn_exit ()
19263: {
19264: set +e
19265: as_fn_set_status $1
19266: exit $1
19267: } # as_fn_exit
19268:
19269: # as_fn_unset VAR
19270: # ---------------
19271: # Portably unset VAR.
19272: as_fn_unset ()
19273: {
19274: { eval $1=; unset $1;}
19275: }
19276: as_unset=as_fn_unset
19277: # as_fn_append VAR VALUE
19278: # ----------------------
19279: # Append the text in VALUE to the end of the definition contained in VAR. Take
19280: # advantage of any shell optimizations that allow amortized linear growth over
19281: # repeated appends, instead of the typical quadratic growth present in naive
19282: # implementations.
19283: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19284: eval 'as_fn_append ()
19285: {
19286: eval $1+=\$2
19287: }'
19288: else
19289: as_fn_append ()
19290: {
19291: eval $1=\$$1\$2
19292: }
19293: fi # as_fn_append
19294:
19295: # as_fn_arith ARG...
19296: # ------------------
19297: # Perform arithmetic evaluation on the ARGs, and store the result in the
19298: # global $as_val. Take advantage of shells that can avoid forks. The arguments
19299: # must be portable across $(()) and expr.
19300: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19301: eval 'as_fn_arith ()
19302: {
19303: as_val=$(( $* ))
19304: }'
19305: else
19306: as_fn_arith ()
19307: {
19308: as_val=`expr "$@" || test $? -eq 1`
19309: }
19310: fi # as_fn_arith
19311:
1.1 paf 19312:
1.150 moko 19313: if expr a : '\(a\)' >/dev/null 2>&1 &&
19314: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 19315: as_expr=expr
19316: else
19317: as_expr=false
19318: fi
19319:
1.150 moko 19320: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 19321: as_basename=basename
19322: else
19323: as_basename=false
19324: fi
19325:
1.150 moko 19326: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19327: as_dirname=dirname
19328: else
19329: as_dirname=false
19330: fi
1.62 paf 19331:
1.150 moko 19332: as_me=`$as_basename -- "$0" ||
1.62 paf 19333: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19334: X"$0" : 'X\(//\)$' \| \
1.150 moko 19335: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19336: $as_echo X/"$0" |
19337: sed '/^.*\/\([^/][^/]*\)\/*$/{
19338: s//\1/
19339: q
19340: }
19341: /^X\/\(\/\/\)$/{
19342: s//\1/
19343: q
19344: }
19345: /^X\/\(\/\).*/{
19346: s//\1/
19347: q
19348: }
19349: s/.*/./; q'`
1.62 paf 19350:
19351: # Avoid depending upon Character Ranges.
19352: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19353: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19354: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19355: as_cr_digits='0123456789'
19356: as_cr_alnum=$as_cr_Letters$as_cr_digits
19357:
1.150 moko 19358: ECHO_C= ECHO_N= ECHO_T=
19359: case `echo -n x` in #(((((
19360: -n*)
19361: case `echo 'xy\c'` in
19362: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19363: xy) ECHO_C='\c';;
19364: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19365: ECHO_T=' ';;
19366: esac;;
19367: *)
19368: ECHO_N='-n';;
1.62 paf 19369: esac
19370:
1.150 moko 19371: rm -f conf$$ conf$$.exe conf$$.file
19372: if test -d conf$$.dir; then
19373: rm -f conf$$.dir/conf$$.file
1.62 paf 19374: else
1.150 moko 19375: rm -f conf$$.dir
19376: mkdir conf$$.dir 2>/dev/null
1.62 paf 19377: fi
1.150 moko 19378: if (echo >conf$$.file) 2>/dev/null; then
19379: if ln -s conf$$.file conf$$ 2>/dev/null; then
19380: as_ln_s='ln -s'
19381: # ... but there are two gotchas:
19382: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19383: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 19384: # In both cases, we have to default to `cp -pR'.
1.150 moko 19385: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 19386: as_ln_s='cp -pR'
1.150 moko 19387: elif ln conf$$.file conf$$ 2>/dev/null; then
19388: as_ln_s=ln
19389: else
1.166 moko 19390: as_ln_s='cp -pR'
1.62 paf 19391: fi
19392: else
1.166 moko 19393: as_ln_s='cp -pR'
1.62 paf 19394: fi
1.150 moko 19395: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19396: rmdir conf$$.dir 2>/dev/null
19397:
19398:
19399: # as_fn_mkdir_p
19400: # -------------
19401: # Create "$as_dir" as a directory, including parents if necessary.
19402: as_fn_mkdir_p ()
19403: {
19404:
19405: case $as_dir in #(
19406: -*) as_dir=./$as_dir;;
19407: esac
19408: test -d "$as_dir" || eval $as_mkdir_p || {
19409: as_dirs=
19410: while :; do
19411: case $as_dir in #(
19412: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19413: *) as_qdir=$as_dir;;
19414: esac
19415: as_dirs="'$as_qdir' $as_dirs"
19416: as_dir=`$as_dirname -- "$as_dir" ||
19417: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19418: X"$as_dir" : 'X\(//\)[^/]' \| \
19419: X"$as_dir" : 'X\(//\)$' \| \
19420: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19421: $as_echo X"$as_dir" |
19422: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19423: s//\1/
19424: q
19425: }
19426: /^X\(\/\/\)[^/].*/{
19427: s//\1/
19428: q
19429: }
19430: /^X\(\/\/\)$/{
19431: s//\1/
19432: q
19433: }
19434: /^X\(\/\).*/{
19435: s//\1/
19436: q
19437: }
19438: s/.*/./; q'`
19439: test -d "$as_dir" && break
19440: done
19441: test -z "$as_dirs" || eval "mkdir $as_dirs"
19442: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19443:
1.62 paf 19444:
1.150 moko 19445: } # as_fn_mkdir_p
1.62 paf 19446: if mkdir -p . 2>/dev/null; then
1.150 moko 19447: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 19448: else
1.86 paf 19449: test -d ./-p && rmdir ./-p
1.62 paf 19450: as_mkdir_p=false
19451: fi
19452:
1.166 moko 19453:
19454: # as_fn_executable_p FILE
19455: # -----------------------
19456: # Test if FILE is an executable regular file.
19457: as_fn_executable_p ()
19458: {
19459: test -f "$1" && test -x "$1"
19460: } # as_fn_executable_p
19461: as_test_x='test -x'
19462: as_executable_p=as_fn_executable_p
1.62 paf 19463:
19464: # Sed expression to map a string onto a valid CPP name.
1.86 paf 19465: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19466:
19467: # Sed expression to map a string onto a valid variable name.
1.86 paf 19468: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19469:
19470:
19471: exec 6>&1
1.150 moko 19472: ## ----------------------------------- ##
19473: ## Main body of $CONFIG_STATUS script. ##
19474: ## ----------------------------------- ##
19475: _ASEOF
19476: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 19477:
1.150 moko 19478: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19479: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 19480: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 19481: # values after options handling.
19482: ac_log="
1.186 moko 19483: This file was extended by parser $as_me 3.4.6b, which was
1.166 moko 19484: generated by GNU Autoconf 2.69. Invocation command line was
1.62 paf 19485:
19486: CONFIG_FILES = $CONFIG_FILES
19487: CONFIG_HEADERS = $CONFIG_HEADERS
19488: CONFIG_LINKS = $CONFIG_LINKS
19489: CONFIG_COMMANDS = $CONFIG_COMMANDS
19490: $ $0 $@
19491:
1.150 moko 19492: on `(hostname || uname -n) 2>/dev/null | sed 1q`
19493: "
19494:
1.62 paf 19495: _ACEOF
19496:
1.150 moko 19497: case $ac_config_files in *"
19498: "*) set x $ac_config_files; shift; ac_config_files=$*;;
19499: esac
1.62 paf 19500:
1.150 moko 19501: case $ac_config_headers in *"
19502: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19503: esac
1.62 paf 19504:
19505:
1.150 moko 19506: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19507: # Files that config.status was made for.
19508: config_files="$ac_config_files"
19509: config_headers="$ac_config_headers"
19510: config_commands="$ac_config_commands"
1.62 paf 19511:
1.150 moko 19512: _ACEOF
1.62 paf 19513:
1.150 moko 19514: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19515: ac_cs_usage="\
1.150 moko 19516: \`$as_me' instantiates files and other configuration actions
19517: from templates according to the current configuration. Unless the files
19518: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 19519:
1.150 moko 19520: Usage: $0 [OPTION]... [TAG]...
1.62 paf 19521:
19522: -h, --help print this help, then exit
1.150 moko 19523: -V, --version print version number and configuration settings, then exit
19524: --config print configuration, then exit
19525: -q, --quiet, --silent
19526: do not print progress messages
1.62 paf 19527: -d, --debug don't remove temporary files
19528: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 19529: --file=FILE[:TEMPLATE]
19530: instantiate the configuration file FILE
19531: --header=FILE[:TEMPLATE]
19532: instantiate the configuration header FILE
1.62 paf 19533:
19534: Configuration files:
19535: $config_files
19536:
19537: Configuration headers:
19538: $config_headers
19539:
19540: Configuration commands:
19541: $config_commands
19542:
1.150 moko 19543: Report bugs to the package provider."
19544:
1.62 paf 19545: _ACEOF
1.150 moko 19546: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19547: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 19548: ac_cs_version="\\
1.186 moko 19549: parser config.status 3.4.6b
1.166 moko 19550: configured by $0, generated by GNU Autoconf 2.69,
1.150 moko 19551: with options \\"\$ac_cs_config\\"
1.62 paf 19552:
1.166 moko 19553: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 19554: This config.status script is free software; the Free Software Foundation
19555: gives unlimited permission to copy, distribute and modify it."
1.150 moko 19556:
19557: ac_pwd='$ac_pwd'
19558: srcdir='$srcdir'
19559: INSTALL='$INSTALL'
19560: MKDIR_P='$MKDIR_P'
19561: AWK='$AWK'
19562: test -n "\$AWK" || AWK=awk
1.62 paf 19563: _ACEOF
19564:
1.150 moko 19565: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19566: # The default lists apply if the user does not specify any file.
1.62 paf 19567: ac_need_defaults=:
19568: while test $# != 0
19569: do
19570: case $1 in
1.150 moko 19571: --*=?*)
19572: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19573: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 19574: ac_shift=:
19575: ;;
1.150 moko 19576: --*=)
19577: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19578: ac_optarg=
19579: ac_shift=:
19580: ;;
19581: *)
1.62 paf 19582: ac_option=$1
19583: ac_optarg=$2
19584: ac_shift=shift
19585: ;;
19586: esac
19587:
19588: case $ac_option in
19589: # Handling of the options.
19590: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19591: ac_cs_recheck=: ;;
1.150 moko 19592: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19593: $as_echo "$ac_cs_version"; exit ;;
19594: --config | --confi | --conf | --con | --co | --c )
19595: $as_echo "$ac_cs_config"; exit ;;
19596: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 19597: debug=: ;;
19598: --file | --fil | --fi | --f )
19599: $ac_shift
1.150 moko 19600: case $ac_optarg in
19601: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19602: '') as_fn_error $? "missing file argument" ;;
19603: esac
19604: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 19605: ac_need_defaults=false;;
19606: --header | --heade | --head | --hea )
19607: $ac_shift
1.150 moko 19608: case $ac_optarg in
19609: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19610: esac
19611: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 19612: ac_need_defaults=false;;
1.150 moko 19613: --he | --h)
19614: # Conflict between --help and --header
19615: as_fn_error $? "ambiguous option: \`$1'
19616: Try \`$0 --help' for more information.";;
19617: --help | --hel | -h )
19618: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 19619: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19620: | -silent | --silent | --silen | --sile | --sil | --si | --s)
19621: ac_cs_silent=: ;;
19622:
19623: # This is an error.
1.150 moko 19624: -*) as_fn_error $? "unrecognized option: \`$1'
19625: Try \`$0 --help' for more information." ;;
1.62 paf 19626:
1.150 moko 19627: *) as_fn_append ac_config_targets " $1"
19628: ac_need_defaults=false ;;
1.62 paf 19629:
19630: esac
19631: shift
19632: done
19633:
19634: ac_configure_extra_args=
19635:
19636: if $ac_cs_silent; then
19637: exec 6>/dev/null
1.150 moko 19638: ac_configure_extra_args="$ac_configure_extra_args --silent"
19639: fi
19640:
19641: _ACEOF
19642: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19643: if \$ac_cs_recheck; then
1.166 moko 19644: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 19645: shift
19646: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19647: CONFIG_SHELL='$SHELL'
19648: export CONFIG_SHELL
19649: exec "\$@"
19650: fi
19651:
19652: _ACEOF
19653: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19654: exec 5>>config.log
19655: {
19656: echo
19657: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19658: ## Running $as_me. ##
19659: _ASBOX
19660: $as_echo "$ac_log"
19661: } >&5
1.62 paf 19662:
19663: _ACEOF
1.150 moko 19664: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 19665: #
1.150 moko 19666: # INIT-COMMANDS
1.1 paf 19667: #
1.62 paf 19668: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19669:
1.128 moko 19670:
19671: # The HP-UX ksh and POSIX shell print the target directory to stdout
19672: # if CDPATH is set.
19673: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19674:
19675: sed_quote_subst='$sed_quote_subst'
19676: double_quote_subst='$double_quote_subst'
19677: delay_variable_subst='$delay_variable_subst'
19678: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19679: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19680: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19681: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19682: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19683: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19684: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19685: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19686: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19687: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19688: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19689: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19690: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19691: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19692: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19693: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19694: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19695: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19696: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19697: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19698: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19699: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19700: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19701: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19702: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19703: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19704: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19705: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19706: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19707: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19708: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19709: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19710: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19711: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19712: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19713: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19714: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19715: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19716: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19717: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19718: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19719: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19720: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19721: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19722: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19723: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19724: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19725: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19726: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19727: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19728: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19729: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19730: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19731: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19732: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19733: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19734: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19735: 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"`'
19736: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19737: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19738: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19739: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19740: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19741: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19742: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19743: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19744: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19745: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19746: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19747: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19748: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19749: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19750: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19751: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19752: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19753: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19754: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19755: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19756: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19757: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19758: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19759: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19760: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19761: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19762: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19763: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19764: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19765: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19766: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19767: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19768: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19769: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19770: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19771: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19772: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19773: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19774: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19775: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19776: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19777: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19778: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19779: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19780: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19781: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19782: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19783: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19784: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19785: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19786: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19787: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19788: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19789: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19790: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19791: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19792: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19793: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19794: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19795: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19796: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19797: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19798: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19799: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19800: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19801: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19802: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19803: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19804: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19805: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19806: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19807: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19808: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19809: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19810: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19811: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19812: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19813: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19814: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19815: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19816: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19817: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19818: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19819: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19820: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19821: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19822: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19823: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19824: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19825: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19826: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19827: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19828: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19829: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19830: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19831: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19832: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19833: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19834: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19835: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19836: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19837: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19838: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19839: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19840: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19841: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19842: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19843: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19844: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19845: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19846: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19847: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19848: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19849: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19850: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19851: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19852: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19853: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19854: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19855: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19856: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19857: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19858: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19859: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19860: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19861: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19862: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19863:
19864: LTCC='$LTCC'
19865: LTCFLAGS='$LTCFLAGS'
19866: compiler='$compiler_DEFAULT'
19867:
19868: # A function that is used when there is no print builtin or printf.
19869: func_fallback_echo ()
19870: {
19871: eval 'cat <<_LTECHO_EOF
19872: \$1
19873: _LTECHO_EOF'
19874: }
19875:
19876: # Quote evaled strings.
19877: for var in AS \
19878: DLLTOOL \
19879: OBJDUMP \
19880: SHELL \
19881: ECHO \
19882: PATH_SEPARATOR \
19883: SED \
19884: GREP \
19885: EGREP \
19886: FGREP \
19887: LD \
19888: NM \
19889: LN_S \
19890: lt_SP2NL \
19891: lt_NL2SP \
19892: reload_flag \
19893: deplibs_check_method \
19894: file_magic_cmd \
19895: file_magic_glob \
19896: want_nocaseglob \
19897: sharedlib_from_linklib_cmd \
19898: AR \
19899: AR_FLAGS \
19900: archiver_list_spec \
19901: STRIP \
19902: RANLIB \
19903: CC \
19904: CFLAGS \
19905: compiler \
19906: lt_cv_sys_global_symbol_pipe \
19907: lt_cv_sys_global_symbol_to_cdecl \
19908: lt_cv_sys_global_symbol_to_c_name_address \
19909: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19910: nm_file_list_spec \
19911: lt_prog_compiler_no_builtin_flag \
19912: lt_prog_compiler_pic \
19913: lt_prog_compiler_wl \
19914: lt_prog_compiler_static \
19915: lt_cv_prog_compiler_c_o \
19916: need_locks \
19917: MANIFEST_TOOL \
19918: DSYMUTIL \
19919: NMEDIT \
19920: LIPO \
19921: OTOOL \
19922: OTOOL64 \
19923: shrext_cmds \
19924: export_dynamic_flag_spec \
19925: whole_archive_flag_spec \
19926: compiler_needs_object \
19927: with_gnu_ld \
19928: allow_undefined_flag \
19929: no_undefined_flag \
19930: hardcode_libdir_flag_spec \
19931: hardcode_libdir_separator \
19932: exclude_expsyms \
19933: include_expsyms \
19934: file_list_spec \
19935: variables_saved_for_relink \
19936: libname_spec \
19937: library_names_spec \
19938: soname_spec \
19939: install_override_mode \
19940: finish_eval \
19941: old_striplib \
19942: striplib \
19943: compiler_lib_search_dirs \
19944: predep_objects \
19945: postdep_objects \
19946: predeps \
19947: postdeps \
19948: compiler_lib_search_path \
19949: LD_CXX \
19950: reload_flag_CXX \
19951: compiler_CXX \
19952: lt_prog_compiler_no_builtin_flag_CXX \
19953: lt_prog_compiler_pic_CXX \
19954: lt_prog_compiler_wl_CXX \
19955: lt_prog_compiler_static_CXX \
19956: lt_cv_prog_compiler_c_o_CXX \
19957: export_dynamic_flag_spec_CXX \
19958: whole_archive_flag_spec_CXX \
19959: compiler_needs_object_CXX \
19960: with_gnu_ld_CXX \
19961: allow_undefined_flag_CXX \
19962: no_undefined_flag_CXX \
19963: hardcode_libdir_flag_spec_CXX \
19964: hardcode_libdir_separator_CXX \
19965: exclude_expsyms_CXX \
19966: include_expsyms_CXX \
19967: file_list_spec_CXX \
19968: compiler_lib_search_dirs_CXX \
19969: predep_objects_CXX \
19970: postdep_objects_CXX \
19971: predeps_CXX \
19972: postdeps_CXX \
19973: compiler_lib_search_path_CXX; do
19974: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19975: *[\\\\\\\`\\"\\\$]*)
19976: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19977: ;;
19978: *)
19979: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19980: ;;
19981: esac
19982: done
19983:
19984: # Double-quote double-evaled strings.
19985: for var in reload_cmds \
19986: old_postinstall_cmds \
19987: old_postuninstall_cmds \
19988: old_archive_cmds \
19989: extract_expsyms_cmds \
19990: old_archive_from_new_cmds \
19991: old_archive_from_expsyms_cmds \
19992: archive_cmds \
19993: archive_expsym_cmds \
19994: module_cmds \
19995: module_expsym_cmds \
19996: export_symbols_cmds \
19997: prelink_cmds \
19998: postlink_cmds \
19999: postinstall_cmds \
20000: postuninstall_cmds \
20001: finish_cmds \
20002: sys_lib_search_path_spec \
20003: sys_lib_dlsearch_path_spec \
20004: reload_cmds_CXX \
20005: old_archive_cmds_CXX \
20006: old_archive_from_new_cmds_CXX \
20007: old_archive_from_expsyms_cmds_CXX \
20008: archive_cmds_CXX \
20009: archive_expsym_cmds_CXX \
20010: module_cmds_CXX \
20011: module_expsym_cmds_CXX \
20012: export_symbols_cmds_CXX \
20013: prelink_cmds_CXX \
20014: postlink_cmds_CXX; do
20015: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20016: *[\\\\\\\`\\"\\\$]*)
20017: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20018: ;;
20019: *)
20020: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20021: ;;
20022: esac
20023: done
20024:
20025: ac_aux_dir='$ac_aux_dir'
20026: xsi_shell='$xsi_shell'
20027: lt_shell_append='$lt_shell_append'
20028:
20029: # See if we are running on zsh, and set the options which allow our
20030: # commands through without removal of \ escapes INIT.
20031: if test -n "\${ZSH_VERSION+set}" ; then
20032: setopt NO_GLOB_SUBST
20033: fi
20034:
20035:
20036: PACKAGE='$PACKAGE'
20037: VERSION='$VERSION'
20038: TIMESTAMP='$TIMESTAMP'
20039: RM='$RM'
20040: ofile='$ofile'
20041:
20042:
20043:
20044:
20045:
20046:
1.62 paf 20047: _ACEOF
20048:
1.150 moko 20049: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20050:
1.150 moko 20051: # Handling of arguments.
1.62 paf 20052: for ac_config_target in $ac_config_targets
1.1 paf 20053: do
1.150 moko 20054: case $ac_config_target in
20055: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20056: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20057: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20058: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20059: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20060: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20061: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20062: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20063: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20064: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20065: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20066: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20067: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
20068: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20069: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
20070: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
20071: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20072: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20073: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
20074: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
20075: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
20076: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
20077: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 20078: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
20079: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 20080: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
20081: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20082: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
20083: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
20084: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20085: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20086: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
20087: "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20088: "bin/auto.p.dist") CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
20089:
20090: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 20091: esac
20092: done
20093:
1.150 moko 20094:
1.62 paf 20095: # If the user did not use the arguments to specify the items to instantiate,
20096: # then the envvar interface is used. Set only those that are not.
20097: # We use the long form for the default assignment because of an extremely
20098: # bizarre bug on SunOS 4.1.3.
20099: if $ac_need_defaults; then
20100: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20101: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20102: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20103: fi
20104:
20105: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 20106: # simply because there is no reason against having it here, and in addition,
1.62 paf 20107: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 20108: # Hook for its removal unless debugging.
20109: # Note that there is a small window in which the directory will not be cleaned:
20110: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 20111: $debug ||
20112: {
1.150 moko 20113: tmp= ac_tmp=
20114: trap 'exit_status=$?
20115: : "${ac_tmp:=$tmp}"
20116: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20117: ' 0
20118: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 20119: }
20120: # Create a (secure) tmp directory for tmp files.
20121:
20122: {
1.150 moko 20123: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20124: test -d "$tmp"
1.62 paf 20125: } ||
20126: {
1.150 moko 20127: tmp=./conf$$-$RANDOM
20128: (umask 077 && mkdir "$tmp")
20129: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20130: ac_tmp=$tmp
20131:
20132: # Set up the scripts for CONFIG_FILES section.
20133: # No need to generate them if there are no CONFIG_FILES.
20134: # This happens for instance with `./config.status config.h'.
20135: if test -n "$CONFIG_FILES"; then
20136:
20137:
20138: ac_cr=`echo X | tr X '\015'`
20139: # On cygwin, bash can eat \r inside `` if the user requested igncr.
20140: # But we know of no other shell where ac_cr would be empty at this
20141: # point, so we can use a bashism as a fallback.
20142: if test "x$ac_cr" = x; then
20143: eval ac_cr=\$\'\\r\'
20144: fi
20145: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20146: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20147: ac_cs_awk_cr='\\r'
20148: else
20149: ac_cs_awk_cr=$ac_cr
20150: fi
20151:
20152: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20153: _ACEOF
20154:
20155:
1.62 paf 20156: {
1.150 moko 20157: echo "cat >conf$$subs.awk <<_ACEOF" &&
20158: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20159: echo "_ACEOF"
20160: } >conf$$subs.sh ||
20161: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20162: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20163: ac_delim='%!_!# '
20164: for ac_last_try in false false false false false :; do
20165: . ./conf$$subs.sh ||
20166: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20167:
20168: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20169: if test $ac_delim_n = $ac_delim_num; then
20170: break
20171: elif $ac_last_try; then
20172: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20173: else
20174: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20175: fi
20176: done
20177: rm -f conf$$subs.sh
20178:
20179: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20180: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20181: _ACEOF
20182: sed -n '
20183: h
20184: s/^/S["/; s/!.*/"]=/
20185: p
20186: g
20187: s/^[^!]*!//
20188: :repl
20189: t repl
20190: s/'"$ac_delim"'$//
20191: t delim
20192: :nl
20193: h
20194: s/\(.\{148\}\)..*/\1/
20195: t more1
20196: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20197: p
20198: n
20199: b repl
20200: :more1
20201: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20202: p
20203: g
20204: s/.\{148\}//
20205: t nl
20206: :delim
20207: h
20208: s/\(.\{148\}\)..*/\1/
20209: t more2
20210: s/["\\]/\\&/g; s/^/"/; s/$/"/
20211: p
20212: b
20213: :more2
20214: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20215: p
20216: g
20217: s/.\{148\}//
20218: t delim
20219: ' <conf$$subs.awk | sed '
20220: /^[^""]/{
20221: N
20222: s/\n//
20223: }
20224: ' >>$CONFIG_STATUS || ac_write_fail=1
20225: rm -f conf$$subs.awk
20226: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20227: _ACAWK
20228: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20229: for (key in S) S_is_set[key] = 1
20230: FS = ""
20231:
20232: }
20233: {
20234: line = $ 0
20235: nfields = split(line, field, "@")
20236: substed = 0
20237: len = length(field[1])
20238: for (i = 2; i < nfields; i++) {
20239: key = field[i]
20240: keylen = length(key)
20241: if (S_is_set[key]) {
20242: value = S[key]
20243: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20244: len += length(value) + length(field[++i])
20245: substed = 1
20246: } else
20247: len += 1 + keylen
20248: }
20249:
20250: print line
1.62 paf 20251: }
20252:
1.150 moko 20253: _ACAWK
20254: _ACEOF
20255: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20256: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20257: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20258: else
20259: cat
20260: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20261: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 20262: _ACEOF
1.1 paf 20263:
1.150 moko 20264: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20265: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20266: # trailing colons and then remove the whole line if VPATH becomes empty
20267: # (actually we leave an empty line to preserve line numbers).
20268: if test "x$srcdir" = x.; then
20269: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20270: h
20271: s///
20272: s/^/:/
20273: s/[ ]*$/:/
20274: s/:\$(srcdir):/:/g
20275: s/:\${srcdir}:/:/g
20276: s/:@srcdir@:/:/g
20277: s/^:*//
20278: s/:*$//
20279: x
20280: s/\(=[ ]*\).*/\1/
20281: G
20282: s/\n//
20283: s/^[^=]*=[ ]*$//
20284: }'
20285: fi
1.62 paf 20286:
1.150 moko 20287: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20288: fi # test -n "$CONFIG_FILES"
1.1 paf 20289:
1.150 moko 20290: # Set up the scripts for CONFIG_HEADERS section.
20291: # No need to generate them if there are no CONFIG_HEADERS.
20292: # This happens for instance with `./config.status Makefile'.
20293: if test -n "$CONFIG_HEADERS"; then
20294: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20295: BEGIN {
20296: _ACEOF
20297:
20298: # Transform confdefs.h into an awk script `defines.awk', embedded as
20299: # here-document in config.status, that substitutes the proper values into
20300: # config.h.in to produce config.h.
20301:
20302: # Create a delimiter string that does not exist in confdefs.h, to ease
20303: # handling of long lines.
20304: ac_delim='%!_!# '
20305: for ac_last_try in false false :; do
20306: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20307: if test -z "$ac_tt"; then
20308: break
20309: elif $ac_last_try; then
20310: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20311: else
20312: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 20313: fi
1.150 moko 20314: done
1.1 paf 20315:
1.150 moko 20316: # For the awk script, D is an array of macro values keyed by name,
20317: # likewise P contains macro parameters if any. Preserve backslash
20318: # newline sequences.
20319:
20320: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20321: sed -n '
20322: s/.\{148\}/&'"$ac_delim"'/g
20323: t rset
20324: :rset
20325: s/^[ ]*#[ ]*define[ ][ ]*/ /
20326: t def
20327: d
20328: :def
20329: s/\\$//
20330: t bsnl
20331: s/["\\]/\\&/g
20332: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20333: D["\1"]=" \3"/p
20334: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20335: d
20336: :bsnl
20337: s/["\\]/\\&/g
20338: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20339: D["\1"]=" \3\\\\\\n"\\/p
20340: t cont
20341: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20342: t cont
20343: d
20344: :cont
20345: n
20346: s/.\{148\}/&'"$ac_delim"'/g
20347: t clear
20348: :clear
20349: s/\\$//
20350: t bsnlc
20351: s/["\\]/\\&/g; s/^/"/; s/$/"/p
20352: d
20353: :bsnlc
20354: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20355: b cont
20356: ' <confdefs.h | sed '
20357: s/'"$ac_delim"'/"\\\
20358: "/g' >>$CONFIG_STATUS || ac_write_fail=1
20359:
20360: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20361: for (key in D) D_is_set[key] = 1
20362: FS = ""
20363: }
20364: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20365: line = \$ 0
20366: split(line, arg, " ")
20367: if (arg[1] == "#") {
20368: defundef = arg[2]
20369: mac1 = arg[3]
20370: } else {
20371: defundef = substr(arg[1], 2)
20372: mac1 = arg[2]
20373: }
20374: split(mac1, mac2, "(") #)
20375: macro = mac2[1]
20376: prefix = substr(line, 1, index(line, defundef) - 1)
20377: if (D_is_set[macro]) {
20378: # Preserve the white space surrounding the "#".
20379: print prefix "define", macro P[macro] D[macro]
20380: next
20381: } else {
20382: # Replace #undef with comments. This is necessary, for example,
20383: # in the case of _POSIX_SOURCE, which is predefined and required
20384: # on some systems where configure will not decide to define it.
20385: if (defundef == "undef") {
20386: print "/*", prefix defundef, macro, "*/"
20387: next
20388: }
20389: }
20390: }
20391: { print }
20392: _ACAWK
1.62 paf 20393: _ACEOF
1.150 moko 20394: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20395: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20396: fi # test -n "$CONFIG_HEADERS"
20397:
20398:
20399: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20400: shift
20401: for ac_tag
20402: do
20403: case $ac_tag in
20404: :[FHLC]) ac_mode=$ac_tag; continue;;
20405: esac
20406: case $ac_mode$ac_tag in
20407: :[FHL]*:*);;
20408: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20409: :[FH]-) ac_tag=-:-;;
20410: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20411: esac
20412: ac_save_IFS=$IFS
20413: IFS=:
20414: set x $ac_tag
20415: IFS=$ac_save_IFS
20416: shift
20417: ac_file=$1
20418: shift
20419:
20420: case $ac_mode in
20421: :L) ac_source=$1;;
20422: :[FH])
20423: ac_file_inputs=
20424: for ac_f
20425: do
20426: case $ac_f in
20427: -) ac_f="$ac_tmp/stdin";;
20428: *) # Look for the file first in the build tree, then in the source tree
20429: # (if the path is not absolute). The absolute path cannot be DOS-style,
20430: # because $ac_f cannot contain `:'.
20431: test -f "$ac_f" ||
20432: case $ac_f in
20433: [\\/$]*) false;;
20434: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20435: esac ||
20436: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20437: esac
20438: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20439: as_fn_append ac_file_inputs " '$ac_f'"
20440: done
20441:
20442: # Let's still pretend it is `configure' which instantiates (i.e., don't
20443: # use $as_me), people would be surprised to read:
20444: # /* config.h. Generated by config.status. */
20445: configure_input='Generated from '`
20446: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20447: `' by configure.'
20448: if test x"$ac_file" != x-; then
20449: configure_input="$ac_file. $configure_input"
20450: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20451: $as_echo "$as_me: creating $ac_file" >&6;}
20452: fi
20453: # Neutralize special characters interpreted by sed in replacement strings.
20454: case $configure_input in #(
20455: *\&* | *\|* | *\\* )
20456: ac_sed_conf_input=`$as_echo "$configure_input" |
20457: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20458: *) ac_sed_conf_input=$configure_input;;
20459: esac
20460:
20461: case $ac_tag in
20462: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20463: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20464: esac
20465: ;;
1.1 paf 20466: esac
20467:
1.150 moko 20468: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 20469: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20470: X"$ac_file" : 'X\(//\)[^/]' \| \
20471: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 20472: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20473: $as_echo X"$ac_file" |
20474: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20475: s//\1/
20476: q
20477: }
20478: /^X\(\/\/\)[^/].*/{
20479: s//\1/
20480: q
20481: }
20482: /^X\(\/\/\)$/{
20483: s//\1/
20484: q
20485: }
20486: /^X\(\/\).*/{
20487: s//\1/
20488: q
20489: }
20490: s/.*/./; q'`
20491: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 20492: ac_builddir=.
20493:
1.150 moko 20494: case "$ac_dir" in
20495: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20496: *)
20497: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20498: # A ".." for each directory in $ac_dir_suffix.
20499: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20500: case $ac_top_builddir_sub in
20501: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20502: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20503: esac ;;
20504: esac
20505: ac_abs_top_builddir=$ac_pwd
20506: ac_abs_builddir=$ac_pwd$ac_dir_suffix
20507: # for backward compatibility:
20508: ac_top_builddir=$ac_top_build_prefix
1.62 paf 20509:
20510: case $srcdir in
1.150 moko 20511: .) # We are building in place.
1.62 paf 20512: ac_srcdir=.
1.150 moko 20513: ac_top_srcdir=$ac_top_builddir_sub
20514: ac_abs_top_srcdir=$ac_pwd ;;
20515: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 20516: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 20517: ac_top_srcdir=$srcdir
20518: ac_abs_top_srcdir=$srcdir ;;
20519: *) # Relative name.
20520: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20521: ac_top_srcdir=$ac_top_build_prefix$srcdir
20522: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 20523: esac
1.150 moko 20524: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 20525:
1.62 paf 20526:
1.150 moko 20527: case $ac_mode in
20528: :F)
20529: #
20530: # CONFIG_FILE
20531: #
1.1 paf 20532:
1.62 paf 20533: case $INSTALL in
20534: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 20535: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 20536: esac
1.150 moko 20537: ac_MKDIR_P=$MKDIR_P
20538: case $MKDIR_P in
20539: [\\/$]* | ?:[\\/]* ) ;;
20540: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20541: esac
20542: _ACEOF
1.1 paf 20543:
1.150 moko 20544: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20545: # If the template does not know about datarootdir, expand it.
20546: # FIXME: This hack should be removed a few years after 2.60.
20547: ac_datarootdir_hack=; ac_datarootdir_seen=
20548: ac_sed_dataroot='
20549: /datarootdir/ {
20550: p
20551: q
20552: }
20553: /@datadir@/p
20554: /@docdir@/p
20555: /@infodir@/p
20556: /@localedir@/p
20557: /@mandir@/p'
20558: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20559: *datarootdir*) ac_datarootdir_seen=yes;;
20560: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20561: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20562: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20563: _ACEOF
20564: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20565: ac_datarootdir_hack='
20566: s&@datadir@&$datadir&g
20567: s&@docdir@&$docdir&g
20568: s&@infodir@&$infodir&g
20569: s&@localedir@&$localedir&g
20570: s&@mandir@&$mandir&g
20571: s&\\\${datarootdir}&$datarootdir&g' ;;
20572: esac
20573: _ACEOF
1.62 paf 20574:
1.150 moko 20575: # Neutralize VPATH when `$srcdir' = `.'.
20576: # Shell code in configure.ac might set extrasub.
20577: # FIXME: do we really want to maintain this feature?
20578: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20579: ac_sed_extra="$ac_vpsub
1.62 paf 20580: $extrasub
20581: _ACEOF
1.150 moko 20582: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20583: :t
20584: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 20585: s|@configure_input@|$ac_sed_conf_input|;t t
20586: s&@top_builddir@&$ac_top_builddir_sub&;t t
20587: s&@top_build_prefix@&$ac_top_build_prefix&;t t
20588: s&@srcdir@&$ac_srcdir&;t t
20589: s&@abs_srcdir@&$ac_abs_srcdir&;t t
20590: s&@top_srcdir@&$ac_top_srcdir&;t t
20591: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20592: s&@builddir@&$ac_builddir&;t t
20593: s&@abs_builddir@&$ac_abs_builddir&;t t
20594: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20595: s&@INSTALL@&$ac_INSTALL&;t t
20596: s&@MKDIR_P@&$ac_MKDIR_P&;t t
20597: $ac_datarootdir_hack
20598: "
20599: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20600: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20601:
20602: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20603: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20604: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20605: "$ac_tmp/out"`; test -z "$ac_out"; } &&
20606: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20607: which seems to be undefined. Please make sure it is defined" >&5
20608: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20609: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 20610:
1.150 moko 20611: rm -f "$ac_tmp/stdin"
1.62 paf 20612: case $ac_file in
1.150 moko 20613: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20614: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20615: esac \
20616: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20617: ;;
20618: :H)
20619: #
20620: # CONFIG_HEADER
20621: #
1.62 paf 20622: if test x"$ac_file" != x-; then
1.150 moko 20623: {
20624: $as_echo "/* $configure_input */" \
20625: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20626: } >"$ac_tmp/config.h" \
20627: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20628: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20629: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20630: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 20631: else
1.150 moko 20632: rm -f "$ac_file"
20633: mv "$ac_tmp/config.h" "$ac_file" \
20634: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 20635: fi
20636: else
1.150 moko 20637: $as_echo "/* $configure_input */" \
20638: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20639: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 20640: fi
1.150 moko 20641: # Compute "$ac_file"'s index in $config_headers.
20642: _am_arg="$ac_file"
1.86 paf 20643: _am_stamp_count=1
20644: for _am_header in $config_headers :; do
20645: case $_am_header in
1.150 moko 20646: $_am_arg | $_am_arg:* )
1.86 paf 20647: break ;;
20648: * )
20649: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20650: esac
20651: done
1.150 moko 20652: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20653: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20654: X"$_am_arg" : 'X\(//\)[^/]' \| \
20655: X"$_am_arg" : 'X\(//\)$' \| \
20656: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20657: $as_echo X"$_am_arg" |
20658: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20659: s//\1/
20660: q
20661: }
20662: /^X\(\/\/\)[^/].*/{
20663: s//\1/
20664: q
20665: }
20666: /^X\(\/\/\)$/{
20667: s//\1/
20668: q
20669: }
20670: /^X\(\/\).*/{
20671: s//\1/
20672: q
20673: }
20674: s/.*/./; q'`/stamp-h$_am_stamp_count
20675: ;;
1.62 paf 20676:
1.150 moko 20677: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20678: $as_echo "$as_me: executing $ac_file commands" >&6;}
20679: ;;
20680: esac
1.86 paf 20681:
1.62 paf 20682:
1.150 moko 20683: case $ac_file$ac_mode in
20684: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 20685: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 20686: # are listed without --file. Let's play safe and only enable the eval
20687: # if we detect the quoting.
20688: case $CONFIG_FILES in
20689: *\'*) eval set x "$CONFIG_FILES" ;;
20690: *) set x $CONFIG_FILES ;;
20691: esac
20692: shift
20693: for mf
20694: do
20695: # Strip MF so we end up with the name of the file.
20696: mf=`echo "$mf" | sed -e 's/:.*$//'`
20697: # Check whether this is an Automake generated Makefile or not.
1.187 moko 20698: # We used to match only the files named 'Makefile.in', but
1.150 moko 20699: # some people rename them; so instead we look at the file content.
20700: # Grep'ing the first line is not enough: some people post-process
20701: # each Makefile.in and add a new line on top of each file to say so.
20702: # Grep'ing the whole file is not good either: AIX grep has a line
20703: # limit of 2048, but all sed's we know have understand at least 4000.
20704: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20705: dirpart=`$as_dirname -- "$mf" ||
1.62 paf 20706: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20707: X"$mf" : 'X\(//\)[^/]' \| \
20708: X"$mf" : 'X\(//\)$' \| \
1.150 moko 20709: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20710: $as_echo X"$mf" |
20711: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20712: s//\1/
20713: q
20714: }
20715: /^X\(\/\/\)[^/].*/{
20716: s//\1/
20717: q
20718: }
20719: /^X\(\/\/\)$/{
20720: s//\1/
20721: q
20722: }
20723: /^X\(\/\).*/{
20724: s//\1/
20725: q
20726: }
20727: s/.*/./; q'`
20728: else
20729: continue
20730: fi
20731: # Extract the definition of DEPDIR, am__include, and am__quote
1.187 moko 20732: # from the Makefile without running 'make'.
1.150 moko 20733: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20734: test -z "$DEPDIR" && continue
20735: am__include=`sed -n 's/^am__include = //p' < "$mf"`
1.187 moko 20736: test -z "$am__include" && continue
1.150 moko 20737: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20738: # Find all dependency output files, they are included files with
20739: # $(DEPDIR) in their names. We invoke sed twice because it is the
20740: # simplest approach to changing $(DEPDIR) to its actual value in the
20741: # expansion.
20742: for file in `sed -n "
20743: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.187 moko 20744: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1.150 moko 20745: # Make sure the directory exists.
20746: test -f "$dirpart/$file" && continue
20747: fdir=`$as_dirname -- "$file" ||
1.62 paf 20748: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20749: X"$file" : 'X\(//\)[^/]' \| \
20750: X"$file" : 'X\(//\)$' \| \
1.150 moko 20751: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20752: $as_echo X"$file" |
20753: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20754: s//\1/
20755: q
20756: }
20757: /^X\(\/\/\)[^/].*/{
20758: s//\1/
20759: q
20760: }
20761: /^X\(\/\/\)$/{
20762: s//\1/
20763: q
20764: }
20765: /^X\(\/\).*/{
20766: s//\1/
20767: q
20768: }
20769: s/.*/./; q'`
20770: as_dir=$dirpart/$fdir; as_fn_mkdir_p
20771: # echo "creating $dirpart/$file"
20772: echo '# dummy' > "$dirpart/$file"
1.62 paf 20773: done
20774: done
1.150 moko 20775: }
1.62 paf 20776: ;;
1.150 moko 20777: "libtool":C)
1.128 moko 20778:
20779: # See if we are running on zsh, and set the options which allow our
20780: # commands through without removal of \ escapes.
20781: if test -n "${ZSH_VERSION+set}" ; then
20782: setopt NO_GLOB_SUBST
20783: fi
20784:
20785: cfgfile="${ofile}T"
20786: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20787: $RM "$cfgfile"
20788:
20789: cat <<_LT_EOF >> "$cfgfile"
20790: #! $SHELL
20791:
20792: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20793: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20794: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20795: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20796: #
20797: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20798: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20799: # Foundation, Inc.
20800: # Written by Gordon Matzigkeit, 1996
20801: #
20802: # This file is part of GNU Libtool.
20803: #
20804: # GNU Libtool is free software; you can redistribute it and/or
20805: # modify it under the terms of the GNU General Public License as
20806: # published by the Free Software Foundation; either version 2 of
20807: # the License, or (at your option) any later version.
20808: #
20809: # As a special exception to the GNU General Public License,
20810: # if you distribute this file as part of a program or library that
20811: # is built using GNU Libtool, you may include this file under the
20812: # same distribution terms that you use for the rest of that program.
20813: #
20814: # GNU Libtool is distributed in the hope that it will be useful,
20815: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20816: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20817: # GNU General Public License for more details.
20818: #
20819: # You should have received a copy of the GNU General Public License
20820: # along with GNU Libtool; see the file COPYING. If not, a copy
20821: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20822: # obtained by writing to the Free Software Foundation, Inc.,
20823: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20824:
20825:
20826: # The names of the tagged configurations supported by this script.
20827: available_tags="CXX "
20828:
20829: # ### BEGIN LIBTOOL CONFIG
20830:
20831: # Which release of libtool.m4 was used?
20832: macro_version=$macro_version
20833: macro_revision=$macro_revision
20834:
20835: # Assembler program.
20836: AS=$lt_AS
20837:
20838: # DLL creation program.
20839: DLLTOOL=$lt_DLLTOOL
20840:
20841: # Object dumper program.
20842: OBJDUMP=$lt_OBJDUMP
20843:
1.145 moko 20844: # What type of objects to build.
20845: pic_mode=$pic_mode
20846:
1.128 moko 20847: # Whether or not to build shared libraries.
20848: build_libtool_libs=$enable_shared
20849:
1.138 moko 20850: # Whether or not to build static libraries.
20851: build_old_libs=$enable_static
20852:
1.128 moko 20853: # Whether or not to optimize for fast installation.
20854: fast_install=$enable_fast_install
20855:
20856: # Shell to use when invoking shell scripts.
20857: SHELL=$lt_SHELL
20858:
20859: # An echo program that protects backslashes.
20860: ECHO=$lt_ECHO
20861:
20862: # The PATH separator for the build system.
20863: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20864:
20865: # The host system.
20866: host_alias=$host_alias
20867: host=$host
20868: host_os=$host_os
20869:
20870: # The build system.
20871: build_alias=$build_alias
20872: build=$build
20873: build_os=$build_os
20874:
20875: # A sed program that does not truncate output.
20876: SED=$lt_SED
20877:
20878: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20879: Xsed="\$SED -e 1s/^X//"
20880:
20881: # A grep program that handles long lines.
20882: GREP=$lt_GREP
20883:
20884: # An ERE matcher.
20885: EGREP=$lt_EGREP
20886:
20887: # A literal string matcher.
20888: FGREP=$lt_FGREP
20889:
20890: # A BSD- or MS-compatible name lister.
20891: NM=$lt_NM
20892:
20893: # Whether we need soft or hard links.
20894: LN_S=$lt_LN_S
20895:
20896: # What is the maximum length of a command?
20897: max_cmd_len=$max_cmd_len
20898:
20899: # Object file suffix (normally "o").
20900: objext=$ac_objext
20901:
20902: # Executable file suffix (normally "").
20903: exeext=$exeext
20904:
20905: # whether the shell understands "unset".
20906: lt_unset=$lt_unset
20907:
20908: # turn spaces into newlines.
20909: SP2NL=$lt_lt_SP2NL
20910:
20911: # turn newlines into spaces.
20912: NL2SP=$lt_lt_NL2SP
20913:
20914: # convert \$build file names to \$host format.
20915: to_host_file_cmd=$lt_cv_to_host_file_cmd
20916:
20917: # convert \$build files to toolchain format.
20918: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20919:
20920: # Method to check whether dependent libraries are shared objects.
20921: deplibs_check_method=$lt_deplibs_check_method
20922:
20923: # Command to use when deplibs_check_method = "file_magic".
20924: file_magic_cmd=$lt_file_magic_cmd
20925:
20926: # How to find potential files when deplibs_check_method = "file_magic".
20927: file_magic_glob=$lt_file_magic_glob
20928:
20929: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20930: want_nocaseglob=$lt_want_nocaseglob
20931:
20932: # Command to associate shared and link libraries.
20933: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20934:
20935: # The archiver.
20936: AR=$lt_AR
20937:
20938: # Flags to create an archive.
20939: AR_FLAGS=$lt_AR_FLAGS
20940:
20941: # How to feed a file listing to the archiver.
20942: archiver_list_spec=$lt_archiver_list_spec
20943:
20944: # A symbol stripping program.
20945: STRIP=$lt_STRIP
20946:
20947: # Commands used to install an old-style archive.
20948: RANLIB=$lt_RANLIB
20949: old_postinstall_cmds=$lt_old_postinstall_cmds
20950: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20951:
20952: # Whether to use a lock for old archive extraction.
20953: lock_old_archive_extraction=$lock_old_archive_extraction
20954:
20955: # A C compiler.
20956: LTCC=$lt_CC
20957:
20958: # LTCC compiler flags.
20959: LTCFLAGS=$lt_CFLAGS
20960:
20961: # Take the output of nm and produce a listing of raw symbols and C names.
20962: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20963:
20964: # Transform the output of nm in a proper C declaration.
20965: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20966:
20967: # Transform the output of nm in a C name address pair.
20968: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20969:
20970: # Transform the output of nm in a C name address pair when lib prefix is needed.
20971: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20972:
20973: # Specify filename containing input files for \$NM.
20974: nm_file_list_spec=$lt_nm_file_list_spec
20975:
20976: # The root where to search for dependent libraries,and in which our libraries should be installed.
20977: lt_sysroot=$lt_sysroot
20978:
20979: # The name of the directory that contains temporary libtool files.
20980: objdir=$objdir
20981:
20982: # Used to examine libraries when file_magic_cmd begins with "file".
20983: MAGIC_CMD=$MAGIC_CMD
20984:
20985: # Must we lock files when doing compilation?
20986: need_locks=$lt_need_locks
20987:
20988: # Manifest tool.
20989: MANIFEST_TOOL=$lt_MANIFEST_TOOL
20990:
20991: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20992: DSYMUTIL=$lt_DSYMUTIL
20993:
20994: # Tool to change global to local symbols on Mac OS X.
20995: NMEDIT=$lt_NMEDIT
20996:
20997: # Tool to manipulate fat objects and archives on Mac OS X.
20998: LIPO=$lt_LIPO
20999:
21000: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21001: OTOOL=$lt_OTOOL
21002:
21003: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21004: OTOOL64=$lt_OTOOL64
21005:
21006: # Old archive suffix (normally "a").
21007: libext=$libext
21008:
21009: # Shared library suffix (normally ".so").
21010: shrext_cmds=$lt_shrext_cmds
21011:
21012: # The commands to extract the exported symbol list from a shared archive.
21013: extract_expsyms_cmds=$lt_extract_expsyms_cmds
21014:
21015: # Variables whose values should be saved in libtool wrapper scripts and
21016: # restored at link time.
21017: variables_saved_for_relink=$lt_variables_saved_for_relink
21018:
21019: # Do we need the "lib" prefix for modules?
21020: need_lib_prefix=$need_lib_prefix
21021:
21022: # Do we need a version for libraries?
21023: need_version=$need_version
21024:
21025: # Library versioning type.
21026: version_type=$version_type
21027:
21028: # Shared library runtime path variable.
21029: runpath_var=$runpath_var
21030:
21031: # Shared library path variable.
21032: shlibpath_var=$shlibpath_var
21033:
21034: # Is shlibpath searched before the hard-coded library search path?
21035: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21036:
21037: # Format of library name prefix.
21038: libname_spec=$lt_libname_spec
21039:
21040: # List of archive names. First name is the real one, the rest are links.
21041: # The last name is the one that the linker finds with -lNAME
21042: library_names_spec=$lt_library_names_spec
21043:
21044: # The coded name of the library, if different from the real name.
21045: soname_spec=$lt_soname_spec
21046:
21047: # Permission mode override for installation of shared libraries.
21048: install_override_mode=$lt_install_override_mode
21049:
21050: # Command to use after installation of a shared archive.
21051: postinstall_cmds=$lt_postinstall_cmds
21052:
21053: # Command to use after uninstallation of a shared archive.
21054: postuninstall_cmds=$lt_postuninstall_cmds
21055:
21056: # Commands used to finish a libtool library installation in a directory.
21057: finish_cmds=$lt_finish_cmds
21058:
21059: # As "finish_cmds", except a single script fragment to be evaled but
21060: # not shown.
21061: finish_eval=$lt_finish_eval
21062:
21063: # Whether we should hardcode library paths into libraries.
21064: hardcode_into_libs=$hardcode_into_libs
21065:
21066: # Compile-time system search path for libraries.
21067: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21068:
21069: # Run-time system search path for libraries.
21070: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21071:
21072: # Whether dlopen is supported.
21073: dlopen_support=$enable_dlopen
21074:
21075: # Whether dlopen of programs is supported.
21076: dlopen_self=$enable_dlopen_self
21077:
21078: # Whether dlopen of statically linked programs is supported.
21079: dlopen_self_static=$enable_dlopen_self_static
21080:
21081: # Commands to strip libraries.
21082: old_striplib=$lt_old_striplib
21083: striplib=$lt_striplib
21084:
21085:
21086: # The linker used to build libraries.
21087: LD=$lt_LD
21088:
21089: # How to create reloadable object files.
21090: reload_flag=$lt_reload_flag
21091: reload_cmds=$lt_reload_cmds
21092:
21093: # Commands used to build an old-style archive.
21094: old_archive_cmds=$lt_old_archive_cmds
21095:
21096: # A language specific compiler.
21097: CC=$lt_compiler
21098:
21099: # Is the compiler the GNU compiler?
21100: with_gcc=$GCC
21101:
21102: # Compiler flag to turn off builtin functions.
21103: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21104:
21105: # Additional compiler flags for building library objects.
21106: pic_flag=$lt_lt_prog_compiler_pic
21107:
21108: # How to pass a linker flag through the compiler.
21109: wl=$lt_lt_prog_compiler_wl
21110:
21111: # Compiler flag to prevent dynamic linking.
21112: link_static_flag=$lt_lt_prog_compiler_static
21113:
21114: # Does compiler simultaneously support -c and -o options?
21115: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21116:
21117: # Whether or not to add -lc for building shared libraries.
21118: build_libtool_need_lc=$archive_cmds_need_lc
21119:
21120: # Whether or not to disallow shared libs when runtime libs are static.
21121: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21122:
21123: # Compiler flag to allow reflexive dlopens.
21124: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21125:
21126: # Compiler flag to generate shared objects directly from archives.
21127: whole_archive_flag_spec=$lt_whole_archive_flag_spec
21128:
21129: # Whether the compiler copes with passing no objects directly.
21130: compiler_needs_object=$lt_compiler_needs_object
21131:
21132: # Create an old-style archive from a shared archive.
21133: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21134:
21135: # Create a temporary old-style archive to link instead of a shared archive.
21136: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21137:
21138: # Commands used to build a shared archive.
21139: archive_cmds=$lt_archive_cmds
21140: archive_expsym_cmds=$lt_archive_expsym_cmds
21141:
21142: # Commands used to build a loadable module if different from building
21143: # a shared archive.
21144: module_cmds=$lt_module_cmds
21145: module_expsym_cmds=$lt_module_expsym_cmds
21146:
21147: # Whether we are building with GNU ld or not.
21148: with_gnu_ld=$lt_with_gnu_ld
21149:
21150: # Flag that allows shared libraries with undefined symbols to be built.
21151: allow_undefined_flag=$lt_allow_undefined_flag
21152:
21153: # Flag that enforces no undefined symbols.
21154: no_undefined_flag=$lt_no_undefined_flag
21155:
21156: # Flag to hardcode \$libdir into a binary during linking.
21157: # This must work even if \$libdir does not exist
21158: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21159:
21160: # Whether we need a single "-rpath" flag with a separated argument.
21161: hardcode_libdir_separator=$lt_hardcode_libdir_separator
21162:
21163: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21164: # DIR into the resulting binary.
21165: hardcode_direct=$hardcode_direct
21166:
21167: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21168: # DIR into the resulting binary and the resulting library dependency is
21169: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21170: # library is relocated.
21171: hardcode_direct_absolute=$hardcode_direct_absolute
21172:
21173: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21174: # into the resulting binary.
21175: hardcode_minus_L=$hardcode_minus_L
21176:
21177: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21178: # into the resulting binary.
21179: hardcode_shlibpath_var=$hardcode_shlibpath_var
21180:
21181: # Set to "yes" if building a shared library automatically hardcodes DIR
21182: # into the library and all subsequent libraries and executables linked
21183: # against it.
21184: hardcode_automatic=$hardcode_automatic
21185:
21186: # Set to yes if linker adds runtime paths of dependent libraries
21187: # to runtime path list.
21188: inherit_rpath=$inherit_rpath
21189:
21190: # Whether libtool must link a program against all its dependency libraries.
21191: link_all_deplibs=$link_all_deplibs
21192:
21193: # Set to "yes" if exported symbols are required.
21194: always_export_symbols=$always_export_symbols
21195:
21196: # The commands to list exported symbols.
21197: export_symbols_cmds=$lt_export_symbols_cmds
21198:
21199: # Symbols that should not be listed in the preloaded symbols.
21200: exclude_expsyms=$lt_exclude_expsyms
21201:
21202: # Symbols that must always be exported.
21203: include_expsyms=$lt_include_expsyms
21204:
21205: # Commands necessary for linking programs (against libraries) with templates.
21206: prelink_cmds=$lt_prelink_cmds
21207:
21208: # Commands necessary for finishing linking programs.
21209: postlink_cmds=$lt_postlink_cmds
21210:
21211: # Specify filename containing input files.
21212: file_list_spec=$lt_file_list_spec
21213:
21214: # How to hardcode a shared library path into an executable.
21215: hardcode_action=$hardcode_action
21216:
21217: # The directories searched by this compiler when creating a shared library.
21218: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21219:
21220: # Dependencies to place before and after the objects being linked to
21221: # create a shared library.
21222: predep_objects=$lt_predep_objects
21223: postdep_objects=$lt_postdep_objects
21224: predeps=$lt_predeps
21225: postdeps=$lt_postdeps
21226:
21227: # The library search path used internally by the compiler when linking
21228: # a shared library.
21229: compiler_lib_search_path=$lt_compiler_lib_search_path
21230:
21231: # ### END LIBTOOL CONFIG
21232:
21233: _LT_EOF
21234:
21235: case $host_os in
21236: aix3*)
21237: cat <<\_LT_EOF >> "$cfgfile"
21238: # AIX sometimes has problems with the GCC collect2 program. For some
21239: # reason, if we set the COLLECT_NAMES environment variable, the problems
21240: # vanish in a puff of smoke.
21241: if test "X${COLLECT_NAMES+set}" != Xset; then
21242: COLLECT_NAMES=
21243: export COLLECT_NAMES
21244: fi
21245: _LT_EOF
21246: ;;
21247: esac
21248:
21249:
21250: ltmain="$ac_aux_dir/ltmain.sh"
21251:
21252:
21253: # We use sed instead of cat because bash on DJGPP gets confused if
21254: # if finds mixed CR/LF and LF-only lines. Since sed operates in
21255: # text mode, it properly converts lines to CR/LF. This bash problem
21256: # is reportedly fixed, but why not run on old versions too?
21257: sed '$q' "$ltmain" >> "$cfgfile" \
21258: || (rm -f "$cfgfile"; exit 1)
21259:
21260: if test x"$xsi_shell" = xyes; then
21261: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21262: func_dirname ()\
21263: {\
21264: \ case ${1} in\
21265: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21266: \ * ) func_dirname_result="${3}" ;;\
21267: \ esac\
21268: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21269: && mv -f "$cfgfile.tmp" "$cfgfile" \
21270: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21271: test 0 -eq $? || _lt_function_replace_fail=:
21272:
21273:
21274: sed -e '/^func_basename ()$/,/^} # func_basename /c\
21275: func_basename ()\
21276: {\
21277: \ func_basename_result="${1##*/}"\
21278: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21279: && mv -f "$cfgfile.tmp" "$cfgfile" \
21280: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21281: test 0 -eq $? || _lt_function_replace_fail=:
21282:
21283:
21284: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21285: func_dirname_and_basename ()\
21286: {\
21287: \ case ${1} in\
21288: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21289: \ * ) func_dirname_result="${3}" ;;\
21290: \ esac\
21291: \ func_basename_result="${1##*/}"\
21292: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21293: && mv -f "$cfgfile.tmp" "$cfgfile" \
21294: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21295: test 0 -eq $? || _lt_function_replace_fail=:
21296:
21297:
21298: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21299: func_stripname ()\
21300: {\
21301: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21302: \ # positional parameters, so assign one to ordinary parameter first.\
21303: \ func_stripname_result=${3}\
21304: \ func_stripname_result=${func_stripname_result#"${1}"}\
21305: \ func_stripname_result=${func_stripname_result%"${2}"}\
21306: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21307: && mv -f "$cfgfile.tmp" "$cfgfile" \
21308: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21309: test 0 -eq $? || _lt_function_replace_fail=:
21310:
21311:
21312: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21313: func_split_long_opt ()\
21314: {\
21315: \ func_split_long_opt_name=${1%%=*}\
21316: \ func_split_long_opt_arg=${1#*=}\
21317: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21318: && mv -f "$cfgfile.tmp" "$cfgfile" \
21319: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21320: test 0 -eq $? || _lt_function_replace_fail=:
21321:
21322:
21323: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21324: func_split_short_opt ()\
21325: {\
21326: \ func_split_short_opt_arg=${1#??}\
21327: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21328: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21329: && mv -f "$cfgfile.tmp" "$cfgfile" \
21330: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21331: test 0 -eq $? || _lt_function_replace_fail=:
21332:
21333:
21334: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21335: func_lo2o ()\
21336: {\
21337: \ case ${1} in\
21338: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21339: \ *) func_lo2o_result=${1} ;;\
21340: \ esac\
21341: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21342: && mv -f "$cfgfile.tmp" "$cfgfile" \
21343: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21344: test 0 -eq $? || _lt_function_replace_fail=:
21345:
21346:
21347: sed -e '/^func_xform ()$/,/^} # func_xform /c\
21348: func_xform ()\
21349: {\
21350: func_xform_result=${1%.*}.lo\
21351: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21352: && mv -f "$cfgfile.tmp" "$cfgfile" \
21353: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21354: test 0 -eq $? || _lt_function_replace_fail=:
21355:
21356:
21357: sed -e '/^func_arith ()$/,/^} # func_arith /c\
21358: func_arith ()\
21359: {\
21360: func_arith_result=$(( $* ))\
21361: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21362: && mv -f "$cfgfile.tmp" "$cfgfile" \
21363: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21364: test 0 -eq $? || _lt_function_replace_fail=:
21365:
21366:
21367: sed -e '/^func_len ()$/,/^} # func_len /c\
21368: func_len ()\
21369: {\
21370: func_len_result=${#1}\
21371: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21372: && mv -f "$cfgfile.tmp" "$cfgfile" \
21373: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21374: test 0 -eq $? || _lt_function_replace_fail=:
21375:
21376: fi
21377:
21378: if test x"$lt_shell_append" = xyes; then
21379: sed -e '/^func_append ()$/,/^} # func_append /c\
21380: func_append ()\
21381: {\
21382: eval "${1}+=\\${2}"\
21383: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21384: && mv -f "$cfgfile.tmp" "$cfgfile" \
21385: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21386: test 0 -eq $? || _lt_function_replace_fail=:
21387:
21388:
21389: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21390: func_append_quoted ()\
21391: {\
21392: \ func_quote_for_eval "${2}"\
21393: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21394: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21395: && mv -f "$cfgfile.tmp" "$cfgfile" \
21396: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21397: test 0 -eq $? || _lt_function_replace_fail=:
21398:
21399:
21400: # Save a `func_append' function call where possible by direct use of '+='
21401: sed -e 's%func_append \([a-zA-Z_]\{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: else
21406: # Save a `func_append' function call even when '+=' is not available
21407: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21408: && mv -f "$cfgfile.tmp" "$cfgfile" \
21409: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21410: test 0 -eq $? || _lt_function_replace_fail=:
21411: fi
21412:
21413: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 21414: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21415: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 21416: fi
21417:
21418:
21419: mv -f "$cfgfile" "$ofile" ||
21420: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21421: chmod +x "$ofile"
21422:
21423:
21424: cat <<_LT_EOF >> "$ofile"
21425:
21426: # ### BEGIN LIBTOOL TAG CONFIG: CXX
21427:
21428: # The linker used to build libraries.
21429: LD=$lt_LD_CXX
21430:
21431: # How to create reloadable object files.
21432: reload_flag=$lt_reload_flag_CXX
21433: reload_cmds=$lt_reload_cmds_CXX
21434:
21435: # Commands used to build an old-style archive.
21436: old_archive_cmds=$lt_old_archive_cmds_CXX
21437:
21438: # A language specific compiler.
21439: CC=$lt_compiler_CXX
21440:
21441: # Is the compiler the GNU compiler?
21442: with_gcc=$GCC_CXX
21443:
21444: # Compiler flag to turn off builtin functions.
21445: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21446:
21447: # Additional compiler flags for building library objects.
21448: pic_flag=$lt_lt_prog_compiler_pic_CXX
21449:
21450: # How to pass a linker flag through the compiler.
21451: wl=$lt_lt_prog_compiler_wl_CXX
21452:
21453: # Compiler flag to prevent dynamic linking.
21454: link_static_flag=$lt_lt_prog_compiler_static_CXX
21455:
21456: # Does compiler simultaneously support -c and -o options?
21457: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21458:
21459: # Whether or not to add -lc for building shared libraries.
21460: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21461:
21462: # Whether or not to disallow shared libs when runtime libs are static.
21463: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21464:
21465: # Compiler flag to allow reflexive dlopens.
21466: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21467:
21468: # Compiler flag to generate shared objects directly from archives.
21469: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21470:
21471: # Whether the compiler copes with passing no objects directly.
21472: compiler_needs_object=$lt_compiler_needs_object_CXX
21473:
21474: # Create an old-style archive from a shared archive.
21475: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21476:
21477: # Create a temporary old-style archive to link instead of a shared archive.
21478: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21479:
21480: # Commands used to build a shared archive.
21481: archive_cmds=$lt_archive_cmds_CXX
21482: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21483:
21484: # Commands used to build a loadable module if different from building
21485: # a shared archive.
21486: module_cmds=$lt_module_cmds_CXX
21487: module_expsym_cmds=$lt_module_expsym_cmds_CXX
21488:
21489: # Whether we are building with GNU ld or not.
21490: with_gnu_ld=$lt_with_gnu_ld_CXX
21491:
21492: # Flag that allows shared libraries with undefined symbols to be built.
21493: allow_undefined_flag=$lt_allow_undefined_flag_CXX
21494:
21495: # Flag that enforces no undefined symbols.
21496: no_undefined_flag=$lt_no_undefined_flag_CXX
21497:
21498: # Flag to hardcode \$libdir into a binary during linking.
21499: # This must work even if \$libdir does not exist
21500: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21501:
21502: # Whether we need a single "-rpath" flag with a separated argument.
21503: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21504:
21505: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21506: # DIR into the resulting binary.
21507: hardcode_direct=$hardcode_direct_CXX
21508:
21509: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21510: # DIR into the resulting binary and the resulting library dependency is
21511: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21512: # library is relocated.
21513: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21514:
21515: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21516: # into the resulting binary.
21517: hardcode_minus_L=$hardcode_minus_L_CXX
21518:
21519: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21520: # into the resulting binary.
21521: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21522:
21523: # Set to "yes" if building a shared library automatically hardcodes DIR
21524: # into the library and all subsequent libraries and executables linked
21525: # against it.
21526: hardcode_automatic=$hardcode_automatic_CXX
21527:
21528: # Set to yes if linker adds runtime paths of dependent libraries
21529: # to runtime path list.
21530: inherit_rpath=$inherit_rpath_CXX
21531:
21532: # Whether libtool must link a program against all its dependency libraries.
21533: link_all_deplibs=$link_all_deplibs_CXX
21534:
21535: # Set to "yes" if exported symbols are required.
21536: always_export_symbols=$always_export_symbols_CXX
21537:
21538: # The commands to list exported symbols.
21539: export_symbols_cmds=$lt_export_symbols_cmds_CXX
21540:
21541: # Symbols that should not be listed in the preloaded symbols.
21542: exclude_expsyms=$lt_exclude_expsyms_CXX
21543:
21544: # Symbols that must always be exported.
21545: include_expsyms=$lt_include_expsyms_CXX
21546:
21547: # Commands necessary for linking programs (against libraries) with templates.
21548: prelink_cmds=$lt_prelink_cmds_CXX
21549:
21550: # Commands necessary for finishing linking programs.
21551: postlink_cmds=$lt_postlink_cmds_CXX
21552:
21553: # Specify filename containing input files.
21554: file_list_spec=$lt_file_list_spec_CXX
21555:
21556: # How to hardcode a shared library path into an executable.
21557: hardcode_action=$hardcode_action_CXX
21558:
21559: # The directories searched by this compiler when creating a shared library.
21560: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21561:
21562: # Dependencies to place before and after the objects being linked to
21563: # create a shared library.
21564: predep_objects=$lt_predep_objects_CXX
21565: postdep_objects=$lt_postdep_objects_CXX
21566: predeps=$lt_predeps_CXX
21567: postdeps=$lt_postdeps_CXX
21568:
21569: # The library search path used internally by the compiler when linking
21570: # a shared library.
21571: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21572:
21573: # ### END LIBTOOL TAG CONFIG: CXX
21574: _LT_EOF
21575:
21576: ;;
1.150 moko 21577:
1.62 paf 21578: esac
1.150 moko 21579: done # for ac_tag
1.62 paf 21580:
21581:
1.150 moko 21582: as_fn_exit 0
1.62 paf 21583: _ACEOF
21584: ac_clean_files=$ac_clean_files_save
21585:
1.150 moko 21586: test $ac_write_fail = 0 ||
21587: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21588:
1.1 paf 21589:
1.62 paf 21590: # configure is writing to config.log, and then calls config.status.
21591: # config.status does its own redirection, appending to config.log.
21592: # Unfortunately, on DOS this fails, as config.log is still kept open
21593: # by configure, so config.status won't be able to write to it; its
21594: # output is simply discarded. So we exec the FD to /dev/null,
21595: # effectively closing config.log, so it can be properly (re)opened and
21596: # appended to by config.status. When coming back to configure, we
21597: # need to make the FD available again.
21598: if test "$no_create" != yes; then
21599: ac_cs_success=:
21600: ac_config_status_args=
21601: test "$silent" = yes &&
21602: ac_config_status_args="$ac_config_status_args --quiet"
21603: exec 5>/dev/null
21604: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21605: exec 5>>config.log
21606: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21607: # would make configure fail if this is the last instruction.
1.150 moko 21608: $ac_cs_success || as_fn_exit 1
1.62 paf 21609: fi
21610:
21611: #
21612: # CONFIG_SUBDIRS section.
21613: #
1.1 paf 21614: if test "$no_recursion" != yes; then
21615:
1.150 moko 21616: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21617: # so they do not pile up.
1.1 paf 21618: ac_sub_configure_args=
21619: ac_prev=
1.150 moko 21620: eval "set x $ac_configure_args"
21621: shift
21622: for ac_arg
21623: do
1.1 paf 21624: if test -n "$ac_prev"; then
21625: ac_prev=
21626: continue
21627: fi
1.62 paf 21628: case $ac_arg in
1.1 paf 21629: -cache-file | --cache-file | --cache-fil | --cache-fi \
21630: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21631: ac_prev=cache_file ;;
21632: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 21633: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21634: | --c=*)
21635: ;;
21636: --config-cache | -C)
1.1 paf 21637: ;;
21638: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21639: ac_prev=srcdir ;;
21640: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21641: ;;
1.62 paf 21642: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21643: ac_prev=prefix ;;
21644: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21645: ;;
1.150 moko 21646: --disable-option-checking)
21647: ;;
21648: *)
21649: case $ac_arg in
21650: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21651: esac
21652: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 21653: esac
21654: done
21655:
1.62 paf 21656: # Always prepend --prefix to ensure using the same prefix
21657: # in subdir configurations.
1.150 moko 21658: ac_arg="--prefix=$prefix"
21659: case $ac_arg in
21660: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21661: esac
21662: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21663:
21664: # Pass --silent
21665: if test "$silent" = yes; then
21666: ac_sub_configure_args="--silent $ac_sub_configure_args"
21667: fi
21668:
21669: # Always prepend --disable-option-checking to silence warnings, since
21670: # different subdirs can have different --enable and --with options.
21671: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 21672:
21673: ac_popdir=`pwd`
21674: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21675:
21676: # Do not complain, so a configure script can configure whichever
21677: # parts of a large source tree are present.
1.150 moko 21678: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21679:
1.150 moko 21680: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21681: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21682: $as_echo "$ac_msg" >&6
21683: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21684: ac_builddir=.
21685:
1.150 moko 21686: case "$ac_dir" in
21687: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21688: *)
21689: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21690: # A ".." for each directory in $ac_dir_suffix.
21691: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21692: case $ac_top_builddir_sub in
21693: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21694: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21695: esac ;;
21696: esac
21697: ac_abs_top_builddir=$ac_pwd
21698: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21699: # for backward compatibility:
21700: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21701:
21702: case $srcdir in
1.150 moko 21703: .) # We are building in place.
1.62 paf 21704: ac_srcdir=.
1.150 moko 21705: ac_top_srcdir=$ac_top_builddir_sub
21706: ac_abs_top_srcdir=$ac_pwd ;;
21707: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21708: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21709: ac_top_srcdir=$srcdir
21710: ac_abs_top_srcdir=$srcdir ;;
21711: *) # Relative name.
21712: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21713: ac_top_srcdir=$ac_top_build_prefix$srcdir
21714: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21715: esac
1.150 moko 21716: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21717:
21718:
1.150 moko 21719: cd "$ac_dir"
1.1 paf 21720:
21721: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21722: if test -f "$ac_srcdir/configure.gnu"; then
21723: ac_sub_configure=$ac_srcdir/configure.gnu
21724: elif test -f "$ac_srcdir/configure"; then
21725: ac_sub_configure=$ac_srcdir/configure
21726: elif test -f "$ac_srcdir/configure.in"; then
21727: # This should be Cygnus configure.
21728: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21729: else
1.150 moko 21730: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21731: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21732: ac_sub_configure=
21733: fi
21734:
21735: # The recursion is here.
21736: if test -n "$ac_sub_configure"; then
21737: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21738: case $cache_file in
21739: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21740: *) # Relative name.
21741: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21742: esac
21743:
1.150 moko 21744: { $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
21745: $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 21746: # The eval makes quoting arguments work.
1.150 moko 21747: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21748: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21749: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21750: fi
21751:
1.150 moko 21752: cd "$ac_popdir"
1.1 paf 21753: done
21754: fi
1.150 moko 21755: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21756: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21757: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21758: fi
1.1 paf 21759:
E-mail: