Annotation of parser3/configure, revision 1.188
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
779: localstatedir
780: sharedstatedir
781: sysconfdir
782: datadir
783: datarootdir
784: libexecdir
785: sbindir
786: bindir
787: program_transform_name
788: prefix
789: exec_prefix
790: PACKAGE_URL
791: PACKAGE_BUGREPORT
792: PACKAGE_STRING
793: PACKAGE_VERSION
794: PACKAGE_TARNAME
795: PACKAGE_NAME
796: PATH_SEPARATOR
797: SHELL'
1.62 paf 798: ac_subst_files=''
1.150 moko 799: ac_user_opts='
800: enable_option_checking
1.187 moko 801: enable_silent_rules
1.150 moko 802: enable_dependency_tracking
803: with_build_warnings
1.182 moko 804: with_coverage
805: with_profiler
1.150 moko 806: with_assertions
807: with_sjlj_exceptions
808: enable_safe_mode
809: enable_execs
810: enable_stringstream
811: with_gc
812: with_pcre
813: with_xml
1.154 moko 814: with_mailreceive
1.150 moko 815: with_sendmail
816: with_apache
817: with_pic
818: enable_shared
819: enable_static
820: enable_fast_install
821: with_gnu_ld
822: with_sysroot
823: enable_libtool_lock
824: with_included_ltdl
825: with_ltdl_include
826: with_ltdl_lib
827: enable_ltdl_install
1.171 moko 828: enable_largefile
1.150 moko 829: '
830: ac_precious_vars='build_alias
831: host_alias
832: target_alias
833: YACC
834: YFLAGS
835: CXX
836: CXXFLAGS
837: LDFLAGS
838: LIBS
839: CPPFLAGS
840: CCC
841: CC
842: CFLAGS
843: CPP
844: CXXCPP'
845: ac_subdirs_all='src/lib/ltdl'
1.1 paf 846:
847: # Initialize some variables set by options.
1.62 paf 848: ac_init_help=
849: ac_init_version=false
1.150 moko 850: ac_unrecognized_opts=
851: ac_unrecognized_sep=
1.1 paf 852: # The variables have the same names as the options, with
853: # dashes changed to underlines.
1.62 paf 854: cache_file=/dev/null
1.1 paf 855: exec_prefix=NONE
856: no_create=
857: no_recursion=
858: prefix=NONE
859: program_prefix=NONE
860: program_suffix=NONE
861: program_transform_name=s,x,x,
862: silent=
863: site=
864: srcdir=
865: verbose=
866: x_includes=NONE
867: x_libraries=NONE
1.62 paf 868:
869: # Installation directory options.
870: # These are left unexpanded so users can "make install exec_prefix=/foo"
871: # and all the variables that are supposed to be based on exec_prefix
872: # by default will actually change.
873: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 874: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 875: bindir='${exec_prefix}/bin'
876: sbindir='${exec_prefix}/sbin'
877: libexecdir='${exec_prefix}/libexec'
1.150 moko 878: datarootdir='${prefix}/share'
879: datadir='${datarootdir}'
1.1 paf 880: sysconfdir='${prefix}/etc'
881: sharedstatedir='${prefix}/com'
882: localstatedir='${prefix}/var'
883: includedir='${prefix}/include'
884: oldincludedir='/usr/include'
1.150 moko 885: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886: infodir='${datarootdir}/info'
887: htmldir='${docdir}'
888: dvidir='${docdir}'
889: pdfdir='${docdir}'
890: psdir='${docdir}'
891: libdir='${exec_prefix}/lib'
892: localedir='${datarootdir}/locale'
893: mandir='${datarootdir}/man'
1.1 paf 894:
895: ac_prev=
1.150 moko 896: ac_dashdash=
1.1 paf 897: for ac_option
898: do
899: # If the previous option needs an argument, assign it.
900: if test -n "$ac_prev"; then
1.150 moko 901: eval $ac_prev=\$ac_option
1.1 paf 902: ac_prev=
903: continue
904: fi
905:
1.150 moko 906: case $ac_option in
907: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908: *=) ac_optarg= ;;
909: *) ac_optarg=yes ;;
910: esac
1.1 paf 911:
912: # Accept the important Cygnus configure options, so we can diagnose typos.
913:
1.150 moko 914: case $ac_dashdash$ac_option in
915: --)
916: ac_dashdash=yes ;;
1.1 paf 917:
918: -bindir | --bindir | --bindi | --bind | --bin | --bi)
919: ac_prev=bindir ;;
920: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 921: bindir=$ac_optarg ;;
1.1 paf 922:
923: -build | --build | --buil | --bui | --bu)
1.62 paf 924: ac_prev=build_alias ;;
1.1 paf 925: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 926: build_alias=$ac_optarg ;;
1.1 paf 927:
928: -cache-file | --cache-file | --cache-fil | --cache-fi \
929: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930: ac_prev=cache_file ;;
931: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 933: cache_file=$ac_optarg ;;
934:
935: --config-cache | -C)
936: cache_file=config.cache ;;
1.1 paf 937:
1.150 moko 938: -datadir | --datadir | --datadi | --datad)
1.1 paf 939: ac_prev=datadir ;;
1.150 moko 940: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 941: datadir=$ac_optarg ;;
1.1 paf 942:
1.150 moko 943: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944: | --dataroo | --dataro | --datar)
945: ac_prev=datarootdir ;;
946: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948: datarootdir=$ac_optarg ;;
949:
1.1 paf 950: -disable-* | --disable-*)
1.150 moko 951: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 952: # Reject names that are not valid shell variable names.
1.150 moko 953: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954: as_fn_error $? "invalid feature name: $ac_useropt"
955: ac_useropt_orig=$ac_useropt
956: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957: case $ac_user_opts in
958: *"
959: "enable_$ac_useropt"
960: "*) ;;
961: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962: ac_unrecognized_sep=', ';;
963: esac
964: eval enable_$ac_useropt=no ;;
965:
966: -docdir | --docdir | --docdi | --doc | --do)
967: ac_prev=docdir ;;
968: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969: docdir=$ac_optarg ;;
970:
971: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972: ac_prev=dvidir ;;
973: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974: dvidir=$ac_optarg ;;
1.1 paf 975:
976: -enable-* | --enable-*)
1.150 moko 977: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 978: # Reject names that are not valid shell variable names.
1.150 moko 979: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980: as_fn_error $? "invalid feature name: $ac_useropt"
981: ac_useropt_orig=$ac_useropt
982: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983: case $ac_user_opts in
984: *"
985: "enable_$ac_useropt"
986: "*) ;;
987: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988: ac_unrecognized_sep=', ';;
1.1 paf 989: esac
1.150 moko 990: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 991:
992: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994: | --exec | --exe | --ex)
995: ac_prev=exec_prefix ;;
996: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998: | --exec=* | --exe=* | --ex=*)
1.62 paf 999: exec_prefix=$ac_optarg ;;
1.1 paf 1000:
1001: -gas | --gas | --ga | --g)
1002: # Obsolete; use --with-gas.
1003: with_gas=yes ;;
1004:
1.62 paf 1005: -help | --help | --hel | --he | -h)
1006: ac_init_help=long ;;
1007: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008: ac_init_help=recursive ;;
1009: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010: ac_init_help=short ;;
1.1 paf 1011:
1012: -host | --host | --hos | --ho)
1.62 paf 1013: ac_prev=host_alias ;;
1.1 paf 1014: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1015: host_alias=$ac_optarg ;;
1.1 paf 1016:
1.150 moko 1017: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018: ac_prev=htmldir ;;
1019: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020: | --ht=*)
1021: htmldir=$ac_optarg ;;
1022:
1.1 paf 1023: -includedir | --includedir | --includedi | --included | --include \
1024: | --includ | --inclu | --incl | --inc)
1025: ac_prev=includedir ;;
1026: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1028: includedir=$ac_optarg ;;
1.1 paf 1029:
1030: -infodir | --infodir | --infodi | --infod | --info | --inf)
1031: ac_prev=infodir ;;
1032: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1033: infodir=$ac_optarg ;;
1.1 paf 1034:
1035: -libdir | --libdir | --libdi | --libd)
1036: ac_prev=libdir ;;
1037: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1038: libdir=$ac_optarg ;;
1.1 paf 1039:
1040: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041: | --libexe | --libex | --libe)
1042: ac_prev=libexecdir ;;
1043: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1045: libexecdir=$ac_optarg ;;
1.1 paf 1046:
1.150 moko 1047: -localedir | --localedir | --localedi | --localed | --locale)
1048: ac_prev=localedir ;;
1049: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050: localedir=$ac_optarg ;;
1051:
1.1 paf 1052: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1053: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1054: ac_prev=localstatedir ;;
1055: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1056: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1057: localstatedir=$ac_optarg ;;
1.1 paf 1058:
1059: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060: ac_prev=mandir ;;
1061: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1062: mandir=$ac_optarg ;;
1.1 paf 1063:
1064: -nfp | --nfp | --nf)
1065: # Obsolete; use --without-fp.
1066: with_fp=no ;;
1067:
1068: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1069: | --no-cr | --no-c | -n)
1.1 paf 1070: no_create=yes ;;
1071:
1072: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074: no_recursion=yes ;;
1075:
1076: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078: | --oldin | --oldi | --old | --ol | --o)
1079: ac_prev=oldincludedir ;;
1080: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1083: oldincludedir=$ac_optarg ;;
1.1 paf 1084:
1085: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086: ac_prev=prefix ;;
1087: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1088: prefix=$ac_optarg ;;
1.1 paf 1089:
1090: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091: | --program-pre | --program-pr | --program-p)
1092: ac_prev=program_prefix ;;
1093: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1095: program_prefix=$ac_optarg ;;
1.1 paf 1096:
1097: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098: | --program-suf | --program-su | --program-s)
1099: ac_prev=program_suffix ;;
1100: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1102: program_suffix=$ac_optarg ;;
1.1 paf 1103:
1104: -program-transform-name | --program-transform-name \
1105: | --program-transform-nam | --program-transform-na \
1106: | --program-transform-n | --program-transform- \
1107: | --program-transform | --program-transfor \
1108: | --program-transfo | --program-transf \
1109: | --program-trans | --program-tran \
1110: | --progr-tra | --program-tr | --program-t)
1111: ac_prev=program_transform_name ;;
1112: -program-transform-name=* | --program-transform-name=* \
1113: | --program-transform-nam=* | --program-transform-na=* \
1114: | --program-transform-n=* | --program-transform-=* \
1115: | --program-transform=* | --program-transfor=* \
1116: | --program-transfo=* | --program-transf=* \
1117: | --program-trans=* | --program-tran=* \
1118: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1119: program_transform_name=$ac_optarg ;;
1.1 paf 1120:
1.150 moko 1121: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122: ac_prev=pdfdir ;;
1123: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124: pdfdir=$ac_optarg ;;
1125:
1126: -psdir | --psdir | --psdi | --psd | --ps)
1127: ac_prev=psdir ;;
1128: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129: psdir=$ac_optarg ;;
1130:
1.1 paf 1131: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132: | -silent | --silent | --silen | --sile | --sil)
1133: silent=yes ;;
1134:
1135: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136: ac_prev=sbindir ;;
1137: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138: | --sbi=* | --sb=*)
1.62 paf 1139: sbindir=$ac_optarg ;;
1.1 paf 1140:
1141: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143: | --sharedst | --shareds | --shared | --share | --shar \
1144: | --sha | --sh)
1145: ac_prev=sharedstatedir ;;
1146: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149: | --sha=* | --sh=*)
1.62 paf 1150: sharedstatedir=$ac_optarg ;;
1.1 paf 1151:
1152: -site | --site | --sit)
1153: ac_prev=site ;;
1154: -site=* | --site=* | --sit=*)
1.62 paf 1155: site=$ac_optarg ;;
1.1 paf 1156:
1157: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158: ac_prev=srcdir ;;
1159: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1160: srcdir=$ac_optarg ;;
1.1 paf 1161:
1162: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163: | --syscon | --sysco | --sysc | --sys | --sy)
1164: ac_prev=sysconfdir ;;
1165: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1167: sysconfdir=$ac_optarg ;;
1.1 paf 1168:
1169: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1170: ac_prev=target_alias ;;
1.1 paf 1171: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1172: target_alias=$ac_optarg ;;
1.1 paf 1173:
1174: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175: verbose=yes ;;
1176:
1.62 paf 1177: -version | --version | --versio | --versi | --vers | -V)
1178: ac_init_version=: ;;
1.1 paf 1179:
1180: -with-* | --with-*)
1.150 moko 1181: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1182: # Reject names that are not valid shell variable names.
1.150 moko 1183: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184: as_fn_error $? "invalid package name: $ac_useropt"
1185: ac_useropt_orig=$ac_useropt
1186: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187: case $ac_user_opts in
1188: *"
1189: "with_$ac_useropt"
1190: "*) ;;
1191: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192: ac_unrecognized_sep=', ';;
1.1 paf 1193: esac
1.150 moko 1194: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1195:
1196: -without-* | --without-*)
1.150 moko 1197: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1198: # Reject names that are not valid shell variable names.
1.150 moko 1199: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200: as_fn_error $? "invalid package name: $ac_useropt"
1201: ac_useropt_orig=$ac_useropt
1202: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203: case $ac_user_opts in
1204: *"
1205: "with_$ac_useropt"
1206: "*) ;;
1207: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208: ac_unrecognized_sep=', ';;
1209: esac
1210: eval with_$ac_useropt=no ;;
1.1 paf 1211:
1212: --x)
1213: # Obsolete; use --with-x.
1214: with_x=yes ;;
1215:
1216: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217: | --x-incl | --x-inc | --x-in | --x-i)
1218: ac_prev=x_includes ;;
1219: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1221: x_includes=$ac_optarg ;;
1.1 paf 1222:
1223: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225: ac_prev=x_libraries ;;
1226: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1228: x_libraries=$ac_optarg ;;
1.1 paf 1229:
1.150 moko 1230: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231: Try \`$0 --help' for more information"
1.1 paf 1232: ;;
1233:
1.62 paf 1234: *=*)
1235: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236: # Reject names that are not valid shell variable names.
1.150 moko 1237: case $ac_envvar in #(
1238: '' | [0-9]* | *[!_$as_cr_alnum]* )
1239: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240: esac
1241: eval $ac_envvar=\$ac_optarg
1.62 paf 1242: export $ac_envvar ;;
1243:
1.1 paf 1244: *)
1.62 paf 1245: # FIXME: should be removed in autoconf 3.0.
1.150 moko 1246: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1247: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.150 moko 1248: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1250: ;;
1251:
1252: esac
1253: done
1254:
1255: if test -n "$ac_prev"; then
1.62 paf 1256: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1257: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1258: fi
1259:
1.150 moko 1260: if test -n "$ac_unrecognized_opts"; then
1261: case $enable_option_checking in
1262: no) ;;
1263: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265: esac
1266: fi
1267:
1268: # Check all directory arguments for consistency.
1269: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270: datadir sysconfdir sharedstatedir localstatedir includedir \
1271: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272: libdir localedir mandir
1.62 paf 1273: do
1.150 moko 1274: eval ac_val=\$$ac_var
1275: # Remove trailing slashes.
1.62 paf 1276: case $ac_val in
1.150 moko 1277: */ )
1278: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279: eval $ac_var=\$ac_val;;
1.62 paf 1280: esac
1.150 moko 1281: # Be sure to have absolute directory names.
1.62 paf 1282: case $ac_val in
1.150 moko 1283: [\\/$]* | ?:[\\/]* ) continue;;
1284: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1285: esac
1.150 moko 1286: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1287: done
1288:
1.62 paf 1289: # There might be people who depend on the old broken behavior: `$host'
1290: # used to hold the argument of --host etc.
1291: # FIXME: To remove some day.
1292: build=$build_alias
1293: host=$host_alias
1294: target=$target_alias
1295:
1296: # FIXME: To remove some day.
1297: if test "x$host_alias" != x; then
1298: if test "x$build_alias" = x; then
1299: cross_compiling=maybe
1300: elif test "x$build_alias" != "x$host_alias"; then
1301: cross_compiling=yes
1302: fi
1303: fi
1304:
1305: ac_tool_prefix=
1306: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1307:
1.62 paf 1308: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1309:
1310:
1.150 moko 1311: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312: ac_ls_di=`ls -di .` &&
1313: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314: as_fn_error $? "working directory cannot be determined"
1315: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316: as_fn_error $? "pwd does not report name of working directory"
1317:
1318:
1.1 paf 1319: # Find the source files, if location was not specified.
1320: if test -z "$srcdir"; then
1321: ac_srcdir_defaulted=yes
1.150 moko 1322: # Try the directory containing this script, then the parent directory.
1323: ac_confdir=`$as_dirname -- "$as_myself" ||
1324: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325: X"$as_myself" : 'X\(//\)[^/]' \| \
1326: X"$as_myself" : 'X\(//\)$' \| \
1327: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328: $as_echo X"$as_myself" |
1329: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330: s//\1/
1331: q
1332: }
1333: /^X\(\/\/\)[^/].*/{
1334: s//\1/
1335: q
1336: }
1337: /^X\(\/\/\)$/{
1338: s//\1/
1339: q
1340: }
1341: /^X\(\/\).*/{
1342: s//\1/
1343: q
1344: }
1345: s/.*/./; q'`
1.1 paf 1346: srcdir=$ac_confdir
1.150 moko 1347: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1348: srcdir=..
1349: fi
1350: else
1351: ac_srcdir_defaulted=no
1352: fi
1.150 moko 1353: if test ! -r "$srcdir/$ac_unique_file"; then
1354: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356: fi
1357: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358: ac_abs_confdir=`(
1359: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360: pwd)`
1361: # When building in place, set srcdir=.
1362: if test "$ac_abs_confdir" = "$ac_pwd"; then
1363: srcdir=.
1364: fi
1365: # Remove unnecessary trailing slashes from srcdir.
1366: # Double slashes in file names in object file debugging info
1367: # mess up M-x gdb in Emacs.
1368: case $srcdir in
1369: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370: esac
1371: for ac_var in $ac_precious_vars; do
1372: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373: eval ac_env_${ac_var}_value=\$${ac_var}
1374: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376: done
1.62 paf 1377:
1378: #
1379: # Report the --help message.
1380: #
1381: if test "$ac_init_help" = "long"; then
1382: # Omit some internal or obsolete options to make the list less imposing.
1383: # This message is too long to be a string in the A/UX 3.1 sh.
1384: cat <<_ACEOF
1.186 moko 1385: \`configure' configures parser 3.4.6b to adapt to many kinds of systems.
1.62 paf 1386:
1387: Usage: $0 [OPTION]... [VAR=VALUE]...
1388:
1389: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390: VAR=VALUE. See below for descriptions of some of the useful variables.
1391:
1392: Defaults for the options are specified in brackets.
1393:
1394: Configuration:
1395: -h, --help display this help and exit
1396: --help=short display options specific to this package
1397: --help=recursive display the short help of all the included packages
1398: -V, --version display version information and exit
1.150 moko 1399: -q, --quiet, --silent do not print \`checking ...' messages
1.62 paf 1400: --cache-file=FILE cache test results in FILE [disabled]
1401: -C, --config-cache alias for \`--cache-file=config.cache'
1402: -n, --no-create do not create output files
1403: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404:
1405: Installation directories:
1406: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1407: [$ac_default_prefix]
1.62 paf 1408: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1409: [PREFIX]
1.62 paf 1410:
1411: By default, \`make install' will install all the files in
1412: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414: for instance \`--prefix=\$HOME'.
1415:
1416: For better control, use the options below.
1417:
1418: Fine tuning of the installation directories:
1.150 moko 1419: --bindir=DIR user executables [EPREFIX/bin]
1420: --sbindir=DIR system admin executables [EPREFIX/sbin]
1421: --libexecdir=DIR program executables [EPREFIX/libexec]
1422: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425: --libdir=DIR object code libraries [EPREFIX/lib]
1426: --includedir=DIR C header files [PREFIX/include]
1427: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430: --infodir=DIR info documentation [DATAROOTDIR/info]
1431: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432: --mandir=DIR man documentation [DATAROOTDIR/man]
1433: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1434: --htmldir=DIR html documentation [DOCDIR]
1435: --dvidir=DIR dvi documentation [DOCDIR]
1436: --pdfdir=DIR pdf documentation [DOCDIR]
1437: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1438: _ACEOF
1439:
1440: cat <<\_ACEOF
1441:
1442: Program names:
1443: --program-prefix=PREFIX prepend PREFIX to installed program names
1444: --program-suffix=SUFFIX append SUFFIX to installed program names
1445: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1446:
1447: System types:
1448: --build=BUILD configure for building on BUILD [guessed]
1449: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450: _ACEOF
1451: fi
1452:
1453: if test -n "$ac_init_help"; then
1.128 moko 1454: case $ac_init_help in
1.186 moko 1455: short | recursive ) echo "Configuration of parser 3.4.6b:";;
1.128 moko 1456: esac
1.62 paf 1457: cat <<\_ACEOF
1458:
1459: Optional Features:
1.150 moko 1460: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1461: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1463: --enable-silent-rules less verbose build output (undo: "make V=1")
1464: --disable-silent-rules verbose build output (undo: "make V=0")
1465: --enable-dependency-tracking
1466: do not reject slow dependency extractors
1467: --disable-dependency-tracking
1468: speeds up one-time build
1.67 paf 1469: --disable-safe-mode to enable reading and executing
1.62 paf 1470: files belonging to group+user other then effective
1.146 moko 1471: --disable-execs to disable any execs
1.62 paf 1472: (file::exec, file::cgi, unix mail:send)
1.94 misha 1473: --disable-stringstream to disable stringstream usage.
1474: when disabled table.save use more memory but it's safer on freebsd 4.x
1.150 moko 1475: --enable-shared[=PKGS] build shared libraries [default=yes]
1476: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1477: --enable-fast-install[=PKGS]
1478: optimize for fast installation [default=yes]
1479: --disable-libtool-lock avoid locking (might break parallel builds)
1480: --enable-ltdl-install install libltdl
1.171 moko 1481: --disable-largefile omit support for large files
1.62 paf 1482:
1483: Optional Packages:
1484: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1486: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1487: --with-coverage to enable gcov code coverage support
1488: --with-profiler to enable gprof code profiler support
1.67 paf 1489: --with-assertions to enable assertions
1.128 moko 1490: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.146 moko 1491: --with-gc=D D is the directory where
1.142 moko 1492: Boehm garbage collecting library is installed
1.146 moko 1493: --with-pcre=D D is the directory where
1.142 moko 1494: PCRE library is installed
1.146 moko 1495: --with-xml=D D is the directory where
1.142 moko 1496: Gnome XML libraries are installed
1.154 moko 1497: --with-mailreceive=D is the directory where
1498: Gnome MIME library is installed
1.62 paf 1499: \"--with-sendmail=COMMAND\" forces this command to send mail.
1500: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1501: (makes parser ignore user-defined sendmail commands)
1.146 moko 1502: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1503: builds apache DSO module using apxs
1.150 moko 1504: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.128 moko 1505: both]
1506: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507: --with-sysroot=DIR Search for dependent libraries within DIR
1508: (or the compiler's sysroot if not specified).
1509: --with-included-ltdl use the GNU ltdl sources included here
1510: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1511: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1512:
1513: Some influential environment variables:
1.150 moko 1514: YACC The `Yet Another Compiler Compiler' implementation to use.
1515: Defaults to the first program found out of: `bison -y', `byacc',
1516: `yacc'.
1517: YFLAGS The list of arguments that will be passed by default to $YACC.
1518: This script will default YFLAGS to the empty string to avoid a
1519: default value of `-d' given by some make applications.
1.66 paf 1520: CXX C++ compiler command
1521: CXXFLAGS C++ compiler flags
1.62 paf 1522: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523: nonstandard directory <lib dir>
1.150 moko 1524: LIBS libraries to pass to the linker, e.g. -l<library>
1525: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526: you have headers in a nonstandard directory <include dir>
1.66 paf 1527: CC C compiler command
1528: CFLAGS C compiler flags
1529: CPP C preprocessor
1.128 moko 1530: CXXCPP C++ preprocessor
1.62 paf 1531:
1532: Use these variables to override the choices made by `configure' or to help
1533: it to find libraries and programs with nonstandard names/locations.
1534:
1.150 moko 1535: Report bugs to the package provider.
1.62 paf 1536: _ACEOF
1.150 moko 1537: ac_status=$?
1.62 paf 1538: fi
1539:
1540: if test "$ac_init_help" = "recursive"; then
1541: # If there are subdirs, report their specific --help.
1542: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1543: test -d "$ac_dir" ||
1544: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545: continue
1.62 paf 1546: ac_builddir=.
1547:
1.150 moko 1548: case "$ac_dir" in
1549: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550: *)
1551: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552: # A ".." for each directory in $ac_dir_suffix.
1553: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554: case $ac_top_builddir_sub in
1555: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557: esac ;;
1558: esac
1559: ac_abs_top_builddir=$ac_pwd
1560: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561: # for backward compatibility:
1562: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1563:
1564: case $srcdir in
1.150 moko 1565: .) # We are building in place.
1.62 paf 1566: ac_srcdir=.
1.150 moko 1567: ac_top_srcdir=$ac_top_builddir_sub
1568: ac_abs_top_srcdir=$ac_pwd ;;
1569: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1570: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1571: ac_top_srcdir=$srcdir
1572: ac_abs_top_srcdir=$srcdir ;;
1573: *) # Relative name.
1574: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575: ac_top_srcdir=$ac_top_build_prefix$srcdir
1576: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1577: esac
1.150 moko 1578: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1579:
1.150 moko 1580: cd "$ac_dir" || { ac_status=$?; continue; }
1581: # Check for guested configure.
1582: if test -f "$ac_srcdir/configure.gnu"; then
1583: echo &&
1584: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585: elif test -f "$ac_srcdir/configure"; then
1586: echo &&
1587: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1588: else
1.150 moko 1589: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590: fi || ac_status=$?
1591: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1592: done
1593: fi
1594:
1.150 moko 1595: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1596: if $ac_init_version; then
1597: cat <<\_ACEOF
1.186 moko 1598: parser configure 3.4.6b
1.166 moko 1599: generated by GNU Autoconf 2.69
1.62 paf 1600:
1.166 moko 1601: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 1602: This configure script is free software; the Free Software Foundation
1603: gives unlimited permission to copy, distribute and modify it.
1604: _ACEOF
1.150 moko 1605: exit
1.62 paf 1606: fi
1607:
1.150 moko 1608: ## ------------------------ ##
1609: ## Autoconf initialization. ##
1610: ## ------------------------ ##
1611:
1612: # ac_fn_cxx_try_compile LINENO
1613: # ----------------------------
1614: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615: ac_fn_cxx_try_compile ()
1.62 paf 1616: {
1.150 moko 1617: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618: rm -f conftest.$ac_objext
1619: if { { ac_try="$ac_compile"
1620: case "(($ac_try" in
1621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622: *) ac_try_echo=$ac_try;;
1623: esac
1624: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625: $as_echo "$ac_try_echo"; } >&5
1626: (eval "$ac_compile") 2>conftest.err
1627: ac_status=$?
1628: if test -s conftest.err; then
1629: grep -v '^ *+' conftest.err >conftest.er1
1630: cat conftest.er1 >&5
1631: mv -f conftest.er1 conftest.err
1632: fi
1633: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634: test $ac_status = 0; } && {
1635: test -z "$ac_cxx_werror_flag" ||
1636: test ! -s conftest.err
1637: } && test -s conftest.$ac_objext; then :
1638: ac_retval=0
1639: else
1640: $as_echo "$as_me: failed program was:" >&5
1641: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1642:
1.150 moko 1643: ac_retval=1
1644: fi
1645: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646: as_fn_set_status $ac_retval
1.62 paf 1647:
1.150 moko 1648: } # ac_fn_cxx_try_compile
1649:
1650: # ac_fn_c_try_compile LINENO
1651: # --------------------------
1652: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653: ac_fn_c_try_compile ()
1654: {
1655: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656: rm -f conftest.$ac_objext
1657: if { { ac_try="$ac_compile"
1658: case "(($ac_try" in
1659: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660: *) ac_try_echo=$ac_try;;
1661: esac
1662: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663: $as_echo "$ac_try_echo"; } >&5
1664: (eval "$ac_compile") 2>conftest.err
1665: ac_status=$?
1666: if test -s conftest.err; then
1667: grep -v '^ *+' conftest.err >conftest.er1
1668: cat conftest.er1 >&5
1669: mv -f conftest.er1 conftest.err
1670: fi
1671: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672: test $ac_status = 0; } && {
1673: test -z "$ac_c_werror_flag" ||
1674: test ! -s conftest.err
1675: } && test -s conftest.$ac_objext; then :
1676: ac_retval=0
1677: else
1678: $as_echo "$as_me: failed program was:" >&5
1679: sed 's/^/| /' conftest.$ac_ext >&5
1680:
1681: ac_retval=1
1682: fi
1683: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684: as_fn_set_status $ac_retval
1685:
1686: } # ac_fn_c_try_compile
1687:
1688: # ac_fn_c_try_link LINENO
1689: # -----------------------
1690: # Try to link conftest.$ac_ext, and return whether this succeeded.
1691: ac_fn_c_try_link ()
1692: {
1693: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694: rm -f conftest.$ac_objext conftest$ac_exeext
1695: if { { ac_try="$ac_link"
1696: case "(($ac_try" in
1697: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698: *) ac_try_echo=$ac_try;;
1699: esac
1700: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701: $as_echo "$ac_try_echo"; } >&5
1702: (eval "$ac_link") 2>conftest.err
1703: ac_status=$?
1704: if test -s conftest.err; then
1705: grep -v '^ *+' conftest.err >conftest.er1
1706: cat conftest.er1 >&5
1707: mv -f conftest.er1 conftest.err
1708: fi
1709: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710: test $ac_status = 0; } && {
1711: test -z "$ac_c_werror_flag" ||
1712: test ! -s conftest.err
1713: } && test -s conftest$ac_exeext && {
1714: test "$cross_compiling" = yes ||
1.166 moko 1715: test -x conftest$ac_exeext
1.150 moko 1716: }; then :
1717: ac_retval=0
1718: else
1719: $as_echo "$as_me: failed program was:" >&5
1720: sed 's/^/| /' conftest.$ac_ext >&5
1721:
1722: ac_retval=1
1723: fi
1724: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726: # interfere with the next link command; also delete a directory that is
1727: # left behind by Apple's compiler. We do this before executing the actions.
1728: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730: as_fn_set_status $ac_retval
1731:
1732: } # ac_fn_c_try_link
1733:
1734: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1735: # -------------------------------------------------------
1736: # Tests whether HEADER exists and can be compiled using the include files in
1737: # INCLUDES, setting the cache variable VAR accordingly.
1738: ac_fn_c_check_header_compile ()
1739: {
1740: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742: $as_echo_n "checking for $2... " >&6; }
1743: if eval \${$3+:} false; then :
1744: $as_echo_n "(cached) " >&6
1745: else
1746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747: /* end confdefs.h. */
1748: $4
1749: #include <$2>
1750: _ACEOF
1751: if ac_fn_c_try_compile "$LINENO"; then :
1752: eval "$3=yes"
1753: else
1754: eval "$3=no"
1755: fi
1756: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757: fi
1758: eval ac_res=\$$3
1759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760: $as_echo "$ac_res" >&6; }
1761: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762:
1763: } # ac_fn_c_check_header_compile
1764:
1765: # ac_fn_c_try_cpp LINENO
1766: # ----------------------
1767: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768: ac_fn_c_try_cpp ()
1769: {
1770: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771: if { { ac_try="$ac_cpp conftest.$ac_ext"
1772: case "(($ac_try" in
1773: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774: *) ac_try_echo=$ac_try;;
1775: esac
1776: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777: $as_echo "$ac_try_echo"; } >&5
1778: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779: ac_status=$?
1780: if test -s conftest.err; then
1781: grep -v '^ *+' conftest.err >conftest.er1
1782: cat conftest.er1 >&5
1783: mv -f conftest.er1 conftest.err
1784: fi
1785: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786: test $ac_status = 0; } > conftest.i && {
1787: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788: test ! -s conftest.err
1789: }; then :
1790: ac_retval=0
1791: else
1792: $as_echo "$as_me: failed program was:" >&5
1793: sed 's/^/| /' conftest.$ac_ext >&5
1794:
1795: ac_retval=1
1796: fi
1797: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798: as_fn_set_status $ac_retval
1799:
1800: } # ac_fn_c_try_cpp
1801:
1802: # ac_fn_c_try_run LINENO
1803: # ----------------------
1804: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805: # that executables *can* be run.
1806: ac_fn_c_try_run ()
1807: {
1808: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809: if { { ac_try="$ac_link"
1810: case "(($ac_try" in
1811: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812: *) ac_try_echo=$ac_try;;
1813: esac
1814: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815: $as_echo "$ac_try_echo"; } >&5
1816: (eval "$ac_link") 2>&5
1817: ac_status=$?
1818: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820: { { case "(($ac_try" in
1821: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822: *) ac_try_echo=$ac_try;;
1823: esac
1824: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825: $as_echo "$ac_try_echo"; } >&5
1826: (eval "$ac_try") 2>&5
1827: ac_status=$?
1828: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829: test $ac_status = 0; }; }; then :
1830: ac_retval=0
1831: else
1832: $as_echo "$as_me: program exited with status $ac_status" >&5
1833: $as_echo "$as_me: failed program was:" >&5
1834: sed 's/^/| /' conftest.$ac_ext >&5
1835:
1836: ac_retval=$ac_status
1837: fi
1838: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840: as_fn_set_status $ac_retval
1841:
1842: } # ac_fn_c_try_run
1843:
1844: # ac_fn_c_check_func LINENO FUNC VAR
1845: # ----------------------------------
1846: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1847: ac_fn_c_check_func ()
1848: {
1849: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851: $as_echo_n "checking for $2... " >&6; }
1852: if eval \${$3+:} false; then :
1853: $as_echo_n "(cached) " >&6
1854: else
1855: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856: /* end confdefs.h. */
1857: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1859: #define $2 innocuous_$2
1860:
1861: /* System header to define __stub macros and hopefully few prototypes,
1862: which can conflict with char $2 (); below.
1863: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864: <limits.h> exists even on freestanding compilers. */
1865:
1866: #ifdef __STDC__
1867: # include <limits.h>
1868: #else
1869: # include <assert.h>
1870: #endif
1871:
1872: #undef $2
1873:
1874: /* Override any GCC internal prototype to avoid an error.
1875: Use char because int might match the return type of a GCC
1876: builtin and then its argument prototype would still apply. */
1877: #ifdef __cplusplus
1878: extern "C"
1879: #endif
1880: char $2 ();
1881: /* The GNU C library defines this for functions which it implements
1882: to always fail with ENOSYS. Some functions are actually named
1883: something starting with __ and the normal name is an alias. */
1884: #if defined __stub_$2 || defined __stub___$2
1885: choke me
1886: #endif
1887:
1888: int
1889: main ()
1890: {
1891: return $2 ();
1892: ;
1893: return 0;
1894: }
1895: _ACEOF
1896: if ac_fn_c_try_link "$LINENO"; then :
1897: eval "$3=yes"
1898: else
1899: eval "$3=no"
1900: fi
1901: rm -f core conftest.err conftest.$ac_objext \
1902: conftest$ac_exeext conftest.$ac_ext
1903: fi
1904: eval ac_res=\$$3
1905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906: $as_echo "$ac_res" >&6; }
1907: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908:
1909: } # ac_fn_c_check_func
1910:
1911: # ac_fn_cxx_try_cpp LINENO
1912: # ------------------------
1913: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1914: ac_fn_cxx_try_cpp ()
1915: {
1916: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917: if { { ac_try="$ac_cpp conftest.$ac_ext"
1918: case "(($ac_try" in
1919: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920: *) ac_try_echo=$ac_try;;
1921: esac
1922: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923: $as_echo "$ac_try_echo"; } >&5
1924: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1925: ac_status=$?
1926: if test -s conftest.err; then
1927: grep -v '^ *+' conftest.err >conftest.er1
1928: cat conftest.er1 >&5
1929: mv -f conftest.er1 conftest.err
1930: fi
1931: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932: test $ac_status = 0; } > conftest.i && {
1933: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1934: test ! -s conftest.err
1935: }; then :
1936: ac_retval=0
1937: else
1938: $as_echo "$as_me: failed program was:" >&5
1939: sed 's/^/| /' conftest.$ac_ext >&5
1940:
1941: ac_retval=1
1942: fi
1943: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944: as_fn_set_status $ac_retval
1945:
1946: } # ac_fn_cxx_try_cpp
1947:
1948: # ac_fn_cxx_try_link LINENO
1949: # -------------------------
1950: # Try to link conftest.$ac_ext, and return whether this succeeded.
1951: ac_fn_cxx_try_link ()
1952: {
1953: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954: rm -f conftest.$ac_objext conftest$ac_exeext
1955: if { { ac_try="$ac_link"
1956: case "(($ac_try" in
1957: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958: *) ac_try_echo=$ac_try;;
1959: esac
1960: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961: $as_echo "$ac_try_echo"; } >&5
1962: (eval "$ac_link") 2>conftest.err
1963: ac_status=$?
1964: if test -s conftest.err; then
1965: grep -v '^ *+' conftest.err >conftest.er1
1966: cat conftest.er1 >&5
1967: mv -f conftest.er1 conftest.err
1968: fi
1969: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970: test $ac_status = 0; } && {
1971: test -z "$ac_cxx_werror_flag" ||
1972: test ! -s conftest.err
1973: } && test -s conftest$ac_exeext && {
1974: test "$cross_compiling" = yes ||
1.166 moko 1975: test -x conftest$ac_exeext
1.150 moko 1976: }; then :
1977: ac_retval=0
1978: else
1979: $as_echo "$as_me: failed program was:" >&5
1980: sed 's/^/| /' conftest.$ac_ext >&5
1981:
1982: ac_retval=1
1983: fi
1984: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986: # interfere with the next link command; also delete a directory that is
1987: # left behind by Apple's compiler. We do this before executing the actions.
1988: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990: as_fn_set_status $ac_retval
1991:
1992: } # ac_fn_cxx_try_link
1993:
1994: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1995: # ---------------------------------------------
1996: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1997: # accordingly.
1998: ac_fn_c_check_decl ()
1999: {
2000: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001: as_decl_name=`echo $2|sed 's/ *(.*//'`
2002: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2004: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2005: if eval \${$3+:} false; then :
2006: $as_echo_n "(cached) " >&6
2007: else
2008: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009: /* end confdefs.h. */
2010: $4
2011: int
2012: main ()
2013: {
2014: #ifndef $as_decl_name
2015: #ifdef __cplusplus
2016: (void) $as_decl_use;
2017: #else
2018: (void) $as_decl_name;
2019: #endif
2020: #endif
2021:
2022: ;
2023: return 0;
2024: }
2025: _ACEOF
2026: if ac_fn_c_try_compile "$LINENO"; then :
2027: eval "$3=yes"
2028: else
2029: eval "$3=no"
2030: fi
2031: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032: fi
2033: eval ac_res=\$$3
2034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035: $as_echo "$ac_res" >&6; }
2036: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037:
2038: } # ac_fn_c_check_decl
2039:
2040: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2041: # -------------------------------------------
2042: # Tests whether TYPE exists after having included INCLUDES, setting cache
2043: # variable VAR accordingly.
2044: ac_fn_c_check_type ()
2045: {
2046: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048: $as_echo_n "checking for $2... " >&6; }
2049: if eval \${$3+:} false; then :
2050: $as_echo_n "(cached) " >&6
2051: else
2052: eval "$3=no"
2053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054: /* end confdefs.h. */
2055: $4
2056: int
2057: main ()
2058: {
2059: if (sizeof ($2))
2060: return 0;
2061: ;
2062: return 0;
2063: }
2064: _ACEOF
2065: if ac_fn_c_try_compile "$LINENO"; then :
2066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067: /* end confdefs.h. */
2068: $4
2069: int
2070: main ()
2071: {
2072: if (sizeof (($2)))
2073: return 0;
2074: ;
2075: return 0;
2076: }
2077: _ACEOF
2078: if ac_fn_c_try_compile "$LINENO"; then :
2079:
2080: else
2081: eval "$3=yes"
2082: fi
2083: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084: fi
2085: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086: fi
2087: eval ac_res=\$$3
2088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089: $as_echo "$ac_res" >&6; }
2090: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091:
2092: } # ac_fn_c_check_type
2093:
1.156 moko 2094: # ac_fn_c_find_uintX_t LINENO BITS VAR
2095: # ------------------------------------
2096: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2097: # accordingly.
2098: ac_fn_c_find_uintX_t ()
2099: {
2100: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2102: $as_echo_n "checking for uint$2_t... " >&6; }
2103: if eval \${$3+:} false; then :
2104: $as_echo_n "(cached) " >&6
2105: else
2106: eval "$3=no"
2107: # Order is important - never check a type that is potentially smaller
2108: # than half of the expected target width.
2109: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2110: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2111: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112: /* end confdefs.h. */
2113: $ac_includes_default
2114: int
2115: main ()
2116: {
2117: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2118: test_array [0] = 0;
2119: return test_array [0];
1.156 moko 2120:
2121: ;
2122: return 0;
2123: }
2124: _ACEOF
2125: if ac_fn_c_try_compile "$LINENO"; then :
2126: case $ac_type in #(
2127: uint$2_t) :
2128: eval "$3=yes" ;; #(
2129: *) :
2130: eval "$3=\$ac_type" ;;
2131: esac
2132: fi
2133: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134: if eval test \"x\$"$3"\" = x"no"; then :
2135:
2136: else
2137: break
2138: fi
2139: done
2140: fi
2141: eval ac_res=\$$3
2142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143: $as_echo "$ac_res" >&6; }
2144: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145:
2146: } # ac_fn_c_find_uintX_t
2147:
1.161 moko 2148: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2149: # ----------------------------------------------------
2150: # Tries to find if the field MEMBER exists in type AGGR, after including
2151: # INCLUDES, setting cache variable VAR accordingly.
2152: ac_fn_c_check_member ()
2153: {
2154: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2156: $as_echo_n "checking for $2.$3... " >&6; }
2157: if eval \${$4+:} false; then :
2158: $as_echo_n "(cached) " >&6
2159: else
2160: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161: /* end confdefs.h. */
2162: $5
2163: int
2164: main ()
2165: {
2166: static $2 ac_aggr;
2167: if (ac_aggr.$3)
2168: return 0;
2169: ;
2170: return 0;
2171: }
2172: _ACEOF
2173: if ac_fn_c_try_compile "$LINENO"; then :
2174: eval "$4=yes"
2175: else
2176: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177: /* end confdefs.h. */
2178: $5
2179: int
2180: main ()
2181: {
2182: static $2 ac_aggr;
2183: if (sizeof ac_aggr.$3)
2184: return 0;
2185: ;
2186: return 0;
2187: }
2188: _ACEOF
2189: if ac_fn_c_try_compile "$LINENO"; then :
2190: eval "$4=yes"
2191: else
2192: eval "$4=no"
2193: fi
2194: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195: fi
2196: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197: fi
2198: eval ac_res=\$$4
2199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200: $as_echo "$ac_res" >&6; }
2201: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202:
2203: } # ac_fn_c_check_member
2204:
1.150 moko 2205: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2206: # -------------------------------------------------------
2207: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2208: # the include files in INCLUDES and setting the cache variable VAR
2209: # accordingly.
2210: ac_fn_c_check_header_mongrel ()
2211: {
2212: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213: if eval \${$3+:} false; then :
2214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2215: $as_echo_n "checking for $2... " >&6; }
2216: if eval \${$3+:} false; then :
2217: $as_echo_n "(cached) " >&6
2218: fi
2219: eval ac_res=\$$3
2220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221: $as_echo "$ac_res" >&6; }
2222: else
2223: # Is the header compilable?
2224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2225: $as_echo_n "checking $2 usability... " >&6; }
2226: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227: /* end confdefs.h. */
2228: $4
2229: #include <$2>
2230: _ACEOF
2231: if ac_fn_c_try_compile "$LINENO"; then :
2232: ac_header_compiler=yes
2233: else
2234: ac_header_compiler=no
2235: fi
2236: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2238: $as_echo "$ac_header_compiler" >&6; }
2239:
2240: # Is the header present?
2241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2242: $as_echo_n "checking $2 presence... " >&6; }
2243: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244: /* end confdefs.h. */
2245: #include <$2>
2246: _ACEOF
2247: if ac_fn_c_try_cpp "$LINENO"; then :
2248: ac_header_preproc=yes
2249: else
2250: ac_header_preproc=no
2251: fi
2252: rm -f conftest.err conftest.i conftest.$ac_ext
2253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2254: $as_echo "$ac_header_preproc" >&6; }
2255:
2256: # So? What about this header?
2257: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2258: yes:no: )
2259: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2260: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2261: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2262: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2263: ;;
2264: no:yes:* )
2265: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2266: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2267: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2268: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2269: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2270: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2271: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2272: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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: esac
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278: $as_echo_n "checking for $2... " >&6; }
2279: if eval \${$3+:} false; then :
2280: $as_echo_n "(cached) " >&6
2281: else
2282: eval "$3=\$ac_header_compiler"
2283: fi
2284: eval ac_res=\$$3
2285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286: $as_echo "$ac_res" >&6; }
2287: fi
2288: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289:
2290: } # ac_fn_c_check_header_mongrel
2291: cat >config.log <<_ACEOF
2292: This file contains any messages produced by compilers while
2293: running configure, to aid debugging if configure makes a mistake.
2294:
1.186 moko 2295: It was created by parser $as_me 3.4.6b, which was
1.166 moko 2296: generated by GNU Autoconf 2.69. Invocation command line was
1.150 moko 2297:
2298: $ $0 $@
2299:
2300: _ACEOF
2301: exec 5>>config.log
2302: {
2303: cat <<_ASUNAME
2304: ## --------- ##
2305: ## Platform. ##
2306: ## --------- ##
2307:
2308: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2309: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2310: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2311: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2312: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313:
2314: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2315: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2316:
2317: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2318: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2319: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2320: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2321: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2322: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2323: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2324:
2325: _ASUNAME
2326:
2327: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328: for as_dir in $PATH
2329: do
2330: IFS=$as_save_IFS
2331: test -z "$as_dir" && as_dir=.
1.150 moko 2332: $as_echo "PATH: $as_dir"
2333: done
2334: IFS=$as_save_IFS
1.1 paf 2335:
1.62 paf 2336: } >&5
2337:
2338: cat >&5 <<_ACEOF
2339:
2340:
2341: ## ----------- ##
2342: ## Core tests. ##
2343: ## ----------- ##
2344:
2345: _ACEOF
2346:
2347:
2348: # Keep a trace of the command line.
2349: # Strip out --no-create and --no-recursion so they do not pile up.
2350: # Strip out --silent because we don't want to record it for future runs.
2351: # Also quote any args containing shell meta-characters.
2352: # Make two passes to allow for proper duplicate-argument suppression.
2353: ac_configure_args=
2354: ac_configure_args0=
2355: ac_configure_args1=
2356: ac_must_keep_next=false
2357: for ac_pass in 1 2
2358: do
2359: for ac_arg
2360: do
2361: case $ac_arg in
2362: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2363: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2364: | -silent | --silent | --silen | --sile | --sil)
2365: continue ;;
1.150 moko 2366: *\'*)
2367: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2368: esac
2369: case $ac_pass in
1.150 moko 2370: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2371: 2)
1.150 moko 2372: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2373: if test $ac_must_keep_next = true; then
1.86 paf 2374: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2375: else
1.86 paf 2376: case $ac_arg in
2377: *=* | --config-cache | -C | -disable-* | --disable-* \
2378: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2379: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2380: | -with-* | --with-* | -without-* | --without-* | --x)
2381: case "$ac_configure_args0 " in
2382: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2383: esac
2384: ;;
2385: -* ) ac_must_keep_next=true ;;
2386: esac
1.62 paf 2387: fi
1.150 moko 2388: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2389: ;;
2390: esac
2391: done
2392: done
1.150 moko 2393: { ac_configure_args0=; unset ac_configure_args0;}
2394: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2395:
2396: # When interrupted or exit'd, cleanup temporary files, and complete
2397: # config.log. We remove comments because anyway the quotes in there
2398: # would cause problems or look ugly.
1.150 moko 2399: # WARNING: Use '\'' to represent an apostrophe within the trap.
2400: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2401: trap 'exit_status=$?
2402: # Save into config.log some information that might help in debugging.
2403: {
2404: echo
2405:
1.150 moko 2406: $as_echo "## ---------------- ##
1.62 paf 2407: ## Cache variables. ##
1.150 moko 2408: ## ---------------- ##"
1.62 paf 2409: echo
2410: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2411: (
2412: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2413: eval ac_val=\$$ac_var
2414: case $ac_val in #(
2415: *${as_nl}*)
2416: case $ac_var in #(
2417: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2418: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2419: esac
2420: case $ac_var in #(
2421: _ | IFS | as_nl) ;; #(
2422: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2423: *) { eval $ac_var=; unset $ac_var;} ;;
2424: esac ;;
2425: esac
2426: done
1.62 paf 2427: (set) 2>&1 |
1.150 moko 2428: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2429: *${as_nl}ac_space=\ *)
1.62 paf 2430: sed -n \
1.150 moko 2431: "s/'\''/'\''\\\\'\'''\''/g;
2432: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2433: ;; #(
1.62 paf 2434: *)
1.150 moko 2435: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2436: ;;
1.150 moko 2437: esac |
2438: sort
2439: )
1.62 paf 2440: echo
2441:
1.150 moko 2442: $as_echo "## ----------------- ##
1.62 paf 2443: ## Output variables. ##
1.150 moko 2444: ## ----------------- ##"
1.62 paf 2445: echo
2446: for ac_var in $ac_subst_vars
2447: do
1.150 moko 2448: eval ac_val=\$$ac_var
2449: case $ac_val in
2450: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451: esac
2452: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2453: done | sort
2454: echo
2455:
2456: if test -n "$ac_subst_files"; then
1.150 moko 2457: $as_echo "## ------------------- ##
2458: ## File substitutions. ##
2459: ## ------------------- ##"
1.62 paf 2460: echo
2461: for ac_var in $ac_subst_files
2462: do
1.150 moko 2463: eval ac_val=\$$ac_var
2464: case $ac_val in
2465: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466: esac
2467: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2468: done | sort
2469: echo
2470: fi
2471:
2472: if test -s confdefs.h; then
1.150 moko 2473: $as_echo "## ----------- ##
1.62 paf 2474: ## confdefs.h. ##
1.150 moko 2475: ## ----------- ##"
1.62 paf 2476: echo
1.150 moko 2477: cat confdefs.h
1.62 paf 2478: echo
2479: fi
2480: test "$ac_signal" != 0 &&
1.150 moko 2481: $as_echo "$as_me: caught signal $ac_signal"
2482: $as_echo "$as_me: exit $exit_status"
1.62 paf 2483: } >&5
1.150 moko 2484: rm -f core *.core core.conftest.* &&
2485: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2486: exit $exit_status
1.150 moko 2487: ' 0
1.62 paf 2488: for ac_signal in 1 2 13 15; do
1.150 moko 2489: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2490: done
2491: ac_signal=0
2492:
2493: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2494: rm -f -r conftest* confdefs.h
2495:
2496: $as_echo "/* confdefs.h */" > confdefs.h
1.62 paf 2497:
2498: # Predefined preprocessor variables.
2499:
2500: cat >>confdefs.h <<_ACEOF
2501: #define PACKAGE_NAME "$PACKAGE_NAME"
2502: _ACEOF
2503:
2504: cat >>confdefs.h <<_ACEOF
2505: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2506: _ACEOF
2507:
2508: cat >>confdefs.h <<_ACEOF
2509: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2510: _ACEOF
2511:
2512: cat >>confdefs.h <<_ACEOF
2513: #define PACKAGE_STRING "$PACKAGE_STRING"
2514: _ACEOF
2515:
1.150 moko 2516: cat >>confdefs.h <<_ACEOF
2517: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2518: _ACEOF
1.62 paf 2519:
2520: cat >>confdefs.h <<_ACEOF
1.150 moko 2521: #define PACKAGE_URL "$PACKAGE_URL"
1.62 paf 2522: _ACEOF
2523:
2524:
2525: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2526: # Prefer an explicitly selected file to automatically selected ones.
2527: ac_site_file1=NONE
2528: ac_site_file2=NONE
2529: if test -n "$CONFIG_SITE"; then
2530: # We do not want a PATH search for config.site.
2531: case $CONFIG_SITE in #((
2532: -*) ac_site_file1=./$CONFIG_SITE;;
2533: */*) ac_site_file1=$CONFIG_SITE;;
2534: *) ac_site_file1=./$CONFIG_SITE;;
2535: esac
2536: elif test "x$prefix" != xNONE; then
2537: ac_site_file1=$prefix/share/config.site
2538: ac_site_file2=$prefix/etc/config.site
2539: else
2540: ac_site_file1=$ac_default_prefix/share/config.site
2541: ac_site_file2=$ac_default_prefix/etc/config.site
2542: fi
2543: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2544: do
2545: test "x$ac_site_file" = xNONE && continue
2546: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2547: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2548: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2549: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2550: . "$ac_site_file" \
2551: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553: as_fn_error $? "failed to load site script $ac_site_file
2554: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2555: fi
2556: done
2557:
2558: if test -r "$cache_file"; then
1.150 moko 2559: # Some versions of bash will fail to source /dev/null (special files
2560: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2561: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2562: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2563: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2564: case $cache_file in
1.150 moko 2565: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2566: *) . "./$cache_file";;
1.62 paf 2567: esac
2568: fi
1.1 paf 2569: else
1.150 moko 2570: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2571: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2572: >$cache_file
2573: fi
2574:
2575: # Check that the precious variables saved in the cache have kept the same
2576: # value.
2577: ac_cache_corrupted=false
1.150 moko 2578: for ac_var in $ac_precious_vars; do
1.62 paf 2579: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2580: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 2581: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2582: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 2583: case $ac_old_set,$ac_new_set in
2584: set,)
1.150 moko 2585: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2586: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.62 paf 2587: ac_cache_corrupted=: ;;
2588: ,set)
1.150 moko 2589: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2590: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.62 paf 2591: ac_cache_corrupted=: ;;
2592: ,);;
2593: *)
2594: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 2595: # differences in whitespace do not lead to failure.
2596: ac_old_val_w=`echo x $ac_old_val`
2597: ac_new_val_w=`echo x $ac_new_val`
2598: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2599: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2600: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2601: ac_cache_corrupted=:
2602: else
2603: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2604: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2605: eval $ac_var=\$ac_old_val
2606: fi
2607: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2608: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2609: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2610: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.62 paf 2611: fi;;
2612: esac
2613: # Pass precious variables to config.status.
2614: if test "$ac_new_set" = set; then
2615: case $ac_new_val in
1.150 moko 2616: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2617: *) ac_arg=$ac_var=$ac_new_val ;;
2618: esac
2619: case " $ac_configure_args " in
2620: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 2621: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 2622: esac
2623: fi
2624: done
2625: if $ac_cache_corrupted; then
1.150 moko 2626: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2629: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2630: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2631: fi
2632: ## -------------------- ##
2633: ## Main body of script. ##
2634: ## -------------------- ##
1.1 paf 2635:
2636: ac_ext=c
2637: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 2638: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641:
2642:
2643:
2644:
2645:
1.187 moko 2646: am__api_version='1.15'
1.62 paf 2647:
1.1 paf 2648: ac_aux_dir=
1.150 moko 2649: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2650: if test -f "$ac_dir/install-sh"; then
1.1 paf 2651: ac_aux_dir=$ac_dir
2652: ac_install_sh="$ac_aux_dir/install-sh -c"
2653: break
1.150 moko 2654: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2655: ac_aux_dir=$ac_dir
2656: ac_install_sh="$ac_aux_dir/install.sh -c"
2657: break
1.150 moko 2658: elif test -f "$ac_dir/shtool"; then
1.62 paf 2659: ac_aux_dir=$ac_dir
2660: ac_install_sh="$ac_aux_dir/shtool install -c"
2661: break
1.1 paf 2662: fi
2663: done
2664: if test -z "$ac_aux_dir"; then
1.150 moko 2665: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2666: fi
2667:
2668: # These three variables are undocumented and unsupported,
2669: # and are intended to be withdrawn in a future Autoconf release.
2670: # They can cause serious problems if a builder's source tree is in a directory
2671: # whose full name contains unusual characters.
2672: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2673: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2674: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2675:
1.1 paf 2676:
2677: # Find a good install program. We prefer a C program (faster),
2678: # so one script is as good as another. But avoid the broken or
2679: # incompatible versions:
2680: # SysV /etc/install, /usr/sbin/install
2681: # SunOS /usr/etc/install
2682: # IRIX /sbin/install
2683: # AIX /bin/install
1.62 paf 2684: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2685: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2686: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2687: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 2688: # OS/2's system install, which has a completely different semantic
1.1 paf 2689: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 2690: # Reject install programs that cannot install multiple files.
2691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2692: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2693: if test -z "$INSTALL"; then
1.150 moko 2694: if ${ac_cv_path_install+:} false; then :
2695: $as_echo_n "(cached) " >&6
1.1 paf 2696: else
1.62 paf 2697: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698: for as_dir in $PATH
2699: do
2700: IFS=$as_save_IFS
2701: test -z "$as_dir" && as_dir=.
1.150 moko 2702: # Account for people who put trailing slashes in PATH elements.
2703: case $as_dir/ in #((
2704: ./ | .// | /[cC]/* | \
1.62 paf 2705: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 2706: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 2707: /usr/ucb/* ) ;;
2708: *)
2709: # OSF1 and SCO ODT 3.0 have their own names for install.
2710: # Don't use installbsd from OSF since it installs stuff as root
2711: # by default.
2712: for ac_prog in ginstall scoinst install; do
2713: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2714: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.86 paf 2715: if test $ac_prog = install &&
2716: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717: # AIX install. It has an incompatible calling convention.
2718: :
2719: elif test $ac_prog = install &&
2720: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721: # program-specific install script used by HP pwplus--don't use.
2722: :
2723: else
1.150 moko 2724: rm -rf conftest.one conftest.two conftest.dir
2725: echo one > conftest.one
2726: echo two > conftest.two
2727: mkdir conftest.dir
2728: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2729: test -s conftest.one && test -s conftest.two &&
2730: test -s conftest.dir/conftest.one &&
2731: test -s conftest.dir/conftest.two
2732: then
2733: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734: break 3
2735: fi
1.86 paf 2736: fi
2737: fi
1.1 paf 2738: done
1.62 paf 2739: done
2740: ;;
2741: esac
2742:
1.150 moko 2743: done
2744: IFS=$as_save_IFS
2745:
2746: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2747:
2748: fi
2749: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 2750: INSTALL=$ac_cv_path_install
1.1 paf 2751: else
1.150 moko 2752: # As a last resort, use the slow shell script. Don't cache a
2753: # value for INSTALL within a source directory, because that will
1.1 paf 2754: # break other packages using the cache if that directory is
1.150 moko 2755: # removed, or if the value is a relative name.
1.62 paf 2756: INSTALL=$ac_install_sh
1.1 paf 2757: fi
2758: fi
1.150 moko 2759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2760: $as_echo "$INSTALL" >&6; }
1.1 paf 2761:
2762: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2763: # It thinks the first close brace ends the variable substitution.
2764: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765:
1.62 paf 2766: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2767:
2768: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769:
1.150 moko 2770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2771: $as_echo_n "checking whether build environment is sane... " >&6; }
2772: # Reject unsafe characters in $srcdir or the absolute working directory
2773: # name. Accept space and tab only in the latter.
2774: am_lf='
2775: '
2776: case `pwd` in
2777: *[\\\"\#\$\&\'\`$am_lf]*)
2778: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2779: esac
2780: case $srcdir in
2781: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 2782: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 2783: esac
2784:
1.187 moko 2785: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 2786: # arguments. Must try -L first in case configure is actually a
2787: # symlink; some systems play weird games with the mod time of symlinks
2788: # (eg FreeBSD returns the mod time of the symlink's containing
2789: # directory).
2790: if (
1.187 moko 2791: am_has_slept=no
2792: for am_try in 1 2; do
2793: echo "timestamp, slept: $am_has_slept" > conftest.file
2794: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2795: if test "$*" = "X"; then
2796: # -L didn't work.
2797: set X `ls -t "$srcdir/configure" conftest.file`
2798: fi
2799: if test "$*" != "X $srcdir/configure conftest.file" \
2800: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2801:
1.187 moko 2802: # If neither matched, then we have a broken ls. This can happen
2803: # if, for instance, CONFIG_SHELL is bash and it inherits a
2804: # broken ls alias from the environment. This has actually
2805: # happened. Such a system could not be considered "sane".
2806: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2807: alias in your environment" "$LINENO" 5
2808: fi
2809: if test "$2" = conftest.file || test $am_try -eq 2; then
2810: break
2811: fi
2812: # Just in case.
2813: sleep 1
2814: am_has_slept=yes
2815: done
1.62 paf 2816: test "$2" = conftest.file
1.1 paf 2817: )
2818: then
2819: # Ok.
2820: :
2821: else
1.150 moko 2822: as_fn_error $? "newly created file is older than distributed files!
2823: Check your system clock" "$LINENO" 5
1.1 paf 2824: fi
1.150 moko 2825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2826: $as_echo "yes" >&6; }
1.187 moko 2827: # If we didn't sleep, we still need to ensure time stamps of config.status and
2828: # generated files are strictly newer.
2829: am_sleep_pid=
2830: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2831: ( sleep 1 ) &
2832: am_sleep_pid=$!
2833: fi
2834:
2835: rm -f conftest.file
2836:
1.1 paf 2837: test "$program_prefix" != NONE &&
1.150 moko 2838: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2839: # Use a double $ so make ignores it.
2840: test "$program_suffix" != NONE &&
1.150 moko 2841: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2842: # Double any \ or $.
1.62 paf 2843: # By default was `s,x,x', remove it if useless.
1.150 moko 2844: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2845: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.62 paf 2846:
1.187 moko 2847: # Expand $ac_aux_dir to an absolute path.
2848: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 2849:
1.150 moko 2850: if test x"${MISSING+set}" != xset; then
2851: case $am_aux_dir in
2852: *\ * | *\ *)
2853: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2854: *)
2855: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2856: esac
2857: fi
1.62 paf 2858: # Use eval to expand $SHELL
1.187 moko 2859: if eval "$MISSING --is-lightweight"; then
2860: am_missing_run="$MISSING "
1.62 paf 2861: else
2862: am_missing_run=
1.187 moko 2863: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2864: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 2865: fi
2866:
1.187 moko 2867: if test x"${install_sh+set}" != xset; then
1.150 moko 2868: case $am_aux_dir in
2869: *\ * | *\ *)
2870: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2871: *)
2872: install_sh="\${SHELL} $am_aux_dir/install-sh"
2873: esac
1.86 paf 2874: fi
2875:
1.187 moko 2876: # Installed binaries are usually stripped using 'strip' when the user
2877: # run "make install-strip". However 'strip' might not be the right
1.150 moko 2878: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 2879: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 2880: if test "$cross_compiling" != no; then
2881: if test -n "$ac_tool_prefix"; then
2882: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2883: set dummy ${ac_tool_prefix}strip; ac_word=$2
2884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885: $as_echo_n "checking for $ac_word... " >&6; }
2886: if ${ac_cv_prog_STRIP+:} false; then :
2887: $as_echo_n "(cached) " >&6
2888: else
2889: if test -n "$STRIP"; then
2890: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2891: else
2892: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893: for as_dir in $PATH
2894: do
2895: IFS=$as_save_IFS
2896: test -z "$as_dir" && as_dir=.
2897: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2898: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2899: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2900: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901: break 2
2902: fi
2903: done
2904: done
2905: IFS=$as_save_IFS
2906:
2907: fi
2908: fi
2909: STRIP=$ac_cv_prog_STRIP
2910: if test -n "$STRIP"; then
2911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2912: $as_echo "$STRIP" >&6; }
2913: else
2914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915: $as_echo "no" >&6; }
2916: fi
2917:
2918:
2919: fi
2920: if test -z "$ac_cv_prog_STRIP"; then
2921: ac_ct_STRIP=$STRIP
2922: # Extract the first word of "strip", so it can be a program name with args.
2923: set dummy strip; ac_word=$2
2924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925: $as_echo_n "checking for $ac_word... " >&6; }
2926: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2927: $as_echo_n "(cached) " >&6
2928: else
2929: if test -n "$ac_ct_STRIP"; then
2930: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2931: else
2932: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933: for as_dir in $PATH
2934: do
2935: IFS=$as_save_IFS
2936: test -z "$as_dir" && as_dir=.
2937: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2938: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2939: ac_cv_prog_ac_ct_STRIP="strip"
2940: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941: break 2
2942: fi
2943: done
2944: done
2945: IFS=$as_save_IFS
2946:
2947: fi
2948: fi
2949: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2950: if test -n "$ac_ct_STRIP"; then
2951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2952: $as_echo "$ac_ct_STRIP" >&6; }
2953: else
2954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955: $as_echo "no" >&6; }
2956: fi
2957:
2958: if test "x$ac_ct_STRIP" = x; then
2959: STRIP=":"
2960: else
2961: case $cross_compiling:$ac_tool_warned in
2962: yes:)
2963: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965: ac_tool_warned=yes ;;
2966: esac
2967: STRIP=$ac_ct_STRIP
2968: fi
2969: else
2970: STRIP="$ac_cv_prog_STRIP"
2971: fi
2972:
2973: fi
2974: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2975:
2976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2977: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2978: if test -z "$MKDIR_P"; then
2979: if ${ac_cv_path_mkdir+:} false; then :
2980: $as_echo_n "(cached) " >&6
2981: else
2982: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2984: do
2985: IFS=$as_save_IFS
2986: test -z "$as_dir" && as_dir=.
2987: for ac_prog in mkdir gmkdir; do
2988: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2989: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.150 moko 2990: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2991: 'mkdir (GNU coreutils) '* | \
2992: 'mkdir (coreutils) '* | \
2993: 'mkdir (fileutils) '4.1*)
2994: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2995: break 3;;
2996: esac
2997: done
2998: done
2999: done
3000: IFS=$as_save_IFS
3001:
3002: fi
3003:
3004: test -d ./--version && rmdir ./--version
3005: if test "${ac_cv_path_mkdir+set}" = set; then
3006: MKDIR_P="$ac_cv_path_mkdir -p"
3007: else
3008: # As a last resort, use the slow shell script. Don't cache a
3009: # value for MKDIR_P within a source directory, because that will
3010: # break other packages using the cache if that directory is
3011: # removed, or if the value is a relative name.
3012: MKDIR_P="$ac_install_sh -d"
3013: fi
3014: fi
3015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3016: $as_echo "$MKDIR_P" >&6; }
3017:
3018: for ac_prog in gawk mawk nawk awk
1.62 paf 3019: do
3020: # Extract the first word of "$ac_prog", so it can be a program name with args.
3021: set dummy $ac_prog; ac_word=$2
1.150 moko 3022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023: $as_echo_n "checking for $ac_word... " >&6; }
3024: if ${ac_cv_prog_AWK+:} false; then :
3025: $as_echo_n "(cached) " >&6
1.62 paf 3026: else
3027: if test -n "$AWK"; then
3028: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3029: else
3030: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031: for as_dir in $PATH
3032: do
3033: IFS=$as_save_IFS
3034: test -z "$as_dir" && as_dir=.
1.150 moko 3035: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3036: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3037: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3038: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3039: break 2
3040: fi
3041: done
1.150 moko 3042: done
3043: IFS=$as_save_IFS
1.62 paf 3044:
3045: fi
3046: fi
3047: AWK=$ac_cv_prog_AWK
3048: if test -n "$AWK"; then
1.150 moko 3049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3050: $as_echo "$AWK" >&6; }
1.62 paf 3051: else
1.150 moko 3052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053: $as_echo "no" >&6; }
1.62 paf 3054: fi
1.1 paf 3055:
1.150 moko 3056:
1.62 paf 3057: test -n "$AWK" && break
3058: done
1.1 paf 3059:
1.150 moko 3060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3061: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3062: set x ${MAKE-make}
3063: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3064: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3065: $as_echo_n "(cached) " >&6
1.1 paf 3066: else
1.62 paf 3067: cat >conftest.make <<\_ACEOF
1.150 moko 3068: SHELL = /bin/sh
1.1 paf 3069: all:
1.150 moko 3070: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3071: _ACEOF
1.150 moko 3072: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3073: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3074: *@@@%%%=?*=@@@%%%*)
3075: eval ac_cv_prog_make_${ac_make}_set=yes;;
3076: *)
3077: eval ac_cv_prog_make_${ac_make}_set=no;;
3078: esac
1.62 paf 3079: rm -f conftest.make
1.1 paf 3080: fi
1.150 moko 3081: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3083: $as_echo "yes" >&6; }
1.1 paf 3084: SET_MAKE=
3085: else
1.150 moko 3086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087: $as_echo "no" >&6; }
1.1 paf 3088: SET_MAKE="MAKE=${MAKE-make}"
3089: fi
3090:
1.86 paf 3091: rm -rf .tst 2>/dev/null
3092: mkdir .tst 2>/dev/null
3093: if test -d .tst; then
3094: am__leading_dot=.
3095: else
3096: am__leading_dot=_
3097: fi
3098: rmdir .tst 2>/dev/null
3099:
1.187 moko 3100: # Check whether --enable-silent-rules was given.
3101: if test "${enable_silent_rules+set}" = set; then :
3102: enableval=$enable_silent_rules;
3103: fi
3104:
3105: case $enable_silent_rules in # (((
3106: yes) AM_DEFAULT_VERBOSITY=0;;
3107: no) AM_DEFAULT_VERBOSITY=1;;
3108: *) AM_DEFAULT_VERBOSITY=1;;
3109: esac
3110: am_make=${MAKE-make}
3111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3112: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3113: if ${am_cv_make_support_nested_variables+:} false; then :
3114: $as_echo_n "(cached) " >&6
3115: else
3116: if $as_echo 'TRUE=$(BAR$(V))
3117: BAR0=false
3118: BAR1=true
3119: V=1
3120: am__doit:
3121: @$(TRUE)
3122: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3123: am_cv_make_support_nested_variables=yes
3124: else
3125: am_cv_make_support_nested_variables=no
3126: fi
3127: fi
3128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3129: $as_echo "$am_cv_make_support_nested_variables" >&6; }
3130: if test $am_cv_make_support_nested_variables = yes; then
3131: AM_V='$(V)'
3132: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3133: else
3134: AM_V=$AM_DEFAULT_VERBOSITY
3135: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3136: fi
3137: AM_BACKSLASH='\'
3138:
1.150 moko 3139: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3140: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3141: # is not polluted with repeated "-I."
3142: am__isrc=' -I$(srcdir)'
3143: # test to see if srcdir already configured
3144: if test -f $srcdir/config.status; then
3145: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3146: fi
1.62 paf 3147: fi
3148:
3149: # test whether we have cygpath
3150: if test -z "$CYGPATH_W"; then
3151: if (cygpath --version) >/dev/null 2>/dev/null; then
3152: CYGPATH_W='cygpath -w'
3153: else
3154: CYGPATH_W=echo
3155: fi
3156: fi
3157:
3158:
3159: # Define the identity of the package.
1.128 moko 3160: PACKAGE='parser'
1.186 moko 3161: VERSION='3.4.6b'
1.128 moko 3162:
3163:
3164: cat >>confdefs.h <<_ACEOF
3165: #define PACKAGE "$PACKAGE"
3166: _ACEOF
1.1 paf 3167:
3168:
1.128 moko 3169: cat >>confdefs.h <<_ACEOF
3170: #define VERSION "$VERSION"
3171: _ACEOF
3172:
1.62 paf 3173: # Some tools Automake needs.
3174:
3175: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3176:
3177:
3178: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3179:
3180:
3181: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3182:
3183:
3184: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3185:
3186:
3187: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 3188:
1.187 moko 3189: # For better backward compatibility. To be removed once Automake 1.9.x
3190: # dies out for good. For more background, see:
3191: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3192: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3193: mkdir_p='$(MKDIR_P)'
3194:
3195: # We need awk for the "check" target (and possibly the TAP driver). The
3196: # system "awk" is bad on some platforms.
3197: # Always define AMTAR for backward compatibility. Yes, it's still used
3198: # in the wild :-( We should find a proper way to deprecate it ...
3199: AMTAR='$${TAR-tar}'
3200:
3201:
3202: # We'll loop over all known methods to create a tar archive until one works.
3203: _am_tools='gnutar pax cpio none'
3204:
3205: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3206:
1.86 paf 3207:
3208:
3209:
3210:
1.62 paf 3211:
1.187 moko 3212: # POSIX will say in a future version that running "rm -f" with no argument
3213: # is OK; and we want to be able to make that assumption in our Makefile
3214: # recipes. So use an aggressive probe to check that the usage we want is
3215: # actually supported "in the wild" to an acceptable degree.
3216: # See automake bug#10828.
3217: # To make any issue more visible, cause the running configure to be aborted
3218: # by default if the 'rm' program in use doesn't match our expectations; the
3219: # user can still override this though.
3220: if rm -f && rm -fr && rm -rf; then : OK; else
3221: cat >&2 <<'END'
3222: Oops!
1.1 paf 3223:
1.187 moko 3224: Your 'rm' program seems unable to run without file operands specified
3225: on the command line, even when the '-f' option is present. This is contrary
3226: to the behaviour of most rm programs out there, and not conforming with
3227: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3228:
3229: Please tell bug-automake@gnu.org about your system, including the value
3230: of your $PATH and any error possibly output before this message. This
3231: can help us improve future automake versions.
3232:
3233: END
3234: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3235: echo 'Configuration will proceed anyway, since you have set the' >&2
3236: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3237: echo >&2
3238: else
3239: cat >&2 <<'END'
3240: Aborting the configuration process, to ensure you take notice of the issue.
3241:
3242: You can download and install GNU coreutils to get an 'rm' implementation
3243: that behaves properly: <http://www.gnu.org/software/coreutils/>.
3244:
3245: If you want to complete the configuration process using your problematic
3246: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3247: to "yes", and re-run configure.
3248:
3249: END
3250: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3251: fi
3252: fi
1.1 paf 3253:
3254:
1.128 moko 3255:
1.12 paf 3256: P3S=`cd $srcdir/src ; pwd`
1.1 paf 3257:
3258:
1.128 moko 3259:
1.41 paf 3260: # Make sure we can run config.sub.
1.150 moko 3261: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3262: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.62 paf 3263:
1.150 moko 3264: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3265: $as_echo_n "checking build system type... " >&6; }
3266: if ${ac_cv_build+:} false; then :
3267: $as_echo_n "(cached) " >&6
3268: else
3269: ac_build_alias=$build_alias
3270: test "x$ac_build_alias" = x &&
3271: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3272: test "x$ac_build_alias" = x &&
3273: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3274: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3275: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3276:
3277: fi
3278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3279: $as_echo "$ac_cv_build" >&6; }
3280: case $ac_cv_build in
3281: *-*-*) ;;
3282: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3283: esac
3284: build=$ac_cv_build
3285: ac_save_IFS=$IFS; IFS='-'
3286: set x $ac_cv_build
3287: shift
3288: build_cpu=$1
3289: build_vendor=$2
3290: shift; shift
3291: # Remember, the first character of IFS is used to create $*,
3292: # except with old shells:
3293: build_os=$*
3294: IFS=$ac_save_IFS
3295: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3296:
3297:
3298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3299: $as_echo_n "checking host system type... " >&6; }
3300: if ${ac_cv_host+:} false; then :
3301: $as_echo_n "(cached) " >&6
3302: else
3303: if test "x$host_alias" = x; then
3304: ac_cv_host=$ac_cv_build
3305: else
3306: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3307: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.62 paf 3308: fi
3309:
3310: fi
1.150 moko 3311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3312: $as_echo "$ac_cv_host" >&6; }
3313: case $ac_cv_host in
3314: *-*-*) ;;
3315: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3316: esac
1.62 paf 3317: host=$ac_cv_host
1.150 moko 3318: ac_save_IFS=$IFS; IFS='-'
3319: set x $ac_cv_host
3320: shift
3321: host_cpu=$1
3322: host_vendor=$2
3323: shift; shift
3324: # Remember, the first character of IFS is used to create $*,
3325: # except with old shells:
3326: host_os=$*
3327: IFS=$ac_save_IFS
3328: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 3329:
3330:
3331:
1.148 moko 3332: cat >>confdefs.h <<_ACEOF
3333: #define PARSER_VERSION "$VERSION (compiled on $host)"
1.147 moko 3334: _ACEOF
3335:
3336:
1.41 paf 3337:
1.67 paf 3338: case $host_os in
3339: *cygwin* )
1.150 moko 3340: $as_echo "#define CYGWIN /**/" >>confdefs.h
1.67 paf 3341: ;;
3342: esac
1.41 paf 3343:
1.128 moko 3344:
1.1 paf 3345:
1.62 paf 3346: for ac_prog in gawk mawk nawk awk
1.41 paf 3347: do
1.62 paf 3348: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3349: set dummy $ac_prog; ac_word=$2
1.150 moko 3350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351: $as_echo_n "checking for $ac_word... " >&6; }
3352: if ${ac_cv_prog_AWK+:} false; then :
3353: $as_echo_n "(cached) " >&6
1.41 paf 3354: else
3355: if test -n "$AWK"; then
3356: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3357: else
1.62 paf 3358: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359: for as_dir in $PATH
3360: do
3361: IFS=$as_save_IFS
3362: test -z "$as_dir" && as_dir=.
1.150 moko 3363: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3364: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3365: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3366: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3367: break 2
3368: fi
3369: done
1.150 moko 3370: done
3371: IFS=$as_save_IFS
1.62 paf 3372:
1.41 paf 3373: fi
3374: fi
1.62 paf 3375: AWK=$ac_cv_prog_AWK
1.41 paf 3376: if test -n "$AWK"; then
1.150 moko 3377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3378: $as_echo "$AWK" >&6; }
1.41 paf 3379: else
1.150 moko 3380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381: $as_echo "no" >&6; }
1.41 paf 3382: fi
3383:
1.150 moko 3384:
1.62 paf 3385: test -n "$AWK" && break
1.41 paf 3386: done
3387:
3388:
3389: for ac_prog in 'bison -y' byacc
3390: do
1.62 paf 3391: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3392: set dummy $ac_prog; ac_word=$2
1.150 moko 3393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394: $as_echo_n "checking for $ac_word... " >&6; }
3395: if ${ac_cv_prog_YACC+:} false; then :
3396: $as_echo_n "(cached) " >&6
1.41 paf 3397: else
3398: if test -n "$YACC"; then
3399: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3400: else
1.62 paf 3401: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402: for as_dir in $PATH
3403: do
3404: IFS=$as_save_IFS
3405: test -z "$as_dir" && as_dir=.
1.150 moko 3406: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3407: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3408: ac_cv_prog_YACC="$ac_prog"
1.150 moko 3409: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3410: break 2
3411: fi
3412: done
1.150 moko 3413: done
3414: IFS=$as_save_IFS
1.62 paf 3415:
1.41 paf 3416: fi
3417: fi
1.62 paf 3418: YACC=$ac_cv_prog_YACC
1.41 paf 3419: if test -n "$YACC"; then
1.150 moko 3420: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3421: $as_echo "$YACC" >&6; }
1.41 paf 3422: else
1.150 moko 3423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424: $as_echo "no" >&6; }
1.41 paf 3425: fi
3426:
1.150 moko 3427:
1.62 paf 3428: test -n "$YACC" && break
1.41 paf 3429: done
3430: test -n "$YACC" || YACC="yacc"
3431:
3432: if test "$YACC" != "bison -y"; then
1.150 moko 3433: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
3434: $as_echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 3435: else
1.150 moko 3436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
3437: $as_echo_n "checking bison version... " >&6; }
1.67 paf 3438: oldIFS=$IFS; IFS=.
3439: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
3440: IFS=$oldIFS
3441: if test "$1" = "1" -a "$2" -lt "25"; then
1.150 moko 3442: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
3443: $as_echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 3444: fi
1.150 moko 3445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
3446: $as_echo "$1.$2 (ok)" >&6; }
1.62 paf 3447: fi
3448:
1.150 moko 3449: ac_ext=cpp
1.66 paf 3450: ac_cpp='$CXXCPP $CPPFLAGS'
3451: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 3454: if test -z "$CXX"; then
3455: if test -n "$CCC"; then
3456: CXX=$CCC
3457: else
3458: if test -n "$ac_tool_prefix"; then
3459: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3460: do
3461: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3462: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 3463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464: $as_echo_n "checking for $ac_word... " >&6; }
3465: if ${ac_cv_prog_CXX+:} false; then :
3466: $as_echo_n "(cached) " >&6
1.62 paf 3467: else
1.66 paf 3468: if test -n "$CXX"; then
3469: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 3470: else
3471: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472: for as_dir in $PATH
3473: do
3474: IFS=$as_save_IFS
3475: test -z "$as_dir" && as_dir=.
1.150 moko 3476: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3477: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3478: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.150 moko 3479: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3480: break 2
3481: fi
3482: done
1.150 moko 3483: done
3484: IFS=$as_save_IFS
1.62 paf 3485:
3486: fi
3487: fi
1.66 paf 3488: CXX=$ac_cv_prog_CXX
3489: if test -n "$CXX"; then
1.150 moko 3490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3491: $as_echo "$CXX" >&6; }
1.62 paf 3492: else
1.150 moko 3493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494: $as_echo "no" >&6; }
1.41 paf 3495: fi
3496:
1.150 moko 3497:
1.66 paf 3498: test -n "$CXX" && break
3499: done
1.62 paf 3500: fi
1.66 paf 3501: if test -z "$CXX"; then
3502: ac_ct_CXX=$CXX
1.150 moko 3503: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3504: do
3505: # Extract the first word of "$ac_prog", so it can be a program name with args.
3506: set dummy $ac_prog; ac_word=$2
1.150 moko 3507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508: $as_echo_n "checking for $ac_word... " >&6; }
3509: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3510: $as_echo_n "(cached) " >&6
1.62 paf 3511: else
1.66 paf 3512: if test -n "$ac_ct_CXX"; then
3513: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 3514: else
3515: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516: for as_dir in $PATH
3517: do
3518: IFS=$as_save_IFS
3519: test -z "$as_dir" && as_dir=.
1.150 moko 3520: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3521: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3522: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.150 moko 3523: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3524: break 2
3525: fi
3526: done
1.150 moko 3527: done
3528: IFS=$as_save_IFS
1.62 paf 3529:
3530: fi
3531: fi
1.66 paf 3532: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3533: if test -n "$ac_ct_CXX"; then
1.150 moko 3534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3535: $as_echo "$ac_ct_CXX" >&6; }
1.62 paf 3536: else
1.150 moko 3537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538: $as_echo "no" >&6; }
1.62 paf 3539: fi
3540:
1.150 moko 3541:
1.66 paf 3542: test -n "$ac_ct_CXX" && break
3543: done
3544:
1.150 moko 3545: if test "x$ac_ct_CXX" = x; then
3546: CXX="g++"
3547: else
3548: case $cross_compiling:$ac_tool_warned in
3549: yes:)
3550: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552: ac_tool_warned=yes ;;
3553: esac
3554: CXX=$ac_ct_CXX
3555: fi
1.62 paf 3556: fi
3557:
1.150 moko 3558: fi
3559: fi
1.66 paf 3560: # Provide some information about the compiler.
1.150 moko 3561: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3562: set X $ac_compile
3563: ac_compiler=$2
3564: for ac_option in --version -v -V -qversion; do
3565: { { ac_try="$ac_compiler $ac_option >&5"
3566: case "(($ac_try" in
3567: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568: *) ac_try_echo=$ac_try;;
3569: esac
3570: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571: $as_echo "$ac_try_echo"; } >&5
3572: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 3573: ac_status=$?
1.150 moko 3574: if test -s conftest.err; then
3575: sed '10a\
3576: ... rest of stderr output deleted ...
3577: 10q' conftest.err >conftest.er1
3578: cat conftest.er1 >&5
3579: fi
3580: rm -f conftest.er1 conftest.err
3581: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582: test $ac_status = 0; }
3583: done
1.66 paf 3584:
1.150 moko 3585: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3586: /* end confdefs.h. */
3587:
3588: int
3589: main ()
3590: {
3591:
3592: ;
3593: return 0;
3594: }
3595: _ACEOF
3596: ac_clean_files_save=$ac_clean_files
1.150 moko 3597: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 3598: # Try to create an executable without -o first, disregard a.out.
3599: # It will help us diagnose broken compilers, and finding out an intuition
3600: # of exeext.
1.150 moko 3601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3602: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3603: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3604:
3605: # The possible output files:
3606: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3607:
3608: ac_rmfiles=
3609: for ac_file in $ac_files
3610: do
3611: case $ac_file in
3612: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3614: esac
3615: done
3616: rm -f $ac_rmfiles
3617:
3618: if { { ac_try="$ac_link_default"
3619: case "(($ac_try" in
3620: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621: *) ac_try_echo=$ac_try;;
3622: esac
3623: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624: $as_echo "$ac_try_echo"; } >&5
3625: (eval "$ac_link_default") 2>&5
3626: ac_status=$?
3627: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628: test $ac_status = 0; }; then :
3629: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3630: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3631: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3632: # so that the user can short-circuit this test for compilers unknown to
3633: # Autoconf.
3634: for ac_file in $ac_files ''
1.62 paf 3635: do
1.66 paf 3636: test -f "$ac_file" || continue
3637: case $ac_file in
1.150 moko 3638: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 3639: ;;
1.66 paf 3640: [ab].out )
1.86 paf 3641: # We found the default executable, but exeext='' is most
3642: # certainly right.
3643: break;;
1.66 paf 3644: *.* )
1.150 moko 3645: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3646: then :; else
3647: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648: fi
3649: # We set ac_cv_exeext here because the later test for it is not
3650: # safe: cross compilers may not add the suffix if given an `-o'
3651: # argument, so we may need to know it at that point already.
3652: # Even if this section looks crufty: it has the advantage of
3653: # actually working.
1.86 paf 3654: break;;
1.66 paf 3655: * )
1.86 paf 3656: break;;
1.66 paf 3657: esac
1.62 paf 3658: done
1.150 moko 3659: test "$ac_cv_exeext" = no && ac_cv_exeext=
3660:
1.66 paf 3661: else
1.150 moko 3662: ac_file=''
3663: fi
3664: if test -z "$ac_file"; then :
3665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666: $as_echo "no" >&6; }
3667: $as_echo "$as_me: failed program was:" >&5
1.66 paf 3668: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3669:
1.150 moko 3670: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672: as_fn_error 77 "C++ compiler cannot create executables
3673: See \`config.log' for more details" "$LINENO" 5; }
3674: else
3675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676: $as_echo "yes" >&6; }
1.1 paf 3677: fi
1.150 moko 3678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3679: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3681: $as_echo "$ac_file" >&6; }
1.66 paf 3682: ac_exeext=$ac_cv_exeext
1.62 paf 3683:
1.150 moko 3684: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 3685: ac_clean_files=$ac_clean_files_save
1.150 moko 3686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3687: $as_echo_n "checking for suffix of executables... " >&6; }
3688: if { { ac_try="$ac_link"
3689: case "(($ac_try" in
3690: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691: *) ac_try_echo=$ac_try;;
3692: esac
3693: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694: $as_echo "$ac_try_echo"; } >&5
3695: (eval "$ac_link") 2>&5
1.62 paf 3696: ac_status=$?
1.150 moko 3697: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698: test $ac_status = 0; }; then :
1.62 paf 3699: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3700: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3701: # work properly (i.e., refer to `conftest.exe'), while it won't with
3702: # `rm'.
3703: for ac_file in conftest.exe conftest conftest.*; do
3704: test -f "$ac_file" || continue
3705: case $ac_file in
1.150 moko 3706: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 3707: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 3708: break;;
1.62 paf 3709: * ) break;;
3710: esac
3711: done
3712: else
1.150 moko 3713: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3716: See \`config.log' for more details" "$LINENO" 5; }
3717: fi
3718: rm -f conftest conftest$ac_cv_exeext
3719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3720: $as_echo "$ac_cv_exeext" >&6; }
1.62 paf 3721:
3722: rm -f conftest.$ac_ext
3723: EXEEXT=$ac_cv_exeext
3724: ac_exeext=$EXEEXT
1.150 moko 3725: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726: /* end confdefs.h. */
3727: #include <stdio.h>
3728: int
3729: main ()
3730: {
3731: FILE *f = fopen ("conftest.out", "w");
3732: return ferror (f) || fclose (f) != 0;
3733:
3734: ;
3735: return 0;
3736: }
3737: _ACEOF
3738: ac_clean_files="$ac_clean_files conftest.out"
3739: # Check that the compiler produces executables we can run. If not, either
3740: # the compiler is broken, or we cross compile.
3741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3742: $as_echo_n "checking whether we are cross compiling... " >&6; }
3743: if test "$cross_compiling" != yes; then
3744: { { ac_try="$ac_link"
3745: case "(($ac_try" in
3746: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747: *) ac_try_echo=$ac_try;;
3748: esac
3749: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750: $as_echo "$ac_try_echo"; } >&5
3751: (eval "$ac_link") 2>&5
3752: ac_status=$?
3753: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754: test $ac_status = 0; }
3755: if { ac_try='./conftest$ac_cv_exeext'
3756: { { case "(($ac_try" in
3757: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758: *) ac_try_echo=$ac_try;;
3759: esac
3760: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761: $as_echo "$ac_try_echo"; } >&5
3762: (eval "$ac_try") 2>&5
3763: ac_status=$?
3764: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765: test $ac_status = 0; }; }; then
3766: cross_compiling=no
3767: else
3768: if test "$cross_compiling" = maybe; then
3769: cross_compiling=yes
3770: else
3771: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773: as_fn_error $? "cannot run C++ compiled programs.
3774: If you meant to cross compile, use \`--host'.
3775: See \`config.log' for more details" "$LINENO" 5; }
3776: fi
3777: fi
3778: fi
3779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3780: $as_echo "$cross_compiling" >&6; }
3781:
3782: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3783: ac_clean_files=$ac_clean_files_save
3784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3785: $as_echo_n "checking for suffix of object files... " >&6; }
3786: if ${ac_cv_objext+:} false; then :
3787: $as_echo_n "(cached) " >&6
1.62 paf 3788: else
1.150 moko 3789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3790: /* end confdefs.h. */
3791:
3792: int
3793: main ()
3794: {
3795:
3796: ;
3797: return 0;
3798: }
3799: _ACEOF
3800: rm -f conftest.o conftest.obj
1.150 moko 3801: if { { ac_try="$ac_compile"
3802: case "(($ac_try" in
3803: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804: *) ac_try_echo=$ac_try;;
3805: esac
3806: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807: $as_echo "$ac_try_echo"; } >&5
3808: (eval "$ac_compile") 2>&5
3809: ac_status=$?
3810: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811: test $ac_status = 0; }; then :
3812: for ac_file in conftest.o conftest.obj conftest.*; do
3813: test -f "$ac_file" || continue;
1.62 paf 3814: case $ac_file in
1.150 moko 3815: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 3816: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3817: break;;
3818: esac
3819: done
3820: else
1.150 moko 3821: $as_echo "$as_me: failed program was:" >&5
1.62 paf 3822: sed 's/^/| /' conftest.$ac_ext >&5
3823:
1.150 moko 3824: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826: as_fn_error $? "cannot compute suffix of object files: cannot compile
3827: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 3828: fi
3829: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3830: fi
1.150 moko 3831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3832: $as_echo "$ac_cv_objext" >&6; }
1.66 paf 3833: OBJEXT=$ac_cv_objext
3834: ac_objext=$OBJEXT
1.150 moko 3835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3836: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3837: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3838: $as_echo_n "(cached) " >&6
1.62 paf 3839: else
1.150 moko 3840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3841: /* end confdefs.h. */
1.66 paf 3842:
1.62 paf 3843: int
3844: main ()
3845: {
1.66 paf 3846: #ifndef __GNUC__
3847: choke me
3848: #endif
3849:
1.62 paf 3850: ;
3851: return 0;
3852: }
3853: _ACEOF
1.150 moko 3854: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3855: ac_compiler_gnu=yes
1.62 paf 3856: else
1.150 moko 3857: ac_compiler_gnu=no
1.1 paf 3858: fi
1.150 moko 3859: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3860: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 3861:
3862: fi
1.150 moko 3863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3864: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3865: if test $ac_compiler_gnu = yes; then
3866: GXX=yes
3867: else
3868: GXX=
3869: fi
1.66 paf 3870: ac_test_CXXFLAGS=${CXXFLAGS+set}
3871: ac_save_CXXFLAGS=$CXXFLAGS
1.150 moko 3872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3873: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3874: if ${ac_cv_prog_cxx_g+:} false; then :
3875: $as_echo_n "(cached) " >&6
3876: else
3877: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3878: ac_cxx_werror_flag=yes
3879: ac_cv_prog_cxx_g=no
3880: CXXFLAGS="-g"
3881: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3882: /* end confdefs.h. */
1.1 paf 3883:
1.66 paf 3884: int
3885: main ()
3886: {
1.1 paf 3887:
1.66 paf 3888: ;
3889: return 0;
3890: }
1.62 paf 3891: _ACEOF
1.150 moko 3892: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3893: ac_cv_prog_cxx_g=yes
3894: else
1.150 moko 3895: CXXFLAGS=""
3896: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897: /* end confdefs.h. */
1.66 paf 3898:
1.62 paf 3899: int
3900: main ()
3901: {
1.150 moko 3902:
1.62 paf 3903: ;
3904: return 0;
3905: }
3906: _ACEOF
1.150 moko 3907: if ac_fn_cxx_try_compile "$LINENO"; then :
3908:
1.1 paf 3909: else
1.150 moko 3910: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3911: CXXFLAGS="-g"
3912: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913: /* end confdefs.h. */
1.62 paf 3914:
3915: int
3916: main ()
3917: {
1.150 moko 3918:
1.62 paf 3919: ;
3920: return 0;
3921: }
3922: _ACEOF
1.150 moko 3923: if ac_fn_cxx_try_compile "$LINENO"; then :
3924: ac_cv_prog_cxx_g=yes
3925: fi
3926: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927: fi
3928: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929: fi
3930: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3932: fi
3933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3934: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3935: if test "$ac_test_CXXFLAGS" = set; then
3936: CXXFLAGS=$ac_save_CXXFLAGS
3937: elif test $ac_cv_prog_cxx_g = yes; then
3938: if test "$GXX" = yes; then
3939: CXXFLAGS="-g -O2"
3940: else
3941: CXXFLAGS="-g"
3942: fi
1.1 paf 3943: else
1.150 moko 3944: if test "$GXX" = yes; then
3945: CXXFLAGS="-O2"
3946: else
3947: CXXFLAGS=
3948: fi
1.1 paf 3949: fi
1.62 paf 3950: ac_ext=c
3951: ac_cpp='$CPP $CPPFLAGS'
3952: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 3955: DEPDIR="${am__leading_dot}deps"
1.62 paf 3956:
1.150 moko 3957: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 3958:
3959:
3960: am_make=${MAKE-make}
3961: cat > confinc << 'END'
1.86 paf 3962: am__doit:
1.150 moko 3963: @echo this is the am__doit target
1.86 paf 3964: .PHONY: am__doit
1.62 paf 3965: END
3966: # If we don't find an include directive, just comment out the code.
1.150 moko 3967: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3968: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.62 paf 3969: am__include="#"
3970: am__quote=
3971: _am_result=none
3972: # First try GNU make style include.
3973: echo "include confinc" > confmf
1.187 moko 3974: # Ignore all kinds of additional output from 'make'.
1.150 moko 3975: case `$am_make -s -f confmf 2> /dev/null` in #(
3976: *the\ am__doit\ target*)
3977: am__include=include
3978: am__quote=
3979: _am_result=GNU
3980: ;;
3981: esac
1.62 paf 3982: # Now try BSD make style include.
3983: if test "$am__include" = "#"; then
3984: echo '.include "confinc"' > confmf
1.150 moko 3985: case `$am_make -s -f confmf 2> /dev/null` in #(
3986: *the\ am__doit\ target*)
3987: am__include=.include
3988: am__quote="\""
3989: _am_result=BSD
3990: ;;
3991: esac
1.62 paf 3992: fi
3993:
3994:
1.150 moko 3995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3996: $as_echo "$_am_result" >&6; }
1.62 paf 3997: rm -f confinc confmf
3998:
1.150 moko 3999: # Check whether --enable-dependency-tracking was given.
4000: if test "${enable_dependency_tracking+set}" = set; then :
4001: enableval=$enable_dependency_tracking;
4002: fi
1.62 paf 4003:
4004: if test "x$enable_dependency_tracking" != xno; then
4005: am_depcomp="$ac_aux_dir/depcomp"
4006: AMDEPBACKSLASH='\'
1.187 moko 4007: am__nodep='_no'
1.1 paf 4008: fi
1.150 moko 4009: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 4010: AMDEP_TRUE=
4011: AMDEP_FALSE='#'
4012: else
4013: AMDEP_TRUE='#'
4014: AMDEP_FALSE=
4015: fi
1.1 paf 4016:
4017:
4018:
1.66 paf 4019: depcc="$CXX" am_compiler_list=
1.1 paf 4020:
1.150 moko 4021: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4022: $as_echo_n "checking dependency style of $depcc... " >&6; }
4023: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4024: $as_echo_n "(cached) " >&6
1.62 paf 4025: else
4026: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4027: # We make a subdir and do the tests there. Otherwise we can end up
4028: # making bogus files that we don't know about and never remove. For
4029: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4030: # making a dummy file named 'D' -- because '-MD' means "put the output
4031: # in D".
4032: rm -rf conftest.dir
1.62 paf 4033: mkdir conftest.dir
4034: # Copy depcomp to subdir because otherwise we won't find it if we're
4035: # using a relative directory.
4036: cp "$am_depcomp" conftest.dir
4037: cd conftest.dir
1.86 paf 4038: # We will build objects and dependencies in a subdirectory because
4039: # it helps to detect inapplicable dependency modes. For instance
4040: # both Tru64's cc and ICC support -MD to output dependencies as a
4041: # side effect of compilation, but ICC will put the dependencies in
4042: # the current directory while Tru64 will put them in the object
4043: # directory.
4044: mkdir sub
1.1 paf 4045:
1.66 paf 4046: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 4047: if test "$am_compiler_list" = ""; then
4048: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 4049: fi
1.150 moko 4050: am__universal=false
4051: case " $depcc " in #(
4052: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4053: esac
4054:
1.62 paf 4055: for depmode in $am_compiler_list; do
1.86 paf 4056: # Setup a source with many dependencies, because some compilers
4057: # like to wrap large dependency lists on column 80 (with \), and
4058: # we should not choose a depcomp mode which is confused by this.
4059: #
1.62 paf 4060: # We need to recreate these files for each test, as the compiler may
4061: # overwrite some of them when testing with obscure command lines.
4062: # This happens at least with the AIX C compiler.
1.86 paf 4063: : > sub/conftest.c
4064: for i in 1 2 3 4 5 6; do
4065: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4066: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4067: # Solaris 10 /bin/sh.
4068: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4069: done
4070: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4071:
1.187 moko 4072: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4073: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4074: # handle '-M -o', and we need to detect this. Also, some Intel
4075: # versions had trouble with output in subdirs.
1.150 moko 4076: am__obj=sub/conftest.${OBJEXT-o}
4077: am__minus_obj="-o $am__obj"
1.62 paf 4078: case $depmode in
1.150 moko 4079: gcc)
4080: # This depmode causes a compiler race in universal mode.
4081: test "$am__universal" = false || continue
4082: ;;
1.62 paf 4083: nosideeffect)
1.187 moko 4084: # After this tag, mechanisms are not by side-effect, so they'll
4085: # only be used when explicitly requested.
1.62 paf 4086: if test "x$enable_dependency_tracking" = xyes; then
4087: continue
4088: else
4089: break
4090: fi
4091: ;;
1.187 moko 4092: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4093: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4094: # not run yet. These depmodes are late enough in the game, and
4095: # so weak that their functioning should not be impacted.
4096: am__obj=conftest.${OBJEXT-o}
4097: am__minus_obj=
4098: ;;
1.62 paf 4099: none) break ;;
4100: esac
4101: if depmode=$depmode \
1.150 moko 4102: source=sub/conftest.c object=$am__obj \
1.86 paf 4103: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4104: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4105: >/dev/null 2>conftest.err &&
1.150 moko 4106: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4107: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4108: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 4109: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4110: # icc doesn't choke on unknown options, it will just issue warnings
4111: # or remarks (even with -Werror). So we grep stderr for any message
4112: # that says an option was ignored or not supported.
4113: # When given -MP, icc 7.0 and 7.1 complain thusly:
4114: # icc: Command line warning: ignoring option '-M'; no argument required
4115: # The diagnosis changed in icc 8.0:
4116: # icc: Command line remark: option '-MP' not supported
4117: if (grep 'ignoring option' conftest.err ||
4118: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119: am_cv_CXX_dependencies_compiler_type=$depmode
4120: break
4121: fi
1.66 paf 4122: fi
4123: done
4124:
4125: cd ..
4126: rm -rf conftest.dir
4127: else
4128: am_cv_CXX_dependencies_compiler_type=none
4129: fi
4130:
4131: fi
1.150 moko 4132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4133: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 4134: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4135:
1.150 moko 4136: if
1.66 paf 4137: test "x$enable_dependency_tracking" != xno \
4138: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4139: am__fastdepCXX_TRUE=
4140: am__fastdepCXX_FALSE='#'
4141: else
4142: am__fastdepCXX_TRUE='#'
4143: am__fastdepCXX_FALSE=
4144: fi
4145:
4146:
4147: ac_ext=c
4148: ac_cpp='$CPP $CPPFLAGS'
4149: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152: if test -n "$ac_tool_prefix"; then
4153: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4154: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.150 moko 4155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156: $as_echo_n "checking for $ac_word... " >&6; }
4157: if ${ac_cv_prog_CC+:} false; then :
4158: $as_echo_n "(cached) " >&6
1.66 paf 4159: else
4160: if test -n "$CC"; then
4161: ac_cv_prog_CC="$CC" # Let the user override the test.
4162: else
4163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164: for as_dir in $PATH
4165: do
4166: IFS=$as_save_IFS
4167: test -z "$as_dir" && as_dir=.
1.150 moko 4168: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4169: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4170: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.150 moko 4171: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4172: break 2
4173: fi
4174: done
1.150 moko 4175: done
4176: IFS=$as_save_IFS
1.66 paf 4177:
4178: fi
4179: fi
4180: CC=$ac_cv_prog_CC
4181: if test -n "$CC"; then
1.150 moko 4182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4183: $as_echo "$CC" >&6; }
1.66 paf 4184: else
1.150 moko 4185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186: $as_echo "no" >&6; }
1.66 paf 4187: fi
4188:
1.150 moko 4189:
1.66 paf 4190: fi
4191: if test -z "$ac_cv_prog_CC"; then
4192: ac_ct_CC=$CC
4193: # Extract the first word of "gcc", so it can be a program name with args.
4194: set dummy gcc; ac_word=$2
1.150 moko 4195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196: $as_echo_n "checking for $ac_word... " >&6; }
4197: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4198: $as_echo_n "(cached) " >&6
1.66 paf 4199: else
4200: if test -n "$ac_ct_CC"; then
4201: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4202: else
4203: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204: for as_dir in $PATH
4205: do
4206: IFS=$as_save_IFS
4207: test -z "$as_dir" && as_dir=.
1.150 moko 4208: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4209: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4210: ac_cv_prog_ac_ct_CC="gcc"
1.150 moko 4211: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4212: break 2
4213: fi
4214: done
1.150 moko 4215: done
4216: IFS=$as_save_IFS
1.66 paf 4217:
4218: fi
4219: fi
4220: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4221: if test -n "$ac_ct_CC"; then
1.150 moko 4222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4223: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4224: else
1.150 moko 4225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226: $as_echo "no" >&6; }
1.62 paf 4227: fi
4228:
1.150 moko 4229: if test "x$ac_ct_CC" = x; then
4230: CC=""
4231: else
4232: case $cross_compiling:$ac_tool_warned in
4233: yes:)
4234: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4235: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4236: ac_tool_warned=yes ;;
4237: esac
4238: CC=$ac_ct_CC
4239: fi
1.66 paf 4240: else
4241: CC="$ac_cv_prog_CC"
1.1 paf 4242: fi
1.62 paf 4243:
1.66 paf 4244: if test -z "$CC"; then
1.150 moko 4245: if test -n "$ac_tool_prefix"; then
4246: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 4247: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.150 moko 4248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249: $as_echo_n "checking for $ac_word... " >&6; }
4250: if ${ac_cv_prog_CC+:} false; then :
4251: $as_echo_n "(cached) " >&6
1.66 paf 4252: else
4253: if test -n "$CC"; then
4254: ac_cv_prog_CC="$CC" # Let the user override the test.
4255: else
4256: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257: for as_dir in $PATH
4258: do
4259: IFS=$as_save_IFS
4260: test -z "$as_dir" && as_dir=.
1.150 moko 4261: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4262: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4263: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.150 moko 4264: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4265: break 2
4266: fi
4267: done
1.150 moko 4268: done
4269: IFS=$as_save_IFS
1.62 paf 4270:
1.66 paf 4271: fi
4272: fi
4273: CC=$ac_cv_prog_CC
4274: if test -n "$CC"; then
1.150 moko 4275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4276: $as_echo "$CC" >&6; }
1.62 paf 4277: else
1.150 moko 4278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279: $as_echo "no" >&6; }
1.1 paf 4280: fi
4281:
1.150 moko 4282:
1.66 paf 4283: fi
1.1 paf 4284: fi
1.66 paf 4285: if test -z "$CC"; then
4286: # Extract the first word of "cc", so it can be a program name with args.
4287: set dummy cc; ac_word=$2
1.150 moko 4288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289: $as_echo_n "checking for $ac_word... " >&6; }
4290: if ${ac_cv_prog_CC+:} false; then :
4291: $as_echo_n "(cached) " >&6
1.66 paf 4292: else
4293: if test -n "$CC"; then
4294: ac_cv_prog_CC="$CC" # Let the user override the test.
4295: else
4296: ac_prog_rejected=no
4297: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298: for as_dir in $PATH
4299: do
4300: IFS=$as_save_IFS
4301: test -z "$as_dir" && as_dir=.
1.150 moko 4302: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4303: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4304: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4305: ac_prog_rejected=yes
4306: continue
4307: fi
4308: ac_cv_prog_CC="cc"
1.150 moko 4309: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4310: break 2
4311: fi
4312: done
1.150 moko 4313: done
4314: IFS=$as_save_IFS
1.62 paf 4315:
1.66 paf 4316: if test $ac_prog_rejected = yes; then
4317: # We found a bogon in the path, so make sure we never use it.
4318: set dummy $ac_cv_prog_CC
4319: shift
4320: if test $# != 0; then
4321: # We chose a different compiler from the bogus one.
4322: # However, it has the same basename, so the bogon will be chosen
4323: # first if we set CC to just the basename; use the full file name.
4324: shift
4325: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4326: fi
4327: fi
4328: fi
4329: fi
4330: CC=$ac_cv_prog_CC
4331: if test -n "$CC"; then
1.150 moko 4332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4333: $as_echo "$CC" >&6; }
1.66 paf 4334: else
1.150 moko 4335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336: $as_echo "no" >&6; }
1.1 paf 4337: fi
4338:
1.150 moko 4339:
1.66 paf 4340: fi
4341: if test -z "$CC"; then
4342: if test -n "$ac_tool_prefix"; then
1.150 moko 4343: for ac_prog in cl.exe
1.62 paf 4344: do
4345: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4346: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 4347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348: $as_echo_n "checking for $ac_word... " >&6; }
4349: if ${ac_cv_prog_CC+:} false; then :
4350: $as_echo_n "(cached) " >&6
1.62 paf 4351: else
1.66 paf 4352: if test -n "$CC"; then
4353: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 4354: else
4355: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356: for as_dir in $PATH
4357: do
4358: IFS=$as_save_IFS
4359: test -z "$as_dir" && as_dir=.
1.150 moko 4360: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4361: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4362: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.150 moko 4363: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4364: break 2
4365: fi
4366: done
1.150 moko 4367: done
4368: IFS=$as_save_IFS
1.1 paf 4369:
1.62 paf 4370: fi
4371: fi
1.66 paf 4372: CC=$ac_cv_prog_CC
4373: if test -n "$CC"; then
1.150 moko 4374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4375: $as_echo "$CC" >&6; }
1.1 paf 4376: else
1.150 moko 4377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378: $as_echo "no" >&6; }
1.1 paf 4379: fi
4380:
1.150 moko 4381:
1.66 paf 4382: test -n "$CC" && break
1.62 paf 4383: done
4384: fi
1.66 paf 4385: if test -z "$CC"; then
4386: ac_ct_CC=$CC
1.150 moko 4387: for ac_prog in cl.exe
1.62 paf 4388: do
4389: # Extract the first word of "$ac_prog", so it can be a program name with args.
4390: set dummy $ac_prog; ac_word=$2
1.150 moko 4391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392: $as_echo_n "checking for $ac_word... " >&6; }
4393: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4394: $as_echo_n "(cached) " >&6
1.62 paf 4395: else
1.66 paf 4396: if test -n "$ac_ct_CC"; then
4397: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 4398: else
1.62 paf 4399: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400: for as_dir in $PATH
4401: do
4402: IFS=$as_save_IFS
4403: test -z "$as_dir" && as_dir=.
1.150 moko 4404: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4405: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4406: ac_cv_prog_ac_ct_CC="$ac_prog"
1.150 moko 4407: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4408: break 2
4409: fi
4410: done
1.150 moko 4411: done
4412: IFS=$as_save_IFS
1.62 paf 4413:
4414: fi
4415: fi
1.66 paf 4416: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4417: if test -n "$ac_ct_CC"; then
1.150 moko 4418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4419: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4420: else
1.150 moko 4421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422: $as_echo "no" >&6; }
1.1 paf 4423: fi
4424:
1.150 moko 4425:
1.66 paf 4426: test -n "$ac_ct_CC" && break
4427: done
4428:
1.150 moko 4429: if test "x$ac_ct_CC" = x; then
4430: CC=""
4431: else
4432: case $cross_compiling:$ac_tool_warned in
4433: yes:)
4434: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4435: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4436: ac_tool_warned=yes ;;
4437: esac
4438: CC=$ac_ct_CC
4439: fi
1.66 paf 4440: fi
4441:
4442: fi
1.62 paf 4443:
1.1 paf 4444:
1.150 moko 4445: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4447: as_fn_error $? "no acceptable C compiler found in \$PATH
4448: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 4449:
4450: # Provide some information about the compiler.
1.150 moko 4451: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4452: set X $ac_compile
4453: ac_compiler=$2
4454: for ac_option in --version -v -V -qversion; do
4455: { { ac_try="$ac_compiler $ac_option >&5"
4456: case "(($ac_try" in
4457: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458: *) ac_try_echo=$ac_try;;
4459: esac
4460: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461: $as_echo "$ac_try_echo"; } >&5
4462: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 4463: ac_status=$?
1.150 moko 4464: if test -s conftest.err; then
4465: sed '10a\
4466: ... rest of stderr output deleted ...
4467: 10q' conftest.err >conftest.er1
4468: cat conftest.er1 >&5
4469: fi
4470: rm -f conftest.er1 conftest.err
4471: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4472: test $ac_status = 0; }
4473: done
4474:
4475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4476: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4477: if ${ac_cv_c_compiler_gnu+:} false; then :
4478: $as_echo_n "(cached) " >&6
1.62 paf 4479: else
1.150 moko 4480: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4481: /* end confdefs.h. */
4482:
4483: int
4484: main ()
4485: {
4486: #ifndef __GNUC__
4487: choke me
4488: #endif
4489:
4490: ;
4491: return 0;
4492: }
4493: _ACEOF
1.150 moko 4494: if ac_fn_c_try_compile "$LINENO"; then :
1.62 paf 4495: ac_compiler_gnu=yes
4496: else
1.150 moko 4497: ac_compiler_gnu=no
1.62 paf 4498: fi
1.150 moko 4499: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 4500: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 4501:
4502: fi
1.150 moko 4503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4504: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4505: if test $ac_compiler_gnu = yes; then
4506: GCC=yes
4507: else
4508: GCC=
4509: fi
1.66 paf 4510: ac_test_CFLAGS=${CFLAGS+set}
4511: ac_save_CFLAGS=$CFLAGS
1.150 moko 4512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4513: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4514: if ${ac_cv_prog_cc_g+:} false; then :
4515: $as_echo_n "(cached) " >&6
4516: else
4517: ac_save_c_werror_flag=$ac_c_werror_flag
4518: ac_c_werror_flag=yes
4519: ac_cv_prog_cc_g=no
4520: CFLAGS="-g"
4521: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4522: /* end confdefs.h. */
4523:
4524: int
4525: main ()
4526: {
4527:
4528: ;
4529: return 0;
4530: }
4531: _ACEOF
1.150 moko 4532: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 4533: ac_cv_prog_cc_g=yes
1.62 paf 4534: else
1.150 moko 4535: CFLAGS=""
4536: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537: /* end confdefs.h. */
4538:
4539: int
4540: main ()
4541: {
1.62 paf 4542:
1.150 moko 4543: ;
4544: return 0;
4545: }
4546: _ACEOF
4547: if ac_fn_c_try_compile "$LINENO"; then :
4548:
4549: else
4550: ac_c_werror_flag=$ac_save_c_werror_flag
4551: CFLAGS="-g"
4552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553: /* end confdefs.h. */
4554:
4555: int
4556: main ()
4557: {
4558:
4559: ;
4560: return 0;
4561: }
4562: _ACEOF
4563: if ac_fn_c_try_compile "$LINENO"; then :
4564: ac_cv_prog_cc_g=yes
4565: fi
4566: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4567: fi
1.150 moko 4568: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4569: fi
1.150 moko 4570: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571: ac_c_werror_flag=$ac_save_c_werror_flag
4572: fi
4573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4574: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.66 paf 4575: if test "$ac_test_CFLAGS" = set; then
4576: CFLAGS=$ac_save_CFLAGS
4577: elif test $ac_cv_prog_cc_g = yes; then
4578: if test "$GCC" = yes; then
4579: CFLAGS="-g -O2"
1.1 paf 4580: else
1.66 paf 4581: CFLAGS="-g"
1.1 paf 4582: fi
4583: else
1.66 paf 4584: if test "$GCC" = yes; then
4585: CFLAGS="-O2"
1.1 paf 4586: else
1.66 paf 4587: CFLAGS=
1.1 paf 4588: fi
4589: fi
1.150 moko 4590: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4591: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4592: if ${ac_cv_prog_cc_c89+:} false; then :
4593: $as_echo_n "(cached) " >&6
1.66 paf 4594: else
1.150 moko 4595: ac_cv_prog_cc_c89=no
1.66 paf 4596: ac_save_CC=$CC
1.150 moko 4597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4598: /* end confdefs.h. */
4599: #include <stdarg.h>
4600: #include <stdio.h>
1.166 moko 4601: struct stat;
1.66 paf 4602: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4603: struct buf { int x; };
4604: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4605: static char *e (p, i)
4606: char **p;
4607: int i;
4608: {
4609: return p[i];
4610: }
4611: static char *f (char * (*g) (char **, int), char **p, ...)
4612: {
4613: char *s;
4614: va_list v;
4615: va_start (v,p);
4616: s = g (p, va_arg (v,int));
4617: va_end (v);
4618: return s;
4619: }
1.86 paf 4620:
4621: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4622: function prototypes and stuff, but not '\xHH' hex character constants.
4623: These don't provoke an error unfortunately, instead are silently treated
1.150 moko 4624: as 'x'. The following induces an error, until -std is added to get
1.86 paf 4625: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4626: array size at least. It's necessary to write '\x00'==0 to get something
1.150 moko 4627: that's true only with -std. */
1.86 paf 4628: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4629:
1.150 moko 4630: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4631: inside strings and character constants. */
4632: #define FOO(x) 'x'
4633: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4634:
1.66 paf 4635: int test (int i, double x);
4636: struct s1 {int (*f) (int a);};
4637: struct s2 {int (*f) (double a);};
4638: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4639: int argc;
4640: char **argv;
4641: int
4642: main ()
4643: {
4644: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4645: ;
4646: return 0;
4647: }
4648: _ACEOF
1.150 moko 4649: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4650: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 4651: do
4652: CC="$ac_save_CC $ac_arg"
1.150 moko 4653: if ac_fn_c_try_compile "$LINENO"; then :
4654: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 4655: fi
1.150 moko 4656: rm -f core conftest.err conftest.$ac_objext
4657: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 4658: done
1.150 moko 4659: rm -f conftest.$ac_ext
1.66 paf 4660: CC=$ac_save_CC
4661:
4662: fi
1.150 moko 4663: # AC_CACHE_VAL
4664: case "x$ac_cv_prog_cc_c89" in
4665: x)
4666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4667: $as_echo "none needed" >&6; } ;;
4668: xno)
4669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4670: $as_echo "unsupported" >&6; } ;;
1.66 paf 4671: *)
1.150 moko 4672: CC="$CC $ac_cv_prog_cc_c89"
4673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4674: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.66 paf 4675: esac
1.150 moko 4676: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.62 paf 4677:
4678: fi
1.66 paf 4679:
1.62 paf 4680: ac_ext=c
4681: ac_cpp='$CPP $CPPFLAGS'
4682: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685:
1.187 moko 4686: ac_ext=c
4687: ac_cpp='$CPP $CPPFLAGS'
4688: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4692: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4693: if ${am_cv_prog_cc_c_o+:} false; then :
4694: $as_echo_n "(cached) " >&6
4695: else
4696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697: /* end confdefs.h. */
4698:
4699: int
4700: main ()
4701: {
4702:
4703: ;
4704: return 0;
4705: }
4706: _ACEOF
4707: # Make sure it works both with $CC and with simple cc.
4708: # Following AC_PROG_CC_C_O, we do the test twice because some
4709: # compilers refuse to overwrite an existing .o file with -o,
4710: # though they will create one.
4711: am_cv_prog_cc_c_o=yes
4712: for am_i in 1 2; do
4713: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4714: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4715: ac_status=$?
4716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717: (exit $ac_status); } \
4718: && test -f conftest2.$ac_objext; then
4719: : OK
4720: else
4721: am_cv_prog_cc_c_o=no
4722: break
4723: fi
4724: done
4725: rm -f core conftest*
4726: unset am_i
4727: fi
4728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4729: $as_echo "$am_cv_prog_cc_c_o" >&6; }
4730: if test "$am_cv_prog_cc_c_o" != yes; then
4731: # Losing compiler, so override with the script.
4732: # FIXME: It is wrong to rewrite CC.
4733: # But if we don't then we get into trouble of one sort or another.
4734: # A longer-term fix would be to have automake use am__CC in this case,
4735: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4736: CC="$am_aux_dir/compile $CC"
4737: fi
4738: ac_ext=c
4739: ac_cpp='$CPP $CPPFLAGS'
4740: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743:
4744:
1.66 paf 4745: depcc="$CC" am_compiler_list=
1.62 paf 4746:
1.150 moko 4747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4748: $as_echo_n "checking dependency style of $depcc... " >&6; }
4749: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4750: $as_echo_n "(cached) " >&6
1.62 paf 4751: else
4752: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4753: # We make a subdir and do the tests there. Otherwise we can end up
4754: # making bogus files that we don't know about and never remove. For
4755: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4756: # making a dummy file named 'D' -- because '-MD' means "put the output
4757: # in D".
4758: rm -rf conftest.dir
1.62 paf 4759: mkdir conftest.dir
4760: # Copy depcomp to subdir because otherwise we won't find it if we're
4761: # using a relative directory.
4762: cp "$am_depcomp" conftest.dir
4763: cd conftest.dir
1.86 paf 4764: # We will build objects and dependencies in a subdirectory because
4765: # it helps to detect inapplicable dependency modes. For instance
4766: # both Tru64's cc and ICC support -MD to output dependencies as a
4767: # side effect of compilation, but ICC will put the dependencies in
4768: # the current directory while Tru64 will put them in the object
4769: # directory.
4770: mkdir sub
1.62 paf 4771:
1.66 paf 4772: am_cv_CC_dependencies_compiler_type=none
1.62 paf 4773: if test "$am_compiler_list" = ""; then
4774: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4775: fi
1.150 moko 4776: am__universal=false
4777: case " $depcc " in #(
4778: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4779: esac
4780:
1.62 paf 4781: for depmode in $am_compiler_list; do
1.86 paf 4782: # Setup a source with many dependencies, because some compilers
4783: # like to wrap large dependency lists on column 80 (with \), and
4784: # we should not choose a depcomp mode which is confused by this.
4785: #
1.62 paf 4786: # We need to recreate these files for each test, as the compiler may
4787: # overwrite some of them when testing with obscure command lines.
4788: # This happens at least with the AIX C compiler.
1.86 paf 4789: : > sub/conftest.c
4790: for i in 1 2 3 4 5 6; do
4791: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4792: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4793: # Solaris 10 /bin/sh.
4794: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4795: done
4796: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4797:
1.187 moko 4798: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4799: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4800: # handle '-M -o', and we need to detect this. Also, some Intel
4801: # versions had trouble with output in subdirs.
1.150 moko 4802: am__obj=sub/conftest.${OBJEXT-o}
4803: am__minus_obj="-o $am__obj"
1.62 paf 4804: case $depmode in
1.150 moko 4805: gcc)
4806: # This depmode causes a compiler race in universal mode.
4807: test "$am__universal" = false || continue
4808: ;;
1.62 paf 4809: nosideeffect)
1.187 moko 4810: # After this tag, mechanisms are not by side-effect, so they'll
4811: # only be used when explicitly requested.
1.62 paf 4812: if test "x$enable_dependency_tracking" = xyes; then
4813: continue
4814: else
4815: break
4816: fi
4817: ;;
1.187 moko 4818: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4819: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4820: # not run yet. These depmodes are late enough in the game, and
4821: # so weak that their functioning should not be impacted.
4822: am__obj=conftest.${OBJEXT-o}
4823: am__minus_obj=
4824: ;;
1.62 paf 4825: none) break ;;
4826: esac
1.66 paf 4827: if depmode=$depmode \
1.150 moko 4828: source=sub/conftest.c object=$am__obj \
1.86 paf 4829: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4830: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4831: >/dev/null 2>conftest.err &&
1.150 moko 4832: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4833: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4834: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 4835: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4836: # icc doesn't choke on unknown options, it will just issue warnings
4837: # or remarks (even with -Werror). So we grep stderr for any message
4838: # that says an option was ignored or not supported.
4839: # When given -MP, icc 7.0 and 7.1 complain thusly:
4840: # icc: Command line warning: ignoring option '-M'; no argument required
4841: # The diagnosis changed in icc 8.0:
4842: # icc: Command line remark: option '-MP' not supported
4843: if (grep 'ignoring option' conftest.err ||
4844: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4845: am_cv_CC_dependencies_compiler_type=$depmode
4846: break
4847: fi
1.66 paf 4848: fi
4849: done
4850:
4851: cd ..
4852: rm -rf conftest.dir
4853: else
4854: am_cv_CC_dependencies_compiler_type=none
4855: fi
4856:
4857: fi
1.150 moko 4858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4859: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 4860: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4861:
1.150 moko 4862: if
1.66 paf 4863: test "x$enable_dependency_tracking" != xno \
4864: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4865: am__fastdepCC_TRUE=
4866: am__fastdepCC_FALSE='#'
4867: else
4868: am__fastdepCC_TRUE='#'
4869: am__fastdepCC_FALSE=
4870: fi
4871:
4872:
1.128 moko 4873:
1.66 paf 4874: ac_ext=c
4875: ac_cpp='$CPP $CPPFLAGS'
4876: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879:
1.67 paf 4880:
1.62 paf 4881:
1.150 moko 4882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
4883: $as_echo_n "checking for dynamic-link library extension... " >&6; }
1.128 moko 4884: case "$host_os" in
1.158 moko 4885: *cygwin* ) dll_extension=dll;;
4886: * ) dll_extension=so
1.66 paf 4887: esac
1.150 moko 4888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
4889: $as_echo "$dll_extension" >&6; }
1.1 paf 4890:
1.71 paf 4891:
4892:
4893:
1.150 moko 4894: # Check whether --with-build-warnings was given.
4895: if test "${with_build_warnings+set}" = set; then :
4896: withval=$with_build_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
4897: $as_echo "$as_me: WARNING: enabling compiler warnings" >&2;}
1.183 moko 4898: CXXFLAGS="$CXXFLAGS -Wextra -Wall -Wno-parentheses"
1.71 paf 4899:
1.150 moko 4900: fi
4901:
1.1 paf 4902:
4903:
1.182 moko 4904: # Check whether --with-coverage was given.
4905: if test "${with_coverage+set}" = set; then :
4906: withval=$with_coverage; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
4907: $as_echo "$as_me: WARNING: enabling gcov support" >&2;}
4908: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
4909: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
4910: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
4911: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
4912: LDFLAGS="$LDFLAGS -lgcov"
4913:
4914: fi
4915:
4916:
4917:
4918: # Check whether --with-profiler was given.
4919: if test "${with_profiler+set}" = set; then :
4920: withval=$with_profiler; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
4921: $as_echo "$as_me: WARNING: enabling gprof support" >&2;}
1.185 moko 4922: CFLAGS="$CFLAGS -O0 -pg"
4923: CXXFLAGS="$CXXFLAGS -O0 -pg"
1.182 moko 4924:
4925: fi
4926:
4927:
4928:
1.150 moko 4929: # Check whether --with-assertions was given.
4930: if test "${with_assertions+set}" = set; then :
4931: withval=$with_assertions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
4932: $as_echo "$as_me: WARNING: enabling assertions" >&2;}
1.67 paf 4933:
4934: else
4935:
1.150 moko 4936: $as_echo "#define NDEBUG /**/" >>confdefs.h
4937:
1.67 paf 4938:
1.150 moko 4939: fi
1.67 paf 4940:
4941:
1.94 misha 4942:
1.150 moko 4943: # Check whether --with-sjlj-exceptions was given.
4944: if test "${with_sjlj_exceptions+set}" = set; then :
4945: withval=$with_sjlj_exceptions;
4946: $as_echo "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 4947:
4948:
1.150 moko 4949: fi
1.128 moko 4950:
4951:
1.62 paf 4952:
1.150 moko 4953: # Check whether --enable-safe-mode was given.
4954: if test "${enable_safe_mode+set}" = set; then :
4955: enableval=$enable_safe_mode;
1.67 paf 4956: SAFE_MODE=$enableval
1.60 paf 4957:
1.1 paf 4958:
1.150 moko 4959: fi
4960:
1.128 moko 4961:
1.60 paf 4962: if test "$SAFE_MODE" = "no"; then
1.150 moko 4963: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
4964: $as_echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 4965: else
1.62 paf 4966:
1.150 moko 4967: $as_echo "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 4968:
4969: fi
4970:
1.94 misha 4971:
1.150 moko 4972: # Check whether --enable-execs was given.
4973: if test "${enable_execs+set}" = set; then :
4974: enableval=$enable_execs;
1.13 paf 4975: if test "$enableval" = "no"; then
1.150 moko 4976: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
4977: $as_echo "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 4978:
1.150 moko 4979: $as_echo "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 4980:
4981: fi
4982:
4983:
1.150 moko 4984: fi
1.13 paf 4985:
1.60 paf 4986:
1.94 misha 4987:
1.150 moko 4988: # Check whether --enable-stringstream was given.
4989: if test "${enable_stringstream+set}" = set; then :
4990: enableval=$enable_stringstream;
1.94 misha 4991: if test "$enableval" = "no"; then
1.150 moko 4992: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
4993: $as_echo "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 4994:
1.150 moko 4995: $as_echo "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 4996:
4997: fi
4998:
4999:
1.150 moko 5000: fi
1.94 misha 5001:
5002:
1.62 paf 5003:
1.17 paf 5004:
1.150 moko 5005: # Check whether --with-gc was given.
5006: if test "${with_gc+set}" = set; then :
5007: withval=$with_gc;
1.17 paf 5008:
1.142 moko 5009: GC=$withval
5010: GC_LIBS="$GC/libgc.la"
5011:
5012: if test -f $GC_LIBS; then
5013: GC_OK="yes"
5014: else
5015: GC_LIBS="-L$GC -lgc"
5016: fi
1.62 paf 5017:
1.151 moko 5018: if test "$GC" = "yes"; then
5019: GC=""
5020: GC_LIBS="-lgc"
5021: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
5022: $as_echo "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
5023: fi
5024:
1.142 moko 5025: else
1.17 paf 5026:
1.142 moko 5027: GC_LIBS="-lgc"
1.150 moko 5028: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
5029: $as_echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
5030:
5031: fi
1.17 paf 5032:
5033:
1.142 moko 5034: if test -z "$GC_OK"; then
1.150 moko 5035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
5036: $as_echo_n "checking for libgc... " >&6; }
1.138 moko 5037: SAVE_LIBS=$LIBS
5038: LIBS="$LIBS $GC_LIBS"
1.128 moko 5039:
1.150 moko 5040: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 5041: /* end confdefs.h. */
1.142 moko 5042: extern int GC_dont_gc;
1.67 paf 5043: int
5044: main ()
5045: {
1.142 moko 5046: GC_dont_gc=0;
1.67 paf 5047: ;
5048: return 0;
5049: }
5050: _ACEOF
1.150 moko 5051: if ac_fn_c_try_link "$LINENO"; then :
5052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053: $as_echo "yes" >&6; }
1.67 paf 5054:
5055: else
1.150 moko 5056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057: $as_echo "no" >&6; }
1.142 moko 5058: if test -z "$GC"; then
1.151 moko 5059: as_fn_error $? "please specify path to libgc: --with-gc=D" "$LINENO" 5
1.142 moko 5060: else
1.150 moko 5061: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 5062: fi
1.67 paf 5063:
5064: fi
1.150 moko 5065: rm -f core conftest.err conftest.$ac_objext \
5066: conftest$ac_exeext conftest.$ac_ext
1.138 moko 5067: LIBS=$SAVE_LIBS
5068: fi
1.67 paf 5069:
5070:
1.1 paf 5071:
1.15 paf 5072:
1.142 moko 5073:
1.150 moko 5074: # Check whether --with-pcre was given.
5075: if test "${with_pcre+set}" = set; then :
5076: withval=$with_pcre;
1.100 misha 5077: PCRE=$withval
1.142 moko 5078: PCRE_INCLUDES="-I$PCRE/include"
5079: PCRE_LIBS="$PCRE/lib/libpcre.la"
1.100 misha 5080:
1.142 moko 5081: if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
5082: PCRE_OK="yes"
5083: else
5084: PCRE_LIBS="-L$PCRE -lpcre"
1.100 misha 5085: fi
5086:
1.151 moko 5087: if test "$PCRE" = "yes"; then
5088: PCRE=""
5089: PCRE_LIBS="-lpcre"
5090: PCRE_INCLUDES=""
5091: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
5092: $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
5093: fi
1.142 moko 5094:
5095: else
5096:
5097: PCRE_LIBS="-lpcre"
1.149 moko 5098: PCRE_INCLUDES=""
1.150 moko 5099: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
5100: $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
5101:
5102: fi
1.100 misha 5103:
5104:
1.142 moko 5105: if test -z "$PCRE_OK"; then
1.150 moko 5106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prce" >&5
5107: $as_echo_n "checking for prce... " >&6; }
1.142 moko 5108: SAVE_LIBS=$LIBS
5109: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.150 moko 5110: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5111: /* end confdefs.h. */
5112: #include <pcre.h>
5113: int
5114: main ()
5115: {
5116: const char *v=pcre_version();
5117: ;
5118: return 0;
5119: }
5120: _ACEOF
1.150 moko 5121: if ac_fn_c_try_link "$LINENO"; then :
5122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123: $as_echo "yes" >&6; }
1.142 moko 5124:
5125: else
1.150 moko 5126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127: $as_echo "no" >&6; }
1.142 moko 5128: if test -z "$PCRE"; then
1.151 moko 5129: as_fn_error $? "please specify path to PCRE: --with-pcre=D" "$LINENO" 5
1.142 moko 5130: else
1.150 moko 5131: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 5132: fi
5133:
5134: fi
1.150 moko 5135: rm -f core conftest.err conftest.$ac_objext \
5136: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5137: LIBS=$SAVE_LIBS
5138: fi
1.100 misha 5139:
5140:
5141:
5142:
1.66 paf 5143:
5144:
1.150 moko 5145: # Check whether --with-xml was given.
5146: if test "${with_xml+set}" = set; then :
5147: withval=$with_xml;
1.66 paf 5148:
1.142 moko 5149: XML=$withval
5150: XML_LIBS="-lxml2 -lxslt -lexslt"
5151:
5152: if test -z "$XML" -o "$XML" = "yes"; then
5153: XML=""
5154: XML_INCLUDES="-I/usr/include/libxml2"
1.150 moko 5155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
5156: $as_echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 5157: else
5158: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.67 paf 5159:
1.142 moko 5160: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
5161: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
5162: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
5163: XML_OK="yes"
5164: fi
1.67 paf 5165: fi
1.66 paf 5166:
1.142 moko 5167: if test -z "$XML_OK"; then
1.150 moko 5168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
5169: $as_echo_n "checking for xml... " >&6; }
1.142 moko 5170: SAVE_LIBS=$LIBS
5171: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.150 moko 5172: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5173: /* end confdefs.h. */
5174: #include <libxslt/xslt.h>
5175: int
5176: main ()
5177: {
5178: const char *v=xsltEngineVersion;
5179: ;
5180: return 0;
5181: }
5182: _ACEOF
1.150 moko 5183: if ac_fn_c_try_link "$LINENO"; then :
5184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5185: $as_echo "yes" >&6; }
1.142 moko 5186:
5187: else
1.150 moko 5188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189: $as_echo "no" >&6; }
1.142 moko 5190: if test -z "$XML"; then
1.151 moko 5191: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=D" "$LINENO" 5
1.142 moko 5192: else
1.150 moko 5193: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 5194: fi
5195:
5196: fi
1.150 moko 5197: rm -f core conftest.err conftest.$ac_objext \
5198: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5199: LIBS=$SAVE_LIBS
1.67 paf 5200: fi
1.66 paf 5201:
1.150 moko 5202: $as_echo "#define XML /**/" >>confdefs.h
5203:
1.66 paf 5204:
1.150 moko 5205: fi
1.66 paf 5206:
1.90 paf 5207:
1.66 paf 5208:
5209:
5210:
5211:
1.90 paf 5212:
1.154 moko 5213: # Check whether --with-mailreceive was given.
5214: if test "${with_mailreceive+set}" = set; then :
5215: withval=$with_mailreceive;
5216: MIME=$withval
1.155 moko 5217: GLIB="glib-2.0"
1.154 moko 5218: GMIME="gmime-2.4"
5219:
5220: if test -z "$MIME" -o "$MIME" = "yes"; then
5221: MIME=""
5222: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5223: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
5224: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
5225: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
5226: else
1.155 moko 5227: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 5228: MIME_LIBS="-l$GMIME"
5229: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
5230: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 5231: if test -f $MIME/lib/lib$GLIB.la; then
5232: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
5233: else
5234: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
5235: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
5236: fi
1.154 moko 5237: MIME_OK="yes"
5238: fi
1.67 paf 5239: fi
1.66 paf 5240:
1.154 moko 5241: if test -z "$MIME_OK"; then
5242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
5243: $as_echo_n "checking for mime... " >&6; }
5244: SAVE_LIBS=$LIBS
5245: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
5246: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247: /* end confdefs.h. */
5248: #include <gmime/gmime.h>
5249: int
5250: main ()
5251: {
5252: guint v=gmime_major_version;
5253: ;
5254: return 0;
5255: }
5256: _ACEOF
5257: if ac_fn_c_try_link "$LINENO"; then :
5258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5259: $as_echo "yes" >&6; }
1.66 paf 5260:
1.154 moko 5261: else
5262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263: $as_echo "no" >&6; }
5264: if test -z "$MIME"; then
5265: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=D" "$LINENO" 5
5266: else
5267: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 5268: fi
1.66 paf 5269:
1.150 moko 5270: fi
1.154 moko 5271: rm -f core conftest.err conftest.$ac_objext \
5272: conftest$ac_exeext conftest.$ac_ext
5273: LIBS=$SAVE_LIBS
1.67 paf 5274: fi
1.66 paf 5275:
1.150 moko 5276: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 5277:
5278:
1.154 moko 5279: fi
1.66 paf 5280:
5281:
5282:
5283:
5284:
5285:
5286:
1.150 moko 5287: # Check whether --with-sendmail was given.
5288: if test "${with_sendmail+set}" = set; then :
5289: withval=$with_sendmail;
1.66 paf 5290: cat >>confdefs.h <<_ACEOF
5291: #define PA_FORCED_SENDMAIL "$withval"
5292: _ACEOF
5293:
5294:
1.150 moko 5295: fi
1.66 paf 5296:
5297:
5298:
1.122 moko 5299:
1.150 moko 5300: # Check whether --with-apache was given.
5301: if test "${with_apache+set}" = set; then :
5302: withval=$with_apache;
1.122 moko 5303: APXS=$withval
5304:
5305: if test -z "$APXS" -o "$APXS" = "yes"; then
5306: APXS=`which apxs 2>/dev/null`
1.142 moko 5307: if test -z "$APXS"; then
5308: APXS=`which apxs2 2>/dev/null`
5309: fi
5310: fi
1.122 moko 5311:
5312: APACHE=`$APXS -q TARGET 2>/dev/null`
5313:
5314: if test -z "$APACHE"; then
1.150 moko 5315: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5316: fi
1.7 paf 5317:
1.122 moko 5318: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5319: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5320: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5321: APACHE_CFLAGS=`$APXS -q CFLAGS`
5322:
1.150 moko 5323: fi
1.7 paf 5324:
5325:
1.62 paf 5326:
1.122 moko 5327:
1.150 moko 5328: if test -n "$APACHE"; then
1.122 moko 5329: COMPILE_APACHE_MODULE_TRUE=
5330: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5331: else
1.122 moko 5332: COMPILE_APACHE_MODULE_TRUE='#'
5333: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5334: fi
1.1 paf 5335:
5336:
5337:
1.62 paf 5338:
5339:
1.7 paf 5340:
1.1 paf 5341:
5342:
5343:
1.62 paf 5344:
1.128 moko 5345: case `pwd` in
5346: *\ * | *\ *)
1.150 moko 5347: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5348: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5349: esac
5350:
5351:
5352:
5353: macro_version='2.4.2'
5354: macro_revision='1.3337'
5355:
5356:
5357:
5358:
5359:
5360:
5361:
5362:
5363:
5364:
5365:
5366:
5367:
5368: ltmain="$ac_aux_dir/ltmain.sh"
5369:
5370: # Backslashify metacharacters that are still active within
5371: # double-quoted strings.
5372: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5373:
1.128 moko 5374: # Same as above, but do not quote variable references.
5375: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5376:
1.128 moko 5377: # Sed substitution to delay expansion of an escaped shell variable in a
5378: # double_quote_subst'ed string.
5379: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5380:
1.128 moko 5381: # Sed substitution to delay expansion of an escaped single quote.
5382: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5383:
1.128 moko 5384: # Sed substitution to avoid accidental globbing in evaled expressions
5385: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5386:
1.128 moko 5387: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5388: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5389: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5390:
1.150 moko 5391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5392: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5393: # Test print first, because it will be a builtin if present.
5394: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5395: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5396: ECHO='print -r --'
5397: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5398: ECHO='printf %s\n'
5399: else
5400: # Use this function as a fallback that always works.
5401: func_fallback_echo ()
5402: {
5403: eval 'cat <<_LTECHO_EOF
5404: $1
5405: _LTECHO_EOF'
5406: }
5407: ECHO='func_fallback_echo'
5408: fi
1.86 paf 5409:
1.128 moko 5410: # func_echo_all arg...
5411: # Invoke $ECHO with all args, space-separated.
5412: func_echo_all ()
1.66 paf 5413: {
1.128 moko 5414: $ECHO ""
1.66 paf 5415: }
1.10 paf 5416:
1.128 moko 5417: case "$ECHO" in
1.150 moko 5418: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5419: $as_echo "printf" >&6; } ;;
5420: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5421: $as_echo "print -r" >&6; } ;;
5422: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5423: $as_echo "cat" >&6; } ;;
1.128 moko 5424: esac
5425:
5426:
5427:
5428:
5429:
5430:
5431:
5432:
5433:
5434:
5435:
5436:
5437:
5438:
1.150 moko 5439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5440: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5441: if ${ac_cv_path_SED+:} false; then :
5442: $as_echo_n "(cached) " >&6
5443: else
5444: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5445: for ac_i in 1 2 3 4 5 6 7; do
5446: ac_script="$ac_script$as_nl$ac_script"
5447: done
5448: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5449: { ac_script=; unset ac_script;}
5450: if test -z "$SED"; then
5451: ac_path_SED_found=false
5452: # Loop through the user's path and test for each of PROGNAME-LIST
5453: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5454: for as_dir in $PATH
5455: do
5456: IFS=$as_save_IFS
5457: test -z "$as_dir" && as_dir=.
1.150 moko 5458: for ac_prog in sed gsed; do
1.128 moko 5459: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5460: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5461: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 5462: # Check for GNU ac_path_SED and select it if it is found.
5463: # Check for GNU $ac_path_SED
5464: case `"$ac_path_SED" --version 2>&1` in
5465: *GNU*)
5466: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5467: *)
5468: ac_count=0
5469: $as_echo_n 0123456789 >"conftest.in"
5470: while :
5471: do
5472: cat "conftest.in" "conftest.in" >"conftest.tmp"
5473: mv "conftest.tmp" "conftest.in"
5474: cp "conftest.in" "conftest.nl"
5475: $as_echo '' >> "conftest.nl"
5476: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5477: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5478: as_fn_arith $ac_count + 1 && ac_count=$as_val
5479: if test $ac_count -gt ${ac_path_SED_max-0}; then
5480: # Best one so far, save it but keep looking for a better one
5481: ac_cv_path_SED="$ac_path_SED"
5482: ac_path_SED_max=$ac_count
5483: fi
5484: # 10*(2^10) chars as input seems more than enough
5485: test $ac_count -gt 10 && break
5486: done
5487: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5488: esac
5489:
5490: $ac_path_SED_found && break 3
1.128 moko 5491: done
5492: done
1.150 moko 5493: done
1.128 moko 5494: IFS=$as_save_IFS
1.150 moko 5495: if test -z "$ac_cv_path_SED"; then
5496: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5497: fi
1.150 moko 5498: else
5499: ac_cv_path_SED=$SED
5500: fi
1.10 paf 5501:
1.66 paf 5502: fi
1.150 moko 5503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5504: $as_echo "$ac_cv_path_SED" >&6; }
5505: SED="$ac_cv_path_SED"
5506: rm -f conftest.sed
1.128 moko 5507:
5508: test -z "$SED" && SED=sed
5509: Xsed="$SED -e 1s/^X//"
1.10 paf 5510:
1.128 moko 5511:
5512:
5513:
5514:
5515:
5516:
5517:
5518:
5519:
5520:
1.150 moko 5521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5522: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5523: if ${ac_cv_path_GREP+:} false; then :
5524: $as_echo_n "(cached) " >&6
5525: else
5526: if test -z "$GREP"; then
5527: ac_path_GREP_found=false
5528: # Loop through the user's path and test for each of PROGNAME-LIST
5529: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5531: do
5532: IFS=$as_save_IFS
5533: test -z "$as_dir" && as_dir=.
5534: for ac_prog in grep ggrep; do
5535: for ac_exec_ext in '' $ac_executable_extensions; do
5536: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5537: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 5538: # Check for GNU ac_path_GREP and select it if it is found.
5539: # Check for GNU $ac_path_GREP
5540: case `"$ac_path_GREP" --version 2>&1` in
5541: *GNU*)
5542: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5543: *)
5544: ac_count=0
5545: $as_echo_n 0123456789 >"conftest.in"
5546: while :
5547: do
5548: cat "conftest.in" "conftest.in" >"conftest.tmp"
5549: mv "conftest.tmp" "conftest.in"
5550: cp "conftest.in" "conftest.nl"
5551: $as_echo 'GREP' >> "conftest.nl"
5552: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5553: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5554: as_fn_arith $ac_count + 1 && ac_count=$as_val
5555: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5556: # Best one so far, save it but keep looking for a better one
5557: ac_cv_path_GREP="$ac_path_GREP"
5558: ac_path_GREP_max=$ac_count
1.128 moko 5559: fi
1.150 moko 5560: # 10*(2^10) chars as input seems more than enough
5561: test $ac_count -gt 10 && break
5562: done
5563: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5564: esac
5565:
5566: $ac_path_GREP_found && break 3
5567: done
5568: done
5569: done
5570: IFS=$as_save_IFS
5571: if test -z "$ac_cv_path_GREP"; then
5572: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5573: fi
5574: else
5575: ac_cv_path_GREP=$GREP
5576: fi
5577:
1.128 moko 5578: fi
1.150 moko 5579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5580: $as_echo "$ac_cv_path_GREP" >&6; }
5581: GREP="$ac_cv_path_GREP"
5582:
5583:
5584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5585: $as_echo_n "checking for egrep... " >&6; }
5586: if ${ac_cv_path_EGREP+:} false; then :
5587: $as_echo_n "(cached) " >&6
5588: else
5589: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5590: then ac_cv_path_EGREP="$GREP -E"
5591: else
5592: if test -z "$EGREP"; then
5593: ac_path_EGREP_found=false
5594: # Loop through the user's path and test for each of PROGNAME-LIST
5595: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5597: do
5598: IFS=$as_save_IFS
5599: test -z "$as_dir" && as_dir=.
5600: for ac_prog in egrep; do
5601: for ac_exec_ext in '' $ac_executable_extensions; do
5602: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5603: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 5604: # Check for GNU ac_path_EGREP and select it if it is found.
5605: # Check for GNU $ac_path_EGREP
5606: case `"$ac_path_EGREP" --version 2>&1` in
5607: *GNU*)
5608: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5609: *)
5610: ac_count=0
5611: $as_echo_n 0123456789 >"conftest.in"
5612: while :
5613: do
5614: cat "conftest.in" "conftest.in" >"conftest.tmp"
5615: mv "conftest.tmp" "conftest.in"
5616: cp "conftest.in" "conftest.nl"
5617: $as_echo 'EGREP' >> "conftest.nl"
5618: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5619: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5620: as_fn_arith $ac_count + 1 && ac_count=$as_val
5621: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5622: # Best one so far, save it but keep looking for a better one
5623: ac_cv_path_EGREP="$ac_path_EGREP"
5624: ac_path_EGREP_max=$ac_count
5625: fi
5626: # 10*(2^10) chars as input seems more than enough
5627: test $ac_count -gt 10 && break
5628: done
5629: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5630: esac
1.128 moko 5631:
1.150 moko 5632: $ac_path_EGREP_found && break 3
5633: done
5634: done
5635: done
5636: IFS=$as_save_IFS
5637: if test -z "$ac_cv_path_EGREP"; then
5638: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5639: fi
5640: else
5641: ac_cv_path_EGREP=$EGREP
5642: fi
1.128 moko 5643:
1.150 moko 5644: fi
5645: fi
5646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5647: $as_echo "$ac_cv_path_EGREP" >&6; }
5648: EGREP="$ac_cv_path_EGREP"
5649:
5650:
5651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5652: $as_echo_n "checking for fgrep... " >&6; }
5653: if ${ac_cv_path_FGREP+:} false; then :
5654: $as_echo_n "(cached) " >&6
5655: else
5656: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5657: then ac_cv_path_FGREP="$GREP -F"
5658: else
5659: if test -z "$FGREP"; then
5660: ac_path_FGREP_found=false
5661: # Loop through the user's path and test for each of PROGNAME-LIST
5662: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5664: do
5665: IFS=$as_save_IFS
5666: test -z "$as_dir" && as_dir=.
5667: for ac_prog in fgrep; do
5668: for ac_exec_ext in '' $ac_executable_extensions; do
5669: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5670: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 5671: # Check for GNU ac_path_FGREP and select it if it is found.
5672: # Check for GNU $ac_path_FGREP
5673: case `"$ac_path_FGREP" --version 2>&1` in
5674: *GNU*)
5675: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5676: *)
5677: ac_count=0
5678: $as_echo_n 0123456789 >"conftest.in"
5679: while :
5680: do
5681: cat "conftest.in" "conftest.in" >"conftest.tmp"
5682: mv "conftest.tmp" "conftest.in"
5683: cp "conftest.in" "conftest.nl"
5684: $as_echo 'FGREP' >> "conftest.nl"
5685: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5686: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5687: as_fn_arith $ac_count + 1 && ac_count=$as_val
5688: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5689: # Best one so far, save it but keep looking for a better one
5690: ac_cv_path_FGREP="$ac_path_FGREP"
5691: ac_path_FGREP_max=$ac_count
1.128 moko 5692: fi
1.150 moko 5693: # 10*(2^10) chars as input seems more than enough
5694: test $ac_count -gt 10 && break
5695: done
5696: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5697: esac
5698:
5699: $ac_path_FGREP_found && break 3
5700: done
5701: done
5702: done
5703: IFS=$as_save_IFS
5704: if test -z "$ac_cv_path_FGREP"; then
5705: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5706: fi
5707: else
5708: ac_cv_path_FGREP=$FGREP
5709: fi
5710:
5711: fi
1.128 moko 5712: fi
1.150 moko 5713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5714: $as_echo "$ac_cv_path_FGREP" >&6; }
5715: FGREP="$ac_cv_path_FGREP"
1.128 moko 5716:
5717:
5718: test -z "$GREP" && GREP=grep
5719:
5720:
5721:
5722:
5723:
5724:
5725:
5726:
5727:
5728:
5729:
5730:
5731:
5732:
5733:
5734:
5735:
5736:
5737:
1.150 moko 5738: # Check whether --with-gnu-ld was given.
5739: if test "${with_gnu_ld+set}" = set; then :
5740: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5741: else
5742: with_gnu_ld=no
1.150 moko 5743: fi
5744:
1.128 moko 5745: ac_prog=ld
5746: if test "$GCC" = yes; then
5747: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5748: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5749: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5750: case $host in
5751: *-*-mingw*)
5752: # gcc leaves a trailing carriage return which upsets mingw
5753: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5754: *)
5755: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5756: esac
5757: case $ac_prog in
5758: # Accept absolute paths.
5759: [\\/]* | ?:[\\/]*)
5760: re_direlt='/[^/][^/]*/\.\./'
5761: # Canonicalize the pathname of ld
5762: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5763: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5764: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5765: done
5766: test -z "$LD" && LD="$ac_prog"
5767: ;;
5768: "")
5769: # If it fails, then pretend we aren't using GCC.
5770: ac_prog=ld
5771: ;;
5772: *)
5773: # If it is relative, then search for the first ld in PATH.
5774: with_gnu_ld=unknown
5775: ;;
5776: esac
5777: elif test "$with_gnu_ld" = yes; then
1.150 moko 5778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5779: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5780: else
1.150 moko 5781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5782: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5783: fi
1.150 moko 5784: if ${lt_cv_path_LD+:} false; then :
5785: $as_echo_n "(cached) " >&6
1.128 moko 5786: else
5787: if test -z "$LD"; then
5788: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5789: for ac_dir in $PATH; do
5790: IFS="$lt_save_ifs"
5791: test -z "$ac_dir" && ac_dir=.
5792: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5793: lt_cv_path_LD="$ac_dir/$ac_prog"
5794: # Check to see if the program is GNU ld. I'd rather use --version,
5795: # but apparently some variants of GNU ld only accept -v.
5796: # Break only if it was the GNU/non-GNU ld that we prefer.
5797: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5798: *GNU* | *'with BFD'*)
5799: test "$with_gnu_ld" != no && break
5800: ;;
5801: *)
5802: test "$with_gnu_ld" != yes && break
5803: ;;
5804: esac
5805: fi
5806: done
5807: IFS="$lt_save_ifs"
5808: else
5809: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5810: fi
5811: fi
5812:
5813: LD="$lt_cv_path_LD"
5814: if test -n "$LD"; then
1.150 moko 5815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5816: $as_echo "$LD" >&6; }
1.128 moko 5817: else
1.150 moko 5818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819: $as_echo "no" >&6; }
1.128 moko 5820: fi
1.150 moko 5821: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5823: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5824: if ${lt_cv_prog_gnu_ld+:} false; then :
5825: $as_echo_n "(cached) " >&6
1.128 moko 5826: else
5827: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5828: case `$LD -v 2>&1 </dev/null` in
5829: *GNU* | *'with BFD'*)
5830: lt_cv_prog_gnu_ld=yes
5831: ;;
5832: *)
5833: lt_cv_prog_gnu_ld=no
5834: ;;
5835: esac
5836: fi
1.150 moko 5837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5838: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5839: with_gnu_ld=$lt_cv_prog_gnu_ld
5840:
5841:
5842:
5843:
5844:
5845:
5846:
5847:
5848:
1.150 moko 5849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5850: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5851: if ${lt_cv_path_NM+:} false; then :
5852: $as_echo_n "(cached) " >&6
1.128 moko 5853: else
5854: if test -n "$NM"; then
5855: # Let the user override the test.
5856: lt_cv_path_NM="$NM"
5857: else
5858: lt_nm_to_check="${ac_tool_prefix}nm"
5859: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5860: lt_nm_to_check="$lt_nm_to_check nm"
5861: fi
5862: for lt_tmp_nm in $lt_nm_to_check; do
5863: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5864: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5865: IFS="$lt_save_ifs"
5866: test -z "$ac_dir" && ac_dir=.
5867: tmp_nm="$ac_dir/$lt_tmp_nm"
5868: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5869: # Check to see if the nm accepts a BSD-compat flag.
5870: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5871: # nm: unknown option "B" ignored
5872: # Tru64's nm complains that /dev/null is an invalid object file
5873: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5874: */dev/null* | *'Invalid file or object type'*)
5875: lt_cv_path_NM="$tmp_nm -B"
5876: break
5877: ;;
5878: *)
5879: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5880: */dev/null*)
5881: lt_cv_path_NM="$tmp_nm -p"
5882: break
5883: ;;
5884: *)
5885: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5886: continue # so that we can try to find one that supports BSD flags
5887: ;;
5888: esac
5889: ;;
5890: esac
5891: fi
5892: done
5893: IFS="$lt_save_ifs"
5894: done
5895: : ${lt_cv_path_NM=no}
5896: fi
5897: fi
1.150 moko 5898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5899: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5900: if test "$lt_cv_path_NM" != "no"; then
5901: NM="$lt_cv_path_NM"
5902: else
5903: # Didn't find any BSD compatible name lister, look for dumpbin.
5904: if test -n "$DUMPBIN"; then :
5905: # Let the user override the test.
5906: else
5907: if test -n "$ac_tool_prefix"; then
5908: for ac_prog in dumpbin "link -dump"
5909: do
5910: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5911: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913: $as_echo_n "checking for $ac_word... " >&6; }
5914: if ${ac_cv_prog_DUMPBIN+:} false; then :
5915: $as_echo_n "(cached) " >&6
1.128 moko 5916: else
5917: if test -n "$DUMPBIN"; then
5918: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5919: else
5920: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921: for as_dir in $PATH
5922: do
5923: IFS=$as_save_IFS
5924: test -z "$as_dir" && as_dir=.
1.150 moko 5925: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5926: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5927: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 5928: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5929: break 2
5930: fi
5931: done
1.150 moko 5932: done
5933: IFS=$as_save_IFS
1.128 moko 5934:
5935: fi
5936: fi
5937: DUMPBIN=$ac_cv_prog_DUMPBIN
5938: if test -n "$DUMPBIN"; then
1.150 moko 5939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5940: $as_echo "$DUMPBIN" >&6; }
1.128 moko 5941: else
1.150 moko 5942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943: $as_echo "no" >&6; }
1.128 moko 5944: fi
5945:
1.150 moko 5946:
1.128 moko 5947: test -n "$DUMPBIN" && break
5948: done
5949: fi
5950: if test -z "$DUMPBIN"; then
5951: ac_ct_DUMPBIN=$DUMPBIN
5952: for ac_prog in dumpbin "link -dump"
5953: do
5954: # Extract the first word of "$ac_prog", so it can be a program name with args.
5955: set dummy $ac_prog; ac_word=$2
1.150 moko 5956: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957: $as_echo_n "checking for $ac_word... " >&6; }
5958: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5959: $as_echo_n "(cached) " >&6
1.128 moko 5960: else
5961: if test -n "$ac_ct_DUMPBIN"; then
5962: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5963: else
5964: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965: for as_dir in $PATH
5966: do
5967: IFS=$as_save_IFS
5968: test -z "$as_dir" && as_dir=.
1.150 moko 5969: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5970: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5971: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 5972: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5973: break 2
5974: fi
5975: done
1.150 moko 5976: done
5977: IFS=$as_save_IFS
1.128 moko 5978:
5979: fi
5980: fi
5981: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5982: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 5983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5984: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 5985: else
1.150 moko 5986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987: $as_echo "no" >&6; }
1.128 moko 5988: fi
5989:
1.150 moko 5990:
1.128 moko 5991: test -n "$ac_ct_DUMPBIN" && break
5992: done
5993:
1.150 moko 5994: if test "x$ac_ct_DUMPBIN" = x; then
5995: DUMPBIN=":"
5996: else
5997: case $cross_compiling:$ac_tool_warned in
5998: yes:)
5999: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001: ac_tool_warned=yes ;;
6002: esac
6003: DUMPBIN=$ac_ct_DUMPBIN
6004: fi
1.128 moko 6005: fi
6006:
6007: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6008: *COFF*)
6009: DUMPBIN="$DUMPBIN -symbols"
6010: ;;
6011: *)
6012: DUMPBIN=:
6013: ;;
6014: esac
6015: fi
6016:
6017: if test "$DUMPBIN" != ":"; then
6018: NM="$DUMPBIN"
6019: fi
6020: fi
6021: test -z "$NM" && NM=nm
6022:
6023:
6024:
6025:
6026:
6027:
1.150 moko 6028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6029: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6030: if ${lt_cv_nm_interface+:} false; then :
6031: $as_echo_n "(cached) " >&6
1.128 moko 6032: else
6033: lt_cv_nm_interface="BSD nm"
6034: echo "int some_variable = 0;" > conftest.$ac_ext
6035: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6036: (eval "$ac_compile" 2>conftest.err)
6037: cat conftest.err >&5
6038: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6039: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6040: cat conftest.err >&5
6041: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6042: cat conftest.out >&5
6043: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6044: lt_cv_nm_interface="MS dumpbin"
6045: fi
6046: rm -f conftest*
6047: fi
1.150 moko 6048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6049: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 6050:
1.150 moko 6051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6052: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 6053: LN_S=$as_ln_s
6054: if test "$LN_S" = "ln -s"; then
1.150 moko 6055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6056: $as_echo "yes" >&6; }
1.128 moko 6057: else
1.150 moko 6058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6059: $as_echo "no, using $LN_S" >&6; }
1.128 moko 6060: fi
6061:
6062: # find the maximum length of command line arguments
1.150 moko 6063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6064: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6065: if ${lt_cv_sys_max_cmd_len+:} false; then :
6066: $as_echo_n "(cached) " >&6
1.128 moko 6067: else
6068: i=0
6069: teststring="ABCD"
6070:
6071: case $build_os in
6072: msdosdjgpp*)
6073: # On DJGPP, this test can blow up pretty badly due to problems in libc
6074: # (any single argument exceeding 2000 bytes causes a buffer overrun
6075: # during glob expansion). Even if it were fixed, the result of this
6076: # check would be larger than it should be.
6077: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6078: ;;
6079:
6080: gnu*)
6081: # Under GNU Hurd, this test is not required because there is
6082: # no limit to the length of command line arguments.
6083: # Libtool will interpret -1 as no limit whatsoever
6084: lt_cv_sys_max_cmd_len=-1;
6085: ;;
6086:
6087: cygwin* | mingw* | cegcc*)
6088: # On Win9x/ME, this test blows up -- it succeeds, but takes
6089: # about 5 minutes as the teststring grows exponentially.
6090: # Worse, since 9x/ME are not pre-emptively multitasking,
6091: # you end up with a "frozen" computer, even though with patience
6092: # the test eventually succeeds (with a max line length of 256k).
6093: # Instead, let's just punt: use the minimum linelength reported by
6094: # all of the supported platforms: 8192 (on NT/2K/XP).
6095: lt_cv_sys_max_cmd_len=8192;
6096: ;;
6097:
6098: mint*)
6099: # On MiNT this can take a long time and run out of memory.
6100: lt_cv_sys_max_cmd_len=8192;
6101: ;;
6102:
6103: amigaos*)
6104: # On AmigaOS with pdksh, this test takes hours, literally.
6105: # So we just punt and use a minimum line length of 8192.
6106: lt_cv_sys_max_cmd_len=8192;
6107: ;;
6108:
6109: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6110: # This has been around since 386BSD, at least. Likely further.
6111: if test -x /sbin/sysctl; then
6112: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6113: elif test -x /usr/sbin/sysctl; then
6114: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6115: else
6116: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6117: fi
6118: # And add a safety zone
6119: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6120: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6121: ;;
6122:
6123: interix*)
6124: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6125: lt_cv_sys_max_cmd_len=196608
6126: ;;
6127:
6128: os2*)
6129: # The test takes a long time on OS/2.
6130: lt_cv_sys_max_cmd_len=8192
6131: ;;
6132:
6133: osf*)
6134: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6135: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6136: # nice to cause kernel panics so lets avoid the loop below.
6137: # First set a reasonable default.
6138: lt_cv_sys_max_cmd_len=16384
6139: #
6140: if test -x /sbin/sysconfig; then
6141: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6142: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6143: esac
6144: fi
6145: ;;
6146: sco3.2v5*)
6147: lt_cv_sys_max_cmd_len=102400
6148: ;;
6149: sysv5* | sco5v6* | sysv4.2uw2*)
6150: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6151: if test -n "$kargmax"; then
6152: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6153: else
6154: lt_cv_sys_max_cmd_len=32768
6155: fi
6156: ;;
6157: *)
6158: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6159: if test -n "$lt_cv_sys_max_cmd_len"; then
6160: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6161: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6162: else
6163: # Make teststring a little bigger before we do anything with it.
6164: # a 1K string should be a reasonable start.
6165: for i in 1 2 3 4 5 6 7 8 ; do
6166: teststring=$teststring$teststring
6167: done
6168: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6169: # If test is not a shell built-in, we'll probably end up computing a
6170: # maximum length that is only half of the actual maximum length, but
6171: # we can't tell.
6172: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6173: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6174: test $i != 17 # 1/2 MB should be enough
6175: do
6176: i=`expr $i + 1`
6177: teststring=$teststring$teststring
6178: done
6179: # Only check the string length outside the loop.
6180: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6181: teststring=
6182: # Add a significant safety factor because C++ compilers can tack on
6183: # massive amounts of additional arguments before passing them to the
6184: # linker. It appears as though 1/2 is a usable value.
6185: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6186: fi
6187: ;;
6188: esac
6189:
6190: fi
6191:
6192: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 6193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6194: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 6195: else
1.150 moko 6196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6197: $as_echo "none" >&6; }
1.128 moko 6198: fi
6199: max_cmd_len=$lt_cv_sys_max_cmd_len
6200:
6201:
6202:
6203:
6204:
6205:
6206: : ${CP="cp -f"}
6207: : ${MV="mv -f"}
6208: : ${RM="rm -f"}
6209:
1.150 moko 6210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6211: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 6212: # Try some XSI features
6213: xsi_shell=no
6214: ( _lt_dummy="a/b/c"
6215: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6216: = c,a/b,b/c, \
6217: && eval 'test $(( 1 + 1 )) -eq 2 \
6218: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6219: && xsi_shell=yes
1.150 moko 6220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6221: $as_echo "$xsi_shell" >&6; }
1.128 moko 6222:
6223:
1.150 moko 6224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6225: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 6226: lt_shell_append=no
6227: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6228: >/dev/null 2>&1 \
6229: && lt_shell_append=yes
1.150 moko 6230: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6231: $as_echo "$lt_shell_append" >&6; }
1.128 moko 6232:
6233:
6234: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6235: lt_unset=unset
6236: else
6237: lt_unset=false
6238: fi
6239:
6240:
6241:
6242:
6243:
6244: # test EBCDIC or ASCII
6245: case `echo X|tr X '\101'` in
6246: A) # ASCII based system
6247: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6248: lt_SP2NL='tr \040 \012'
6249: lt_NL2SP='tr \015\012 \040\040'
6250: ;;
6251: *) # EBCDIC based system
6252: lt_SP2NL='tr \100 \n'
6253: lt_NL2SP='tr \r\n \100\100'
6254: ;;
6255: esac
6256:
6257:
6258:
6259:
6260:
6261:
6262:
6263:
6264:
1.150 moko 6265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6266: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6267: if ${lt_cv_to_host_file_cmd+:} false; then :
6268: $as_echo_n "(cached) " >&6
1.128 moko 6269: else
6270: case $host in
6271: *-*-mingw* )
6272: case $build in
6273: *-*-mingw* ) # actually msys
6274: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6275: ;;
6276: *-*-cygwin* )
6277: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6278: ;;
6279: * ) # otherwise, assume *nix
6280: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6281: ;;
6282: esac
6283: ;;
6284: *-*-cygwin* )
6285: case $build in
6286: *-*-mingw* ) # actually msys
6287: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6288: ;;
6289: *-*-cygwin* )
6290: lt_cv_to_host_file_cmd=func_convert_file_noop
6291: ;;
6292: * ) # otherwise, assume *nix
6293: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6294: ;;
6295: esac
6296: ;;
6297: * ) # unhandled hosts (and "normal" native builds)
6298: lt_cv_to_host_file_cmd=func_convert_file_noop
6299: ;;
6300: esac
6301:
6302: fi
6303:
6304: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6306: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6307:
6308:
6309:
6310:
6311:
1.150 moko 6312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6313: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6314: if ${lt_cv_to_tool_file_cmd+:} false; then :
6315: $as_echo_n "(cached) " >&6
1.128 moko 6316: else
6317: #assume ordinary cross tools, or native build.
6318: lt_cv_to_tool_file_cmd=func_convert_file_noop
6319: case $host in
6320: *-*-mingw* )
6321: case $build in
6322: *-*-mingw* ) # actually msys
6323: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6324: ;;
6325: esac
6326: ;;
6327: esac
6328:
6329: fi
6330:
6331: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6333: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6334:
6335:
6336:
6337:
6338:
1.150 moko 6339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6340: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6341: if ${lt_cv_ld_reload_flag+:} false; then :
6342: $as_echo_n "(cached) " >&6
1.128 moko 6343: else
6344: lt_cv_ld_reload_flag='-r'
6345: fi
1.150 moko 6346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6347: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6348: reload_flag=$lt_cv_ld_reload_flag
6349: case $reload_flag in
6350: "" | " "*) ;;
6351: *) reload_flag=" $reload_flag" ;;
6352: esac
6353: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6354: case $host_os in
6355: cygwin* | mingw* | pw32* | cegcc*)
6356: if test "$GCC" != yes; then
6357: reload_cmds=false
6358: fi
6359: ;;
6360: darwin*)
6361: if test "$GCC" = yes; then
6362: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6363: else
6364: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365: fi
6366: ;;
6367: esac
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377: if test -n "$ac_tool_prefix"; then
6378: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6379: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381: $as_echo_n "checking for $ac_word... " >&6; }
6382: if ${ac_cv_prog_OBJDUMP+:} false; then :
6383: $as_echo_n "(cached) " >&6
1.128 moko 6384: else
6385: if test -n "$OBJDUMP"; then
6386: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6387: else
6388: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389: for as_dir in $PATH
6390: do
6391: IFS=$as_save_IFS
6392: test -z "$as_dir" && as_dir=.
1.150 moko 6393: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6394: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6395: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6396: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6397: break 2
6398: fi
6399: done
1.150 moko 6400: done
6401: IFS=$as_save_IFS
1.128 moko 6402:
6403: fi
6404: fi
6405: OBJDUMP=$ac_cv_prog_OBJDUMP
6406: if test -n "$OBJDUMP"; then
1.150 moko 6407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6408: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6409: else
1.150 moko 6410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411: $as_echo "no" >&6; }
1.128 moko 6412: fi
6413:
1.150 moko 6414:
1.128 moko 6415: fi
6416: if test -z "$ac_cv_prog_OBJDUMP"; then
6417: ac_ct_OBJDUMP=$OBJDUMP
6418: # Extract the first word of "objdump", so it can be a program name with args.
6419: set dummy objdump; ac_word=$2
1.150 moko 6420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421: $as_echo_n "checking for $ac_word... " >&6; }
6422: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6423: $as_echo_n "(cached) " >&6
1.128 moko 6424: else
6425: if test -n "$ac_ct_OBJDUMP"; then
6426: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6427: else
6428: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429: for as_dir in $PATH
6430: do
6431: IFS=$as_save_IFS
6432: test -z "$as_dir" && as_dir=.
1.150 moko 6433: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6434: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6435: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6436: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6437: break 2
6438: fi
6439: done
1.150 moko 6440: done
6441: IFS=$as_save_IFS
1.128 moko 6442:
6443: fi
6444: fi
6445: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6446: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6448: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6449: else
1.150 moko 6450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451: $as_echo "no" >&6; }
1.128 moko 6452: fi
6453:
1.150 moko 6454: if test "x$ac_ct_OBJDUMP" = x; then
6455: OBJDUMP="false"
6456: else
6457: case $cross_compiling:$ac_tool_warned in
6458: yes:)
6459: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461: ac_tool_warned=yes ;;
6462: esac
6463: OBJDUMP=$ac_ct_OBJDUMP
6464: fi
1.128 moko 6465: else
6466: OBJDUMP="$ac_cv_prog_OBJDUMP"
6467: fi
6468:
6469: test -z "$OBJDUMP" && OBJDUMP=objdump
6470:
6471:
6472:
6473:
6474:
6475:
1.150 moko 6476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6477: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6478: if ${lt_cv_deplibs_check_method+:} false; then :
6479: $as_echo_n "(cached) " >&6
1.128 moko 6480: else
6481: lt_cv_file_magic_cmd='$MAGIC_CMD'
6482: lt_cv_file_magic_test_file=
6483: lt_cv_deplibs_check_method='unknown'
6484: # Need to set the preceding variable on all platforms that support
6485: # interlibrary dependencies.
6486: # 'none' -- dependencies not supported.
6487: # `unknown' -- same as none, but documents that we really don't know.
6488: # 'pass_all' -- all dependencies passed with no checks.
6489: # 'test_compile' -- check by making test program.
6490: # 'file_magic [[regex]]' -- check by looking for files in library path
6491: # which responds to the $file_magic_cmd with a given extended regex.
6492: # If you have `file' or equivalent on your system and you're not sure
6493: # whether `pass_all' will *always* work, you probably want this one.
6494:
6495: case $host_os in
6496: aix[4-9]*)
6497: lt_cv_deplibs_check_method=pass_all
6498: ;;
6499:
6500: beos*)
6501: lt_cv_deplibs_check_method=pass_all
6502: ;;
6503:
6504: bsdi[45]*)
6505: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6506: lt_cv_file_magic_cmd='/usr/bin/file -L'
6507: lt_cv_file_magic_test_file=/shlib/libc.so
6508: ;;
6509:
6510: cygwin*)
6511: # func_win32_libid is a shell function defined in ltmain.sh
6512: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6513: lt_cv_file_magic_cmd='func_win32_libid'
6514: ;;
6515:
6516: mingw* | pw32*)
6517: # Base MSYS/MinGW do not provide the 'file' command needed by
6518: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6519: # unless we find 'file', for example because we are cross-compiling.
6520: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6521: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6522: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6523: lt_cv_file_magic_cmd='func_win32_libid'
6524: else
6525: # Keep this pattern in sync with the one in func_win32_libid.
6526: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6527: lt_cv_file_magic_cmd='$OBJDUMP -f'
6528: fi
6529: ;;
6530:
6531: cegcc*)
6532: # use the weaker test based on 'objdump'. See mingw*.
6533: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6534: lt_cv_file_magic_cmd='$OBJDUMP -f'
6535: ;;
6536:
6537: darwin* | rhapsody*)
6538: lt_cv_deplibs_check_method=pass_all
6539: ;;
6540:
6541: freebsd* | dragonfly*)
6542: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6543: case $host_cpu in
6544: i*86 )
6545: # Not sure whether the presence of OpenBSD here was a mistake.
6546: # Let's accept both of them until this is cleared up.
6547: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6548: lt_cv_file_magic_cmd=/usr/bin/file
6549: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6550: ;;
6551: esac
6552: else
6553: lt_cv_deplibs_check_method=pass_all
6554: fi
6555: ;;
6556:
6557: gnu*)
6558: lt_cv_deplibs_check_method=pass_all
6559: ;;
6560:
6561: haiku*)
6562: lt_cv_deplibs_check_method=pass_all
6563: ;;
6564:
6565: hpux10.20* | hpux11*)
6566: lt_cv_file_magic_cmd=/usr/bin/file
6567: case $host_cpu in
6568: ia64*)
6569: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6570: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6571: ;;
6572: hppa*64*)
6573: 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]'
6574: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6575: ;;
6576: *)
6577: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6578: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6579: ;;
6580: esac
6581: ;;
6582:
6583: interix[3-9]*)
6584: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6585: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6586: ;;
6587:
6588: irix5* | irix6* | nonstopux*)
6589: case $LD in
6590: *-32|*"-32 ") libmagic=32-bit;;
6591: *-n32|*"-n32 ") libmagic=N32;;
6592: *-64|*"-64 ") libmagic=64-bit;;
6593: *) libmagic=never-match;;
6594: esac
6595: lt_cv_deplibs_check_method=pass_all
6596: ;;
6597:
6598: # This must be glibc/ELF.
6599: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6600: lt_cv_deplibs_check_method=pass_all
6601: ;;
6602:
6603: netbsd*)
6604: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6605: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6606: else
6607: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6608: fi
6609: ;;
6610:
6611: newos6*)
6612: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6613: lt_cv_file_magic_cmd=/usr/bin/file
6614: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6615: ;;
6616:
6617: *nto* | *qnx*)
6618: lt_cv_deplibs_check_method=pass_all
6619: ;;
6620:
6621: openbsd*)
6622: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6623: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6624: else
6625: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6626: fi
6627: ;;
6628:
6629: osf3* | osf4* | osf5*)
6630: lt_cv_deplibs_check_method=pass_all
6631: ;;
6632:
6633: rdos*)
6634: lt_cv_deplibs_check_method=pass_all
6635: ;;
6636:
6637: solaris*)
6638: lt_cv_deplibs_check_method=pass_all
6639: ;;
6640:
6641: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6642: lt_cv_deplibs_check_method=pass_all
6643: ;;
6644:
6645: sysv4 | sysv4.3*)
6646: case $host_vendor in
6647: motorola)
6648: 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]'
6649: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6650: ;;
6651: ncr)
6652: lt_cv_deplibs_check_method=pass_all
6653: ;;
6654: sequent)
6655: lt_cv_file_magic_cmd='/bin/file'
6656: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6657: ;;
6658: sni)
6659: lt_cv_file_magic_cmd='/bin/file'
6660: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6661: lt_cv_file_magic_test_file=/lib/libc.so
6662: ;;
6663: siemens)
6664: lt_cv_deplibs_check_method=pass_all
6665: ;;
6666: pc)
6667: lt_cv_deplibs_check_method=pass_all
6668: ;;
6669: esac
6670: ;;
6671:
6672: tpf*)
6673: lt_cv_deplibs_check_method=pass_all
6674: ;;
6675: esac
6676:
6677: fi
1.150 moko 6678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6679: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6680:
6681: file_magic_glob=
6682: want_nocaseglob=no
6683: if test "$build" = "$host"; then
6684: case $host_os in
6685: mingw* | pw32*)
6686: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6687: want_nocaseglob=yes
6688: else
6689: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6690: fi
6691: ;;
6692: esac
6693: fi
6694:
6695: file_magic_cmd=$lt_cv_file_magic_cmd
6696: deplibs_check_method=$lt_cv_deplibs_check_method
6697: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6698:
6699:
6700:
6701:
6702:
6703:
6704:
6705:
6706:
6707:
6708:
6709:
6710:
6711:
6712:
6713:
6714:
6715:
6716:
6717:
6718:
6719:
6720: if test -n "$ac_tool_prefix"; then
6721: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6722: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724: $as_echo_n "checking for $ac_word... " >&6; }
6725: if ${ac_cv_prog_DLLTOOL+:} false; then :
6726: $as_echo_n "(cached) " >&6
1.128 moko 6727: else
6728: if test -n "$DLLTOOL"; then
6729: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6730: else
6731: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732: for as_dir in $PATH
6733: do
6734: IFS=$as_save_IFS
6735: test -z "$as_dir" && as_dir=.
1.150 moko 6736: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6737: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6738: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6739: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6740: break 2
6741: fi
6742: done
1.150 moko 6743: done
6744: IFS=$as_save_IFS
1.128 moko 6745:
6746: fi
6747: fi
6748: DLLTOOL=$ac_cv_prog_DLLTOOL
6749: if test -n "$DLLTOOL"; then
1.150 moko 6750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6751: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6752: else
1.150 moko 6753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754: $as_echo "no" >&6; }
1.128 moko 6755: fi
6756:
1.150 moko 6757:
1.128 moko 6758: fi
6759: if test -z "$ac_cv_prog_DLLTOOL"; then
6760: ac_ct_DLLTOOL=$DLLTOOL
6761: # Extract the first word of "dlltool", so it can be a program name with args.
6762: set dummy dlltool; ac_word=$2
1.150 moko 6763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764: $as_echo_n "checking for $ac_word... " >&6; }
6765: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6766: $as_echo_n "(cached) " >&6
1.128 moko 6767: else
6768: if test -n "$ac_ct_DLLTOOL"; then
6769: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6770: else
6771: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772: for as_dir in $PATH
6773: do
6774: IFS=$as_save_IFS
6775: test -z "$as_dir" && as_dir=.
1.150 moko 6776: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6777: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6778: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6779: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6780: break 2
6781: fi
6782: done
1.150 moko 6783: done
6784: IFS=$as_save_IFS
1.128 moko 6785:
6786: fi
6787: fi
6788: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6789: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6791: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6792: else
1.150 moko 6793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794: $as_echo "no" >&6; }
1.128 moko 6795: fi
6796:
1.150 moko 6797: if test "x$ac_ct_DLLTOOL" = x; then
6798: DLLTOOL="false"
6799: else
6800: case $cross_compiling:$ac_tool_warned in
6801: yes:)
6802: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804: ac_tool_warned=yes ;;
6805: esac
6806: DLLTOOL=$ac_ct_DLLTOOL
6807: fi
1.128 moko 6808: else
6809: DLLTOOL="$ac_cv_prog_DLLTOOL"
6810: fi
6811:
6812: test -z "$DLLTOOL" && DLLTOOL=dlltool
6813:
6814:
6815:
6816:
6817:
6818:
6819:
1.150 moko 6820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6821: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6822: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6823: $as_echo_n "(cached) " >&6
1.128 moko 6824: else
6825: lt_cv_sharedlib_from_linklib_cmd='unknown'
6826:
6827: case $host_os in
6828: cygwin* | mingw* | pw32* | cegcc*)
6829: # two different shell functions defined in ltmain.sh
6830: # decide which to use based on capabilities of $DLLTOOL
6831: case `$DLLTOOL --help 2>&1` in
6832: *--identify-strict*)
6833: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6834: ;;
6835: *)
6836: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6837: ;;
6838: esac
6839: ;;
6840: *)
6841: # fallback: assume linklib IS sharedlib
6842: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6843: ;;
6844: esac
6845:
6846: fi
1.150 moko 6847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6848: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6849: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6850: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6851:
6852:
6853:
6854:
6855:
6856:
6857:
6858: if test -n "$ac_tool_prefix"; then
6859: for ac_prog in ar
6860: do
6861: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6862: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6863: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864: $as_echo_n "checking for $ac_word... " >&6; }
6865: if ${ac_cv_prog_AR+:} false; then :
6866: $as_echo_n "(cached) " >&6
1.128 moko 6867: else
6868: if test -n "$AR"; then
6869: ac_cv_prog_AR="$AR" # Let the user override the test.
6870: else
6871: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872: for as_dir in $PATH
6873: do
6874: IFS=$as_save_IFS
6875: test -z "$as_dir" && as_dir=.
1.150 moko 6876: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6877: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6878: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6879: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6880: break 2
6881: fi
6882: done
1.150 moko 6883: done
6884: IFS=$as_save_IFS
1.128 moko 6885:
6886: fi
6887: fi
6888: AR=$ac_cv_prog_AR
6889: if test -n "$AR"; then
1.150 moko 6890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6891: $as_echo "$AR" >&6; }
1.128 moko 6892: else
1.150 moko 6893: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894: $as_echo "no" >&6; }
1.128 moko 6895: fi
6896:
1.150 moko 6897:
1.128 moko 6898: test -n "$AR" && break
6899: done
6900: fi
6901: if test -z "$AR"; then
6902: ac_ct_AR=$AR
6903: for ac_prog in ar
6904: do
6905: # Extract the first word of "$ac_prog", so it can be a program name with args.
6906: set dummy $ac_prog; ac_word=$2
1.150 moko 6907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908: $as_echo_n "checking for $ac_word... " >&6; }
6909: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6910: $as_echo_n "(cached) " >&6
1.128 moko 6911: else
6912: if test -n "$ac_ct_AR"; then
6913: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6914: else
6915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916: for as_dir in $PATH
6917: do
6918: IFS=$as_save_IFS
6919: test -z "$as_dir" && as_dir=.
1.150 moko 6920: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6921: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6922: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 6923: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6924: break 2
6925: fi
6926: done
1.150 moko 6927: done
6928: IFS=$as_save_IFS
1.128 moko 6929:
6930: fi
6931: fi
6932: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6933: if test -n "$ac_ct_AR"; then
1.150 moko 6934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6935: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 6936: else
1.150 moko 6937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938: $as_echo "no" >&6; }
1.128 moko 6939: fi
6940:
1.150 moko 6941:
1.128 moko 6942: test -n "$ac_ct_AR" && break
6943: done
6944:
1.150 moko 6945: if test "x$ac_ct_AR" = x; then
6946: AR="false"
6947: else
6948: case $cross_compiling:$ac_tool_warned in
6949: yes:)
6950: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952: ac_tool_warned=yes ;;
6953: esac
6954: AR=$ac_ct_AR
6955: fi
1.128 moko 6956: fi
6957:
6958: : ${AR=ar}
6959: : ${AR_FLAGS=cru}
6960:
6961:
6962:
6963:
6964:
6965:
6966:
6967:
6968:
6969:
6970:
1.150 moko 6971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6972: $as_echo_n "checking for archiver @FILE support... " >&6; }
6973: if ${lt_cv_ar_at_file+:} false; then :
6974: $as_echo_n "(cached) " >&6
1.128 moko 6975: else
6976: lt_cv_ar_at_file=no
1.150 moko 6977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 6978: /* end confdefs.h. */
6979:
6980: int
6981: main ()
6982: {
6983:
6984: ;
6985: return 0;
6986: }
6987: _ACEOF
1.150 moko 6988: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 6989: echo conftest.$ac_objext > conftest.lst
6990: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 6991: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 6992: (eval $lt_ar_try) 2>&5
6993: ac_status=$?
1.150 moko 6994: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995: test $ac_status = 0; }
1.128 moko 6996: if test "$ac_status" -eq 0; then
6997: # Ensure the archiver fails upon bogus file names.
6998: rm -f conftest.$ac_objext libconftest.a
1.150 moko 6999: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7000: (eval $lt_ar_try) 2>&5
7001: ac_status=$?
1.150 moko 7002: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003: test $ac_status = 0; }
1.128 moko 7004: if test "$ac_status" -ne 0; then
7005: lt_cv_ar_at_file=@
7006: fi
7007: fi
7008: rm -f conftest.* libconftest.a
7009:
7010: fi
1.150 moko 7011: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 7012:
7013: fi
1.150 moko 7014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7015: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 7016:
7017: if test "x$lt_cv_ar_at_file" = xno; then
7018: archiver_list_spec=
7019: else
7020: archiver_list_spec=$lt_cv_ar_at_file
7021: fi
7022:
7023:
7024:
7025:
7026:
7027:
7028:
7029: if test -n "$ac_tool_prefix"; then
7030: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7031: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 7032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033: $as_echo_n "checking for $ac_word... " >&6; }
7034: if ${ac_cv_prog_STRIP+:} false; then :
7035: $as_echo_n "(cached) " >&6
1.128 moko 7036: else
7037: if test -n "$STRIP"; then
7038: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7039: else
7040: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041: for as_dir in $PATH
7042: do
7043: IFS=$as_save_IFS
7044: test -z "$as_dir" && as_dir=.
1.150 moko 7045: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7046: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7047: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 7048: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7049: break 2
7050: fi
7051: done
1.150 moko 7052: done
7053: IFS=$as_save_IFS
1.128 moko 7054:
7055: fi
7056: fi
7057: STRIP=$ac_cv_prog_STRIP
7058: if test -n "$STRIP"; then
1.150 moko 7059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7060: $as_echo "$STRIP" >&6; }
1.128 moko 7061: else
1.150 moko 7062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063: $as_echo "no" >&6; }
1.128 moko 7064: fi
7065:
1.150 moko 7066:
1.128 moko 7067: fi
7068: if test -z "$ac_cv_prog_STRIP"; then
7069: ac_ct_STRIP=$STRIP
7070: # Extract the first word of "strip", so it can be a program name with args.
7071: set dummy strip; ac_word=$2
1.150 moko 7072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073: $as_echo_n "checking for $ac_word... " >&6; }
7074: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7075: $as_echo_n "(cached) " >&6
1.128 moko 7076: else
7077: if test -n "$ac_ct_STRIP"; then
7078: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7079: else
7080: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081: for as_dir in $PATH
7082: do
7083: IFS=$as_save_IFS
7084: test -z "$as_dir" && as_dir=.
1.150 moko 7085: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7086: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7087: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 7088: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7089: break 2
7090: fi
7091: done
1.150 moko 7092: done
7093: IFS=$as_save_IFS
1.128 moko 7094:
7095: fi
7096: fi
7097: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7098: if test -n "$ac_ct_STRIP"; then
1.150 moko 7099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7100: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 7101: else
1.150 moko 7102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103: $as_echo "no" >&6; }
1.128 moko 7104: fi
7105:
1.150 moko 7106: if test "x$ac_ct_STRIP" = x; then
7107: STRIP=":"
7108: else
7109: case $cross_compiling:$ac_tool_warned in
7110: yes:)
7111: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113: ac_tool_warned=yes ;;
7114: esac
7115: STRIP=$ac_ct_STRIP
7116: fi
1.128 moko 7117: else
7118: STRIP="$ac_cv_prog_STRIP"
7119: fi
7120:
7121: test -z "$STRIP" && STRIP=:
7122:
7123:
7124:
7125:
7126:
7127:
7128: if test -n "$ac_tool_prefix"; then
7129: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7130: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 7131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132: $as_echo_n "checking for $ac_word... " >&6; }
7133: if ${ac_cv_prog_RANLIB+:} false; then :
7134: $as_echo_n "(cached) " >&6
1.128 moko 7135: else
7136: if test -n "$RANLIB"; then
7137: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7138: else
7139: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140: for as_dir in $PATH
7141: do
7142: IFS=$as_save_IFS
7143: test -z "$as_dir" && as_dir=.
1.150 moko 7144: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7145: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7146: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 7147: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7148: break 2
7149: fi
7150: done
1.150 moko 7151: done
7152: IFS=$as_save_IFS
1.128 moko 7153:
7154: fi
7155: fi
7156: RANLIB=$ac_cv_prog_RANLIB
7157: if test -n "$RANLIB"; then
1.150 moko 7158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7159: $as_echo "$RANLIB" >&6; }
1.128 moko 7160: else
1.150 moko 7161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162: $as_echo "no" >&6; }
1.128 moko 7163: fi
7164:
1.150 moko 7165:
1.128 moko 7166: fi
7167: if test -z "$ac_cv_prog_RANLIB"; then
7168: ac_ct_RANLIB=$RANLIB
7169: # Extract the first word of "ranlib", so it can be a program name with args.
7170: set dummy ranlib; ac_word=$2
1.150 moko 7171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172: $as_echo_n "checking for $ac_word... " >&6; }
7173: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7174: $as_echo_n "(cached) " >&6
1.128 moko 7175: else
7176: if test -n "$ac_ct_RANLIB"; then
7177: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7178: else
7179: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180: for as_dir in $PATH
7181: do
7182: IFS=$as_save_IFS
7183: test -z "$as_dir" && as_dir=.
1.150 moko 7184: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7185: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7186: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 7187: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7188: break 2
7189: fi
7190: done
1.150 moko 7191: done
7192: IFS=$as_save_IFS
1.128 moko 7193:
7194: fi
7195: fi
7196: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7197: if test -n "$ac_ct_RANLIB"; then
1.150 moko 7198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7199: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 7200: else
1.150 moko 7201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202: $as_echo "no" >&6; }
1.128 moko 7203: fi
7204:
1.150 moko 7205: if test "x$ac_ct_RANLIB" = x; then
7206: RANLIB=":"
7207: else
7208: case $cross_compiling:$ac_tool_warned in
7209: yes:)
7210: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212: ac_tool_warned=yes ;;
7213: esac
7214: RANLIB=$ac_ct_RANLIB
7215: fi
1.128 moko 7216: else
7217: RANLIB="$ac_cv_prog_RANLIB"
7218: fi
7219:
7220: test -z "$RANLIB" && RANLIB=:
7221:
7222:
7223:
7224:
7225:
7226:
7227: # Determine commands to create old-style static archives.
7228: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7229: old_postinstall_cmds='chmod 644 $oldlib'
7230: old_postuninstall_cmds=
7231:
7232: if test -n "$RANLIB"; then
7233: case $host_os in
7234: openbsd*)
7235: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7236: ;;
7237: *)
7238: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7239: ;;
7240: esac
7241: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7242: fi
7243:
7244: case $host_os in
7245: darwin*)
7246: lock_old_archive_extraction=yes ;;
7247: *)
7248: lock_old_archive_extraction=no ;;
7249: esac
7250:
7251:
7252:
7253:
7254:
7255:
7256:
7257:
7258:
7259:
7260:
7261:
7262:
7263:
7264:
7265:
7266:
7267:
7268:
7269:
7270:
7271:
7272:
7273:
7274:
7275:
7276:
7277:
7278:
7279:
7280:
7281:
7282:
7283:
7284:
7285:
7286:
7287:
7288:
7289: # If no C compiler was specified, use CC.
7290: LTCC=${LTCC-"$CC"}
7291:
7292: # If no C compiler flags were specified, use CFLAGS.
7293: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7294:
7295: # Allow CC to be a program name with arguments.
7296: compiler=$CC
7297:
7298:
7299: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7301: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7302: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7303: $as_echo_n "(cached) " >&6
1.128 moko 7304: else
7305:
7306: # These are sane defaults that work on at least a few old systems.
7307: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7308:
7309: # Character class describing NM global symbol codes.
7310: symcode='[BCDEGRST]'
7311:
7312: # Regexp to match symbols that can be accessed directly from C.
7313: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7314:
7315: # Define system-specific variables.
7316: case $host_os in
7317: aix*)
7318: symcode='[BCDT]'
7319: ;;
7320: cygwin* | mingw* | pw32* | cegcc*)
7321: symcode='[ABCDGISTW]'
7322: ;;
7323: hpux*)
7324: if test "$host_cpu" = ia64; then
7325: symcode='[ABCDEGRST]'
7326: fi
7327: ;;
7328: irix* | nonstopux*)
7329: symcode='[BCDEGRST]'
7330: ;;
7331: osf*)
7332: symcode='[BCDEGQRST]'
7333: ;;
7334: solaris*)
7335: symcode='[BDRT]'
7336: ;;
7337: sco3.2v5*)
7338: symcode='[DT]'
7339: ;;
7340: sysv4.2uw2*)
7341: symcode='[DT]'
7342: ;;
7343: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7344: symcode='[ABDT]'
7345: ;;
7346: sysv4)
7347: symcode='[DFNSTU]'
7348: ;;
7349: esac
7350:
7351: # If we're using GNU nm, then use its standard symbol codes.
7352: case `$NM -V 2>&1` in
7353: *GNU* | *'with BFD'*)
7354: symcode='[ABCDGIRSTW]' ;;
7355: esac
7356:
7357: # Transform an extracted symbol line into a proper C declaration.
7358: # Some systems (esp. on ia64) link data and code symbols differently,
7359: # so use this general approach.
7360: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7361:
7362: # Transform an extracted symbol line into symbol name and symbol address
7363: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7364: 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'"
7365:
7366: # Handle CRLF in mingw tool chain
7367: opt_cr=
7368: case $build_os in
7369: mingw*)
7370: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7371: ;;
7372: esac
7373:
7374: # Try without a prefix underscore, then with it.
7375: for ac_symprfx in "" "_"; do
7376:
7377: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7378: symxfrm="\\1 $ac_symprfx\\2 \\2"
7379:
7380: # Write the raw and C identifiers.
7381: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7382: # Fake it for dumpbin and say T for any non-static function
7383: # and D for any global variable.
7384: # Also find C++ and __fastcall symbols from MSVC++,
7385: # which start with @ or ?.
7386: lt_cv_sys_global_symbol_pipe="$AWK '"\
7387: " {last_section=section; section=\$ 3};"\
7388: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7389: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7390: " \$ 0!~/External *\|/{next};"\
7391: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7392: " {if(hide[section]) next};"\
7393: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7394: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7395: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7396: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7397: " ' prfx=^$ac_symprfx"
7398: else
7399: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7400: fi
7401: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7402:
7403: # Check to see that the pipe works correctly.
7404: pipe_works=no
7405:
7406: rm -f conftest*
7407: cat > conftest.$ac_ext <<_LT_EOF
7408: #ifdef __cplusplus
7409: extern "C" {
7410: #endif
7411: char nm_test_var;
7412: void nm_test_func(void);
7413: void nm_test_func(void){}
7414: #ifdef __cplusplus
7415: }
7416: #endif
7417: int main(){nm_test_var='a';nm_test_func();return(0);}
7418: _LT_EOF
7419:
1.150 moko 7420: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7421: (eval $ac_compile) 2>&5
7422: ac_status=$?
1.150 moko 7423: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424: test $ac_status = 0; }; then
1.128 moko 7425: # Now try to grab the symbols.
7426: nlist=conftest.nm
1.150 moko 7427: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7428: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7429: ac_status=$?
1.150 moko 7430: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7432: # Try sorting and uniquifying the output.
7433: if sort "$nlist" | uniq > "$nlist"T; then
7434: mv -f "$nlist"T "$nlist"
7435: else
7436: rm -f "$nlist"T
7437: fi
7438:
7439: # Make sure that we snagged all the symbols we need.
7440: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7441: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7442: cat <<_LT_EOF > conftest.$ac_ext
7443: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7444: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7445: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7446: relocations are performed -- see ld's documentation on pseudo-relocs. */
7447: # define LT_DLSYM_CONST
7448: #elif defined(__osf__)
7449: /* This system does not cope well with relocations in const data. */
7450: # define LT_DLSYM_CONST
7451: #else
7452: # define LT_DLSYM_CONST const
7453: #endif
7454:
7455: #ifdef __cplusplus
7456: extern "C" {
7457: #endif
7458:
7459: _LT_EOF
7460: # Now generate the symbol file.
7461: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7462:
7463: cat <<_LT_EOF >> conftest.$ac_ext
7464:
7465: /* The mapping between symbol names and symbols. */
7466: LT_DLSYM_CONST struct {
7467: const char *name;
7468: void *address;
7469: }
7470: lt__PROGRAM__LTX_preloaded_symbols[] =
7471: {
7472: { "@PROGRAM@", (void *) 0 },
7473: _LT_EOF
7474: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7475: cat <<\_LT_EOF >> conftest.$ac_ext
7476: {0, (void *) 0}
7477: };
7478:
7479: /* This works around a problem in FreeBSD linker */
7480: #ifdef FREEBSD_WORKAROUND
7481: static const void *lt_preloaded_setup() {
7482: return lt__PROGRAM__LTX_preloaded_symbols;
7483: }
7484: #endif
7485:
7486: #ifdef __cplusplus
7487: }
7488: #endif
7489: _LT_EOF
7490: # Now try linking the two files.
7491: mv conftest.$ac_objext conftstm.$ac_objext
7492: lt_globsym_save_LIBS=$LIBS
7493: lt_globsym_save_CFLAGS=$CFLAGS
7494: LIBS="conftstm.$ac_objext"
7495: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7496: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7497: (eval $ac_link) 2>&5
7498: ac_status=$?
1.150 moko 7499: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7500: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7501: pipe_works=yes
7502: fi
7503: LIBS=$lt_globsym_save_LIBS
7504: CFLAGS=$lt_globsym_save_CFLAGS
7505: else
7506: echo "cannot find nm_test_func in $nlist" >&5
7507: fi
7508: else
7509: echo "cannot find nm_test_var in $nlist" >&5
7510: fi
7511: else
7512: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7513: fi
7514: else
7515: echo "$progname: failed program was:" >&5
7516: cat conftest.$ac_ext >&5
7517: fi
7518: rm -rf conftest* conftst*
7519:
7520: # Do not use the global_symbol_pipe unless it works.
7521: if test "$pipe_works" = yes; then
7522: break
7523: else
7524: lt_cv_sys_global_symbol_pipe=
7525: fi
7526: done
7527:
7528: fi
7529:
7530: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7531: lt_cv_sys_global_symbol_to_cdecl=
7532: fi
7533: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7535: $as_echo "failed" >&6; }
1.128 moko 7536: else
1.150 moko 7537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7538: $as_echo "ok" >&6; }
1.128 moko 7539: fi
7540:
7541: # Response file support.
7542: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7543: nm_file_list_spec='@'
7544: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7545: nm_file_list_spec='@'
7546: fi
7547:
7548:
7549:
7550:
7551:
7552:
7553:
7554:
7555:
7556:
7557:
7558:
7559:
7560:
7561:
7562:
7563:
7564:
7565:
7566:
7567:
7568:
7569:
7570:
7571:
7572:
7573:
1.150 moko 7574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7575: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7576:
1.150 moko 7577: # Check whether --with-sysroot was given.
7578: if test "${with_sysroot+set}" = set; then :
7579: withval=$with_sysroot;
1.128 moko 7580: else
7581: with_sysroot=no
1.150 moko 7582: fi
7583:
1.128 moko 7584:
7585: lt_sysroot=
7586: case ${with_sysroot} in #(
7587: yes)
7588: if test "$GCC" = yes; then
7589: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7590: fi
7591: ;; #(
7592: /*)
7593: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7594: ;; #(
7595: no|'')
7596: ;; #(
7597: *)
1.150 moko 7598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7599: $as_echo "${with_sysroot}" >&6; }
7600: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7601: ;;
7602: esac
7603:
1.150 moko 7604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7605: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7606:
7607:
7608:
7609:
7610:
1.150 moko 7611: # Check whether --enable-libtool-lock was given.
7612: if test "${enable_libtool_lock+set}" = set; then :
7613: enableval=$enable_libtool_lock;
7614: fi
1.128 moko 7615:
7616: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7617:
7618: # Some flags need to be propagated to the compiler or linker for good
7619: # libtool support.
7620: case $host in
7621: ia64-*-hpux*)
7622: # Find out which ABI we are using.
7623: echo 'int i;' > conftest.$ac_ext
1.150 moko 7624: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7625: (eval $ac_compile) 2>&5
7626: ac_status=$?
1.150 moko 7627: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628: test $ac_status = 0; }; then
1.128 moko 7629: case `/usr/bin/file conftest.$ac_objext` in
7630: *ELF-32*)
7631: HPUX_IA64_MODE="32"
7632: ;;
7633: *ELF-64*)
7634: HPUX_IA64_MODE="64"
7635: ;;
7636: esac
7637: fi
7638: rm -rf conftest*
7639: ;;
7640: *-*-irix6*)
7641: # Find out which ABI we are using.
7642: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7643: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7644: (eval $ac_compile) 2>&5
7645: ac_status=$?
1.150 moko 7646: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647: test $ac_status = 0; }; then
1.128 moko 7648: if test "$lt_cv_prog_gnu_ld" = yes; then
7649: case `/usr/bin/file conftest.$ac_objext` in
7650: *32-bit*)
7651: LD="${LD-ld} -melf32bsmip"
7652: ;;
7653: *N32*)
7654: LD="${LD-ld} -melf32bmipn32"
7655: ;;
7656: *64-bit*)
7657: LD="${LD-ld} -melf64bmip"
7658: ;;
7659: esac
7660: else
7661: case `/usr/bin/file conftest.$ac_objext` in
7662: *32-bit*)
7663: LD="${LD-ld} -32"
7664: ;;
7665: *N32*)
7666: LD="${LD-ld} -n32"
7667: ;;
7668: *64-bit*)
7669: LD="${LD-ld} -64"
7670: ;;
7671: esac
7672: fi
7673: fi
7674: rm -rf conftest*
7675: ;;
7676:
7677: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7678: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7679: # Find out which ABI we are using.
7680: echo 'int i;' > conftest.$ac_ext
1.150 moko 7681: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7682: (eval $ac_compile) 2>&5
7683: ac_status=$?
1.150 moko 7684: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685: test $ac_status = 0; }; then
1.128 moko 7686: case `/usr/bin/file conftest.o` in
7687: *32-bit*)
7688: case $host in
7689: x86_64-*kfreebsd*-gnu)
7690: LD="${LD-ld} -m elf_i386_fbsd"
7691: ;;
7692: x86_64-*linux*)
7693: LD="${LD-ld} -m elf_i386"
7694: ;;
7695: ppc64-*linux*|powerpc64-*linux*)
7696: LD="${LD-ld} -m elf32ppclinux"
7697: ;;
7698: s390x-*linux*)
7699: LD="${LD-ld} -m elf_s390"
7700: ;;
7701: sparc64-*linux*)
7702: LD="${LD-ld} -m elf32_sparc"
7703: ;;
7704: esac
7705: ;;
7706: *64-bit*)
7707: case $host in
7708: x86_64-*kfreebsd*-gnu)
7709: LD="${LD-ld} -m elf_x86_64_fbsd"
7710: ;;
7711: x86_64-*linux*)
7712: LD="${LD-ld} -m elf_x86_64"
7713: ;;
7714: ppc*-*linux*|powerpc*-*linux*)
7715: LD="${LD-ld} -m elf64ppc"
7716: ;;
7717: s390*-*linux*|s390*-*tpf*)
7718: LD="${LD-ld} -m elf64_s390"
7719: ;;
7720: sparc*-*linux*)
7721: LD="${LD-ld} -m elf64_sparc"
7722: ;;
7723: esac
7724: ;;
7725: esac
7726: fi
7727: rm -rf conftest*
7728: ;;
7729:
7730: *-*-sco3.2v5*)
7731: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7732: SAVE_CFLAGS="$CFLAGS"
7733: CFLAGS="$CFLAGS -belf"
1.150 moko 7734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7735: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7736: if ${lt_cv_cc_needs_belf+:} false; then :
7737: $as_echo_n "(cached) " >&6
1.128 moko 7738: else
7739: ac_ext=c
7740: ac_cpp='$CPP $CPPFLAGS'
7741: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7744:
1.150 moko 7745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7746: /* end confdefs.h. */
7747:
7748: int
7749: main ()
7750: {
7751:
7752: ;
7753: return 0;
7754: }
7755: _ACEOF
1.150 moko 7756: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7757: lt_cv_cc_needs_belf=yes
7758: else
1.150 moko 7759: lt_cv_cc_needs_belf=no
1.128 moko 7760: fi
1.150 moko 7761: rm -f core conftest.err conftest.$ac_objext \
7762: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7763: ac_ext=c
7764: ac_cpp='$CPP $CPPFLAGS'
7765: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7766: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7767: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7768:
7769: fi
1.150 moko 7770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7771: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7772: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7773: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7774: CFLAGS="$SAVE_CFLAGS"
7775: fi
7776: ;;
7777: *-*solaris*)
7778: # Find out which ABI we are using.
7779: echo 'int i;' > conftest.$ac_ext
1.150 moko 7780: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7781: (eval $ac_compile) 2>&5
7782: ac_status=$?
1.150 moko 7783: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7784: test $ac_status = 0; }; then
1.128 moko 7785: case `/usr/bin/file conftest.o` in
7786: *64-bit*)
7787: case $lt_cv_prog_gnu_ld in
7788: yes*)
7789: case $host in
7790: i?86-*-solaris*)
7791: LD="${LD-ld} -m elf_x86_64"
7792: ;;
7793: sparc*-*-solaris*)
7794: LD="${LD-ld} -m elf64_sparc"
7795: ;;
7796: esac
7797: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7798: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7799: LD="${LD-ld}_sol2"
7800: fi
7801: ;;
7802: *)
7803: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7804: LD="${LD-ld} -64"
7805: fi
7806: ;;
7807: esac
7808: ;;
7809: esac
7810: fi
7811: rm -rf conftest*
7812: ;;
7813: esac
7814:
7815: need_locks="$enable_libtool_lock"
7816:
7817: if test -n "$ac_tool_prefix"; then
7818: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7819: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821: $as_echo_n "checking for $ac_word... " >&6; }
7822: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7823: $as_echo_n "(cached) " >&6
1.128 moko 7824: else
7825: if test -n "$MANIFEST_TOOL"; then
7826: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7827: else
7828: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829: for as_dir in $PATH
7830: do
7831: IFS=$as_save_IFS
7832: test -z "$as_dir" && as_dir=.
1.150 moko 7833: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7834: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7835: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7836: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7837: break 2
7838: fi
7839: done
1.150 moko 7840: done
7841: IFS=$as_save_IFS
1.128 moko 7842:
7843: fi
7844: fi
7845: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7846: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7848: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7849: else
1.150 moko 7850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851: $as_echo "no" >&6; }
1.128 moko 7852: fi
7853:
1.150 moko 7854:
1.128 moko 7855: fi
7856: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7857: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7858: # Extract the first word of "mt", so it can be a program name with args.
7859: set dummy mt; ac_word=$2
1.150 moko 7860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861: $as_echo_n "checking for $ac_word... " >&6; }
7862: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7863: $as_echo_n "(cached) " >&6
1.128 moko 7864: else
7865: if test -n "$ac_ct_MANIFEST_TOOL"; then
7866: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7867: else
7868: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869: for as_dir in $PATH
7870: do
7871: IFS=$as_save_IFS
7872: test -z "$as_dir" && as_dir=.
1.150 moko 7873: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7874: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7875: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7876: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7877: break 2
7878: fi
7879: done
1.150 moko 7880: done
7881: IFS=$as_save_IFS
1.128 moko 7882:
7883: fi
7884: fi
7885: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7886: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7888: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7889: else
1.150 moko 7890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891: $as_echo "no" >&6; }
1.128 moko 7892: fi
7893:
1.150 moko 7894: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7895: MANIFEST_TOOL=":"
7896: else
7897: case $cross_compiling:$ac_tool_warned in
7898: yes:)
7899: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7900: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7901: ac_tool_warned=yes ;;
7902: esac
7903: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7904: fi
1.128 moko 7905: else
7906: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7907: fi
7908:
7909: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7911: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7912: if ${lt_cv_path_mainfest_tool+:} false; then :
7913: $as_echo_n "(cached) " >&6
1.128 moko 7914: else
7915: lt_cv_path_mainfest_tool=no
7916: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7917: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7918: cat conftest.err >&5
7919: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7920: lt_cv_path_mainfest_tool=yes
7921: fi
7922: rm -f conftest*
7923: fi
1.150 moko 7924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7925: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 7926: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7927: MANIFEST_TOOL=:
7928: fi
7929:
7930:
7931:
7932:
7933:
7934:
7935: case $host_os in
7936: rhapsody* | darwin*)
7937: if test -n "$ac_tool_prefix"; then
7938: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7939: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 7940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941: $as_echo_n "checking for $ac_word... " >&6; }
7942: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7943: $as_echo_n "(cached) " >&6
1.128 moko 7944: else
7945: if test -n "$DSYMUTIL"; then
7946: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7947: else
7948: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949: for as_dir in $PATH
7950: do
7951: IFS=$as_save_IFS
7952: test -z "$as_dir" && as_dir=.
1.150 moko 7953: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7954: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7955: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 7956: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7957: break 2
7958: fi
7959: done
1.150 moko 7960: done
7961: IFS=$as_save_IFS
1.128 moko 7962:
7963: fi
7964: fi
7965: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7966: if test -n "$DSYMUTIL"; then
1.150 moko 7967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7968: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 7969: else
1.150 moko 7970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971: $as_echo "no" >&6; }
1.128 moko 7972: fi
7973:
1.150 moko 7974:
1.128 moko 7975: fi
7976: if test -z "$ac_cv_prog_DSYMUTIL"; then
7977: ac_ct_DSYMUTIL=$DSYMUTIL
7978: # Extract the first word of "dsymutil", so it can be a program name with args.
7979: set dummy dsymutil; ac_word=$2
1.150 moko 7980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981: $as_echo_n "checking for $ac_word... " >&6; }
7982: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7983: $as_echo_n "(cached) " >&6
1.128 moko 7984: else
7985: if test -n "$ac_ct_DSYMUTIL"; then
7986: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7987: else
7988: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989: for as_dir in $PATH
7990: do
7991: IFS=$as_save_IFS
7992: test -z "$as_dir" && as_dir=.
1.150 moko 7993: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7994: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7995: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 7996: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7997: break 2
7998: fi
7999: done
1.150 moko 8000: done
8001: IFS=$as_save_IFS
1.128 moko 8002:
8003: fi
8004: fi
8005: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8006: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 8007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8008: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 8009: else
1.150 moko 8010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011: $as_echo "no" >&6; }
1.128 moko 8012: fi
8013:
1.150 moko 8014: if test "x$ac_ct_DSYMUTIL" = x; then
8015: DSYMUTIL=":"
8016: else
8017: case $cross_compiling:$ac_tool_warned in
8018: yes:)
8019: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021: ac_tool_warned=yes ;;
8022: esac
8023: DSYMUTIL=$ac_ct_DSYMUTIL
8024: fi
1.128 moko 8025: else
8026: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8027: fi
8028:
8029: if test -n "$ac_tool_prefix"; then
8030: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8031: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 8032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033: $as_echo_n "checking for $ac_word... " >&6; }
8034: if ${ac_cv_prog_NMEDIT+:} false; then :
8035: $as_echo_n "(cached) " >&6
1.128 moko 8036: else
8037: if test -n "$NMEDIT"; then
8038: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8039: else
8040: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041: for as_dir in $PATH
8042: do
8043: IFS=$as_save_IFS
8044: test -z "$as_dir" && as_dir=.
1.150 moko 8045: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8046: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8047: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 8048: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8049: break 2
8050: fi
8051: done
1.150 moko 8052: done
8053: IFS=$as_save_IFS
1.128 moko 8054:
8055: fi
8056: fi
8057: NMEDIT=$ac_cv_prog_NMEDIT
8058: if test -n "$NMEDIT"; then
1.150 moko 8059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8060: $as_echo "$NMEDIT" >&6; }
1.128 moko 8061: else
1.150 moko 8062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063: $as_echo "no" >&6; }
1.128 moko 8064: fi
8065:
1.150 moko 8066:
1.128 moko 8067: fi
8068: if test -z "$ac_cv_prog_NMEDIT"; then
8069: ac_ct_NMEDIT=$NMEDIT
8070: # Extract the first word of "nmedit", so it can be a program name with args.
8071: set dummy nmedit; ac_word=$2
1.150 moko 8072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073: $as_echo_n "checking for $ac_word... " >&6; }
8074: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8075: $as_echo_n "(cached) " >&6
1.128 moko 8076: else
8077: if test -n "$ac_ct_NMEDIT"; then
8078: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8079: else
8080: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081: for as_dir in $PATH
8082: do
8083: IFS=$as_save_IFS
8084: test -z "$as_dir" && as_dir=.
1.150 moko 8085: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8086: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8087: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 8088: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8089: break 2
8090: fi
8091: done
1.150 moko 8092: done
8093: IFS=$as_save_IFS
1.128 moko 8094:
8095: fi
8096: fi
8097: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8098: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 8099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8100: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 8101: else
1.150 moko 8102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103: $as_echo "no" >&6; }
1.128 moko 8104: fi
8105:
1.150 moko 8106: if test "x$ac_ct_NMEDIT" = x; then
8107: NMEDIT=":"
8108: else
8109: case $cross_compiling:$ac_tool_warned in
8110: yes:)
8111: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8112: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8113: ac_tool_warned=yes ;;
8114: esac
8115: NMEDIT=$ac_ct_NMEDIT
8116: fi
1.128 moko 8117: else
8118: NMEDIT="$ac_cv_prog_NMEDIT"
8119: fi
8120:
8121: if test -n "$ac_tool_prefix"; then
8122: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8123: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 8124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125: $as_echo_n "checking for $ac_word... " >&6; }
8126: if ${ac_cv_prog_LIPO+:} false; then :
8127: $as_echo_n "(cached) " >&6
1.128 moko 8128: else
8129: if test -n "$LIPO"; then
8130: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8131: else
8132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133: for as_dir in $PATH
8134: do
8135: IFS=$as_save_IFS
8136: test -z "$as_dir" && as_dir=.
1.150 moko 8137: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8138: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8139: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 8140: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8141: break 2
8142: fi
8143: done
1.150 moko 8144: done
8145: IFS=$as_save_IFS
1.128 moko 8146:
8147: fi
8148: fi
8149: LIPO=$ac_cv_prog_LIPO
8150: if test -n "$LIPO"; then
1.150 moko 8151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8152: $as_echo "$LIPO" >&6; }
1.128 moko 8153: else
1.150 moko 8154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155: $as_echo "no" >&6; }
1.128 moko 8156: fi
8157:
1.150 moko 8158:
1.128 moko 8159: fi
8160: if test -z "$ac_cv_prog_LIPO"; then
8161: ac_ct_LIPO=$LIPO
8162: # Extract the first word of "lipo", so it can be a program name with args.
8163: set dummy lipo; ac_word=$2
1.150 moko 8164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165: $as_echo_n "checking for $ac_word... " >&6; }
8166: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8167: $as_echo_n "(cached) " >&6
1.128 moko 8168: else
8169: if test -n "$ac_ct_LIPO"; then
8170: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8171: else
8172: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173: for as_dir in $PATH
8174: do
8175: IFS=$as_save_IFS
8176: test -z "$as_dir" && as_dir=.
1.150 moko 8177: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8178: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8179: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 8180: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8181: break 2
8182: fi
8183: done
1.150 moko 8184: done
8185: IFS=$as_save_IFS
1.128 moko 8186:
8187: fi
8188: fi
8189: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8190: if test -n "$ac_ct_LIPO"; then
1.150 moko 8191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8192: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 8193: else
1.150 moko 8194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195: $as_echo "no" >&6; }
1.128 moko 8196: fi
8197:
1.150 moko 8198: if test "x$ac_ct_LIPO" = x; then
8199: LIPO=":"
8200: else
8201: case $cross_compiling:$ac_tool_warned in
8202: yes:)
8203: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8204: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8205: ac_tool_warned=yes ;;
8206: esac
8207: LIPO=$ac_ct_LIPO
8208: fi
1.128 moko 8209: else
8210: LIPO="$ac_cv_prog_LIPO"
8211: fi
8212:
8213: if test -n "$ac_tool_prefix"; then
8214: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8215: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 8216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217: $as_echo_n "checking for $ac_word... " >&6; }
8218: if ${ac_cv_prog_OTOOL+:} false; then :
8219: $as_echo_n "(cached) " >&6
1.128 moko 8220: else
8221: if test -n "$OTOOL"; then
8222: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8223: else
8224: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225: for as_dir in $PATH
8226: do
8227: IFS=$as_save_IFS
8228: test -z "$as_dir" && as_dir=.
1.150 moko 8229: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8230: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8231: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 8232: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8233: break 2
8234: fi
8235: done
1.150 moko 8236: done
8237: IFS=$as_save_IFS
1.128 moko 8238:
8239: fi
8240: fi
8241: OTOOL=$ac_cv_prog_OTOOL
8242: if test -n "$OTOOL"; then
1.150 moko 8243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8244: $as_echo "$OTOOL" >&6; }
1.128 moko 8245: else
1.150 moko 8246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247: $as_echo "no" >&6; }
1.128 moko 8248: fi
8249:
1.150 moko 8250:
1.128 moko 8251: fi
8252: if test -z "$ac_cv_prog_OTOOL"; then
8253: ac_ct_OTOOL=$OTOOL
8254: # Extract the first word of "otool", so it can be a program name with args.
8255: set dummy otool; ac_word=$2
1.150 moko 8256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257: $as_echo_n "checking for $ac_word... " >&6; }
8258: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8259: $as_echo_n "(cached) " >&6
1.128 moko 8260: else
8261: if test -n "$ac_ct_OTOOL"; then
8262: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8263: else
8264: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265: for as_dir in $PATH
8266: do
8267: IFS=$as_save_IFS
8268: test -z "$as_dir" && as_dir=.
1.150 moko 8269: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8270: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8271: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 8272: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8273: break 2
8274: fi
8275: done
1.150 moko 8276: done
8277: IFS=$as_save_IFS
1.128 moko 8278:
8279: fi
8280: fi
8281: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8282: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8284: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8285: else
1.150 moko 8286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287: $as_echo "no" >&6; }
1.128 moko 8288: fi
8289:
1.150 moko 8290: if test "x$ac_ct_OTOOL" = x; then
8291: OTOOL=":"
8292: else
8293: case $cross_compiling:$ac_tool_warned in
8294: yes:)
8295: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8296: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8297: ac_tool_warned=yes ;;
8298: esac
8299: OTOOL=$ac_ct_OTOOL
8300: fi
1.128 moko 8301: else
8302: OTOOL="$ac_cv_prog_OTOOL"
8303: fi
8304:
8305: if test -n "$ac_tool_prefix"; then
8306: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8307: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309: $as_echo_n "checking for $ac_word... " >&6; }
8310: if ${ac_cv_prog_OTOOL64+:} false; then :
8311: $as_echo_n "(cached) " >&6
1.128 moko 8312: else
8313: if test -n "$OTOOL64"; then
8314: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8315: else
8316: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317: for as_dir in $PATH
8318: do
8319: IFS=$as_save_IFS
8320: test -z "$as_dir" && as_dir=.
1.150 moko 8321: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8322: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8323: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8324: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8325: break 2
8326: fi
8327: done
1.150 moko 8328: done
8329: IFS=$as_save_IFS
1.128 moko 8330:
8331: fi
8332: fi
8333: OTOOL64=$ac_cv_prog_OTOOL64
8334: if test -n "$OTOOL64"; then
1.150 moko 8335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8336: $as_echo "$OTOOL64" >&6; }
1.128 moko 8337: else
1.150 moko 8338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339: $as_echo "no" >&6; }
1.128 moko 8340: fi
8341:
1.150 moko 8342:
1.128 moko 8343: fi
8344: if test -z "$ac_cv_prog_OTOOL64"; then
8345: ac_ct_OTOOL64=$OTOOL64
8346: # Extract the first word of "otool64", so it can be a program name with args.
8347: set dummy otool64; ac_word=$2
1.150 moko 8348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349: $as_echo_n "checking for $ac_word... " >&6; }
8350: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8351: $as_echo_n "(cached) " >&6
1.128 moko 8352: else
8353: if test -n "$ac_ct_OTOOL64"; then
8354: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8355: else
8356: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357: for as_dir in $PATH
8358: do
8359: IFS=$as_save_IFS
8360: test -z "$as_dir" && as_dir=.
1.150 moko 8361: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8362: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8363: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8364: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8365: break 2
8366: fi
8367: done
1.150 moko 8368: done
8369: IFS=$as_save_IFS
1.128 moko 8370:
8371: fi
8372: fi
8373: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8374: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8376: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8377: else
1.150 moko 8378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379: $as_echo "no" >&6; }
1.128 moko 8380: fi
8381:
1.150 moko 8382: if test "x$ac_ct_OTOOL64" = x; then
8383: OTOOL64=":"
8384: else
8385: case $cross_compiling:$ac_tool_warned in
8386: yes:)
8387: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8388: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8389: ac_tool_warned=yes ;;
8390: esac
8391: OTOOL64=$ac_ct_OTOOL64
8392: fi
1.128 moko 8393: else
8394: OTOOL64="$ac_cv_prog_OTOOL64"
8395: fi
8396:
8397:
8398:
8399:
8400:
8401:
8402:
8403:
8404:
8405:
8406:
8407:
8408:
8409:
8410:
8411:
8412:
8413:
8414:
8415:
8416:
8417:
8418:
8419:
8420:
8421:
8422:
1.150 moko 8423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8424: $as_echo_n "checking for -single_module linker flag... " >&6; }
8425: if ${lt_cv_apple_cc_single_mod+:} false; then :
8426: $as_echo_n "(cached) " >&6
1.128 moko 8427: else
8428: lt_cv_apple_cc_single_mod=no
8429: if test -z "${LT_MULTI_MODULE}"; then
8430: # By default we will add the -single_module flag. You can override
8431: # by either setting the environment variable LT_MULTI_MODULE
8432: # non-empty at configure time, or by adding -multi_module to the
8433: # link flags.
8434: rm -rf libconftest.dylib*
8435: echo "int foo(void){return 1;}" > conftest.c
8436: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8437: -dynamiclib -Wl,-single_module conftest.c" >&5
8438: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8439: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8440: _lt_result=$?
8441: # If there is a non-empty error log, and "single_module"
8442: # appears in it, assume the flag caused a linker warning
8443: if test -s conftest.err && $GREP single_module conftest.err; then
8444: cat conftest.err >&5
8445: # Otherwise, if the output was created with a 0 exit code from
8446: # the compiler, it worked.
8447: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8448: lt_cv_apple_cc_single_mod=yes
8449: else
8450: cat conftest.err >&5
8451: fi
8452: rm -rf libconftest.dylib*
8453: rm -f conftest.*
8454: fi
8455: fi
1.150 moko 8456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8457: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8458:
1.150 moko 8459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8460: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8461: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8462: $as_echo_n "(cached) " >&6
1.128 moko 8463: else
8464: lt_cv_ld_exported_symbols_list=no
8465: save_LDFLAGS=$LDFLAGS
8466: echo "_main" > conftest.sym
8467: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8468: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8469: /* end confdefs.h. */
8470:
8471: int
8472: main ()
8473: {
8474:
8475: ;
8476: return 0;
8477: }
8478: _ACEOF
1.150 moko 8479: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8480: lt_cv_ld_exported_symbols_list=yes
8481: else
1.150 moko 8482: lt_cv_ld_exported_symbols_list=no
1.128 moko 8483: fi
1.150 moko 8484: rm -f core conftest.err conftest.$ac_objext \
8485: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8486: LDFLAGS="$save_LDFLAGS"
8487:
8488: fi
1.150 moko 8489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8490: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8491:
1.150 moko 8492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8493: $as_echo_n "checking for -force_load linker flag... " >&6; }
8494: if ${lt_cv_ld_force_load+:} false; then :
8495: $as_echo_n "(cached) " >&6
1.128 moko 8496: else
8497: lt_cv_ld_force_load=no
8498: cat > conftest.c << _LT_EOF
8499: int forced_loaded() { return 2;}
8500: _LT_EOF
8501: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8502: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8503: echo "$AR cru libconftest.a conftest.o" >&5
8504: $AR cru libconftest.a conftest.o 2>&5
8505: echo "$RANLIB libconftest.a" >&5
8506: $RANLIB libconftest.a 2>&5
8507: cat > conftest.c << _LT_EOF
8508: int main() { return 0;}
8509: _LT_EOF
8510: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8511: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8512: _lt_result=$?
8513: if test -s conftest.err && $GREP force_load conftest.err; then
8514: cat conftest.err >&5
8515: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8516: lt_cv_ld_force_load=yes
8517: else
8518: cat conftest.err >&5
8519: fi
8520: rm -f conftest.err libconftest.a conftest conftest.c
8521: rm -rf conftest.dSYM
8522:
8523: fi
1.150 moko 8524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8525: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8526: case $host_os in
8527: rhapsody* | darwin1.[012])
8528: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8529: darwin1.*)
8530: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8531: darwin*) # darwin 5.x on
8532: # if running on 10.5 or later, the deployment target defaults
8533: # to the OS version, if on x86, and 10.4, the deployment
8534: # target defaults to 10.4. Don't you love it?
8535: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8536: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8537: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8538: 10.[012]*)
8539: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8540: 10.*)
8541: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8542: esac
8543: ;;
8544: esac
8545: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8546: _lt_dar_single_mod='$single_module'
8547: fi
8548: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8549: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8550: else
8551: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8552: fi
8553: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8554: _lt_dsymutil='~$DSYMUTIL $lib || :'
8555: else
8556: _lt_dsymutil=
8557: fi
8558: ;;
8559: esac
8560:
8561: ac_ext=c
8562: ac_cpp='$CPP $CPPFLAGS'
8563: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8564: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8565: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8567: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8568: # On Suns, sometimes $CPP names a directory.
8569: if test -n "$CPP" && test -d "$CPP"; then
8570: CPP=
8571: fi
8572: if test -z "$CPP"; then
1.150 moko 8573: if ${ac_cv_prog_CPP+:} false; then :
8574: $as_echo_n "(cached) " >&6
1.128 moko 8575: else
8576: # Double quotes because CPP needs to be expanded
8577: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8578: do
8579: ac_preproc_ok=false
8580: for ac_c_preproc_warn_flag in '' yes
8581: do
8582: # Use a header file that comes with gcc, so configuring glibc
8583: # with a fresh cross-compiler works.
8584: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8585: # <limits.h> exists even on freestanding compilers.
8586: # On the NeXT, cc -E runs the code through the compiler's parser,
8587: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8589: /* end confdefs.h. */
8590: #ifdef __STDC__
8591: # include <limits.h>
8592: #else
8593: # include <assert.h>
8594: #endif
8595: Syntax error
8596: _ACEOF
1.150 moko 8597: if ac_fn_c_try_cpp "$LINENO"; then :
8598:
1.128 moko 8599: else
8600: # Broken: fails on valid input.
8601: continue
8602: fi
1.150 moko 8603: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8604:
1.150 moko 8605: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8606: # can be detected and how.
1.150 moko 8607: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8608: /* end confdefs.h. */
8609: #include <ac_nonexistent.h>
8610: _ACEOF
1.150 moko 8611: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8612: # Broken: success on invalid input.
8613: continue
8614: else
8615: # Passes both tests.
8616: ac_preproc_ok=:
8617: break
8618: fi
1.150 moko 8619: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8620:
8621: done
8622: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8623: rm -f conftest.i conftest.err conftest.$ac_ext
8624: if $ac_preproc_ok; then :
1.128 moko 8625: break
8626: fi
8627:
8628: done
8629: ac_cv_prog_CPP=$CPP
8630:
8631: fi
8632: CPP=$ac_cv_prog_CPP
8633: else
8634: ac_cv_prog_CPP=$CPP
8635: fi
1.150 moko 8636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8637: $as_echo "$CPP" >&6; }
1.128 moko 8638: ac_preproc_ok=false
8639: for ac_c_preproc_warn_flag in '' yes
8640: do
8641: # Use a header file that comes with gcc, so configuring glibc
8642: # with a fresh cross-compiler works.
8643: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8644: # <limits.h> exists even on freestanding compilers.
8645: # On the NeXT, cc -E runs the code through the compiler's parser,
8646: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8648: /* end confdefs.h. */
8649: #ifdef __STDC__
8650: # include <limits.h>
8651: #else
8652: # include <assert.h>
8653: #endif
8654: Syntax error
8655: _ACEOF
1.150 moko 8656: if ac_fn_c_try_cpp "$LINENO"; then :
8657:
1.128 moko 8658: else
8659: # Broken: fails on valid input.
8660: continue
8661: fi
1.150 moko 8662: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8663:
1.150 moko 8664: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8665: # can be detected and how.
1.150 moko 8666: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8667: /* end confdefs.h. */
8668: #include <ac_nonexistent.h>
8669: _ACEOF
1.150 moko 8670: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8671: # Broken: success on invalid input.
8672: continue
8673: else
8674: # Passes both tests.
8675: ac_preproc_ok=:
8676: break
8677: fi
1.150 moko 8678: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8679:
8680: done
8681: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8682: rm -f conftest.i conftest.err conftest.$ac_ext
8683: if $ac_preproc_ok; then :
8684:
1.128 moko 8685: else
1.150 moko 8686: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8687: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8688: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8689: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8690: fi
8691:
8692: ac_ext=c
8693: ac_cpp='$CPP $CPPFLAGS'
8694: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8695: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8696: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8697:
8698:
1.150 moko 8699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8700: $as_echo_n "checking for ANSI C header files... " >&6; }
8701: if ${ac_cv_header_stdc+:} false; then :
8702: $as_echo_n "(cached) " >&6
1.128 moko 8703: else
1.150 moko 8704: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8705: /* end confdefs.h. */
8706: #include <stdlib.h>
8707: #include <stdarg.h>
8708: #include <string.h>
8709: #include <float.h>
8710:
8711: int
8712: main ()
8713: {
8714:
8715: ;
8716: return 0;
8717: }
8718: _ACEOF
1.150 moko 8719: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8720: ac_cv_header_stdc=yes
8721: else
1.150 moko 8722: ac_cv_header_stdc=no
1.128 moko 8723: fi
1.150 moko 8724: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8725:
8726: if test $ac_cv_header_stdc = yes; then
8727: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8728: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8729: /* end confdefs.h. */
8730: #include <string.h>
8731:
8732: _ACEOF
8733: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8734: $EGREP "memchr" >/dev/null 2>&1; then :
8735:
1.128 moko 8736: else
8737: ac_cv_header_stdc=no
8738: fi
8739: rm -f conftest*
8740:
8741: fi
8742:
8743: if test $ac_cv_header_stdc = yes; then
8744: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8746: /* end confdefs.h. */
8747: #include <stdlib.h>
8748:
8749: _ACEOF
8750: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8751: $EGREP "free" >/dev/null 2>&1; then :
8752:
1.128 moko 8753: else
8754: ac_cv_header_stdc=no
8755: fi
8756: rm -f conftest*
8757:
8758: fi
8759:
8760: if test $ac_cv_header_stdc = yes; then
8761: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8762: if test "$cross_compiling" = yes; then :
1.128 moko 8763: :
8764: else
1.150 moko 8765: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8766: /* end confdefs.h. */
8767: #include <ctype.h>
1.150 moko 8768: #include <stdlib.h>
1.128 moko 8769: #if ((' ' & 0x0FF) == 0x020)
8770: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8771: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8772: #else
8773: # define ISLOWER(c) \
8774: (('a' <= (c) && (c) <= 'i') \
8775: || ('j' <= (c) && (c) <= 'r') \
8776: || ('s' <= (c) && (c) <= 'z'))
8777: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8778: #endif
8779:
8780: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8781: int
8782: main ()
8783: {
8784: int i;
8785: for (i = 0; i < 256; i++)
8786: if (XOR (islower (i), ISLOWER (i))
8787: || toupper (i) != TOUPPER (i))
1.150 moko 8788: return 2;
8789: return 0;
1.128 moko 8790: }
8791: _ACEOF
1.150 moko 8792: if ac_fn_c_try_run "$LINENO"; then :
8793:
1.128 moko 8794: else
1.150 moko 8795: ac_cv_header_stdc=no
1.128 moko 8796: fi
1.150 moko 8797: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8798: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8799: fi
1.150 moko 8800:
1.128 moko 8801: fi
8802: fi
1.150 moko 8803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8804: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8805: if test $ac_cv_header_stdc = yes; then
8806:
1.150 moko 8807: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8808:
8809: fi
8810:
8811: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8812: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8813: inttypes.h stdint.h unistd.h
8814: do :
8815: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8816: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8817: "
8818: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8819: cat >>confdefs.h <<_ACEOF
8820: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8821: _ACEOF
1.128 moko 8822:
1.150 moko 8823: fi
1.128 moko 8824:
1.150 moko 8825: done
1.128 moko 8826:
8827:
1.150 moko 8828: for ac_header in dlfcn.h
8829: do :
8830: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8831: "
8832: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8833: cat >>confdefs.h <<_ACEOF
8834: #define HAVE_DLFCN_H 1
8835: _ACEOF
1.128 moko 8836:
1.150 moko 8837: fi
1.128 moko 8838:
1.150 moko 8839: done
1.128 moko 8840:
8841:
8842:
8843:
1.150 moko 8844: func_stripname_cnf ()
8845: {
8846: case ${2} in
8847: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8848: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8849: esac
8850: } # func_stripname_cnf
1.128 moko 8851:
8852:
8853:
8854:
8855:
8856: # Set options
8857: enable_dlopen=yes
8858: enable_win32_dll=yes
8859:
8860: case $host in
8861: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8862: if test -n "$ac_tool_prefix"; then
8863: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8864: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8865: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866: $as_echo_n "checking for $ac_word... " >&6; }
8867: if ${ac_cv_prog_AS+:} false; then :
8868: $as_echo_n "(cached) " >&6
1.128 moko 8869: else
8870: if test -n "$AS"; then
8871: ac_cv_prog_AS="$AS" # Let the user override the test.
8872: else
8873: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874: for as_dir in $PATH
8875: do
8876: IFS=$as_save_IFS
8877: test -z "$as_dir" && as_dir=.
1.150 moko 8878: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8879: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8880: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8881: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8882: break 2
8883: fi
8884: done
1.150 moko 8885: done
8886: IFS=$as_save_IFS
1.128 moko 8887:
8888: fi
8889: fi
8890: AS=$ac_cv_prog_AS
8891: if test -n "$AS"; then
1.150 moko 8892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8893: $as_echo "$AS" >&6; }
1.128 moko 8894: else
1.150 moko 8895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896: $as_echo "no" >&6; }
1.128 moko 8897: fi
8898:
1.150 moko 8899:
1.128 moko 8900: fi
8901: if test -z "$ac_cv_prog_AS"; then
8902: ac_ct_AS=$AS
8903: # Extract the first word of "as", so it can be a program name with args.
8904: set dummy as; ac_word=$2
1.150 moko 8905: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906: $as_echo_n "checking for $ac_word... " >&6; }
8907: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8908: $as_echo_n "(cached) " >&6
1.128 moko 8909: else
8910: if test -n "$ac_ct_AS"; then
8911: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8912: else
8913: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914: for as_dir in $PATH
8915: do
8916: IFS=$as_save_IFS
8917: test -z "$as_dir" && as_dir=.
1.150 moko 8918: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8919: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8920: ac_cv_prog_ac_ct_AS="as"
1.150 moko 8921: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8922: break 2
8923: fi
8924: done
1.150 moko 8925: done
8926: IFS=$as_save_IFS
1.128 moko 8927:
8928: fi
8929: fi
8930: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8931: if test -n "$ac_ct_AS"; then
1.150 moko 8932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8933: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 8934: else
1.150 moko 8935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936: $as_echo "no" >&6; }
1.128 moko 8937: fi
8938:
1.150 moko 8939: if test "x$ac_ct_AS" = x; then
8940: AS="false"
8941: else
8942: case $cross_compiling:$ac_tool_warned in
8943: yes:)
8944: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8945: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8946: ac_tool_warned=yes ;;
8947: esac
8948: AS=$ac_ct_AS
8949: fi
1.128 moko 8950: else
8951: AS="$ac_cv_prog_AS"
8952: fi
8953:
8954: if test -n "$ac_tool_prefix"; then
8955: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8956: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 8957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958: $as_echo_n "checking for $ac_word... " >&6; }
8959: if ${ac_cv_prog_DLLTOOL+:} false; then :
8960: $as_echo_n "(cached) " >&6
1.128 moko 8961: else
8962: if test -n "$DLLTOOL"; then
8963: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8964: else
8965: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966: for as_dir in $PATH
8967: do
8968: IFS=$as_save_IFS
8969: test -z "$as_dir" && as_dir=.
1.150 moko 8970: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8971: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8972: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 8973: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8974: break 2
8975: fi
8976: done
1.150 moko 8977: done
8978: IFS=$as_save_IFS
1.128 moko 8979:
8980: fi
8981: fi
8982: DLLTOOL=$ac_cv_prog_DLLTOOL
8983: if test -n "$DLLTOOL"; then
1.150 moko 8984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8985: $as_echo "$DLLTOOL" >&6; }
1.128 moko 8986: else
1.150 moko 8987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988: $as_echo "no" >&6; }
1.128 moko 8989: fi
8990:
1.150 moko 8991:
1.128 moko 8992: fi
8993: if test -z "$ac_cv_prog_DLLTOOL"; then
8994: ac_ct_DLLTOOL=$DLLTOOL
8995: # Extract the first word of "dlltool", so it can be a program name with args.
8996: set dummy dlltool; ac_word=$2
1.150 moko 8997: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998: $as_echo_n "checking for $ac_word... " >&6; }
8999: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9000: $as_echo_n "(cached) " >&6
1.128 moko 9001: else
9002: if test -n "$ac_ct_DLLTOOL"; then
9003: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9004: else
9005: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006: for as_dir in $PATH
9007: do
9008: IFS=$as_save_IFS
9009: test -z "$as_dir" && as_dir=.
1.150 moko 9010: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9011: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9012: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 9013: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9014: break 2
9015: fi
9016: done
1.150 moko 9017: done
9018: IFS=$as_save_IFS
1.128 moko 9019:
9020: fi
9021: fi
9022: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9023: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 9024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9025: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 9026: else
1.150 moko 9027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028: $as_echo "no" >&6; }
1.128 moko 9029: fi
9030:
1.150 moko 9031: if test "x$ac_ct_DLLTOOL" = x; then
9032: DLLTOOL="false"
9033: else
9034: case $cross_compiling:$ac_tool_warned in
9035: yes:)
9036: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9037: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9038: ac_tool_warned=yes ;;
9039: esac
9040: DLLTOOL=$ac_ct_DLLTOOL
9041: fi
1.128 moko 9042: else
9043: DLLTOOL="$ac_cv_prog_DLLTOOL"
9044: fi
9045:
9046: if test -n "$ac_tool_prefix"; then
9047: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9048: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 9049: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9050: $as_echo_n "checking for $ac_word... " >&6; }
9051: if ${ac_cv_prog_OBJDUMP+:} false; then :
9052: $as_echo_n "(cached) " >&6
1.128 moko 9053: else
9054: if test -n "$OBJDUMP"; then
9055: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9056: else
9057: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058: for as_dir in $PATH
9059: do
9060: IFS=$as_save_IFS
9061: test -z "$as_dir" && as_dir=.
1.150 moko 9062: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9063: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9064: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 9065: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9066: break 2
9067: fi
9068: done
1.150 moko 9069: done
9070: IFS=$as_save_IFS
1.128 moko 9071:
9072: fi
9073: fi
9074: OBJDUMP=$ac_cv_prog_OBJDUMP
9075: if test -n "$OBJDUMP"; then
1.150 moko 9076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9077: $as_echo "$OBJDUMP" >&6; }
1.128 moko 9078: else
1.150 moko 9079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080: $as_echo "no" >&6; }
1.128 moko 9081: fi
9082:
1.150 moko 9083:
1.128 moko 9084: fi
9085: if test -z "$ac_cv_prog_OBJDUMP"; then
9086: ac_ct_OBJDUMP=$OBJDUMP
9087: # Extract the first word of "objdump", so it can be a program name with args.
9088: set dummy objdump; ac_word=$2
1.150 moko 9089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090: $as_echo_n "checking for $ac_word... " >&6; }
9091: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9092: $as_echo_n "(cached) " >&6
1.128 moko 9093: else
9094: if test -n "$ac_ct_OBJDUMP"; then
9095: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9096: else
9097: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098: for as_dir in $PATH
9099: do
9100: IFS=$as_save_IFS
9101: test -z "$as_dir" && as_dir=.
1.150 moko 9102: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9103: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9104: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 9105: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9106: break 2
9107: fi
9108: done
1.150 moko 9109: done
9110: IFS=$as_save_IFS
1.128 moko 9111:
9112: fi
9113: fi
9114: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9115: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 9116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9117: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 9118: else
1.150 moko 9119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120: $as_echo "no" >&6; }
1.128 moko 9121: fi
9122:
1.150 moko 9123: if test "x$ac_ct_OBJDUMP" = x; then
9124: OBJDUMP="false"
9125: else
9126: case $cross_compiling:$ac_tool_warned in
9127: yes:)
9128: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9129: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9130: ac_tool_warned=yes ;;
9131: esac
9132: OBJDUMP=$ac_ct_OBJDUMP
9133: fi
1.128 moko 9134: else
9135: OBJDUMP="$ac_cv_prog_OBJDUMP"
9136: fi
9137:
9138: ;;
9139: esac
9140:
9141: test -z "$AS" && AS=as
9142:
9143:
9144:
9145:
9146:
9147: test -z "$DLLTOOL" && DLLTOOL=dlltool
9148:
9149:
9150:
9151:
9152:
9153: test -z "$OBJDUMP" && OBJDUMP=objdump
9154:
9155:
9156:
9157:
9158:
1.150 moko 9159: # Check whether --with-pic was given.
9160: if test "${with_pic+set}" = set; then :
9161: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 9162: case $withval in
9163: yes|no) pic_mode=$withval ;;
9164: *)
9165: pic_mode=default
9166: # Look at the argument we got. We use all the common list separators.
9167: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9168: for lt_pkg in $withval; do
9169: IFS="$lt_save_ifs"
9170: if test "X$lt_pkg" = "X$lt_p"; then
9171: pic_mode=yes
9172: fi
9173: done
9174: IFS="$lt_save_ifs"
9175: ;;
9176: esac
9177: else
9178: pic_mode=default
1.150 moko 9179: fi
9180:
1.145 moko 9181:
9182: test -z "$pic_mode" && pic_mode=no
9183:
9184:
9185:
9186:
9187:
9188:
1.128 moko 9189:
9190:
9191:
9192:
1.150 moko 9193: # Check whether --enable-shared was given.
9194: if test "${enable_shared+set}" = set; then :
9195: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 9196: case $enableval in
9197: yes) enable_shared=yes ;;
9198: no) enable_shared=no ;;
9199: *)
9200: enable_shared=no
9201: # Look at the argument we got. We use all the common list separators.
9202: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9203: for pkg in $enableval; do
9204: IFS="$lt_save_ifs"
9205: if test "X$pkg" = "X$p"; then
9206: enable_shared=yes
9207: fi
9208: done
9209: IFS="$lt_save_ifs"
9210: ;;
9211: esac
9212: else
9213: enable_shared=yes
1.150 moko 9214: fi
9215:
1.128 moko 9216:
9217:
9218:
9219:
9220:
9221:
9222:
9223:
1.150 moko 9224: # Check whether --enable-static was given.
9225: if test "${enable_static+set}" = set; then :
9226: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 9227: case $enableval in
9228: yes) enable_static=yes ;;
9229: no) enable_static=no ;;
9230: *)
9231: enable_static=no
9232: # Look at the argument we got. We use all the common list separators.
9233: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9234: for pkg in $enableval; do
9235: IFS="$lt_save_ifs"
9236: if test "X$pkg" = "X$p"; then
9237: enable_static=yes
9238: fi
9239: done
9240: IFS="$lt_save_ifs"
9241: ;;
9242: esac
9243: else
9244: enable_static=yes
1.150 moko 9245: fi
9246:
1.138 moko 9247:
9248:
9249:
9250:
9251:
9252:
9253:
1.128 moko 9254:
9255:
1.150 moko 9256: # Check whether --enable-fast-install was given.
9257: if test "${enable_fast_install+set}" = set; then :
9258: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 9259: case $enableval in
9260: yes) enable_fast_install=yes ;;
9261: no) enable_fast_install=no ;;
9262: *)
9263: enable_fast_install=no
9264: # Look at the argument we got. We use all the common list separators.
9265: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9266: for pkg in $enableval; do
9267: IFS="$lt_save_ifs"
9268: if test "X$pkg" = "X$p"; then
9269: enable_fast_install=yes
9270: fi
9271: done
9272: IFS="$lt_save_ifs"
9273: ;;
9274: esac
9275: else
9276: enable_fast_install=yes
1.150 moko 9277: fi
9278:
1.128 moko 9279:
9280:
9281:
9282:
9283:
9284:
9285:
9286:
9287:
9288:
9289: # This can be used to rebuild libtool when needed
9290: LIBTOOL_DEPS="$ltmain"
9291:
9292: # Always use our own libtool.
9293: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9294:
9295:
9296:
9297:
9298:
9299:
9300:
9301:
9302:
9303:
9304:
9305:
9306:
9307:
9308:
9309:
9310:
9311:
9312:
9313:
9314:
9315:
9316:
9317:
9318:
9319:
9320:
9321:
9322:
9323:
9324: test -z "$LN_S" && LN_S="ln -s"
9325:
9326:
9327:
9328:
9329:
9330:
9331:
9332:
9333:
9334:
9335:
9336:
9337:
9338:
9339: if test -n "${ZSH_VERSION+set}" ; then
9340: setopt NO_GLOB_SUBST
9341: fi
9342:
1.150 moko 9343: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9344: $as_echo_n "checking for objdir... " >&6; }
9345: if ${lt_cv_objdir+:} false; then :
9346: $as_echo_n "(cached) " >&6
1.128 moko 9347: else
9348: rm -f .libs 2>/dev/null
9349: mkdir .libs 2>/dev/null
9350: if test -d .libs; then
9351: lt_cv_objdir=.libs
9352: else
9353: # MS-DOS does not allow filenames that begin with a dot.
9354: lt_cv_objdir=_libs
9355: fi
9356: rmdir .libs 2>/dev/null
9357: fi
1.150 moko 9358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9359: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9360: objdir=$lt_cv_objdir
9361:
9362:
9363:
9364:
9365:
9366: cat >>confdefs.h <<_ACEOF
9367: #define LT_OBJDIR "$lt_cv_objdir/"
9368: _ACEOF
9369:
9370:
9371:
9372:
9373: case $host_os in
9374: aix3*)
9375: # AIX sometimes has problems with the GCC collect2 program. For some
9376: # reason, if we set the COLLECT_NAMES environment variable, the problems
9377: # vanish in a puff of smoke.
9378: if test "X${COLLECT_NAMES+set}" != Xset; then
9379: COLLECT_NAMES=
9380: export COLLECT_NAMES
9381: fi
9382: ;;
9383: esac
9384:
9385: # Global variables:
9386: ofile=libtool
9387: can_build_shared=yes
9388:
9389: # All known linkers require a `.a' archive for static linking (except MSVC,
9390: # which needs '.lib').
9391: libext=a
9392:
9393: with_gnu_ld="$lt_cv_prog_gnu_ld"
9394:
9395: old_CC="$CC"
9396: old_CFLAGS="$CFLAGS"
9397:
9398: # Set sane defaults for various variables
9399: test -z "$CC" && CC=cc
9400: test -z "$LTCC" && LTCC=$CC
9401: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9402: test -z "$LD" && LD=ld
9403: test -z "$ac_objext" && ac_objext=o
9404:
9405: for cc_temp in $compiler""; do
9406: case $cc_temp in
9407: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9408: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9409: \-*) ;;
9410: *) break;;
9411: esac
9412: done
9413: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9414:
9415:
9416: # Only perform the check for file, if the check method requires it
9417: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9418: case $deplibs_check_method in
9419: file_magic*)
9420: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9422: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9423: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9424: $as_echo_n "(cached) " >&6
1.128 moko 9425: else
9426: case $MAGIC_CMD in
9427: [\\/*] | ?:[\\/]*)
9428: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9429: ;;
9430: *)
9431: lt_save_MAGIC_CMD="$MAGIC_CMD"
9432: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9433: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9434: for ac_dir in $ac_dummy; do
9435: IFS="$lt_save_ifs"
9436: test -z "$ac_dir" && ac_dir=.
9437: if test -f $ac_dir/${ac_tool_prefix}file; then
9438: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9439: if test -n "$file_magic_test_file"; then
9440: case $deplibs_check_method in
9441: "file_magic "*)
9442: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9443: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9444: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9445: $EGREP "$file_magic_regex" > /dev/null; then
9446: :
9447: else
9448: cat <<_LT_EOF 1>&2
9449:
9450: *** Warning: the command libtool uses to detect shared libraries,
9451: *** $file_magic_cmd, produces output that libtool cannot recognize.
9452: *** The result is that libtool may fail to recognize shared libraries
9453: *** as such. This will affect the creation of libtool libraries that
9454: *** depend on shared libraries, but programs linked with such libtool
9455: *** libraries will work regardless of this problem. Nevertheless, you
9456: *** may want to report the problem to your system manager and/or to
9457: *** bug-libtool@gnu.org
9458:
9459: _LT_EOF
9460: fi ;;
9461: esac
9462: fi
9463: break
9464: fi
9465: done
9466: IFS="$lt_save_ifs"
9467: MAGIC_CMD="$lt_save_MAGIC_CMD"
9468: ;;
9469: esac
9470: fi
9471:
9472: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9473: if test -n "$MAGIC_CMD"; then
1.150 moko 9474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9475: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9476: else
1.150 moko 9477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478: $as_echo "no" >&6; }
1.128 moko 9479: fi
9480:
9481:
9482:
9483:
9484:
9485: if test -z "$lt_cv_path_MAGIC_CMD"; then
9486: if test -n "$ac_tool_prefix"; then
1.150 moko 9487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9488: $as_echo_n "checking for file... " >&6; }
9489: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9490: $as_echo_n "(cached) " >&6
1.128 moko 9491: else
9492: case $MAGIC_CMD in
9493: [\\/*] | ?:[\\/]*)
9494: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9495: ;;
9496: *)
9497: lt_save_MAGIC_CMD="$MAGIC_CMD"
9498: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9499: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9500: for ac_dir in $ac_dummy; do
9501: IFS="$lt_save_ifs"
9502: test -z "$ac_dir" && ac_dir=.
9503: if test -f $ac_dir/file; then
9504: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9505: if test -n "$file_magic_test_file"; then
9506: case $deplibs_check_method in
9507: "file_magic "*)
9508: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9509: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9510: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9511: $EGREP "$file_magic_regex" > /dev/null; then
9512: :
9513: else
9514: cat <<_LT_EOF 1>&2
9515:
9516: *** Warning: the command libtool uses to detect shared libraries,
9517: *** $file_magic_cmd, produces output that libtool cannot recognize.
9518: *** The result is that libtool may fail to recognize shared libraries
9519: *** as such. This will affect the creation of libtool libraries that
9520: *** depend on shared libraries, but programs linked with such libtool
9521: *** libraries will work regardless of this problem. Nevertheless, you
9522: *** may want to report the problem to your system manager and/or to
9523: *** bug-libtool@gnu.org
9524:
9525: _LT_EOF
9526: fi ;;
9527: esac
9528: fi
9529: break
9530: fi
9531: done
9532: IFS="$lt_save_ifs"
9533: MAGIC_CMD="$lt_save_MAGIC_CMD"
9534: ;;
9535: esac
9536: fi
9537:
9538: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9539: if test -n "$MAGIC_CMD"; then
1.150 moko 9540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9541: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9542: else
1.150 moko 9543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544: $as_echo "no" >&6; }
1.128 moko 9545: fi
9546:
9547:
9548: else
9549: MAGIC_CMD=:
9550: fi
9551: fi
9552:
9553: fi
9554: ;;
9555: esac
9556:
9557: # Use C for the default configuration in the libtool script
9558:
9559: lt_save_CC="$CC"
9560: ac_ext=c
9561: ac_cpp='$CPP $CPPFLAGS'
9562: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9565:
9566:
9567: # Source file extension for C test sources.
9568: ac_ext=c
9569:
9570: # Object file extension for compiled C test sources.
9571: objext=o
9572: objext=$objext
9573:
9574: # Code to be used in simple compile tests
9575: lt_simple_compile_test_code="int some_variable = 0;"
9576:
9577: # Code to be used in simple link tests
9578: lt_simple_link_test_code='int main(){return(0);}'
9579:
9580:
9581:
9582:
9583:
9584:
9585:
9586: # If no C compiler was specified, use CC.
9587: LTCC=${LTCC-"$CC"}
9588:
9589: # If no C compiler flags were specified, use CFLAGS.
9590: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9591:
9592: # Allow CC to be a program name with arguments.
9593: compiler=$CC
9594:
9595: # Save the default compiler, since it gets overwritten when the other
9596: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9597: compiler_DEFAULT=$CC
9598:
9599: # save warnings/boilerplate of simple test code
9600: ac_outfile=conftest.$ac_objext
9601: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9602: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9603: _lt_compiler_boilerplate=`cat conftest.err`
9604: $RM conftest*
9605:
9606: ac_outfile=conftest.$ac_objext
9607: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9608: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9609: _lt_linker_boilerplate=`cat conftest.err`
9610: $RM -r conftest*
9611:
9612:
9613: ## CAVEAT EMPTOR:
9614: ## There is no encapsulation within the following macros, do not change
9615: ## the running order or otherwise move them around unless you know exactly
9616: ## what you are doing...
9617: if test -n "$compiler"; then
9618:
9619: lt_prog_compiler_no_builtin_flag=
9620:
9621: if test "$GCC" = yes; then
9622: case $cc_basename in
9623: nvcc*)
9624: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9625: *)
9626: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9627: esac
9628:
1.150 moko 9629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9630: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9631: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9632: $as_echo_n "(cached) " >&6
1.128 moko 9633: else
9634: lt_cv_prog_compiler_rtti_exceptions=no
9635: ac_outfile=conftest.$ac_objext
9636: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9637: lt_compiler_flag="-fno-rtti -fno-exceptions"
9638: # Insert the option either (1) after the last *FLAGS variable, or
9639: # (2) before a word containing "conftest.", or (3) at the end.
9640: # Note that $ac_compile itself does not contain backslashes and begins
9641: # with a dollar sign (not a hyphen), so the echo should work correctly.
9642: # The option is referenced via a variable to avoid confusing sed.
9643: lt_compile=`echo "$ac_compile" | $SED \
9644: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9645: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9646: -e 's:$: $lt_compiler_flag:'`
9647: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9648: (eval "$lt_compile" 2>conftest.err)
9649: ac_status=$?
9650: cat conftest.err >&5
9651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652: if (exit $ac_status) && test -s "$ac_outfile"; then
9653: # The compiler can only warn and ignore the option if not recognized
9654: # So say no if there are warnings other than the usual output.
9655: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9656: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9657: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9658: lt_cv_prog_compiler_rtti_exceptions=yes
9659: fi
9660: fi
9661: $RM conftest*
9662:
9663: fi
1.150 moko 9664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9665: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9666:
9667: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9668: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9669: else
9670: :
9671: fi
9672:
9673: fi
9674:
9675:
9676:
9677:
9678:
9679:
9680: lt_prog_compiler_wl=
9681: lt_prog_compiler_pic=
9682: lt_prog_compiler_static=
9683:
9684:
9685: if test "$GCC" = yes; then
9686: lt_prog_compiler_wl='-Wl,'
9687: lt_prog_compiler_static='-static'
9688:
9689: case $host_os in
9690: aix*)
9691: # All AIX code is PIC.
9692: if test "$host_cpu" = ia64; then
9693: # AIX 5 now supports IA64 processor
9694: lt_prog_compiler_static='-Bstatic'
9695: fi
9696: ;;
9697:
9698: amigaos*)
9699: case $host_cpu in
9700: powerpc)
9701: # see comment about AmigaOS4 .so support
9702: lt_prog_compiler_pic='-fPIC'
9703: ;;
9704: m68k)
9705: # FIXME: we need at least 68020 code to build shared libraries, but
9706: # adding the `-m68020' flag to GCC prevents building anything better,
9707: # like `-m68040'.
9708: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9709: ;;
9710: esac
9711: ;;
9712:
9713: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9714: # PIC is the default for these OSes.
9715: ;;
9716:
9717: mingw* | cygwin* | pw32* | os2* | cegcc*)
9718: # This hack is so that the source file can tell whether it is being
9719: # built for inclusion in a dll (and should export symbols for example).
9720: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9721: # (--disable-auto-import) libraries
9722: lt_prog_compiler_pic='-DDLL_EXPORT'
9723: ;;
9724:
9725: darwin* | rhapsody*)
9726: # PIC is the default on this platform
9727: # Common symbols not allowed in MH_DYLIB files
9728: lt_prog_compiler_pic='-fno-common'
9729: ;;
9730:
9731: haiku*)
9732: # PIC is the default for Haiku.
9733: # The "-static" flag exists, but is broken.
9734: lt_prog_compiler_static=
9735: ;;
9736:
9737: hpux*)
9738: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9739: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9740: # sets the default TLS model and affects inlining.
9741: case $host_cpu in
9742: hppa*64*)
9743: # +Z the default
9744: ;;
9745: *)
9746: lt_prog_compiler_pic='-fPIC'
9747: ;;
9748: esac
9749: ;;
9750:
9751: interix[3-9]*)
9752: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9753: # Instead, we relocate shared libraries at runtime.
9754: ;;
9755:
9756: msdosdjgpp*)
9757: # Just because we use GCC doesn't mean we suddenly get shared libraries
9758: # on systems that don't support them.
9759: lt_prog_compiler_can_build_shared=no
9760: enable_shared=no
9761: ;;
9762:
9763: *nto* | *qnx*)
9764: # QNX uses GNU C++, but need to define -shared option too, otherwise
9765: # it will coredump.
9766: lt_prog_compiler_pic='-fPIC -shared'
9767: ;;
9768:
9769: sysv4*MP*)
9770: if test -d /usr/nec; then
9771: lt_prog_compiler_pic=-Kconform_pic
9772: fi
9773: ;;
9774:
9775: *)
9776: lt_prog_compiler_pic='-fPIC'
9777: ;;
9778: esac
9779:
9780: case $cc_basename in
9781: nvcc*) # Cuda Compiler Driver 2.2
9782: lt_prog_compiler_wl='-Xlinker '
9783: if test -n "$lt_prog_compiler_pic"; then
9784: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9785: fi
9786: ;;
9787: esac
9788: else
9789: # PORTME Check for flag to pass linker flags through the system compiler.
9790: case $host_os in
9791: aix*)
9792: lt_prog_compiler_wl='-Wl,'
9793: if test "$host_cpu" = ia64; then
9794: # AIX 5 now supports IA64 processor
9795: lt_prog_compiler_static='-Bstatic'
9796: else
9797: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9798: fi
9799: ;;
9800:
9801: mingw* | cygwin* | pw32* | os2* | cegcc*)
9802: # This hack is so that the source file can tell whether it is being
9803: # built for inclusion in a dll (and should export symbols for example).
9804: lt_prog_compiler_pic='-DDLL_EXPORT'
9805: ;;
9806:
9807: hpux9* | hpux10* | hpux11*)
9808: lt_prog_compiler_wl='-Wl,'
9809: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9810: # not for PA HP-UX.
9811: case $host_cpu in
9812: hppa*64*|ia64*)
9813: # +Z the default
9814: ;;
9815: *)
9816: lt_prog_compiler_pic='+Z'
9817: ;;
9818: esac
9819: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9820: lt_prog_compiler_static='${wl}-a ${wl}archive'
9821: ;;
9822:
9823: irix5* | irix6* | nonstopux*)
9824: lt_prog_compiler_wl='-Wl,'
9825: # PIC (with -KPIC) is the default.
9826: lt_prog_compiler_static='-non_shared'
9827: ;;
9828:
9829: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9830: case $cc_basename in
9831: # old Intel for x86_64 which still supported -KPIC.
9832: ecc*)
9833: lt_prog_compiler_wl='-Wl,'
9834: lt_prog_compiler_pic='-KPIC'
9835: lt_prog_compiler_static='-static'
9836: ;;
9837: # icc used to be incompatible with GCC.
9838: # ICC 10 doesn't accept -KPIC any more.
9839: icc* | ifort*)
9840: lt_prog_compiler_wl='-Wl,'
9841: lt_prog_compiler_pic='-fPIC'
9842: lt_prog_compiler_static='-static'
9843: ;;
9844: # Lahey Fortran 8.1.
9845: lf95*)
9846: lt_prog_compiler_wl='-Wl,'
9847: lt_prog_compiler_pic='--shared'
9848: lt_prog_compiler_static='--static'
9849: ;;
9850: nagfor*)
9851: # NAG Fortran compiler
9852: lt_prog_compiler_wl='-Wl,-Wl,,'
9853: lt_prog_compiler_pic='-PIC'
9854: lt_prog_compiler_static='-Bstatic'
9855: ;;
9856: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9857: # Portland Group compilers (*not* the Pentium gcc compiler,
9858: # which looks to be a dead project)
9859: lt_prog_compiler_wl='-Wl,'
9860: lt_prog_compiler_pic='-fpic'
9861: lt_prog_compiler_static='-Bstatic'
9862: ;;
9863: ccc*)
9864: lt_prog_compiler_wl='-Wl,'
9865: # All Alpha code is PIC.
9866: lt_prog_compiler_static='-non_shared'
9867: ;;
9868: xl* | bgxl* | bgf* | mpixl*)
9869: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9870: lt_prog_compiler_wl='-Wl,'
9871: lt_prog_compiler_pic='-qpic'
9872: lt_prog_compiler_static='-qstaticlink'
9873: ;;
9874: *)
9875: case `$CC -V 2>&1 | sed 5q` in
9876: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9877: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9878: lt_prog_compiler_pic='-KPIC'
9879: lt_prog_compiler_static='-Bstatic'
9880: lt_prog_compiler_wl=''
9881: ;;
9882: *Sun\ F* | *Sun*Fortran*)
9883: lt_prog_compiler_pic='-KPIC'
9884: lt_prog_compiler_static='-Bstatic'
9885: lt_prog_compiler_wl='-Qoption ld '
9886: ;;
9887: *Sun\ C*)
9888: # Sun C 5.9
9889: lt_prog_compiler_pic='-KPIC'
9890: lt_prog_compiler_static='-Bstatic'
9891: lt_prog_compiler_wl='-Wl,'
9892: ;;
9893: *Intel*\ [CF]*Compiler*)
9894: lt_prog_compiler_wl='-Wl,'
9895: lt_prog_compiler_pic='-fPIC'
9896: lt_prog_compiler_static='-static'
9897: ;;
9898: *Portland\ Group*)
9899: lt_prog_compiler_wl='-Wl,'
9900: lt_prog_compiler_pic='-fpic'
9901: lt_prog_compiler_static='-Bstatic'
9902: ;;
9903: esac
9904: ;;
9905: esac
9906: ;;
9907:
9908: newsos6)
9909: lt_prog_compiler_pic='-KPIC'
9910: lt_prog_compiler_static='-Bstatic'
9911: ;;
9912:
9913: *nto* | *qnx*)
9914: # QNX uses GNU C++, but need to define -shared option too, otherwise
9915: # it will coredump.
9916: lt_prog_compiler_pic='-fPIC -shared'
9917: ;;
9918:
9919: osf3* | osf4* | osf5*)
9920: lt_prog_compiler_wl='-Wl,'
9921: # All OSF/1 code is PIC.
9922: lt_prog_compiler_static='-non_shared'
9923: ;;
9924:
9925: rdos*)
9926: lt_prog_compiler_static='-non_shared'
9927: ;;
9928:
9929: solaris*)
9930: lt_prog_compiler_pic='-KPIC'
9931: lt_prog_compiler_static='-Bstatic'
9932: case $cc_basename in
9933: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9934: lt_prog_compiler_wl='-Qoption ld ';;
9935: *)
9936: lt_prog_compiler_wl='-Wl,';;
9937: esac
9938: ;;
9939:
9940: sunos4*)
9941: lt_prog_compiler_wl='-Qoption ld '
9942: lt_prog_compiler_pic='-PIC'
9943: lt_prog_compiler_static='-Bstatic'
9944: ;;
9945:
9946: sysv4 | sysv4.2uw2* | sysv4.3*)
9947: lt_prog_compiler_wl='-Wl,'
9948: lt_prog_compiler_pic='-KPIC'
9949: lt_prog_compiler_static='-Bstatic'
9950: ;;
9951:
9952: sysv4*MP*)
9953: if test -d /usr/nec ;then
9954: lt_prog_compiler_pic='-Kconform_pic'
9955: lt_prog_compiler_static='-Bstatic'
9956: fi
9957: ;;
9958:
9959: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9960: lt_prog_compiler_wl='-Wl,'
9961: lt_prog_compiler_pic='-KPIC'
9962: lt_prog_compiler_static='-Bstatic'
9963: ;;
9964:
9965: unicos*)
9966: lt_prog_compiler_wl='-Wl,'
9967: lt_prog_compiler_can_build_shared=no
9968: ;;
9969:
9970: uts4*)
9971: lt_prog_compiler_pic='-pic'
9972: lt_prog_compiler_static='-Bstatic'
9973: ;;
9974:
9975: *)
9976: lt_prog_compiler_can_build_shared=no
9977: ;;
9978: esac
9979: fi
9980:
9981: case $host_os in
9982: # For platforms which do not support PIC, -DPIC is meaningless:
9983: *djgpp*)
9984: lt_prog_compiler_pic=
9985: ;;
9986: *)
9987: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9988: ;;
9989: esac
9990:
1.150 moko 9991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9992: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9993: if ${lt_cv_prog_compiler_pic+:} false; then :
9994: $as_echo_n "(cached) " >&6
1.128 moko 9995: else
9996: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9997: fi
1.150 moko 9998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9999: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 10000: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10001:
10002: #
10003: # Check to make sure the PIC flag actually works.
10004: #
10005: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 10006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10007: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10008: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10009: $as_echo_n "(cached) " >&6
1.128 moko 10010: else
10011: lt_cv_prog_compiler_pic_works=no
10012: ac_outfile=conftest.$ac_objext
10013: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10014: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10015: # Insert the option either (1) after the last *FLAGS variable, or
10016: # (2) before a word containing "conftest.", or (3) at the end.
10017: # Note that $ac_compile itself does not contain backslashes and begins
10018: # with a dollar sign (not a hyphen), so the echo should work correctly.
10019: # The option is referenced via a variable to avoid confusing sed.
10020: lt_compile=`echo "$ac_compile" | $SED \
10021: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10022: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10023: -e 's:$: $lt_compiler_flag:'`
10024: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10025: (eval "$lt_compile" 2>conftest.err)
10026: ac_status=$?
10027: cat conftest.err >&5
10028: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029: if (exit $ac_status) && test -s "$ac_outfile"; then
10030: # The compiler can only warn and ignore the option if not recognized
10031: # So say no if there are warnings other than the usual output.
10032: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10033: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10034: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10035: lt_cv_prog_compiler_pic_works=yes
10036: fi
10037: fi
10038: $RM conftest*
10039:
10040: fi
1.150 moko 10041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10042: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 10043:
10044: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10045: case $lt_prog_compiler_pic in
10046: "" | " "*) ;;
10047: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10048: esac
10049: else
10050: lt_prog_compiler_pic=
10051: lt_prog_compiler_can_build_shared=no
10052: fi
10053:
10054: fi
10055:
10056:
10057:
10058:
10059:
10060:
10061:
10062:
10063:
10064:
10065:
10066: #
10067: # Check to make sure the static flag actually works.
10068: #
10069: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 10070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10071: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10072: if ${lt_cv_prog_compiler_static_works+:} false; then :
10073: $as_echo_n "(cached) " >&6
1.128 moko 10074: else
10075: lt_cv_prog_compiler_static_works=no
10076: save_LDFLAGS="$LDFLAGS"
10077: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10078: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10079: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10080: # The linker can only warn and ignore the option if not recognized
10081: # So say no if there are warnings
10082: if test -s conftest.err; then
10083: # Append any errors to the config.log.
10084: cat conftest.err 1>&5
10085: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10086: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10087: if diff conftest.exp conftest.er2 >/dev/null; then
10088: lt_cv_prog_compiler_static_works=yes
10089: fi
10090: else
10091: lt_cv_prog_compiler_static_works=yes
10092: fi
10093: fi
10094: $RM -r conftest*
10095: LDFLAGS="$save_LDFLAGS"
10096:
10097: fi
1.150 moko 10098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10099: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 10100:
10101: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10102: :
10103: else
10104: lt_prog_compiler_static=
10105: fi
10106:
10107:
10108:
10109:
10110:
10111:
10112:
1.150 moko 10113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10114: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10115: if ${lt_cv_prog_compiler_c_o+:} false; then :
10116: $as_echo_n "(cached) " >&6
1.128 moko 10117: else
10118: lt_cv_prog_compiler_c_o=no
10119: $RM -r conftest 2>/dev/null
10120: mkdir conftest
10121: cd conftest
10122: mkdir out
10123: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10124:
10125: lt_compiler_flag="-o out/conftest2.$ac_objext"
10126: # Insert the option either (1) after the last *FLAGS variable, or
10127: # (2) before a word containing "conftest.", or (3) at the end.
10128: # Note that $ac_compile itself does not contain backslashes and begins
10129: # with a dollar sign (not a hyphen), so the echo should work correctly.
10130: lt_compile=`echo "$ac_compile" | $SED \
10131: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10132: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10133: -e 's:$: $lt_compiler_flag:'`
10134: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10135: (eval "$lt_compile" 2>out/conftest.err)
10136: ac_status=$?
10137: cat out/conftest.err >&5
10138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10140: then
10141: # The compiler can only warn and ignore the option if not recognized
10142: # So say no if there are warnings
10143: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10144: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10145: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10146: lt_cv_prog_compiler_c_o=yes
10147: fi
10148: fi
10149: chmod u+w . 2>&5
10150: $RM conftest*
10151: # SGI C++ compiler will create directory out/ii_files/ for
10152: # template instantiation
10153: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10154: $RM out/* && rmdir out
10155: cd ..
10156: $RM -r conftest
10157: $RM conftest*
10158:
10159: fi
1.150 moko 10160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10161: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10162:
10163:
10164:
10165:
10166:
10167:
1.150 moko 10168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10169: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10170: if ${lt_cv_prog_compiler_c_o+:} false; then :
10171: $as_echo_n "(cached) " >&6
1.128 moko 10172: else
10173: lt_cv_prog_compiler_c_o=no
10174: $RM -r conftest 2>/dev/null
10175: mkdir conftest
10176: cd conftest
10177: mkdir out
10178: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10179:
10180: lt_compiler_flag="-o out/conftest2.$ac_objext"
10181: # Insert the option either (1) after the last *FLAGS variable, or
10182: # (2) before a word containing "conftest.", or (3) at the end.
10183: # Note that $ac_compile itself does not contain backslashes and begins
10184: # with a dollar sign (not a hyphen), so the echo should work correctly.
10185: lt_compile=`echo "$ac_compile" | $SED \
10186: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10187: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10188: -e 's:$: $lt_compiler_flag:'`
10189: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10190: (eval "$lt_compile" 2>out/conftest.err)
10191: ac_status=$?
10192: cat out/conftest.err >&5
10193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10195: then
10196: # The compiler can only warn and ignore the option if not recognized
10197: # So say no if there are warnings
10198: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10199: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10200: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10201: lt_cv_prog_compiler_c_o=yes
10202: fi
10203: fi
10204: chmod u+w . 2>&5
10205: $RM conftest*
10206: # SGI C++ compiler will create directory out/ii_files/ for
10207: # template instantiation
10208: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10209: $RM out/* && rmdir out
10210: cd ..
10211: $RM -r conftest
10212: $RM conftest*
10213:
10214: fi
1.150 moko 10215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10216: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10217:
10218:
10219:
10220:
10221: hard_links="nottested"
10222: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10223: # do not overwrite the value of need_locks provided by the user
1.150 moko 10224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10225: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 10226: hard_links=yes
10227: $RM conftest*
10228: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10229: touch conftest.a
10230: ln conftest.a conftest.b 2>&5 || hard_links=no
10231: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 10232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10233: $as_echo "$hard_links" >&6; }
1.128 moko 10234: if test "$hard_links" = no; then
1.150 moko 10235: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10236: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 10237: need_locks=warn
10238: fi
10239: else
10240: need_locks=no
10241: fi
10242:
10243:
10244:
10245:
10246:
10247:
1.150 moko 10248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10249: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 10250:
10251: runpath_var=
10252: allow_undefined_flag=
10253: always_export_symbols=no
10254: archive_cmds=
10255: archive_expsym_cmds=
10256: compiler_needs_object=no
10257: enable_shared_with_static_runtimes=no
10258: export_dynamic_flag_spec=
10259: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10260: hardcode_automatic=no
10261: hardcode_direct=no
10262: hardcode_direct_absolute=no
10263: hardcode_libdir_flag_spec=
10264: hardcode_libdir_separator=
10265: hardcode_minus_L=no
10266: hardcode_shlibpath_var=unsupported
10267: inherit_rpath=no
10268: link_all_deplibs=unknown
10269: module_cmds=
10270: module_expsym_cmds=
10271: old_archive_from_new_cmds=
10272: old_archive_from_expsyms_cmds=
10273: thread_safe_flag_spec=
10274: whole_archive_flag_spec=
10275: # include_expsyms should be a list of space-separated symbols to be *always*
10276: # included in the symbol list
10277: include_expsyms=
10278: # exclude_expsyms can be an extended regexp of symbols to exclude
10279: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10280: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10281: # as well as any symbol that contains `d'.
10282: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10283: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10284: # platforms (ab)use it in PIC code, but their linkers get confused if
10285: # the symbol is explicitly referenced. Since portable code cannot
10286: # rely on this symbol name, it's probably fine to never include it in
10287: # preloaded symbol tables.
10288: # Exclude shared library initialization/finalization symbols.
10289: extract_expsyms_cmds=
10290:
10291: case $host_os in
10292: cygwin* | mingw* | pw32* | cegcc*)
10293: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10294: # When not using gcc, we currently assume that we are using
10295: # Microsoft Visual C++.
10296: if test "$GCC" != yes; then
10297: with_gnu_ld=no
10298: fi
10299: ;;
10300: interix*)
10301: # we just hope/assume this is gcc and not c89 (= MSVC++)
10302: with_gnu_ld=yes
10303: ;;
10304: openbsd*)
10305: with_gnu_ld=no
10306: ;;
10307: esac
10308:
10309: ld_shlibs=yes
10310:
10311: # On some targets, GNU ld is compatible enough with the native linker
10312: # that we're better off using the native interface for both.
10313: lt_use_gnu_ld_interface=no
10314: if test "$with_gnu_ld" = yes; then
10315: case $host_os in
10316: aix*)
10317: # The AIX port of GNU ld has always aspired to compatibility
10318: # with the native linker. However, as the warning in the GNU ld
10319: # block says, versions before 2.19.5* couldn't really create working
10320: # shared libraries, regardless of the interface used.
10321: case `$LD -v 2>&1` in
10322: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10323: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10324: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10325: *)
10326: lt_use_gnu_ld_interface=yes
10327: ;;
10328: esac
10329: ;;
10330: *)
10331: lt_use_gnu_ld_interface=yes
10332: ;;
10333: esac
10334: fi
10335:
10336: if test "$lt_use_gnu_ld_interface" = yes; then
10337: # If archive_cmds runs LD, not CC, wlarc should be empty
10338: wlarc='${wl}'
10339:
10340: # Set some defaults for GNU ld with shared library support. These
10341: # are reset later if shared libraries are not supported. Putting them
10342: # here allows them to be overridden if necessary.
10343: runpath_var=LD_RUN_PATH
10344: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10345: export_dynamic_flag_spec='${wl}--export-dynamic'
10346: # ancient GNU ld didn't support --whole-archive et. al.
10347: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10348: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10349: else
10350: whole_archive_flag_spec=
10351: fi
10352: supports_anon_versioning=no
10353: case `$LD -v 2>&1` in
10354: *GNU\ gold*) supports_anon_versioning=yes ;;
10355: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10356: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10357: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10358: *\ 2.11.*) ;; # other 2.11 versions
10359: *) supports_anon_versioning=yes ;;
10360: esac
10361:
10362: # See if GNU ld supports shared libraries.
10363: case $host_os in
10364: aix[3-9]*)
10365: # On AIX/PPC, the GNU linker is very broken
10366: if test "$host_cpu" != ia64; then
10367: ld_shlibs=no
10368: cat <<_LT_EOF 1>&2
10369:
10370: *** Warning: the GNU linker, at least up to release 2.19, is reported
10371: *** to be unable to reliably create shared libraries on AIX.
10372: *** Therefore, libtool is disabling shared libraries support. If you
10373: *** really care for shared libraries, you may want to install binutils
10374: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10375: *** You will then need to restart the configuration process.
10376:
10377: _LT_EOF
10378: fi
10379: ;;
10380:
10381: amigaos*)
10382: case $host_cpu in
10383: powerpc)
10384: # see comment about AmigaOS4 .so support
10385: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10386: archive_expsym_cmds=''
10387: ;;
10388: m68k)
10389: 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)'
10390: hardcode_libdir_flag_spec='-L$libdir'
10391: hardcode_minus_L=yes
10392: ;;
10393: esac
10394: ;;
10395:
10396: beos*)
10397: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10398: allow_undefined_flag=unsupported
10399: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10400: # support --undefined. This deserves some investigation. FIXME
10401: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10402: else
10403: ld_shlibs=no
10404: fi
10405: ;;
10406:
10407: cygwin* | mingw* | pw32* | cegcc*)
10408: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10409: # as there is no search path for DLLs.
10410: hardcode_libdir_flag_spec='-L$libdir'
10411: export_dynamic_flag_spec='${wl}--export-all-symbols'
10412: allow_undefined_flag=unsupported
10413: always_export_symbols=no
10414: enable_shared_with_static_runtimes=yes
10415: 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'
10416: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10417:
10418: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10419: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10420: # If the export-symbols file already is a .def file (1st line
10421: # is EXPORTS), use it as is; otherwise, prepend...
10422: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10423: cp $export_symbols $output_objdir/$soname.def;
10424: else
10425: echo EXPORTS > $output_objdir/$soname.def;
10426: cat $export_symbols >> $output_objdir/$soname.def;
10427: fi~
10428: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10429: else
10430: ld_shlibs=no
10431: fi
10432: ;;
10433:
10434: haiku*)
10435: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436: link_all_deplibs=yes
10437: ;;
10438:
10439: interix[3-9]*)
10440: hardcode_direct=no
10441: hardcode_shlibpath_var=no
10442: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10443: export_dynamic_flag_spec='${wl}-E'
10444: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10445: # Instead, shared libraries are loaded at an image base (0x10000000 by
10446: # default) and relocated if they conflict, which is a slow very memory
10447: # consuming and fragmenting process. To avoid this, we pick a random,
10448: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10449: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10450: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10451: 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'
10452: ;;
10453:
10454: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10455: tmp_diet=no
10456: if test "$host_os" = linux-dietlibc; then
10457: case $cc_basename in
10458: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10459: esac
10460: fi
10461: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10462: && test "$tmp_diet" = no
10463: then
10464: tmp_addflag=' $pic_flag'
10465: tmp_sharedflag='-shared'
10466: case $cc_basename,$host_cpu in
10467: pgcc*) # Portland Group C compiler
10468: 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'
10469: tmp_addflag=' $pic_flag'
10470: ;;
10471: pgf77* | pgf90* | pgf95* | pgfortran*)
10472: # Portland Group f77 and f90 compilers
10473: 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'
10474: tmp_addflag=' $pic_flag -Mnomain' ;;
10475: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10476: tmp_addflag=' -i_dynamic' ;;
10477: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10478: tmp_addflag=' -i_dynamic -nofor_main' ;;
10479: ifc* | ifort*) # Intel Fortran compiler
10480: tmp_addflag=' -nofor_main' ;;
10481: lf95*) # Lahey Fortran 8.1
10482: whole_archive_flag_spec=
10483: tmp_sharedflag='--shared' ;;
10484: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10485: tmp_sharedflag='-qmkshrobj'
10486: tmp_addflag= ;;
10487: nvcc*) # Cuda Compiler Driver 2.2
10488: 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'
10489: compiler_needs_object=yes
10490: ;;
10491: esac
10492: case `$CC -V 2>&1 | sed 5q` in
10493: *Sun\ C*) # Sun C 5.9
10494: 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'
10495: compiler_needs_object=yes
10496: tmp_sharedflag='-G' ;;
10497: *Sun\ F*) # Sun Fortran 8.3
10498: tmp_sharedflag='-G' ;;
10499: esac
10500: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10501:
10502: if test "x$supports_anon_versioning" = xyes; then
10503: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10504: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10505: echo "local: *; };" >> $output_objdir/$libname.ver~
10506: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10507: fi
10508:
10509: case $cc_basename in
10510: xlf* | bgf* | bgxlf* | mpixlf*)
10511: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10512: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10513: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10514: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10515: if test "x$supports_anon_versioning" = xyes; then
10516: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10517: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10518: echo "local: *; };" >> $output_objdir/$libname.ver~
10519: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10520: fi
10521: ;;
10522: esac
10523: else
10524: ld_shlibs=no
10525: fi
10526: ;;
10527:
10528: netbsd*)
10529: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10530: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10531: wlarc=
10532: else
10533: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10534: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10535: fi
10536: ;;
10537:
10538: solaris*)
10539: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10540: ld_shlibs=no
10541: cat <<_LT_EOF 1>&2
10542:
10543: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10544: *** create shared libraries on Solaris systems. Therefore, libtool
10545: *** is disabling shared libraries support. We urge you to upgrade GNU
10546: *** binutils to release 2.9.1 or newer. Another option is to modify
10547: *** your PATH or compiler configuration so that the native linker is
10548: *** used, and then restart.
10549:
10550: _LT_EOF
10551: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10552: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10553: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10554: else
10555: ld_shlibs=no
10556: fi
10557: ;;
10558:
10559: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10560: case `$LD -v 2>&1` in
10561: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10562: ld_shlibs=no
10563: cat <<_LT_EOF 1>&2
10564:
10565: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10566: *** reliably create shared libraries on SCO systems. Therefore, libtool
10567: *** is disabling shared libraries support. We urge you to upgrade GNU
10568: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10569: *** your PATH or compiler configuration so that the native linker is
10570: *** used, and then restart.
10571:
10572: _LT_EOF
10573: ;;
10574: *)
10575: # For security reasons, it is highly recommended that you always
10576: # use absolute paths for naming shared libraries, and exclude the
10577: # DT_RUNPATH tag from executables and libraries. But doing so
10578: # requires that you compile everything twice, which is a pain.
10579: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10580: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10581: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10582: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10583: else
10584: ld_shlibs=no
10585: fi
10586: ;;
10587: esac
10588: ;;
10589:
10590: sunos4*)
10591: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10592: wlarc=
10593: hardcode_direct=yes
10594: hardcode_shlibpath_var=no
10595: ;;
10596:
10597: *)
10598: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10599: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10600: archive_expsym_cmds='$CC -shared $pic_flag $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: if test "$ld_shlibs" = no; then
10608: runpath_var=
10609: hardcode_libdir_flag_spec=
10610: export_dynamic_flag_spec=
10611: whole_archive_flag_spec=
10612: fi
10613: else
10614: # PORTME fill in a description of your system's linker (not GNU ld)
10615: case $host_os in
10616: aix3*)
10617: allow_undefined_flag=unsupported
10618: always_export_symbols=yes
10619: 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'
10620: # Note: this linker hardcodes the directories in LIBPATH if there
10621: # are no directories specified by -L.
10622: hardcode_minus_L=yes
10623: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10624: # Neither direct hardcoding nor static linking is supported with a
10625: # broken collect2.
10626: hardcode_direct=unsupported
10627: fi
10628: ;;
10629:
10630: aix[4-9]*)
10631: if test "$host_cpu" = ia64; then
10632: # On IA64, the linker does run time linking by default, so we don't
10633: # have to do anything special.
10634: aix_use_runtimelinking=no
10635: exp_sym_flag='-Bexport'
10636: no_entry_flag=""
10637: else
10638: # If we're using GNU nm, then we don't want the "-C" option.
10639: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10640: # Also, AIX nm treats weak defined symbols like other global
10641: # defined symbols, whereas GNU nm marks them as "W".
10642: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10643: 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'
10644: else
10645: 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'
10646: fi
10647: aix_use_runtimelinking=no
10648:
10649: # Test if we are trying to use run time linking or normal
10650: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10651: # need to do runtime linking.
10652: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10653: for ld_flag in $LDFLAGS; do
10654: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10655: aix_use_runtimelinking=yes
10656: break
10657: fi
10658: done
10659: ;;
10660: esac
10661:
10662: exp_sym_flag='-bexport'
10663: no_entry_flag='-bnoentry'
10664: fi
10665:
10666: # When large executables or shared objects are built, AIX ld can
10667: # have problems creating the table of contents. If linking a library
10668: # or program results in "error TOC overflow" add -mminimal-toc to
10669: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10670: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10671:
10672: archive_cmds=''
10673: hardcode_direct=yes
10674: hardcode_direct_absolute=yes
10675: hardcode_libdir_separator=':'
10676: link_all_deplibs=yes
10677: file_list_spec='${wl}-f,'
10678:
10679: if test "$GCC" = yes; then
10680: case $host_os in aix4.[012]|aix4.[012].*)
10681: # We only want to do this on AIX 4.2 and lower, the check
10682: # below for broken collect2 doesn't work under 4.3+
10683: collect2name=`${CC} -print-prog-name=collect2`
10684: if test -f "$collect2name" &&
10685: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10686: then
10687: # We have reworked collect2
10688: :
10689: else
10690: # We have old collect2
10691: hardcode_direct=unsupported
10692: # It fails to find uninstalled libraries when the uninstalled
10693: # path is not listed in the libpath. Setting hardcode_minus_L
10694: # to unsupported forces relinking
10695: hardcode_minus_L=yes
10696: hardcode_libdir_flag_spec='-L$libdir'
10697: hardcode_libdir_separator=
10698: fi
10699: ;;
10700: esac
10701: shared_flag='-shared'
10702: if test "$aix_use_runtimelinking" = yes; then
10703: shared_flag="$shared_flag "'${wl}-G'
10704: fi
10705: else
10706: # not using gcc
10707: if test "$host_cpu" = ia64; then
10708: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10709: # chokes on -Wl,-G. The following line is correct:
10710: shared_flag='-G'
10711: else
10712: if test "$aix_use_runtimelinking" = yes; then
10713: shared_flag='${wl}-G'
10714: else
10715: shared_flag='${wl}-bM:SRE'
10716: fi
10717: fi
10718: fi
10719:
10720: export_dynamic_flag_spec='${wl}-bexpall'
10721: # It seems that -bexpall does not export symbols beginning with
10722: # underscore (_), so it is better to generate a list of symbols to export.
10723: always_export_symbols=yes
10724: if test "$aix_use_runtimelinking" = yes; then
10725: # Warning - without using the other runtime loading flags (-brtl),
10726: # -berok will link without error, but may produce a broken library.
10727: allow_undefined_flag='-berok'
10728: # Determine the default libpath from the value encoded in an
10729: # empty executable.
10730: if test "${lt_cv_aix_libpath+set}" = set; then
10731: aix_libpath=$lt_cv_aix_libpath
10732: else
1.150 moko 10733: if ${lt_cv_aix_libpath_+:} false; then :
10734: $as_echo_n "(cached) " >&6
1.128 moko 10735: else
1.150 moko 10736: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10737: /* end confdefs.h. */
10738:
10739: int
10740: main ()
10741: {
10742:
10743: ;
10744: return 0;
10745: }
10746: _ACEOF
1.150 moko 10747: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10748:
10749: lt_aix_libpath_sed='
10750: /Import File Strings/,/^$/ {
10751: /^0/ {
10752: s/^0 *\([^ ]*\) *$/\1/
10753: p
10754: }
10755: }'
10756: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10757: # Check for a 64-bit object if we didn't find anything.
10758: if test -z "$lt_cv_aix_libpath_"; then
10759: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10760: fi
10761: fi
1.150 moko 10762: rm -f core conftest.err conftest.$ac_objext \
10763: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10764: if test -z "$lt_cv_aix_libpath_"; then
10765: lt_cv_aix_libpath_="/usr/lib:/lib"
10766: fi
10767:
10768: fi
10769:
10770: aix_libpath=$lt_cv_aix_libpath_
10771: fi
10772:
10773: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10774: 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"
10775: else
10776: if test "$host_cpu" = ia64; then
10777: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10778: allow_undefined_flag="-z nodefs"
10779: 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"
10780: else
10781: # Determine the default libpath from the value encoded in an
10782: # empty executable.
10783: if test "${lt_cv_aix_libpath+set}" = set; then
10784: aix_libpath=$lt_cv_aix_libpath
10785: else
1.150 moko 10786: if ${lt_cv_aix_libpath_+:} false; then :
10787: $as_echo_n "(cached) " >&6
1.128 moko 10788: else
1.150 moko 10789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10790: /* end confdefs.h. */
10791:
10792: int
10793: main ()
10794: {
10795:
10796: ;
10797: return 0;
10798: }
10799: _ACEOF
1.150 moko 10800: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10801:
10802: lt_aix_libpath_sed='
10803: /Import File Strings/,/^$/ {
10804: /^0/ {
10805: s/^0 *\([^ ]*\) *$/\1/
10806: p
10807: }
10808: }'
10809: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10810: # Check for a 64-bit object if we didn't find anything.
10811: if test -z "$lt_cv_aix_libpath_"; then
10812: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10813: fi
10814: fi
1.150 moko 10815: rm -f core conftest.err conftest.$ac_objext \
10816: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10817: if test -z "$lt_cv_aix_libpath_"; then
10818: lt_cv_aix_libpath_="/usr/lib:/lib"
10819: fi
10820:
10821: fi
10822:
10823: aix_libpath=$lt_cv_aix_libpath_
10824: fi
10825:
10826: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10827: # Warning - without using the other run time loading flags,
10828: # -berok will link without error, but may produce a broken library.
10829: no_undefined_flag=' ${wl}-bernotok'
10830: allow_undefined_flag=' ${wl}-berok'
10831: if test "$with_gnu_ld" = yes; then
10832: # We only use this code for GNU lds that support --whole-archive.
10833: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10834: else
10835: # Exported symbols can be pulled into shared objects from archives
10836: whole_archive_flag_spec='$convenience'
10837: fi
10838: archive_cmds_need_lc=yes
10839: # This is similar to how AIX traditionally builds its shared libraries.
10840: 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'
10841: fi
10842: fi
10843: ;;
10844:
10845: amigaos*)
10846: case $host_cpu in
10847: powerpc)
10848: # see comment about AmigaOS4 .so support
10849: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10850: archive_expsym_cmds=''
10851: ;;
10852: m68k)
10853: 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)'
10854: hardcode_libdir_flag_spec='-L$libdir'
10855: hardcode_minus_L=yes
10856: ;;
10857: esac
10858: ;;
10859:
10860: bsdi[45]*)
10861: export_dynamic_flag_spec=-rdynamic
10862: ;;
10863:
10864: cygwin* | mingw* | pw32* | cegcc*)
10865: # When not using gcc, we currently assume that we are using
10866: # Microsoft Visual C++.
10867: # hardcode_libdir_flag_spec is actually meaningless, as there is
10868: # no search path for DLLs.
10869: case $cc_basename in
10870: cl*)
10871: # Native MSVC
10872: hardcode_libdir_flag_spec=' '
10873: allow_undefined_flag=unsupported
10874: always_export_symbols=yes
10875: file_list_spec='@'
10876: # Tell ltmain to make .lib files, not .a files.
10877: libext=lib
10878: # Tell ltmain to make .dll files, not .so files.
10879: shrext_cmds=".dll"
10880: # FIXME: Setting linknames here is a bad hack.
10881: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10882: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10883: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10884: else
10885: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10886: fi~
10887: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10888: linknames='
10889: # The linker will not automatically build a static lib if we build a DLL.
10890: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10891: enable_shared_with_static_runtimes=yes
10892: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10893: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10894: # Don't use ranlib
10895: old_postinstall_cmds='chmod 644 $oldlib'
10896: postlink_cmds='lt_outputfile="@OUTPUT@"~
10897: lt_tool_outputfile="@TOOL_OUTPUT@"~
10898: case $lt_outputfile in
10899: *.exe|*.EXE) ;;
10900: *)
10901: lt_outputfile="$lt_outputfile.exe"
10902: lt_tool_outputfile="$lt_tool_outputfile.exe"
10903: ;;
10904: esac~
10905: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10906: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10907: $RM "$lt_outputfile.manifest";
10908: fi'
10909: ;;
10910: *)
10911: # Assume MSVC wrapper
10912: hardcode_libdir_flag_spec=' '
10913: allow_undefined_flag=unsupported
10914: # Tell ltmain to make .lib files, not .a files.
10915: libext=lib
10916: # Tell ltmain to make .dll files, not .so files.
10917: shrext_cmds=".dll"
10918: # FIXME: Setting linknames here is a bad hack.
10919: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10920: # The linker will automatically build a .lib file if we build a DLL.
10921: old_archive_from_new_cmds='true'
10922: # FIXME: Should let the user specify the lib program.
10923: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10924: enable_shared_with_static_runtimes=yes
10925: ;;
10926: esac
10927: ;;
10928:
10929: darwin* | rhapsody*)
10930:
10931:
10932: archive_cmds_need_lc=no
10933: hardcode_direct=no
10934: hardcode_automatic=yes
10935: hardcode_shlibpath_var=unsupported
10936: if test "$lt_cv_ld_force_load" = "yes"; then
10937: 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\"`'
10938:
10939: else
10940: whole_archive_flag_spec=''
10941: fi
10942: link_all_deplibs=yes
10943: allow_undefined_flag="$_lt_dar_allow_undefined"
10944: case $cc_basename in
10945: ifort*) _lt_dar_can_shared=yes ;;
10946: *) _lt_dar_can_shared=$GCC ;;
10947: esac
10948: if test "$_lt_dar_can_shared" = "yes"; then
10949: output_verbose_link_cmd=func_echo_all
10950: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10951: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10952: 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}"
10953: 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}"
10954:
10955: else
10956: ld_shlibs=no
10957: fi
10958:
10959: ;;
10960:
10961: dgux*)
10962: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963: hardcode_libdir_flag_spec='-L$libdir'
10964: hardcode_shlibpath_var=no
10965: ;;
10966:
10967: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10968: # support. Future versions do this automatically, but an explicit c++rt0.o
10969: # does not break anything, and helps significantly (at the cost of a little
10970: # extra space).
10971: freebsd2.2*)
10972: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10973: hardcode_libdir_flag_spec='-R$libdir'
10974: hardcode_direct=yes
10975: hardcode_shlibpath_var=no
10976: ;;
10977:
10978: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10979: freebsd2.*)
10980: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10981: hardcode_direct=yes
10982: hardcode_minus_L=yes
10983: hardcode_shlibpath_var=no
10984: ;;
10985:
10986: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10987: freebsd* | dragonfly*)
10988: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10989: hardcode_libdir_flag_spec='-R$libdir'
10990: hardcode_direct=yes
10991: hardcode_shlibpath_var=no
10992: ;;
10993:
10994: hpux9*)
10995: if test "$GCC" = yes; then
10996: 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'
10997: else
10998: 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'
10999: fi
11000: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11001: hardcode_libdir_separator=:
11002: hardcode_direct=yes
11003:
11004: # hardcode_minus_L: Not really in the search PATH,
11005: # but as the default location of the library.
11006: hardcode_minus_L=yes
11007: export_dynamic_flag_spec='${wl}-E'
11008: ;;
11009:
11010: hpux10*)
11011: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11012: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11013: else
11014: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11015: fi
11016: if test "$with_gnu_ld" = no; then
11017: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11018: hardcode_libdir_separator=:
11019: hardcode_direct=yes
11020: hardcode_direct_absolute=yes
11021: export_dynamic_flag_spec='${wl}-E'
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: fi
11026: ;;
11027:
11028: hpux11*)
11029: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11030: case $host_cpu in
11031: hppa*64*)
11032: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11033: ;;
11034: ia64*)
11035: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11036: ;;
11037: *)
11038: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11039: ;;
11040: esac
11041: else
11042: case $host_cpu in
11043: hppa*64*)
11044: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11045: ;;
11046: ia64*)
11047: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11048: ;;
11049: *)
11050:
11051: # Older versions of the 11.00 compiler do not understand -b yet
11052: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 11053: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11054: $as_echo_n "checking if $CC understands -b... " >&6; }
11055: if ${lt_cv_prog_compiler__b+:} false; then :
11056: $as_echo_n "(cached) " >&6
1.128 moko 11057: else
11058: lt_cv_prog_compiler__b=no
11059: save_LDFLAGS="$LDFLAGS"
11060: LDFLAGS="$LDFLAGS -b"
11061: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11062: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11063: # The linker can only warn and ignore the option if not recognized
11064: # So say no if there are warnings
11065: if test -s conftest.err; then
11066: # Append any errors to the config.log.
11067: cat conftest.err 1>&5
11068: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11069: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11070: if diff conftest.exp conftest.er2 >/dev/null; then
11071: lt_cv_prog_compiler__b=yes
11072: fi
11073: else
11074: lt_cv_prog_compiler__b=yes
11075: fi
11076: fi
11077: $RM -r conftest*
11078: LDFLAGS="$save_LDFLAGS"
11079:
11080: fi
1.150 moko 11081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11082: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 11083:
11084: if test x"$lt_cv_prog_compiler__b" = xyes; then
11085: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11086: else
11087: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11088: fi
11089:
11090: ;;
11091: esac
11092: fi
11093: if test "$with_gnu_ld" = no; then
11094: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11095: hardcode_libdir_separator=:
11096:
11097: case $host_cpu in
11098: hppa*64*|ia64*)
11099: hardcode_direct=no
11100: hardcode_shlibpath_var=no
11101: ;;
11102: *)
11103: hardcode_direct=yes
11104: hardcode_direct_absolute=yes
11105: export_dynamic_flag_spec='${wl}-E'
11106:
11107: # hardcode_minus_L: Not really in the search PATH,
11108: # but as the default location of the library.
11109: hardcode_minus_L=yes
11110: ;;
11111: esac
11112: fi
11113: ;;
11114:
11115: irix5* | irix6* | nonstopux*)
11116: if test "$GCC" = yes; then
11117: 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'
11118: # Try to use the -exported_symbol ld option, if it does not
11119: # work, assume that -exports_file does not work either and
11120: # implicitly export all symbols.
11121: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 11122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11123: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11124: if ${lt_cv_irix_exported_symbol+:} false; then :
11125: $as_echo_n "(cached) " >&6
1.128 moko 11126: else
11127: save_LDFLAGS="$LDFLAGS"
11128: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 11129: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11130: /* end confdefs.h. */
11131: int foo (void) { return 0; }
11132: _ACEOF
1.150 moko 11133: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 11134: lt_cv_irix_exported_symbol=yes
11135: else
1.150 moko 11136: lt_cv_irix_exported_symbol=no
1.128 moko 11137: fi
1.150 moko 11138: rm -f core conftest.err conftest.$ac_objext \
11139: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11140: LDFLAGS="$save_LDFLAGS"
11141: fi
1.150 moko 11142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11143: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 11144: if test "$lt_cv_irix_exported_symbol" = yes; then
11145: 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'
11146: fi
11147: else
11148: 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'
11149: 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'
11150: fi
11151: archive_cmds_need_lc='no'
11152: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11153: hardcode_libdir_separator=:
11154: inherit_rpath=yes
11155: link_all_deplibs=yes
11156: ;;
11157:
11158: netbsd*)
11159: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11160: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11161: else
11162: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11163: fi
11164: hardcode_libdir_flag_spec='-R$libdir'
11165: hardcode_direct=yes
11166: hardcode_shlibpath_var=no
11167: ;;
11168:
11169: newsos6)
11170: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11171: hardcode_direct=yes
11172: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11173: hardcode_libdir_separator=:
11174: hardcode_shlibpath_var=no
11175: ;;
11176:
11177: *nto* | *qnx*)
11178: ;;
11179:
11180: openbsd*)
11181: if test -f /usr/libexec/ld.so; then
11182: hardcode_direct=yes
11183: hardcode_shlibpath_var=no
11184: hardcode_direct_absolute=yes
11185: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11186: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11187: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11188: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11189: export_dynamic_flag_spec='${wl}-E'
11190: else
11191: case $host_os in
11192: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11193: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11194: hardcode_libdir_flag_spec='-R$libdir'
11195: ;;
11196: *)
11197: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11198: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11199: ;;
11200: esac
11201: fi
11202: else
11203: ld_shlibs=no
11204: fi
11205: ;;
11206:
11207: os2*)
11208: hardcode_libdir_flag_spec='-L$libdir'
11209: hardcode_minus_L=yes
11210: allow_undefined_flag=unsupported
11211: 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'
11212: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11213: ;;
11214:
11215: osf3*)
11216: if test "$GCC" = yes; then
11217: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11218: 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'
11219: else
11220: allow_undefined_flag=' -expect_unresolved \*'
11221: 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'
11222: fi
11223: archive_cmds_need_lc='no'
11224: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11225: hardcode_libdir_separator=:
11226: ;;
11227:
11228: osf4* | osf5*) # as osf3* with the addition of -msym flag
11229: if test "$GCC" = yes; then
11230: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11231: 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'
11232: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11233: else
11234: allow_undefined_flag=' -expect_unresolved \*'
11235: 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'
11236: 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~
11237: $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'
11238:
11239: # Both c and cxx compiler support -rpath directly
11240: hardcode_libdir_flag_spec='-rpath $libdir'
11241: fi
11242: archive_cmds_need_lc='no'
11243: hardcode_libdir_separator=:
11244: ;;
11245:
11246: solaris*)
11247: no_undefined_flag=' -z defs'
11248: if test "$GCC" = yes; then
11249: wlarc='${wl}'
11250: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11251: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11252: $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'
11253: else
11254: case `$CC -V 2>&1` in
11255: *"Compilers 5.0"*)
11256: wlarc=''
11257: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11258: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11259: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11260: ;;
11261: *)
11262: wlarc='${wl}'
11263: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11264: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11265: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11266: ;;
11267: esac
11268: fi
11269: hardcode_libdir_flag_spec='-R$libdir'
11270: hardcode_shlibpath_var=no
11271: case $host_os in
11272: solaris2.[0-5] | solaris2.[0-5].*) ;;
11273: *)
11274: # The compiler driver will combine and reorder linker options,
11275: # but understands `-z linker_flag'. GCC discards it without `$wl',
11276: # but is careful enough not to reorder.
11277: # Supported since Solaris 2.6 (maybe 2.5.1?)
11278: if test "$GCC" = yes; then
11279: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11280: else
11281: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11282: fi
11283: ;;
11284: esac
11285: link_all_deplibs=yes
11286: ;;
11287:
11288: sunos4*)
11289: if test "x$host_vendor" = xsequent; then
11290: # Use $CC to link under sequent, because it throws in some extra .o
11291: # files that make .init and .fini sections work.
11292: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11293: else
11294: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11295: fi
11296: hardcode_libdir_flag_spec='-L$libdir'
11297: hardcode_direct=yes
11298: hardcode_minus_L=yes
11299: hardcode_shlibpath_var=no
11300: ;;
11301:
11302: sysv4)
11303: case $host_vendor in
11304: sni)
11305: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11306: hardcode_direct=yes # is this really true???
11307: ;;
11308: siemens)
11309: ## LD is ld it makes a PLAMLIB
11310: ## CC just makes a GrossModule.
11311: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11312: reload_cmds='$CC -r -o $output$reload_objs'
11313: hardcode_direct=no
11314: ;;
11315: motorola)
11316: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11317: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11318: ;;
11319: esac
11320: runpath_var='LD_RUN_PATH'
11321: hardcode_shlibpath_var=no
11322: ;;
11323:
11324: sysv4.3*)
11325: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11326: hardcode_shlibpath_var=no
11327: export_dynamic_flag_spec='-Bexport'
11328: ;;
11329:
11330: sysv4*MP*)
11331: if test -d /usr/nec; then
11332: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11333: hardcode_shlibpath_var=no
11334: runpath_var=LD_RUN_PATH
11335: hardcode_runpath_var=yes
11336: ld_shlibs=yes
11337: fi
11338: ;;
11339:
11340: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11341: no_undefined_flag='${wl}-z,text'
11342: archive_cmds_need_lc=no
11343: hardcode_shlibpath_var=no
11344: runpath_var='LD_RUN_PATH'
11345:
11346: if test "$GCC" = yes; then
11347: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11348: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349: else
11350: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11351: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11352: fi
11353: ;;
11354:
11355: sysv5* | sco3.2v5* | sco5v6*)
11356: # Note: We can NOT use -z defs as we might desire, because we do not
11357: # link with -lc, and that would cause any symbols used from libc to
11358: # always be unresolved, which means just about no library would
11359: # ever link correctly. If we're not using GNU ld we use -z text
11360: # though, which does catch some bad symbols but isn't as heavy-handed
11361: # as -z defs.
11362: no_undefined_flag='${wl}-z,text'
11363: allow_undefined_flag='${wl}-z,nodefs'
11364: archive_cmds_need_lc=no
11365: hardcode_shlibpath_var=no
11366: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11367: hardcode_libdir_separator=':'
11368: link_all_deplibs=yes
11369: export_dynamic_flag_spec='${wl}-Bexport'
11370: runpath_var='LD_RUN_PATH'
11371:
11372: if test "$GCC" = yes; then
11373: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375: else
11376: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378: fi
11379: ;;
11380:
11381: uts4*)
11382: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11383: hardcode_libdir_flag_spec='-L$libdir'
11384: hardcode_shlibpath_var=no
11385: ;;
11386:
11387: *)
11388: ld_shlibs=no
11389: ;;
11390: esac
11391:
11392: if test x$host_vendor = xsni; then
11393: case $host in
11394: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11395: export_dynamic_flag_spec='${wl}-Blargedynsym'
11396: ;;
11397: esac
11398: fi
11399: fi
11400:
1.150 moko 11401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11402: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11403: test "$ld_shlibs" = no && can_build_shared=no
11404:
11405: with_gnu_ld=$with_gnu_ld
11406:
11407:
11408:
11409:
11410:
11411:
11412:
11413:
11414:
11415:
11416:
11417:
11418:
11419:
11420:
11421: #
11422: # Do we need to explicitly link libc?
11423: #
11424: case "x$archive_cmds_need_lc" in
11425: x|xyes)
11426: # Assume -lc should be added
11427: archive_cmds_need_lc=yes
11428:
11429: if test "$enable_shared" = yes && test "$GCC" = yes; then
11430: case $archive_cmds in
11431: *'~'*)
11432: # FIXME: we may have to deal with multi-command sequences.
11433: ;;
11434: '$CC '*)
11435: # Test whether the compiler implicitly links with -lc since on some
11436: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11437: # to ld, don't add -lc before -lgcc.
1.150 moko 11438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11439: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11440: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11441: $as_echo_n "(cached) " >&6
1.128 moko 11442: else
11443: $RM conftest*
11444: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11445:
1.150 moko 11446: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11447: (eval $ac_compile) 2>&5
11448: ac_status=$?
1.150 moko 11449: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11450: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11451: soname=conftest
11452: lib=conftest
11453: libobjs=conftest.$ac_objext
11454: deplibs=
11455: wl=$lt_prog_compiler_wl
11456: pic_flag=$lt_prog_compiler_pic
11457: compiler_flags=-v
11458: linker_flags=-v
11459: verstring=
11460: output_objdir=.
11461: libname=conftest
11462: lt_save_allow_undefined_flag=$allow_undefined_flag
11463: allow_undefined_flag=
1.150 moko 11464: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11465: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11466: ac_status=$?
1.150 moko 11467: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11468: test $ac_status = 0; }
1.128 moko 11469: then
11470: lt_cv_archive_cmds_need_lc=no
11471: else
11472: lt_cv_archive_cmds_need_lc=yes
11473: fi
11474: allow_undefined_flag=$lt_save_allow_undefined_flag
11475: else
11476: cat conftest.err 1>&5
11477: fi
11478: $RM conftest*
11479:
11480: fi
1.150 moko 11481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11482: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11483: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11484: ;;
11485: esac
11486: fi
11487: ;;
11488: esac
11489:
11490:
11491:
11492:
11493:
11494:
11495:
11496:
11497:
11498:
11499:
11500:
11501:
11502:
11503:
11504:
11505:
11506:
11507:
11508:
11509:
11510:
11511:
11512:
11513:
11514:
11515:
11516:
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
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:
1.150 moko 11641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11642: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11643:
11644: if test "$GCC" = yes; then
11645: case $host_os in
11646: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11647: *) lt_awk_arg="/^libraries:/" ;;
11648: esac
11649: case $host_os in
11650: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11651: *) lt_sed_strip_eq="s,=/,/,g" ;;
11652: esac
11653: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11654: case $lt_search_path_spec in
11655: *\;*)
11656: # if the path contains ";" then we assume it to be the separator
11657: # otherwise default to the standard path separator (i.e. ":") - it is
11658: # assumed that no part of a normal pathname contains ";" but that should
11659: # okay in the real world where ";" in dirpaths is itself problematic.
11660: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11661: ;;
11662: *)
11663: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11664: ;;
11665: esac
11666: # Ok, now we have the path, separated by spaces, we can step through it
11667: # and add multilib dir if necessary.
11668: lt_tmp_lt_search_path_spec=
11669: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11670: for lt_sys_path in $lt_search_path_spec; do
11671: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11672: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11673: else
11674: test -d "$lt_sys_path" && \
11675: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11676: fi
11677: done
11678: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11679: BEGIN {RS=" "; FS="/|\n";} {
11680: lt_foo="";
11681: lt_count=0;
11682: for (lt_i = NF; lt_i > 0; lt_i--) {
11683: if ($lt_i != "" && $lt_i != ".") {
11684: if ($lt_i == "..") {
11685: lt_count++;
11686: } else {
11687: if (lt_count == 0) {
11688: lt_foo="/" $lt_i lt_foo;
11689: } else {
11690: lt_count--;
11691: }
11692: }
11693: }
11694: }
11695: if (lt_foo != "") { lt_freq[lt_foo]++; }
11696: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11697: }'`
11698: # AWK program above erroneously prepends '/' to C:/dos/paths
11699: # for these hosts.
11700: case $host_os in
11701: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11702: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11703: esac
11704: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11705: else
11706: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11707: fi
11708: library_names_spec=
11709: libname_spec='lib$name'
11710: soname_spec=
11711: shrext_cmds=".so"
11712: postinstall_cmds=
11713: postuninstall_cmds=
11714: finish_cmds=
11715: finish_eval=
11716: shlibpath_var=
11717: shlibpath_overrides_runpath=unknown
11718: version_type=none
11719: dynamic_linker="$host_os ld.so"
11720: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11721: need_lib_prefix=unknown
11722: hardcode_into_libs=no
11723:
11724: # when you set need_version to no, make sure it does not cause -set_version
11725: # flags to be left without arguments
11726: need_version=unknown
11727:
11728: case $host_os in
11729: aix3*)
11730: version_type=linux # correct to gnu/linux during the next big refactor
11731: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11732: shlibpath_var=LIBPATH
11733:
11734: # AIX 3 has no versioning support, so we append a major version to the name.
11735: soname_spec='${libname}${release}${shared_ext}$major'
11736: ;;
11737:
11738: aix[4-9]*)
11739: version_type=linux # correct to gnu/linux during the next big refactor
11740: need_lib_prefix=no
11741: need_version=no
11742: hardcode_into_libs=yes
11743: if test "$host_cpu" = ia64; then
11744: # AIX 5 supports IA64
11745: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11746: shlibpath_var=LD_LIBRARY_PATH
11747: else
11748: # With GCC up to 2.95.x, collect2 would create an import file
11749: # for dependence libraries. The import file would start with
11750: # the line `#! .'. This would cause the generated library to
11751: # depend on `.', always an invalid library. This was fixed in
11752: # development snapshots of GCC prior to 3.0.
11753: case $host_os in
11754: aix4 | aix4.[01] | aix4.[01].*)
11755: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11756: echo ' yes '
11757: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11758: :
11759: else
11760: can_build_shared=no
11761: fi
11762: ;;
11763: esac
11764: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11765: # soname into executable. Probably we can add versioning support to
11766: # collect2, so additional links can be useful in future.
11767: if test "$aix_use_runtimelinking" = yes; then
11768: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11769: # instead of lib<name>.a to let people know that these are not
11770: # typical AIX shared libraries.
11771: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772: else
11773: # We preserve .a as extension for shared libraries through AIX4.2
11774: # and later when we are not doing run time linking.
11775: library_names_spec='${libname}${release}.a $libname.a'
11776: soname_spec='${libname}${release}${shared_ext}$major'
11777: fi
11778: shlibpath_var=LIBPATH
11779: fi
11780: ;;
11781:
11782: amigaos*)
11783: case $host_cpu in
11784: powerpc)
11785: # Since July 2007 AmigaOS4 officially supports .so libraries.
11786: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11787: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788: ;;
11789: m68k)
11790: library_names_spec='$libname.ixlibrary $libname.a'
11791: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11792: 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'
11793: ;;
11794: esac
11795: ;;
11796:
11797: beos*)
11798: library_names_spec='${libname}${shared_ext}'
11799: dynamic_linker="$host_os ld.so"
11800: shlibpath_var=LIBRARY_PATH
11801: ;;
11802:
11803: bsdi[45]*)
11804: version_type=linux # correct to gnu/linux during the next big refactor
11805: need_version=no
11806: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807: soname_spec='${libname}${release}${shared_ext}$major'
11808: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11809: shlibpath_var=LD_LIBRARY_PATH
11810: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11811: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11812: # the default ld.so.conf also contains /usr/contrib/lib and
11813: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11814: # libtool to hard-code these into programs
11815: ;;
11816:
11817: cygwin* | mingw* | pw32* | cegcc*)
11818: version_type=windows
11819: shrext_cmds=".dll"
11820: need_version=no
11821: need_lib_prefix=no
11822:
11823: case $GCC,$cc_basename in
11824: yes,*)
11825: # gcc
11826: library_names_spec='$libname.dll.a'
11827: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11828: postinstall_cmds='base_file=`basename \${file}`~
11829: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11830: dldir=$destdir/`dirname \$dlpath`~
11831: test -d \$dldir || mkdir -p \$dldir~
11832: $install_prog $dir/$dlname \$dldir/$dlname~
11833: chmod a+x \$dldir/$dlname~
11834: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11835: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11836: fi'
11837: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11838: dlpath=$dir/\$dldll~
11839: $RM \$dlpath'
11840: shlibpath_overrides_runpath=yes
11841:
11842: case $host_os in
11843: cygwin*)
11844: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11845: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11846:
11847: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11848: ;;
11849: mingw* | cegcc*)
11850: # MinGW DLLs use traditional 'lib' prefix
11851: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11852: ;;
11853: pw32*)
11854: # pw32 DLLs use 'pw' prefix rather than 'lib'
11855: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11856: ;;
11857: esac
11858: dynamic_linker='Win32 ld.exe'
11859: ;;
11860:
11861: *,cl*)
11862: # Native MSVC
11863: libname_spec='$name'
11864: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11865: library_names_spec='${libname}.dll.lib'
11866:
11867: case $build_os in
11868: mingw*)
11869: sys_lib_search_path_spec=
11870: lt_save_ifs=$IFS
11871: IFS=';'
11872: for lt_path in $LIB
11873: do
11874: IFS=$lt_save_ifs
11875: # Let DOS variable expansion print the short 8.3 style file name.
11876: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11877: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11878: done
11879: IFS=$lt_save_ifs
11880: # Convert to MSYS style.
11881: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11882: ;;
11883: cygwin*)
11884: # Convert to unix form, then to dos form, then back to unix form
11885: # but this time dos style (no spaces!) so that the unix form looks
11886: # like /cygdrive/c/PROGRA~1:/cygdr...
11887: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11888: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11889: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11890: ;;
11891: *)
11892: sys_lib_search_path_spec="$LIB"
11893: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11894: # It is most probably a Windows format PATH.
11895: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11896: else
11897: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11898: fi
11899: # FIXME: find the short name or the path components, as spaces are
11900: # common. (e.g. "Program Files" -> "PROGRA~1")
11901: ;;
11902: esac
11903:
11904: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11905: postinstall_cmds='base_file=`basename \${file}`~
11906: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11907: dldir=$destdir/`dirname \$dlpath`~
11908: test -d \$dldir || mkdir -p \$dldir~
11909: $install_prog $dir/$dlname \$dldir/$dlname'
11910: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11911: dlpath=$dir/\$dldll~
11912: $RM \$dlpath'
11913: shlibpath_overrides_runpath=yes
11914: dynamic_linker='Win32 link.exe'
11915: ;;
11916:
11917: *)
11918: # Assume MSVC wrapper
11919: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11920: dynamic_linker='Win32 ld.exe'
11921: ;;
11922: esac
11923: # FIXME: first we should search . and the directory the executable is in
11924: shlibpath_var=PATH
11925: ;;
11926:
11927: darwin* | rhapsody*)
11928: dynamic_linker="$host_os dyld"
11929: version_type=darwin
11930: need_lib_prefix=no
11931: need_version=no
11932: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11933: soname_spec='${libname}${release}${major}$shared_ext'
11934: shlibpath_overrides_runpath=yes
11935: shlibpath_var=DYLD_LIBRARY_PATH
11936: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11937:
11938: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11939: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11940: ;;
11941:
11942: dgux*)
11943: version_type=linux # correct to gnu/linux during the next big refactor
11944: need_lib_prefix=no
11945: need_version=no
11946: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11947: soname_spec='${libname}${release}${shared_ext}$major'
11948: shlibpath_var=LD_LIBRARY_PATH
11949: ;;
11950:
11951: freebsd* | dragonfly*)
11952: # DragonFly does not have aout. When/if they implement a new
11953: # versioning mechanism, adjust this.
11954: if test -x /usr/bin/objformat; then
11955: objformat=`/usr/bin/objformat`
11956: else
11957: case $host_os in
11958: freebsd[23].*) objformat=aout ;;
11959: *) objformat=elf ;;
11960: esac
11961: fi
11962: version_type=freebsd-$objformat
11963: case $version_type in
11964: freebsd-elf*)
11965: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11966: need_version=no
11967: need_lib_prefix=no
11968: ;;
11969: freebsd-*)
11970: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11971: need_version=yes
11972: ;;
11973: esac
11974: shlibpath_var=LD_LIBRARY_PATH
11975: case $host_os in
11976: freebsd2.*)
11977: shlibpath_overrides_runpath=yes
11978: ;;
11979: freebsd3.[01]* | freebsdelf3.[01]*)
11980: shlibpath_overrides_runpath=yes
11981: hardcode_into_libs=yes
11982: ;;
11983: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11984: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11985: shlibpath_overrides_runpath=no
11986: hardcode_into_libs=yes
11987: ;;
11988: *) # from 4.6 on, and DragonFly
11989: shlibpath_overrides_runpath=yes
11990: hardcode_into_libs=yes
11991: ;;
11992: esac
11993: ;;
11994:
11995: gnu*)
11996: version_type=linux # correct to gnu/linux during the next big refactor
11997: need_lib_prefix=no
11998: need_version=no
11999: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12000: soname_spec='${libname}${release}${shared_ext}$major'
12001: shlibpath_var=LD_LIBRARY_PATH
12002: shlibpath_overrides_runpath=no
12003: hardcode_into_libs=yes
12004: ;;
12005:
12006: haiku*)
12007: version_type=linux # correct to gnu/linux during the next big refactor
12008: need_lib_prefix=no
12009: need_version=no
12010: dynamic_linker="$host_os runtime_loader"
12011: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12012: soname_spec='${libname}${release}${shared_ext}$major'
12013: shlibpath_var=LIBRARY_PATH
12014: shlibpath_overrides_runpath=yes
12015: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12016: hardcode_into_libs=yes
12017: ;;
12018:
12019: hpux9* | hpux10* | hpux11*)
12020: # Give a soname corresponding to the major version so that dld.sl refuses to
12021: # link against other versions.
12022: version_type=sunos
12023: need_lib_prefix=no
12024: need_version=no
12025: case $host_cpu in
12026: ia64*)
12027: shrext_cmds='.so'
12028: hardcode_into_libs=yes
12029: dynamic_linker="$host_os dld.so"
12030: shlibpath_var=LD_LIBRARY_PATH
12031: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12032: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033: soname_spec='${libname}${release}${shared_ext}$major'
12034: if test "X$HPUX_IA64_MODE" = X32; then
12035: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12036: else
12037: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12038: fi
12039: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12040: ;;
12041: hppa*64*)
12042: shrext_cmds='.sl'
12043: hardcode_into_libs=yes
12044: dynamic_linker="$host_os dld.sl"
12045: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12046: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12047: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048: soname_spec='${libname}${release}${shared_ext}$major'
12049: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12050: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12051: ;;
12052: *)
12053: shrext_cmds='.sl'
12054: dynamic_linker="$host_os dld.sl"
12055: shlibpath_var=SHLIB_PATH
12056: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12057: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058: soname_spec='${libname}${release}${shared_ext}$major'
12059: ;;
12060: esac
12061: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12062: postinstall_cmds='chmod 555 $lib'
12063: # or fails outright, so override atomically:
12064: install_override_mode=555
12065: ;;
12066:
12067: interix[3-9]*)
12068: version_type=linux # correct to gnu/linux during the next big refactor
12069: need_lib_prefix=no
12070: need_version=no
12071: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12072: soname_spec='${libname}${release}${shared_ext}$major'
12073: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12074: shlibpath_var=LD_LIBRARY_PATH
12075: shlibpath_overrides_runpath=no
12076: hardcode_into_libs=yes
12077: ;;
12078:
12079: irix5* | irix6* | nonstopux*)
12080: case $host_os in
12081: nonstopux*) version_type=nonstopux ;;
12082: *)
12083: if test "$lt_cv_prog_gnu_ld" = yes; then
12084: version_type=linux # correct to gnu/linux during the next big refactor
12085: else
12086: version_type=irix
12087: fi ;;
12088: esac
12089: need_lib_prefix=no
12090: need_version=no
12091: soname_spec='${libname}${release}${shared_ext}$major'
12092: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12093: case $host_os in
12094: irix5* | nonstopux*)
12095: libsuff= shlibsuff=
12096: ;;
12097: *)
12098: case $LD in # libtool.m4 will add one of these switches to LD
12099: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12100: libsuff= shlibsuff= libmagic=32-bit;;
12101: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12102: libsuff=32 shlibsuff=N32 libmagic=N32;;
12103: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12104: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12105: *) libsuff= shlibsuff= libmagic=never-match;;
12106: esac
12107: ;;
12108: esac
12109: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12110: shlibpath_overrides_runpath=no
12111: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12112: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12113: hardcode_into_libs=yes
12114: ;;
12115:
12116: # No shared lib support for Linux oldld, aout, or coff.
12117: linux*oldld* | linux*aout* | linux*coff*)
12118: dynamic_linker=no
12119: ;;
12120:
12121: # This must be glibc/ELF.
12122: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12123: version_type=linux # correct to gnu/linux during the next big refactor
12124: need_lib_prefix=no
12125: need_version=no
12126: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12127: soname_spec='${libname}${release}${shared_ext}$major'
12128: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12129: shlibpath_var=LD_LIBRARY_PATH
12130: shlibpath_overrides_runpath=no
12131:
12132: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 12133: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12134: $as_echo_n "(cached) " >&6
1.128 moko 12135: else
12136: lt_cv_shlibpath_overrides_runpath=no
12137: save_LDFLAGS=$LDFLAGS
12138: save_libdir=$libdir
12139: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12140: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 12141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12142: /* end confdefs.h. */
12143:
12144: int
12145: main ()
12146: {
12147:
12148: ;
12149: return 0;
12150: }
12151: _ACEOF
1.150 moko 12152: if ac_fn_c_try_link "$LINENO"; then :
12153: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 12154: lt_cv_shlibpath_overrides_runpath=yes
12155: fi
12156: fi
1.150 moko 12157: rm -f core conftest.err conftest.$ac_objext \
12158: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12159: LDFLAGS=$save_LDFLAGS
12160: libdir=$save_libdir
12161:
12162: fi
12163:
12164: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12165:
12166: # This implies no fast_install, which is unacceptable.
12167: # Some rework will be needed to allow for fast_install
12168: # before this can be enabled.
12169: hardcode_into_libs=yes
12170:
12171: # Append ld.so.conf contents to the search path
12172: if test -f /etc/ld.so.conf; then
12173: 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' ' '`
12174: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12175: fi
12176:
12177: # We used to test for /lib/ld.so.1 and disable shared libraries on
12178: # powerpc, because MkLinux only supported shared libraries with the
12179: # GNU dynamic linker. Since this was broken with cross compilers,
12180: # most powerpc-linux boxes support dynamic linking these days and
12181: # people can always --disable-shared, the test was removed, and we
12182: # assume the GNU/Linux dynamic linker is in use.
12183: dynamic_linker='GNU/Linux ld.so'
12184: ;;
12185:
12186: netbsd*)
12187: version_type=sunos
12188: need_lib_prefix=no
12189: need_version=no
12190: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12191: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12192: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12193: dynamic_linker='NetBSD (a.out) ld.so'
12194: else
12195: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12196: soname_spec='${libname}${release}${shared_ext}$major'
12197: dynamic_linker='NetBSD ld.elf_so'
12198: fi
12199: shlibpath_var=LD_LIBRARY_PATH
12200: shlibpath_overrides_runpath=yes
12201: hardcode_into_libs=yes
12202: ;;
12203:
12204: newsos6)
12205: version_type=linux # correct to gnu/linux during the next big refactor
12206: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12207: shlibpath_var=LD_LIBRARY_PATH
12208: shlibpath_overrides_runpath=yes
12209: ;;
12210:
12211: *nto* | *qnx*)
12212: version_type=qnx
12213: need_lib_prefix=no
12214: need_version=no
12215: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12216: soname_spec='${libname}${release}${shared_ext}$major'
12217: shlibpath_var=LD_LIBRARY_PATH
12218: shlibpath_overrides_runpath=no
12219: hardcode_into_libs=yes
12220: dynamic_linker='ldqnx.so'
12221: ;;
12222:
12223: openbsd*)
12224: version_type=sunos
12225: sys_lib_dlsearch_path_spec="/usr/lib"
12226: need_lib_prefix=no
12227: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12228: case $host_os in
12229: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12230: *) need_version=no ;;
12231: esac
12232: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12233: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12234: shlibpath_var=LD_LIBRARY_PATH
12235: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12236: case $host_os in
12237: openbsd2.[89] | openbsd2.[89].*)
12238: shlibpath_overrides_runpath=no
12239: ;;
12240: *)
12241: shlibpath_overrides_runpath=yes
12242: ;;
12243: esac
12244: else
12245: shlibpath_overrides_runpath=yes
12246: fi
12247: ;;
12248:
12249: os2*)
12250: libname_spec='$name'
12251: shrext_cmds=".dll"
12252: need_lib_prefix=no
12253: library_names_spec='$libname${shared_ext} $libname.a'
12254: dynamic_linker='OS/2 ld.exe'
12255: shlibpath_var=LIBPATH
12256: ;;
12257:
12258: osf3* | osf4* | osf5*)
12259: version_type=osf
12260: need_lib_prefix=no
12261: need_version=no
12262: soname_spec='${libname}${release}${shared_ext}$major'
12263: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264: shlibpath_var=LD_LIBRARY_PATH
12265: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12266: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12267: ;;
12268:
12269: rdos*)
12270: dynamic_linker=no
12271: ;;
12272:
12273: solaris*)
12274: version_type=linux # correct to gnu/linux during the next big refactor
12275: need_lib_prefix=no
12276: need_version=no
12277: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278: soname_spec='${libname}${release}${shared_ext}$major'
12279: shlibpath_var=LD_LIBRARY_PATH
12280: shlibpath_overrides_runpath=yes
12281: hardcode_into_libs=yes
12282: # ldd complains unless libraries are executable
12283: postinstall_cmds='chmod +x $lib'
12284: ;;
12285:
12286: sunos4*)
12287: version_type=sunos
12288: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12289: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12290: shlibpath_var=LD_LIBRARY_PATH
12291: shlibpath_overrides_runpath=yes
12292: if test "$with_gnu_ld" = yes; then
12293: need_lib_prefix=no
12294: fi
12295: need_version=yes
12296: ;;
12297:
12298: sysv4 | sysv4.3*)
12299: version_type=linux # correct to gnu/linux during the next big refactor
12300: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301: soname_spec='${libname}${release}${shared_ext}$major'
12302: shlibpath_var=LD_LIBRARY_PATH
12303: case $host_vendor in
12304: sni)
12305: shlibpath_overrides_runpath=no
12306: need_lib_prefix=no
12307: runpath_var=LD_RUN_PATH
12308: ;;
12309: siemens)
12310: need_lib_prefix=no
12311: ;;
12312: motorola)
12313: need_lib_prefix=no
12314: need_version=no
12315: shlibpath_overrides_runpath=no
12316: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12317: ;;
12318: esac
12319: ;;
12320:
12321: sysv4*MP*)
12322: if test -d /usr/nec ;then
12323: version_type=linux # correct to gnu/linux during the next big refactor
12324: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12325: soname_spec='$libname${shared_ext}.$major'
12326: shlibpath_var=LD_LIBRARY_PATH
12327: fi
12328: ;;
12329:
12330: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12331: version_type=freebsd-elf
12332: need_lib_prefix=no
12333: need_version=no
12334: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12335: soname_spec='${libname}${release}${shared_ext}$major'
12336: shlibpath_var=LD_LIBRARY_PATH
12337: shlibpath_overrides_runpath=yes
12338: hardcode_into_libs=yes
12339: if test "$with_gnu_ld" = yes; then
12340: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12341: else
12342: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12343: case $host_os in
12344: sco3.2v5*)
12345: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12346: ;;
12347: esac
12348: fi
12349: sys_lib_dlsearch_path_spec='/usr/lib'
12350: ;;
12351:
12352: tpf*)
12353: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12354: version_type=linux # correct to gnu/linux during the next big refactor
12355: need_lib_prefix=no
12356: need_version=no
12357: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12358: shlibpath_var=LD_LIBRARY_PATH
12359: shlibpath_overrides_runpath=no
12360: hardcode_into_libs=yes
12361: ;;
12362:
12363: uts4*)
12364: version_type=linux # correct to gnu/linux during the next big refactor
12365: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366: soname_spec='${libname}${release}${shared_ext}$major'
12367: shlibpath_var=LD_LIBRARY_PATH
12368: ;;
12369:
12370: *)
12371: dynamic_linker=no
12372: ;;
12373: esac
1.150 moko 12374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12375: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12376: test "$dynamic_linker" = no && can_build_shared=no
12377:
12378: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12379: if test "$GCC" = yes; then
12380: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12381: fi
12382:
12383: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12384: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12385: fi
12386: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12387: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12388: fi
12389:
12390:
12391:
12392:
12393:
12394:
12395:
12396:
12397:
12398:
12399:
12400:
12401:
12402:
12403:
12404:
12405:
12406:
12407:
12408:
12409:
12410:
12411:
12412:
12413:
12414:
12415:
12416:
12417:
12418:
12419:
12420:
12421:
12422:
12423:
12424:
12425:
12426:
12427:
12428:
12429:
12430:
12431:
12432:
12433:
12434:
12435:
12436:
12437:
12438:
12439:
12440:
12441:
12442:
12443:
12444:
12445:
12446:
12447:
12448:
12449:
12450:
12451:
12452:
12453:
12454:
12455:
12456:
12457:
12458:
12459:
12460:
12461:
12462:
12463:
12464:
12465:
12466:
12467:
12468:
12469:
12470:
12471:
12472:
12473:
12474:
12475:
12476:
12477:
12478:
12479:
12480:
1.150 moko 12481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12482: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12483: hardcode_action=
12484: if test -n "$hardcode_libdir_flag_spec" ||
12485: test -n "$runpath_var" ||
12486: test "X$hardcode_automatic" = "Xyes" ; then
12487:
12488: # We can hardcode non-existent directories.
12489: if test "$hardcode_direct" != no &&
12490: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12491: # have to relink, otherwise we might link with an installed library
12492: # when we should be linking with a yet-to-be-installed one
12493: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12494: test "$hardcode_minus_L" != no; then
12495: # Linking always hardcodes the temporary library directory.
12496: hardcode_action=relink
12497: else
12498: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12499: hardcode_action=immediate
12500: fi
12501: else
12502: # We cannot hardcode anything, or else we can only hardcode existing
12503: # directories.
12504: hardcode_action=unsupported
12505: fi
1.150 moko 12506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12507: $as_echo "$hardcode_action" >&6; }
1.128 moko 12508:
12509: if test "$hardcode_action" = relink ||
12510: test "$inherit_rpath" = yes; then
12511: # Fast installation is not supported
12512: enable_fast_install=no
12513: elif test "$shlibpath_overrides_runpath" = yes ||
12514: test "$enable_shared" = no; then
12515: # Fast installation is not necessary
12516: enable_fast_install=needless
12517: fi
12518:
12519:
12520:
12521:
12522:
12523:
12524: if test "x$enable_dlopen" != xyes; then
12525: enable_dlopen=unknown
12526: enable_dlopen_self=unknown
12527: enable_dlopen_self_static=unknown
12528: else
12529: lt_cv_dlopen=no
12530: lt_cv_dlopen_libs=
12531:
12532: case $host_os in
12533: beos*)
12534: lt_cv_dlopen="load_add_on"
12535: lt_cv_dlopen_libs=
12536: lt_cv_dlopen_self=yes
12537: ;;
12538:
12539: mingw* | pw32* | cegcc*)
12540: lt_cv_dlopen="LoadLibrary"
12541: lt_cv_dlopen_libs=
12542: ;;
12543:
12544: cygwin*)
12545: lt_cv_dlopen="dlopen"
12546: lt_cv_dlopen_libs=
12547: ;;
12548:
12549: darwin*)
12550: # if libdl is installed we need to link against it
1.150 moko 12551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12552: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12553: if ${ac_cv_lib_dl_dlopen+:} false; then :
12554: $as_echo_n "(cached) " >&6
1.128 moko 12555: else
12556: ac_check_lib_save_LIBS=$LIBS
12557: LIBS="-ldl $LIBS"
1.150 moko 12558: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12559: /* end confdefs.h. */
12560:
1.150 moko 12561: /* Override any GCC internal prototype to avoid an error.
12562: Use char because int might match the return type of a GCC
12563: builtin and then its argument prototype would still apply. */
1.128 moko 12564: #ifdef __cplusplus
12565: extern "C"
12566: #endif
12567: char dlopen ();
12568: int
12569: main ()
12570: {
1.150 moko 12571: return dlopen ();
1.128 moko 12572: ;
12573: return 0;
12574: }
12575: _ACEOF
1.150 moko 12576: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12577: ac_cv_lib_dl_dlopen=yes
12578: else
1.150 moko 12579: ac_cv_lib_dl_dlopen=no
1.128 moko 12580: fi
1.150 moko 12581: rm -f core conftest.err conftest.$ac_objext \
12582: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12583: LIBS=$ac_check_lib_save_LIBS
12584: fi
1.150 moko 12585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12586: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12587: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12588: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12589: else
12590:
12591: lt_cv_dlopen="dyld"
12592: lt_cv_dlopen_libs=
12593: lt_cv_dlopen_self=yes
12594:
12595: fi
12596:
12597: ;;
12598:
12599: *)
1.150 moko 12600: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12601: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12602: lt_cv_dlopen="shl_load"
12603: else
1.150 moko 12604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12605: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12606: if ${ac_cv_lib_dld_shl_load+:} false; then :
12607: $as_echo_n "(cached) " >&6
1.128 moko 12608: else
12609: ac_check_lib_save_LIBS=$LIBS
12610: LIBS="-ldld $LIBS"
1.150 moko 12611: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12612: /* end confdefs.h. */
12613:
1.150 moko 12614: /* Override any GCC internal prototype to avoid an error.
12615: Use char because int might match the return type of a GCC
12616: builtin and then its argument prototype would still apply. */
1.128 moko 12617: #ifdef __cplusplus
12618: extern "C"
12619: #endif
12620: char shl_load ();
12621: int
12622: main ()
12623: {
1.150 moko 12624: return shl_load ();
1.128 moko 12625: ;
12626: return 0;
12627: }
12628: _ACEOF
1.150 moko 12629: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12630: ac_cv_lib_dld_shl_load=yes
12631: else
1.150 moko 12632: ac_cv_lib_dld_shl_load=no
1.128 moko 12633: fi
1.150 moko 12634: rm -f core conftest.err conftest.$ac_objext \
12635: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12636: LIBS=$ac_check_lib_save_LIBS
12637: fi
1.150 moko 12638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12639: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12640: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12641: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12642: else
1.150 moko 12643: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12644: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12645: lt_cv_dlopen="dlopen"
12646: else
1.150 moko 12647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12648: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12649: if ${ac_cv_lib_dl_dlopen+:} false; then :
12650: $as_echo_n "(cached) " >&6
1.128 moko 12651: else
12652: ac_check_lib_save_LIBS=$LIBS
12653: LIBS="-ldl $LIBS"
1.150 moko 12654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12655: /* end confdefs.h. */
12656:
1.150 moko 12657: /* Override any GCC internal prototype to avoid an error.
12658: Use char because int might match the return type of a GCC
12659: builtin and then its argument prototype would still apply. */
1.128 moko 12660: #ifdef __cplusplus
12661: extern "C"
12662: #endif
12663: char dlopen ();
12664: int
12665: main ()
12666: {
1.150 moko 12667: return dlopen ();
1.128 moko 12668: ;
12669: return 0;
12670: }
12671: _ACEOF
1.150 moko 12672: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12673: ac_cv_lib_dl_dlopen=yes
12674: else
1.150 moko 12675: ac_cv_lib_dl_dlopen=no
1.128 moko 12676: fi
1.150 moko 12677: rm -f core conftest.err conftest.$ac_objext \
12678: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12679: LIBS=$ac_check_lib_save_LIBS
12680: fi
1.150 moko 12681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12682: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12683: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12684: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12685: else
1.150 moko 12686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12687: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12688: if ${ac_cv_lib_svld_dlopen+:} false; then :
12689: $as_echo_n "(cached) " >&6
1.128 moko 12690: else
12691: ac_check_lib_save_LIBS=$LIBS
12692: LIBS="-lsvld $LIBS"
1.150 moko 12693: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12694: /* end confdefs.h. */
12695:
1.150 moko 12696: /* Override any GCC internal prototype to avoid an error.
12697: Use char because int might match the return type of a GCC
12698: builtin and then its argument prototype would still apply. */
1.128 moko 12699: #ifdef __cplusplus
12700: extern "C"
12701: #endif
12702: char dlopen ();
12703: int
12704: main ()
12705: {
1.150 moko 12706: return dlopen ();
1.128 moko 12707: ;
12708: return 0;
12709: }
12710: _ACEOF
1.150 moko 12711: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12712: ac_cv_lib_svld_dlopen=yes
12713: else
1.150 moko 12714: ac_cv_lib_svld_dlopen=no
1.128 moko 12715: fi
1.150 moko 12716: rm -f core conftest.err conftest.$ac_objext \
12717: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12718: LIBS=$ac_check_lib_save_LIBS
12719: fi
1.150 moko 12720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12721: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12722: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12723: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12724: else
1.150 moko 12725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12726: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12727: if ${ac_cv_lib_dld_dld_link+:} false; then :
12728: $as_echo_n "(cached) " >&6
1.128 moko 12729: else
12730: ac_check_lib_save_LIBS=$LIBS
12731: LIBS="-ldld $LIBS"
1.150 moko 12732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12733: /* end confdefs.h. */
12734:
1.150 moko 12735: /* Override any GCC internal prototype to avoid an error.
12736: Use char because int might match the return type of a GCC
12737: builtin and then its argument prototype would still apply. */
1.128 moko 12738: #ifdef __cplusplus
12739: extern "C"
12740: #endif
12741: char dld_link ();
12742: int
12743: main ()
12744: {
1.150 moko 12745: return dld_link ();
1.128 moko 12746: ;
12747: return 0;
12748: }
12749: _ACEOF
1.150 moko 12750: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12751: ac_cv_lib_dld_dld_link=yes
12752: else
1.150 moko 12753: ac_cv_lib_dld_dld_link=no
12754: fi
12755: rm -f core conftest.err conftest.$ac_objext \
12756: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12757: LIBS=$ac_check_lib_save_LIBS
12758: fi
1.150 moko 12759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12760: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12761: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12762: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12763: fi
12764:
12765:
12766: fi
12767:
12768:
12769: fi
12770:
12771:
12772: fi
12773:
12774:
12775: fi
12776:
12777:
12778: fi
12779:
12780: ;;
12781: esac
12782:
12783: if test "x$lt_cv_dlopen" != xno; then
12784: enable_dlopen=yes
12785: else
12786: enable_dlopen=no
12787: fi
12788:
12789: case $lt_cv_dlopen in
12790: dlopen)
12791: save_CPPFLAGS="$CPPFLAGS"
12792: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12793:
12794: save_LDFLAGS="$LDFLAGS"
12795: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12796:
12797: save_LIBS="$LIBS"
12798: LIBS="$lt_cv_dlopen_libs $LIBS"
12799:
1.150 moko 12800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12801: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12802: if ${lt_cv_dlopen_self+:} false; then :
12803: $as_echo_n "(cached) " >&6
1.128 moko 12804: else
12805: if test "$cross_compiling" = yes; then :
12806: lt_cv_dlopen_self=cross
12807: else
12808: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12809: lt_status=$lt_dlunknown
12810: cat > conftest.$ac_ext <<_LT_EOF
12811: #line $LINENO "configure"
12812: #include "confdefs.h"
12813:
12814: #if HAVE_DLFCN_H
12815: #include <dlfcn.h>
12816: #endif
12817:
12818: #include <stdio.h>
12819:
12820: #ifdef RTLD_GLOBAL
12821: # define LT_DLGLOBAL RTLD_GLOBAL
12822: #else
12823: # ifdef DL_GLOBAL
12824: # define LT_DLGLOBAL DL_GLOBAL
12825: # else
12826: # define LT_DLGLOBAL 0
12827: # endif
12828: #endif
12829:
12830: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12831: find out it does not work in some platform. */
12832: #ifndef LT_DLLAZY_OR_NOW
12833: # ifdef RTLD_LAZY
12834: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12835: # else
12836: # ifdef DL_LAZY
12837: # define LT_DLLAZY_OR_NOW DL_LAZY
12838: # else
12839: # ifdef RTLD_NOW
12840: # define LT_DLLAZY_OR_NOW RTLD_NOW
12841: # else
12842: # ifdef DL_NOW
12843: # define LT_DLLAZY_OR_NOW DL_NOW
12844: # else
12845: # define LT_DLLAZY_OR_NOW 0
12846: # endif
12847: # endif
12848: # endif
12849: # endif
12850: #endif
12851:
12852: /* When -fvisbility=hidden is used, assume the code has been annotated
12853: correspondingly for the symbols needed. */
12854: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12855: int fnord () __attribute__((visibility("default")));
12856: #endif
12857:
12858: int fnord () { return 42; }
12859: int main ()
12860: {
12861: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12862: int status = $lt_dlunknown;
12863:
12864: if (self)
12865: {
12866: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12867: else
12868: {
12869: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12870: else puts (dlerror ());
12871: }
12872: /* dlclose (self); */
12873: }
12874: else
12875: puts (dlerror ());
12876:
12877: return status;
12878: }
12879: _LT_EOF
1.150 moko 12880: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12881: (eval $ac_link) 2>&5
12882: ac_status=$?
1.150 moko 12883: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12885: (./conftest; exit; ) >&5 2>/dev/null
12886: lt_status=$?
12887: case x$lt_status in
12888: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12889: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12890: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12891: esac
12892: else :
12893: # compilation failed
12894: lt_cv_dlopen_self=no
12895: fi
12896: fi
12897: rm -fr conftest*
12898:
12899:
12900: fi
1.150 moko 12901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12902: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12903:
12904: if test "x$lt_cv_dlopen_self" = xyes; then
12905: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12907: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12908: if ${lt_cv_dlopen_self_static+:} false; then :
12909: $as_echo_n "(cached) " >&6
1.128 moko 12910: else
12911: if test "$cross_compiling" = yes; then :
12912: lt_cv_dlopen_self_static=cross
12913: else
12914: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12915: lt_status=$lt_dlunknown
12916: cat > conftest.$ac_ext <<_LT_EOF
12917: #line $LINENO "configure"
12918: #include "confdefs.h"
12919:
12920: #if HAVE_DLFCN_H
12921: #include <dlfcn.h>
12922: #endif
12923:
12924: #include <stdio.h>
12925:
12926: #ifdef RTLD_GLOBAL
12927: # define LT_DLGLOBAL RTLD_GLOBAL
12928: #else
12929: # ifdef DL_GLOBAL
12930: # define LT_DLGLOBAL DL_GLOBAL
12931: # else
12932: # define LT_DLGLOBAL 0
12933: # endif
12934: #endif
12935:
12936: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12937: find out it does not work in some platform. */
12938: #ifndef LT_DLLAZY_OR_NOW
12939: # ifdef RTLD_LAZY
12940: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12941: # else
12942: # ifdef DL_LAZY
12943: # define LT_DLLAZY_OR_NOW DL_LAZY
12944: # else
12945: # ifdef RTLD_NOW
12946: # define LT_DLLAZY_OR_NOW RTLD_NOW
12947: # else
12948: # ifdef DL_NOW
12949: # define LT_DLLAZY_OR_NOW DL_NOW
12950: # else
12951: # define LT_DLLAZY_OR_NOW 0
12952: # endif
12953: # endif
12954: # endif
12955: # endif
12956: #endif
12957:
12958: /* When -fvisbility=hidden is used, assume the code has been annotated
12959: correspondingly for the symbols needed. */
12960: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12961: int fnord () __attribute__((visibility("default")));
12962: #endif
12963:
12964: int fnord () { return 42; }
12965: int main ()
12966: {
12967: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12968: int status = $lt_dlunknown;
12969:
12970: if (self)
12971: {
12972: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12973: else
12974: {
12975: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12976: else puts (dlerror ());
12977: }
12978: /* dlclose (self); */
12979: }
12980: else
12981: puts (dlerror ());
12982:
12983: return status;
12984: }
12985: _LT_EOF
1.150 moko 12986: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12987: (eval $ac_link) 2>&5
12988: ac_status=$?
1.150 moko 12989: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12990: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12991: (./conftest; exit; ) >&5 2>/dev/null
12992: lt_status=$?
12993: case x$lt_status in
12994: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12995: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12996: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12997: esac
12998: else :
12999: # compilation failed
13000: lt_cv_dlopen_self_static=no
13001: fi
13002: fi
13003: rm -fr conftest*
13004:
13005:
13006: fi
1.150 moko 13007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13008: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 13009: fi
13010:
13011: CPPFLAGS="$save_CPPFLAGS"
13012: LDFLAGS="$save_LDFLAGS"
13013: LIBS="$save_LIBS"
13014: ;;
13015: esac
13016:
13017: case $lt_cv_dlopen_self in
13018: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13019: *) enable_dlopen_self=unknown ;;
13020: esac
13021:
13022: case $lt_cv_dlopen_self_static in
13023: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13024: *) enable_dlopen_self_static=unknown ;;
13025: esac
13026: fi
13027:
13028:
13029:
13030:
13031:
13032:
13033:
13034:
13035:
13036:
13037:
13038:
13039:
13040:
13041:
13042:
13043:
13044: striplib=
13045: old_striplib=
1.150 moko 13046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13047: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 13048: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13049: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13050: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 13051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052: $as_echo "yes" >&6; }
1.128 moko 13053: else
13054: # FIXME - insert some real tests, host_os isn't really good enough
13055: case $host_os in
13056: darwin*)
13057: if test -n "$STRIP" ; then
13058: striplib="$STRIP -x"
13059: old_striplib="$STRIP -S"
1.150 moko 13060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13061: $as_echo "yes" >&6; }
1.128 moko 13062: else
1.150 moko 13063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064: $as_echo "no" >&6; }
1.128 moko 13065: fi
13066: ;;
13067: *)
1.150 moko 13068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069: $as_echo "no" >&6; }
1.128 moko 13070: ;;
13071: esac
13072: fi
13073:
13074:
13075:
13076:
13077:
13078:
13079:
13080:
13081:
13082:
13083:
13084:
13085: # Report which library types will actually be built
1.150 moko 13086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13087: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13089: $as_echo "$can_build_shared" >&6; }
1.128 moko 13090:
1.150 moko 13091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13092: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 13093: test "$can_build_shared" = "no" && enable_shared=no
13094:
13095: # On AIX, shared libraries and static libraries use the same namespace, and
13096: # are all built from PIC.
13097: case $host_os in
13098: aix3*)
13099: test "$enable_shared" = yes && enable_static=no
13100: if test -n "$RANLIB"; then
13101: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13102: postinstall_cmds='$RANLIB $lib'
13103: fi
13104: ;;
13105:
13106: aix[4-9]*)
13107: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13108: test "$enable_shared" = yes && enable_static=no
13109: fi
13110: ;;
13111: esac
1.150 moko 13112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13113: $as_echo "$enable_shared" >&6; }
1.128 moko 13114:
1.150 moko 13115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13116: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 13117: # Make sure either enable_shared or enable_static is yes.
13118: test "$enable_shared" = yes || enable_static=yes
1.150 moko 13119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13120: $as_echo "$enable_static" >&6; }
1.128 moko 13121:
13122:
13123:
13124:
13125: fi
13126: ac_ext=c
13127: ac_cpp='$CPP $CPPFLAGS'
13128: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13129: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13130: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13131:
13132: CC="$lt_save_CC"
13133:
13134: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13135: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13136: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 13137: ac_ext=cpp
1.128 moko 13138: ac_cpp='$CXXCPP $CPPFLAGS'
13139: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 13142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13143: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 13144: if test -z "$CXXCPP"; then
1.150 moko 13145: if ${ac_cv_prog_CXXCPP+:} false; then :
13146: $as_echo_n "(cached) " >&6
1.128 moko 13147: else
13148: # Double quotes because CXXCPP needs to be expanded
13149: for CXXCPP in "$CXX -E" "/lib/cpp"
13150: do
13151: ac_preproc_ok=false
13152: for ac_cxx_preproc_warn_flag in '' yes
13153: do
13154: # Use a header file that comes with gcc, so configuring glibc
13155: # with a fresh cross-compiler works.
13156: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13157: # <limits.h> exists even on freestanding compilers.
13158: # On the NeXT, cc -E runs the code through the compiler's parser,
13159: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13160: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13161: /* end confdefs.h. */
13162: #ifdef __STDC__
13163: # include <limits.h>
13164: #else
13165: # include <assert.h>
13166: #endif
13167: Syntax error
13168: _ACEOF
1.150 moko 13169: if ac_fn_cxx_try_cpp "$LINENO"; then :
13170:
1.128 moko 13171: else
13172: # Broken: fails on valid input.
13173: continue
13174: fi
1.150 moko 13175: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13176:
1.150 moko 13177: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13178: # can be detected and how.
1.150 moko 13179: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13180: /* end confdefs.h. */
13181: #include <ac_nonexistent.h>
13182: _ACEOF
1.150 moko 13183: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13184: # Broken: success on invalid input.
13185: continue
13186: else
13187: # Passes both tests.
13188: ac_preproc_ok=:
13189: break
13190: fi
1.150 moko 13191: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13192:
13193: done
13194: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13195: rm -f conftest.i conftest.err conftest.$ac_ext
13196: if $ac_preproc_ok; then :
1.128 moko 13197: break
13198: fi
13199:
13200: done
13201: ac_cv_prog_CXXCPP=$CXXCPP
13202:
13203: fi
13204: CXXCPP=$ac_cv_prog_CXXCPP
13205: else
13206: ac_cv_prog_CXXCPP=$CXXCPP
13207: fi
1.150 moko 13208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13209: $as_echo "$CXXCPP" >&6; }
1.128 moko 13210: ac_preproc_ok=false
13211: for ac_cxx_preproc_warn_flag in '' yes
13212: do
13213: # Use a header file that comes with gcc, so configuring glibc
13214: # with a fresh cross-compiler works.
13215: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13216: # <limits.h> exists even on freestanding compilers.
13217: # On the NeXT, cc -E runs the code through the compiler's parser,
13218: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13219: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13220: /* end confdefs.h. */
13221: #ifdef __STDC__
13222: # include <limits.h>
13223: #else
13224: # include <assert.h>
13225: #endif
13226: Syntax error
13227: _ACEOF
1.150 moko 13228: if ac_fn_cxx_try_cpp "$LINENO"; then :
13229:
1.128 moko 13230: else
13231: # Broken: fails on valid input.
13232: continue
13233: fi
1.150 moko 13234: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13235:
1.150 moko 13236: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13237: # can be detected and how.
1.150 moko 13238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13239: /* end confdefs.h. */
13240: #include <ac_nonexistent.h>
13241: _ACEOF
1.150 moko 13242: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13243: # Broken: success on invalid input.
13244: continue
13245: else
13246: # Passes both tests.
13247: ac_preproc_ok=:
13248: break
13249: fi
1.150 moko 13250: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13251:
13252: done
13253: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13254: rm -f conftest.i conftest.err conftest.$ac_ext
13255: if $ac_preproc_ok; then :
13256:
1.128 moko 13257: else
1.150 moko 13258: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13259: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13260: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13261: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 13262: fi
13263:
13264: ac_ext=c
13265: ac_cpp='$CPP $CPPFLAGS'
13266: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13267: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13268: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13269:
13270: else
13271: _lt_caught_CXX_error=yes
13272: fi
13273:
1.150 moko 13274: ac_ext=cpp
1.128 moko 13275: ac_cpp='$CXXCPP $CPPFLAGS'
13276: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13279:
13280: archive_cmds_need_lc_CXX=no
13281: allow_undefined_flag_CXX=
13282: always_export_symbols_CXX=no
13283: archive_expsym_cmds_CXX=
13284: compiler_needs_object_CXX=no
13285: export_dynamic_flag_spec_CXX=
13286: hardcode_direct_CXX=no
13287: hardcode_direct_absolute_CXX=no
13288: hardcode_libdir_flag_spec_CXX=
13289: hardcode_libdir_separator_CXX=
13290: hardcode_minus_L_CXX=no
13291: hardcode_shlibpath_var_CXX=unsupported
13292: hardcode_automatic_CXX=no
13293: inherit_rpath_CXX=no
13294: module_cmds_CXX=
13295: module_expsym_cmds_CXX=
13296: link_all_deplibs_CXX=unknown
13297: old_archive_cmds_CXX=$old_archive_cmds
13298: reload_flag_CXX=$reload_flag
13299: reload_cmds_CXX=$reload_cmds
13300: no_undefined_flag_CXX=
13301: whole_archive_flag_spec_CXX=
13302: enable_shared_with_static_runtimes_CXX=no
13303:
13304: # Source file extension for C++ test sources.
13305: ac_ext=cpp
13306:
13307: # Object file extension for compiled C++ test sources.
13308: objext=o
13309: objext_CXX=$objext
13310:
13311: # No sense in running all these tests if we already determined that
13312: # the CXX compiler isn't working. Some variables (like enable_shared)
13313: # are currently assumed to apply to all compilers on this platform,
13314: # and will be corrupted by setting them based on a non-working compiler.
13315: if test "$_lt_caught_CXX_error" != yes; then
13316: # Code to be used in simple compile tests
13317: lt_simple_compile_test_code="int some_variable = 0;"
13318:
13319: # Code to be used in simple link tests
13320: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13321:
13322: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13323:
13324:
13325:
13326:
13327:
13328:
13329: # If no C compiler was specified, use CC.
13330: LTCC=${LTCC-"$CC"}
13331:
13332: # If no C compiler flags were specified, use CFLAGS.
13333: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13334:
13335: # Allow CC to be a program name with arguments.
13336: compiler=$CC
13337:
13338:
13339: # save warnings/boilerplate of simple test code
13340: ac_outfile=conftest.$ac_objext
13341: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13342: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13343: _lt_compiler_boilerplate=`cat conftest.err`
13344: $RM conftest*
13345:
13346: ac_outfile=conftest.$ac_objext
13347: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13348: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13349: _lt_linker_boilerplate=`cat conftest.err`
13350: $RM -r conftest*
13351:
13352:
13353: # Allow CC to be a program name with arguments.
13354: lt_save_CC=$CC
13355: lt_save_CFLAGS=$CFLAGS
13356: lt_save_LD=$LD
13357: lt_save_GCC=$GCC
13358: GCC=$GXX
13359: lt_save_with_gnu_ld=$with_gnu_ld
13360: lt_save_path_LD=$lt_cv_path_LD
13361: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13362: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13363: else
13364: $as_unset lt_cv_prog_gnu_ld
13365: fi
13366: if test -n "${lt_cv_path_LDCXX+set}"; then
13367: lt_cv_path_LD=$lt_cv_path_LDCXX
13368: else
13369: $as_unset lt_cv_path_LD
13370: fi
13371: test -z "${LDCXX+set}" || LD=$LDCXX
13372: CC=${CXX-"c++"}
13373: CFLAGS=$CXXFLAGS
13374: compiler=$CC
13375: compiler_CXX=$CC
13376: for cc_temp in $compiler""; do
13377: case $cc_temp in
13378: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13379: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13380: \-*) ;;
13381: *) break;;
13382: esac
13383: done
13384: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13385:
13386:
13387: if test -n "$compiler"; then
13388: # We don't want -fno-exception when compiling C++ code, so set the
13389: # no_builtin_flag separately
13390: if test "$GXX" = yes; then
13391: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13392: else
13393: lt_prog_compiler_no_builtin_flag_CXX=
13394: fi
13395:
13396: if test "$GXX" = yes; then
13397: # Set up default GNU C++ configuration
13398:
13399:
13400:
1.150 moko 13401: # Check whether --with-gnu-ld was given.
13402: if test "${with_gnu_ld+set}" = set; then :
13403: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13404: else
13405: with_gnu_ld=no
1.150 moko 13406: fi
13407:
1.128 moko 13408: ac_prog=ld
13409: if test "$GCC" = yes; then
13410: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13412: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13413: case $host in
13414: *-*-mingw*)
13415: # gcc leaves a trailing carriage return which upsets mingw
13416: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13417: *)
13418: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13419: esac
13420: case $ac_prog in
13421: # Accept absolute paths.
13422: [\\/]* | ?:[\\/]*)
13423: re_direlt='/[^/][^/]*/\.\./'
13424: # Canonicalize the pathname of ld
13425: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13426: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13427: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13428: done
13429: test -z "$LD" && LD="$ac_prog"
13430: ;;
13431: "")
13432: # If it fails, then pretend we aren't using GCC.
13433: ac_prog=ld
13434: ;;
13435: *)
13436: # If it is relative, then search for the first ld in PATH.
13437: with_gnu_ld=unknown
13438: ;;
13439: esac
13440: elif test "$with_gnu_ld" = yes; then
1.150 moko 13441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13442: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13443: else
1.150 moko 13444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13445: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13446: fi
1.150 moko 13447: if ${lt_cv_path_LD+:} false; then :
13448: $as_echo_n "(cached) " >&6
1.128 moko 13449: else
13450: if test -z "$LD"; then
13451: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13452: for ac_dir in $PATH; do
13453: IFS="$lt_save_ifs"
13454: test -z "$ac_dir" && ac_dir=.
13455: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13456: lt_cv_path_LD="$ac_dir/$ac_prog"
13457: # Check to see if the program is GNU ld. I'd rather use --version,
13458: # but apparently some variants of GNU ld only accept -v.
13459: # Break only if it was the GNU/non-GNU ld that we prefer.
13460: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13461: *GNU* | *'with BFD'*)
13462: test "$with_gnu_ld" != no && break
13463: ;;
13464: *)
13465: test "$with_gnu_ld" != yes && break
13466: ;;
13467: esac
13468: fi
13469: done
13470: IFS="$lt_save_ifs"
13471: else
13472: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13473: fi
13474: fi
13475:
13476: LD="$lt_cv_path_LD"
13477: if test -n "$LD"; then
1.150 moko 13478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13479: $as_echo "$LD" >&6; }
1.128 moko 13480: else
1.150 moko 13481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482: $as_echo "no" >&6; }
1.128 moko 13483: fi
1.150 moko 13484: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13486: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13487: if ${lt_cv_prog_gnu_ld+:} false; then :
13488: $as_echo_n "(cached) " >&6
1.128 moko 13489: else
13490: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13491: case `$LD -v 2>&1 </dev/null` in
13492: *GNU* | *'with BFD'*)
13493: lt_cv_prog_gnu_ld=yes
13494: ;;
13495: *)
13496: lt_cv_prog_gnu_ld=no
13497: ;;
13498: esac
13499: fi
1.150 moko 13500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13501: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13502: with_gnu_ld=$lt_cv_prog_gnu_ld
13503:
13504:
13505:
13506:
13507:
13508:
13509:
13510: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13511: # archiving commands below assume that GNU ld is being used.
13512: if test "$with_gnu_ld" = yes; then
13513: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514: 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'
13515:
13516: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13517: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13518:
13519: # If archive_cmds runs LD, not CC, wlarc should be empty
13520: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13521: # investigate it a little bit more. (MM)
13522: wlarc='${wl}'
13523:
13524: # ancient GNU ld didn't support --whole-archive et. al.
13525: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13526: $GREP 'no-whole-archive' > /dev/null; then
13527: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13528: else
13529: whole_archive_flag_spec_CXX=
13530: fi
13531: else
13532: with_gnu_ld=no
13533: wlarc=
13534:
13535: # A generic and very simple default shared library creation
13536: # command for GNU C++ for the case where it uses the native
13537: # linker, instead of GNU ld. If possible, this setting should
13538: # overridden to take advantage of the native linker features on
13539: # the platform it is being used on.
13540: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13541: fi
13542:
13543: # Commands to make compiler produce verbose output that lists
13544: # what "hidden" libraries, object files and flags are used when
13545: # linking a shared library.
13546: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13547:
13548: else
13549: GXX=no
13550: with_gnu_ld=no
13551: wlarc=
13552: fi
13553:
13554: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13556: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13557: ld_shlibs_CXX=yes
13558: case $host_os in
13559: aix3*)
13560: # FIXME: insert proper C++ library support
13561: ld_shlibs_CXX=no
13562: ;;
13563: aix[4-9]*)
13564: if test "$host_cpu" = ia64; then
13565: # On IA64, the linker does run time linking by default, so we don't
13566: # have to do anything special.
13567: aix_use_runtimelinking=no
13568: exp_sym_flag='-Bexport'
13569: no_entry_flag=""
13570: else
13571: aix_use_runtimelinking=no
13572:
13573: # Test if we are trying to use run time linking or normal
13574: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13575: # need to do runtime linking.
13576: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13577: for ld_flag in $LDFLAGS; do
13578: case $ld_flag in
13579: *-brtl*)
13580: aix_use_runtimelinking=yes
13581: break
13582: ;;
13583: esac
13584: done
13585: ;;
13586: esac
13587:
13588: exp_sym_flag='-bexport'
13589: no_entry_flag='-bnoentry'
13590: fi
13591:
13592: # When large executables or shared objects are built, AIX ld can
13593: # have problems creating the table of contents. If linking a library
13594: # or program results in "error TOC overflow" add -mminimal-toc to
13595: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13596: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13597:
13598: archive_cmds_CXX=''
13599: hardcode_direct_CXX=yes
13600: hardcode_direct_absolute_CXX=yes
13601: hardcode_libdir_separator_CXX=':'
13602: link_all_deplibs_CXX=yes
13603: file_list_spec_CXX='${wl}-f,'
13604:
13605: if test "$GXX" = yes; then
13606: case $host_os in aix4.[012]|aix4.[012].*)
13607: # We only want to do this on AIX 4.2 and lower, the check
13608: # below for broken collect2 doesn't work under 4.3+
13609: collect2name=`${CC} -print-prog-name=collect2`
13610: if test -f "$collect2name" &&
13611: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13612: then
13613: # We have reworked collect2
13614: :
13615: else
13616: # We have old collect2
13617: hardcode_direct_CXX=unsupported
13618: # It fails to find uninstalled libraries when the uninstalled
13619: # path is not listed in the libpath. Setting hardcode_minus_L
13620: # to unsupported forces relinking
13621: hardcode_minus_L_CXX=yes
13622: hardcode_libdir_flag_spec_CXX='-L$libdir'
13623: hardcode_libdir_separator_CXX=
13624: fi
13625: esac
13626: shared_flag='-shared'
13627: if test "$aix_use_runtimelinking" = yes; then
13628: shared_flag="$shared_flag "'${wl}-G'
13629: fi
13630: else
13631: # not using gcc
13632: if test "$host_cpu" = ia64; then
13633: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13634: # chokes on -Wl,-G. The following line is correct:
13635: shared_flag='-G'
13636: else
13637: if test "$aix_use_runtimelinking" = yes; then
13638: shared_flag='${wl}-G'
13639: else
13640: shared_flag='${wl}-bM:SRE'
13641: fi
13642: fi
13643: fi
13644:
13645: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13646: # It seems that -bexpall does not export symbols beginning with
13647: # underscore (_), so it is better to generate a list of symbols to
13648: # export.
13649: always_export_symbols_CXX=yes
13650: if test "$aix_use_runtimelinking" = yes; then
13651: # Warning - without using the other runtime loading flags (-brtl),
13652: # -berok will link without error, but may produce a broken library.
13653: allow_undefined_flag_CXX='-berok'
13654: # Determine the default libpath from the value encoded in an empty
13655: # executable.
13656: if test "${lt_cv_aix_libpath+set}" = set; then
13657: aix_libpath=$lt_cv_aix_libpath
13658: else
1.150 moko 13659: if ${lt_cv_aix_libpath__CXX+:} false; then :
13660: $as_echo_n "(cached) " >&6
1.128 moko 13661: else
1.150 moko 13662: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13663: /* end confdefs.h. */
13664:
13665: int
13666: main ()
13667: {
13668:
13669: ;
13670: return 0;
13671: }
13672: _ACEOF
1.150 moko 13673: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13674:
13675: lt_aix_libpath_sed='
13676: /Import File Strings/,/^$/ {
13677: /^0/ {
13678: s/^0 *\([^ ]*\) *$/\1/
13679: p
13680: }
13681: }'
13682: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13683: # Check for a 64-bit object if we didn't find anything.
13684: if test -z "$lt_cv_aix_libpath__CXX"; then
13685: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13686: fi
13687: fi
1.150 moko 13688: rm -f core conftest.err conftest.$ac_objext \
13689: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13690: if test -z "$lt_cv_aix_libpath__CXX"; then
13691: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13692: fi
13693:
13694: fi
13695:
13696: aix_libpath=$lt_cv_aix_libpath__CXX
13697: fi
13698:
13699: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13700:
13701: 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"
13702: else
13703: if test "$host_cpu" = ia64; then
13704: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13705: allow_undefined_flag_CXX="-z nodefs"
13706: 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"
13707: else
13708: # Determine the default libpath from the value encoded in an
13709: # empty executable.
13710: if test "${lt_cv_aix_libpath+set}" = set; then
13711: aix_libpath=$lt_cv_aix_libpath
13712: else
1.150 moko 13713: if ${lt_cv_aix_libpath__CXX+:} false; then :
13714: $as_echo_n "(cached) " >&6
1.128 moko 13715: else
1.150 moko 13716: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13717: /* end confdefs.h. */
13718:
13719: int
13720: main ()
13721: {
13722:
13723: ;
13724: return 0;
13725: }
13726: _ACEOF
1.150 moko 13727: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13728:
13729: lt_aix_libpath_sed='
13730: /Import File Strings/,/^$/ {
13731: /^0/ {
13732: s/^0 *\([^ ]*\) *$/\1/
13733: p
13734: }
13735: }'
13736: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13737: # Check for a 64-bit object if we didn't find anything.
13738: if test -z "$lt_cv_aix_libpath__CXX"; then
13739: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13740: fi
13741: fi
1.150 moko 13742: rm -f core conftest.err conftest.$ac_objext \
13743: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13744: if test -z "$lt_cv_aix_libpath__CXX"; then
13745: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13746: fi
13747:
13748: fi
13749:
13750: aix_libpath=$lt_cv_aix_libpath__CXX
13751: fi
13752:
13753: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13754: # Warning - without using the other run time loading flags,
13755: # -berok will link without error, but may produce a broken library.
13756: no_undefined_flag_CXX=' ${wl}-bernotok'
13757: allow_undefined_flag_CXX=' ${wl}-berok'
13758: if test "$with_gnu_ld" = yes; then
13759: # We only use this code for GNU lds that support --whole-archive.
13760: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13761: else
13762: # Exported symbols can be pulled into shared objects from archives
13763: whole_archive_flag_spec_CXX='$convenience'
13764: fi
13765: archive_cmds_need_lc_CXX=yes
13766: # This is similar to how AIX traditionally builds its shared
13767: # libraries.
13768: 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'
13769: fi
13770: fi
13771: ;;
13772:
13773: beos*)
13774: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13775: allow_undefined_flag_CXX=unsupported
13776: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13777: # support --undefined. This deserves some investigation. FIXME
13778: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13779: else
13780: ld_shlibs_CXX=no
13781: fi
13782: ;;
13783:
13784: chorus*)
13785: case $cc_basename in
13786: *)
13787: # FIXME: insert proper C++ library support
13788: ld_shlibs_CXX=no
13789: ;;
13790: esac
13791: ;;
13792:
13793: cygwin* | mingw* | pw32* | cegcc*)
13794: case $GXX,$cc_basename in
13795: ,cl* | no,cl*)
13796: # Native MSVC
13797: # hardcode_libdir_flag_spec is actually meaningless, as there is
13798: # no search path for DLLs.
13799: hardcode_libdir_flag_spec_CXX=' '
13800: allow_undefined_flag_CXX=unsupported
13801: always_export_symbols_CXX=yes
13802: file_list_spec_CXX='@'
13803: # Tell ltmain to make .lib files, not .a files.
13804: libext=lib
13805: # Tell ltmain to make .dll files, not .so files.
13806: shrext_cmds=".dll"
13807: # FIXME: Setting linknames here is a bad hack.
13808: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13809: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13810: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13811: else
13812: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13813: fi~
13814: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13815: linknames='
13816: # The linker will not automatically build a static lib if we build a DLL.
13817: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13818: enable_shared_with_static_runtimes_CXX=yes
13819: # Don't use ranlib
13820: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13821: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13822: lt_tool_outputfile="@TOOL_OUTPUT@"~
13823: case $lt_outputfile in
13824: *.exe|*.EXE) ;;
13825: *)
13826: lt_outputfile="$lt_outputfile.exe"
13827: lt_tool_outputfile="$lt_tool_outputfile.exe"
13828: ;;
13829: esac~
13830: func_to_tool_file "$lt_outputfile"~
13831: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13832: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13833: $RM "$lt_outputfile.manifest";
13834: fi'
13835: ;;
13836: *)
13837: # g++
13838: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13839: # as there is no search path for DLLs.
13840: hardcode_libdir_flag_spec_CXX='-L$libdir'
13841: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13842: allow_undefined_flag_CXX=unsupported
13843: always_export_symbols_CXX=no
13844: enable_shared_with_static_runtimes_CXX=yes
13845:
13846: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13847: 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'
13848: # If the export-symbols file already is a .def file (1st line
13849: # is EXPORTS), use it as is; otherwise, prepend...
13850: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13851: cp $export_symbols $output_objdir/$soname.def;
13852: else
13853: echo EXPORTS > $output_objdir/$soname.def;
13854: cat $export_symbols >> $output_objdir/$soname.def;
13855: fi~
13856: $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'
13857: else
13858: ld_shlibs_CXX=no
13859: fi
13860: ;;
13861: esac
13862: ;;
13863: darwin* | rhapsody*)
13864:
13865:
13866: archive_cmds_need_lc_CXX=no
13867: hardcode_direct_CXX=no
13868: hardcode_automatic_CXX=yes
13869: hardcode_shlibpath_var_CXX=unsupported
13870: if test "$lt_cv_ld_force_load" = "yes"; then
13871: 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\"`'
13872:
13873: else
13874: whole_archive_flag_spec_CXX=''
13875: fi
13876: link_all_deplibs_CXX=yes
13877: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13878: case $cc_basename in
13879: ifort*) _lt_dar_can_shared=yes ;;
13880: *) _lt_dar_can_shared=$GCC ;;
13881: esac
13882: if test "$_lt_dar_can_shared" = "yes"; then
13883: output_verbose_link_cmd=func_echo_all
13884: 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}"
13885: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13886: 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}"
13887: 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}"
13888: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13889: 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}"
13890: 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}"
13891: fi
13892:
13893: else
13894: ld_shlibs_CXX=no
13895: fi
13896:
13897: ;;
13898:
13899: dgux*)
13900: case $cc_basename in
13901: ec++*)
13902: # FIXME: insert proper C++ library support
13903: ld_shlibs_CXX=no
13904: ;;
13905: ghcx*)
13906: # Green Hills C++ Compiler
13907: # FIXME: insert proper C++ library support
13908: ld_shlibs_CXX=no
13909: ;;
13910: *)
13911: # FIXME: insert proper C++ library support
13912: ld_shlibs_CXX=no
13913: ;;
13914: esac
13915: ;;
13916:
13917: freebsd2.*)
13918: # C++ shared libraries reported to be fairly broken before
13919: # switch to ELF
13920: ld_shlibs_CXX=no
13921: ;;
13922:
13923: freebsd-elf*)
13924: archive_cmds_need_lc_CXX=no
13925: ;;
13926:
13927: freebsd* | dragonfly*)
13928: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13929: # conventions
13930: ld_shlibs_CXX=yes
13931: ;;
13932:
13933: gnu*)
13934: ;;
13935:
13936: haiku*)
13937: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13938: link_all_deplibs_CXX=yes
13939: ;;
13940:
13941: hpux9*)
13942: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13943: hardcode_libdir_separator_CXX=:
13944: export_dynamic_flag_spec_CXX='${wl}-E'
13945: hardcode_direct_CXX=yes
13946: hardcode_minus_L_CXX=yes # Not in the search PATH,
13947: # but as the default
13948: # location of the library.
13949:
13950: case $cc_basename in
13951: CC*)
13952: # FIXME: insert proper C++ library support
13953: ld_shlibs_CXX=no
13954: ;;
13955: aCC*)
13956: 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'
13957: # Commands to make compiler produce verbose output that lists
13958: # what "hidden" libraries, object files and flags are used when
13959: # linking a shared library.
13960: #
13961: # There doesn't appear to be a way to prevent this compiler from
13962: # explicitly linking system object files so we need to strip them
13963: # from the output so that they don't get included in the library
13964: # dependencies.
13965: 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"'
13966: ;;
13967: *)
13968: if test "$GXX" = yes; then
13969: 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'
13970: else
13971: # FIXME: insert proper C++ library support
13972: ld_shlibs_CXX=no
13973: fi
13974: ;;
13975: esac
13976: ;;
13977:
13978: hpux10*|hpux11*)
13979: if test $with_gnu_ld = no; then
13980: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13981: hardcode_libdir_separator_CXX=:
13982:
13983: case $host_cpu in
13984: hppa*64*|ia64*)
13985: ;;
13986: *)
13987: export_dynamic_flag_spec_CXX='${wl}-E'
13988: ;;
13989: esac
13990: fi
13991: case $host_cpu in
13992: hppa*64*|ia64*)
13993: hardcode_direct_CXX=no
13994: hardcode_shlibpath_var_CXX=no
13995: ;;
13996: *)
13997: hardcode_direct_CXX=yes
13998: hardcode_direct_absolute_CXX=yes
13999: hardcode_minus_L_CXX=yes # Not in the search PATH,
14000: # but as the default
14001: # location of the library.
14002: ;;
14003: esac
14004:
14005: case $cc_basename in
14006: CC*)
14007: # FIXME: insert proper C++ library support
14008: ld_shlibs_CXX=no
14009: ;;
14010: aCC*)
14011: case $host_cpu in
14012: hppa*64*)
14013: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14014: ;;
14015: ia64*)
14016: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14017: ;;
14018: *)
14019: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14020: ;;
14021: esac
14022: # Commands to make compiler produce verbose output that lists
14023: # what "hidden" libraries, object files and flags are used when
14024: # linking a shared library.
14025: #
14026: # There doesn't appear to be a way to prevent this compiler from
14027: # explicitly linking system object files so we need to strip them
14028: # from the output so that they don't get included in the library
14029: # dependencies.
14030: 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"'
14031: ;;
14032: *)
14033: if test "$GXX" = yes; then
14034: if test $with_gnu_ld = no; then
14035: case $host_cpu in
14036: hppa*64*)
14037: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14038: ;;
14039: ia64*)
14040: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041: ;;
14042: *)
14043: 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'
14044: ;;
14045: esac
14046: fi
14047: else
14048: # FIXME: insert proper C++ library support
14049: ld_shlibs_CXX=no
14050: fi
14051: ;;
14052: esac
14053: ;;
14054:
14055: interix[3-9]*)
14056: hardcode_direct_CXX=no
14057: hardcode_shlibpath_var_CXX=no
14058: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14059: export_dynamic_flag_spec_CXX='${wl}-E'
14060: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14061: # Instead, shared libraries are loaded at an image base (0x10000000 by
14062: # default) and relocated if they conflict, which is a slow very memory
14063: # consuming and fragmenting process. To avoid this, we pick a random,
14064: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14065: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14066: 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'
14067: 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'
14068: ;;
14069: irix5* | irix6*)
14070: case $cc_basename in
14071: CC*)
14072: # SGI C++
14073: 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'
14074:
14075: # Archives containing C++ object files must be created using
14076: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14077: # necessary to make sure instantiated templates are included
14078: # in the archive.
14079: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14080: ;;
14081: *)
14082: if test "$GXX" = yes; then
14083: if test "$with_gnu_ld" = no; then
14084: 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'
14085: else
14086: 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'
14087: fi
14088: fi
14089: link_all_deplibs_CXX=yes
14090: ;;
14091: esac
14092: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14093: hardcode_libdir_separator_CXX=:
14094: inherit_rpath_CXX=yes
14095: ;;
14096:
14097: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14098: case $cc_basename in
14099: KCC*)
14100: # Kuck and Associates, Inc. (KAI) C++ Compiler
14101:
14102: # KCC will only create a shared library if the output file
14103: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14104: # to its proper name (with version) after linking.
14105: 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'
14106: 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'
14107: # Commands to make compiler produce verbose output that lists
14108: # what "hidden" libraries, object files and flags are used when
14109: # linking a shared library.
14110: #
14111: # There doesn't appear to be a way to prevent this compiler from
14112: # explicitly linking system object files so we need to strip them
14113: # from the output so that they don't get included in the library
14114: # dependencies.
14115: 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"'
14116:
14117: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14118: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14119:
14120: # Archives containing C++ object files must be created using
14121: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14122: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14123: ;;
14124: icpc* | ecpc* )
14125: # Intel C++
14126: with_gnu_ld=yes
14127: # version 8.0 and above of icpc choke on multiply defined symbols
14128: # if we add $predep_objects and $postdep_objects, however 7.1 and
14129: # earlier do not add the objects themselves.
14130: case `$CC -V 2>&1` in
14131: *"Version 7."*)
14132: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14133: 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'
14134: ;;
14135: *) # Version 8.0 or newer
14136: tmp_idyn=
14137: case $host_cpu in
14138: ia64*) tmp_idyn=' -i_dynamic';;
14139: esac
14140: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14141: 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'
14142: ;;
14143: esac
14144: archive_cmds_need_lc_CXX=no
14145: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14146: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14147: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14148: ;;
14149: pgCC* | pgcpp*)
14150: # Portland Group C++ compiler
14151: case `$CC -V` in
14152: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14153: prelink_cmds_CXX='tpldir=Template.dir~
14154: rm -rf $tpldir~
14155: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14156: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14157: old_archive_cmds_CXX='tpldir=Template.dir~
14158: rm -rf $tpldir~
14159: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14160: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14161: $RANLIB $oldlib'
14162: archive_cmds_CXX='tpldir=Template.dir~
14163: rm -rf $tpldir~
14164: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14165: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14166: archive_expsym_cmds_CXX='tpldir=Template.dir~
14167: rm -rf $tpldir~
14168: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14169: $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'
14170: ;;
14171: *) # Version 6 and above use weak symbols
14172: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14173: 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'
14174: ;;
14175: esac
14176:
14177: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14178: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14179: 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'
14180: ;;
14181: cxx*)
14182: # Compaq C++
14183: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14184: 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'
14185:
14186: runpath_var=LD_RUN_PATH
14187: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14188: hardcode_libdir_separator_CXX=:
14189:
14190: # Commands to make compiler produce verbose output that lists
14191: # what "hidden" libraries, object files and flags are used when
14192: # linking a shared library.
14193: #
14194: # There doesn't appear to be a way to prevent this compiler from
14195: # explicitly linking system object files so we need to strip them
14196: # from the output so that they don't get included in the library
14197: # dependencies.
14198: 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'
14199: ;;
14200: xl* | mpixl* | bgxl*)
14201: # IBM XL 8.0 on PPC, with GNU ld
14202: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14203: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14204: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14205: if test "x$supports_anon_versioning" = xyes; then
14206: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14207: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14208: echo "local: *; };" >> $output_objdir/$libname.ver~
14209: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14210: fi
14211: ;;
14212: *)
14213: case `$CC -V 2>&1 | sed 5q` in
14214: *Sun\ C*)
14215: # Sun C++ 5.9
14216: no_undefined_flag_CXX=' -zdefs'
14217: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14218: 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'
14219: hardcode_libdir_flag_spec_CXX='-R$libdir'
14220: 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'
14221: compiler_needs_object_CXX=yes
14222:
14223: # Not sure whether something based on
14224: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14225: # would be better.
14226: output_verbose_link_cmd='func_echo_all'
14227:
14228: # Archives containing C++ object files must be created using
14229: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14230: # necessary to make sure instantiated templates are included
14231: # in the archive.
14232: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14233: ;;
14234: esac
14235: ;;
14236: esac
14237: ;;
14238:
14239: lynxos*)
14240: # FIXME: insert proper C++ library support
14241: ld_shlibs_CXX=no
14242: ;;
14243:
14244: m88k*)
14245: # FIXME: insert proper C++ library support
14246: ld_shlibs_CXX=no
14247: ;;
14248:
14249: mvs*)
14250: case $cc_basename in
14251: cxx*)
14252: # FIXME: insert proper C++ library support
14253: ld_shlibs_CXX=no
14254: ;;
14255: *)
14256: # FIXME: insert proper C++ library support
14257: ld_shlibs_CXX=no
14258: ;;
14259: esac
14260: ;;
14261:
14262: netbsd*)
14263: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14264: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14265: wlarc=
14266: hardcode_libdir_flag_spec_CXX='-R$libdir'
14267: hardcode_direct_CXX=yes
14268: hardcode_shlibpath_var_CXX=no
14269: fi
14270: # Workaround some broken pre-1.5 toolchains
14271: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14272: ;;
14273:
14274: *nto* | *qnx*)
14275: ld_shlibs_CXX=yes
14276: ;;
14277:
14278: openbsd2*)
14279: # C++ shared libraries are fairly broken
14280: ld_shlibs_CXX=no
14281: ;;
14282:
14283: openbsd*)
14284: if test -f /usr/libexec/ld.so; then
14285: hardcode_direct_CXX=yes
14286: hardcode_shlibpath_var_CXX=no
14287: hardcode_direct_absolute_CXX=yes
14288: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14289: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14290: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14291: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14292: export_dynamic_flag_spec_CXX='${wl}-E'
14293: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14294: fi
14295: output_verbose_link_cmd=func_echo_all
14296: else
14297: ld_shlibs_CXX=no
14298: fi
14299: ;;
14300:
14301: osf3* | osf4* | osf5*)
14302: case $cc_basename in
14303: KCC*)
14304: # Kuck and Associates, Inc. (KAI) C++ Compiler
14305:
14306: # KCC will only create a shared library if the output file
14307: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14308: # to its proper name (with version) after linking.
14309: 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'
14310:
14311: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14312: hardcode_libdir_separator_CXX=:
14313:
14314: # Archives containing C++ object files must be created using
14315: # the KAI C++ compiler.
14316: case $host in
14317: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14318: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14319: esac
14320: ;;
14321: RCC*)
14322: # Rational C++ 2.4.1
14323: # FIXME: insert proper C++ library support
14324: ld_shlibs_CXX=no
14325: ;;
14326: cxx*)
14327: case $host in
14328: osf3*)
14329: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14330: 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'
14331: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14332: ;;
14333: *)
14334: allow_undefined_flag_CXX=' -expect_unresolved \*'
14335: 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'
14336: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14337: echo "-hidden">> $lib.exp~
14338: $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~
14339: $RM $lib.exp'
14340: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14341: ;;
14342: esac
14343:
14344: hardcode_libdir_separator_CXX=:
14345:
14346: # Commands to make compiler produce verbose output that lists
14347: # what "hidden" libraries, object files and flags are used when
14348: # linking a shared library.
14349: #
14350: # There doesn't appear to be a way to prevent this compiler from
14351: # explicitly linking system object files so we need to strip them
14352: # from the output so that they don't get included in the library
14353: # dependencies.
14354: 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"'
14355: ;;
14356: *)
14357: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14358: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14359: case $host in
14360: osf3*)
14361: 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'
14362: ;;
14363: *)
14364: 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'
14365: ;;
14366: esac
14367:
14368: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14369: hardcode_libdir_separator_CXX=:
14370:
14371: # Commands to make compiler produce verbose output that lists
14372: # what "hidden" libraries, object files and flags are used when
14373: # linking a shared library.
14374: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14375:
14376: else
14377: # FIXME: insert proper C++ library support
14378: ld_shlibs_CXX=no
14379: fi
14380: ;;
14381: esac
14382: ;;
14383:
14384: psos*)
14385: # FIXME: insert proper C++ library support
14386: ld_shlibs_CXX=no
14387: ;;
14388:
14389: sunos4*)
14390: case $cc_basename in
14391: CC*)
14392: # Sun C++ 4.x
14393: # FIXME: insert proper C++ library support
14394: ld_shlibs_CXX=no
14395: ;;
14396: lcc*)
14397: # Lucid
14398: # FIXME: insert proper C++ library support
14399: ld_shlibs_CXX=no
14400: ;;
14401: *)
14402: # FIXME: insert proper C++ library support
14403: ld_shlibs_CXX=no
14404: ;;
14405: esac
14406: ;;
14407:
14408: solaris*)
14409: case $cc_basename in
14410: CC* | sunCC*)
14411: # Sun C++ 4.2, 5.x and Centerline C++
14412: archive_cmds_need_lc_CXX=yes
14413: no_undefined_flag_CXX=' -zdefs'
14414: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14415: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14416: $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'
14417:
14418: hardcode_libdir_flag_spec_CXX='-R$libdir'
14419: hardcode_shlibpath_var_CXX=no
14420: case $host_os in
14421: solaris2.[0-5] | solaris2.[0-5].*) ;;
14422: *)
14423: # The compiler driver will combine and reorder linker options,
14424: # but understands `-z linker_flag'.
14425: # Supported since Solaris 2.6 (maybe 2.5.1?)
14426: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14427: ;;
14428: esac
14429: link_all_deplibs_CXX=yes
14430:
14431: output_verbose_link_cmd='func_echo_all'
14432:
14433: # Archives containing C++ object files must be created using
14434: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14435: # necessary to make sure instantiated templates are included
14436: # in the archive.
14437: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14438: ;;
14439: gcx*)
14440: # Green Hills C++ Compiler
14441: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14442:
14443: # The C++ compiler must be used to create the archive.
14444: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14445: ;;
14446: *)
14447: # GNU C++ compiler with Solaris linker
14448: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14449: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14450: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14451: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14452: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14453: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14454:
14455: # Commands to make compiler produce verbose output that lists
14456: # what "hidden" libraries, object files and flags are used when
14457: # linking a shared library.
14458: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14459: else
14460: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14461: # platform.
14462: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14463: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14464: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14465:
14466: # Commands to make compiler produce verbose output that lists
14467: # what "hidden" libraries, object files and flags are used when
14468: # linking a shared library.
14469: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14470: fi
14471:
14472: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14473: case $host_os in
14474: solaris2.[0-5] | solaris2.[0-5].*) ;;
14475: *)
14476: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14477: ;;
14478: esac
14479: fi
14480: ;;
14481: esac
14482: ;;
14483:
14484: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14485: no_undefined_flag_CXX='${wl}-z,text'
14486: archive_cmds_need_lc_CXX=no
14487: hardcode_shlibpath_var_CXX=no
14488: runpath_var='LD_RUN_PATH'
14489:
14490: case $cc_basename in
14491: CC*)
14492: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14493: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14494: ;;
14495: *)
14496: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14497: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14498: ;;
14499: esac
14500: ;;
14501:
14502: sysv5* | sco3.2v5* | sco5v6*)
14503: # Note: We can NOT use -z defs as we might desire, because we do not
14504: # link with -lc, and that would cause any symbols used from libc to
14505: # always be unresolved, which means just about no library would
14506: # ever link correctly. If we're not using GNU ld we use -z text
14507: # though, which does catch some bad symbols but isn't as heavy-handed
14508: # as -z defs.
14509: no_undefined_flag_CXX='${wl}-z,text'
14510: allow_undefined_flag_CXX='${wl}-z,nodefs'
14511: archive_cmds_need_lc_CXX=no
14512: hardcode_shlibpath_var_CXX=no
14513: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14514: hardcode_libdir_separator_CXX=':'
14515: link_all_deplibs_CXX=yes
14516: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14517: runpath_var='LD_RUN_PATH'
14518:
14519: case $cc_basename in
14520: CC*)
14521: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14523: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14524: '"$old_archive_cmds_CXX"
14525: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14526: '"$reload_cmds_CXX"
14527: ;;
14528: *)
14529: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14530: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14531: ;;
14532: esac
14533: ;;
14534:
14535: tandem*)
14536: case $cc_basename in
14537: NCC*)
14538: # NonStop-UX NCC 3.20
14539: # FIXME: insert proper C++ library support
14540: ld_shlibs_CXX=no
14541: ;;
14542: *)
14543: # FIXME: insert proper C++ library support
14544: ld_shlibs_CXX=no
14545: ;;
14546: esac
14547: ;;
14548:
14549: vxworks*)
14550: # FIXME: insert proper C++ library support
14551: ld_shlibs_CXX=no
14552: ;;
14553:
14554: *)
14555: # FIXME: insert proper C++ library support
14556: ld_shlibs_CXX=no
14557: ;;
14558: esac
14559:
1.150 moko 14560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14561: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14562: test "$ld_shlibs_CXX" = no && can_build_shared=no
14563:
14564: GCC_CXX="$GXX"
14565: LD_CXX="$LD"
14566:
14567: ## CAVEAT EMPTOR:
14568: ## There is no encapsulation within the following macros, do not change
14569: ## the running order or otherwise move them around unless you know exactly
14570: ## what you are doing...
14571: # Dependencies to place before and after the object being linked:
14572: predep_objects_CXX=
14573: postdep_objects_CXX=
14574: predeps_CXX=
14575: postdeps_CXX=
14576: compiler_lib_search_path_CXX=
14577:
14578: cat > conftest.$ac_ext <<_LT_EOF
14579: class Foo
14580: {
14581: public:
14582: Foo (void) { a = 0; }
14583: private:
14584: int a;
14585: };
14586: _LT_EOF
14587:
14588:
14589: _lt_libdeps_save_CFLAGS=$CFLAGS
14590: case "$CC $CFLAGS " in #(
14591: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14592: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14593: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14594: esac
14595:
1.150 moko 14596: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14597: (eval $ac_compile) 2>&5
14598: ac_status=$?
1.150 moko 14599: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600: test $ac_status = 0; }; then
1.128 moko 14601: # Parse the compiler output and extract the necessary
14602: # objects, libraries and library flags.
14603:
14604: # Sentinel used to keep track of whether or not we are before
14605: # the conftest object file.
14606: pre_test_object_deps_done=no
14607:
14608: for p in `eval "$output_verbose_link_cmd"`; do
14609: case ${prev}${p} in
14610:
14611: -L* | -R* | -l*)
14612: # Some compilers place space between "-{L,R}" and the path.
14613: # Remove the space.
14614: if test $p = "-L" ||
14615: test $p = "-R"; then
14616: prev=$p
14617: continue
14618: fi
14619:
14620: # Expand the sysroot to ease extracting the directories later.
14621: if test -z "$prev"; then
14622: case $p in
14623: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14624: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14625: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14626: esac
14627: fi
14628: case $p in
14629: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14630: esac
14631: if test "$pre_test_object_deps_done" = no; then
14632: case ${prev} in
14633: -L | -R)
14634: # Internal compiler library paths should come after those
14635: # provided the user. The postdeps already come after the
14636: # user supplied libs so there is no need to process them.
14637: if test -z "$compiler_lib_search_path_CXX"; then
14638: compiler_lib_search_path_CXX="${prev}${p}"
14639: else
14640: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14641: fi
14642: ;;
14643: # The "-l" case would never come before the object being
14644: # linked, so don't bother handling this case.
14645: esac
14646: else
14647: if test -z "$postdeps_CXX"; then
14648: postdeps_CXX="${prev}${p}"
14649: else
14650: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14651: fi
14652: fi
14653: prev=
14654: ;;
14655:
14656: *.lto.$objext) ;; # Ignore GCC LTO objects
14657: *.$objext)
14658: # This assumes that the test object file only shows up
14659: # once in the compiler output.
14660: if test "$p" = "conftest.$objext"; then
14661: pre_test_object_deps_done=yes
14662: continue
14663: fi
14664:
14665: if test "$pre_test_object_deps_done" = no; then
14666: if test -z "$predep_objects_CXX"; then
14667: predep_objects_CXX="$p"
14668: else
14669: predep_objects_CXX="$predep_objects_CXX $p"
14670: fi
14671: else
14672: if test -z "$postdep_objects_CXX"; then
14673: postdep_objects_CXX="$p"
14674: else
14675: postdep_objects_CXX="$postdep_objects_CXX $p"
14676: fi
14677: fi
14678: ;;
14679:
14680: *) ;; # Ignore the rest.
14681:
14682: esac
14683: done
14684:
14685: # Clean up.
14686: rm -f a.out a.exe
14687: else
14688: echo "libtool.m4: error: problem compiling CXX test program"
14689: fi
14690:
14691: $RM -f confest.$objext
14692: CFLAGS=$_lt_libdeps_save_CFLAGS
14693:
14694: # PORTME: override above test on systems where it is broken
14695: case $host_os in
14696: interix[3-9]*)
14697: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14698: # hack all around it, let's just trust "g++" to DTRT.
14699: predep_objects_CXX=
14700: postdep_objects_CXX=
14701: postdeps_CXX=
14702: ;;
14703:
14704: linux*)
14705: case `$CC -V 2>&1 | sed 5q` in
14706: *Sun\ C*)
14707: # Sun C++ 5.9
14708:
14709: # The more standards-conforming stlport4 library is
14710: # incompatible with the Cstd library. Avoid specifying
14711: # it if it's in CXXFLAGS. Ignore libCrun as
14712: # -library=stlport4 depends on it.
14713: case " $CXX $CXXFLAGS " in
14714: *" -library=stlport4 "*)
14715: solaris_use_stlport4=yes
14716: ;;
14717: esac
14718:
14719: if test "$solaris_use_stlport4" != yes; then
14720: postdeps_CXX='-library=Cstd -library=Crun'
14721: fi
14722: ;;
14723: esac
14724: ;;
14725:
14726: solaris*)
14727: case $cc_basename in
14728: CC* | sunCC*)
14729: # The more standards-conforming stlport4 library is
14730: # incompatible with the Cstd library. Avoid specifying
14731: # it if it's in CXXFLAGS. Ignore libCrun as
14732: # -library=stlport4 depends on it.
14733: case " $CXX $CXXFLAGS " in
14734: *" -library=stlport4 "*)
14735: solaris_use_stlport4=yes
14736: ;;
14737: esac
14738:
14739: # Adding this requires a known-good setup of shared libraries for
14740: # Sun compiler versions before 5.6, else PIC objects from an old
14741: # archive will be linked into the output, leading to subtle bugs.
14742: if test "$solaris_use_stlport4" != yes; then
14743: postdeps_CXX='-library=Cstd -library=Crun'
14744: fi
14745: ;;
14746: esac
14747: ;;
14748: esac
14749:
14750:
14751: case " $postdeps_CXX " in
14752: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14753: esac
14754: compiler_lib_search_dirs_CXX=
14755: if test -n "${compiler_lib_search_path_CXX}"; then
14756: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14757: fi
14758:
14759:
14760:
14761:
14762:
14763:
14764:
14765:
14766:
14767:
14768:
14769:
14770:
14771:
14772:
14773:
14774:
14775:
14776:
14777:
14778:
14779:
14780:
14781:
14782:
14783:
14784:
14785:
14786:
14787:
14788:
14789: lt_prog_compiler_wl_CXX=
14790: lt_prog_compiler_pic_CXX=
14791: lt_prog_compiler_static_CXX=
14792:
14793:
14794: # C++ specific cases for pic, static, wl, etc.
14795: if test "$GXX" = yes; then
14796: lt_prog_compiler_wl_CXX='-Wl,'
14797: lt_prog_compiler_static_CXX='-static'
14798:
14799: case $host_os in
14800: aix*)
14801: # All AIX code is PIC.
14802: if test "$host_cpu" = ia64; then
14803: # AIX 5 now supports IA64 processor
14804: lt_prog_compiler_static_CXX='-Bstatic'
14805: fi
14806: ;;
14807:
14808: amigaos*)
14809: case $host_cpu in
14810: powerpc)
14811: # see comment about AmigaOS4 .so support
14812: lt_prog_compiler_pic_CXX='-fPIC'
14813: ;;
14814: m68k)
14815: # FIXME: we need at least 68020 code to build shared libraries, but
14816: # adding the `-m68020' flag to GCC prevents building anything better,
14817: # like `-m68040'.
14818: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14819: ;;
14820: esac
14821: ;;
14822:
14823: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14824: # PIC is the default for these OSes.
14825: ;;
14826: mingw* | cygwin* | os2* | pw32* | cegcc*)
14827: # This hack is so that the source file can tell whether it is being
14828: # built for inclusion in a dll (and should export symbols for example).
14829: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14830: # (--disable-auto-import) libraries
14831: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14832: ;;
14833: darwin* | rhapsody*)
14834: # PIC is the default on this platform
14835: # Common symbols not allowed in MH_DYLIB files
14836: lt_prog_compiler_pic_CXX='-fno-common'
14837: ;;
14838: *djgpp*)
14839: # DJGPP does not support shared libraries at all
14840: lt_prog_compiler_pic_CXX=
14841: ;;
14842: haiku*)
14843: # PIC is the default for Haiku.
14844: # The "-static" flag exists, but is broken.
14845: lt_prog_compiler_static_CXX=
14846: ;;
14847: interix[3-9]*)
14848: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14849: # Instead, we relocate shared libraries at runtime.
14850: ;;
14851: sysv4*MP*)
14852: if test -d /usr/nec; then
14853: lt_prog_compiler_pic_CXX=-Kconform_pic
14854: fi
14855: ;;
14856: hpux*)
14857: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14858: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14859: # sets the default TLS model and affects inlining.
14860: case $host_cpu in
14861: hppa*64*)
14862: ;;
14863: *)
14864: lt_prog_compiler_pic_CXX='-fPIC'
14865: ;;
14866: esac
14867: ;;
14868: *qnx* | *nto*)
14869: # QNX uses GNU C++, but need to define -shared option too, otherwise
14870: # it will coredump.
14871: lt_prog_compiler_pic_CXX='-fPIC -shared'
14872: ;;
14873: *)
14874: lt_prog_compiler_pic_CXX='-fPIC'
14875: ;;
14876: esac
14877: else
14878: case $host_os in
14879: aix[4-9]*)
14880: # All AIX code is PIC.
14881: if test "$host_cpu" = ia64; then
14882: # AIX 5 now supports IA64 processor
14883: lt_prog_compiler_static_CXX='-Bstatic'
14884: else
14885: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14886: fi
14887: ;;
14888: chorus*)
14889: case $cc_basename in
14890: cxch68*)
14891: # Green Hills C++ Compiler
14892: # _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"
14893: ;;
14894: esac
14895: ;;
14896: mingw* | cygwin* | os2* | pw32* | cegcc*)
14897: # This hack is so that the source file can tell whether it is being
14898: # built for inclusion in a dll (and should export symbols for example).
14899: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14900: ;;
14901: dgux*)
14902: case $cc_basename in
14903: ec++*)
14904: lt_prog_compiler_pic_CXX='-KPIC'
14905: ;;
14906: ghcx*)
14907: # Green Hills C++ Compiler
14908: lt_prog_compiler_pic_CXX='-pic'
14909: ;;
14910: *)
14911: ;;
14912: esac
14913: ;;
14914: freebsd* | dragonfly*)
14915: # FreeBSD uses GNU C++
14916: ;;
14917: hpux9* | hpux10* | hpux11*)
14918: case $cc_basename in
14919: CC*)
14920: lt_prog_compiler_wl_CXX='-Wl,'
14921: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14922: if test "$host_cpu" != ia64; then
14923: lt_prog_compiler_pic_CXX='+Z'
14924: fi
14925: ;;
14926: aCC*)
14927: lt_prog_compiler_wl_CXX='-Wl,'
14928: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14929: case $host_cpu in
14930: hppa*64*|ia64*)
14931: # +Z the default
14932: ;;
14933: *)
14934: lt_prog_compiler_pic_CXX='+Z'
14935: ;;
14936: esac
14937: ;;
14938: *)
14939: ;;
14940: esac
14941: ;;
14942: interix*)
14943: # This is c89, which is MS Visual C++ (no shared libs)
14944: # Anyone wants to do a port?
14945: ;;
14946: irix5* | irix6* | nonstopux*)
14947: case $cc_basename in
14948: CC*)
14949: lt_prog_compiler_wl_CXX='-Wl,'
14950: lt_prog_compiler_static_CXX='-non_shared'
14951: # CC pic flag -KPIC is the default.
14952: ;;
14953: *)
14954: ;;
14955: esac
14956: ;;
14957: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14958: case $cc_basename in
14959: KCC*)
14960: # KAI C++ Compiler
14961: lt_prog_compiler_wl_CXX='--backend -Wl,'
14962: lt_prog_compiler_pic_CXX='-fPIC'
14963: ;;
14964: ecpc* )
14965: # old Intel C++ for x86_64 which still supported -KPIC.
14966: lt_prog_compiler_wl_CXX='-Wl,'
14967: lt_prog_compiler_pic_CXX='-KPIC'
14968: lt_prog_compiler_static_CXX='-static'
14969: ;;
14970: icpc* )
14971: # Intel C++, used to be incompatible with GCC.
14972: # ICC 10 doesn't accept -KPIC any more.
14973: lt_prog_compiler_wl_CXX='-Wl,'
14974: lt_prog_compiler_pic_CXX='-fPIC'
14975: lt_prog_compiler_static_CXX='-static'
14976: ;;
14977: pgCC* | pgcpp*)
14978: # Portland Group C++ compiler
14979: lt_prog_compiler_wl_CXX='-Wl,'
14980: lt_prog_compiler_pic_CXX='-fpic'
14981: lt_prog_compiler_static_CXX='-Bstatic'
14982: ;;
14983: cxx*)
14984: # Compaq C++
14985: # Make sure the PIC flag is empty. It appears that all Alpha
14986: # Linux and Compaq Tru64 Unix objects are PIC.
14987: lt_prog_compiler_pic_CXX=
14988: lt_prog_compiler_static_CXX='-non_shared'
14989: ;;
14990: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14991: # IBM XL 8.0, 9.0 on PPC and BlueGene
14992: lt_prog_compiler_wl_CXX='-Wl,'
14993: lt_prog_compiler_pic_CXX='-qpic'
14994: lt_prog_compiler_static_CXX='-qstaticlink'
14995: ;;
14996: *)
14997: case `$CC -V 2>&1 | sed 5q` in
14998: *Sun\ C*)
14999: # Sun C++ 5.9
15000: lt_prog_compiler_pic_CXX='-KPIC'
15001: lt_prog_compiler_static_CXX='-Bstatic'
15002: lt_prog_compiler_wl_CXX='-Qoption ld '
15003: ;;
15004: esac
15005: ;;
15006: esac
15007: ;;
15008: lynxos*)
15009: ;;
15010: m88k*)
15011: ;;
15012: mvs*)
15013: case $cc_basename in
15014: cxx*)
15015: lt_prog_compiler_pic_CXX='-W c,exportall'
15016: ;;
15017: *)
15018: ;;
15019: esac
15020: ;;
15021: netbsd*)
15022: ;;
15023: *qnx* | *nto*)
15024: # QNX uses GNU C++, but need to define -shared option too, otherwise
15025: # it will coredump.
15026: lt_prog_compiler_pic_CXX='-fPIC -shared'
15027: ;;
15028: osf3* | osf4* | osf5*)
15029: case $cc_basename in
15030: KCC*)
15031: lt_prog_compiler_wl_CXX='--backend -Wl,'
15032: ;;
15033: RCC*)
15034: # Rational C++ 2.4.1
15035: lt_prog_compiler_pic_CXX='-pic'
15036: ;;
15037: cxx*)
15038: # Digital/Compaq C++
15039: lt_prog_compiler_wl_CXX='-Wl,'
15040: # Make sure the PIC flag is empty. It appears that all Alpha
15041: # Linux and Compaq Tru64 Unix objects are PIC.
15042: lt_prog_compiler_pic_CXX=
15043: lt_prog_compiler_static_CXX='-non_shared'
15044: ;;
15045: *)
15046: ;;
15047: esac
15048: ;;
15049: psos*)
15050: ;;
15051: solaris*)
15052: case $cc_basename in
15053: CC* | sunCC*)
15054: # Sun C++ 4.2, 5.x and Centerline C++
15055: lt_prog_compiler_pic_CXX='-KPIC'
15056: lt_prog_compiler_static_CXX='-Bstatic'
15057: lt_prog_compiler_wl_CXX='-Qoption ld '
15058: ;;
15059: gcx*)
15060: # Green Hills C++ Compiler
15061: lt_prog_compiler_pic_CXX='-PIC'
15062: ;;
15063: *)
15064: ;;
15065: esac
15066: ;;
15067: sunos4*)
15068: case $cc_basename in
15069: CC*)
15070: # Sun C++ 4.x
15071: lt_prog_compiler_pic_CXX='-pic'
15072: lt_prog_compiler_static_CXX='-Bstatic'
15073: ;;
15074: lcc*)
15075: # Lucid
15076: lt_prog_compiler_pic_CXX='-pic'
15077: ;;
15078: *)
15079: ;;
15080: esac
15081: ;;
15082: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15083: case $cc_basename in
15084: CC*)
15085: lt_prog_compiler_wl_CXX='-Wl,'
15086: lt_prog_compiler_pic_CXX='-KPIC'
15087: lt_prog_compiler_static_CXX='-Bstatic'
15088: ;;
15089: esac
15090: ;;
15091: tandem*)
15092: case $cc_basename in
15093: NCC*)
15094: # NonStop-UX NCC 3.20
15095: lt_prog_compiler_pic_CXX='-KPIC'
15096: ;;
15097: *)
15098: ;;
15099: esac
15100: ;;
15101: vxworks*)
15102: ;;
15103: *)
15104: lt_prog_compiler_can_build_shared_CXX=no
15105: ;;
15106: esac
15107: fi
15108:
15109: case $host_os in
15110: # For platforms which do not support PIC, -DPIC is meaningless:
15111: *djgpp*)
15112: lt_prog_compiler_pic_CXX=
15113: ;;
15114: *)
15115: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15116: ;;
15117: esac
15118:
1.150 moko 15119: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15120: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15121: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15122: $as_echo_n "(cached) " >&6
1.128 moko 15123: else
15124: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15125: fi
1.150 moko 15126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15127: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 15128: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15129:
15130: #
15131: # Check to make sure the PIC flag actually works.
15132: #
15133: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 15134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15135: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15136: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15137: $as_echo_n "(cached) " >&6
1.128 moko 15138: else
15139: lt_cv_prog_compiler_pic_works_CXX=no
15140: ac_outfile=conftest.$ac_objext
15141: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15142: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15143: # Insert the option either (1) after the last *FLAGS variable, or
15144: # (2) before a word containing "conftest.", or (3) at the end.
15145: # Note that $ac_compile itself does not contain backslashes and begins
15146: # with a dollar sign (not a hyphen), so the echo should work correctly.
15147: # The option is referenced via a variable to avoid confusing sed.
15148: lt_compile=`echo "$ac_compile" | $SED \
15149: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15150: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15151: -e 's:$: $lt_compiler_flag:'`
15152: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15153: (eval "$lt_compile" 2>conftest.err)
15154: ac_status=$?
15155: cat conftest.err >&5
15156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157: if (exit $ac_status) && test -s "$ac_outfile"; then
15158: # The compiler can only warn and ignore the option if not recognized
15159: # So say no if there are warnings other than the usual output.
15160: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15161: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15162: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15163: lt_cv_prog_compiler_pic_works_CXX=yes
15164: fi
15165: fi
15166: $RM conftest*
15167:
15168: fi
1.150 moko 15169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15170: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 15171:
15172: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15173: case $lt_prog_compiler_pic_CXX in
15174: "" | " "*) ;;
15175: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15176: esac
15177: else
15178: lt_prog_compiler_pic_CXX=
15179: lt_prog_compiler_can_build_shared_CXX=no
15180: fi
15181:
15182: fi
15183:
15184:
15185:
15186:
15187:
15188: #
15189: # Check to make sure the static flag actually works.
15190: #
15191: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 15192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15193: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15194: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15195: $as_echo_n "(cached) " >&6
1.128 moko 15196: else
15197: lt_cv_prog_compiler_static_works_CXX=no
15198: save_LDFLAGS="$LDFLAGS"
15199: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15200: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15201: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15202: # The linker can only warn and ignore the option if not recognized
15203: # So say no if there are warnings
15204: if test -s conftest.err; then
15205: # Append any errors to the config.log.
15206: cat conftest.err 1>&5
15207: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15208: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15209: if diff conftest.exp conftest.er2 >/dev/null; then
15210: lt_cv_prog_compiler_static_works_CXX=yes
15211: fi
15212: else
15213: lt_cv_prog_compiler_static_works_CXX=yes
15214: fi
15215: fi
15216: $RM -r conftest*
15217: LDFLAGS="$save_LDFLAGS"
15218:
15219: fi
1.150 moko 15220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15221: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 15222:
15223: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15224: :
15225: else
15226: lt_prog_compiler_static_CXX=
15227: fi
15228:
15229:
15230:
15231:
1.150 moko 15232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15233: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15234: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15235: $as_echo_n "(cached) " >&6
1.128 moko 15236: else
15237: lt_cv_prog_compiler_c_o_CXX=no
15238: $RM -r conftest 2>/dev/null
15239: mkdir conftest
15240: cd conftest
15241: mkdir out
15242: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15243:
15244: lt_compiler_flag="-o out/conftest2.$ac_objext"
15245: # Insert the option either (1) after the last *FLAGS variable, or
15246: # (2) before a word containing "conftest.", or (3) at the end.
15247: # Note that $ac_compile itself does not contain backslashes and begins
15248: # with a dollar sign (not a hyphen), so the echo should work correctly.
15249: lt_compile=`echo "$ac_compile" | $SED \
15250: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15251: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15252: -e 's:$: $lt_compiler_flag:'`
15253: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15254: (eval "$lt_compile" 2>out/conftest.err)
15255: ac_status=$?
15256: cat out/conftest.err >&5
15257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15259: then
15260: # The compiler can only warn and ignore the option if not recognized
15261: # So say no if there are warnings
15262: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15263: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15264: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15265: lt_cv_prog_compiler_c_o_CXX=yes
15266: fi
15267: fi
15268: chmod u+w . 2>&5
15269: $RM conftest*
15270: # SGI C++ compiler will create directory out/ii_files/ for
15271: # template instantiation
15272: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15273: $RM out/* && rmdir out
15274: cd ..
15275: $RM -r conftest
15276: $RM conftest*
15277:
15278: fi
1.150 moko 15279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15280: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15281:
15282:
15283:
1.150 moko 15284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15285: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15286: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15287: $as_echo_n "(cached) " >&6
1.128 moko 15288: else
15289: lt_cv_prog_compiler_c_o_CXX=no
15290: $RM -r conftest 2>/dev/null
15291: mkdir conftest
15292: cd conftest
15293: mkdir out
15294: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15295:
15296: lt_compiler_flag="-o out/conftest2.$ac_objext"
15297: # Insert the option either (1) after the last *FLAGS variable, or
15298: # (2) before a word containing "conftest.", or (3) at the end.
15299: # Note that $ac_compile itself does not contain backslashes and begins
15300: # with a dollar sign (not a hyphen), so the echo should work correctly.
15301: lt_compile=`echo "$ac_compile" | $SED \
15302: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15303: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15304: -e 's:$: $lt_compiler_flag:'`
15305: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15306: (eval "$lt_compile" 2>out/conftest.err)
15307: ac_status=$?
15308: cat out/conftest.err >&5
15309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15311: then
15312: # The compiler can only warn and ignore the option if not recognized
15313: # So say no if there are warnings
15314: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15315: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15316: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15317: lt_cv_prog_compiler_c_o_CXX=yes
15318: fi
15319: fi
15320: chmod u+w . 2>&5
15321: $RM conftest*
15322: # SGI C++ compiler will create directory out/ii_files/ for
15323: # template instantiation
15324: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15325: $RM out/* && rmdir out
15326: cd ..
15327: $RM -r conftest
15328: $RM conftest*
15329:
15330: fi
1.150 moko 15331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15332: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15333:
15334:
15335:
15336:
15337: hard_links="nottested"
15338: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15339: # do not overwrite the value of need_locks provided by the user
1.150 moko 15340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15341: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15342: hard_links=yes
15343: $RM conftest*
15344: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15345: touch conftest.a
15346: ln conftest.a conftest.b 2>&5 || hard_links=no
15347: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15349: $as_echo "$hard_links" >&6; }
1.128 moko 15350: if test "$hard_links" = no; then
1.150 moko 15351: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15352: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15353: need_locks=warn
15354: fi
15355: else
15356: need_locks=no
15357: fi
15358:
15359:
15360:
1.150 moko 15361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15362: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15363:
15364: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15365: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15366: case $host_os in
15367: aix[4-9]*)
15368: # If we're using GNU nm, then we don't want the "-C" option.
15369: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15370: # Also, AIX nm treats weak defined symbols like other global defined
15371: # symbols, whereas GNU nm marks them as "W".
15372: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15373: 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'
15374: else
15375: 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'
15376: fi
15377: ;;
15378: pw32*)
15379: export_symbols_cmds_CXX="$ltdll_cmds"
15380: ;;
15381: cygwin* | mingw* | cegcc*)
15382: case $cc_basename in
15383: cl*)
15384: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15385: ;;
15386: *)
15387: 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'
15388: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15389: ;;
15390: esac
15391: ;;
15392: *)
15393: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15394: ;;
15395: esac
15396:
1.150 moko 15397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15398: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15399: test "$ld_shlibs_CXX" = no && can_build_shared=no
15400:
15401: with_gnu_ld_CXX=$with_gnu_ld
15402:
15403:
15404:
15405:
15406:
15407:
15408: #
15409: # Do we need to explicitly link libc?
15410: #
15411: case "x$archive_cmds_need_lc_CXX" in
15412: x|xyes)
15413: # Assume -lc should be added
15414: archive_cmds_need_lc_CXX=yes
15415:
15416: if test "$enable_shared" = yes && test "$GCC" = yes; then
15417: case $archive_cmds_CXX in
15418: *'~'*)
15419: # FIXME: we may have to deal with multi-command sequences.
15420: ;;
15421: '$CC '*)
15422: # Test whether the compiler implicitly links with -lc since on some
15423: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15424: # to ld, don't add -lc before -lgcc.
1.150 moko 15425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15426: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15427: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15428: $as_echo_n "(cached) " >&6
1.128 moko 15429: else
15430: $RM conftest*
15431: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15432:
1.150 moko 15433: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15434: (eval $ac_compile) 2>&5
15435: ac_status=$?
1.150 moko 15436: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15437: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15438: soname=conftest
15439: lib=conftest
15440: libobjs=conftest.$ac_objext
15441: deplibs=
15442: wl=$lt_prog_compiler_wl_CXX
15443: pic_flag=$lt_prog_compiler_pic_CXX
15444: compiler_flags=-v
15445: linker_flags=-v
15446: verstring=
15447: output_objdir=.
15448: libname=conftest
15449: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15450: allow_undefined_flag_CXX=
1.150 moko 15451: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15452: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15453: ac_status=$?
1.150 moko 15454: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15455: test $ac_status = 0; }
1.128 moko 15456: then
15457: lt_cv_archive_cmds_need_lc_CXX=no
15458: else
15459: lt_cv_archive_cmds_need_lc_CXX=yes
15460: fi
15461: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15462: else
15463: cat conftest.err 1>&5
15464: fi
15465: $RM conftest*
15466:
15467: fi
1.150 moko 15468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15469: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15470: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15471: ;;
15472: esac
15473: fi
15474: ;;
15475: esac
15476:
15477:
15478:
15479:
15480:
15481:
15482:
15483:
15484:
15485:
15486:
15487:
15488:
15489:
15490:
15491:
15492:
15493:
15494:
15495:
15496:
15497:
15498:
15499:
15500:
15501:
15502:
15503:
15504:
15505:
15506:
15507:
15508:
15509:
15510:
15511:
15512:
15513:
15514:
15515:
15516:
15517:
15518:
15519:
15520:
15521:
15522:
15523:
15524:
15525:
15526:
15527:
15528:
15529:
15530:
15531:
15532:
15533:
15534:
15535:
15536:
15537:
1.150 moko 15538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15539: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15540:
15541: library_names_spec=
15542: libname_spec='lib$name'
15543: soname_spec=
15544: shrext_cmds=".so"
15545: postinstall_cmds=
15546: postuninstall_cmds=
15547: finish_cmds=
15548: finish_eval=
15549: shlibpath_var=
15550: shlibpath_overrides_runpath=unknown
15551: version_type=none
15552: dynamic_linker="$host_os ld.so"
15553: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15554: need_lib_prefix=unknown
15555: hardcode_into_libs=no
15556:
15557: # when you set need_version to no, make sure it does not cause -set_version
15558: # flags to be left without arguments
15559: need_version=unknown
15560:
15561: case $host_os in
15562: aix3*)
15563: version_type=linux # correct to gnu/linux during the next big refactor
15564: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15565: shlibpath_var=LIBPATH
15566:
15567: # AIX 3 has no versioning support, so we append a major version to the name.
15568: soname_spec='${libname}${release}${shared_ext}$major'
15569: ;;
15570:
15571: aix[4-9]*)
15572: version_type=linux # correct to gnu/linux during the next big refactor
15573: need_lib_prefix=no
15574: need_version=no
15575: hardcode_into_libs=yes
15576: if test "$host_cpu" = ia64; then
15577: # AIX 5 supports IA64
15578: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15579: shlibpath_var=LD_LIBRARY_PATH
15580: else
15581: # With GCC up to 2.95.x, collect2 would create an import file
15582: # for dependence libraries. The import file would start with
15583: # the line `#! .'. This would cause the generated library to
15584: # depend on `.', always an invalid library. This was fixed in
15585: # development snapshots of GCC prior to 3.0.
15586: case $host_os in
15587: aix4 | aix4.[01] | aix4.[01].*)
15588: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15589: echo ' yes '
15590: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15591: :
15592: else
15593: can_build_shared=no
15594: fi
15595: ;;
15596: esac
15597: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15598: # soname into executable. Probably we can add versioning support to
15599: # collect2, so additional links can be useful in future.
15600: if test "$aix_use_runtimelinking" = yes; then
15601: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15602: # instead of lib<name>.a to let people know that these are not
15603: # typical AIX shared libraries.
15604: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605: else
15606: # We preserve .a as extension for shared libraries through AIX4.2
15607: # and later when we are not doing run time linking.
15608: library_names_spec='${libname}${release}.a $libname.a'
15609: soname_spec='${libname}${release}${shared_ext}$major'
15610: fi
15611: shlibpath_var=LIBPATH
15612: fi
15613: ;;
15614:
15615: amigaos*)
15616: case $host_cpu in
15617: powerpc)
15618: # Since July 2007 AmigaOS4 officially supports .so libraries.
15619: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15620: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621: ;;
15622: m68k)
15623: library_names_spec='$libname.ixlibrary $libname.a'
15624: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15625: 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'
15626: ;;
15627: esac
15628: ;;
15629:
15630: beos*)
15631: library_names_spec='${libname}${shared_ext}'
15632: dynamic_linker="$host_os ld.so"
15633: shlibpath_var=LIBRARY_PATH
15634: ;;
15635:
15636: bsdi[45]*)
15637: version_type=linux # correct to gnu/linux during the next big refactor
15638: need_version=no
15639: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640: soname_spec='${libname}${release}${shared_ext}$major'
15641: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15642: shlibpath_var=LD_LIBRARY_PATH
15643: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15644: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15645: # the default ld.so.conf also contains /usr/contrib/lib and
15646: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15647: # libtool to hard-code these into programs
15648: ;;
15649:
15650: cygwin* | mingw* | pw32* | cegcc*)
15651: version_type=windows
15652: shrext_cmds=".dll"
15653: need_version=no
15654: need_lib_prefix=no
15655:
15656: case $GCC,$cc_basename in
15657: yes,*)
15658: # gcc
15659: library_names_spec='$libname.dll.a'
15660: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15661: postinstall_cmds='base_file=`basename \${file}`~
15662: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15663: dldir=$destdir/`dirname \$dlpath`~
15664: test -d \$dldir || mkdir -p \$dldir~
15665: $install_prog $dir/$dlname \$dldir/$dlname~
15666: chmod a+x \$dldir/$dlname~
15667: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15668: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15669: fi'
15670: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15671: dlpath=$dir/\$dldll~
15672: $RM \$dlpath'
15673: shlibpath_overrides_runpath=yes
15674:
15675: case $host_os in
15676: cygwin*)
15677: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15678: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15679:
15680: ;;
15681: mingw* | cegcc*)
15682: # MinGW DLLs use traditional 'lib' prefix
15683: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15684: ;;
15685: pw32*)
15686: # pw32 DLLs use 'pw' prefix rather than 'lib'
15687: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15688: ;;
15689: esac
15690: dynamic_linker='Win32 ld.exe'
15691: ;;
15692:
15693: *,cl*)
15694: # Native MSVC
15695: libname_spec='$name'
15696: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15697: library_names_spec='${libname}.dll.lib'
15698:
15699: case $build_os in
15700: mingw*)
15701: sys_lib_search_path_spec=
15702: lt_save_ifs=$IFS
15703: IFS=';'
15704: for lt_path in $LIB
15705: do
15706: IFS=$lt_save_ifs
15707: # Let DOS variable expansion print the short 8.3 style file name.
15708: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15709: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15710: done
15711: IFS=$lt_save_ifs
15712: # Convert to MSYS style.
15713: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15714: ;;
15715: cygwin*)
15716: # Convert to unix form, then to dos form, then back to unix form
15717: # but this time dos style (no spaces!) so that the unix form looks
15718: # like /cygdrive/c/PROGRA~1:/cygdr...
15719: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15720: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15721: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15722: ;;
15723: *)
15724: sys_lib_search_path_spec="$LIB"
15725: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15726: # It is most probably a Windows format PATH.
15727: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15728: else
15729: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15730: fi
15731: # FIXME: find the short name or the path components, as spaces are
15732: # common. (e.g. "Program Files" -> "PROGRA~1")
15733: ;;
15734: esac
15735:
15736: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15737: postinstall_cmds='base_file=`basename \${file}`~
15738: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15739: dldir=$destdir/`dirname \$dlpath`~
15740: test -d \$dldir || mkdir -p \$dldir~
15741: $install_prog $dir/$dlname \$dldir/$dlname'
15742: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15743: dlpath=$dir/\$dldll~
15744: $RM \$dlpath'
15745: shlibpath_overrides_runpath=yes
15746: dynamic_linker='Win32 link.exe'
15747: ;;
15748:
15749: *)
15750: # Assume MSVC wrapper
15751: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15752: dynamic_linker='Win32 ld.exe'
15753: ;;
15754: esac
15755: # FIXME: first we should search . and the directory the executable is in
15756: shlibpath_var=PATH
15757: ;;
15758:
15759: darwin* | rhapsody*)
15760: dynamic_linker="$host_os dyld"
15761: version_type=darwin
15762: need_lib_prefix=no
15763: need_version=no
15764: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15765: soname_spec='${libname}${release}${major}$shared_ext'
15766: shlibpath_overrides_runpath=yes
15767: shlibpath_var=DYLD_LIBRARY_PATH
15768: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15769:
15770: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15771: ;;
15772:
15773: dgux*)
15774: version_type=linux # correct to gnu/linux during the next big refactor
15775: need_lib_prefix=no
15776: need_version=no
15777: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15778: soname_spec='${libname}${release}${shared_ext}$major'
15779: shlibpath_var=LD_LIBRARY_PATH
15780: ;;
15781:
15782: freebsd* | dragonfly*)
15783: # DragonFly does not have aout. When/if they implement a new
15784: # versioning mechanism, adjust this.
15785: if test -x /usr/bin/objformat; then
15786: objformat=`/usr/bin/objformat`
15787: else
15788: case $host_os in
15789: freebsd[23].*) objformat=aout ;;
15790: *) objformat=elf ;;
15791: esac
15792: fi
15793: version_type=freebsd-$objformat
15794: case $version_type in
15795: freebsd-elf*)
15796: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15797: need_version=no
15798: need_lib_prefix=no
15799: ;;
15800: freebsd-*)
15801: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15802: need_version=yes
15803: ;;
15804: esac
15805: shlibpath_var=LD_LIBRARY_PATH
15806: case $host_os in
15807: freebsd2.*)
15808: shlibpath_overrides_runpath=yes
15809: ;;
15810: freebsd3.[01]* | freebsdelf3.[01]*)
15811: shlibpath_overrides_runpath=yes
15812: hardcode_into_libs=yes
15813: ;;
15814: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15815: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15816: shlibpath_overrides_runpath=no
15817: hardcode_into_libs=yes
15818: ;;
15819: *) # from 4.6 on, and DragonFly
15820: shlibpath_overrides_runpath=yes
15821: hardcode_into_libs=yes
15822: ;;
15823: esac
15824: ;;
15825:
15826: gnu*)
15827: version_type=linux # correct to gnu/linux during the next big refactor
15828: need_lib_prefix=no
15829: need_version=no
15830: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15831: soname_spec='${libname}${release}${shared_ext}$major'
15832: shlibpath_var=LD_LIBRARY_PATH
15833: shlibpath_overrides_runpath=no
15834: hardcode_into_libs=yes
15835: ;;
15836:
15837: haiku*)
15838: version_type=linux # correct to gnu/linux during the next big refactor
15839: need_lib_prefix=no
15840: need_version=no
15841: dynamic_linker="$host_os runtime_loader"
15842: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15843: soname_spec='${libname}${release}${shared_ext}$major'
15844: shlibpath_var=LIBRARY_PATH
15845: shlibpath_overrides_runpath=yes
15846: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15847: hardcode_into_libs=yes
15848: ;;
15849:
15850: hpux9* | hpux10* | hpux11*)
15851: # Give a soname corresponding to the major version so that dld.sl refuses to
15852: # link against other versions.
15853: version_type=sunos
15854: need_lib_prefix=no
15855: need_version=no
15856: case $host_cpu in
15857: ia64*)
15858: shrext_cmds='.so'
15859: hardcode_into_libs=yes
15860: dynamic_linker="$host_os dld.so"
15861: shlibpath_var=LD_LIBRARY_PATH
15862: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15863: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864: soname_spec='${libname}${release}${shared_ext}$major'
15865: if test "X$HPUX_IA64_MODE" = X32; then
15866: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15867: else
15868: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15869: fi
15870: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15871: ;;
15872: hppa*64*)
15873: shrext_cmds='.sl'
15874: hardcode_into_libs=yes
15875: dynamic_linker="$host_os dld.sl"
15876: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15877: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15878: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879: soname_spec='${libname}${release}${shared_ext}$major'
15880: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15881: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15882: ;;
15883: *)
15884: shrext_cmds='.sl'
15885: dynamic_linker="$host_os dld.sl"
15886: shlibpath_var=SHLIB_PATH
15887: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15888: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889: soname_spec='${libname}${release}${shared_ext}$major'
15890: ;;
15891: esac
15892: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15893: postinstall_cmds='chmod 555 $lib'
15894: # or fails outright, so override atomically:
15895: install_override_mode=555
15896: ;;
15897:
15898: interix[3-9]*)
15899: version_type=linux # correct to gnu/linux during the next big refactor
15900: need_lib_prefix=no
15901: need_version=no
15902: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15903: soname_spec='${libname}${release}${shared_ext}$major'
15904: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15905: shlibpath_var=LD_LIBRARY_PATH
15906: shlibpath_overrides_runpath=no
15907: hardcode_into_libs=yes
15908: ;;
15909:
15910: irix5* | irix6* | nonstopux*)
15911: case $host_os in
15912: nonstopux*) version_type=nonstopux ;;
15913: *)
15914: if test "$lt_cv_prog_gnu_ld" = yes; then
15915: version_type=linux # correct to gnu/linux during the next big refactor
15916: else
15917: version_type=irix
15918: fi ;;
15919: esac
15920: need_lib_prefix=no
15921: need_version=no
15922: soname_spec='${libname}${release}${shared_ext}$major'
15923: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15924: case $host_os in
15925: irix5* | nonstopux*)
15926: libsuff= shlibsuff=
15927: ;;
15928: *)
15929: case $LD in # libtool.m4 will add one of these switches to LD
15930: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15931: libsuff= shlibsuff= libmagic=32-bit;;
15932: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15933: libsuff=32 shlibsuff=N32 libmagic=N32;;
15934: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15935: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15936: *) libsuff= shlibsuff= libmagic=never-match;;
15937: esac
15938: ;;
15939: esac
15940: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15941: shlibpath_overrides_runpath=no
15942: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15943: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15944: hardcode_into_libs=yes
15945: ;;
15946:
15947: # No shared lib support for Linux oldld, aout, or coff.
15948: linux*oldld* | linux*aout* | linux*coff*)
15949: dynamic_linker=no
15950: ;;
15951:
15952: # This must be glibc/ELF.
15953: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15954: version_type=linux # correct to gnu/linux during the next big refactor
15955: need_lib_prefix=no
15956: need_version=no
15957: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15958: soname_spec='${libname}${release}${shared_ext}$major'
15959: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15960: shlibpath_var=LD_LIBRARY_PATH
15961: shlibpath_overrides_runpath=no
15962:
15963: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 15964: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15965: $as_echo_n "(cached) " >&6
1.128 moko 15966: else
15967: lt_cv_shlibpath_overrides_runpath=no
15968: save_LDFLAGS=$LDFLAGS
15969: save_libdir=$libdir
15970: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15971: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 15972: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15973: /* end confdefs.h. */
15974:
15975: int
15976: main ()
15977: {
15978:
15979: ;
15980: return 0;
15981: }
15982: _ACEOF
1.150 moko 15983: if ac_fn_cxx_try_link "$LINENO"; then :
15984: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 15985: lt_cv_shlibpath_overrides_runpath=yes
15986: fi
15987: fi
1.150 moko 15988: rm -f core conftest.err conftest.$ac_objext \
15989: conftest$ac_exeext conftest.$ac_ext
1.128 moko 15990: LDFLAGS=$save_LDFLAGS
15991: libdir=$save_libdir
15992:
15993: fi
15994:
15995: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15996:
15997: # This implies no fast_install, which is unacceptable.
15998: # Some rework will be needed to allow for fast_install
15999: # before this can be enabled.
16000: hardcode_into_libs=yes
16001:
16002: # Append ld.so.conf contents to the search path
16003: if test -f /etc/ld.so.conf; then
16004: 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' ' '`
16005: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16006: fi
16007:
16008: # We used to test for /lib/ld.so.1 and disable shared libraries on
16009: # powerpc, because MkLinux only supported shared libraries with the
16010: # GNU dynamic linker. Since this was broken with cross compilers,
16011: # most powerpc-linux boxes support dynamic linking these days and
16012: # people can always --disable-shared, the test was removed, and we
16013: # assume the GNU/Linux dynamic linker is in use.
16014: dynamic_linker='GNU/Linux ld.so'
16015: ;;
16016:
16017: netbsd*)
16018: version_type=sunos
16019: need_lib_prefix=no
16020: need_version=no
16021: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16022: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16023: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16024: dynamic_linker='NetBSD (a.out) ld.so'
16025: else
16026: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16027: soname_spec='${libname}${release}${shared_ext}$major'
16028: dynamic_linker='NetBSD ld.elf_so'
16029: fi
16030: shlibpath_var=LD_LIBRARY_PATH
16031: shlibpath_overrides_runpath=yes
16032: hardcode_into_libs=yes
16033: ;;
16034:
16035: newsos6)
16036: version_type=linux # correct to gnu/linux during the next big refactor
16037: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038: shlibpath_var=LD_LIBRARY_PATH
16039: shlibpath_overrides_runpath=yes
16040: ;;
16041:
16042: *nto* | *qnx*)
16043: version_type=qnx
16044: need_lib_prefix=no
16045: need_version=no
16046: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047: soname_spec='${libname}${release}${shared_ext}$major'
16048: shlibpath_var=LD_LIBRARY_PATH
16049: shlibpath_overrides_runpath=no
16050: hardcode_into_libs=yes
16051: dynamic_linker='ldqnx.so'
16052: ;;
16053:
16054: openbsd*)
16055: version_type=sunos
16056: sys_lib_dlsearch_path_spec="/usr/lib"
16057: need_lib_prefix=no
16058: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16059: case $host_os in
16060: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16061: *) need_version=no ;;
16062: esac
16063: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16064: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16065: shlibpath_var=LD_LIBRARY_PATH
16066: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16067: case $host_os in
16068: openbsd2.[89] | openbsd2.[89].*)
16069: shlibpath_overrides_runpath=no
16070: ;;
16071: *)
16072: shlibpath_overrides_runpath=yes
16073: ;;
16074: esac
16075: else
16076: shlibpath_overrides_runpath=yes
16077: fi
16078: ;;
16079:
16080: os2*)
16081: libname_spec='$name'
16082: shrext_cmds=".dll"
16083: need_lib_prefix=no
16084: library_names_spec='$libname${shared_ext} $libname.a'
16085: dynamic_linker='OS/2 ld.exe'
16086: shlibpath_var=LIBPATH
16087: ;;
16088:
16089: osf3* | osf4* | osf5*)
16090: version_type=osf
16091: need_lib_prefix=no
16092: need_version=no
16093: soname_spec='${libname}${release}${shared_ext}$major'
16094: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095: shlibpath_var=LD_LIBRARY_PATH
16096: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16097: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16098: ;;
16099:
16100: rdos*)
16101: dynamic_linker=no
16102: ;;
16103:
16104: solaris*)
16105: version_type=linux # correct to gnu/linux during the next big refactor
16106: need_lib_prefix=no
16107: need_version=no
16108: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109: soname_spec='${libname}${release}${shared_ext}$major'
16110: shlibpath_var=LD_LIBRARY_PATH
16111: shlibpath_overrides_runpath=yes
16112: hardcode_into_libs=yes
16113: # ldd complains unless libraries are executable
16114: postinstall_cmds='chmod +x $lib'
16115: ;;
16116:
16117: sunos4*)
16118: version_type=sunos
16119: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16120: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16121: shlibpath_var=LD_LIBRARY_PATH
16122: shlibpath_overrides_runpath=yes
16123: if test "$with_gnu_ld" = yes; then
16124: need_lib_prefix=no
16125: fi
16126: need_version=yes
16127: ;;
16128:
16129: sysv4 | sysv4.3*)
16130: version_type=linux # correct to gnu/linux during the next big refactor
16131: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132: soname_spec='${libname}${release}${shared_ext}$major'
16133: shlibpath_var=LD_LIBRARY_PATH
16134: case $host_vendor in
16135: sni)
16136: shlibpath_overrides_runpath=no
16137: need_lib_prefix=no
16138: runpath_var=LD_RUN_PATH
16139: ;;
16140: siemens)
16141: need_lib_prefix=no
16142: ;;
16143: motorola)
16144: need_lib_prefix=no
16145: need_version=no
16146: shlibpath_overrides_runpath=no
16147: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16148: ;;
16149: esac
16150: ;;
16151:
16152: sysv4*MP*)
16153: if test -d /usr/nec ;then
16154: version_type=linux # correct to gnu/linux during the next big refactor
16155: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16156: soname_spec='$libname${shared_ext}.$major'
16157: shlibpath_var=LD_LIBRARY_PATH
16158: fi
16159: ;;
16160:
16161: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16162: version_type=freebsd-elf
16163: need_lib_prefix=no
16164: need_version=no
16165: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16166: soname_spec='${libname}${release}${shared_ext}$major'
16167: shlibpath_var=LD_LIBRARY_PATH
16168: shlibpath_overrides_runpath=yes
16169: hardcode_into_libs=yes
16170: if test "$with_gnu_ld" = yes; then
16171: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16172: else
16173: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16174: case $host_os in
16175: sco3.2v5*)
16176: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16177: ;;
16178: esac
16179: fi
16180: sys_lib_dlsearch_path_spec='/usr/lib'
16181: ;;
16182:
16183: tpf*)
16184: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16185: version_type=linux # correct to gnu/linux during the next big refactor
16186: need_lib_prefix=no
16187: need_version=no
16188: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189: shlibpath_var=LD_LIBRARY_PATH
16190: shlibpath_overrides_runpath=no
16191: hardcode_into_libs=yes
16192: ;;
16193:
16194: uts4*)
16195: version_type=linux # correct to gnu/linux during the next big refactor
16196: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197: soname_spec='${libname}${release}${shared_ext}$major'
16198: shlibpath_var=LD_LIBRARY_PATH
16199: ;;
16200:
16201: *)
16202: dynamic_linker=no
16203: ;;
16204: esac
1.150 moko 16205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16206: $as_echo "$dynamic_linker" >&6; }
1.128 moko 16207: test "$dynamic_linker" = no && can_build_shared=no
16208:
16209: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16210: if test "$GCC" = yes; then
16211: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16212: fi
16213:
16214: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16215: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16216: fi
16217: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16218: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16219: fi
16220:
16221:
16222:
16223:
16224:
16225:
16226:
16227:
16228:
16229:
16230:
16231:
16232:
16233:
16234:
16235:
16236:
16237:
16238:
16239:
16240:
16241:
16242:
16243:
16244:
16245:
16246:
16247:
16248:
16249:
16250:
16251:
16252:
16253:
16254:
16255:
16256:
16257:
1.150 moko 16258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16259: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 16260: hardcode_action_CXX=
16261: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16262: test -n "$runpath_var_CXX" ||
16263: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16264:
16265: # We can hardcode non-existent directories.
16266: if test "$hardcode_direct_CXX" != no &&
16267: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16268: # have to relink, otherwise we might link with an installed library
16269: # when we should be linking with a yet-to-be-installed one
16270: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16271: test "$hardcode_minus_L_CXX" != no; then
16272: # Linking always hardcodes the temporary library directory.
16273: hardcode_action_CXX=relink
16274: else
16275: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16276: hardcode_action_CXX=immediate
16277: fi
16278: else
16279: # We cannot hardcode anything, or else we can only hardcode existing
16280: # directories.
16281: hardcode_action_CXX=unsupported
16282: fi
1.150 moko 16283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16284: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16285:
16286: if test "$hardcode_action_CXX" = relink ||
16287: test "$inherit_rpath_CXX" = yes; then
16288: # Fast installation is not supported
16289: enable_fast_install=no
16290: elif test "$shlibpath_overrides_runpath" = yes ||
16291: test "$enable_shared" = no; then
16292: # Fast installation is not necessary
16293: enable_fast_install=needless
16294: fi
16295:
16296:
16297:
16298:
16299:
16300:
16301:
16302: fi # test -n "$compiler"
16303:
16304: CC=$lt_save_CC
16305: CFLAGS=$lt_save_CFLAGS
16306: LDCXX=$LD
16307: LD=$lt_save_LD
16308: GCC=$lt_save_GCC
16309: with_gnu_ld=$lt_save_with_gnu_ld
16310: lt_cv_path_LDCXX=$lt_cv_path_LD
16311: lt_cv_path_LD=$lt_save_path_LD
16312: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16313: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16314: fi # test "$_lt_caught_CXX_error" != yes
16315:
16316: ac_ext=c
16317: ac_cpp='$CPP $CPPFLAGS'
16318: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16319: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16320: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16321:
16322:
16323:
16324:
16325:
16326:
16327:
16328:
16329:
16330:
16331:
16332:
16333:
16334:
16335:
1.150 moko 16336: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16337:
16338:
16339:
16340:
16341: # Only expand once:
16342:
16343:
1.150 moko 16344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16345: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16346: if ${libltdl_cv_shlibext+:} false; then :
16347: $as_echo_n "(cached) " >&6
1.128 moko 16348: else
16349:
16350: module=yes
16351: eval libltdl_cv_shlibext=$shrext_cmds
16352: module=no
16353: eval libltdl_cv_shrext=$shrext_cmds
16354:
16355: fi
1.150 moko 16356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16357: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16358: if test -n "$libltdl_cv_shlibext"; then
16359:
16360: cat >>confdefs.h <<_ACEOF
16361: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16362: _ACEOF
16363:
16364: fi
16365: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16366:
16367: cat >>confdefs.h <<_ACEOF
16368: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16369: _ACEOF
16370:
16371: fi
16372:
1.150 moko 16373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16374: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16375: if ${lt_cv_module_path_var+:} false; then :
16376: $as_echo_n "(cached) " >&6
1.128 moko 16377: else
16378: lt_cv_module_path_var="$shlibpath_var"
16379: fi
1.150 moko 16380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16381: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16382: if test -n "$lt_cv_module_path_var"; then
16383:
16384: cat >>confdefs.h <<_ACEOF
16385: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16386: _ACEOF
16387:
16388: fi
16389:
1.150 moko 16390: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16391: $as_echo_n "checking for the default library search path... " >&6; }
16392: if ${lt_cv_sys_dlsearch_path+:} false; then :
16393: $as_echo_n "(cached) " >&6
1.128 moko 16394: else
16395: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16396: fi
1.150 moko 16397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16398: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16399: if test -n "$lt_cv_sys_dlsearch_path"; then
16400: sys_dlsearch_path=
16401: for dir in $lt_cv_sys_dlsearch_path; do
16402: if test -z "$sys_dlsearch_path"; then
16403: sys_dlsearch_path="$dir"
16404: else
16405: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16406: fi
16407: done
16408:
16409: cat >>confdefs.h <<_ACEOF
16410: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16411: _ACEOF
16412:
16413: fi
16414:
16415:
16416: LT_DLLOADERS=
16417:
16418:
16419: ac_ext=c
16420: ac_cpp='$CPP $CPPFLAGS'
16421: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16422: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16423: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16424:
16425:
16426: LIBADD_DLOPEN=
1.150 moko 16427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16428: $as_echo_n "checking for library containing dlopen... " >&6; }
16429: if ${ac_cv_search_dlopen+:} false; then :
16430: $as_echo_n "(cached) " >&6
1.128 moko 16431: else
16432: ac_func_search_save_LIBS=$LIBS
1.150 moko 16433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16434: /* end confdefs.h. */
16435:
1.150 moko 16436: /* Override any GCC internal prototype to avoid an error.
16437: Use char because int might match the return type of a GCC
16438: builtin and then its argument prototype would still apply. */
1.128 moko 16439: #ifdef __cplusplus
16440: extern "C"
16441: #endif
16442: char dlopen ();
16443: int
16444: main ()
16445: {
1.150 moko 16446: return dlopen ();
1.128 moko 16447: ;
16448: return 0;
16449: }
16450: _ACEOF
1.150 moko 16451: for ac_lib in '' dl; do
16452: if test -z "$ac_lib"; then
16453: ac_res="none required"
16454: else
16455: ac_res=-l$ac_lib
16456: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16457: fi
16458: if ac_fn_c_try_link "$LINENO"; then :
16459: ac_cv_search_dlopen=$ac_res
16460: fi
16461: rm -f core conftest.err conftest.$ac_objext \
16462: conftest$ac_exeext
16463: if ${ac_cv_search_dlopen+:} false; then :
16464: break
1.128 moko 16465: fi
1.150 moko 16466: done
16467: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16468:
16469: else
1.150 moko 16470: ac_cv_search_dlopen=no
1.128 moko 16471: fi
1.150 moko 16472: rm conftest.$ac_ext
1.128 moko 16473: LIBS=$ac_func_search_save_LIBS
16474: fi
1.150 moko 16475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16476: $as_echo "$ac_cv_search_dlopen" >&6; }
16477: ac_res=$ac_cv_search_dlopen
16478: if test "$ac_res" != no; then :
16479: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16480:
1.150 moko 16481: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16482:
16483: if test "$ac_cv_search_dlopen" != "none required" ; then
16484: LIBADD_DLOPEN="-ldl"
16485: fi
16486: libltdl_cv_lib_dl_dlopen="yes"
16487: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16488: else
1.150 moko 16489: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16490: /* end confdefs.h. */
16491: #if HAVE_DLFCN_H
16492: # include <dlfcn.h>
16493: #endif
16494:
16495: int
16496: main ()
16497: {
16498: dlopen(0, 0);
16499: ;
16500: return 0;
16501: }
16502: _ACEOF
1.150 moko 16503: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16504:
1.150 moko 16505: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16506:
16507: libltdl_cv_func_dlopen="yes"
16508: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16509: else
1.150 moko 16510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16511: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16512: if ${ac_cv_lib_svld_dlopen+:} false; then :
16513: $as_echo_n "(cached) " >&6
1.128 moko 16514: else
16515: ac_check_lib_save_LIBS=$LIBS
16516: LIBS="-lsvld $LIBS"
1.150 moko 16517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16518: /* end confdefs.h. */
16519:
1.150 moko 16520: /* Override any GCC internal prototype to avoid an error.
16521: Use char because int might match the return type of a GCC
16522: builtin and then its argument prototype would still apply. */
1.128 moko 16523: #ifdef __cplusplus
16524: extern "C"
16525: #endif
16526: char dlopen ();
16527: int
16528: main ()
16529: {
1.150 moko 16530: return dlopen ();
1.128 moko 16531: ;
16532: return 0;
16533: }
16534: _ACEOF
1.150 moko 16535: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16536: ac_cv_lib_svld_dlopen=yes
16537: else
1.150 moko 16538: ac_cv_lib_svld_dlopen=no
1.128 moko 16539: fi
1.150 moko 16540: rm -f core conftest.err conftest.$ac_objext \
16541: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16542: LIBS=$ac_check_lib_save_LIBS
16543: fi
1.150 moko 16544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16545: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16546: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16547:
1.150 moko 16548: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16549:
16550: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16551: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16552: fi
16553:
16554: fi
1.150 moko 16555: rm -f core conftest.err conftest.$ac_objext \
16556: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16557: fi
16558:
16559: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16560: then
16561: lt_save_LIBS="$LIBS"
16562: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16563: for ac_func in dlerror
16564: do :
16565: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16566: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16567: cat >>confdefs.h <<_ACEOF
1.150 moko 16568: #define HAVE_DLERROR 1
1.128 moko 16569: _ACEOF
16570:
16571: fi
16572: done
16573:
16574: LIBS="$lt_save_LIBS"
16575: fi
16576:
16577:
16578: LIBADD_SHL_LOAD=
1.150 moko 16579: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16580: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16581:
1.150 moko 16582: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16583:
16584: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16585: else
1.150 moko 16586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16587: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16588: if ${ac_cv_lib_dld_shl_load+:} false; then :
16589: $as_echo_n "(cached) " >&6
1.66 paf 16590: else
16591: ac_check_lib_save_LIBS=$LIBS
16592: LIBS="-ldld $LIBS"
1.150 moko 16593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16594: /* end confdefs.h. */
1.10 paf 16595:
1.150 moko 16596: /* Override any GCC internal prototype to avoid an error.
16597: Use char because int might match the return type of a GCC
16598: builtin and then its argument prototype would still apply. */
1.66 paf 16599: #ifdef __cplusplus
16600: extern "C"
16601: #endif
16602: char shl_load ();
16603: int
16604: main ()
16605: {
1.150 moko 16606: return shl_load ();
1.66 paf 16607: ;
16608: return 0;
16609: }
16610: _ACEOF
1.150 moko 16611: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16612: ac_cv_lib_dld_shl_load=yes
16613: else
1.150 moko 16614: ac_cv_lib_dld_shl_load=no
1.66 paf 16615: fi
1.150 moko 16616: rm -f core conftest.err conftest.$ac_objext \
16617: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16618: LIBS=$ac_check_lib_save_LIBS
16619: fi
1.150 moko 16620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16621: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16622: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16623:
1.150 moko 16624: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16625:
1.128 moko 16626: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16627: LIBADD_SHL_LOAD="-ldld"
16628: fi
16629:
16630: fi
16631:
16632:
16633:
16634: case $host_os in
16635: darwin[1567].*)
16636: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16637: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16638: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16639:
16640: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16641:
1.150 moko 16642: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16643: fi
1.128 moko 16644:
1.150 moko 16645: ;;
16646: beos*)
1.128 moko 16647: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16648: ;;
16649: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16650: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16651: "
16652: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16653: ac_have_decl=1
1.128 moko 16654: else
1.150 moko 16655: ac_have_decl=0
1.128 moko 16656: fi
16657:
16658: cat >>confdefs.h <<_ACEOF
1.150 moko 16659: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16660: _ACEOF
16661:
16662: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16663: ;;
16664: esac
16665:
1.150 moko 16666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16667: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16668: if ${ac_cv_lib_dld_dld_link+:} false; then :
16669: $as_echo_n "(cached) " >&6
1.66 paf 16670: else
16671: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16672: LIBS="-ldld $LIBS"
1.150 moko 16673: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16674: /* end confdefs.h. */
1.62 paf 16675:
1.150 moko 16676: /* Override any GCC internal prototype to avoid an error.
16677: Use char because int might match the return type of a GCC
16678: builtin and then its argument prototype would still apply. */
1.66 paf 16679: #ifdef __cplusplus
16680: extern "C"
16681: #endif
1.128 moko 16682: char dld_link ();
1.66 paf 16683: int
16684: main ()
16685: {
1.150 moko 16686: return dld_link ();
1.66 paf 16687: ;
16688: return 0;
16689: }
16690: _ACEOF
1.150 moko 16691: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16692: ac_cv_lib_dld_dld_link=yes
1.66 paf 16693: else
1.150 moko 16694: ac_cv_lib_dld_dld_link=no
1.128 moko 16695: fi
1.150 moko 16696: rm -f core conftest.err conftest.$ac_objext \
16697: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16698: LIBS=$ac_check_lib_save_LIBS
16699: fi
1.150 moko 16700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16701: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16702: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16703:
1.150 moko 16704: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16705:
16706: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16707: fi
16708:
16709:
16710:
16711:
16712: LT_DLPREOPEN=
16713: if test -n "$LT_DLLOADERS"
16714: then
16715: for lt_loader in $LT_DLLOADERS; do
16716: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16717: done
16718:
1.150 moko 16719: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16720:
16721: fi
16722:
16723:
16724: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16725:
16726:
16727: ac_ext=c
16728: ac_cpp='$CPP $CPPFLAGS'
16729: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16730: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16731: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16732:
16733:
1.150 moko 16734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16735: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16736: if ${lt_cv_sys_symbol_underscore+:} false; then :
16737: $as_echo_n "(cached) " >&6
1.128 moko 16738: else
16739: lt_cv_sys_symbol_underscore=no
16740: cat > conftest.$ac_ext <<_LT_EOF
16741: void nm_test_func(){}
16742: int main(){nm_test_func;return 0;}
16743: _LT_EOF
1.150 moko 16744: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16745: (eval $ac_compile) 2>&5
16746: ac_status=$?
1.150 moko 16747: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16748: test $ac_status = 0; }; then
1.128 moko 16749: # Now try to grab the symbols.
16750: ac_nlist=conftest.nm
1.150 moko 16751: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16752: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16753: ac_status=$?
1.150 moko 16754: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16755: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16756: # See whether the symbols have a leading underscore.
16757: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16758: lt_cv_sys_symbol_underscore=yes
16759: else
16760: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16761: :
16762: else
16763: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16764: fi
16765: fi
16766: else
16767: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16768: fi
16769: else
16770: echo "configure: failed program was:" >&5
16771: cat conftest.c >&5
16772: fi
16773: rm -rf conftest*
1.29 paf 16774:
1.66 paf 16775: fi
1.150 moko 16776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16777: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16778: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16779:
1.62 paf 16780:
1.128 moko 16781: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16782: if test x"$libltdl_cv_func_dlopen" = xyes ||
16783: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16785: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16786: if ${libltdl_cv_need_uscore+:} false; then :
16787: $as_echo_n "(cached) " >&6
1.66 paf 16788: else
1.128 moko 16789: libltdl_cv_need_uscore=unknown
16790: save_LIBS="$LIBS"
16791: LIBS="$LIBS $LIBADD_DLOPEN"
16792: if test "$cross_compiling" = yes; then :
16793: libltdl_cv_need_uscore=cross
16794: else
16795: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16796: lt_status=$lt_dlunknown
16797: cat > conftest.$ac_ext <<_LT_EOF
16798: #line $LINENO "configure"
16799: #include "confdefs.h"
16800:
1.66 paf 16801: #if HAVE_DLFCN_H
1.128 moko 16802: #include <dlfcn.h>
16803: #endif
16804:
16805: #include <stdio.h>
16806:
16807: #ifdef RTLD_GLOBAL
16808: # define LT_DLGLOBAL RTLD_GLOBAL
16809: #else
16810: # ifdef DL_GLOBAL
16811: # define LT_DLGLOBAL DL_GLOBAL
16812: # else
16813: # define LT_DLGLOBAL 0
16814: # endif
16815: #endif
16816:
16817: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16818: find out it does not work in some platform. */
16819: #ifndef LT_DLLAZY_OR_NOW
16820: # ifdef RTLD_LAZY
16821: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16822: # else
16823: # ifdef DL_LAZY
16824: # define LT_DLLAZY_OR_NOW DL_LAZY
16825: # else
16826: # ifdef RTLD_NOW
16827: # define LT_DLLAZY_OR_NOW RTLD_NOW
16828: # else
16829: # ifdef DL_NOW
16830: # define LT_DLLAZY_OR_NOW DL_NOW
16831: # else
16832: # define LT_DLLAZY_OR_NOW 0
16833: # endif
16834: # endif
16835: # endif
16836: # endif
16837: #endif
16838:
16839: /* When -fvisbility=hidden is used, assume the code has been annotated
16840: correspondingly for the symbols needed. */
16841: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16842: int fnord () __attribute__((visibility("default")));
1.66 paf 16843: #endif
1.62 paf 16844:
1.128 moko 16845: int fnord () { return 42; }
16846: int main ()
1.66 paf 16847: {
1.128 moko 16848: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16849: int status = $lt_dlunknown;
16850:
16851: if (self)
16852: {
16853: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16854: else
16855: {
16856: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16857: else puts (dlerror ());
16858: }
16859: /* dlclose (self); */
16860: }
16861: else
16862: puts (dlerror ());
16863:
16864: return status;
1.66 paf 16865: }
1.128 moko 16866: _LT_EOF
1.150 moko 16867: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16868: (eval $ac_link) 2>&5
1.66 paf 16869: ac_status=$?
1.150 moko 16870: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16871: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16872: (./conftest; exit; ) >&5 2>/dev/null
16873: lt_status=$?
16874: case x$lt_status in
16875: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16876: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16877: x$lt_dlunknown|x*) ;;
16878: esac
16879: else :
16880: # compilation failed
16881:
16882: fi
16883: fi
16884: rm -fr conftest*
16885:
16886: LIBS="$save_LIBS"
16887:
16888: fi
1.150 moko 16889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16890: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16891: fi
16892: fi
16893:
16894: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16895:
1.150 moko 16896: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16897:
1.128 moko 16898: fi
16899:
1.150 moko 16900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16901: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16902: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16903: $as_echo_n "(cached) " >&6
1.66 paf 16904: else
1.128 moko 16905: # PORTME does your system automatically load deplibs for dlopen?
16906: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16907: # For now, we just catch OSes we know something about -- in the
16908: # future, we'll try test this programmatically.
16909: lt_cv_sys_dlopen_deplibs=unknown
16910: case $host_os in
16911: aix3*|aix4.1.*|aix4.2.*)
16912: # Unknown whether this is true for these versions of AIX, but
16913: # we want this `case' here to explicitly catch those versions.
16914: lt_cv_sys_dlopen_deplibs=unknown
16915: ;;
16916: aix[4-9]*)
16917: lt_cv_sys_dlopen_deplibs=yes
16918: ;;
16919: amigaos*)
16920: case $host_cpu in
16921: powerpc)
16922: lt_cv_sys_dlopen_deplibs=no
16923: ;;
16924: esac
16925: ;;
16926: darwin*)
16927: # Assuming the user has installed a libdl from somewhere, this is true
16928: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16929: lt_cv_sys_dlopen_deplibs=yes
16930: ;;
16931: freebsd* | dragonfly*)
16932: lt_cv_sys_dlopen_deplibs=yes
16933: ;;
16934: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16935: # GNU and its variants, using gnu ld.so (Glibc)
16936: lt_cv_sys_dlopen_deplibs=yes
16937: ;;
16938: hpux10*|hpux11*)
16939: lt_cv_sys_dlopen_deplibs=yes
16940: ;;
16941: interix*)
16942: lt_cv_sys_dlopen_deplibs=yes
16943: ;;
16944: irix[12345]*|irix6.[01]*)
16945: # Catch all versions of IRIX before 6.2, and indicate that we don't
16946: # know how it worked for any of those versions.
16947: lt_cv_sys_dlopen_deplibs=unknown
16948: ;;
16949: irix*)
16950: # The case above catches anything before 6.2, and it's known that
16951: # at 6.2 and later dlopen does load deplibs.
16952: lt_cv_sys_dlopen_deplibs=yes
16953: ;;
16954: netbsd*)
16955: lt_cv_sys_dlopen_deplibs=yes
16956: ;;
16957: openbsd*)
16958: lt_cv_sys_dlopen_deplibs=yes
16959: ;;
16960: osf[1234]*)
16961: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16962: # it did *not* use an RPATH in a shared library to find objects the
16963: # library depends on, so we explicitly say `no'.
16964: lt_cv_sys_dlopen_deplibs=no
16965: ;;
16966: osf5.0|osf5.0a|osf5.1)
16967: # dlopen *does* load deplibs and with the right loader patch applied
16968: # it even uses RPATH in a shared library to search for shared objects
16969: # that the library depends on, but there's no easy way to know if that
16970: # patch is installed. Since this is the case, all we can really
16971: # say is unknown -- it depends on the patch being installed. If
16972: # it is, this changes to `yes'. Without it, it would be `no'.
16973: lt_cv_sys_dlopen_deplibs=unknown
16974: ;;
16975: osf*)
16976: # the two cases above should catch all versions of osf <= 5.1. Read
16977: # the comments above for what we know about them.
16978: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16979: # is used to find them so we can finally say `yes'.
16980: lt_cv_sys_dlopen_deplibs=yes
16981: ;;
16982: qnx*)
16983: lt_cv_sys_dlopen_deplibs=yes
16984: ;;
16985: solaris*)
16986: lt_cv_sys_dlopen_deplibs=yes
16987: ;;
16988: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16989: libltdl_cv_sys_dlopen_deplibs=yes
16990: ;;
16991: esac
16992:
16993: fi
1.150 moko 16994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16995: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 16996: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16997:
1.150 moko 16998: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 16999:
17000: fi
17001:
17002: :
17003:
17004: for ac_header in argz.h
1.150 moko 17005: do :
17006: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
17007: "
17008: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 17009: cat >>confdefs.h <<_ACEOF
1.150 moko 17010: #define HAVE_ARGZ_H 1
1.128 moko 17011: _ACEOF
17012:
1.66 paf 17013: fi
1.62 paf 17014:
1.128 moko 17015: done
17016:
1.29 paf 17017:
1.150 moko 17018: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 17019: # include <argz.h>
17020: #endif
1.150 moko 17021: "
17022: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 17023:
1.128 moko 17024: cat >>confdefs.h <<_ACEOF
17025: #define HAVE_ERROR_T 1
1.62 paf 17026: _ACEOF
1.16 paf 17027:
17028:
1.128 moko 17029: else
1.16 paf 17030:
1.150 moko 17031: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 17032:
1.12 paf 17033:
1.150 moko 17034: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 17035:
1.66 paf 17036: fi
1.12 paf 17037:
1.128 moko 17038:
17039: ARGZ_H=
17040: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17041: argz_next argz_stringify
1.150 moko 17042: do :
17043: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17044: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17045: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17046: cat >>confdefs.h <<_ACEOF
1.150 moko 17047: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17048: _ACEOF
17049:
17050: else
17051: ARGZ_H=argz.h;
17052:
17053: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17054:
17055: fi
17056: done
17057:
17058:
1.150 moko 17059: if test -z "$ARGZ_H"; then :
17060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
17061: $as_echo_n "checking if argz actually works... " >&6; }
17062: if ${lt_cv_sys_argz_works+:} false; then :
17063: $as_echo_n "(cached) " >&6
1.128 moko 17064: else
17065: case $host_os in #(
17066: *cygwin*)
17067: lt_cv_sys_argz_works=no
17068: if test "$cross_compiling" != no; then
17069: lt_cv_sys_argz_works="guessing no"
17070: else
17071: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17072: save_IFS=$IFS
17073: IFS=-.
17074: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17075: IFS=$save_IFS
17076: lt_os_major=${2-0}
17077: lt_os_minor=${3-0}
17078: lt_os_micro=${4-0}
17079: if test "$lt_os_major" -gt 1 \
17080: || { test "$lt_os_major" -eq 1 \
17081: && { test "$lt_os_minor" -gt 5 \
17082: || { test "$lt_os_minor" -eq 5 \
17083: && test "$lt_os_micro" -gt 24; }; }; }; then
17084: lt_cv_sys_argz_works=yes
17085: fi
17086: fi
17087: ;; #(
17088: *) lt_cv_sys_argz_works=yes ;;
17089: esac
17090: fi
1.150 moko 17091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
17092: $as_echo "$lt_cv_sys_argz_works" >&6; }
17093: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 17094:
1.150 moko 17095: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 17096:
1.62 paf 17097: else
1.128 moko 17098: ARGZ_H=argz.h
17099:
17100:
17101: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17102:
17103: fi
1.62 paf 17104: fi
1.128 moko 17105:
17106:
17107:
1.150 moko 17108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
17109: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
17110: if ${libltdl_cv_preloaded_symbols+:} false; then :
17111: $as_echo_n "(cached) " >&6
1.128 moko 17112: else
17113: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17114: libltdl_cv_preloaded_symbols=yes
17115: else
17116: libltdl_cv_preloaded_symbols=no
17117: fi
17118:
1.62 paf 17119: fi
1.150 moko 17120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
17121: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 17122: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17123:
1.150 moko 17124: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 17125:
17126: fi
17127:
1.150 moko 17128:
17129:
1.128 moko 17130: # Set options
17131:
17132:
17133:
17134:
17135:
17136:
17137:
17138:
17139:
17140:
1.66 paf 17141:
17142:
1.150 moko 17143: # Check whether --with-included_ltdl was given.
17144: if test "${with_included_ltdl+set}" = set; then :
17145: withval=$with_included_ltdl;
17146: fi
1.64 paf 17147:
17148:
1.128 moko 17149: if test "x$with_included_ltdl" != xyes; then
17150: # We are not being forced to use the included libltdl sources, so
17151: # decide whether there is a useful installed version we can use.
1.150 moko 17152: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 17153:
1.150 moko 17154: "
17155: if test "x$ac_cv_header_ltdl_h" = xyes; then :
17156: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 17157: #include <ltdl.h>
1.150 moko 17158: "
17159: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
17160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
17161: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
17162: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
17163: $as_echo_n "(cached) " >&6
1.79 paf 17164: else
1.128 moko 17165: ac_check_lib_save_LIBS=$LIBS
17166: LIBS="-lltdl $LIBS"
1.150 moko 17167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 17168: /* end confdefs.h. */
1.128 moko 17169:
1.150 moko 17170: /* Override any GCC internal prototype to avoid an error.
17171: Use char because int might match the return type of a GCC
17172: builtin and then its argument prototype would still apply. */
1.128 moko 17173: #ifdef __cplusplus
17174: extern "C"
17175: #endif
17176: char lt_dladvise_preload ();
1.79 paf 17177: int
17178: main ()
17179: {
1.150 moko 17180: return lt_dladvise_preload ();
1.79 paf 17181: ;
17182: return 0;
17183: }
17184: _ACEOF
1.150 moko 17185: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 17186: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17187: else
1.150 moko 17188: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 17189: fi
1.150 moko 17190: rm -f core conftest.err conftest.$ac_objext \
17191: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17192: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17193: fi
1.150 moko 17194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17195: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
17196: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 17197: with_included_ltdl=no
1.79 paf 17198: else
1.128 moko 17199: with_included_ltdl=yes
17200: fi
17201:
1.79 paf 17202: else
1.128 moko 17203: with_included_ltdl=yes
17204: fi
1.79 paf 17205:
1.128 moko 17206: else
17207: with_included_ltdl=yes
1.79 paf 17208: fi
1.128 moko 17209:
17210:
1.79 paf 17211: fi
1.128 moko 17212:
17213:
17214:
17215:
1.150 moko 17216: # Check whether --with-ltdl_include was given.
17217: if test "${with_ltdl_include+set}" = set; then :
17218: withval=$with_ltdl_include;
17219: fi
1.128 moko 17220:
17221:
17222: if test -n "$with_ltdl_include"; then
17223: if test -f "$with_ltdl_include/ltdl.h"; then :
17224: else
1.150 moko 17225: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 17226: fi
17227: else
17228: with_ltdl_include=no
1.79 paf 17229: fi
1.128 moko 17230:
17231:
1.150 moko 17232: # Check whether --with-ltdl_lib was given.
17233: if test "${with_ltdl_lib+set}" = set; then :
17234: withval=$with_ltdl_lib;
17235: fi
1.128 moko 17236:
17237:
17238: if test -n "$with_ltdl_lib"; then
17239: if test -f "$with_ltdl_lib/libltdl.la"; then :
17240: else
1.150 moko 17241: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 17242: fi
17243: else
17244: with_ltdl_lib=no
1.79 paf 17245: fi
17246:
1.128 moko 17247: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17248: ,yes,no,no,)
17249: case $enable_ltdl_convenience in
1.150 moko 17250: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 17251: "") enable_ltdl_convenience=yes
17252: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17253: esac
1.150 moko 17254: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 17255: LTDLDEPS=$LIBLTDL
17256: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17257:
17258:
17259:
17260:
17261:
17262: # For backwards non-gettext consistent compatibility...
17263: INCLTDL="$LTDLINCL"
17264:
1.79 paf 17265:
1.128 moko 17266: ;;
17267: ,no,no,no,)
17268: # If the included ltdl is not to be used, then use the
17269: # preinstalled libltdl we found.
1.79 paf 17270:
1.150 moko 17271: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 17272:
1.128 moko 17273: LIBLTDL=-lltdl
17274: LTDLDEPS=
17275: LTDLINCL=
17276: ;;
17277: ,no*,no,*)
1.150 moko 17278: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17279: ;;
17280: *) with_included_ltdl=no
17281: LIBLTDL="-L$with_ltdl_lib -lltdl"
17282: LTDLDEPS=
17283: LTDLINCL="-I$with_ltdl_include"
17284: ;;
17285: esac
17286: INCLTDL="$LTDLINCL"
17287:
17288: # Report our decision...
1.150 moko 17289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17290: $as_echo_n "checking where to find libltdl headers... " >&6; }
17291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17292: $as_echo "$LTDLINCL" >&6; }
17293: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17294: $as_echo_n "checking where to find libltdl library... " >&6; }
17295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17296: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17297:
17298:
17299:
1.150 moko 17300: # Check whether --enable-ltdl-install was given.
17301: if test "${enable_ltdl_install+set}" = set; then :
17302: enableval=$enable_ltdl_install;
17303: fi
1.128 moko 17304:
17305:
17306: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17307: *yes*) ;;
17308: *) enable_ltdl_convenience=yes ;;
17309: esac
17310:
1.150 moko 17311: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17312: INSTALL_LTDL_TRUE=
17313: INSTALL_LTDL_FALSE='#'
17314: else
17315: INSTALL_LTDL_TRUE='#'
17316: INSTALL_LTDL_FALSE=
17317: fi
17318:
1.150 moko 17319: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17320: CONVENIENCE_LTDL_TRUE=
17321: CONVENIENCE_LTDL_FALSE='#'
17322: else
17323: CONVENIENCE_LTDL_TRUE='#'
17324: CONVENIENCE_LTDL_FALSE=
17325: fi
17326:
17327:
17328:
1.150 moko 17329: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17330:
17331:
17332:
17333:
17334: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17335: # the user used. This is so that ltdl.h can pick up the parent projects
17336: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17337: # definitions required by ltdl.c.
17338: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17339:
17340:
17341:
1.150 moko 17342: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17343: do :
17344: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17345: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17346: "
17347: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17348: cat >>confdefs.h <<_ACEOF
17349: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17350: _ACEOF
1.128 moko 17351:
1.150 moko 17352: fi
1.128 moko 17353:
1.150 moko 17354: done
1.128 moko 17355:
17356:
1.150 moko 17357: for ac_func in closedir opendir readdir
17358: do :
17359: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17360: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17361: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17362: cat >>confdefs.h <<_ACEOF
17363: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17364: _ACEOF
1.66 paf 17365:
17366: else
1.64 paf 17367:
1.66 paf 17368:
1.128 moko 17369: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17370:
1.66 paf 17371: fi
1.128 moko 17372: done
17373:
17374: for ac_func in strlcat strlcpy
1.150 moko 17375: do :
17376: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17377: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17378: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17379: cat >>confdefs.h <<_ACEOF
1.150 moko 17380: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17381: _ACEOF
17382:
17383: else
17384:
17385:
17386: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17387:
1.62 paf 17388: fi
1.128 moko 17389: done
17390:
17391:
1.64 paf 17392:
1.128 moko 17393: cat >>confdefs.h <<_ACEOF
17394: #define LT_LIBEXT "$libext"
1.62 paf 17395: _ACEOF
1.64 paf 17396:
1.128 moko 17397:
17398: name=
17399: eval "lt_libprefix=\"$libname_spec\""
17400:
17401: cat >>confdefs.h <<_ACEOF
17402: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17403: _ACEOF
1.128 moko 17404:
17405:
17406: name=ltdl
17407: eval "LTDLOPEN=\"$libname_spec\""
17408:
17409:
17410:
17411:
17412:
17413:
17414:
17415:
17416: # Only expand once:
17417:
17418:
17419:
17420:
1.150 moko 17421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17422: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17423: if ${ac_cv_c_bigendian+:} false; then :
17424: $as_echo_n "(cached) " >&6
17425: else
17426: ac_cv_c_bigendian=unknown
17427: # See if we're dealing with a universal compiler.
17428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429: /* end confdefs.h. */
17430: #ifndef __APPLE_CC__
17431: not a universal capable compiler
17432: #endif
17433: typedef int dummy;
17434:
17435: _ACEOF
17436: if ac_fn_c_try_compile "$LINENO"; then :
17437:
17438: # Check for potential -arch flags. It is not universal unless
17439: # there are at least two -arch flags with different values.
17440: ac_arch=
17441: ac_prev=
17442: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17443: if test -n "$ac_prev"; then
17444: case $ac_word in
17445: i?86 | x86_64 | ppc | ppc64)
17446: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17447: ac_arch=$ac_word
17448: else
17449: ac_cv_c_bigendian=universal
17450: break
17451: fi
17452: ;;
17453: esac
17454: ac_prev=
17455: elif test "x$ac_word" = "x-arch"; then
17456: ac_prev=arch
17457: fi
17458: done
17459: fi
17460: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461: if test $ac_cv_c_bigendian = unknown; then
17462: # See if sys/param.h defines the BYTE_ORDER macro.
17463: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17464: /* end confdefs.h. */
1.128 moko 17465: #include <sys/types.h>
1.150 moko 17466: #include <sys/param.h>
1.128 moko 17467:
17468: int
17469: main ()
17470: {
1.150 moko 17471: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17472: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17473: && LITTLE_ENDIAN)
17474: bogus endian macros
17475: #endif
1.64 paf 17476:
1.128 moko 17477: ;
17478: return 0;
17479: }
1.66 paf 17480: _ACEOF
1.150 moko 17481: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17482: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17483: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17484: /* end confdefs.h. */
1.128 moko 17485: #include <sys/types.h>
1.150 moko 17486: #include <sys/param.h>
1.64 paf 17487:
17488: int
17489: main ()
1.128 moko 17490: {
17491: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17492: not big endian
17493: #endif
1.128 moko 17494:
17495: ;
17496: return 0;
1.64 paf 17497: }
17498: _ACEOF
1.150 moko 17499: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17500: ac_cv_c_bigendian=yes
1.64 paf 17501: else
1.150 moko 17502: ac_cv_c_bigendian=no
17503: fi
17504: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17505: fi
17506: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17507: fi
17508: if test $ac_cv_c_bigendian = unknown; then
17509: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511: /* end confdefs.h. */
17512: #include <limits.h>
1.64 paf 17513:
1.150 moko 17514: int
17515: main ()
17516: {
17517: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17518: bogus endian macros
17519: #endif
1.66 paf 17520:
1.150 moko 17521: ;
17522: return 0;
17523: }
1.62 paf 17524: _ACEOF
1.150 moko 17525: if ac_fn_c_try_compile "$LINENO"; then :
17526: # It does; now see whether it defined to _BIG_ENDIAN or not.
17527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17528: /* end confdefs.h. */
1.150 moko 17529: #include <limits.h>
17530:
1.128 moko 17531: int
17532: main ()
17533: {
1.150 moko 17534: #ifndef _BIG_ENDIAN
17535: not big endian
17536: #endif
17537:
1.128 moko 17538: ;
17539: return 0;
17540: }
1.62 paf 17541: _ACEOF
1.150 moko 17542: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17543: ac_cv_c_bigendian=yes
1.150 moko 17544: else
17545: ac_cv_c_bigendian=no
1.128 moko 17546: fi
1.150 moko 17547: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17548: fi
1.150 moko 17549: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17550: fi
17551: if test $ac_cv_c_bigendian = unknown; then
17552: # Compile a test program.
17553: if test "$cross_compiling" = yes; then :
17554: # Try to guess by grepping values from an object file.
17555: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556: /* end confdefs.h. */
17557: short int ascii_mm[] =
17558: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17559: short int ascii_ii[] =
17560: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17561: int use_ascii (int i) {
17562: return ascii_mm[i] + ascii_ii[i];
17563: }
17564: short int ebcdic_ii[] =
17565: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17566: short int ebcdic_mm[] =
17567: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17568: int use_ebcdic (int i) {
17569: return ebcdic_mm[i] + ebcdic_ii[i];
17570: }
17571: extern int foo;
1.62 paf 17572:
1.150 moko 17573: int
17574: main ()
17575: {
17576: return use_ascii (foo) == use_ebcdic (foo);
17577: ;
17578: return 0;
17579: }
17580: _ACEOF
17581: if ac_fn_c_try_compile "$LINENO"; then :
17582: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17583: ac_cv_c_bigendian=yes
17584: fi
17585: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17586: if test "$ac_cv_c_bigendian" = unknown; then
17587: ac_cv_c_bigendian=no
17588: else
17589: # finding both strings is unlikely to happen, but who knows?
17590: ac_cv_c_bigendian=unknown
17591: fi
17592: fi
1.128 moko 17593: fi
1.150 moko 17594: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17595: else
1.150 moko 17596: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17597: /* end confdefs.h. */
1.150 moko 17598: $ac_includes_default
1.128 moko 17599: int
17600: main ()
17601: {
1.150 moko 17602:
17603: /* Are we little or big endian? From Harbison&Steele. */
17604: union
17605: {
17606: long int l;
17607: char c[sizeof (long int)];
17608: } u;
17609: u.l = 1;
17610: return u.c[sizeof (long int) - 1] == 1;
17611:
17612: ;
17613: return 0;
1.128 moko 17614: }
17615: _ACEOF
1.150 moko 17616: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17617: ac_cv_c_bigendian=no
17618: else
1.150 moko 17619: ac_cv_c_bigendian=yes
1.128 moko 17620: fi
1.150 moko 17621: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17622: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17623: fi
1.150 moko 17624:
17625: fi
1.66 paf 17626: fi
1.150 moko 17627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17628: $as_echo "$ac_cv_c_bigendian" >&6; }
17629: case $ac_cv_c_bigendian in #(
17630: yes)
17631:
17632: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17633:
17634: ;; #(
17635: no)
1.128 moko 17636:
1.150 moko 17637: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17638:
1.150 moko 17639: ;; #(
17640: universal)
1.128 moko 17641:
1.150 moko 17642: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17643:
1.150 moko 17644: ;; #(
17645: *)
17646: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17647: ;;
1.150 moko 17648: esac
1.66 paf 17649:
17650:
1.150 moko 17651: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17652: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17653:
1.66 paf 17654: else
1.1 paf 17655:
1.66 paf 17656: cat >>confdefs.h <<_ACEOF
1.150 moko 17657: #define size_t unsigned int
1.66 paf 17658: _ACEOF
1.62 paf 17659:
17660: fi
1.66 paf 17661:
1.156 moko 17662: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17663: if test "x$ac_cv_type_ssize_t" = xyes; then :
17664:
17665: else
17666:
17667: cat >>confdefs.h <<_ACEOF
17668: #define ssize_t int
17669: _ACEOF
17670:
17671: fi
17672:
1.159 moko 17673: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17674: case $ac_cv_c_uint8_t in #(
17675: no|yes) ;; #(
17676: *)
17677:
17678: $as_echo "#define _UINT8_T 1" >>confdefs.h
17679:
17680:
17681: cat >>confdefs.h <<_ACEOF
17682: #define uint8_t $ac_cv_c_uint8_t
17683: _ACEOF
17684: ;;
17685: esac
17686:
1.165 moko 17687: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17688: case $ac_cv_c_uint16_t in #(
17689: no|yes) ;; #(
17690: *)
17691:
17692:
17693: cat >>confdefs.h <<_ACEOF
17694: #define uint16_t $ac_cv_c_uint16_t
17695: _ACEOF
17696: ;;
17697: esac
17698:
1.156 moko 17699: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17700: case $ac_cv_c_uint32_t in #(
17701: no|yes) ;; #(
17702: *)
17703:
17704: $as_echo "#define _UINT32_T 1" >>confdefs.h
17705:
17706:
17707: cat >>confdefs.h <<_ACEOF
17708: #define uint32_t $ac_cv_c_uint32_t
17709: _ACEOF
17710: ;;
17711: esac
1.128 moko 17712:
1.159 moko 17713: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17714: case $ac_cv_c_uint64_t in #(
17715: no|yes) ;; #(
17716: *)
17717:
17718: $as_echo "#define _UINT64_T 1" >>confdefs.h
17719:
17720:
17721: cat >>confdefs.h <<_ACEOF
17722: #define uint64_t $ac_cv_c_uint64_t
17723: _ACEOF
17724: ;;
17725: esac
17726:
17727:
1.161 moko 17728: ac_header_dirent=no
17729: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17730: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17732: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17733: if eval \${$as_ac_Header+:} false; then :
17734: $as_echo_n "(cached) " >&6
17735: else
17736: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737: /* end confdefs.h. */
17738: #include <sys/types.h>
17739: #include <$ac_hdr>
17740:
17741: int
17742: main ()
17743: {
17744: if ((DIR *) 0)
17745: return 0;
17746: ;
17747: return 0;
17748: }
17749: _ACEOF
17750: if ac_fn_c_try_compile "$LINENO"; then :
17751: eval "$as_ac_Header=yes"
17752: else
17753: eval "$as_ac_Header=no"
17754: fi
17755: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756: fi
17757: eval ac_res=\$$as_ac_Header
17758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17759: $as_echo "$ac_res" >&6; }
17760: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17761: cat >>confdefs.h <<_ACEOF
17762: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17763: _ACEOF
17764:
17765: ac_header_dirent=$ac_hdr; break
17766: fi
17767:
17768: done
17769: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17770: if test $ac_header_dirent = dirent.h; then
17771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17772: $as_echo_n "checking for library containing opendir... " >&6; }
17773: if ${ac_cv_search_opendir+:} false; then :
17774: $as_echo_n "(cached) " >&6
17775: else
17776: ac_func_search_save_LIBS=$LIBS
17777: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778: /* end confdefs.h. */
17779:
17780: /* Override any GCC internal prototype to avoid an error.
17781: Use char because int might match the return type of a GCC
17782: builtin and then its argument prototype would still apply. */
17783: #ifdef __cplusplus
17784: extern "C"
17785: #endif
17786: char opendir ();
17787: int
17788: main ()
17789: {
17790: return opendir ();
17791: ;
17792: return 0;
17793: }
17794: _ACEOF
17795: for ac_lib in '' dir; do
17796: if test -z "$ac_lib"; then
17797: ac_res="none required"
17798: else
17799: ac_res=-l$ac_lib
17800: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17801: fi
17802: if ac_fn_c_try_link "$LINENO"; then :
17803: ac_cv_search_opendir=$ac_res
17804: fi
17805: rm -f core conftest.err conftest.$ac_objext \
17806: conftest$ac_exeext
17807: if ${ac_cv_search_opendir+:} false; then :
17808: break
17809: fi
17810: done
17811: if ${ac_cv_search_opendir+:} false; then :
17812:
17813: else
17814: ac_cv_search_opendir=no
17815: fi
17816: rm conftest.$ac_ext
17817: LIBS=$ac_func_search_save_LIBS
17818: fi
17819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17820: $as_echo "$ac_cv_search_opendir" >&6; }
17821: ac_res=$ac_cv_search_opendir
17822: if test "$ac_res" != no; then :
17823: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17824:
17825: fi
17826:
17827: else
17828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17829: $as_echo_n "checking for library containing opendir... " >&6; }
17830: if ${ac_cv_search_opendir+:} false; then :
17831: $as_echo_n "(cached) " >&6
17832: else
17833: ac_func_search_save_LIBS=$LIBS
17834: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835: /* end confdefs.h. */
17836:
17837: /* Override any GCC internal prototype to avoid an error.
17838: Use char because int might match the return type of a GCC
17839: builtin and then its argument prototype would still apply. */
17840: #ifdef __cplusplus
17841: extern "C"
17842: #endif
17843: char opendir ();
17844: int
17845: main ()
17846: {
17847: return opendir ();
17848: ;
17849: return 0;
17850: }
17851: _ACEOF
17852: for ac_lib in '' x; do
17853: if test -z "$ac_lib"; then
17854: ac_res="none required"
17855: else
17856: ac_res=-l$ac_lib
17857: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17858: fi
17859: if ac_fn_c_try_link "$LINENO"; then :
17860: ac_cv_search_opendir=$ac_res
17861: fi
17862: rm -f core conftest.err conftest.$ac_objext \
17863: conftest$ac_exeext
17864: if ${ac_cv_search_opendir+:} false; then :
17865: break
17866: fi
17867: done
17868: if ${ac_cv_search_opendir+:} false; then :
17869:
17870: else
17871: ac_cv_search_opendir=no
17872: fi
17873: rm conftest.$ac_ext
17874: LIBS=$ac_func_search_save_LIBS
17875: fi
17876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17877: $as_echo "$ac_cv_search_opendir" >&6; }
17878: ac_res=$ac_cv_search_opendir
17879: if test "$ac_res" != no; then :
17880: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17881:
17882: fi
17883:
17884: fi
17885:
17886:
17887:
17888: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17889: #include <sys/types.h>
17890: #ifdef HAVE_DIRENT_H
17891: # include <dirent.h>
17892: #else
17893: # define dirent direct
17894: # ifdef HAVE_SYS_NDIR_H
17895: # include <sys/ndir.h>
17896: # endif
17897: # ifdef HAVE_SYS_DIR_H
17898: # include <sys/dir.h>
17899: # endif
17900: # ifdef HAVE_NDIR_H
17901: # include <ndir.h>
17902: # endif
17903: #endif
17904:
17905: "
17906: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17907:
17908: cat >>confdefs.h <<_ACEOF
17909: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17910: _ACEOF
17911:
17912:
17913: fi
17914:
17915:
1.159 moko 17916:
1.171 moko 17917: # Check whether --enable-largefile was given.
17918: if test "${enable_largefile+set}" = set; then :
17919: enableval=$enable_largefile;
17920: fi
17921:
17922: if test "$enable_largefile" != no; then
17923:
17924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17925: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17926: if ${ac_cv_sys_largefile_CC+:} false; then :
17927: $as_echo_n "(cached) " >&6
17928: else
17929: ac_cv_sys_largefile_CC=no
17930: if test "$GCC" != yes; then
17931: ac_save_CC=$CC
17932: while :; do
17933: # IRIX 6.2 and later do not support large files by default,
17934: # so use the C compiler's -n32 option if that helps.
17935: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936: /* end confdefs.h. */
17937: #include <sys/types.h>
17938: /* Check that off_t can represent 2**63 - 1 correctly.
17939: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17940: since some C++ compilers masquerading as C compilers
17941: incorrectly reject 9223372036854775807. */
17942: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17943: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17944: && LARGE_OFF_T % 2147483647 == 1)
17945: ? 1 : -1];
17946: int
17947: main ()
17948: {
17949:
17950: ;
17951: return 0;
17952: }
17953: _ACEOF
17954: if ac_fn_c_try_compile "$LINENO"; then :
17955: break
17956: fi
17957: rm -f core conftest.err conftest.$ac_objext
17958: CC="$CC -n32"
17959: if ac_fn_c_try_compile "$LINENO"; then :
17960: ac_cv_sys_largefile_CC=' -n32'; break
17961: fi
17962: rm -f core conftest.err conftest.$ac_objext
17963: break
17964: done
17965: CC=$ac_save_CC
17966: rm -f conftest.$ac_ext
17967: fi
17968: fi
17969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17970: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17971: if test "$ac_cv_sys_largefile_CC" != no; then
17972: CC=$CC$ac_cv_sys_largefile_CC
17973: fi
17974:
17975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17976: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17977: if ${ac_cv_sys_file_offset_bits+:} false; then :
17978: $as_echo_n "(cached) " >&6
17979: else
17980: while :; do
17981: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17982: /* end confdefs.h. */
17983: #include <sys/types.h>
17984: /* Check that off_t can represent 2**63 - 1 correctly.
17985: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17986: since some C++ compilers masquerading as C compilers
17987: incorrectly reject 9223372036854775807. */
17988: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17989: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17990: && LARGE_OFF_T % 2147483647 == 1)
17991: ? 1 : -1];
17992: int
17993: main ()
17994: {
17995:
17996: ;
17997: return 0;
17998: }
17999: _ACEOF
18000: if ac_fn_c_try_compile "$LINENO"; then :
18001: ac_cv_sys_file_offset_bits=no; break
18002: fi
18003: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005: /* end confdefs.h. */
18006: #define _FILE_OFFSET_BITS 64
18007: #include <sys/types.h>
18008: /* Check that off_t can represent 2**63 - 1 correctly.
18009: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18010: since some C++ compilers masquerading as C compilers
18011: incorrectly reject 9223372036854775807. */
18012: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18013: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18014: && LARGE_OFF_T % 2147483647 == 1)
18015: ? 1 : -1];
18016: int
18017: main ()
18018: {
18019:
18020: ;
18021: return 0;
18022: }
18023: _ACEOF
18024: if ac_fn_c_try_compile "$LINENO"; then :
18025: ac_cv_sys_file_offset_bits=64; break
18026: fi
18027: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028: ac_cv_sys_file_offset_bits=unknown
18029: break
18030: done
18031: fi
18032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18033: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18034: case $ac_cv_sys_file_offset_bits in #(
18035: no | unknown) ;;
18036: *)
18037: cat >>confdefs.h <<_ACEOF
18038: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18039: _ACEOF
18040: ;;
18041: esac
18042: rm -rf conftest*
18043: if test $ac_cv_sys_file_offset_bits = unknown; then
18044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18045: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18046: if ${ac_cv_sys_large_files+:} false; then :
18047: $as_echo_n "(cached) " >&6
18048: else
18049: while :; do
18050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051: /* end confdefs.h. */
18052: #include <sys/types.h>
18053: /* Check that off_t can represent 2**63 - 1 correctly.
18054: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18055: since some C++ compilers masquerading as C compilers
18056: incorrectly reject 9223372036854775807. */
18057: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18058: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18059: && LARGE_OFF_T % 2147483647 == 1)
18060: ? 1 : -1];
18061: int
18062: main ()
18063: {
18064:
18065: ;
18066: return 0;
18067: }
18068: _ACEOF
18069: if ac_fn_c_try_compile "$LINENO"; then :
18070: ac_cv_sys_large_files=no; break
18071: fi
18072: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074: /* end confdefs.h. */
18075: #define _LARGE_FILES 1
18076: #include <sys/types.h>
18077: /* Check that off_t can represent 2**63 - 1 correctly.
18078: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18079: since some C++ compilers masquerading as C compilers
18080: incorrectly reject 9223372036854775807. */
18081: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18082: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18083: && LARGE_OFF_T % 2147483647 == 1)
18084: ? 1 : -1];
18085: int
18086: main ()
18087: {
18088:
18089: ;
18090: return 0;
18091: }
18092: _ACEOF
18093: if ac_fn_c_try_compile "$LINENO"; then :
18094: ac_cv_sys_large_files=1; break
18095: fi
18096: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18097: ac_cv_sys_large_files=unknown
18098: break
18099: done
18100: fi
18101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18102: $as_echo "$ac_cv_sys_large_files" >&6; }
18103: case $ac_cv_sys_large_files in #(
18104: no | unknown) ;;
18105: *)
18106: cat >>confdefs.h <<_ACEOF
18107: #define _LARGE_FILES $ac_cv_sys_large_files
18108: _ACEOF
18109: ;;
18110: esac
18111: rm -rf conftest*
18112: fi
18113:
18114:
18115: fi
18116:
18117:
1.159 moko 18118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18119: $as_echo_n "checking for ANSI C header files... " >&6; }
18120: if ${ac_cv_header_stdc+:} false; then :
18121: $as_echo_n "(cached) " >&6
18122: else
18123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124: /* end confdefs.h. */
18125: #include <stdlib.h>
18126: #include <stdarg.h>
18127: #include <string.h>
18128: #include <float.h>
18129:
18130: int
18131: main ()
18132: {
18133:
18134: ;
18135: return 0;
18136: }
18137: _ACEOF
18138: if ac_fn_c_try_compile "$LINENO"; then :
18139: ac_cv_header_stdc=yes
18140: else
18141: ac_cv_header_stdc=no
18142: fi
18143: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144:
18145: if test $ac_cv_header_stdc = yes; then
18146: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18147: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148: /* end confdefs.h. */
18149: #include <string.h>
18150:
18151: _ACEOF
18152: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18153: $EGREP "memchr" >/dev/null 2>&1; then :
18154:
18155: else
18156: ac_cv_header_stdc=no
18157: fi
18158: rm -f conftest*
18159:
18160: fi
18161:
18162: if test $ac_cv_header_stdc = yes; then
18163: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18164: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165: /* end confdefs.h. */
18166: #include <stdlib.h>
18167:
18168: _ACEOF
18169: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18170: $EGREP "free" >/dev/null 2>&1; then :
18171:
18172: else
18173: ac_cv_header_stdc=no
18174: fi
18175: rm -f conftest*
18176:
18177: fi
18178:
18179: if test $ac_cv_header_stdc = yes; then
18180: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18181: if test "$cross_compiling" = yes; then :
18182: :
18183: else
18184: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185: /* end confdefs.h. */
18186: #include <ctype.h>
18187: #include <stdlib.h>
18188: #if ((' ' & 0x0FF) == 0x020)
18189: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18190: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18191: #else
18192: # define ISLOWER(c) \
18193: (('a' <= (c) && (c) <= 'i') \
18194: || ('j' <= (c) && (c) <= 'r') \
18195: || ('s' <= (c) && (c) <= 'z'))
18196: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18197: #endif
18198:
18199: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18200: int
18201: main ()
18202: {
18203: int i;
18204: for (i = 0; i < 256; i++)
18205: if (XOR (islower (i), ISLOWER (i))
18206: || toupper (i) != TOUPPER (i))
18207: return 2;
18208: return 0;
18209: }
18210: _ACEOF
18211: if ac_fn_c_try_run "$LINENO"; then :
18212:
18213: else
18214: ac_cv_header_stdc=no
18215: fi
18216: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18217: conftest.$ac_objext conftest.beam conftest.$ac_ext
18218: fi
18219:
18220: fi
18221: fi
18222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18223: $as_echo "$ac_cv_header_stdc" >&6; }
18224: if test $ac_cv_header_stdc = yes; then
18225:
18226: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18227:
18228: fi
1.128 moko 18229:
1.150 moko 18230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18231: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18232: if ${ac_cv_header_time+:} false; then :
18233: $as_echo_n "(cached) " >&6
1.62 paf 18234: else
1.150 moko 18235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18236: /* end confdefs.h. */
1.66 paf 18237: #include <sys/types.h>
18238: #include <sys/time.h>
18239: #include <time.h>
1.62 paf 18240:
18241: int
18242: main ()
18243: {
1.66 paf 18244: if ((struct tm *) 0)
18245: return 0;
1.62 paf 18246: ;
18247: return 0;
18248: }
18249: _ACEOF
1.150 moko 18250: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 18251: ac_cv_header_time=yes
1.1 paf 18252: else
1.150 moko 18253: ac_cv_header_time=no
1.1 paf 18254: fi
1.150 moko 18255: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18256: fi
1.150 moko 18257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18258: $as_echo "$ac_cv_header_time" >&6; }
1.66 paf 18259: if test $ac_cv_header_time = yes; then
1.1 paf 18260:
1.150 moko 18261: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.66 paf 18262:
1.1 paf 18263: fi
1.66 paf 18264:
1.1 paf 18265:
1.159 moko 18266: 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
18267: do :
18268: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18269: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18270: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18271: cat >>confdefs.h <<_ACEOF
18272: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18273: _ACEOF
18274:
18275: fi
1.150 moko 18276:
1.159 moko 18277: done
18278:
18279: for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h
18280: do :
18281: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18282: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18283: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18284: cat >>confdefs.h <<_ACEOF
18285: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18286: _ACEOF
18287:
18288: fi
18289:
18290: done
18291:
1.164 moko 18292: 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 18293: do :
18294: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18295: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18296: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18297: cat >>confdefs.h <<_ACEOF
18298: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18299: _ACEOF
18300:
18301: fi
18302:
18303: done
18304:
1.163 moko 18305: for ac_header in sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 18306: do :
18307: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18308: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18309: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 18310: cat >>confdefs.h <<_ACEOF
1.150 moko 18311: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18312: _ACEOF
18313:
18314: fi
18315:
1.66 paf 18316: done
1.62 paf 18317:
18318:
18319:
1.66 paf 18320: case "$host" in
1.107 misha 18321: *-freebsd4*)
18322:
1.150 moko 18323: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 18324:
18325: ;;
1.66 paf 18326: *-sunos5.6* | *-solaris2.6*)
1.150 moko 18327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
18328: $as_echo_n "checking for main in -lxnet... " >&6; }
18329: if ${ac_cv_lib_xnet_main+:} false; then :
18330: $as_echo_n "(cached) " >&6
1.62 paf 18331: else
1.66 paf 18332: ac_check_lib_save_LIBS=$LIBS
18333: LIBS="-lxnet $LIBS"
1.150 moko 18334: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18335: /* end confdefs.h. */
18336:
1.66 paf 18337:
18338: int
18339: main ()
18340: {
1.150 moko 18341: return main ();
1.66 paf 18342: ;
18343: return 0;
18344: }
1.62 paf 18345: _ACEOF
1.150 moko 18346: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18347: ac_cv_lib_xnet_main=yes
1.62 paf 18348: else
1.150 moko 18349: ac_cv_lib_xnet_main=no
1.62 paf 18350: fi
1.150 moko 18351: rm -f core conftest.err conftest.$ac_objext \
18352: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18353: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18354: fi
1.150 moko 18355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
18356: $as_echo "$ac_cv_lib_xnet_main" >&6; }
18357: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 18358: cat >>confdefs.h <<_ACEOF
1.66 paf 18359: #define HAVE_LIBXNET 1
1.62 paf 18360: _ACEOF
1.1 paf 18361:
1.66 paf 18362: LIBS="-lxnet $LIBS"
18363:
1.1 paf 18364: fi
18365:
1.66 paf 18366: ;;
18367: *-sunos5* | *-solaris2*)
1.150 moko 18368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
18369: $as_echo_n "checking for main in -lsocket... " >&6; }
18370: if ${ac_cv_lib_socket_main+:} false; then :
18371: $as_echo_n "(cached) " >&6
1.62 paf 18372: else
1.66 paf 18373: ac_check_lib_save_LIBS=$LIBS
18374: LIBS="-lsocket $LIBS"
1.150 moko 18375: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18376: /* end confdefs.h. */
1.66 paf 18377:
18378:
1.62 paf 18379: int
18380: main ()
18381: {
1.150 moko 18382: return main ();
1.62 paf 18383: ;
18384: return 0;
18385: }
18386: _ACEOF
1.150 moko 18387: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18388: ac_cv_lib_socket_main=yes
1.1 paf 18389: else
1.150 moko 18390: ac_cv_lib_socket_main=no
1.1 paf 18391: fi
1.150 moko 18392: rm -f core conftest.err conftest.$ac_objext \
18393: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18394: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18395: fi
1.150 moko 18396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
18397: $as_echo "$ac_cv_lib_socket_main" >&6; }
18398: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 18399: cat >>confdefs.h <<_ACEOF
18400: #define HAVE_LIBSOCKET 1
18401: _ACEOF
1.1 paf 18402:
1.66 paf 18403: LIBS="-lsocket $LIBS"
1.1 paf 18404:
18405: fi
18406:
1.150 moko 18407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
18408: $as_echo_n "checking for main in -lnsl... " >&6; }
18409: if ${ac_cv_lib_nsl_main+:} false; then :
18410: $as_echo_n "(cached) " >&6
1.62 paf 18411: else
1.66 paf 18412: ac_check_lib_save_LIBS=$LIBS
18413: LIBS="-lnsl $LIBS"
1.150 moko 18414: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18415: /* end confdefs.h. */
1.66 paf 18416:
18417:
1.62 paf 18418: int
18419: main ()
18420: {
1.150 moko 18421: return main ();
1.62 paf 18422: ;
18423: return 0;
18424: }
18425: _ACEOF
1.150 moko 18426: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18427: ac_cv_lib_nsl_main=yes
1.30 paf 18428: else
1.150 moko 18429: ac_cv_lib_nsl_main=no
1.30 paf 18430: fi
1.150 moko 18431: rm -f core conftest.err conftest.$ac_objext \
18432: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18433: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18434: fi
1.150 moko 18435: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
18436: $as_echo "$ac_cv_lib_nsl_main" >&6; }
18437: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 18438: cat >>confdefs.h <<_ACEOF
18439: #define HAVE_LIBNSL 1
18440: _ACEOF
1.30 paf 18441:
1.66 paf 18442: LIBS="-lnsl $LIBS"
1.30 paf 18443:
18444: fi
18445:
1.66 paf 18446: ;;
18447: *-nec-sysv4*)
1.150 moko 18448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18449: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18450: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18451: $as_echo_n "(cached) " >&6
1.62 paf 18452: else
1.66 paf 18453: ac_check_lib_save_LIBS=$LIBS
18454: LIBS="-lnsl $LIBS"
1.150 moko 18455: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18456: /* end confdefs.h. */
1.66 paf 18457:
1.150 moko 18458: /* Override any GCC internal prototype to avoid an error.
18459: Use char because int might match the return type of a GCC
18460: builtin and then its argument prototype would still apply. */
1.66 paf 18461: #ifdef __cplusplus
18462: extern "C"
18463: #endif
18464: char gethostbyname ();
1.62 paf 18465: int
18466: main ()
18467: {
1.150 moko 18468: return gethostbyname ();
1.62 paf 18469: ;
18470: return 0;
18471: }
18472: _ACEOF
1.150 moko 18473: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18474: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18475: else
1.150 moko 18476: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18477: fi
1.150 moko 18478: rm -f core conftest.err conftest.$ac_objext \
18479: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18480: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18481: fi
1.150 moko 18482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18483: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18484: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 18485: cat >>confdefs.h <<_ACEOF
18486: #define HAVE_LIBNSL 1
18487: _ACEOF
1.30 paf 18488:
1.66 paf 18489: LIBS="-lnsl $LIBS"
1.30 paf 18490:
18491: fi
18492:
1.150 moko 18493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18494: $as_echo_n "checking for socket in -lsocket... " >&6; }
18495: if ${ac_cv_lib_socket_socket+:} false; then :
18496: $as_echo_n "(cached) " >&6
1.8 paf 18497: else
1.66 paf 18498: ac_check_lib_save_LIBS=$LIBS
18499: LIBS="-lsocket $LIBS"
1.150 moko 18500: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18501: /* end confdefs.h. */
18502:
1.150 moko 18503: /* Override any GCC internal prototype to avoid an error.
18504: Use char because int might match the return type of a GCC
18505: builtin and then its argument prototype would still apply. */
1.66 paf 18506: #ifdef __cplusplus
18507: extern "C"
18508: #endif
18509: char socket ();
1.62 paf 18510: int
18511: main ()
18512: {
1.150 moko 18513: return socket ();
1.62 paf 18514: ;
18515: return 0;
18516: }
18517: _ACEOF
1.150 moko 18518: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18519: ac_cv_lib_socket_socket=yes
1.8 paf 18520: else
1.150 moko 18521: ac_cv_lib_socket_socket=no
1.8 paf 18522: fi
1.150 moko 18523: rm -f core conftest.err conftest.$ac_objext \
18524: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18525: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18526: fi
1.150 moko 18527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18528: $as_echo "$ac_cv_lib_socket_socket" >&6; }
18529: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 18530: cat >>confdefs.h <<_ACEOF
1.128 moko 18531: #define HAVE_LIBSOCKET 1
1.66 paf 18532: _ACEOF
18533:
1.128 moko 18534: LIBS="-lsocket $LIBS"
1.66 paf 18535:
1.62 paf 18536: fi
18537:
1.66 paf 18538: ;;
1.128 moko 18539: *-cygwin*)
18540:
1.150 moko 18541: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 18542:
1.66 paf 18543: ;;
18544: esac
1.1 paf 18545:
1.150 moko 18546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18547: $as_echo_n "checking for sin in -lm... " >&6; }
18548: if ${ac_cv_lib_m_sin+:} false; then :
18549: $as_echo_n "(cached) " >&6
1.1 paf 18550: else
1.62 paf 18551: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18552: LIBS="-lm $LIBS"
1.150 moko 18553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18554: /* end confdefs.h. */
18555:
1.150 moko 18556: /* Override any GCC internal prototype to avoid an error.
18557: Use char because int might match the return type of a GCC
18558: builtin and then its argument prototype would still apply. */
1.66 paf 18559: #ifdef __cplusplus
18560: extern "C"
18561: #endif
18562: char sin ();
1.62 paf 18563: int
18564: main ()
18565: {
1.150 moko 18566: return sin ();
1.62 paf 18567: ;
18568: return 0;
18569: }
18570: _ACEOF
1.150 moko 18571: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18572: ac_cv_lib_m_sin=yes
1.62 paf 18573: else
1.150 moko 18574: ac_cv_lib_m_sin=no
1.62 paf 18575: fi
1.150 moko 18576: rm -f core conftest.err conftest.$ac_objext \
18577: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18578: LIBS=$ac_check_lib_save_LIBS
18579: fi
1.150 moko 18580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18581: $as_echo "$ac_cv_lib_m_sin" >&6; }
18582: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 18583: cat >>confdefs.h <<_ACEOF
1.66 paf 18584: #define HAVE_LIBM 1
1.62 paf 18585: _ACEOF
1.1 paf 18586:
1.66 paf 18587: LIBS="-lm $LIBS"
1.1 paf 18588:
18589: fi
18590:
1.150 moko 18591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18592: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18593: if ${ac_cv_lib_crypt_crypt+:} false; then :
18594: $as_echo_n "(cached) " >&6
1.1 paf 18595: else
1.62 paf 18596: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18597: LIBS="-lcrypt $LIBS"
1.150 moko 18598: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18599: /* end confdefs.h. */
18600:
1.150 moko 18601: /* Override any GCC internal prototype to avoid an error.
18602: Use char because int might match the return type of a GCC
18603: builtin and then its argument prototype would still apply. */
1.66 paf 18604: #ifdef __cplusplus
18605: extern "C"
18606: #endif
18607: char crypt ();
1.62 paf 18608: int
18609: main ()
18610: {
1.150 moko 18611: return crypt ();
1.62 paf 18612: ;
18613: return 0;
18614: }
18615: _ACEOF
1.150 moko 18616: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18617: ac_cv_lib_crypt_crypt=yes
1.62 paf 18618: else
1.150 moko 18619: ac_cv_lib_crypt_crypt=no
1.62 paf 18620: fi
1.150 moko 18621: rm -f core conftest.err conftest.$ac_objext \
18622: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18623: LIBS=$ac_check_lib_save_LIBS
18624: fi
1.150 moko 18625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18626: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18627: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 18628: cat >>confdefs.h <<_ACEOF
1.66 paf 18629: #define HAVE_LIBCRYPT 1
1.62 paf 18630: _ACEOF
1.1 paf 18631:
1.66 paf 18632: LIBS="-lcrypt $LIBS"
18633:
18634: fi
18635:
18636:
18637:
1.159 moko 18638: for ac_func in flock _locking fcntl lockf ftruncate fchmod
18639: do :
18640: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18641: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18642: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18643: cat >>confdefs.h <<_ACEOF
18644: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18645: _ACEOF
18646:
18647: fi
18648: done
1.66 paf 18649:
1.159 moko 18650: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv
1.150 moko 18651: do :
18652: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18653: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18654: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18655: cat >>confdefs.h <<_ACEOF
1.150 moko 18656: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18657: _ACEOF
1.1 paf 18658:
1.66 paf 18659: fi
18660: done
18661:
1.1 paf 18662:
18663:
1.159 moko 18664:
1.67 paf 18665: pa_func=sigsetjmp
1.150 moko 18666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18667: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
18668: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18669: /* end confdefs.h. */
18670:
18671: #ifdef HAVE_SETJMP_H
18672: # include <setjmp.h>
18673: #endif
18674:
18675: int
18676: main ()
18677: {
18678:
18679: $pa_func(0,0);
18680:
18681: ;
18682: return 0;
18683: }
18684: _ACEOF
1.150 moko 18685: if ac_fn_c_try_compile "$LINENO"; then :
18686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18687: $as_echo "yes" >&6; }
1.67 paf 18688: cat >>confdefs.h <<_ACEOF
1.150 moko 18689: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18690: _ACEOF
18691:
18692:
18693: else
1.150 moko 18694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18695: $as_echo "no" >&6; }
1.67 paf 18696:
18697: fi
1.150 moko 18698: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18699:
18700:
18701:
1.159 moko 18702:
1.150 moko 18703: ac_ext=cpp
1.67 paf 18704: ac_cpp='$CXXCPP $CPPFLAGS'
18705: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18708:
18709:
18710:
1.188 ! moko 18711: for pa_func in trunc round sign isfinite
1.67 paf 18712: do
18713:
1.150 moko 18714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18715: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
18716: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18717: /* end confdefs.h. */
18718:
18719: #ifdef HAVE_MATH_H
18720: # include <math.h>
18721: #endif
18722:
18723: int
18724: main ()
18725: {
18726:
18727: double result=$pa_func(1.6);
18728:
18729: ;
18730: return 0;
18731: }
18732: _ACEOF
1.150 moko 18733: if ac_fn_cxx_try_compile "$LINENO"; then :
18734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18735: $as_echo "yes" >&6; }
1.67 paf 18736: cat >>confdefs.h <<_ACEOF
1.150 moko 18737: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18738: _ACEOF
1.66 paf 18739:
1.62 paf 18740: else
1.150 moko 18741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18742: $as_echo "no" >&6; }
1.62 paf 18743:
18744: fi
1.150 moko 18745: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746:
18747: done
18748:
18749: ac_ext=c
18750: ac_cpp='$CPP $CPPFLAGS'
18751: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18752: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18753: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18754:
18755:
18756:
18757: for ac_func in qsort
18758: do :
18759: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18760: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18761: cat >>confdefs.h <<_ACEOF
1.150 moko 18762: #define HAVE_QSORT 1
1.62 paf 18763: _ACEOF
1.1 paf 18764:
1.66 paf 18765: else
1.150 moko 18766: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18767: fi
1.66 paf 18768: done
1.1 paf 18769:
18770:
1.62 paf 18771:
1.159 moko 18772:
1.177 moko 18773: ac_ext=cpp
18774: ac_cpp='$CXXCPP $CPPFLAGS'
18775: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18776: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18777: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18778:
1.150 moko 18779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18780: $as_echo_n "checking for timezone variable... " >&6; }
18781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18782: /* end confdefs.h. */
1.66 paf 18783: #include <time.h>
1.62 paf 18784: int
18785: main ()
18786: {
1.177 moko 18787: int test=timezone;
1.62 paf 18788: ;
18789: return 0;
18790: }
18791: _ACEOF
1.177 moko 18792: if ac_fn_cxx_try_compile "$LINENO"; then :
1.150 moko 18793: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18795: $as_echo "yes" >&6; }
1.62 paf 18796: else
1.150 moko 18797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18798: $as_echo "no" >&6; }
1.62 paf 18799: fi
1.150 moko 18800: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.177 moko 18801: ac_ext=c
18802: ac_cpp='$CPP $CPPFLAGS'
18803: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18804: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18805: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18806:
1.1 paf 18807:
1.176 moko 18808: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18809: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
1.150 moko 18810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18811: /* end confdefs.h. */
1.66 paf 18812: #include <time.h>
1.62 paf 18813: int
18814: main ()
18815: {
1.176 moko 18816: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18817: ;
18818: return 0;
18819: }
18820: _ACEOF
1.150 moko 18821: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18822: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18824: $as_echo "yes" >&6; }
1.62 paf 18825: else
1.150 moko 18826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18827: $as_echo "no" >&6; }
1.62 paf 18828: fi
1.150 moko 18829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18830:
1.176 moko 18831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18832: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
1.150 moko 18833: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18834: /* end confdefs.h. */
1.66 paf 18835: #include <time.h>
1.62 paf 18836: int
18837: main ()
18838: {
1.176 moko 18839: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18840: ;
18841: return 0;
18842: }
18843: _ACEOF
1.150 moko 18844: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18845: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18847: $as_echo "yes" >&6; }
1.62 paf 18848: else
1.150 moko 18849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850: $as_echo "no" >&6; }
1.62 paf 18851: fi
1.150 moko 18852: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18853:
1.176 moko 18854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
18855: $as_echo_n "checking for 0..9999 year date range support... " >&6; }
18856: if test "$cross_compiling" = yes; then :
18857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858: $as_echo "no" >&6; }
18859: else
18860: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18861: /* end confdefs.h. */
1.176 moko 18862:
18863: #include <string.h>
1.66 paf 18864: #include <time.h>
1.176 moko 18865:
18866: int main() {
18867: struct tm tmL,tmH;
18868: memset(&tmL, 0, sizeof(tmL));
18869: memset(&tmH, 0, sizeof(tmH));
18870: tmL.tm_year=-1900;
18871: tmL.tm_mon=-1;
18872: tmH.tm_year=9999-1900;
18873: tmH.tm_mon=12-1;
18874: tmH.tm_mday=31;
18875: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 18876: }
1.176 moko 18877:
1.62 paf 18878: _ACEOF
1.176 moko 18879: if ac_fn_c_try_run "$LINENO"; then :
18880: $as_echo "#define PA_DATE64 1" >>confdefs.h
1.158 moko 18881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18882: $as_echo "yes" >&6; }
1.62 paf 18883: else
1.150 moko 18884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18885: $as_echo "no" >&6; }
1.62 paf 18886: fi
1.176 moko 18887: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18888: conftest.$ac_objext conftest.beam conftest.$ac_ext
18889: fi
1.31 paf 18890:
1.1 paf 18891:
18892:
18893:
1.62 paf 18894:
18895:
18896:
1.150 moko 18897: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18898:
18899:
1.173 moko 18900: 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 18901:
18902: cat >confcache <<\_ACEOF
1.1 paf 18903: # This file is a shell script that caches the results of configure
18904: # tests run on this system so they can be shared between configure
1.62 paf 18905: # scripts and configure runs, see configure's option --config-cache.
18906: # It is not useful on other systems. If it contains results you don't
18907: # want to keep, you may remove or edit it.
1.1 paf 18908: #
1.62 paf 18909: # config.status only pays attention to the cache file if you give it
18910: # the --recheck option to rerun configure.
1.1 paf 18911: #
1.62 paf 18912: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18913: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18914: # following values.
18915:
18916: _ACEOF
18917:
1.1 paf 18918: # The following way of writing the cache mishandles newlines in values,
18919: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 18920: # So, we kill variables containing newlines.
1.1 paf 18921: # Ultrix sh set writes to stderr and can't be redirected directly,
18922: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 18923: (
18924: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18925: eval ac_val=\$$ac_var
18926: case $ac_val in #(
18927: *${as_nl}*)
18928: case $ac_var in #(
18929: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18930: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18931: esac
18932: case $ac_var in #(
18933: _ | IFS | as_nl) ;; #(
18934: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18935: *) { eval $ac_var=; unset $ac_var;} ;;
18936: esac ;;
18937: esac
18938: done
18939:
1.62 paf 18940: (set) 2>&1 |
1.150 moko 18941: case $as_nl`(ac_space=' '; set) 2>&1` in #(
18942: *${as_nl}ac_space=\ *)
18943: # `set' does not quote correctly, so add quotes: double-quote
18944: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 18945: sed -n \
1.86 paf 18946: "s/'/'\\\\''/g;
18947: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 18948: ;; #(
1.62 paf 18949: *)
18950: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 18951: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 18952: ;;
1.150 moko 18953: esac |
18954: sort
18955: ) |
1.62 paf 18956: sed '
1.150 moko 18957: /^ac_cv_env_/b end
1.62 paf 18958: t clear
1.150 moko 18959: :clear
1.62 paf 18960: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18961: t end
1.150 moko 18962: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18963: :end' >>confcache
18964: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18965: if test -w "$cache_file"; then
18966: if test "x$cache_file" != "x/dev/null"; then
18967: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18968: $as_echo "$as_me: updating cache $cache_file" >&6;}
18969: if test ! -f "$cache_file" || test -h "$cache_file"; then
18970: cat confcache >"$cache_file"
18971: else
18972: case $cache_file in #(
18973: */* | ?:*)
18974: mv -f confcache "$cache_file"$$ &&
18975: mv -f "$cache_file"$$ "$cache_file" ;; #(
18976: *)
18977: mv -f confcache "$cache_file" ;;
18978: esac
18979: fi
18980: fi
1.1 paf 18981: else
1.150 moko 18982: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18983: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 18984: fi
18985: fi
18986: rm -f confcache
18987:
18988: test "x$prefix" = xNONE && prefix=$ac_default_prefix
18989: # Let make expand exec_prefix.
18990: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18991:
1.62 paf 18992: DEFS=-DHAVE_CONFIG_H
18993:
18994: ac_libobjs=
18995: ac_ltlibobjs=
18996: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18997: # 1. Remove the extension, and $U if already installed.
1.150 moko 18998: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18999: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19000: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19001: # will be set to the directory where LIBOBJS objects are built.
19002: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19003: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 19004: done
19005: LIBOBJS=$ac_libobjs
19006:
19007: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19008:
19009:
1.187 moko 19010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19011: $as_echo_n "checking that generated files are newer than configure... " >&6; }
19012: if test -n "$am_sleep_pid"; then
19013: # Hide warnings about reused PIDs.
19014: wait $am_sleep_pid 2>/dev/null
19015: fi
19016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19017: $as_echo "done" >&6; }
1.150 moko 19018: if test -n "$EXEEXT"; then
19019: am__EXEEXT_TRUE=
19020: am__EXEEXT_FALSE='#'
19021: else
19022: am__EXEEXT_TRUE='#'
19023: am__EXEEXT_FALSE=
19024: fi
19025:
1.62 paf 19026: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 19027: as_fn_error $? "conditional \"AMDEP\" was never defined.
19028: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19029: fi
1.66 paf 19030: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 19031: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19032: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19033: fi
1.66 paf 19034: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 19035: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19036: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19037: fi
1.122 moko 19038: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 19039: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
19040: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19041: fi
1.128 moko 19042: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 19043: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
19044: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19045: fi
19046: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 19047: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
19048: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19049: fi
1.150 moko 19050: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 19051:
19052: _ltdl_libobjs=
19053: _ltdl_ltlibobjs=
19054: if test -n "$_LT_LIBOBJS"; then
19055: # Remove the extension.
19056: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19057: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19058: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19059: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19060: done
19061: fi
19062: ltdl_LIBOBJS=$_ltdl_libobjs
19063:
19064: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19065:
19066:
1.62 paf 19067:
1.150 moko 19068:
19069: : "${CONFIG_STATUS=./config.status}"
19070: ac_write_fail=0
1.62 paf 19071: ac_clean_files_save=$ac_clean_files
19072: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 19073: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19074: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19075: as_write_fail=0
19076: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 19077: #! $SHELL
19078: # Generated by $as_me.
19079: # Run this file to recreate the current configuration.
19080: # Compiler output produced by configure, useful for debugging
19081: # configure, is in config.log if it exists.
19082:
19083: debug=false
19084: ac_cs_recheck=false
19085: ac_cs_silent=false
1.150 moko 19086:
1.62 paf 19087: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 19088: export SHELL
19089: _ASEOF
19090: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19091: ## -------------------- ##
19092: ## M4sh Initialization. ##
19093: ## -------------------- ##
1.62 paf 19094:
1.150 moko 19095: # Be more Bourne compatible
19096: DUALCASE=1; export DUALCASE # for MKS sh
19097: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 19098: emulate sh
19099: NULLCMD=:
1.150 moko 19100: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 19101: # is contrary to our usage. Disable this feature.
19102: alias -g '${1+"$@"}'='"$@"'
1.150 moko 19103: setopt NO_GLOB_SUBST
19104: else
19105: case `(set -o) 2>/dev/null` in #(
19106: *posix*) :
19107: set -o posix ;; #(
19108: *) :
19109: ;;
19110: esac
19111: fi
19112:
19113:
19114: as_nl='
19115: '
19116: export as_nl
19117: # Printing a long string crashes Solaris 7 /usr/bin/printf.
19118: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19119: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19120: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19121: # Prefer a ksh shell builtin over an external printf program on Solaris,
19122: # but without wasting forks for bash or zsh.
19123: if test -z "$BASH_VERSION$ZSH_VERSION" \
19124: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19125: as_echo='print -r --'
19126: as_echo_n='print -rn --'
19127: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19128: as_echo='printf %s\n'
19129: as_echo_n='printf %s'
19130: else
19131: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19132: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19133: as_echo_n='/usr/ucb/echo -n'
19134: else
19135: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19136: as_echo_n_body='eval
19137: arg=$1;
19138: case $arg in #(
19139: *"$as_nl"*)
19140: expr "X$arg" : "X\\(.*\\)$as_nl";
19141: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19142: esac;
19143: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19144: '
19145: export as_echo_n_body
19146: as_echo_n='sh -c $as_echo_n_body as_echo'
19147: fi
19148: export as_echo_body
19149: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 19150: fi
19151:
1.150 moko 19152: # The user is always right.
19153: if test "${PATH_SEPARATOR+set}" != set; then
19154: PATH_SEPARATOR=:
19155: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19156: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19157: PATH_SEPARATOR=';'
19158: }
1.62 paf 19159: fi
19160:
19161:
1.150 moko 19162: # IFS
19163: # We need space, tab and new line, in precisely that order. Quoting is
19164: # there to prevent editors from complaining about space-tab.
19165: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19166: # splitting by setting IFS to empty value.)
19167: IFS=" "" $as_nl"
19168:
19169: # Find who we are. Look in the path if we contain no directory separator.
19170: as_myself=
19171: case $0 in #((
19172: *[\\/]* ) as_myself=$0 ;;
19173: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19174: for as_dir in $PATH
19175: do
19176: IFS=$as_save_IFS
19177: test -z "$as_dir" && as_dir=.
19178: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19179: done
19180: IFS=$as_save_IFS
19181:
19182: ;;
19183: esac
19184: # We did not find ourselves, most probably we were run as `sh COMMAND'
19185: # in which case we are not to be found in the path.
19186: if test "x$as_myself" = x; then
19187: as_myself=$0
19188: fi
19189: if test ! -f "$as_myself"; then
19190: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19191: exit 1
19192: fi
19193:
19194: # Unset variables that we do not need and which cause bugs (e.g. in
19195: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19196: # suppresses any "Segmentation fault" message there. '((' could
19197: # trigger a bug in pdksh 5.2.14.
19198: for as_var in BASH_ENV ENV MAIL MAILPATH
19199: do eval test x\${$as_var+set} = xset \
19200: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19201: done
1.62 paf 19202: PS1='$ '
19203: PS2='> '
19204: PS4='+ '
19205:
19206: # NLS nuisances.
1.150 moko 19207: LC_ALL=C
19208: export LC_ALL
19209: LANGUAGE=C
19210: export LANGUAGE
19211:
19212: # CDPATH.
19213: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19214:
19215:
19216: # as_fn_error STATUS ERROR [LINENO LOG_FD]
19217: # ----------------------------------------
19218: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19219: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19220: # script with STATUS, using 1 if that was 0.
19221: as_fn_error ()
19222: {
19223: as_status=$1; test $as_status -eq 0 && as_status=1
19224: if test "$4"; then
19225: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19226: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19227: fi
19228: $as_echo "$as_me: error: $2" >&2
19229: as_fn_exit $as_status
19230: } # as_fn_error
19231:
19232:
19233: # as_fn_set_status STATUS
19234: # -----------------------
19235: # Set $? to STATUS, without forking.
19236: as_fn_set_status ()
19237: {
19238: return $1
19239: } # as_fn_set_status
19240:
19241: # as_fn_exit STATUS
19242: # -----------------
19243: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19244: as_fn_exit ()
19245: {
19246: set +e
19247: as_fn_set_status $1
19248: exit $1
19249: } # as_fn_exit
19250:
19251: # as_fn_unset VAR
19252: # ---------------
19253: # Portably unset VAR.
19254: as_fn_unset ()
19255: {
19256: { eval $1=; unset $1;}
19257: }
19258: as_unset=as_fn_unset
19259: # as_fn_append VAR VALUE
19260: # ----------------------
19261: # Append the text in VALUE to the end of the definition contained in VAR. Take
19262: # advantage of any shell optimizations that allow amortized linear growth over
19263: # repeated appends, instead of the typical quadratic growth present in naive
19264: # implementations.
19265: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19266: eval 'as_fn_append ()
19267: {
19268: eval $1+=\$2
19269: }'
19270: else
19271: as_fn_append ()
19272: {
19273: eval $1=\$$1\$2
19274: }
19275: fi # as_fn_append
19276:
19277: # as_fn_arith ARG...
19278: # ------------------
19279: # Perform arithmetic evaluation on the ARGs, and store the result in the
19280: # global $as_val. Take advantage of shells that can avoid forks. The arguments
19281: # must be portable across $(()) and expr.
19282: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19283: eval 'as_fn_arith ()
19284: {
19285: as_val=$(( $* ))
19286: }'
19287: else
19288: as_fn_arith ()
19289: {
19290: as_val=`expr "$@" || test $? -eq 1`
19291: }
19292: fi # as_fn_arith
19293:
1.1 paf 19294:
1.150 moko 19295: if expr a : '\(a\)' >/dev/null 2>&1 &&
19296: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 19297: as_expr=expr
19298: else
19299: as_expr=false
19300: fi
19301:
1.150 moko 19302: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 19303: as_basename=basename
19304: else
19305: as_basename=false
19306: fi
19307:
1.150 moko 19308: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19309: as_dirname=dirname
19310: else
19311: as_dirname=false
19312: fi
1.62 paf 19313:
1.150 moko 19314: as_me=`$as_basename -- "$0" ||
1.62 paf 19315: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19316: X"$0" : 'X\(//\)$' \| \
1.150 moko 19317: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19318: $as_echo X/"$0" |
19319: sed '/^.*\/\([^/][^/]*\)\/*$/{
19320: s//\1/
19321: q
19322: }
19323: /^X\/\(\/\/\)$/{
19324: s//\1/
19325: q
19326: }
19327: /^X\/\(\/\).*/{
19328: s//\1/
19329: q
19330: }
19331: s/.*/./; q'`
1.62 paf 19332:
19333: # Avoid depending upon Character Ranges.
19334: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19335: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19336: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19337: as_cr_digits='0123456789'
19338: as_cr_alnum=$as_cr_Letters$as_cr_digits
19339:
1.150 moko 19340: ECHO_C= ECHO_N= ECHO_T=
19341: case `echo -n x` in #(((((
19342: -n*)
19343: case `echo 'xy\c'` in
19344: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19345: xy) ECHO_C='\c';;
19346: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19347: ECHO_T=' ';;
19348: esac;;
19349: *)
19350: ECHO_N='-n';;
1.62 paf 19351: esac
19352:
1.150 moko 19353: rm -f conf$$ conf$$.exe conf$$.file
19354: if test -d conf$$.dir; then
19355: rm -f conf$$.dir/conf$$.file
1.62 paf 19356: else
1.150 moko 19357: rm -f conf$$.dir
19358: mkdir conf$$.dir 2>/dev/null
1.62 paf 19359: fi
1.150 moko 19360: if (echo >conf$$.file) 2>/dev/null; then
19361: if ln -s conf$$.file conf$$ 2>/dev/null; then
19362: as_ln_s='ln -s'
19363: # ... but there are two gotchas:
19364: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19365: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 19366: # In both cases, we have to default to `cp -pR'.
1.150 moko 19367: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 19368: as_ln_s='cp -pR'
1.150 moko 19369: elif ln conf$$.file conf$$ 2>/dev/null; then
19370: as_ln_s=ln
19371: else
1.166 moko 19372: as_ln_s='cp -pR'
1.62 paf 19373: fi
19374: else
1.166 moko 19375: as_ln_s='cp -pR'
1.62 paf 19376: fi
1.150 moko 19377: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19378: rmdir conf$$.dir 2>/dev/null
19379:
19380:
19381: # as_fn_mkdir_p
19382: # -------------
19383: # Create "$as_dir" as a directory, including parents if necessary.
19384: as_fn_mkdir_p ()
19385: {
19386:
19387: case $as_dir in #(
19388: -*) as_dir=./$as_dir;;
19389: esac
19390: test -d "$as_dir" || eval $as_mkdir_p || {
19391: as_dirs=
19392: while :; do
19393: case $as_dir in #(
19394: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19395: *) as_qdir=$as_dir;;
19396: esac
19397: as_dirs="'$as_qdir' $as_dirs"
19398: as_dir=`$as_dirname -- "$as_dir" ||
19399: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19400: X"$as_dir" : 'X\(//\)[^/]' \| \
19401: X"$as_dir" : 'X\(//\)$' \| \
19402: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19403: $as_echo X"$as_dir" |
19404: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19405: s//\1/
19406: q
19407: }
19408: /^X\(\/\/\)[^/].*/{
19409: s//\1/
19410: q
19411: }
19412: /^X\(\/\/\)$/{
19413: s//\1/
19414: q
19415: }
19416: /^X\(\/\).*/{
19417: s//\1/
19418: q
19419: }
19420: s/.*/./; q'`
19421: test -d "$as_dir" && break
19422: done
19423: test -z "$as_dirs" || eval "mkdir $as_dirs"
19424: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19425:
1.62 paf 19426:
1.150 moko 19427: } # as_fn_mkdir_p
1.62 paf 19428: if mkdir -p . 2>/dev/null; then
1.150 moko 19429: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 19430: else
1.86 paf 19431: test -d ./-p && rmdir ./-p
1.62 paf 19432: as_mkdir_p=false
19433: fi
19434:
1.166 moko 19435:
19436: # as_fn_executable_p FILE
19437: # -----------------------
19438: # Test if FILE is an executable regular file.
19439: as_fn_executable_p ()
19440: {
19441: test -f "$1" && test -x "$1"
19442: } # as_fn_executable_p
19443: as_test_x='test -x'
19444: as_executable_p=as_fn_executable_p
1.62 paf 19445:
19446: # Sed expression to map a string onto a valid CPP name.
1.86 paf 19447: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19448:
19449: # Sed expression to map a string onto a valid variable name.
1.86 paf 19450: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19451:
19452:
19453: exec 6>&1
1.150 moko 19454: ## ----------------------------------- ##
19455: ## Main body of $CONFIG_STATUS script. ##
19456: ## ----------------------------------- ##
19457: _ASEOF
19458: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 19459:
1.150 moko 19460: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19461: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 19462: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 19463: # values after options handling.
19464: ac_log="
1.186 moko 19465: This file was extended by parser $as_me 3.4.6b, which was
1.166 moko 19466: generated by GNU Autoconf 2.69. Invocation command line was
1.62 paf 19467:
19468: CONFIG_FILES = $CONFIG_FILES
19469: CONFIG_HEADERS = $CONFIG_HEADERS
19470: CONFIG_LINKS = $CONFIG_LINKS
19471: CONFIG_COMMANDS = $CONFIG_COMMANDS
19472: $ $0 $@
19473:
1.150 moko 19474: on `(hostname || uname -n) 2>/dev/null | sed 1q`
19475: "
19476:
1.62 paf 19477: _ACEOF
19478:
1.150 moko 19479: case $ac_config_files in *"
19480: "*) set x $ac_config_files; shift; ac_config_files=$*;;
19481: esac
1.62 paf 19482:
1.150 moko 19483: case $ac_config_headers in *"
19484: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19485: esac
1.62 paf 19486:
19487:
1.150 moko 19488: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19489: # Files that config.status was made for.
19490: config_files="$ac_config_files"
19491: config_headers="$ac_config_headers"
19492: config_commands="$ac_config_commands"
1.62 paf 19493:
1.150 moko 19494: _ACEOF
1.62 paf 19495:
1.150 moko 19496: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19497: ac_cs_usage="\
1.150 moko 19498: \`$as_me' instantiates files and other configuration actions
19499: from templates according to the current configuration. Unless the files
19500: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 19501:
1.150 moko 19502: Usage: $0 [OPTION]... [TAG]...
1.62 paf 19503:
19504: -h, --help print this help, then exit
1.150 moko 19505: -V, --version print version number and configuration settings, then exit
19506: --config print configuration, then exit
19507: -q, --quiet, --silent
19508: do not print progress messages
1.62 paf 19509: -d, --debug don't remove temporary files
19510: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 19511: --file=FILE[:TEMPLATE]
19512: instantiate the configuration file FILE
19513: --header=FILE[:TEMPLATE]
19514: instantiate the configuration header FILE
1.62 paf 19515:
19516: Configuration files:
19517: $config_files
19518:
19519: Configuration headers:
19520: $config_headers
19521:
19522: Configuration commands:
19523: $config_commands
19524:
1.150 moko 19525: Report bugs to the package provider."
19526:
1.62 paf 19527: _ACEOF
1.150 moko 19528: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19529: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 19530: ac_cs_version="\\
1.186 moko 19531: parser config.status 3.4.6b
1.166 moko 19532: configured by $0, generated by GNU Autoconf 2.69,
1.150 moko 19533: with options \\"\$ac_cs_config\\"
1.62 paf 19534:
1.166 moko 19535: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 19536: This config.status script is free software; the Free Software Foundation
19537: gives unlimited permission to copy, distribute and modify it."
1.150 moko 19538:
19539: ac_pwd='$ac_pwd'
19540: srcdir='$srcdir'
19541: INSTALL='$INSTALL'
19542: MKDIR_P='$MKDIR_P'
19543: AWK='$AWK'
19544: test -n "\$AWK" || AWK=awk
1.62 paf 19545: _ACEOF
19546:
1.150 moko 19547: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19548: # The default lists apply if the user does not specify any file.
1.62 paf 19549: ac_need_defaults=:
19550: while test $# != 0
19551: do
19552: case $1 in
1.150 moko 19553: --*=?*)
19554: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19555: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 19556: ac_shift=:
19557: ;;
1.150 moko 19558: --*=)
19559: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19560: ac_optarg=
19561: ac_shift=:
19562: ;;
19563: *)
1.62 paf 19564: ac_option=$1
19565: ac_optarg=$2
19566: ac_shift=shift
19567: ;;
19568: esac
19569:
19570: case $ac_option in
19571: # Handling of the options.
19572: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19573: ac_cs_recheck=: ;;
1.150 moko 19574: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19575: $as_echo "$ac_cs_version"; exit ;;
19576: --config | --confi | --conf | --con | --co | --c )
19577: $as_echo "$ac_cs_config"; exit ;;
19578: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 19579: debug=: ;;
19580: --file | --fil | --fi | --f )
19581: $ac_shift
1.150 moko 19582: case $ac_optarg in
19583: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19584: '') as_fn_error $? "missing file argument" ;;
19585: esac
19586: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 19587: ac_need_defaults=false;;
19588: --header | --heade | --head | --hea )
19589: $ac_shift
1.150 moko 19590: case $ac_optarg in
19591: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19592: esac
19593: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 19594: ac_need_defaults=false;;
1.150 moko 19595: --he | --h)
19596: # Conflict between --help and --header
19597: as_fn_error $? "ambiguous option: \`$1'
19598: Try \`$0 --help' for more information.";;
19599: --help | --hel | -h )
19600: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 19601: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19602: | -silent | --silent | --silen | --sile | --sil | --si | --s)
19603: ac_cs_silent=: ;;
19604:
19605: # This is an error.
1.150 moko 19606: -*) as_fn_error $? "unrecognized option: \`$1'
19607: Try \`$0 --help' for more information." ;;
1.62 paf 19608:
1.150 moko 19609: *) as_fn_append ac_config_targets " $1"
19610: ac_need_defaults=false ;;
1.62 paf 19611:
19612: esac
19613: shift
19614: done
19615:
19616: ac_configure_extra_args=
19617:
19618: if $ac_cs_silent; then
19619: exec 6>/dev/null
1.150 moko 19620: ac_configure_extra_args="$ac_configure_extra_args --silent"
19621: fi
19622:
19623: _ACEOF
19624: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19625: if \$ac_cs_recheck; then
1.166 moko 19626: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 19627: shift
19628: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19629: CONFIG_SHELL='$SHELL'
19630: export CONFIG_SHELL
19631: exec "\$@"
19632: fi
19633:
19634: _ACEOF
19635: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19636: exec 5>>config.log
19637: {
19638: echo
19639: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19640: ## Running $as_me. ##
19641: _ASBOX
19642: $as_echo "$ac_log"
19643: } >&5
1.62 paf 19644:
19645: _ACEOF
1.150 moko 19646: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 19647: #
1.150 moko 19648: # INIT-COMMANDS
1.1 paf 19649: #
1.62 paf 19650: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19651:
1.128 moko 19652:
19653: # The HP-UX ksh and POSIX shell print the target directory to stdout
19654: # if CDPATH is set.
19655: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19656:
19657: sed_quote_subst='$sed_quote_subst'
19658: double_quote_subst='$double_quote_subst'
19659: delay_variable_subst='$delay_variable_subst'
19660: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19661: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19662: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19663: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19664: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19665: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19666: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19667: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19668: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19669: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19670: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19671: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19672: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19673: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19674: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19675: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19676: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19677: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19678: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19679: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19680: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19681: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19682: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19683: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19684: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19685: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19686: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19687: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19688: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19689: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19690: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19691: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19692: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19693: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19694: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19695: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19696: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19697: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19698: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19699: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19700: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19701: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19702: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19703: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19704: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19705: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19706: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19707: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19708: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19709: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19710: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19711: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19712: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19713: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19714: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19715: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19716: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19717: 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"`'
19718: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19719: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19720: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19721: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19722: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19723: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19724: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19725: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19726: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19727: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19728: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19729: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19730: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19731: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19732: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19733: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19734: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19735: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19736: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19737: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19738: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19739: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19740: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19741: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19742: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19743: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19744: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19745: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19746: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19747: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19748: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19749: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19750: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19751: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19752: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19753: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19754: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19755: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19756: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19757: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19758: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19759: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19760: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19761: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19762: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19763: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19764: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19765: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19766: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19767: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19768: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19769: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19770: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19771: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19772: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19773: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19774: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19775: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19776: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19777: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19778: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19779: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19780: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19781: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19782: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19783: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19784: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19785: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19786: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19787: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19788: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19789: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19790: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19791: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19792: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19793: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19794: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19795: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19796: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19797: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19798: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19799: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19800: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19801: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19802: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19803: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19804: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19805: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19806: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19807: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19808: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19809: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19810: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19811: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19812: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19813: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19814: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19815: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19816: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19817: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19818: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19819: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19820: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19821: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19822: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19823: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19824: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19825: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19826: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19827: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19828: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19829: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19830: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19831: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19832: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19833: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19834: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19835: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19836: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19837: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19838: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19839: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19840: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19841: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19842: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19843: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19844: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19845:
19846: LTCC='$LTCC'
19847: LTCFLAGS='$LTCFLAGS'
19848: compiler='$compiler_DEFAULT'
19849:
19850: # A function that is used when there is no print builtin or printf.
19851: func_fallback_echo ()
19852: {
19853: eval 'cat <<_LTECHO_EOF
19854: \$1
19855: _LTECHO_EOF'
19856: }
19857:
19858: # Quote evaled strings.
19859: for var in AS \
19860: DLLTOOL \
19861: OBJDUMP \
19862: SHELL \
19863: ECHO \
19864: PATH_SEPARATOR \
19865: SED \
19866: GREP \
19867: EGREP \
19868: FGREP \
19869: LD \
19870: NM \
19871: LN_S \
19872: lt_SP2NL \
19873: lt_NL2SP \
19874: reload_flag \
19875: deplibs_check_method \
19876: file_magic_cmd \
19877: file_magic_glob \
19878: want_nocaseglob \
19879: sharedlib_from_linklib_cmd \
19880: AR \
19881: AR_FLAGS \
19882: archiver_list_spec \
19883: STRIP \
19884: RANLIB \
19885: CC \
19886: CFLAGS \
19887: compiler \
19888: lt_cv_sys_global_symbol_pipe \
19889: lt_cv_sys_global_symbol_to_cdecl \
19890: lt_cv_sys_global_symbol_to_c_name_address \
19891: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19892: nm_file_list_spec \
19893: lt_prog_compiler_no_builtin_flag \
19894: lt_prog_compiler_pic \
19895: lt_prog_compiler_wl \
19896: lt_prog_compiler_static \
19897: lt_cv_prog_compiler_c_o \
19898: need_locks \
19899: MANIFEST_TOOL \
19900: DSYMUTIL \
19901: NMEDIT \
19902: LIPO \
19903: OTOOL \
19904: OTOOL64 \
19905: shrext_cmds \
19906: export_dynamic_flag_spec \
19907: whole_archive_flag_spec \
19908: compiler_needs_object \
19909: with_gnu_ld \
19910: allow_undefined_flag \
19911: no_undefined_flag \
19912: hardcode_libdir_flag_spec \
19913: hardcode_libdir_separator \
19914: exclude_expsyms \
19915: include_expsyms \
19916: file_list_spec \
19917: variables_saved_for_relink \
19918: libname_spec \
19919: library_names_spec \
19920: soname_spec \
19921: install_override_mode \
19922: finish_eval \
19923: old_striplib \
19924: striplib \
19925: compiler_lib_search_dirs \
19926: predep_objects \
19927: postdep_objects \
19928: predeps \
19929: postdeps \
19930: compiler_lib_search_path \
19931: LD_CXX \
19932: reload_flag_CXX \
19933: compiler_CXX \
19934: lt_prog_compiler_no_builtin_flag_CXX \
19935: lt_prog_compiler_pic_CXX \
19936: lt_prog_compiler_wl_CXX \
19937: lt_prog_compiler_static_CXX \
19938: lt_cv_prog_compiler_c_o_CXX \
19939: export_dynamic_flag_spec_CXX \
19940: whole_archive_flag_spec_CXX \
19941: compiler_needs_object_CXX \
19942: with_gnu_ld_CXX \
19943: allow_undefined_flag_CXX \
19944: no_undefined_flag_CXX \
19945: hardcode_libdir_flag_spec_CXX \
19946: hardcode_libdir_separator_CXX \
19947: exclude_expsyms_CXX \
19948: include_expsyms_CXX \
19949: file_list_spec_CXX \
19950: compiler_lib_search_dirs_CXX \
19951: predep_objects_CXX \
19952: postdep_objects_CXX \
19953: predeps_CXX \
19954: postdeps_CXX \
19955: compiler_lib_search_path_CXX; do
19956: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19957: *[\\\\\\\`\\"\\\$]*)
19958: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19959: ;;
19960: *)
19961: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19962: ;;
19963: esac
19964: done
19965:
19966: # Double-quote double-evaled strings.
19967: for var in reload_cmds \
19968: old_postinstall_cmds \
19969: old_postuninstall_cmds \
19970: old_archive_cmds \
19971: extract_expsyms_cmds \
19972: old_archive_from_new_cmds \
19973: old_archive_from_expsyms_cmds \
19974: archive_cmds \
19975: archive_expsym_cmds \
19976: module_cmds \
19977: module_expsym_cmds \
19978: export_symbols_cmds \
19979: prelink_cmds \
19980: postlink_cmds \
19981: postinstall_cmds \
19982: postuninstall_cmds \
19983: finish_cmds \
19984: sys_lib_search_path_spec \
19985: sys_lib_dlsearch_path_spec \
19986: reload_cmds_CXX \
19987: old_archive_cmds_CXX \
19988: old_archive_from_new_cmds_CXX \
19989: old_archive_from_expsyms_cmds_CXX \
19990: archive_cmds_CXX \
19991: archive_expsym_cmds_CXX \
19992: module_cmds_CXX \
19993: module_expsym_cmds_CXX \
19994: export_symbols_cmds_CXX \
19995: prelink_cmds_CXX \
19996: postlink_cmds_CXX; do
19997: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19998: *[\\\\\\\`\\"\\\$]*)
19999: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20000: ;;
20001: *)
20002: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20003: ;;
20004: esac
20005: done
20006:
20007: ac_aux_dir='$ac_aux_dir'
20008: xsi_shell='$xsi_shell'
20009: lt_shell_append='$lt_shell_append'
20010:
20011: # See if we are running on zsh, and set the options which allow our
20012: # commands through without removal of \ escapes INIT.
20013: if test -n "\${ZSH_VERSION+set}" ; then
20014: setopt NO_GLOB_SUBST
20015: fi
20016:
20017:
20018: PACKAGE='$PACKAGE'
20019: VERSION='$VERSION'
20020: TIMESTAMP='$TIMESTAMP'
20021: RM='$RM'
20022: ofile='$ofile'
20023:
20024:
20025:
20026:
20027:
20028:
1.62 paf 20029: _ACEOF
20030:
1.150 moko 20031: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20032:
1.150 moko 20033: # Handling of arguments.
1.62 paf 20034: for ac_config_target in $ac_config_targets
1.1 paf 20035: do
1.150 moko 20036: case $ac_config_target in
20037: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20038: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20039: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20040: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20041: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20042: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20043: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20044: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20045: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20046: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20047: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20048: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20049: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
20050: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20051: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
20052: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
20053: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20054: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20055: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
20056: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
20057: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
20058: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
20059: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 20060: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
20061: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 20062: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
20063: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20064: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
20065: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
20066: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20067: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20068: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
20069: "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20070: "bin/auto.p.dist") CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
20071:
20072: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 20073: esac
20074: done
20075:
1.150 moko 20076:
1.62 paf 20077: # If the user did not use the arguments to specify the items to instantiate,
20078: # then the envvar interface is used. Set only those that are not.
20079: # We use the long form for the default assignment because of an extremely
20080: # bizarre bug on SunOS 4.1.3.
20081: if $ac_need_defaults; then
20082: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20083: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20084: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20085: fi
20086:
20087: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 20088: # simply because there is no reason against having it here, and in addition,
1.62 paf 20089: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 20090: # Hook for its removal unless debugging.
20091: # Note that there is a small window in which the directory will not be cleaned:
20092: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 20093: $debug ||
20094: {
1.150 moko 20095: tmp= ac_tmp=
20096: trap 'exit_status=$?
20097: : "${ac_tmp:=$tmp}"
20098: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20099: ' 0
20100: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 20101: }
20102: # Create a (secure) tmp directory for tmp files.
20103:
20104: {
1.150 moko 20105: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20106: test -d "$tmp"
1.62 paf 20107: } ||
20108: {
1.150 moko 20109: tmp=./conf$$-$RANDOM
20110: (umask 077 && mkdir "$tmp")
20111: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20112: ac_tmp=$tmp
20113:
20114: # Set up the scripts for CONFIG_FILES section.
20115: # No need to generate them if there are no CONFIG_FILES.
20116: # This happens for instance with `./config.status config.h'.
20117: if test -n "$CONFIG_FILES"; then
20118:
20119:
20120: ac_cr=`echo X | tr X '\015'`
20121: # On cygwin, bash can eat \r inside `` if the user requested igncr.
20122: # But we know of no other shell where ac_cr would be empty at this
20123: # point, so we can use a bashism as a fallback.
20124: if test "x$ac_cr" = x; then
20125: eval ac_cr=\$\'\\r\'
20126: fi
20127: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20128: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20129: ac_cs_awk_cr='\\r'
20130: else
20131: ac_cs_awk_cr=$ac_cr
20132: fi
20133:
20134: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20135: _ACEOF
20136:
20137:
1.62 paf 20138: {
1.150 moko 20139: echo "cat >conf$$subs.awk <<_ACEOF" &&
20140: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20141: echo "_ACEOF"
20142: } >conf$$subs.sh ||
20143: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20144: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20145: ac_delim='%!_!# '
20146: for ac_last_try in false false false false false :; do
20147: . ./conf$$subs.sh ||
20148: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20149:
20150: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20151: if test $ac_delim_n = $ac_delim_num; then
20152: break
20153: elif $ac_last_try; then
20154: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20155: else
20156: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20157: fi
20158: done
20159: rm -f conf$$subs.sh
20160:
20161: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20162: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20163: _ACEOF
20164: sed -n '
20165: h
20166: s/^/S["/; s/!.*/"]=/
20167: p
20168: g
20169: s/^[^!]*!//
20170: :repl
20171: t repl
20172: s/'"$ac_delim"'$//
20173: t delim
20174: :nl
20175: h
20176: s/\(.\{148\}\)..*/\1/
20177: t more1
20178: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20179: p
20180: n
20181: b repl
20182: :more1
20183: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20184: p
20185: g
20186: s/.\{148\}//
20187: t nl
20188: :delim
20189: h
20190: s/\(.\{148\}\)..*/\1/
20191: t more2
20192: s/["\\]/\\&/g; s/^/"/; s/$/"/
20193: p
20194: b
20195: :more2
20196: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20197: p
20198: g
20199: s/.\{148\}//
20200: t delim
20201: ' <conf$$subs.awk | sed '
20202: /^[^""]/{
20203: N
20204: s/\n//
20205: }
20206: ' >>$CONFIG_STATUS || ac_write_fail=1
20207: rm -f conf$$subs.awk
20208: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20209: _ACAWK
20210: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20211: for (key in S) S_is_set[key] = 1
20212: FS = ""
20213:
20214: }
20215: {
20216: line = $ 0
20217: nfields = split(line, field, "@")
20218: substed = 0
20219: len = length(field[1])
20220: for (i = 2; i < nfields; i++) {
20221: key = field[i]
20222: keylen = length(key)
20223: if (S_is_set[key]) {
20224: value = S[key]
20225: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20226: len += length(value) + length(field[++i])
20227: substed = 1
20228: } else
20229: len += 1 + keylen
20230: }
20231:
20232: print line
1.62 paf 20233: }
20234:
1.150 moko 20235: _ACAWK
20236: _ACEOF
20237: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20238: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20239: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20240: else
20241: cat
20242: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20243: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 20244: _ACEOF
1.1 paf 20245:
1.150 moko 20246: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20247: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20248: # trailing colons and then remove the whole line if VPATH becomes empty
20249: # (actually we leave an empty line to preserve line numbers).
20250: if test "x$srcdir" = x.; then
20251: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20252: h
20253: s///
20254: s/^/:/
20255: s/[ ]*$/:/
20256: s/:\$(srcdir):/:/g
20257: s/:\${srcdir}:/:/g
20258: s/:@srcdir@:/:/g
20259: s/^:*//
20260: s/:*$//
20261: x
20262: s/\(=[ ]*\).*/\1/
20263: G
20264: s/\n//
20265: s/^[^=]*=[ ]*$//
20266: }'
20267: fi
1.62 paf 20268:
1.150 moko 20269: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20270: fi # test -n "$CONFIG_FILES"
1.1 paf 20271:
1.150 moko 20272: # Set up the scripts for CONFIG_HEADERS section.
20273: # No need to generate them if there are no CONFIG_HEADERS.
20274: # This happens for instance with `./config.status Makefile'.
20275: if test -n "$CONFIG_HEADERS"; then
20276: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20277: BEGIN {
20278: _ACEOF
20279:
20280: # Transform confdefs.h into an awk script `defines.awk', embedded as
20281: # here-document in config.status, that substitutes the proper values into
20282: # config.h.in to produce config.h.
20283:
20284: # Create a delimiter string that does not exist in confdefs.h, to ease
20285: # handling of long lines.
20286: ac_delim='%!_!# '
20287: for ac_last_try in false false :; do
20288: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20289: if test -z "$ac_tt"; then
20290: break
20291: elif $ac_last_try; then
20292: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20293: else
20294: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 20295: fi
1.150 moko 20296: done
1.1 paf 20297:
1.150 moko 20298: # For the awk script, D is an array of macro values keyed by name,
20299: # likewise P contains macro parameters if any. Preserve backslash
20300: # newline sequences.
20301:
20302: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20303: sed -n '
20304: s/.\{148\}/&'"$ac_delim"'/g
20305: t rset
20306: :rset
20307: s/^[ ]*#[ ]*define[ ][ ]*/ /
20308: t def
20309: d
20310: :def
20311: s/\\$//
20312: t bsnl
20313: s/["\\]/\\&/g
20314: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20315: D["\1"]=" \3"/p
20316: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20317: d
20318: :bsnl
20319: s/["\\]/\\&/g
20320: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20321: D["\1"]=" \3\\\\\\n"\\/p
20322: t cont
20323: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20324: t cont
20325: d
20326: :cont
20327: n
20328: s/.\{148\}/&'"$ac_delim"'/g
20329: t clear
20330: :clear
20331: s/\\$//
20332: t bsnlc
20333: s/["\\]/\\&/g; s/^/"/; s/$/"/p
20334: d
20335: :bsnlc
20336: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20337: b cont
20338: ' <confdefs.h | sed '
20339: s/'"$ac_delim"'/"\\\
20340: "/g' >>$CONFIG_STATUS || ac_write_fail=1
20341:
20342: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20343: for (key in D) D_is_set[key] = 1
20344: FS = ""
20345: }
20346: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20347: line = \$ 0
20348: split(line, arg, " ")
20349: if (arg[1] == "#") {
20350: defundef = arg[2]
20351: mac1 = arg[3]
20352: } else {
20353: defundef = substr(arg[1], 2)
20354: mac1 = arg[2]
20355: }
20356: split(mac1, mac2, "(") #)
20357: macro = mac2[1]
20358: prefix = substr(line, 1, index(line, defundef) - 1)
20359: if (D_is_set[macro]) {
20360: # Preserve the white space surrounding the "#".
20361: print prefix "define", macro P[macro] D[macro]
20362: next
20363: } else {
20364: # Replace #undef with comments. This is necessary, for example,
20365: # in the case of _POSIX_SOURCE, which is predefined and required
20366: # on some systems where configure will not decide to define it.
20367: if (defundef == "undef") {
20368: print "/*", prefix defundef, macro, "*/"
20369: next
20370: }
20371: }
20372: }
20373: { print }
20374: _ACAWK
1.62 paf 20375: _ACEOF
1.150 moko 20376: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20377: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20378: fi # test -n "$CONFIG_HEADERS"
20379:
20380:
20381: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20382: shift
20383: for ac_tag
20384: do
20385: case $ac_tag in
20386: :[FHLC]) ac_mode=$ac_tag; continue;;
20387: esac
20388: case $ac_mode$ac_tag in
20389: :[FHL]*:*);;
20390: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20391: :[FH]-) ac_tag=-:-;;
20392: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20393: esac
20394: ac_save_IFS=$IFS
20395: IFS=:
20396: set x $ac_tag
20397: IFS=$ac_save_IFS
20398: shift
20399: ac_file=$1
20400: shift
20401:
20402: case $ac_mode in
20403: :L) ac_source=$1;;
20404: :[FH])
20405: ac_file_inputs=
20406: for ac_f
20407: do
20408: case $ac_f in
20409: -) ac_f="$ac_tmp/stdin";;
20410: *) # Look for the file first in the build tree, then in the source tree
20411: # (if the path is not absolute). The absolute path cannot be DOS-style,
20412: # because $ac_f cannot contain `:'.
20413: test -f "$ac_f" ||
20414: case $ac_f in
20415: [\\/$]*) false;;
20416: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20417: esac ||
20418: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20419: esac
20420: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20421: as_fn_append ac_file_inputs " '$ac_f'"
20422: done
20423:
20424: # Let's still pretend it is `configure' which instantiates (i.e., don't
20425: # use $as_me), people would be surprised to read:
20426: # /* config.h. Generated by config.status. */
20427: configure_input='Generated from '`
20428: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20429: `' by configure.'
20430: if test x"$ac_file" != x-; then
20431: configure_input="$ac_file. $configure_input"
20432: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20433: $as_echo "$as_me: creating $ac_file" >&6;}
20434: fi
20435: # Neutralize special characters interpreted by sed in replacement strings.
20436: case $configure_input in #(
20437: *\&* | *\|* | *\\* )
20438: ac_sed_conf_input=`$as_echo "$configure_input" |
20439: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20440: *) ac_sed_conf_input=$configure_input;;
20441: esac
20442:
20443: case $ac_tag in
20444: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20445: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20446: esac
20447: ;;
1.1 paf 20448: esac
20449:
1.150 moko 20450: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 20451: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20452: X"$ac_file" : 'X\(//\)[^/]' \| \
20453: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 20454: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20455: $as_echo X"$ac_file" |
20456: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20457: s//\1/
20458: q
20459: }
20460: /^X\(\/\/\)[^/].*/{
20461: s//\1/
20462: q
20463: }
20464: /^X\(\/\/\)$/{
20465: s//\1/
20466: q
20467: }
20468: /^X\(\/\).*/{
20469: s//\1/
20470: q
20471: }
20472: s/.*/./; q'`
20473: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 20474: ac_builddir=.
20475:
1.150 moko 20476: case "$ac_dir" in
20477: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20478: *)
20479: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20480: # A ".." for each directory in $ac_dir_suffix.
20481: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20482: case $ac_top_builddir_sub in
20483: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20484: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20485: esac ;;
20486: esac
20487: ac_abs_top_builddir=$ac_pwd
20488: ac_abs_builddir=$ac_pwd$ac_dir_suffix
20489: # for backward compatibility:
20490: ac_top_builddir=$ac_top_build_prefix
1.62 paf 20491:
20492: case $srcdir in
1.150 moko 20493: .) # We are building in place.
1.62 paf 20494: ac_srcdir=.
1.150 moko 20495: ac_top_srcdir=$ac_top_builddir_sub
20496: ac_abs_top_srcdir=$ac_pwd ;;
20497: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 20498: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 20499: ac_top_srcdir=$srcdir
20500: ac_abs_top_srcdir=$srcdir ;;
20501: *) # Relative name.
20502: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20503: ac_top_srcdir=$ac_top_build_prefix$srcdir
20504: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 20505: esac
1.150 moko 20506: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 20507:
1.62 paf 20508:
1.150 moko 20509: case $ac_mode in
20510: :F)
20511: #
20512: # CONFIG_FILE
20513: #
1.1 paf 20514:
1.62 paf 20515: case $INSTALL in
20516: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 20517: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 20518: esac
1.150 moko 20519: ac_MKDIR_P=$MKDIR_P
20520: case $MKDIR_P in
20521: [\\/$]* | ?:[\\/]* ) ;;
20522: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20523: esac
20524: _ACEOF
1.1 paf 20525:
1.150 moko 20526: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20527: # If the template does not know about datarootdir, expand it.
20528: # FIXME: This hack should be removed a few years after 2.60.
20529: ac_datarootdir_hack=; ac_datarootdir_seen=
20530: ac_sed_dataroot='
20531: /datarootdir/ {
20532: p
20533: q
20534: }
20535: /@datadir@/p
20536: /@docdir@/p
20537: /@infodir@/p
20538: /@localedir@/p
20539: /@mandir@/p'
20540: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20541: *datarootdir*) ac_datarootdir_seen=yes;;
20542: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20543: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20544: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20545: _ACEOF
20546: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20547: ac_datarootdir_hack='
20548: s&@datadir@&$datadir&g
20549: s&@docdir@&$docdir&g
20550: s&@infodir@&$infodir&g
20551: s&@localedir@&$localedir&g
20552: s&@mandir@&$mandir&g
20553: s&\\\${datarootdir}&$datarootdir&g' ;;
20554: esac
20555: _ACEOF
1.62 paf 20556:
1.150 moko 20557: # Neutralize VPATH when `$srcdir' = `.'.
20558: # Shell code in configure.ac might set extrasub.
20559: # FIXME: do we really want to maintain this feature?
20560: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20561: ac_sed_extra="$ac_vpsub
1.62 paf 20562: $extrasub
20563: _ACEOF
1.150 moko 20564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20565: :t
20566: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 20567: s|@configure_input@|$ac_sed_conf_input|;t t
20568: s&@top_builddir@&$ac_top_builddir_sub&;t t
20569: s&@top_build_prefix@&$ac_top_build_prefix&;t t
20570: s&@srcdir@&$ac_srcdir&;t t
20571: s&@abs_srcdir@&$ac_abs_srcdir&;t t
20572: s&@top_srcdir@&$ac_top_srcdir&;t t
20573: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20574: s&@builddir@&$ac_builddir&;t t
20575: s&@abs_builddir@&$ac_abs_builddir&;t t
20576: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20577: s&@INSTALL@&$ac_INSTALL&;t t
20578: s&@MKDIR_P@&$ac_MKDIR_P&;t t
20579: $ac_datarootdir_hack
20580: "
20581: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20582: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20583:
20584: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20585: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20586: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20587: "$ac_tmp/out"`; test -z "$ac_out"; } &&
20588: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20589: which seems to be undefined. Please make sure it is defined" >&5
20590: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20591: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 20592:
1.150 moko 20593: rm -f "$ac_tmp/stdin"
1.62 paf 20594: case $ac_file in
1.150 moko 20595: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20596: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20597: esac \
20598: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20599: ;;
20600: :H)
20601: #
20602: # CONFIG_HEADER
20603: #
1.62 paf 20604: if test x"$ac_file" != x-; then
1.150 moko 20605: {
20606: $as_echo "/* $configure_input */" \
20607: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20608: } >"$ac_tmp/config.h" \
20609: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20610: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20611: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20612: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 20613: else
1.150 moko 20614: rm -f "$ac_file"
20615: mv "$ac_tmp/config.h" "$ac_file" \
20616: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 20617: fi
20618: else
1.150 moko 20619: $as_echo "/* $configure_input */" \
20620: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20621: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 20622: fi
1.150 moko 20623: # Compute "$ac_file"'s index in $config_headers.
20624: _am_arg="$ac_file"
1.86 paf 20625: _am_stamp_count=1
20626: for _am_header in $config_headers :; do
20627: case $_am_header in
1.150 moko 20628: $_am_arg | $_am_arg:* )
1.86 paf 20629: break ;;
20630: * )
20631: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20632: esac
20633: done
1.150 moko 20634: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20635: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20636: X"$_am_arg" : 'X\(//\)[^/]' \| \
20637: X"$_am_arg" : 'X\(//\)$' \| \
20638: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20639: $as_echo X"$_am_arg" |
20640: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20641: s//\1/
20642: q
20643: }
20644: /^X\(\/\/\)[^/].*/{
20645: s//\1/
20646: q
20647: }
20648: /^X\(\/\/\)$/{
20649: s//\1/
20650: q
20651: }
20652: /^X\(\/\).*/{
20653: s//\1/
20654: q
20655: }
20656: s/.*/./; q'`/stamp-h$_am_stamp_count
20657: ;;
1.62 paf 20658:
1.150 moko 20659: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20660: $as_echo "$as_me: executing $ac_file commands" >&6;}
20661: ;;
20662: esac
1.86 paf 20663:
1.62 paf 20664:
1.150 moko 20665: case $ac_file$ac_mode in
20666: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 20667: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 20668: # are listed without --file. Let's play safe and only enable the eval
20669: # if we detect the quoting.
20670: case $CONFIG_FILES in
20671: *\'*) eval set x "$CONFIG_FILES" ;;
20672: *) set x $CONFIG_FILES ;;
20673: esac
20674: shift
20675: for mf
20676: do
20677: # Strip MF so we end up with the name of the file.
20678: mf=`echo "$mf" | sed -e 's/:.*$//'`
20679: # Check whether this is an Automake generated Makefile or not.
1.187 moko 20680: # We used to match only the files named 'Makefile.in', but
1.150 moko 20681: # some people rename them; so instead we look at the file content.
20682: # Grep'ing the first line is not enough: some people post-process
20683: # each Makefile.in and add a new line on top of each file to say so.
20684: # Grep'ing the whole file is not good either: AIX grep has a line
20685: # limit of 2048, but all sed's we know have understand at least 4000.
20686: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20687: dirpart=`$as_dirname -- "$mf" ||
1.62 paf 20688: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20689: X"$mf" : 'X\(//\)[^/]' \| \
20690: X"$mf" : 'X\(//\)$' \| \
1.150 moko 20691: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20692: $as_echo X"$mf" |
20693: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20694: s//\1/
20695: q
20696: }
20697: /^X\(\/\/\)[^/].*/{
20698: s//\1/
20699: q
20700: }
20701: /^X\(\/\/\)$/{
20702: s//\1/
20703: q
20704: }
20705: /^X\(\/\).*/{
20706: s//\1/
20707: q
20708: }
20709: s/.*/./; q'`
20710: else
20711: continue
20712: fi
20713: # Extract the definition of DEPDIR, am__include, and am__quote
1.187 moko 20714: # from the Makefile without running 'make'.
1.150 moko 20715: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20716: test -z "$DEPDIR" && continue
20717: am__include=`sed -n 's/^am__include = //p' < "$mf"`
1.187 moko 20718: test -z "$am__include" && continue
1.150 moko 20719: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20720: # Find all dependency output files, they are included files with
20721: # $(DEPDIR) in their names. We invoke sed twice because it is the
20722: # simplest approach to changing $(DEPDIR) to its actual value in the
20723: # expansion.
20724: for file in `sed -n "
20725: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.187 moko 20726: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1.150 moko 20727: # Make sure the directory exists.
20728: test -f "$dirpart/$file" && continue
20729: fdir=`$as_dirname -- "$file" ||
1.62 paf 20730: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20731: X"$file" : 'X\(//\)[^/]' \| \
20732: X"$file" : 'X\(//\)$' \| \
1.150 moko 20733: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20734: $as_echo X"$file" |
20735: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20736: s//\1/
20737: q
20738: }
20739: /^X\(\/\/\)[^/].*/{
20740: s//\1/
20741: q
20742: }
20743: /^X\(\/\/\)$/{
20744: s//\1/
20745: q
20746: }
20747: /^X\(\/\).*/{
20748: s//\1/
20749: q
20750: }
20751: s/.*/./; q'`
20752: as_dir=$dirpart/$fdir; as_fn_mkdir_p
20753: # echo "creating $dirpart/$file"
20754: echo '# dummy' > "$dirpart/$file"
1.62 paf 20755: done
20756: done
1.150 moko 20757: }
1.62 paf 20758: ;;
1.150 moko 20759: "libtool":C)
1.128 moko 20760:
20761: # See if we are running on zsh, and set the options which allow our
20762: # commands through without removal of \ escapes.
20763: if test -n "${ZSH_VERSION+set}" ; then
20764: setopt NO_GLOB_SUBST
20765: fi
20766:
20767: cfgfile="${ofile}T"
20768: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20769: $RM "$cfgfile"
20770:
20771: cat <<_LT_EOF >> "$cfgfile"
20772: #! $SHELL
20773:
20774: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20775: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20776: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20777: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20778: #
20779: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20780: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20781: # Foundation, Inc.
20782: # Written by Gordon Matzigkeit, 1996
20783: #
20784: # This file is part of GNU Libtool.
20785: #
20786: # GNU Libtool is free software; you can redistribute it and/or
20787: # modify it under the terms of the GNU General Public License as
20788: # published by the Free Software Foundation; either version 2 of
20789: # the License, or (at your option) any later version.
20790: #
20791: # As a special exception to the GNU General Public License,
20792: # if you distribute this file as part of a program or library that
20793: # is built using GNU Libtool, you may include this file under the
20794: # same distribution terms that you use for the rest of that program.
20795: #
20796: # GNU Libtool is distributed in the hope that it will be useful,
20797: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20798: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20799: # GNU General Public License for more details.
20800: #
20801: # You should have received a copy of the GNU General Public License
20802: # along with GNU Libtool; see the file COPYING. If not, a copy
20803: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20804: # obtained by writing to the Free Software Foundation, Inc.,
20805: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20806:
20807:
20808: # The names of the tagged configurations supported by this script.
20809: available_tags="CXX "
20810:
20811: # ### BEGIN LIBTOOL CONFIG
20812:
20813: # Which release of libtool.m4 was used?
20814: macro_version=$macro_version
20815: macro_revision=$macro_revision
20816:
20817: # Assembler program.
20818: AS=$lt_AS
20819:
20820: # DLL creation program.
20821: DLLTOOL=$lt_DLLTOOL
20822:
20823: # Object dumper program.
20824: OBJDUMP=$lt_OBJDUMP
20825:
1.145 moko 20826: # What type of objects to build.
20827: pic_mode=$pic_mode
20828:
1.128 moko 20829: # Whether or not to build shared libraries.
20830: build_libtool_libs=$enable_shared
20831:
1.138 moko 20832: # Whether or not to build static libraries.
20833: build_old_libs=$enable_static
20834:
1.128 moko 20835: # Whether or not to optimize for fast installation.
20836: fast_install=$enable_fast_install
20837:
20838: # Shell to use when invoking shell scripts.
20839: SHELL=$lt_SHELL
20840:
20841: # An echo program that protects backslashes.
20842: ECHO=$lt_ECHO
20843:
20844: # The PATH separator for the build system.
20845: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20846:
20847: # The host system.
20848: host_alias=$host_alias
20849: host=$host
20850: host_os=$host_os
20851:
20852: # The build system.
20853: build_alias=$build_alias
20854: build=$build
20855: build_os=$build_os
20856:
20857: # A sed program that does not truncate output.
20858: SED=$lt_SED
20859:
20860: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20861: Xsed="\$SED -e 1s/^X//"
20862:
20863: # A grep program that handles long lines.
20864: GREP=$lt_GREP
20865:
20866: # An ERE matcher.
20867: EGREP=$lt_EGREP
20868:
20869: # A literal string matcher.
20870: FGREP=$lt_FGREP
20871:
20872: # A BSD- or MS-compatible name lister.
20873: NM=$lt_NM
20874:
20875: # Whether we need soft or hard links.
20876: LN_S=$lt_LN_S
20877:
20878: # What is the maximum length of a command?
20879: max_cmd_len=$max_cmd_len
20880:
20881: # Object file suffix (normally "o").
20882: objext=$ac_objext
20883:
20884: # Executable file suffix (normally "").
20885: exeext=$exeext
20886:
20887: # whether the shell understands "unset".
20888: lt_unset=$lt_unset
20889:
20890: # turn spaces into newlines.
20891: SP2NL=$lt_lt_SP2NL
20892:
20893: # turn newlines into spaces.
20894: NL2SP=$lt_lt_NL2SP
20895:
20896: # convert \$build file names to \$host format.
20897: to_host_file_cmd=$lt_cv_to_host_file_cmd
20898:
20899: # convert \$build files to toolchain format.
20900: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20901:
20902: # Method to check whether dependent libraries are shared objects.
20903: deplibs_check_method=$lt_deplibs_check_method
20904:
20905: # Command to use when deplibs_check_method = "file_magic".
20906: file_magic_cmd=$lt_file_magic_cmd
20907:
20908: # How to find potential files when deplibs_check_method = "file_magic".
20909: file_magic_glob=$lt_file_magic_glob
20910:
20911: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20912: want_nocaseglob=$lt_want_nocaseglob
20913:
20914: # Command to associate shared and link libraries.
20915: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20916:
20917: # The archiver.
20918: AR=$lt_AR
20919:
20920: # Flags to create an archive.
20921: AR_FLAGS=$lt_AR_FLAGS
20922:
20923: # How to feed a file listing to the archiver.
20924: archiver_list_spec=$lt_archiver_list_spec
20925:
20926: # A symbol stripping program.
20927: STRIP=$lt_STRIP
20928:
20929: # Commands used to install an old-style archive.
20930: RANLIB=$lt_RANLIB
20931: old_postinstall_cmds=$lt_old_postinstall_cmds
20932: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20933:
20934: # Whether to use a lock for old archive extraction.
20935: lock_old_archive_extraction=$lock_old_archive_extraction
20936:
20937: # A C compiler.
20938: LTCC=$lt_CC
20939:
20940: # LTCC compiler flags.
20941: LTCFLAGS=$lt_CFLAGS
20942:
20943: # Take the output of nm and produce a listing of raw symbols and C names.
20944: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20945:
20946: # Transform the output of nm in a proper C declaration.
20947: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20948:
20949: # Transform the output of nm in a C name address pair.
20950: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20951:
20952: # Transform the output of nm in a C name address pair when lib prefix is needed.
20953: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20954:
20955: # Specify filename containing input files for \$NM.
20956: nm_file_list_spec=$lt_nm_file_list_spec
20957:
20958: # The root where to search for dependent libraries,and in which our libraries should be installed.
20959: lt_sysroot=$lt_sysroot
20960:
20961: # The name of the directory that contains temporary libtool files.
20962: objdir=$objdir
20963:
20964: # Used to examine libraries when file_magic_cmd begins with "file".
20965: MAGIC_CMD=$MAGIC_CMD
20966:
20967: # Must we lock files when doing compilation?
20968: need_locks=$lt_need_locks
20969:
20970: # Manifest tool.
20971: MANIFEST_TOOL=$lt_MANIFEST_TOOL
20972:
20973: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20974: DSYMUTIL=$lt_DSYMUTIL
20975:
20976: # Tool to change global to local symbols on Mac OS X.
20977: NMEDIT=$lt_NMEDIT
20978:
20979: # Tool to manipulate fat objects and archives on Mac OS X.
20980: LIPO=$lt_LIPO
20981:
20982: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20983: OTOOL=$lt_OTOOL
20984:
20985: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20986: OTOOL64=$lt_OTOOL64
20987:
20988: # Old archive suffix (normally "a").
20989: libext=$libext
20990:
20991: # Shared library suffix (normally ".so").
20992: shrext_cmds=$lt_shrext_cmds
20993:
20994: # The commands to extract the exported symbol list from a shared archive.
20995: extract_expsyms_cmds=$lt_extract_expsyms_cmds
20996:
20997: # Variables whose values should be saved in libtool wrapper scripts and
20998: # restored at link time.
20999: variables_saved_for_relink=$lt_variables_saved_for_relink
21000:
21001: # Do we need the "lib" prefix for modules?
21002: need_lib_prefix=$need_lib_prefix
21003:
21004: # Do we need a version for libraries?
21005: need_version=$need_version
21006:
21007: # Library versioning type.
21008: version_type=$version_type
21009:
21010: # Shared library runtime path variable.
21011: runpath_var=$runpath_var
21012:
21013: # Shared library path variable.
21014: shlibpath_var=$shlibpath_var
21015:
21016: # Is shlibpath searched before the hard-coded library search path?
21017: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21018:
21019: # Format of library name prefix.
21020: libname_spec=$lt_libname_spec
21021:
21022: # List of archive names. First name is the real one, the rest are links.
21023: # The last name is the one that the linker finds with -lNAME
21024: library_names_spec=$lt_library_names_spec
21025:
21026: # The coded name of the library, if different from the real name.
21027: soname_spec=$lt_soname_spec
21028:
21029: # Permission mode override for installation of shared libraries.
21030: install_override_mode=$lt_install_override_mode
21031:
21032: # Command to use after installation of a shared archive.
21033: postinstall_cmds=$lt_postinstall_cmds
21034:
21035: # Command to use after uninstallation of a shared archive.
21036: postuninstall_cmds=$lt_postuninstall_cmds
21037:
21038: # Commands used to finish a libtool library installation in a directory.
21039: finish_cmds=$lt_finish_cmds
21040:
21041: # As "finish_cmds", except a single script fragment to be evaled but
21042: # not shown.
21043: finish_eval=$lt_finish_eval
21044:
21045: # Whether we should hardcode library paths into libraries.
21046: hardcode_into_libs=$hardcode_into_libs
21047:
21048: # Compile-time system search path for libraries.
21049: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21050:
21051: # Run-time system search path for libraries.
21052: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21053:
21054: # Whether dlopen is supported.
21055: dlopen_support=$enable_dlopen
21056:
21057: # Whether dlopen of programs is supported.
21058: dlopen_self=$enable_dlopen_self
21059:
21060: # Whether dlopen of statically linked programs is supported.
21061: dlopen_self_static=$enable_dlopen_self_static
21062:
21063: # Commands to strip libraries.
21064: old_striplib=$lt_old_striplib
21065: striplib=$lt_striplib
21066:
21067:
21068: # The linker used to build libraries.
21069: LD=$lt_LD
21070:
21071: # How to create reloadable object files.
21072: reload_flag=$lt_reload_flag
21073: reload_cmds=$lt_reload_cmds
21074:
21075: # Commands used to build an old-style archive.
21076: old_archive_cmds=$lt_old_archive_cmds
21077:
21078: # A language specific compiler.
21079: CC=$lt_compiler
21080:
21081: # Is the compiler the GNU compiler?
21082: with_gcc=$GCC
21083:
21084: # Compiler flag to turn off builtin functions.
21085: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21086:
21087: # Additional compiler flags for building library objects.
21088: pic_flag=$lt_lt_prog_compiler_pic
21089:
21090: # How to pass a linker flag through the compiler.
21091: wl=$lt_lt_prog_compiler_wl
21092:
21093: # Compiler flag to prevent dynamic linking.
21094: link_static_flag=$lt_lt_prog_compiler_static
21095:
21096: # Does compiler simultaneously support -c and -o options?
21097: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21098:
21099: # Whether or not to add -lc for building shared libraries.
21100: build_libtool_need_lc=$archive_cmds_need_lc
21101:
21102: # Whether or not to disallow shared libs when runtime libs are static.
21103: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21104:
21105: # Compiler flag to allow reflexive dlopens.
21106: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21107:
21108: # Compiler flag to generate shared objects directly from archives.
21109: whole_archive_flag_spec=$lt_whole_archive_flag_spec
21110:
21111: # Whether the compiler copes with passing no objects directly.
21112: compiler_needs_object=$lt_compiler_needs_object
21113:
21114: # Create an old-style archive from a shared archive.
21115: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21116:
21117: # Create a temporary old-style archive to link instead of a shared archive.
21118: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21119:
21120: # Commands used to build a shared archive.
21121: archive_cmds=$lt_archive_cmds
21122: archive_expsym_cmds=$lt_archive_expsym_cmds
21123:
21124: # Commands used to build a loadable module if different from building
21125: # a shared archive.
21126: module_cmds=$lt_module_cmds
21127: module_expsym_cmds=$lt_module_expsym_cmds
21128:
21129: # Whether we are building with GNU ld or not.
21130: with_gnu_ld=$lt_with_gnu_ld
21131:
21132: # Flag that allows shared libraries with undefined symbols to be built.
21133: allow_undefined_flag=$lt_allow_undefined_flag
21134:
21135: # Flag that enforces no undefined symbols.
21136: no_undefined_flag=$lt_no_undefined_flag
21137:
21138: # Flag to hardcode \$libdir into a binary during linking.
21139: # This must work even if \$libdir does not exist
21140: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21141:
21142: # Whether we need a single "-rpath" flag with a separated argument.
21143: hardcode_libdir_separator=$lt_hardcode_libdir_separator
21144:
21145: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21146: # DIR into the resulting binary.
21147: hardcode_direct=$hardcode_direct
21148:
21149: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21150: # DIR into the resulting binary and the resulting library dependency is
21151: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21152: # library is relocated.
21153: hardcode_direct_absolute=$hardcode_direct_absolute
21154:
21155: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21156: # into the resulting binary.
21157: hardcode_minus_L=$hardcode_minus_L
21158:
21159: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21160: # into the resulting binary.
21161: hardcode_shlibpath_var=$hardcode_shlibpath_var
21162:
21163: # Set to "yes" if building a shared library automatically hardcodes DIR
21164: # into the library and all subsequent libraries and executables linked
21165: # against it.
21166: hardcode_automatic=$hardcode_automatic
21167:
21168: # Set to yes if linker adds runtime paths of dependent libraries
21169: # to runtime path list.
21170: inherit_rpath=$inherit_rpath
21171:
21172: # Whether libtool must link a program against all its dependency libraries.
21173: link_all_deplibs=$link_all_deplibs
21174:
21175: # Set to "yes" if exported symbols are required.
21176: always_export_symbols=$always_export_symbols
21177:
21178: # The commands to list exported symbols.
21179: export_symbols_cmds=$lt_export_symbols_cmds
21180:
21181: # Symbols that should not be listed in the preloaded symbols.
21182: exclude_expsyms=$lt_exclude_expsyms
21183:
21184: # Symbols that must always be exported.
21185: include_expsyms=$lt_include_expsyms
21186:
21187: # Commands necessary for linking programs (against libraries) with templates.
21188: prelink_cmds=$lt_prelink_cmds
21189:
21190: # Commands necessary for finishing linking programs.
21191: postlink_cmds=$lt_postlink_cmds
21192:
21193: # Specify filename containing input files.
21194: file_list_spec=$lt_file_list_spec
21195:
21196: # How to hardcode a shared library path into an executable.
21197: hardcode_action=$hardcode_action
21198:
21199: # The directories searched by this compiler when creating a shared library.
21200: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21201:
21202: # Dependencies to place before and after the objects being linked to
21203: # create a shared library.
21204: predep_objects=$lt_predep_objects
21205: postdep_objects=$lt_postdep_objects
21206: predeps=$lt_predeps
21207: postdeps=$lt_postdeps
21208:
21209: # The library search path used internally by the compiler when linking
21210: # a shared library.
21211: compiler_lib_search_path=$lt_compiler_lib_search_path
21212:
21213: # ### END LIBTOOL CONFIG
21214:
21215: _LT_EOF
21216:
21217: case $host_os in
21218: aix3*)
21219: cat <<\_LT_EOF >> "$cfgfile"
21220: # AIX sometimes has problems with the GCC collect2 program. For some
21221: # reason, if we set the COLLECT_NAMES environment variable, the problems
21222: # vanish in a puff of smoke.
21223: if test "X${COLLECT_NAMES+set}" != Xset; then
21224: COLLECT_NAMES=
21225: export COLLECT_NAMES
21226: fi
21227: _LT_EOF
21228: ;;
21229: esac
21230:
21231:
21232: ltmain="$ac_aux_dir/ltmain.sh"
21233:
21234:
21235: # We use sed instead of cat because bash on DJGPP gets confused if
21236: # if finds mixed CR/LF and LF-only lines. Since sed operates in
21237: # text mode, it properly converts lines to CR/LF. This bash problem
21238: # is reportedly fixed, but why not run on old versions too?
21239: sed '$q' "$ltmain" >> "$cfgfile" \
21240: || (rm -f "$cfgfile"; exit 1)
21241:
21242: if test x"$xsi_shell" = xyes; then
21243: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21244: func_dirname ()\
21245: {\
21246: \ case ${1} in\
21247: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21248: \ * ) func_dirname_result="${3}" ;;\
21249: \ esac\
21250: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21251: && mv -f "$cfgfile.tmp" "$cfgfile" \
21252: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21253: test 0 -eq $? || _lt_function_replace_fail=:
21254:
21255:
21256: sed -e '/^func_basename ()$/,/^} # func_basename /c\
21257: func_basename ()\
21258: {\
21259: \ func_basename_result="${1##*/}"\
21260: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21261: && mv -f "$cfgfile.tmp" "$cfgfile" \
21262: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21263: test 0 -eq $? || _lt_function_replace_fail=:
21264:
21265:
21266: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21267: func_dirname_and_basename ()\
21268: {\
21269: \ case ${1} in\
21270: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21271: \ * ) func_dirname_result="${3}" ;;\
21272: \ esac\
21273: \ func_basename_result="${1##*/}"\
21274: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21275: && mv -f "$cfgfile.tmp" "$cfgfile" \
21276: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21277: test 0 -eq $? || _lt_function_replace_fail=:
21278:
21279:
21280: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21281: func_stripname ()\
21282: {\
21283: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21284: \ # positional parameters, so assign one to ordinary parameter first.\
21285: \ func_stripname_result=${3}\
21286: \ func_stripname_result=${func_stripname_result#"${1}"}\
21287: \ func_stripname_result=${func_stripname_result%"${2}"}\
21288: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21289: && mv -f "$cfgfile.tmp" "$cfgfile" \
21290: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21291: test 0 -eq $? || _lt_function_replace_fail=:
21292:
21293:
21294: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21295: func_split_long_opt ()\
21296: {\
21297: \ func_split_long_opt_name=${1%%=*}\
21298: \ func_split_long_opt_arg=${1#*=}\
21299: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21300: && mv -f "$cfgfile.tmp" "$cfgfile" \
21301: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21302: test 0 -eq $? || _lt_function_replace_fail=:
21303:
21304:
21305: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21306: func_split_short_opt ()\
21307: {\
21308: \ func_split_short_opt_arg=${1#??}\
21309: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21310: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21311: && mv -f "$cfgfile.tmp" "$cfgfile" \
21312: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21313: test 0 -eq $? || _lt_function_replace_fail=:
21314:
21315:
21316: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21317: func_lo2o ()\
21318: {\
21319: \ case ${1} in\
21320: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21321: \ *) func_lo2o_result=${1} ;;\
21322: \ esac\
21323: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21324: && mv -f "$cfgfile.tmp" "$cfgfile" \
21325: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21326: test 0 -eq $? || _lt_function_replace_fail=:
21327:
21328:
21329: sed -e '/^func_xform ()$/,/^} # func_xform /c\
21330: func_xform ()\
21331: {\
21332: func_xform_result=${1%.*}.lo\
21333: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21334: && mv -f "$cfgfile.tmp" "$cfgfile" \
21335: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21336: test 0 -eq $? || _lt_function_replace_fail=:
21337:
21338:
21339: sed -e '/^func_arith ()$/,/^} # func_arith /c\
21340: func_arith ()\
21341: {\
21342: func_arith_result=$(( $* ))\
21343: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21344: && mv -f "$cfgfile.tmp" "$cfgfile" \
21345: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21346: test 0 -eq $? || _lt_function_replace_fail=:
21347:
21348:
21349: sed -e '/^func_len ()$/,/^} # func_len /c\
21350: func_len ()\
21351: {\
21352: func_len_result=${#1}\
21353: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21354: && mv -f "$cfgfile.tmp" "$cfgfile" \
21355: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21356: test 0 -eq $? || _lt_function_replace_fail=:
21357:
21358: fi
21359:
21360: if test x"$lt_shell_append" = xyes; then
21361: sed -e '/^func_append ()$/,/^} # func_append /c\
21362: func_append ()\
21363: {\
21364: eval "${1}+=\\${2}"\
21365: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21366: && mv -f "$cfgfile.tmp" "$cfgfile" \
21367: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21368: test 0 -eq $? || _lt_function_replace_fail=:
21369:
21370:
21371: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21372: func_append_quoted ()\
21373: {\
21374: \ func_quote_for_eval "${2}"\
21375: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21376: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21377: && mv -f "$cfgfile.tmp" "$cfgfile" \
21378: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21379: test 0 -eq $? || _lt_function_replace_fail=:
21380:
21381:
21382: # Save a `func_append' function call where possible by direct use of '+='
21383: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $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: else
21388: # Save a `func_append' function call even when '+=' is not available
21389: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21390: && mv -f "$cfgfile.tmp" "$cfgfile" \
21391: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21392: test 0 -eq $? || _lt_function_replace_fail=:
21393: fi
21394:
21395: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 21396: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21397: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 21398: fi
21399:
21400:
21401: mv -f "$cfgfile" "$ofile" ||
21402: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21403: chmod +x "$ofile"
21404:
21405:
21406: cat <<_LT_EOF >> "$ofile"
21407:
21408: # ### BEGIN LIBTOOL TAG CONFIG: CXX
21409:
21410: # The linker used to build libraries.
21411: LD=$lt_LD_CXX
21412:
21413: # How to create reloadable object files.
21414: reload_flag=$lt_reload_flag_CXX
21415: reload_cmds=$lt_reload_cmds_CXX
21416:
21417: # Commands used to build an old-style archive.
21418: old_archive_cmds=$lt_old_archive_cmds_CXX
21419:
21420: # A language specific compiler.
21421: CC=$lt_compiler_CXX
21422:
21423: # Is the compiler the GNU compiler?
21424: with_gcc=$GCC_CXX
21425:
21426: # Compiler flag to turn off builtin functions.
21427: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21428:
21429: # Additional compiler flags for building library objects.
21430: pic_flag=$lt_lt_prog_compiler_pic_CXX
21431:
21432: # How to pass a linker flag through the compiler.
21433: wl=$lt_lt_prog_compiler_wl_CXX
21434:
21435: # Compiler flag to prevent dynamic linking.
21436: link_static_flag=$lt_lt_prog_compiler_static_CXX
21437:
21438: # Does compiler simultaneously support -c and -o options?
21439: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21440:
21441: # Whether or not to add -lc for building shared libraries.
21442: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21443:
21444: # Whether or not to disallow shared libs when runtime libs are static.
21445: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21446:
21447: # Compiler flag to allow reflexive dlopens.
21448: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21449:
21450: # Compiler flag to generate shared objects directly from archives.
21451: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21452:
21453: # Whether the compiler copes with passing no objects directly.
21454: compiler_needs_object=$lt_compiler_needs_object_CXX
21455:
21456: # Create an old-style archive from a shared archive.
21457: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21458:
21459: # Create a temporary old-style archive to link instead of a shared archive.
21460: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21461:
21462: # Commands used to build a shared archive.
21463: archive_cmds=$lt_archive_cmds_CXX
21464: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21465:
21466: # Commands used to build a loadable module if different from building
21467: # a shared archive.
21468: module_cmds=$lt_module_cmds_CXX
21469: module_expsym_cmds=$lt_module_expsym_cmds_CXX
21470:
21471: # Whether we are building with GNU ld or not.
21472: with_gnu_ld=$lt_with_gnu_ld_CXX
21473:
21474: # Flag that allows shared libraries with undefined symbols to be built.
21475: allow_undefined_flag=$lt_allow_undefined_flag_CXX
21476:
21477: # Flag that enforces no undefined symbols.
21478: no_undefined_flag=$lt_no_undefined_flag_CXX
21479:
21480: # Flag to hardcode \$libdir into a binary during linking.
21481: # This must work even if \$libdir does not exist
21482: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21483:
21484: # Whether we need a single "-rpath" flag with a separated argument.
21485: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21486:
21487: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21488: # DIR into the resulting binary.
21489: hardcode_direct=$hardcode_direct_CXX
21490:
21491: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21492: # DIR into the resulting binary and the resulting library dependency is
21493: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21494: # library is relocated.
21495: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21496:
21497: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21498: # into the resulting binary.
21499: hardcode_minus_L=$hardcode_minus_L_CXX
21500:
21501: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21502: # into the resulting binary.
21503: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21504:
21505: # Set to "yes" if building a shared library automatically hardcodes DIR
21506: # into the library and all subsequent libraries and executables linked
21507: # against it.
21508: hardcode_automatic=$hardcode_automatic_CXX
21509:
21510: # Set to yes if linker adds runtime paths of dependent libraries
21511: # to runtime path list.
21512: inherit_rpath=$inherit_rpath_CXX
21513:
21514: # Whether libtool must link a program against all its dependency libraries.
21515: link_all_deplibs=$link_all_deplibs_CXX
21516:
21517: # Set to "yes" if exported symbols are required.
21518: always_export_symbols=$always_export_symbols_CXX
21519:
21520: # The commands to list exported symbols.
21521: export_symbols_cmds=$lt_export_symbols_cmds_CXX
21522:
21523: # Symbols that should not be listed in the preloaded symbols.
21524: exclude_expsyms=$lt_exclude_expsyms_CXX
21525:
21526: # Symbols that must always be exported.
21527: include_expsyms=$lt_include_expsyms_CXX
21528:
21529: # Commands necessary for linking programs (against libraries) with templates.
21530: prelink_cmds=$lt_prelink_cmds_CXX
21531:
21532: # Commands necessary for finishing linking programs.
21533: postlink_cmds=$lt_postlink_cmds_CXX
21534:
21535: # Specify filename containing input files.
21536: file_list_spec=$lt_file_list_spec_CXX
21537:
21538: # How to hardcode a shared library path into an executable.
21539: hardcode_action=$hardcode_action_CXX
21540:
21541: # The directories searched by this compiler when creating a shared library.
21542: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21543:
21544: # Dependencies to place before and after the objects being linked to
21545: # create a shared library.
21546: predep_objects=$lt_predep_objects_CXX
21547: postdep_objects=$lt_postdep_objects_CXX
21548: predeps=$lt_predeps_CXX
21549: postdeps=$lt_postdeps_CXX
21550:
21551: # The library search path used internally by the compiler when linking
21552: # a shared library.
21553: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21554:
21555: # ### END LIBTOOL TAG CONFIG: CXX
21556: _LT_EOF
21557:
21558: ;;
1.150 moko 21559:
1.62 paf 21560: esac
1.150 moko 21561: done # for ac_tag
1.62 paf 21562:
21563:
1.150 moko 21564: as_fn_exit 0
1.62 paf 21565: _ACEOF
21566: ac_clean_files=$ac_clean_files_save
21567:
1.150 moko 21568: test $ac_write_fail = 0 ||
21569: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21570:
1.1 paf 21571:
1.62 paf 21572: # configure is writing to config.log, and then calls config.status.
21573: # config.status does its own redirection, appending to config.log.
21574: # Unfortunately, on DOS this fails, as config.log is still kept open
21575: # by configure, so config.status won't be able to write to it; its
21576: # output is simply discarded. So we exec the FD to /dev/null,
21577: # effectively closing config.log, so it can be properly (re)opened and
21578: # appended to by config.status. When coming back to configure, we
21579: # need to make the FD available again.
21580: if test "$no_create" != yes; then
21581: ac_cs_success=:
21582: ac_config_status_args=
21583: test "$silent" = yes &&
21584: ac_config_status_args="$ac_config_status_args --quiet"
21585: exec 5>/dev/null
21586: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21587: exec 5>>config.log
21588: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21589: # would make configure fail if this is the last instruction.
1.150 moko 21590: $ac_cs_success || as_fn_exit 1
1.62 paf 21591: fi
21592:
21593: #
21594: # CONFIG_SUBDIRS section.
21595: #
1.1 paf 21596: if test "$no_recursion" != yes; then
21597:
1.150 moko 21598: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21599: # so they do not pile up.
1.1 paf 21600: ac_sub_configure_args=
21601: ac_prev=
1.150 moko 21602: eval "set x $ac_configure_args"
21603: shift
21604: for ac_arg
21605: do
1.1 paf 21606: if test -n "$ac_prev"; then
21607: ac_prev=
21608: continue
21609: fi
1.62 paf 21610: case $ac_arg in
1.1 paf 21611: -cache-file | --cache-file | --cache-fil | --cache-fi \
21612: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21613: ac_prev=cache_file ;;
21614: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 21615: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21616: | --c=*)
21617: ;;
21618: --config-cache | -C)
1.1 paf 21619: ;;
21620: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21621: ac_prev=srcdir ;;
21622: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21623: ;;
1.62 paf 21624: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21625: ac_prev=prefix ;;
21626: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21627: ;;
1.150 moko 21628: --disable-option-checking)
21629: ;;
21630: *)
21631: case $ac_arg in
21632: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21633: esac
21634: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 21635: esac
21636: done
21637:
1.62 paf 21638: # Always prepend --prefix to ensure using the same prefix
21639: # in subdir configurations.
1.150 moko 21640: ac_arg="--prefix=$prefix"
21641: case $ac_arg in
21642: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21643: esac
21644: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21645:
21646: # Pass --silent
21647: if test "$silent" = yes; then
21648: ac_sub_configure_args="--silent $ac_sub_configure_args"
21649: fi
21650:
21651: # Always prepend --disable-option-checking to silence warnings, since
21652: # different subdirs can have different --enable and --with options.
21653: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 21654:
21655: ac_popdir=`pwd`
21656: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21657:
21658: # Do not complain, so a configure script can configure whichever
21659: # parts of a large source tree are present.
1.150 moko 21660: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21661:
1.150 moko 21662: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21663: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21664: $as_echo "$ac_msg" >&6
21665: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21666: ac_builddir=.
21667:
1.150 moko 21668: case "$ac_dir" in
21669: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21670: *)
21671: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21672: # A ".." for each directory in $ac_dir_suffix.
21673: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21674: case $ac_top_builddir_sub in
21675: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21676: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21677: esac ;;
21678: esac
21679: ac_abs_top_builddir=$ac_pwd
21680: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21681: # for backward compatibility:
21682: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21683:
21684: case $srcdir in
1.150 moko 21685: .) # We are building in place.
1.62 paf 21686: ac_srcdir=.
1.150 moko 21687: ac_top_srcdir=$ac_top_builddir_sub
21688: ac_abs_top_srcdir=$ac_pwd ;;
21689: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21690: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21691: ac_top_srcdir=$srcdir
21692: ac_abs_top_srcdir=$srcdir ;;
21693: *) # Relative name.
21694: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21695: ac_top_srcdir=$ac_top_build_prefix$srcdir
21696: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21697: esac
1.150 moko 21698: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21699:
21700:
1.150 moko 21701: cd "$ac_dir"
1.1 paf 21702:
21703: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21704: if test -f "$ac_srcdir/configure.gnu"; then
21705: ac_sub_configure=$ac_srcdir/configure.gnu
21706: elif test -f "$ac_srcdir/configure"; then
21707: ac_sub_configure=$ac_srcdir/configure
21708: elif test -f "$ac_srcdir/configure.in"; then
21709: # This should be Cygnus configure.
21710: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21711: else
1.150 moko 21712: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21713: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21714: ac_sub_configure=
21715: fi
21716:
21717: # The recursion is here.
21718: if test -n "$ac_sub_configure"; then
21719: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21720: case $cache_file in
21721: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21722: *) # Relative name.
21723: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21724: esac
21725:
1.150 moko 21726: { $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
21727: $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 21728: # The eval makes quoting arguments work.
1.150 moko 21729: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21730: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21731: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21732: fi
21733:
1.150 moko 21734: cd "$ac_popdir"
1.1 paf 21735: done
21736: fi
1.150 moko 21737: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21738: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21739: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21740: fi
1.1 paf 21741:
E-mail: