]> git.saurik.com Git - cycript.git/blob - configure
Update to the latest autoconf (2.68) from Ubuntu.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='Cycript'
572 PACKAGE_TARNAME='cycript'
573 PACKAGE_VERSION='0.9'
574 PACKAGE_STRING='Cycript 0.9'
575 PACKAGE_BUGREPORT='saurik@saurik.com'
576 PACKAGE_URL='http://www.cycript.org/'
577
578 ac_unique_file="Console.cpp"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='LTLIBOBJS
616 LIBOBJS
617 CY_ATTACH_GROUP
618 CY_OBJECTIVEC_MACH
619 ac_ct__NM
620 _NM
621 ac_ct__LIPO
622 _LIPO
623 ac_ct__OTOOL
624 _OTOOL
625 SO
626 LTLIBICONV
627 LIBICONV
628 GNUSTEP_CONFIG
629 CY_OBJECTIVEC
630 LIBFFI_LIBS
631 LIBFFI_CFLAGS
632 CY_EXECUTE
633 WEBKIT_LIBS
634 WEBKIT_CFLAGS
635 LTLIBAPR
636 ac_ct_OBJCXX
637 OBJCXXFLAGS
638 OBJCXX
639 CXXCPP
640 ac_ct_CXX
641 CXXFLAGS
642 CXX
643 SVNVERSION
644 SVN
645 GNUTAR
646 INSTALL_DATA
647 INSTALL_SCRIPT
648 INSTALL_PROGRAM
649 GPERF
650 FLEX
651 BISON
652 TIME
653 _BASH
654 LTFLAGS
655 GMAKE
656 ifGNUmake
657 PKG_CONFIG_LIBDIR
658 PKG_CONFIG_PATH
659 PKG_CONFIG
660 CPP
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 MANIFEST_TOOL
667 RANLIB
668 STRIP
669 ac_ct_AR
670 AR
671 DLLTOOL
672 OBJDUMP
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 LIBTOOL
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 enable_static
740 enable_shared
741 with_pic
742 enable_fast_install
743 with_gnu_ld
744 with_sysroot
745 enable_libtool_lock
746 enable_universal_binary
747 with_frameworks
748 with_apr
749 enable_javascript
750 enable_rpath
751 with_libiconv_prefix
752 '
753 ac_precious_vars='build_alias
754 host_alias
755 target_alias
756 CC
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
761 CPP
762 PKG_CONFIG
763 PKG_CONFIG_PATH
764 PKG_CONFIG_LIBDIR
765 BISON
766 FLEX
767 GPERF
768 CXX
769 CXXFLAGS
770 CCC
771 CXXCPP
772 OBJCXX
773 OBJCXXFLAGS
774 WEBKIT_CFLAGS
775 WEBKIT_LIBS
776 LIBFFI_CFLAGS
777 LIBFFI_LIBS
778 GNUSTEP_CONFIG'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
838 fi
839
840 case $ac_option in
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *=) ac_optarg= ;;
843 *) ac_optarg=yes ;;
844 esac
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
876
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
909
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1090
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1113
1114 -with-* | --with-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1129
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
1145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1163
1164 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1166 ;;
1167
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1177
1178 *)
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184 ;;
1185
1186 esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error $? "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1207 do
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used" >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of Cycript 0.9:";;
1387 esac
1388 cat <<\_ACEOF
1389
1390 Optional Features:
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-static[=PKGS] build static libraries [default=no]
1395 --enable-shared[=PKGS] build shared libraries [default=yes]
1396 --enable-fast-install[=PKGS]
1397 optimize for fast installation [default=yes]
1398 --disable-libtool-lock avoid locking (might break parallel builds)
1399 --disable-universal-binary
1400 do not build with universal binary support on Darwin
1401 --enable-javascript[=ENGINE]
1402 use a JavaScript runtime (currently the only
1403 available option for ENGINE is JavaScriptCore)
1404 [default=yes]
1405 --disable-rpath do not hardcode runtime library paths
1406
1407 Optional Packages:
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-pic try to use only PIC/non-PIC objects [default=use
1411 both]
1412 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1413 --with-sysroot=DIR Search for dependent libraries within DIR
1414 (or the compiler's sysroot if not specified).
1415 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1416 path for frameworks with -F
1417 --with-apr=PATH prefix for installed APR or the full path to
1418 apr-config
1419 --with-gnu-ld assume the C compiler uses GNU ld default=no
1420 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1421 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1422
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431 CPP C preprocessor
1432 PKG_CONFIG path to pkg-config utility
1433 PKG_CONFIG_PATH
1434 directories to add to pkg-config's search path
1435 PKG_CONFIG_LIBDIR
1436 path overriding pkg-config's built-in search path
1437 BISON GNU Project parser generator (yacc replacement)
1438 FLEX the fast lexical analyser generator
1439 GPERF perfect hash function generator
1440 CXX C++ compiler command
1441 CXXFLAGS C++ compiler flags
1442 CXXCPP C++ preprocessor
1443 OBJCXX Objective C++ compiler command
1444 OBJCXXFLAGS Objective C++ compiler flags
1445 WEBKIT_CFLAGS
1446 C compiler flags for WEBKIT, overriding pkg-config
1447 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1448 LIBFFI_CFLAGS
1449 C compiler flags for LIBFFI, overriding pkg-config
1450 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1451 GNUSTEP_CONFIG
1452 prints information about the current gnustep installation
1453
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1456
1457 Report bugs to <saurik@saurik.com>.
1458 Cycript home page: <http://www.cycript.org/>.
1459 _ACEOF
1460 ac_status=$?
1461 fi
1462
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
1469 ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488 .) # We are building in place.
1489 ac_srcdir=.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1511 else
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1515 done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520 cat <<\_ACEOF
1521 Cycript configure 0.9
1522 generated by GNU Autoconf 2.68
1523
1524 Copyright (C) 2010 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528 exit
1529 fi
1530
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1534
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1561 ac_retval=0
1562 else
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1565
1566 ac_retval=1
1567 fi
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1570
1571 } # ac_fn_c_try_compile
1572
1573 # ac_fn_c_try_link LINENO
1574 # -----------------------
1575 # Try to link conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_link ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext conftest$ac_exeext
1580 if { { ac_try="$ac_link"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_link") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest$ac_exeext && {
1599 test "$cross_compiling" = yes ||
1600 $as_test_x conftest$ac_exeext
1601 }; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608 fi
1609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1611 # interfere with the next link command; also delete a directory that is
1612 # left behind by Apple's compiler. We do this before executing the actions.
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_link
1618
1619 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1620 # -------------------------------------------------------
1621 # Tests whether HEADER exists and can be compiled using the include files in
1622 # INCLUDES, setting the cache variable VAR accordingly.
1623 ac_fn_c_check_header_compile ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1630 else
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1633 $4
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"; then :
1637 eval "$3=yes"
1638 else
1639 eval "$3=no"
1640 fi
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 fi
1643 eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647
1648 } # ac_fn_c_check_header_compile
1649
1650 # ac_fn_c_try_cpp LINENO
1651 # ----------------------
1652 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_cpp ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_cpp conftest.$ac_ext"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } > conftest.i && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_cpp
1686
1687 # ac_fn_c_try_run LINENO
1688 # ----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1690 # that executables *can* be run.
1691 ac_fn_c_try_run ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1705 { { case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_try") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; }; }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: program exited with status $ac_status" >&5
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=$ac_status
1722 fi
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_run
1728
1729 # ac_fn_c_check_func LINENO FUNC VAR
1730 # ----------------------------------
1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1732 ac_fn_c_check_func ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738 $as_echo_n "(cached) " >&6
1739 else
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1744 #define $2 innocuous_$2
1745
1746 /* System header to define __stub macros and hopefully few prototypes,
1747 which can conflict with char $2 (); below.
1748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1749 <limits.h> exists even on freestanding compilers. */
1750
1751 #ifdef __STDC__
1752 # include <limits.h>
1753 #else
1754 # include <assert.h>
1755 #endif
1756
1757 #undef $2
1758
1759 /* Override any GCC internal prototype to avoid an error.
1760 Use char because int might match the return type of a GCC
1761 builtin and then its argument prototype would still apply. */
1762 #ifdef __cplusplus
1763 extern "C"
1764 #endif
1765 char $2 ();
1766 /* The GNU C library defines this for functions which it implements
1767 to always fail with ENOSYS. Some functions are actually named
1768 something starting with __ and the normal name is an alias. */
1769 #if defined __stub_$2 || defined __stub___$2
1770 choke me
1771 #endif
1772
1773 int
1774 main ()
1775 {
1776 return $2 ();
1777 ;
1778 return 0;
1779 }
1780 _ACEOF
1781 if ac_fn_c_try_link "$LINENO"; then :
1782 eval "$3=yes"
1783 else
1784 eval "$3=no"
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext \
1787 conftest$ac_exeext conftest.$ac_ext
1788 fi
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794 } # ac_fn_c_check_func
1795
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_cxx_try_compile
1833
1834 # ac_fn_cxx_try_cpp LINENO
1835 # ------------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_cpp ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } > conftest.i && {
1856 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=1
1865 fi
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1868
1869 } # ac_fn_cxx_try_cpp
1870
1871 # ac_fn_cxx_try_link LINENO
1872 # -------------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_cxx_try_link ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_cxx_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 $as_test_x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906 fi
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1914
1915 } # ac_fn_cxx_try_link
1916
1917 # ac_fn_objcxx_try_compile LINENO
1918 # -------------------------------
1919 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_objcxx_try_compile ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext
1924 if { { ac_try="$ac_compile"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_compile") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_objcxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest.$ac_objext; then :
1943 ac_retval=0
1944 else
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=1
1949 fi
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1952
1953 } # ac_fn_objcxx_try_compile
1954
1955 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1956 # ---------------------------------------------------------
1957 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958 # the include files in INCLUDES and setting the cache variable VAR
1959 # accordingly.
1960 ac_fn_cxx_check_header_mongrel ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if eval \${$3+:} false; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 else
1973 # Is the header compilable?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975 $as_echo_n "checking $2 usability... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $4
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_cxx_try_compile "$LINENO"; then :
1982 ac_header_compiler=yes
1983 else
1984 ac_header_compiler=no
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988 $as_echo "$ac_header_compiler" >&6; }
1989
1990 # Is the header present?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992 $as_echo_n "checking $2 presence... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_cxx_try_cpp "$LINENO"; then :
1998 ac_header_preproc=yes
1999 else
2000 ac_header_preproc=no
2001 fi
2002 rm -f conftest.err conftest.i conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004 $as_echo "$ac_header_preproc" >&6; }
2005
2006 # So? What about this header?
2007 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2008 yes:no: )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ;;
2014 no:yes:* )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 ( $as_echo "## -------------------------------- ##
2026 ## Report this to saurik@saurik.com ##
2027 ## -------------------------------- ##"
2028 ) | sed "s/^/$as_me: WARNING: /" >&2
2029 ;;
2030 esac
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 eval "$3=\$ac_header_compiler"
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 fi
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044 } # ac_fn_cxx_check_header_mongrel
2045
2046 # ac_fn_objcxx_try_link LINENO
2047 # ----------------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_objcxx_try_link ()
2050 {
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 rm -f conftest.$ac_objext conftest$ac_exeext
2053 if { { ac_try="$ac_link"
2054 case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_link") 2>conftest.err
2061 ac_status=$?
2062 if test -s conftest.err; then
2063 grep -v '^ *+' conftest.err >conftest.er1
2064 cat conftest.er1 >&5
2065 mv -f conftest.er1 conftest.err
2066 fi
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068 test $ac_status = 0; } && {
2069 test -z "$ac_objcxx_werror_flag" ||
2070 test ! -s conftest.err
2071 } && test -s conftest$ac_exeext && {
2072 test "$cross_compiling" = yes ||
2073 $as_test_x conftest$ac_exeext
2074 }; then :
2075 ac_retval=0
2076 else
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080 ac_retval=1
2081 fi
2082 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2083 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2084 # interfere with the next link command; also delete a directory that is
2085 # left behind by Apple's compiler. We do this before executing the actions.
2086 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 as_fn_set_status $ac_retval
2089
2090 } # ac_fn_objcxx_try_link
2091 cat >config.log <<_ACEOF
2092 This file contains any messages produced by compilers while
2093 running configure, to aid debugging if configure makes a mistake.
2094
2095 It was created by Cycript $as_me 0.9, which was
2096 generated by GNU Autoconf 2.68. Invocation command line was
2097
2098 $ $0 $@
2099
2100 _ACEOF
2101 exec 5>>config.log
2102 {
2103 cat <<_ASUNAME
2104 ## --------- ##
2105 ## Platform. ##
2106 ## --------- ##
2107
2108 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2109 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2110 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2111 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2112 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113
2114 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2115 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116
2117 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2118 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2119 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2120 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2121 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2122 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2123 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124
2125 _ASUNAME
2126
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 $as_echo "PATH: $as_dir"
2133 done
2134 IFS=$as_save_IFS
2135
2136 } >&5
2137
2138 cat >&5 <<_ACEOF
2139
2140
2141 ## ----------- ##
2142 ## Core tests. ##
2143 ## ----------- ##
2144
2145 _ACEOF
2146
2147
2148 # Keep a trace of the command line.
2149 # Strip out --no-create and --no-recursion so they do not pile up.
2150 # Strip out --silent because we don't want to record it for future runs.
2151 # Also quote any args containing shell meta-characters.
2152 # Make two passes to allow for proper duplicate-argument suppression.
2153 ac_configure_args=
2154 ac_configure_args0=
2155 ac_configure_args1=
2156 ac_must_keep_next=false
2157 for ac_pass in 1 2
2158 do
2159 for ac_arg
2160 do
2161 case $ac_arg in
2162 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2164 | -silent | --silent | --silen | --sile | --sil)
2165 continue ;;
2166 *\'*)
2167 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 esac
2169 case $ac_pass in
2170 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2171 2)
2172 as_fn_append ac_configure_args1 " '$ac_arg'"
2173 if test $ac_must_keep_next = true; then
2174 ac_must_keep_next=false # Got value, back to normal.
2175 else
2176 case $ac_arg in
2177 *=* | --config-cache | -C | -disable-* | --disable-* \
2178 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2179 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2180 | -with-* | --with-* | -without-* | --without-* | --x)
2181 case "$ac_configure_args0 " in
2182 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183 esac
2184 ;;
2185 -* ) ac_must_keep_next=true ;;
2186 esac
2187 fi
2188 as_fn_append ac_configure_args " '$ac_arg'"
2189 ;;
2190 esac
2191 done
2192 done
2193 { ac_configure_args0=; unset ac_configure_args0;}
2194 { ac_configure_args1=; unset ac_configure_args1;}
2195
2196 # When interrupted or exit'd, cleanup temporary files, and complete
2197 # config.log. We remove comments because anyway the quotes in there
2198 # would cause problems or look ugly.
2199 # WARNING: Use '\'' to represent an apostrophe within the trap.
2200 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2201 trap 'exit_status=$?
2202 # Save into config.log some information that might help in debugging.
2203 {
2204 echo
2205
2206 $as_echo "## ---------------- ##
2207 ## Cache variables. ##
2208 ## ---------------- ##"
2209 echo
2210 # The following way of writing the cache mishandles newlines in values,
2211 (
2212 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in #(
2215 *${as_nl}*)
2216 case $ac_var in #(
2217 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2219 esac
2220 case $ac_var in #(
2221 _ | IFS | as_nl) ;; #(
2222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2223 *) { eval $ac_var=; unset $ac_var;} ;;
2224 esac ;;
2225 esac
2226 done
2227 (set) 2>&1 |
2228 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2229 *${as_nl}ac_space=\ *)
2230 sed -n \
2231 "s/'\''/'\''\\\\'\'''\''/g;
2232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2233 ;; #(
2234 *)
2235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2236 ;;
2237 esac |
2238 sort
2239 )
2240 echo
2241
2242 $as_echo "## ----------------- ##
2243 ## Output variables. ##
2244 ## ----------------- ##"
2245 echo
2246 for ac_var in $ac_subst_vars
2247 do
2248 eval ac_val=\$$ac_var
2249 case $ac_val in
2250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 esac
2252 $as_echo "$ac_var='\''$ac_val'\''"
2253 done | sort
2254 echo
2255
2256 if test -n "$ac_subst_files"; then
2257 $as_echo "## ------------------- ##
2258 ## File substitutions. ##
2259 ## ------------------- ##"
2260 echo
2261 for ac_var in $ac_subst_files
2262 do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in
2265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 esac
2267 $as_echo "$ac_var='\''$ac_val'\''"
2268 done | sort
2269 echo
2270 fi
2271
2272 if test -s confdefs.h; then
2273 $as_echo "## ----------- ##
2274 ## confdefs.h. ##
2275 ## ----------- ##"
2276 echo
2277 cat confdefs.h
2278 echo
2279 fi
2280 test "$ac_signal" != 0 &&
2281 $as_echo "$as_me: caught signal $ac_signal"
2282 $as_echo "$as_me: exit $exit_status"
2283 } >&5
2284 rm -f core *.core core.conftest.* &&
2285 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2286 exit $exit_status
2287 ' 0
2288 for ac_signal in 1 2 13 15; do
2289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2290 done
2291 ac_signal=0
2292
2293 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2294 rm -f -r conftest* confdefs.h
2295
2296 $as_echo "/* confdefs.h */" > confdefs.h
2297
2298 # Predefined preprocessor variables.
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_NAME "$PACKAGE_NAME"
2302 _ACEOF
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306 _ACEOF
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310 _ACEOF
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_STRING "$PACKAGE_STRING"
2314 _ACEOF
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_URL "$PACKAGE_URL"
2322 _ACEOF
2323
2324
2325 # Let the site file select an alternate cache file if it wants to.
2326 # Prefer an explicitly selected file to automatically selected ones.
2327 ac_site_file1=NONE
2328 ac_site_file2=NONE
2329 if test -n "$CONFIG_SITE"; then
2330 # We do not want a PATH search for config.site.
2331 case $CONFIG_SITE in #((
2332 -*) ac_site_file1=./$CONFIG_SITE;;
2333 */*) ac_site_file1=$CONFIG_SITE;;
2334 *) ac_site_file1=./$CONFIG_SITE;;
2335 esac
2336 elif test "x$prefix" != xNONE; then
2337 ac_site_file1=$prefix/share/config.site
2338 ac_site_file2=$prefix/etc/config.site
2339 else
2340 ac_site_file1=$ac_default_prefix/share/config.site
2341 ac_site_file2=$ac_default_prefix/etc/config.site
2342 fi
2343 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2344 do
2345 test "x$ac_site_file" = xNONE && continue
2346 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2348 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2349 sed 's/^/| /' "$ac_site_file" >&5
2350 . "$ac_site_file" \
2351 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 as_fn_error $? "failed to load site script $ac_site_file
2354 See \`config.log' for more details" "$LINENO" 5; }
2355 fi
2356 done
2357
2358 if test -r "$cache_file"; then
2359 # Some versions of bash will fail to source /dev/null (special files
2360 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2361 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363 $as_echo "$as_me: loading cache $cache_file" >&6;}
2364 case $cache_file in
2365 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2366 *) . "./$cache_file";;
2367 esac
2368 fi
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371 $as_echo "$as_me: creating cache $cache_file" >&6;}
2372 >$cache_file
2373 fi
2374
2375 # Check that the precious variables saved in the cache have kept the same
2376 # value.
2377 ac_cache_corrupted=false
2378 for ac_var in $ac_precious_vars; do
2379 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380 eval ac_new_set=\$ac_env_${ac_var}_set
2381 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2382 eval ac_new_val=\$ac_env_${ac_var}_value
2383 case $ac_old_set,$ac_new_set in
2384 set,)
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387 ac_cache_corrupted=: ;;
2388 ,set)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2392 ,);;
2393 *)
2394 if test "x$ac_old_val" != "x$ac_new_val"; then
2395 # differences in whitespace do not lead to failure.
2396 ac_old_val_w=`echo x $ac_old_val`
2397 ac_new_val_w=`echo x $ac_new_val`
2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401 ac_cache_corrupted=:
2402 else
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405 eval $ac_var=\$ac_old_val
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411 fi;;
2412 esac
2413 # Pass precious variables to config.status.
2414 if test "$ac_new_set" = set; then
2415 case $ac_new_val in
2416 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 *) ac_arg=$ac_var=$ac_new_val ;;
2418 esac
2419 case " $ac_configure_args " in
2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2421 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2422 esac
2423 fi
2424 done
2425 if $ac_cache_corrupted; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2431 fi
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2435
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441
2442
2443
2444 ac_aux_dir=
2445 for ac_dir in . "$srcdir"/.; do
2446 if test -f "$ac_dir/install-sh"; then
2447 ac_aux_dir=$ac_dir
2448 ac_install_sh="$ac_aux_dir/install-sh -c"
2449 break
2450 elif test -f "$ac_dir/install.sh"; then
2451 ac_aux_dir=$ac_dir
2452 ac_install_sh="$ac_aux_dir/install.sh -c"
2453 break
2454 elif test -f "$ac_dir/shtool"; then
2455 ac_aux_dir=$ac_dir
2456 ac_install_sh="$ac_aux_dir/shtool install -c"
2457 break
2458 fi
2459 done
2460 if test -z "$ac_aux_dir"; then
2461 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2462 fi
2463
2464 # These three variables are undocumented and unsupported,
2465 # and are intended to be withdrawn in a future Autoconf release.
2466 # They can cause serious problems if a builder's source tree is in a directory
2467 # whose full name contains unusual characters.
2468 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2469 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2470 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2471
2472
2473 case `pwd` in
2474 *\ * | *\ *)
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2476 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2477 esac
2478
2479
2480
2481 macro_version='2.4'
2482 macro_revision='1.3293'
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496 ltmain="$ac_aux_dir/ltmain.sh"
2497
2498 # Make sure we can run config.sub.
2499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2503 $as_echo_n "checking build system type... " >&6; }
2504 if ${ac_cv_build+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 ac_build_alias=$build_alias
2508 test "x$ac_build_alias" = x &&
2509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2510 test "x$ac_build_alias" = x &&
2511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2514
2515 fi
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2517 $as_echo "$ac_cv_build" >&6; }
2518 case $ac_cv_build in
2519 *-*-*) ;;
2520 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2521 esac
2522 build=$ac_cv_build
2523 ac_save_IFS=$IFS; IFS='-'
2524 set x $ac_cv_build
2525 shift
2526 build_cpu=$1
2527 build_vendor=$2
2528 shift; shift
2529 # Remember, the first character of IFS is used to create $*,
2530 # except with old shells:
2531 build_os=$*
2532 IFS=$ac_save_IFS
2533 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2534
2535
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2537 $as_echo_n "checking host system type... " >&6; }
2538 if ${ac_cv_host+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 if test "x$host_alias" = x; then
2542 ac_cv_host=$ac_cv_build
2543 else
2544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2546 fi
2547
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2550 $as_echo "$ac_cv_host" >&6; }
2551 case $ac_cv_host in
2552 *-*-*) ;;
2553 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2554 esac
2555 host=$ac_cv_host
2556 ac_save_IFS=$IFS; IFS='-'
2557 set x $ac_cv_host
2558 shift
2559 host_cpu=$1
2560 host_vendor=$2
2561 shift; shift
2562 # Remember, the first character of IFS is used to create $*,
2563 # except with old shells:
2564 host_os=$*
2565 IFS=$ac_save_IFS
2566 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2567
2568
2569 # Backslashify metacharacters that are still active within
2570 # double-quoted strings.
2571 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2572
2573 # Same as above, but do not quote variable references.
2574 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2575
2576 # Sed substitution to delay expansion of an escaped shell variable in a
2577 # double_quote_subst'ed string.
2578 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2579
2580 # Sed substitution to delay expansion of an escaped single quote.
2581 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2582
2583 # Sed substitution to avoid accidental globbing in evaled expressions
2584 no_glob_subst='s/\*/\\\*/g'
2585
2586 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2587 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2588 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2589
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2591 $as_echo_n "checking how to print strings... " >&6; }
2592 # Test print first, because it will be a builtin if present.
2593 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2594 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2595 ECHO='print -r --'
2596 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2597 ECHO='printf %s\n'
2598 else
2599 # Use this function as a fallback that always works.
2600 func_fallback_echo ()
2601 {
2602 eval 'cat <<_LTECHO_EOF
2603 $1
2604 _LTECHO_EOF'
2605 }
2606 ECHO='func_fallback_echo'
2607 fi
2608
2609 # func_echo_all arg...
2610 # Invoke $ECHO with all args, space-separated.
2611 func_echo_all ()
2612 {
2613 $ECHO ""
2614 }
2615
2616 case "$ECHO" in
2617 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2618 $as_echo "printf" >&6; } ;;
2619 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2620 $as_echo "print -r" >&6; } ;;
2621 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2622 $as_echo "cat" >&6; } ;;
2623 esac
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_CC+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681 fi
2682 if test -z "$ac_cv_prog_CC"; then
2683 ac_ct_CC=$CC
2684 # Extract the first word of "gcc", so it can be a program name with args.
2685 set dummy gcc; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_ac_ct_CC="gcc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2714 $as_echo "$ac_ct_CC" >&6; }
2715 else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 CC=$ac_ct_CC
2730 fi
2731 else
2732 CC="$ac_cv_prog_CC"
2733 fi
2734
2735 if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}cc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_CC+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_CC="${ac_tool_prefix}cc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2757 fi
2758 done
2759 done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774 fi
2775 fi
2776 if test -z "$CC"; then
2777 # Extract the first word of "cc", so it can be a program name with args.
2778 set dummy cc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_CC+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 ac_prog_rejected=no
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796 ac_prog_rejected=yes
2797 continue
2798 fi
2799 ac_cv_prog_CC="cc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 if test $ac_prog_rejected = yes; then
2808 # We found a bogon in the path, so make sure we never use it.
2809 set dummy $ac_cv_prog_CC
2810 shift
2811 if test $# != 0; then
2812 # We chose a different compiler from the bogus one.
2813 # However, it has the same basename, so the bogon will be chosen
2814 # first if we set CC to just the basename; use the full file name.
2815 shift
2816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2817 fi
2818 fi
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831 fi
2832 if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2834 for ac_prog in cl.exe
2835 do
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 test -n "$CC" && break
2874 done
2875 fi
2876 if test -z "$CC"; then
2877 ac_ct_CC=$CC
2878 for ac_prog in cl.exe
2879 do
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy $ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_ac_ct_CC="$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910 $as_echo "$ac_ct_CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 test -n "$ac_ct_CC" && break
2918 done
2919
2920 if test "x$ac_ct_CC" = x; then
2921 CC=""
2922 else
2923 case $cross_compiling:$ac_tool_warned in
2924 yes:)
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 ac_tool_warned=yes ;;
2928 esac
2929 CC=$ac_ct_CC
2930 fi
2931 fi
2932
2933 fi
2934
2935
2936 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2938 as_fn_error $? "no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details" "$LINENO" 5; }
2940
2941 # Provide some information about the compiler.
2942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2943 set X $ac_compile
2944 ac_compiler=$2
2945 for ac_option in --version -v -V -qversion; do
2946 { { ac_try="$ac_compiler $ac_option >&5"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2954 ac_status=$?
2955 if test -s conftest.err; then
2956 sed '10a\
2957 ... rest of stderr output deleted ...
2958 10q' conftest.err >conftest.er1
2959 cat conftest.er1 >&5
2960 fi
2961 rm -f conftest.er1 conftest.err
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2964 done
2965
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2968
2969 int
2970 main ()
2971 {
2972
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 ac_clean_files_save=$ac_clean_files
2978 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2979 # Try to create an executable without -o first, disregard a.out.
2980 # It will help us diagnose broken compilers, and finding out an intuition
2981 # of exeext.
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2983 $as_echo_n "checking whether the C compiler works... " >&6; }
2984 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2985
2986 # The possible output files:
2987 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2988
2989 ac_rmfiles=
2990 for ac_file in $ac_files
2991 do
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2995 esac
2996 done
2997 rm -f $ac_rmfiles
2998
2999 if { { ac_try="$ac_link_default"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_link_default") 2>&5
3007 ac_status=$?
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3011 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3012 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3013 # so that the user can short-circuit this test for compilers unknown to
3014 # Autoconf.
3015 for ac_file in $ac_files ''
3016 do
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3020 ;;
3021 [ab].out )
3022 # We found the default executable, but exeext='' is most
3023 # certainly right.
3024 break;;
3025 *.* )
3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3027 then :; else
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029 fi
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3034 # actually working.
3035 break;;
3036 * )
3037 break;;
3038 esac
3039 done
3040 test "$ac_cv_exeext" = no && ac_cv_exeext=
3041
3042 else
3043 ac_file=''
3044 fi
3045 if test -z "$ac_file"; then :
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 $as_echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error 77 "C compiler cannot create executables
3054 See \`config.log' for more details" "$LINENO" 5; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057 $as_echo "yes" >&6; }
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3060 $as_echo_n "checking for C compiler default output file name... " >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3062 $as_echo "$ac_file" >&6; }
3063 ac_exeext=$ac_cv_exeext
3064
3065 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3066 ac_clean_files=$ac_clean_files_save
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3068 $as_echo_n "checking for suffix of executables... " >&6; }
3069 if { { ac_try="$ac_link"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3082 # work properly (i.e., refer to `conftest.exe'), while it won't with
3083 # `rm'.
3084 for ac_file in conftest.exe conftest conftest.*; do
3085 test -f "$ac_file" || continue
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3089 break;;
3090 * ) break;;
3091 esac
3092 done
3093 else
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details" "$LINENO" 5; }
3098 fi
3099 rm -f conftest conftest$ac_cv_exeext
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3101 $as_echo "$ac_cv_exeext" >&6; }
3102
3103 rm -f conftest.$ac_ext
3104 EXEEXT=$ac_cv_exeext
3105 ac_exeext=$EXEEXT
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3108 #include <stdio.h>
3109 int
3110 main ()
3111 {
3112 FILE *f = fopen ("conftest.out", "w");
3113 return ferror (f) || fclose (f) != 0;
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 ac_clean_files="$ac_clean_files conftest.out"
3120 # Check that the compiler produces executables we can run. If not, either
3121 # the compiler is broken, or we cross compile.
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3123 $as_echo_n "checking whether we are cross compiling... " >&6; }
3124 if test "$cross_compiling" != yes; then
3125 { { ac_try="$ac_link"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }
3136 if { ac_try='./conftest$ac_cv_exeext'
3137 { { case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; }; then
3147 cross_compiling=no
3148 else
3149 if test "$cross_compiling" = maybe; then
3150 cross_compiling=yes
3151 else
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error $? "cannot run C compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details" "$LINENO" 5; }
3157 fi
3158 fi
3159 fi
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3161 $as_echo "$cross_compiling" >&6; }
3162
3163 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3164 ac_clean_files=$ac_clean_files_save
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3166 $as_echo_n "checking for suffix of object files... " >&6; }
3167 if ${ac_cv_objext+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3172
3173 int
3174 main ()
3175 {
3176
3177 ;
3178 return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.o conftest.obj
3182 if { { ac_try="$ac_compile"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_compile") 2>&5
3190 ac_status=$?
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; then :
3193 for ac_file in conftest.o conftest.obj conftest.*; do
3194 test -f "$ac_file" || continue;
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3197 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3198 break;;
3199 esac
3200 done
3201 else
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error $? "cannot compute suffix of object files: cannot compile
3208 See \`config.log' for more details" "$LINENO" 5; }
3209 fi
3210 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3213 $as_echo "$ac_cv_objext" >&6; }
3214 OBJEXT=$ac_cv_objext
3215 ac_objext=$OBJEXT
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3217 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3218 if ${ac_cv_c_compiler_gnu+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3223
3224 int
3225 main ()
3226 {
3227 #ifndef __GNUC__
3228 choke me
3229 #endif
3230
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 if ac_fn_c_try_compile "$LINENO"; then :
3236 ac_compiler_gnu=yes
3237 else
3238 ac_compiler_gnu=no
3239 fi
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3242
3243 fi
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3245 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3246 if test $ac_compiler_gnu = yes; then
3247 GCC=yes
3248 else
3249 GCC=
3250 fi
3251 ac_test_CFLAGS=${CFLAGS+set}
3252 ac_save_CFLAGS=$CFLAGS
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3254 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3255 if ${ac_cv_prog_cc_g+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 ac_save_c_werror_flag=$ac_c_werror_flag
3259 ac_c_werror_flag=yes
3260 ac_cv_prog_cc_g=no
3261 CFLAGS="-g"
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3264
3265 int
3266 main ()
3267 {
3268
3269 ;
3270 return 0;
3271 }
3272 _ACEOF
3273 if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_cv_prog_cc_g=yes
3275 else
3276 CFLAGS=""
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289
3290 else
3291 ac_c_werror_flag=$ac_save_c_werror_flag
3292 CFLAGS="-g"
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3295
3296 int
3297 main ()
3298 {
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 if ac_fn_c_try_compile "$LINENO"; then :
3305 ac_cv_prog_cc_g=yes
3306 fi
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 fi
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 fi
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_c_werror_flag=$ac_save_c_werror_flag
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3315 $as_echo "$ac_cv_prog_cc_g" >&6; }
3316 if test "$ac_test_CFLAGS" = set; then
3317 CFLAGS=$ac_save_CFLAGS
3318 elif test $ac_cv_prog_cc_g = yes; then
3319 if test "$GCC" = yes; then
3320 CFLAGS="-g -O2"
3321 else
3322 CFLAGS="-g"
3323 fi
3324 else
3325 if test "$GCC" = yes; then
3326 CFLAGS="-O2"
3327 else
3328 CFLAGS=
3329 fi
3330 fi
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3332 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3333 if ${ac_cv_prog_cc_c89+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 ac_cv_prog_cc_c89=no
3337 ac_save_CC=$CC
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340 #include <stdarg.h>
3341 #include <stdio.h>
3342 #include <sys/types.h>
3343 #include <sys/stat.h>
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3348 char **p;
3349 int i;
3350 {
3351 return p[i];
3352 }
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3354 {
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3361 }
3362
3363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371
3372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3374 #define FOO(x) 'x'
3375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376
3377 int test (int i, double x);
3378 struct s1 {int (*f) (int a);};
3379 struct s2 {int (*f) (double a);};
3380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381 int argc;
3382 char **argv;
3383 int
3384 main ()
3385 {
3386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393 do
3394 CC="$ac_save_CC $ac_arg"
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_c89=$ac_arg
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3400 done
3401 rm -f conftest.$ac_ext
3402 CC=$ac_save_CC
3403
3404 fi
3405 # AC_CACHE_VAL
3406 case "x$ac_cv_prog_cc_c89" in
3407 x)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3409 $as_echo "none needed" >&6; } ;;
3410 xno)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3412 $as_echo "unsupported" >&6; } ;;
3413 *)
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3417 esac
3418 if test "x$ac_cv_prog_cc_c89" != xno; then :
3419
3420 fi
3421
3422 ac_ext=c
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3429 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3430 if ${ac_cv_path_SED+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3434 for ac_i in 1 2 3 4 5 6 7; do
3435 ac_script="$ac_script$as_nl$ac_script"
3436 done
3437 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3438 { ac_script=; unset ac_script;}
3439 if test -z "$SED"; then
3440 ac_path_SED_found=false
3441 # Loop through the user's path and test for each of PROGNAME-LIST
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_prog in sed gsed; do
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3450 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3451 # Check for GNU ac_path_SED and select it if it is found.
3452 # Check for GNU $ac_path_SED
3453 case `"$ac_path_SED" --version 2>&1` in
3454 *GNU*)
3455 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3456 *)
3457 ac_count=0
3458 $as_echo_n 0123456789 >"conftest.in"
3459 while :
3460 do
3461 cat "conftest.in" "conftest.in" >"conftest.tmp"
3462 mv "conftest.tmp" "conftest.in"
3463 cp "conftest.in" "conftest.nl"
3464 $as_echo '' >> "conftest.nl"
3465 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3467 as_fn_arith $ac_count + 1 && ac_count=$as_val
3468 if test $ac_count -gt ${ac_path_SED_max-0}; then
3469 # Best one so far, save it but keep looking for a better one
3470 ac_cv_path_SED="$ac_path_SED"
3471 ac_path_SED_max=$ac_count
3472 fi
3473 # 10*(2^10) chars as input seems more than enough
3474 test $ac_count -gt 10 && break
3475 done
3476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3477 esac
3478
3479 $ac_path_SED_found && break 3
3480 done
3481 done
3482 done
3483 IFS=$as_save_IFS
3484 if test -z "$ac_cv_path_SED"; then
3485 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3486 fi
3487 else
3488 ac_cv_path_SED=$SED
3489 fi
3490
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3493 $as_echo "$ac_cv_path_SED" >&6; }
3494 SED="$ac_cv_path_SED"
3495 rm -f conftest.sed
3496
3497 test -z "$SED" && SED=sed
3498 Xsed="$SED -e 1s/^X//"
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3511 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3512 if ${ac_cv_path_GREP+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -z "$GREP"; then
3516 ac_path_GREP_found=false
3517 # Loop through the user's path and test for each of PROGNAME-LIST
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3520 do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_prog in grep ggrep; do
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3527 # Check for GNU ac_path_GREP and select it if it is found.
3528 # Check for GNU $ac_path_GREP
3529 case `"$ac_path_GREP" --version 2>&1` in
3530 *GNU*)
3531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3532 *)
3533 ac_count=0
3534 $as_echo_n 0123456789 >"conftest.in"
3535 while :
3536 do
3537 cat "conftest.in" "conftest.in" >"conftest.tmp"
3538 mv "conftest.tmp" "conftest.in"
3539 cp "conftest.in" "conftest.nl"
3540 $as_echo 'GREP' >> "conftest.nl"
3541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3543 as_fn_arith $ac_count + 1 && ac_count=$as_val
3544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3545 # Best one so far, save it but keep looking for a better one
3546 ac_cv_path_GREP="$ac_path_GREP"
3547 ac_path_GREP_max=$ac_count
3548 fi
3549 # 10*(2^10) chars as input seems more than enough
3550 test $ac_count -gt 10 && break
3551 done
3552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3553 esac
3554
3555 $ac_path_GREP_found && break 3
3556 done
3557 done
3558 done
3559 IFS=$as_save_IFS
3560 if test -z "$ac_cv_path_GREP"; then
3561 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3562 fi
3563 else
3564 ac_cv_path_GREP=$GREP
3565 fi
3566
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3569 $as_echo "$ac_cv_path_GREP" >&6; }
3570 GREP="$ac_cv_path_GREP"
3571
3572
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3574 $as_echo_n "checking for egrep... " >&6; }
3575 if ${ac_cv_path_EGREP+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3579 then ac_cv_path_EGREP="$GREP -E"
3580 else
3581 if test -z "$EGREP"; then
3582 ac_path_EGREP_found=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3586 do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_prog in egrep; do
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3592 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3593 # Check for GNU ac_path_EGREP and select it if it is found.
3594 # Check for GNU $ac_path_EGREP
3595 case `"$ac_path_EGREP" --version 2>&1` in
3596 *GNU*)
3597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3598 *)
3599 ac_count=0
3600 $as_echo_n 0123456789 >"conftest.in"
3601 while :
3602 do
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 $as_echo 'EGREP' >> "conftest.nl"
3607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3609 as_fn_arith $ac_count + 1 && ac_count=$as_val
3610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_EGREP="$ac_path_EGREP"
3613 ac_path_EGREP_max=$ac_count
3614 fi
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3617 done
3618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 esac
3620
3621 $ac_path_EGREP_found && break 3
3622 done
3623 done
3624 done
3625 IFS=$as_save_IFS
3626 if test -z "$ac_cv_path_EGREP"; then
3627 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3628 fi
3629 else
3630 ac_cv_path_EGREP=$EGREP
3631 fi
3632
3633 fi
3634 fi
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3636 $as_echo "$ac_cv_path_EGREP" >&6; }
3637 EGREP="$ac_cv_path_EGREP"
3638
3639
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3641 $as_echo_n "checking for fgrep... " >&6; }
3642 if ${ac_cv_path_FGREP+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3646 then ac_cv_path_FGREP="$GREP -F"
3647 else
3648 if test -z "$FGREP"; then
3649 ac_path_FGREP_found=false
3650 # Loop through the user's path and test for each of PROGNAME-LIST
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3653 do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_prog in fgrep; do
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3659 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3660 # Check for GNU ac_path_FGREP and select it if it is found.
3661 # Check for GNU $ac_path_FGREP
3662 case `"$ac_path_FGREP" --version 2>&1` in
3663 *GNU*)
3664 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3665 *)
3666 ac_count=0
3667 $as_echo_n 0123456789 >"conftest.in"
3668 while :
3669 do
3670 cat "conftest.in" "conftest.in" >"conftest.tmp"
3671 mv "conftest.tmp" "conftest.in"
3672 cp "conftest.in" "conftest.nl"
3673 $as_echo 'FGREP' >> "conftest.nl"
3674 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3676 as_fn_arith $ac_count + 1 && ac_count=$as_val
3677 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3678 # Best one so far, save it but keep looking for a better one
3679 ac_cv_path_FGREP="$ac_path_FGREP"
3680 ac_path_FGREP_max=$ac_count
3681 fi
3682 # 10*(2^10) chars as input seems more than enough
3683 test $ac_count -gt 10 && break
3684 done
3685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3686 esac
3687
3688 $ac_path_FGREP_found && break 3
3689 done
3690 done
3691 done
3692 IFS=$as_save_IFS
3693 if test -z "$ac_cv_path_FGREP"; then
3694 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3695 fi
3696 else
3697 ac_cv_path_FGREP=$FGREP
3698 fi
3699
3700 fi
3701 fi
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3703 $as_echo "$ac_cv_path_FGREP" >&6; }
3704 FGREP="$ac_cv_path_FGREP"
3705
3706
3707 test -z "$GREP" && GREP=grep
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727 # Check whether --with-gnu-ld was given.
3728 if test "${with_gnu_ld+set}" = set; then :
3729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3730 else
3731 with_gnu_ld=no
3732 fi
3733
3734 ac_prog=ld
3735 if test "$GCC" = yes; then
3736 # Check if gcc -print-prog-name=ld gives a path.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3738 $as_echo_n "checking for ld used by $CC... " >&6; }
3739 case $host in
3740 *-*-mingw*)
3741 # gcc leaves a trailing carriage return which upsets mingw
3742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3743 *)
3744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3745 esac
3746 case $ac_prog in
3747 # Accept absolute paths.
3748 [\\/]* | ?:[\\/]*)
3749 re_direlt='/[^/][^/]*/\.\./'
3750 # Canonicalize the pathname of ld
3751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3754 done
3755 test -z "$LD" && LD="$ac_prog"
3756 ;;
3757 "")
3758 # If it fails, then pretend we aren't using GCC.
3759 ac_prog=ld
3760 ;;
3761 *)
3762 # If it is relative, then search for the first ld in PATH.
3763 with_gnu_ld=unknown
3764 ;;
3765 esac
3766 elif test "$with_gnu_ld" = yes; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3768 $as_echo_n "checking for GNU ld... " >&6; }
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3771 $as_echo_n "checking for non-GNU ld... " >&6; }
3772 fi
3773 if ${lt_cv_path_LD+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$LD"; then
3777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3778 for ac_dir in $PATH; do
3779 IFS="$lt_save_ifs"
3780 test -z "$ac_dir" && ac_dir=.
3781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3782 lt_cv_path_LD="$ac_dir/$ac_prog"
3783 # Check to see if the program is GNU ld. I'd rather use --version,
3784 # but apparently some variants of GNU ld only accept -v.
3785 # Break only if it was the GNU/non-GNU ld that we prefer.
3786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3787 *GNU* | *'with BFD'*)
3788 test "$with_gnu_ld" != no && break
3789 ;;
3790 *)
3791 test "$with_gnu_ld" != yes && break
3792 ;;
3793 esac
3794 fi
3795 done
3796 IFS="$lt_save_ifs"
3797 else
3798 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3799 fi
3800 fi
3801
3802 LD="$lt_cv_path_LD"
3803 if test -n "$LD"; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3805 $as_echo "$LD" >&6; }
3806 else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3809 fi
3810 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3813 if ${lt_cv_prog_gnu_ld+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3817 case `$LD -v 2>&1 </dev/null` in
3818 *GNU* | *'with BFD'*)
3819 lt_cv_prog_gnu_ld=yes
3820 ;;
3821 *)
3822 lt_cv_prog_gnu_ld=no
3823 ;;
3824 esac
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3827 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3828 with_gnu_ld=$lt_cv_prog_gnu_ld
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3839 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3840 if ${lt_cv_path_NM+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -n "$NM"; then
3844 # Let the user override the test.
3845 lt_cv_path_NM="$NM"
3846 else
3847 lt_nm_to_check="${ac_tool_prefix}nm"
3848 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3849 lt_nm_to_check="$lt_nm_to_check nm"
3850 fi
3851 for lt_tmp_nm in $lt_nm_to_check; do
3852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3853 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3854 IFS="$lt_save_ifs"
3855 test -z "$ac_dir" && ac_dir=.
3856 tmp_nm="$ac_dir/$lt_tmp_nm"
3857 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3858 # Check to see if the nm accepts a BSD-compat flag.
3859 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3860 # nm: unknown option "B" ignored
3861 # Tru64's nm complains that /dev/null is an invalid object file
3862 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3863 */dev/null* | *'Invalid file or object type'*)
3864 lt_cv_path_NM="$tmp_nm -B"
3865 break
3866 ;;
3867 *)
3868 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3869 */dev/null*)
3870 lt_cv_path_NM="$tmp_nm -p"
3871 break
3872 ;;
3873 *)
3874 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3875 continue # so that we can try to find one that supports BSD flags
3876 ;;
3877 esac
3878 ;;
3879 esac
3880 fi
3881 done
3882 IFS="$lt_save_ifs"
3883 done
3884 : ${lt_cv_path_NM=no}
3885 fi
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3888 $as_echo "$lt_cv_path_NM" >&6; }
3889 if test "$lt_cv_path_NM" != "no"; then
3890 NM="$lt_cv_path_NM"
3891 else
3892 # Didn't find any BSD compatible name lister, look for dumpbin.
3893 if test -n "$DUMPBIN"; then :
3894 # Let the user override the test.
3895 else
3896 if test -n "$ac_tool_prefix"; then
3897 for ac_prog in dumpbin "link -dump"
3898 do
3899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_DUMPBIN+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 if test -n "$DUMPBIN"; then
3907 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 IFS=$as_save_IFS
3923
3924 fi
3925 fi
3926 DUMPBIN=$ac_cv_prog_DUMPBIN
3927 if test -n "$DUMPBIN"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3929 $as_echo "$DUMPBIN" >&6; }
3930 else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 fi
3934
3935
3936 test -n "$DUMPBIN" && break
3937 done
3938 fi
3939 if test -z "$DUMPBIN"; then
3940 ac_ct_DUMPBIN=$DUMPBIN
3941 for ac_prog in dumpbin "link -dump"
3942 do
3943 # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 if test -n "$ac_ct_DUMPBIN"; then
3951 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964 done
3965 done
3966 IFS=$as_save_IFS
3967
3968 fi
3969 fi
3970 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3971 if test -n "$ac_ct_DUMPBIN"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3973 $as_echo "$ac_ct_DUMPBIN" >&6; }
3974 else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3977 fi
3978
3979
3980 test -n "$ac_ct_DUMPBIN" && break
3981 done
3982
3983 if test "x$ac_ct_DUMPBIN" = x; then
3984 DUMPBIN=":"
3985 else
3986 case $cross_compiling:$ac_tool_warned in
3987 yes:)
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3990 ac_tool_warned=yes ;;
3991 esac
3992 DUMPBIN=$ac_ct_DUMPBIN
3993 fi
3994 fi
3995
3996 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3997 *COFF*)
3998 DUMPBIN="$DUMPBIN -symbols"
3999 ;;
4000 *)
4001 DUMPBIN=:
4002 ;;
4003 esac
4004 fi
4005
4006 if test "$DUMPBIN" != ":"; then
4007 NM="$DUMPBIN"
4008 fi
4009 fi
4010 test -z "$NM" && NM=nm
4011
4012
4013
4014
4015
4016
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4018 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4019 if ${lt_cv_nm_interface+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 lt_cv_nm_interface="BSD nm"
4023 echo "int some_variable = 0;" > conftest.$ac_ext
4024 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4025 (eval "$ac_compile" 2>conftest.err)
4026 cat conftest.err >&5
4027 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4028 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4029 cat conftest.err >&5
4030 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4031 cat conftest.out >&5
4032 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4033 lt_cv_nm_interface="MS dumpbin"
4034 fi
4035 rm -f conftest*
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4038 $as_echo "$lt_cv_nm_interface" >&6; }
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4041 $as_echo_n "checking whether ln -s works... " >&6; }
4042 LN_S=$as_ln_s
4043 if test "$LN_S" = "ln -s"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4045 $as_echo "yes" >&6; }
4046 else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4048 $as_echo "no, using $LN_S" >&6; }
4049 fi
4050
4051 # find the maximum length of command line arguments
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4053 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4054 if ${lt_cv_sys_max_cmd_len+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 i=0
4058 teststring="ABCD"
4059
4060 case $build_os in
4061 msdosdjgpp*)
4062 # On DJGPP, this test can blow up pretty badly due to problems in libc
4063 # (any single argument exceeding 2000 bytes causes a buffer overrun
4064 # during glob expansion). Even if it were fixed, the result of this
4065 # check would be larger than it should be.
4066 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4067 ;;
4068
4069 gnu*)
4070 # Under GNU Hurd, this test is not required because there is
4071 # no limit to the length of command line arguments.
4072 # Libtool will interpret -1 as no limit whatsoever
4073 lt_cv_sys_max_cmd_len=-1;
4074 ;;
4075
4076 cygwin* | mingw* | cegcc*)
4077 # On Win9x/ME, this test blows up -- it succeeds, but takes
4078 # about 5 minutes as the teststring grows exponentially.
4079 # Worse, since 9x/ME are not pre-emptively multitasking,
4080 # you end up with a "frozen" computer, even though with patience
4081 # the test eventually succeeds (with a max line length of 256k).
4082 # Instead, let's just punt: use the minimum linelength reported by
4083 # all of the supported platforms: 8192 (on NT/2K/XP).
4084 lt_cv_sys_max_cmd_len=8192;
4085 ;;
4086
4087 mint*)
4088 # On MiNT this can take a long time and run out of memory.
4089 lt_cv_sys_max_cmd_len=8192;
4090 ;;
4091
4092 amigaos*)
4093 # On AmigaOS with pdksh, this test takes hours, literally.
4094 # So we just punt and use a minimum line length of 8192.
4095 lt_cv_sys_max_cmd_len=8192;
4096 ;;
4097
4098 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4099 # This has been around since 386BSD, at least. Likely further.
4100 if test -x /sbin/sysctl; then
4101 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4102 elif test -x /usr/sbin/sysctl; then
4103 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4104 else
4105 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4106 fi
4107 # And add a safety zone
4108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4110 ;;
4111
4112 interix*)
4113 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4114 lt_cv_sys_max_cmd_len=196608
4115 ;;
4116
4117 osf*)
4118 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4119 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4120 # nice to cause kernel panics so lets avoid the loop below.
4121 # First set a reasonable default.
4122 lt_cv_sys_max_cmd_len=16384
4123 #
4124 if test -x /sbin/sysconfig; then
4125 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4126 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4127 esac
4128 fi
4129 ;;
4130 sco3.2v5*)
4131 lt_cv_sys_max_cmd_len=102400
4132 ;;
4133 sysv5* | sco5v6* | sysv4.2uw2*)
4134 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4135 if test -n "$kargmax"; then
4136 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4137 else
4138 lt_cv_sys_max_cmd_len=32768
4139 fi
4140 ;;
4141 *)
4142 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4143 if test -n "$lt_cv_sys_max_cmd_len"; then
4144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4146 else
4147 # Make teststring a little bigger before we do anything with it.
4148 # a 1K string should be a reasonable start.
4149 for i in 1 2 3 4 5 6 7 8 ; do
4150 teststring=$teststring$teststring
4151 done
4152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4153 # If test is not a shell built-in, we'll probably end up computing a
4154 # maximum length that is only half of the actual maximum length, but
4155 # we can't tell.
4156 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4158 test $i != 17 # 1/2 MB should be enough
4159 do
4160 i=`expr $i + 1`
4161 teststring=$teststring$teststring
4162 done
4163 # Only check the string length outside the loop.
4164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4165 teststring=
4166 # Add a significant safety factor because C++ compilers can tack on
4167 # massive amounts of additional arguments before passing them to the
4168 # linker. It appears as though 1/2 is a usable value.
4169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4170 fi
4171 ;;
4172 esac
4173
4174 fi
4175
4176 if test -n $lt_cv_sys_max_cmd_len ; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4178 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4181 $as_echo "none" >&6; }
4182 fi
4183 max_cmd_len=$lt_cv_sys_max_cmd_len
4184
4185
4186
4187
4188
4189
4190 : ${CP="cp -f"}
4191 : ${MV="mv -f"}
4192 : ${RM="rm -f"}
4193
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4195 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4196 # Try some XSI features
4197 xsi_shell=no
4198 ( _lt_dummy="a/b/c"
4199 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4200 = c,a/b,b/c, \
4201 && eval 'test $(( 1 + 1 )) -eq 2 \
4202 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4203 && xsi_shell=yes
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4205 $as_echo "$xsi_shell" >&6; }
4206
4207
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4209 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4210 lt_shell_append=no
4211 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4212 >/dev/null 2>&1 \
4213 && lt_shell_append=yes
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4215 $as_echo "$lt_shell_append" >&6; }
4216
4217
4218 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4219 lt_unset=unset
4220 else
4221 lt_unset=false
4222 fi
4223
4224
4225
4226
4227
4228 # test EBCDIC or ASCII
4229 case `echo X|tr X '\101'` in
4230 A) # ASCII based system
4231 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4232 lt_SP2NL='tr \040 \012'
4233 lt_NL2SP='tr \015\012 \040\040'
4234 ;;
4235 *) # EBCDIC based system
4236 lt_SP2NL='tr \100 \n'
4237 lt_NL2SP='tr \r\n \100\100'
4238 ;;
4239 esac
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4250 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4251 if ${lt_cv_to_host_file_cmd+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 case $host in
4255 *-*-mingw* )
4256 case $build in
4257 *-*-mingw* ) # actually msys
4258 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4259 ;;
4260 *-*-cygwin* )
4261 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4262 ;;
4263 * ) # otherwise, assume *nix
4264 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4265 ;;
4266 esac
4267 ;;
4268 *-*-cygwin* )
4269 case $build in
4270 *-*-mingw* ) # actually msys
4271 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4272 ;;
4273 *-*-cygwin* )
4274 lt_cv_to_host_file_cmd=func_convert_file_noop
4275 ;;
4276 * ) # otherwise, assume *nix
4277 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4278 ;;
4279 esac
4280 ;;
4281 * ) # unhandled hosts (and "normal" native builds)
4282 lt_cv_to_host_file_cmd=func_convert_file_noop
4283 ;;
4284 esac
4285
4286 fi
4287
4288 to_host_file_cmd=$lt_cv_to_host_file_cmd
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4290 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4291
4292
4293
4294
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4297 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4298 if ${lt_cv_to_tool_file_cmd+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 #assume ordinary cross tools, or native build.
4302 lt_cv_to_tool_file_cmd=func_convert_file_noop
4303 case $host in
4304 *-*-mingw* )
4305 case $build in
4306 *-*-mingw* ) # actually msys
4307 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4308 ;;
4309 esac
4310 ;;
4311 esac
4312
4313 fi
4314
4315 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4317 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4318
4319
4320
4321
4322
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4324 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4325 if ${lt_cv_ld_reload_flag+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 lt_cv_ld_reload_flag='-r'
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4331 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4332 reload_flag=$lt_cv_ld_reload_flag
4333 case $reload_flag in
4334 "" | " "*) ;;
4335 *) reload_flag=" $reload_flag" ;;
4336 esac
4337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4338 case $host_os in
4339 cygwin* | mingw* | pw32* | cegcc*)
4340 if test "$GCC" != yes; then
4341 reload_cmds=false
4342 fi
4343 ;;
4344 darwin*)
4345 if test "$GCC" = yes; then
4346 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4347 else
4348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4349 fi
4350 ;;
4351 esac
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361 if test -n "$ac_tool_prefix"; then
4362 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4363 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_OBJDUMP+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$OBJDUMP"; then
4370 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 OBJDUMP=$ac_cv_prog_OBJDUMP
4390 if test -n "$OBJDUMP"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4392 $as_echo "$OBJDUMP" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 fi
4397
4398
4399 fi
4400 if test -z "$ac_cv_prog_OBJDUMP"; then
4401 ac_ct_OBJDUMP=$OBJDUMP
4402 # Extract the first word of "objdump", so it can be a program name with args.
4403 set dummy objdump; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$ac_ct_OBJDUMP"; then
4410 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423 done
4424 done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4430 if test -n "$ac_ct_OBJDUMP"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4432 $as_echo "$ac_ct_OBJDUMP" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438 if test "x$ac_ct_OBJDUMP" = x; then
4439 OBJDUMP="false"
4440 else
4441 case $cross_compiling:$ac_tool_warned in
4442 yes:)
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4446 esac
4447 OBJDUMP=$ac_ct_OBJDUMP
4448 fi
4449 else
4450 OBJDUMP="$ac_cv_prog_OBJDUMP"
4451 fi
4452
4453 test -z "$OBJDUMP" && OBJDUMP=objdump
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4464 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4465 if ${lt_cv_deplibs_check_method+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 lt_cv_file_magic_cmd='$MAGIC_CMD'
4469 lt_cv_file_magic_test_file=
4470 lt_cv_deplibs_check_method='unknown'
4471 # Need to set the preceding variable on all platforms that support
4472 # interlibrary dependencies.
4473 # 'none' -- dependencies not supported.
4474 # `unknown' -- same as none, but documents that we really don't know.
4475 # 'pass_all' -- all dependencies passed with no checks.
4476 # 'test_compile' -- check by making test program.
4477 # 'file_magic [[regex]]' -- check by looking for files in library path
4478 # which responds to the $file_magic_cmd with a given extended regex.
4479 # If you have `file' or equivalent on your system and you're not sure
4480 # whether `pass_all' will *always* work, you probably want this one.
4481
4482 case $host_os in
4483 aix[4-9]*)
4484 lt_cv_deplibs_check_method=pass_all
4485 ;;
4486
4487 beos*)
4488 lt_cv_deplibs_check_method=pass_all
4489 ;;
4490
4491 bsdi[45]*)
4492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4493 lt_cv_file_magic_cmd='/usr/bin/file -L'
4494 lt_cv_file_magic_test_file=/shlib/libc.so
4495 ;;
4496
4497 cygwin*)
4498 # func_win32_libid is a shell function defined in ltmain.sh
4499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4500 lt_cv_file_magic_cmd='func_win32_libid'
4501 ;;
4502
4503 mingw* | pw32*)
4504 # Base MSYS/MinGW do not provide the 'file' command needed by
4505 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4506 # unless we find 'file', for example because we are cross-compiling.
4507 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4508 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4510 lt_cv_file_magic_cmd='func_win32_libid'
4511 else
4512 # Keep this pattern in sync with the one in func_win32_libid.
4513 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4514 lt_cv_file_magic_cmd='$OBJDUMP -f'
4515 fi
4516 ;;
4517
4518 cegcc*)
4519 # use the weaker test based on 'objdump'. See mingw*.
4520 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4521 lt_cv_file_magic_cmd='$OBJDUMP -f'
4522 ;;
4523
4524 darwin* | rhapsody*)
4525 lt_cv_deplibs_check_method=pass_all
4526 ;;
4527
4528 freebsd* | dragonfly*)
4529 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4530 case $host_cpu in
4531 i*86 )
4532 # Not sure whether the presence of OpenBSD here was a mistake.
4533 # Let's accept both of them until this is cleared up.
4534 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4535 lt_cv_file_magic_cmd=/usr/bin/file
4536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4537 ;;
4538 esac
4539 else
4540 lt_cv_deplibs_check_method=pass_all
4541 fi
4542 ;;
4543
4544 gnu*)
4545 lt_cv_deplibs_check_method=pass_all
4546 ;;
4547
4548 haiku*)
4549 lt_cv_deplibs_check_method=pass_all
4550 ;;
4551
4552 hpux10.20* | hpux11*)
4553 lt_cv_file_magic_cmd=/usr/bin/file
4554 case $host_cpu in
4555 ia64*)
4556 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4557 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4558 ;;
4559 hppa*64*)
4560 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]'
4561 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4562 ;;
4563 *)
4564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4565 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4566 ;;
4567 esac
4568 ;;
4569
4570 interix[3-9]*)
4571 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4573 ;;
4574
4575 irix5* | irix6* | nonstopux*)
4576 case $LD in
4577 *-32|*"-32 ") libmagic=32-bit;;
4578 *-n32|*"-n32 ") libmagic=N32;;
4579 *-64|*"-64 ") libmagic=64-bit;;
4580 *) libmagic=never-match;;
4581 esac
4582 lt_cv_deplibs_check_method=pass_all
4583 ;;
4584
4585 # This must be Linux ELF.
4586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4587 lt_cv_deplibs_check_method=pass_all
4588 ;;
4589
4590 netbsd* | netbsdelf*-gnu)
4591 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4593 else
4594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4595 fi
4596 ;;
4597
4598 newos6*)
4599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4600 lt_cv_file_magic_cmd=/usr/bin/file
4601 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4602 ;;
4603
4604 *nto* | *qnx*)
4605 lt_cv_deplibs_check_method=pass_all
4606 ;;
4607
4608 openbsd*)
4609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4611 else
4612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4613 fi
4614 ;;
4615
4616 osf3* | osf4* | osf5*)
4617 lt_cv_deplibs_check_method=pass_all
4618 ;;
4619
4620 rdos*)
4621 lt_cv_deplibs_check_method=pass_all
4622 ;;
4623
4624 solaris*)
4625 lt_cv_deplibs_check_method=pass_all
4626 ;;
4627
4628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4629 lt_cv_deplibs_check_method=pass_all
4630 ;;
4631
4632 sysv4 | sysv4.3*)
4633 case $host_vendor in
4634 motorola)
4635 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]'
4636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4637 ;;
4638 ncr)
4639 lt_cv_deplibs_check_method=pass_all
4640 ;;
4641 sequent)
4642 lt_cv_file_magic_cmd='/bin/file'
4643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4644 ;;
4645 sni)
4646 lt_cv_file_magic_cmd='/bin/file'
4647 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4648 lt_cv_file_magic_test_file=/lib/libc.so
4649 ;;
4650 siemens)
4651 lt_cv_deplibs_check_method=pass_all
4652 ;;
4653 pc)
4654 lt_cv_deplibs_check_method=pass_all
4655 ;;
4656 esac
4657 ;;
4658
4659 tpf*)
4660 lt_cv_deplibs_check_method=pass_all
4661 ;;
4662 esac
4663
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4666 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4667
4668 file_magic_glob=
4669 want_nocaseglob=no
4670 if test "$build" = "$host"; then
4671 case $host_os in
4672 mingw* | pw32*)
4673 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4674 want_nocaseglob=yes
4675 else
4676 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4677 fi
4678 ;;
4679 esac
4680 fi
4681
4682 file_magic_cmd=$lt_cv_file_magic_cmd
4683 deplibs_check_method=$lt_cv_deplibs_check_method
4684 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707 if test -n "$ac_tool_prefix"; then
4708 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4709 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if ${ac_cv_prog_DLLTOOL+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$DLLTOOL"; then
4716 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 DLLTOOL=$ac_cv_prog_DLLTOOL
4736 if test -n "$DLLTOOL"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4738 $as_echo "$DLLTOOL" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744
4745 fi
4746 if test -z "$ac_cv_prog_DLLTOOL"; then
4747 ac_ct_DLLTOOL=$DLLTOOL
4748 # Extract the first word of "dlltool", so it can be a program name with args.
4749 set dummy dlltool; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 if test -n "$ac_ct_DLLTOOL"; then
4756 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4768 fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773 fi
4774 fi
4775 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4776 if test -n "$ac_ct_DLLTOOL"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4778 $as_echo "$ac_ct_DLLTOOL" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783
4784 if test "x$ac_ct_DLLTOOL" = x; then
4785 DLLTOOL="false"
4786 else
4787 case $cross_compiling:$ac_tool_warned in
4788 yes:)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4791 ac_tool_warned=yes ;;
4792 esac
4793 DLLTOOL=$ac_ct_DLLTOOL
4794 fi
4795 else
4796 DLLTOOL="$ac_cv_prog_DLLTOOL"
4797 fi
4798
4799 test -z "$DLLTOOL" && DLLTOOL=dlltool
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4811 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4812 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 lt_cv_sharedlib_from_linklib_cmd='unknown'
4816
4817 case $host_os in
4818 cygwin* | mingw* | pw32* | cegcc*)
4819 # two different shell functions defined in ltmain.sh
4820 # decide which to use based on capabilities of $DLLTOOL
4821 case `$DLLTOOL --help 2>&1` in
4822 *--identify-strict*)
4823 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4824 ;;
4825 *)
4826 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4827 ;;
4828 esac
4829 ;;
4830 *)
4831 # fallback: assume linklib IS sharedlib
4832 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4833 ;;
4834 esac
4835
4836 fi
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4838 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4839 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4840 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4841
4842
4843
4844
4845
4846
4847
4848
4849 if test -n "$ac_tool_prefix"; then
4850 for ac_prog in ar
4851 do
4852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_AR+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$AR"; then
4860 ac_cv_prog_AR="$AR" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 AR=$ac_cv_prog_AR
4880 if test -n "$AR"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4882 $as_echo "$AR" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889 test -n "$AR" && break
4890 done
4891 fi
4892 if test -z "$AR"; then
4893 ac_ct_AR=$AR
4894 for ac_prog in ar
4895 do
4896 # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy $ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$ac_ct_AR"; then
4904 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_ac_ct_AR="$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4924 if test -n "$ac_ct_AR"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4926 $as_echo "$ac_ct_AR" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932
4933 test -n "$ac_ct_AR" && break
4934 done
4935
4936 if test "x$ac_ct_AR" = x; then
4937 AR="false"
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4944 esac
4945 AR=$ac_ct_AR
4946 fi
4947 fi
4948
4949 : ${AR=ar}
4950 : ${AR_FLAGS=cru}
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4963 $as_echo_n "checking for archiver @FILE support... " >&6; }
4964 if ${lt_cv_ar_at_file+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 lt_cv_ar_at_file=no
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970
4971 int
4972 main ()
4973 {
4974
4975 ;
4976 return 0;
4977 }
4978 _ACEOF
4979 if ac_fn_c_try_compile "$LINENO"; then :
4980 echo conftest.$ac_objext > conftest.lst
4981 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4983 (eval $lt_ar_try) 2>&5
4984 ac_status=$?
4985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4986 test $ac_status = 0; }
4987 if test "$ac_status" -eq 0; then
4988 # Ensure the archiver fails upon bogus file names.
4989 rm -f conftest.$ac_objext libconftest.a
4990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4991 (eval $lt_ar_try) 2>&5
4992 ac_status=$?
4993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4994 test $ac_status = 0; }
4995 if test "$ac_status" -ne 0; then
4996 lt_cv_ar_at_file=@
4997 fi
4998 fi
4999 rm -f conftest.* libconftest.a
5000
5001 fi
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003
5004 fi
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5006 $as_echo "$lt_cv_ar_at_file" >&6; }
5007
5008 if test "x$lt_cv_ar_at_file" = xno; then
5009 archiver_list_spec=
5010 else
5011 archiver_list_spec=$lt_cv_ar_at_file
5012 fi
5013
5014
5015
5016
5017
5018
5019
5020 if test -n "$ac_tool_prefix"; then
5021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5022 set dummy ${ac_tool_prefix}strip; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_STRIP+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$STRIP"; then
5029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046 fi
5047 fi
5048 STRIP=$ac_cv_prog_STRIP
5049 if test -n "$STRIP"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5051 $as_echo "$STRIP" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056
5057
5058 fi
5059 if test -z "$ac_cv_prog_STRIP"; then
5060 ac_ct_STRIP=$STRIP
5061 # Extract the first word of "strip", so it can be a program name with args.
5062 set dummy strip; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$ac_ct_STRIP"; then
5069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_prog_ac_ct_STRIP="strip"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5089 if test -n "$ac_ct_STRIP"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5091 $as_echo "$ac_ct_STRIP" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097 if test "x$ac_ct_STRIP" = x; then
5098 STRIP=":"
5099 else
5100 case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 STRIP=$ac_ct_STRIP
5107 fi
5108 else
5109 STRIP="$ac_cv_prog_STRIP"
5110 fi
5111
5112 test -z "$STRIP" && STRIP=:
5113
5114
5115
5116
5117
5118
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_RANLIB+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$RANLIB"; then
5128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145 fi
5146 fi
5147 RANLIB=$ac_cv_prog_RANLIB
5148 if test -n "$RANLIB"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5150 $as_echo "$RANLIB" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5154 fi
5155
5156
5157 fi
5158 if test -z "$ac_cv_prog_RANLIB"; then
5159 ac_ct_RANLIB=$RANLIB
5160 # Extract the first word of "ranlib", so it can be a program name with args.
5161 set dummy ranlib; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$ac_ct_RANLIB"; then
5168 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_ac_ct_RANLIB="ranlib"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5188 if test -n "$ac_ct_RANLIB"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5190 $as_echo "$ac_ct_RANLIB" >&6; }
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196 if test "x$ac_ct_RANLIB" = x; then
5197 RANLIB=":"
5198 else
5199 case $cross_compiling:$ac_tool_warned in
5200 yes:)
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5204 esac
5205 RANLIB=$ac_ct_RANLIB
5206 fi
5207 else
5208 RANLIB="$ac_cv_prog_RANLIB"
5209 fi
5210
5211 test -z "$RANLIB" && RANLIB=:
5212
5213
5214
5215
5216
5217
5218 # Determine commands to create old-style static archives.
5219 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5220 old_postinstall_cmds='chmod 644 $oldlib'
5221 old_postuninstall_cmds=
5222
5223 if test -n "$RANLIB"; then
5224 case $host_os in
5225 openbsd*)
5226 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5227 ;;
5228 *)
5229 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5230 ;;
5231 esac
5232 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5233 fi
5234
5235 case $host_os in
5236 darwin*)
5237 lock_old_archive_extraction=yes ;;
5238 *)
5239 lock_old_archive_extraction=no ;;
5240 esac
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280 # If no C compiler was specified, use CC.
5281 LTCC=${LTCC-"$CC"}
5282
5283 # If no C compiler flags were specified, use CFLAGS.
5284 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5285
5286 # Allow CC to be a program name with arguments.
5287 compiler=$CC
5288
5289
5290 # Check for command to grab the raw symbol name followed by C symbol from nm.
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5292 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5293 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296
5297 # These are sane defaults that work on at least a few old systems.
5298 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5299
5300 # Character class describing NM global symbol codes.
5301 symcode='[BCDEGRST]'
5302
5303 # Regexp to match symbols that can be accessed directly from C.
5304 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5305
5306 # Define system-specific variables.
5307 case $host_os in
5308 aix*)
5309 symcode='[BCDT]'
5310 ;;
5311 cygwin* | mingw* | pw32* | cegcc*)
5312 symcode='[ABCDGISTW]'
5313 ;;
5314 hpux*)
5315 if test "$host_cpu" = ia64; then
5316 symcode='[ABCDEGRST]'
5317 fi
5318 ;;
5319 irix* | nonstopux*)
5320 symcode='[BCDEGRST]'
5321 ;;
5322 osf*)
5323 symcode='[BCDEGQRST]'
5324 ;;
5325 solaris*)
5326 symcode='[BDRT]'
5327 ;;
5328 sco3.2v5*)
5329 symcode='[DT]'
5330 ;;
5331 sysv4.2uw2*)
5332 symcode='[DT]'
5333 ;;
5334 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5335 symcode='[ABDT]'
5336 ;;
5337 sysv4)
5338 symcode='[DFNSTU]'
5339 ;;
5340 esac
5341
5342 # If we're using GNU nm, then use its standard symbol codes.
5343 case `$NM -V 2>&1` in
5344 *GNU* | *'with BFD'*)
5345 symcode='[ABCDGIRSTW]' ;;
5346 esac
5347
5348 # Transform an extracted symbol line into a proper C declaration.
5349 # Some systems (esp. on ia64) link data and code symbols differently,
5350 # so use this general approach.
5351 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5352
5353 # Transform an extracted symbol line into symbol name and symbol address
5354 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5355 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'"
5356
5357 # Handle CRLF in mingw tool chain
5358 opt_cr=
5359 case $build_os in
5360 mingw*)
5361 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5362 ;;
5363 esac
5364
5365 # Try without a prefix underscore, then with it.
5366 for ac_symprfx in "" "_"; do
5367
5368 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5369 symxfrm="\\1 $ac_symprfx\\2 \\2"
5370
5371 # Write the raw and C identifiers.
5372 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5373 # Fake it for dumpbin and say T for any non-static function
5374 # and D for any global variable.
5375 # Also find C++ and __fastcall symbols from MSVC++,
5376 # which start with @ or ?.
5377 lt_cv_sys_global_symbol_pipe="$AWK '"\
5378 " {last_section=section; section=\$ 3};"\
5379 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5380 " \$ 0!~/External *\|/{next};"\
5381 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5382 " {if(hide[section]) next};"\
5383 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5384 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5385 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5386 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5387 " ' prfx=^$ac_symprfx"
5388 else
5389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5390 fi
5391 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5392
5393 # Check to see that the pipe works correctly.
5394 pipe_works=no
5395
5396 rm -f conftest*
5397 cat > conftest.$ac_ext <<_LT_EOF
5398 #ifdef __cplusplus
5399 extern "C" {
5400 #endif
5401 char nm_test_var;
5402 void nm_test_func(void);
5403 void nm_test_func(void){}
5404 #ifdef __cplusplus
5405 }
5406 #endif
5407 int main(){nm_test_var='a';nm_test_func();return(0);}
5408 _LT_EOF
5409
5410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5411 (eval $ac_compile) 2>&5
5412 ac_status=$?
5413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5414 test $ac_status = 0; }; then
5415 # Now try to grab the symbols.
5416 nlist=conftest.nm
5417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5418 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5419 ac_status=$?
5420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421 test $ac_status = 0; } && test -s "$nlist"; then
5422 # Try sorting and uniquifying the output.
5423 if sort "$nlist" | uniq > "$nlist"T; then
5424 mv -f "$nlist"T "$nlist"
5425 else
5426 rm -f "$nlist"T
5427 fi
5428
5429 # Make sure that we snagged all the symbols we need.
5430 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5431 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5432 cat <<_LT_EOF > conftest.$ac_ext
5433 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5434 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5435 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5436 relocations are performed -- see ld's documentation on pseudo-relocs. */
5437 # define LT_DLSYM_CONST
5438 #elif defined(__osf__)
5439 /* This system does not cope well with relocations in const data. */
5440 # define LT_DLSYM_CONST
5441 #else
5442 # define LT_DLSYM_CONST const
5443 #endif
5444
5445 #ifdef __cplusplus
5446 extern "C" {
5447 #endif
5448
5449 _LT_EOF
5450 # Now generate the symbol file.
5451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5452
5453 cat <<_LT_EOF >> conftest.$ac_ext
5454
5455 /* The mapping between symbol names and symbols. */
5456 LT_DLSYM_CONST struct {
5457 const char *name;
5458 void *address;
5459 }
5460 lt__PROGRAM__LTX_preloaded_symbols[] =
5461 {
5462 { "@PROGRAM@", (void *) 0 },
5463 _LT_EOF
5464 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5465 cat <<\_LT_EOF >> conftest.$ac_ext
5466 {0, (void *) 0}
5467 };
5468
5469 /* This works around a problem in FreeBSD linker */
5470 #ifdef FREEBSD_WORKAROUND
5471 static const void *lt_preloaded_setup() {
5472 return lt__PROGRAM__LTX_preloaded_symbols;
5473 }
5474 #endif
5475
5476 #ifdef __cplusplus
5477 }
5478 #endif
5479 _LT_EOF
5480 # Now try linking the two files.
5481 mv conftest.$ac_objext conftstm.$ac_objext
5482 lt_globsym_save_LIBS=$LIBS
5483 lt_globsym_save_CFLAGS=$CFLAGS
5484 LIBS="conftstm.$ac_objext"
5485 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5487 (eval $ac_link) 2>&5
5488 ac_status=$?
5489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5490 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5491 pipe_works=yes
5492 fi
5493 LIBS=$lt_globsym_save_LIBS
5494 CFLAGS=$lt_globsym_save_CFLAGS
5495 else
5496 echo "cannot find nm_test_func in $nlist" >&5
5497 fi
5498 else
5499 echo "cannot find nm_test_var in $nlist" >&5
5500 fi
5501 else
5502 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5503 fi
5504 else
5505 echo "$progname: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 fi
5508 rm -rf conftest* conftst*
5509
5510 # Do not use the global_symbol_pipe unless it works.
5511 if test "$pipe_works" = yes; then
5512 break
5513 else
5514 lt_cv_sys_global_symbol_pipe=
5515 fi
5516 done
5517
5518 fi
5519
5520 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5521 lt_cv_sys_global_symbol_to_cdecl=
5522 fi
5523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5525 $as_echo "failed" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5528 $as_echo "ok" >&6; }
5529 fi
5530
5531 # Response file support.
5532 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5533 nm_file_list_spec='@'
5534 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5535 nm_file_list_spec='@'
5536 fi
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5565 $as_echo_n "checking for sysroot... " >&6; }
5566
5567 # Check whether --with-sysroot was given.
5568 if test "${with_sysroot+set}" = set; then :
5569 withval=$with_sysroot;
5570 else
5571 with_sysroot=no
5572 fi
5573
5574
5575 lt_sysroot=
5576 case ${with_sysroot} in #(
5577 yes)
5578 if test "$GCC" = yes; then
5579 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5580 fi
5581 ;; #(
5582 /*)
5583 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5584 ;; #(
5585 no|'')
5586 ;; #(
5587 *)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5589 $as_echo "${with_sysroot}" >&6; }
5590 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5591 ;;
5592 esac
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5595 $as_echo "${lt_sysroot:-no}" >&6; }
5596
5597
5598
5599
5600
5601 # Check whether --enable-libtool-lock was given.
5602 if test "${enable_libtool_lock+set}" = set; then :
5603 enableval=$enable_libtool_lock;
5604 fi
5605
5606 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5607
5608 # Some flags need to be propagated to the compiler or linker for good
5609 # libtool support.
5610 case $host in
5611 ia64-*-hpux*)
5612 # Find out which ABI we are using.
5613 echo 'int i;' > conftest.$ac_ext
5614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5615 (eval $ac_compile) 2>&5
5616 ac_status=$?
5617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618 test $ac_status = 0; }; then
5619 case `/usr/bin/file conftest.$ac_objext` in
5620 *ELF-32*)
5621 HPUX_IA64_MODE="32"
5622 ;;
5623 *ELF-64*)
5624 HPUX_IA64_MODE="64"
5625 ;;
5626 esac
5627 fi
5628 rm -rf conftest*
5629 ;;
5630 *-*-irix6*)
5631 # Find out which ABI we are using.
5632 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5634 (eval $ac_compile) 2>&5
5635 ac_status=$?
5636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5637 test $ac_status = 0; }; then
5638 if test "$lt_cv_prog_gnu_ld" = yes; then
5639 case `/usr/bin/file conftest.$ac_objext` in
5640 *32-bit*)
5641 LD="${LD-ld} -melf32bsmip"
5642 ;;
5643 *N32*)
5644 LD="${LD-ld} -melf32bmipn32"
5645 ;;
5646 *64-bit*)
5647 LD="${LD-ld} -melf64bmip"
5648 ;;
5649 esac
5650 else
5651 case `/usr/bin/file conftest.$ac_objext` in
5652 *32-bit*)
5653 LD="${LD-ld} -32"
5654 ;;
5655 *N32*)
5656 LD="${LD-ld} -n32"
5657 ;;
5658 *64-bit*)
5659 LD="${LD-ld} -64"
5660 ;;
5661 esac
5662 fi
5663 fi
5664 rm -rf conftest*
5665 ;;
5666
5667 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5668 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5669 # Find out which ABI we are using.
5670 echo 'int i;' > conftest.$ac_ext
5671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5672 (eval $ac_compile) 2>&5
5673 ac_status=$?
5674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5675 test $ac_status = 0; }; then
5676 case `/usr/bin/file conftest.o` in
5677 *32-bit*)
5678 case $host in
5679 x86_64-*kfreebsd*-gnu)
5680 LD="${LD-ld} -m elf_i386_fbsd"
5681 ;;
5682 x86_64-*linux*)
5683 LD="${LD-ld} -m elf_i386"
5684 ;;
5685 ppc64-*linux*|powerpc64-*linux*)
5686 LD="${LD-ld} -m elf32ppclinux"
5687 ;;
5688 s390x-*linux*)
5689 LD="${LD-ld} -m elf_s390"
5690 ;;
5691 sparc64-*linux*)
5692 LD="${LD-ld} -m elf32_sparc"
5693 ;;
5694 esac
5695 ;;
5696 *64-bit*)
5697 case $host in
5698 x86_64-*kfreebsd*-gnu)
5699 LD="${LD-ld} -m elf_x86_64_fbsd"
5700 ;;
5701 x86_64-*linux*)
5702 LD="${LD-ld} -m elf_x86_64"
5703 ;;
5704 ppc*-*linux*|powerpc*-*linux*)
5705 LD="${LD-ld} -m elf64ppc"
5706 ;;
5707 s390*-*linux*|s390*-*tpf*)
5708 LD="${LD-ld} -m elf64_s390"
5709 ;;
5710 sparc*-*linux*)
5711 LD="${LD-ld} -m elf64_sparc"
5712 ;;
5713 esac
5714 ;;
5715 esac
5716 fi
5717 rm -rf conftest*
5718 ;;
5719
5720 *-*-sco3.2v5*)
5721 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5722 SAVE_CFLAGS="$CFLAGS"
5723 CFLAGS="$CFLAGS -belf"
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5725 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5726 if ${lt_cv_cc_needs_belf+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 ac_ext=c
5730 ac_cpp='$CPP $CPPFLAGS'
5731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737
5738 int
5739 main ()
5740 {
5741
5742 ;
5743 return 0;
5744 }
5745 _ACEOF
5746 if ac_fn_c_try_link "$LINENO"; then :
5747 lt_cv_cc_needs_belf=yes
5748 else
5749 lt_cv_cc_needs_belf=no
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
5753 ac_ext=c
5754 ac_cpp='$CPP $CPPFLAGS'
5755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5758
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5761 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5762 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5764 CFLAGS="$SAVE_CFLAGS"
5765 fi
5766 ;;
5767 sparc*-*solaris*)
5768 # Find out which ABI we are using.
5769 echo 'int i;' > conftest.$ac_ext
5770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5771 (eval $ac_compile) 2>&5
5772 ac_status=$?
5773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774 test $ac_status = 0; }; then
5775 case `/usr/bin/file conftest.o` in
5776 *64-bit*)
5777 case $lt_cv_prog_gnu_ld in
5778 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5779 *)
5780 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5781 LD="${LD-ld} -64"
5782 fi
5783 ;;
5784 esac
5785 ;;
5786 esac
5787 fi
5788 rm -rf conftest*
5789 ;;
5790 esac
5791
5792 need_locks="$enable_libtool_lock"
5793
5794 if test -n "$ac_tool_prefix"; then
5795 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}mt; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if test -n "$MANIFEST_TOOL"; then
5803 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5823 if test -n "$MANIFEST_TOOL"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5825 $as_echo "$MANIFEST_TOOL" >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831
5832 fi
5833 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5834 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5835 # Extract the first word of "mt", so it can be a program name with args.
5836 set dummy mt; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if test -n "$ac_ct_MANIFEST_TOOL"; then
5843 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856 done
5857 done
5858 IFS=$as_save_IFS
5859
5860 fi
5861 fi
5862 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5863 if test -n "$ac_ct_MANIFEST_TOOL"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5865 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5866 else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870
5871 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5872 MANIFEST_TOOL=":"
5873 else
5874 case $cross_compiling:$ac_tool_warned in
5875 yes:)
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878 ac_tool_warned=yes ;;
5879 esac
5880 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5881 fi
5882 else
5883 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5884 fi
5885
5886 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5888 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5889 if ${lt_cv_path_mainfest_tool+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 lt_cv_path_mainfest_tool=no
5893 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5894 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5895 cat conftest.err >&5
5896 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5897 lt_cv_path_mainfest_tool=yes
5898 fi
5899 rm -f conftest*
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5902 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5903 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5904 MANIFEST_TOOL=:
5905 fi
5906
5907
5908
5909
5910
5911
5912 case $host_os in
5913 rhapsody* | darwin*)
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5916 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$DSYMUTIL"; then
5923 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5943 if test -n "$DSYMUTIL"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5945 $as_echo "$DSYMUTIL" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952 fi
5953 if test -z "$ac_cv_prog_DSYMUTIL"; then
5954 ac_ct_DSYMUTIL=$DSYMUTIL
5955 # Extract the first word of "dsymutil", so it can be a program name with args.
5956 set dummy dsymutil; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -n "$ac_ct_DSYMUTIL"; then
5963 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5983 if test -n "$ac_ct_DSYMUTIL"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5985 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991 if test "x$ac_ct_DSYMUTIL" = x; then
5992 DSYMUTIL=":"
5993 else
5994 case $cross_compiling:$ac_tool_warned in
5995 yes:)
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5998 ac_tool_warned=yes ;;
5999 esac
6000 DSYMUTIL=$ac_ct_DSYMUTIL
6001 fi
6002 else
6003 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6004 fi
6005
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010 $as_echo_n "checking for $ac_word... " >&6; }
6011 if ${ac_cv_prog_NMEDIT+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 if test -n "$NMEDIT"; then
6015 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032 fi
6033 fi
6034 NMEDIT=$ac_cv_prog_NMEDIT
6035 if test -n "$NMEDIT"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6037 $as_echo "$NMEDIT" >&6; }
6038 else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040 $as_echo "no" >&6; }
6041 fi
6042
6043
6044 fi
6045 if test -z "$ac_cv_prog_NMEDIT"; then
6046 ac_ct_NMEDIT=$NMEDIT
6047 # Extract the first word of "nmedit", so it can be a program name with args.
6048 set dummy nmedit; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 if test -n "$ac_ct_NMEDIT"; then
6055 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6075 if test -n "$ac_ct_NMEDIT"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6077 $as_echo "$ac_ct_NMEDIT" >&6; }
6078 else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 fi
6082
6083 if test "x$ac_ct_NMEDIT" = x; then
6084 NMEDIT=":"
6085 else
6086 case $cross_compiling:$ac_tool_warned in
6087 yes:)
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6090 ac_tool_warned=yes ;;
6091 esac
6092 NMEDIT=$ac_ct_NMEDIT
6093 fi
6094 else
6095 NMEDIT="$ac_cv_prog_NMEDIT"
6096 fi
6097
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_LIPO+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$LIPO"; then
6107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 LIPO=$ac_cv_prog_LIPO
6127 if test -n "$LIPO"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6129 $as_echo "$LIPO" >&6; }
6130 else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135
6136 fi
6137 if test -z "$ac_cv_prog_LIPO"; then
6138 ac_ct_LIPO=$LIPO
6139 # Extract the first word of "lipo", so it can be a program name with args.
6140 set dummy lipo; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$ac_ct_LIPO"; then
6147 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_ac_ct_LIPO="lipo"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6167 if test -n "$ac_ct_LIPO"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6169 $as_echo "$ac_ct_LIPO" >&6; }
6170 else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175 if test "x$ac_ct_LIPO" = x; then
6176 LIPO=":"
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182 ac_tool_warned=yes ;;
6183 esac
6184 LIPO=$ac_ct_LIPO
6185 fi
6186 else
6187 LIPO="$ac_cv_prog_LIPO"
6188 fi
6189
6190 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}otool; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_OTOOL+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if test -n "$OTOOL"; then
6199 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 OTOOL=$ac_cv_prog_OTOOL
6219 if test -n "$OTOOL"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6221 $as_echo "$OTOOL" >&6; }
6222 else
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227
6228 fi
6229 if test -z "$ac_cv_prog_OTOOL"; then
6230 ac_ct_OTOOL=$OTOOL
6231 # Extract the first word of "otool", so it can be a program name with args.
6232 set dummy otool; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$ac_ct_OTOOL"; then
6239 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_ac_ct_OTOOL="otool"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6259 if test -n "$ac_ct_OTOOL"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6261 $as_echo "$ac_ct_OTOOL" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267 if test "x$ac_ct_OTOOL" = x; then
6268 OTOOL=":"
6269 else
6270 case $cross_compiling:$ac_tool_warned in
6271 yes:)
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274 ac_tool_warned=yes ;;
6275 esac
6276 OTOOL=$ac_ct_OTOOL
6277 fi
6278 else
6279 OTOOL="$ac_cv_prog_OTOOL"
6280 fi
6281
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_OTOOL64+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if test -n "$OTOOL64"; then
6291 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 OTOOL64=$ac_cv_prog_OTOOL64
6311 if test -n "$OTOOL64"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6313 $as_echo "$OTOOL64" >&6; }
6314 else
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319
6320 fi
6321 if test -z "$ac_cv_prog_OTOOL64"; then
6322 ac_ct_OTOOL64=$OTOOL64
6323 # Extract the first word of "otool64", so it can be a program name with args.
6324 set dummy otool64; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$ac_ct_OTOOL64"; then
6331 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_ac_ct_OTOOL64="otool64"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6351 if test -n "$ac_ct_OTOOL64"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6353 $as_echo "$ac_ct_OTOOL64" >&6; }
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359 if test "x$ac_ct_OTOOL64" = x; then
6360 OTOOL64=":"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368 OTOOL64=$ac_ct_OTOOL64
6369 fi
6370 else
6371 OTOOL64="$ac_cv_prog_OTOOL64"
6372 fi
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6401 $as_echo_n "checking for -single_module linker flag... " >&6; }
6402 if ${lt_cv_apple_cc_single_mod+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 lt_cv_apple_cc_single_mod=no
6406 if test -z "${LT_MULTI_MODULE}"; then
6407 # By default we will add the -single_module flag. You can override
6408 # by either setting the environment variable LT_MULTI_MODULE
6409 # non-empty at configure time, or by adding -multi_module to the
6410 # link flags.
6411 rm -rf libconftest.dylib*
6412 echo "int foo(void){return 1;}" > conftest.c
6413 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6414 -dynamiclib -Wl,-single_module conftest.c" >&5
6415 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6416 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6417 _lt_result=$?
6418 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6419 lt_cv_apple_cc_single_mod=yes
6420 else
6421 cat conftest.err >&5
6422 fi
6423 rm -rf libconftest.dylib*
6424 rm -f conftest.*
6425 fi
6426 fi
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6428 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6430 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6431 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 lt_cv_ld_exported_symbols_list=no
6435 save_LDFLAGS=$LDFLAGS
6436 echo "_main" > conftest.sym
6437 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440
6441 int
6442 main ()
6443 {
6444
6445 ;
6446 return 0;
6447 }
6448 _ACEOF
6449 if ac_fn_c_try_link "$LINENO"; then :
6450 lt_cv_ld_exported_symbols_list=yes
6451 else
6452 lt_cv_ld_exported_symbols_list=no
6453 fi
6454 rm -f core conftest.err conftest.$ac_objext \
6455 conftest$ac_exeext conftest.$ac_ext
6456 LDFLAGS="$save_LDFLAGS"
6457
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6460 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6462 $as_echo_n "checking for -force_load linker flag... " >&6; }
6463 if ${lt_cv_ld_force_load+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 lt_cv_ld_force_load=no
6467 cat > conftest.c << _LT_EOF
6468 int forced_loaded() { return 2;}
6469 _LT_EOF
6470 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6471 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6472 echo "$AR cru libconftest.a conftest.o" >&5
6473 $AR cru libconftest.a conftest.o 2>&5
6474 echo "$RANLIB libconftest.a" >&5
6475 $RANLIB libconftest.a 2>&5
6476 cat > conftest.c << _LT_EOF
6477 int main() { return 0;}
6478 _LT_EOF
6479 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6480 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6481 _lt_result=$?
6482 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6483 lt_cv_ld_force_load=yes
6484 else
6485 cat conftest.err >&5
6486 fi
6487 rm -f conftest.err libconftest.a conftest conftest.c
6488 rm -rf conftest.dSYM
6489
6490 fi
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6492 $as_echo "$lt_cv_ld_force_load" >&6; }
6493 case $host_os in
6494 rhapsody* | darwin1.[012])
6495 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6496 darwin1.*)
6497 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6498 darwin*) # darwin 5.x on
6499 # if running on 10.5 or later, the deployment target defaults
6500 # to the OS version, if on x86, and 10.4, the deployment
6501 # target defaults to 10.4. Don't you love it?
6502 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6503 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6504 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6505 10.[012]*)
6506 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6507 10.*)
6508 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6509 esac
6510 ;;
6511 esac
6512 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6513 _lt_dar_single_mod='$single_module'
6514 fi
6515 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6516 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6517 else
6518 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6519 fi
6520 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6521 _lt_dsymutil='~$DSYMUTIL $lib || :'
6522 else
6523 _lt_dsymutil=
6524 fi
6525 ;;
6526 esac
6527
6528 ac_ext=c
6529 ac_cpp='$CPP $CPPFLAGS'
6530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6534 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6535 # On Suns, sometimes $CPP names a directory.
6536 if test -n "$CPP" && test -d "$CPP"; then
6537 CPP=
6538 fi
6539 if test -z "$CPP"; then
6540 if ${ac_cv_prog_CPP+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 # Double quotes because CPP needs to be expanded
6544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6545 do
6546 ac_preproc_ok=false
6547 for ac_c_preproc_warn_flag in '' yes
6548 do
6549 # Use a header file that comes with gcc, so configuring glibc
6550 # with a fresh cross-compiler works.
6551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6552 # <limits.h> exists even on freestanding compilers.
6553 # On the NeXT, cc -E runs the code through the compiler's parser,
6554 # not just through cpp. "Syntax error" is here to catch this case.
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6557 #ifdef __STDC__
6558 # include <limits.h>
6559 #else
6560 # include <assert.h>
6561 #endif
6562 Syntax error
6563 _ACEOF
6564 if ac_fn_c_try_cpp "$LINENO"; then :
6565
6566 else
6567 # Broken: fails on valid input.
6568 continue
6569 fi
6570 rm -f conftest.err conftest.i conftest.$ac_ext
6571
6572 # OK, works on sane cases. Now check whether nonexistent headers
6573 # can be detected and how.
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #include <ac_nonexistent.h>
6577 _ACEOF
6578 if ac_fn_c_try_cpp "$LINENO"; then :
6579 # Broken: success on invalid input.
6580 continue
6581 else
6582 # Passes both tests.
6583 ac_preproc_ok=:
6584 break
6585 fi
6586 rm -f conftest.err conftest.i conftest.$ac_ext
6587
6588 done
6589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6590 rm -f conftest.i conftest.err conftest.$ac_ext
6591 if $ac_preproc_ok; then :
6592 break
6593 fi
6594
6595 done
6596 ac_cv_prog_CPP=$CPP
6597
6598 fi
6599 CPP=$ac_cv_prog_CPP
6600 else
6601 ac_cv_prog_CPP=$CPP
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6604 $as_echo "$CPP" >&6; }
6605 ac_preproc_ok=false
6606 for ac_c_preproc_warn_flag in '' yes
6607 do
6608 # Use a header file that comes with gcc, so configuring glibc
6609 # with a fresh cross-compiler works.
6610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6611 # <limits.h> exists even on freestanding compilers.
6612 # On the NeXT, cc -E runs the code through the compiler's parser,
6613 # not just through cpp. "Syntax error" is here to catch this case.
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616 #ifdef __STDC__
6617 # include <limits.h>
6618 #else
6619 # include <assert.h>
6620 #endif
6621 Syntax error
6622 _ACEOF
6623 if ac_fn_c_try_cpp "$LINENO"; then :
6624
6625 else
6626 # Broken: fails on valid input.
6627 continue
6628 fi
6629 rm -f conftest.err conftest.i conftest.$ac_ext
6630
6631 # OK, works on sane cases. Now check whether nonexistent headers
6632 # can be detected and how.
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 #include <ac_nonexistent.h>
6636 _ACEOF
6637 if ac_fn_c_try_cpp "$LINENO"; then :
6638 # Broken: success on invalid input.
6639 continue
6640 else
6641 # Passes both tests.
6642 ac_preproc_ok=:
6643 break
6644 fi
6645 rm -f conftest.err conftest.i conftest.$ac_ext
6646
6647 done
6648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6649 rm -f conftest.i conftest.err conftest.$ac_ext
6650 if $ac_preproc_ok; then :
6651
6652 else
6653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6655 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6656 See \`config.log' for more details" "$LINENO" 5; }
6657 fi
6658
6659 ac_ext=c
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6664
6665
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6667 $as_echo_n "checking for ANSI C header files... " >&6; }
6668 if ${ac_cv_header_stdc+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 #include <stdlib.h>
6674 #include <stdarg.h>
6675 #include <string.h>
6676 #include <float.h>
6677
6678 int
6679 main ()
6680 {
6681
6682 ;
6683 return 0;
6684 }
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 ac_cv_header_stdc=yes
6688 else
6689 ac_cv_header_stdc=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692
6693 if test $ac_cv_header_stdc = yes; then
6694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <string.h>
6698
6699 _ACEOF
6700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6701 $EGREP "memchr" >/dev/null 2>&1; then :
6702
6703 else
6704 ac_cv_header_stdc=no
6705 fi
6706 rm -f conftest*
6707
6708 fi
6709
6710 if test $ac_cv_header_stdc = yes; then
6711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6714 #include <stdlib.h>
6715
6716 _ACEOF
6717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6718 $EGREP "free" >/dev/null 2>&1; then :
6719
6720 else
6721 ac_cv_header_stdc=no
6722 fi
6723 rm -f conftest*
6724
6725 fi
6726
6727 if test $ac_cv_header_stdc = yes; then
6728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6729 if test "$cross_compiling" = yes; then :
6730 :
6731 else
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 #include <ctype.h>
6735 #include <stdlib.h>
6736 #if ((' ' & 0x0FF) == 0x020)
6737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6739 #else
6740 # define ISLOWER(c) \
6741 (('a' <= (c) && (c) <= 'i') \
6742 || ('j' <= (c) && (c) <= 'r') \
6743 || ('s' <= (c) && (c) <= 'z'))
6744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6745 #endif
6746
6747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6748 int
6749 main ()
6750 {
6751 int i;
6752 for (i = 0; i < 256; i++)
6753 if (XOR (islower (i), ISLOWER (i))
6754 || toupper (i) != TOUPPER (i))
6755 return 2;
6756 return 0;
6757 }
6758 _ACEOF
6759 if ac_fn_c_try_run "$LINENO"; then :
6760
6761 else
6762 ac_cv_header_stdc=no
6763 fi
6764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6765 conftest.$ac_objext conftest.beam conftest.$ac_ext
6766 fi
6767
6768 fi
6769 fi
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6771 $as_echo "$ac_cv_header_stdc" >&6; }
6772 if test $ac_cv_header_stdc = yes; then
6773
6774 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6775
6776 fi
6777
6778 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6779 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6780 inttypes.h stdint.h unistd.h
6781 do :
6782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6783 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6784 "
6785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6786 cat >>confdefs.h <<_ACEOF
6787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6788 _ACEOF
6789
6790 fi
6791
6792 done
6793
6794
6795 for ac_header in dlfcn.h
6796 do :
6797 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6798 "
6799 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6800 cat >>confdefs.h <<_ACEOF
6801 #define HAVE_DLFCN_H 1
6802 _ACEOF
6803
6804 fi
6805
6806 done
6807
6808
6809
6810
6811
6812 # Set options
6813 # Check whether --enable-static was given.
6814 if test "${enable_static+set}" = set; then :
6815 enableval=$enable_static; p=${PACKAGE-default}
6816 case $enableval in
6817 yes) enable_static=yes ;;
6818 no) enable_static=no ;;
6819 *)
6820 enable_static=no
6821 # Look at the argument we got. We use all the common list separators.
6822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6823 for pkg in $enableval; do
6824 IFS="$lt_save_ifs"
6825 if test "X$pkg" = "X$p"; then
6826 enable_static=yes
6827 fi
6828 done
6829 IFS="$lt_save_ifs"
6830 ;;
6831 esac
6832 else
6833 enable_static=no
6834 fi
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845 enable_dlopen=no
6846
6847
6848 enable_win32_dll=no
6849
6850
6851 # Check whether --enable-shared was given.
6852 if test "${enable_shared+set}" = set; then :
6853 enableval=$enable_shared; p=${PACKAGE-default}
6854 case $enableval in
6855 yes) enable_shared=yes ;;
6856 no) enable_shared=no ;;
6857 *)
6858 enable_shared=no
6859 # Look at the argument we got. We use all the common list separators.
6860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6861 for pkg in $enableval; do
6862 IFS="$lt_save_ifs"
6863 if test "X$pkg" = "X$p"; then
6864 enable_shared=yes
6865 fi
6866 done
6867 IFS="$lt_save_ifs"
6868 ;;
6869 esac
6870 else
6871 enable_shared=yes
6872 fi
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884 # Check whether --with-pic was given.
6885 if test "${with_pic+set}" = set; then :
6886 withval=$with_pic; pic_mode="$withval"
6887 else
6888 pic_mode=default
6889 fi
6890
6891
6892 test -z "$pic_mode" && pic_mode=default
6893
6894
6895
6896
6897
6898
6899
6900 # Check whether --enable-fast-install was given.
6901 if test "${enable_fast_install+set}" = set; then :
6902 enableval=$enable_fast_install; p=${PACKAGE-default}
6903 case $enableval in
6904 yes) enable_fast_install=yes ;;
6905 no) enable_fast_install=no ;;
6906 *)
6907 enable_fast_install=no
6908 # Look at the argument we got. We use all the common list separators.
6909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6910 for pkg in $enableval; do
6911 IFS="$lt_save_ifs"
6912 if test "X$pkg" = "X$p"; then
6913 enable_fast_install=yes
6914 fi
6915 done
6916 IFS="$lt_save_ifs"
6917 ;;
6918 esac
6919 else
6920 enable_fast_install=yes
6921 fi
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933 # This can be used to rebuild libtool when needed
6934 LIBTOOL_DEPS="$ltmain"
6935
6936 # Always use our own libtool.
6937 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964 test -z "$LN_S" && LN_S="ln -s"
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979 if test -n "${ZSH_VERSION+set}" ; then
6980 setopt NO_GLOB_SUBST
6981 fi
6982
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6984 $as_echo_n "checking for objdir... " >&6; }
6985 if ${lt_cv_objdir+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 rm -f .libs 2>/dev/null
6989 mkdir .libs 2>/dev/null
6990 if test -d .libs; then
6991 lt_cv_objdir=.libs
6992 else
6993 # MS-DOS does not allow filenames that begin with a dot.
6994 lt_cv_objdir=_libs
6995 fi
6996 rmdir .libs 2>/dev/null
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6999 $as_echo "$lt_cv_objdir" >&6; }
7000 objdir=$lt_cv_objdir
7001
7002
7003
7004
7005
7006 cat >>confdefs.h <<_ACEOF
7007 #define LT_OBJDIR "$lt_cv_objdir/"
7008 _ACEOF
7009
7010
7011
7012
7013 case $host_os in
7014 aix3*)
7015 # AIX sometimes has problems with the GCC collect2 program. For some
7016 # reason, if we set the COLLECT_NAMES environment variable, the problems
7017 # vanish in a puff of smoke.
7018 if test "X${COLLECT_NAMES+set}" != Xset; then
7019 COLLECT_NAMES=
7020 export COLLECT_NAMES
7021 fi
7022 ;;
7023 esac
7024
7025 # Global variables:
7026 ofile=libtool
7027 can_build_shared=yes
7028
7029 # All known linkers require a `.a' archive for static linking (except MSVC,
7030 # which needs '.lib').
7031 libext=a
7032
7033 with_gnu_ld="$lt_cv_prog_gnu_ld"
7034
7035 old_CC="$CC"
7036 old_CFLAGS="$CFLAGS"
7037
7038 # Set sane defaults for various variables
7039 test -z "$CC" && CC=cc
7040 test -z "$LTCC" && LTCC=$CC
7041 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7042 test -z "$LD" && LD=ld
7043 test -z "$ac_objext" && ac_objext=o
7044
7045 for cc_temp in $compiler""; do
7046 case $cc_temp in
7047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7049 \-*) ;;
7050 *) break;;
7051 esac
7052 done
7053 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7054
7055
7056 # Only perform the check for file, if the check method requires it
7057 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7058 case $deplibs_check_method in
7059 file_magic*)
7060 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7062 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7063 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 case $MAGIC_CMD in
7067 [\\/*] | ?:[\\/]*)
7068 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7069 ;;
7070 *)
7071 lt_save_MAGIC_CMD="$MAGIC_CMD"
7072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7073 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7074 for ac_dir in $ac_dummy; do
7075 IFS="$lt_save_ifs"
7076 test -z "$ac_dir" && ac_dir=.
7077 if test -f $ac_dir/${ac_tool_prefix}file; then
7078 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7079 if test -n "$file_magic_test_file"; then
7080 case $deplibs_check_method in
7081 "file_magic "*)
7082 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7084 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7085 $EGREP "$file_magic_regex" > /dev/null; then
7086 :
7087 else
7088 cat <<_LT_EOF 1>&2
7089
7090 *** Warning: the command libtool uses to detect shared libraries,
7091 *** $file_magic_cmd, produces output that libtool cannot recognize.
7092 *** The result is that libtool may fail to recognize shared libraries
7093 *** as such. This will affect the creation of libtool libraries that
7094 *** depend on shared libraries, but programs linked with such libtool
7095 *** libraries will work regardless of this problem. Nevertheless, you
7096 *** may want to report the problem to your system manager and/or to
7097 *** bug-libtool@gnu.org
7098
7099 _LT_EOF
7100 fi ;;
7101 esac
7102 fi
7103 break
7104 fi
7105 done
7106 IFS="$lt_save_ifs"
7107 MAGIC_CMD="$lt_save_MAGIC_CMD"
7108 ;;
7109 esac
7110 fi
7111
7112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7113 if test -n "$MAGIC_CMD"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7115 $as_echo "$MAGIC_CMD" >&6; }
7116 else
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7119 fi
7120
7121
7122
7123
7124
7125 if test -z "$lt_cv_path_MAGIC_CMD"; then
7126 if test -n "$ac_tool_prefix"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7128 $as_echo_n "checking for file... " >&6; }
7129 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 case $MAGIC_CMD in
7133 [\\/*] | ?:[\\/]*)
7134 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 lt_save_MAGIC_CMD="$MAGIC_CMD"
7138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7139 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7140 for ac_dir in $ac_dummy; do
7141 IFS="$lt_save_ifs"
7142 test -z "$ac_dir" && ac_dir=.
7143 if test -f $ac_dir/file; then
7144 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7145 if test -n "$file_magic_test_file"; then
7146 case $deplibs_check_method in
7147 "file_magic "*)
7148 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7150 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7151 $EGREP "$file_magic_regex" > /dev/null; then
7152 :
7153 else
7154 cat <<_LT_EOF 1>&2
7155
7156 *** Warning: the command libtool uses to detect shared libraries,
7157 *** $file_magic_cmd, produces output that libtool cannot recognize.
7158 *** The result is that libtool may fail to recognize shared libraries
7159 *** as such. This will affect the creation of libtool libraries that
7160 *** depend on shared libraries, but programs linked with such libtool
7161 *** libraries will work regardless of this problem. Nevertheless, you
7162 *** may want to report the problem to your system manager and/or to
7163 *** bug-libtool@gnu.org
7164
7165 _LT_EOF
7166 fi ;;
7167 esac
7168 fi
7169 break
7170 fi
7171 done
7172 IFS="$lt_save_ifs"
7173 MAGIC_CMD="$lt_save_MAGIC_CMD"
7174 ;;
7175 esac
7176 fi
7177
7178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7179 if test -n "$MAGIC_CMD"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7181 $as_echo "$MAGIC_CMD" >&6; }
7182 else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188 else
7189 MAGIC_CMD=:
7190 fi
7191 fi
7192
7193 fi
7194 ;;
7195 esac
7196
7197 # Use C for the default configuration in the libtool script
7198
7199 lt_save_CC="$CC"
7200 ac_ext=c
7201 ac_cpp='$CPP $CPPFLAGS'
7202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7205
7206
7207 # Source file extension for C test sources.
7208 ac_ext=c
7209
7210 # Object file extension for compiled C test sources.
7211 objext=o
7212 objext=$objext
7213
7214 # Code to be used in simple compile tests
7215 lt_simple_compile_test_code="int some_variable = 0;"
7216
7217 # Code to be used in simple link tests
7218 lt_simple_link_test_code='int main(){return(0);}'
7219
7220
7221
7222
7223
7224
7225
7226 # If no C compiler was specified, use CC.
7227 LTCC=${LTCC-"$CC"}
7228
7229 # If no C compiler flags were specified, use CFLAGS.
7230 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7231
7232 # Allow CC to be a program name with arguments.
7233 compiler=$CC
7234
7235 # Save the default compiler, since it gets overwritten when the other
7236 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7237 compiler_DEFAULT=$CC
7238
7239 # save warnings/boilerplate of simple test code
7240 ac_outfile=conftest.$ac_objext
7241 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7243 _lt_compiler_boilerplate=`cat conftest.err`
7244 $RM conftest*
7245
7246 ac_outfile=conftest.$ac_objext
7247 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7249 _lt_linker_boilerplate=`cat conftest.err`
7250 $RM -r conftest*
7251
7252
7253 if test -n "$compiler"; then
7254
7255 lt_prog_compiler_no_builtin_flag=
7256
7257 if test "$GCC" = yes; then
7258 case $cc_basename in
7259 nvcc*)
7260 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7261 *)
7262 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7263 esac
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7266 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7267 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 lt_cv_prog_compiler_rtti_exceptions=no
7271 ac_outfile=conftest.$ac_objext
7272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7273 lt_compiler_flag="-fno-rtti -fno-exceptions"
7274 # Insert the option either (1) after the last *FLAGS variable, or
7275 # (2) before a word containing "conftest.", or (3) at the end.
7276 # Note that $ac_compile itself does not contain backslashes and begins
7277 # with a dollar sign (not a hyphen), so the echo should work correctly.
7278 # The option is referenced via a variable to avoid confusing sed.
7279 lt_compile=`echo "$ac_compile" | $SED \
7280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7282 -e 's:$: $lt_compiler_flag:'`
7283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7284 (eval "$lt_compile" 2>conftest.err)
7285 ac_status=$?
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 if (exit $ac_status) && test -s "$ac_outfile"; then
7289 # The compiler can only warn and ignore the option if not recognized
7290 # So say no if there are warnings other than the usual output.
7291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7294 lt_cv_prog_compiler_rtti_exceptions=yes
7295 fi
7296 fi
7297 $RM conftest*
7298
7299 fi
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7301 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7302
7303 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7304 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7305 else
7306 :
7307 fi
7308
7309 fi
7310
7311
7312
7313
7314
7315
7316 lt_prog_compiler_wl=
7317 lt_prog_compiler_pic=
7318 lt_prog_compiler_static=
7319
7320
7321 if test "$GCC" = yes; then
7322 lt_prog_compiler_wl='-Wl,'
7323 lt_prog_compiler_static='-static'
7324
7325 case $host_os in
7326 aix*)
7327 # All AIX code is PIC.
7328 if test "$host_cpu" = ia64; then
7329 # AIX 5 now supports IA64 processor
7330 lt_prog_compiler_static='-Bstatic'
7331 fi
7332 ;;
7333
7334 amigaos*)
7335 case $host_cpu in
7336 powerpc)
7337 # see comment about AmigaOS4 .so support
7338 lt_prog_compiler_pic='-fPIC'
7339 ;;
7340 m68k)
7341 # FIXME: we need at least 68020 code to build shared libraries, but
7342 # adding the `-m68020' flag to GCC prevents building anything better,
7343 # like `-m68040'.
7344 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7345 ;;
7346 esac
7347 ;;
7348
7349 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7350 # PIC is the default for these OSes.
7351 ;;
7352
7353 mingw* | cygwin* | pw32* | os2* | cegcc*)
7354 # This hack is so that the source file can tell whether it is being
7355 # built for inclusion in a dll (and should export symbols for example).
7356 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7357 # (--disable-auto-import) libraries
7358 lt_prog_compiler_pic='-DDLL_EXPORT'
7359 ;;
7360
7361 darwin* | rhapsody*)
7362 # PIC is the default on this platform
7363 # Common symbols not allowed in MH_DYLIB files
7364 lt_prog_compiler_pic='-fno-common'
7365 ;;
7366
7367 haiku*)
7368 # PIC is the default for Haiku.
7369 # The "-static" flag exists, but is broken.
7370 lt_prog_compiler_static=
7371 ;;
7372
7373 hpux*)
7374 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7375 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7376 # sets the default TLS model and affects inlining.
7377 case $host_cpu in
7378 hppa*64*)
7379 # +Z the default
7380 ;;
7381 *)
7382 lt_prog_compiler_pic='-fPIC'
7383 ;;
7384 esac
7385 ;;
7386
7387 interix[3-9]*)
7388 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7389 # Instead, we relocate shared libraries at runtime.
7390 ;;
7391
7392 msdosdjgpp*)
7393 # Just because we use GCC doesn't mean we suddenly get shared libraries
7394 # on systems that don't support them.
7395 lt_prog_compiler_can_build_shared=no
7396 enable_shared=no
7397 ;;
7398
7399 *nto* | *qnx*)
7400 # QNX uses GNU C++, but need to define -shared option too, otherwise
7401 # it will coredump.
7402 lt_prog_compiler_pic='-fPIC -shared'
7403 ;;
7404
7405 sysv4*MP*)
7406 if test -d /usr/nec; then
7407 lt_prog_compiler_pic=-Kconform_pic
7408 fi
7409 ;;
7410
7411 *)
7412 lt_prog_compiler_pic='-fPIC'
7413 ;;
7414 esac
7415
7416 case $cc_basename in
7417 nvcc*) # Cuda Compiler Driver 2.2
7418 lt_prog_compiler_wl='-Xlinker '
7419 lt_prog_compiler_pic='-Xcompiler -fPIC'
7420 ;;
7421 esac
7422 else
7423 # PORTME Check for flag to pass linker flags through the system compiler.
7424 case $host_os in
7425 aix*)
7426 lt_prog_compiler_wl='-Wl,'
7427 if test "$host_cpu" = ia64; then
7428 # AIX 5 now supports IA64 processor
7429 lt_prog_compiler_static='-Bstatic'
7430 else
7431 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7432 fi
7433 ;;
7434
7435 mingw* | cygwin* | pw32* | os2* | cegcc*)
7436 # This hack is so that the source file can tell whether it is being
7437 # built for inclusion in a dll (and should export symbols for example).
7438 lt_prog_compiler_pic='-DDLL_EXPORT'
7439 ;;
7440
7441 hpux9* | hpux10* | hpux11*)
7442 lt_prog_compiler_wl='-Wl,'
7443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7444 # not for PA HP-UX.
7445 case $host_cpu in
7446 hppa*64*|ia64*)
7447 # +Z the default
7448 ;;
7449 *)
7450 lt_prog_compiler_pic='+Z'
7451 ;;
7452 esac
7453 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7454 lt_prog_compiler_static='${wl}-a ${wl}archive'
7455 ;;
7456
7457 irix5* | irix6* | nonstopux*)
7458 lt_prog_compiler_wl='-Wl,'
7459 # PIC (with -KPIC) is the default.
7460 lt_prog_compiler_static='-non_shared'
7461 ;;
7462
7463 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7464 case $cc_basename in
7465 # old Intel for x86_64 which still supported -KPIC.
7466 ecc*)
7467 lt_prog_compiler_wl='-Wl,'
7468 lt_prog_compiler_pic='-KPIC'
7469 lt_prog_compiler_static='-static'
7470 ;;
7471 # icc used to be incompatible with GCC.
7472 # ICC 10 doesn't accept -KPIC any more.
7473 icc* | ifort*)
7474 lt_prog_compiler_wl='-Wl,'
7475 lt_prog_compiler_pic='-fPIC'
7476 lt_prog_compiler_static='-static'
7477 ;;
7478 # Lahey Fortran 8.1.
7479 lf95*)
7480 lt_prog_compiler_wl='-Wl,'
7481 lt_prog_compiler_pic='--shared'
7482 lt_prog_compiler_static='--static'
7483 ;;
7484 nagfor*)
7485 # NAG Fortran compiler
7486 lt_prog_compiler_wl='-Wl,-Wl,,'
7487 lt_prog_compiler_pic='-PIC'
7488 lt_prog_compiler_static='-Bstatic'
7489 ;;
7490 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7491 # Portland Group compilers (*not* the Pentium gcc compiler,
7492 # which looks to be a dead project)
7493 lt_prog_compiler_wl='-Wl,'
7494 lt_prog_compiler_pic='-fpic'
7495 lt_prog_compiler_static='-Bstatic'
7496 ;;
7497 ccc*)
7498 lt_prog_compiler_wl='-Wl,'
7499 # All Alpha code is PIC.
7500 lt_prog_compiler_static='-non_shared'
7501 ;;
7502 xl* | bgxl* | bgf* | mpixl*)
7503 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7504 lt_prog_compiler_wl='-Wl,'
7505 lt_prog_compiler_pic='-qpic'
7506 lt_prog_compiler_static='-qstaticlink'
7507 ;;
7508 *)
7509 case `$CC -V 2>&1 | sed 5q` in
7510 *Sun\ F* | *Sun*Fortran*)
7511 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7512 lt_prog_compiler_pic='-KPIC'
7513 lt_prog_compiler_static='-Bstatic'
7514 lt_prog_compiler_wl=''
7515 ;;
7516 *Sun\ C*)
7517 # Sun C 5.9
7518 lt_prog_compiler_pic='-KPIC'
7519 lt_prog_compiler_static='-Bstatic'
7520 lt_prog_compiler_wl='-Wl,'
7521 ;;
7522 esac
7523 ;;
7524 esac
7525 ;;
7526
7527 newsos6)
7528 lt_prog_compiler_pic='-KPIC'
7529 lt_prog_compiler_static='-Bstatic'
7530 ;;
7531
7532 *nto* | *qnx*)
7533 # QNX uses GNU C++, but need to define -shared option too, otherwise
7534 # it will coredump.
7535 lt_prog_compiler_pic='-fPIC -shared'
7536 ;;
7537
7538 osf3* | osf4* | osf5*)
7539 lt_prog_compiler_wl='-Wl,'
7540 # All OSF/1 code is PIC.
7541 lt_prog_compiler_static='-non_shared'
7542 ;;
7543
7544 rdos*)
7545 lt_prog_compiler_static='-non_shared'
7546 ;;
7547
7548 solaris*)
7549 lt_prog_compiler_pic='-KPIC'
7550 lt_prog_compiler_static='-Bstatic'
7551 case $cc_basename in
7552 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7553 lt_prog_compiler_wl='-Qoption ld ';;
7554 *)
7555 lt_prog_compiler_wl='-Wl,';;
7556 esac
7557 ;;
7558
7559 sunos4*)
7560 lt_prog_compiler_wl='-Qoption ld '
7561 lt_prog_compiler_pic='-PIC'
7562 lt_prog_compiler_static='-Bstatic'
7563 ;;
7564
7565 sysv4 | sysv4.2uw2* | sysv4.3*)
7566 lt_prog_compiler_wl='-Wl,'
7567 lt_prog_compiler_pic='-KPIC'
7568 lt_prog_compiler_static='-Bstatic'
7569 ;;
7570
7571 sysv4*MP*)
7572 if test -d /usr/nec ;then
7573 lt_prog_compiler_pic='-Kconform_pic'
7574 lt_prog_compiler_static='-Bstatic'
7575 fi
7576 ;;
7577
7578 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7579 lt_prog_compiler_wl='-Wl,'
7580 lt_prog_compiler_pic='-KPIC'
7581 lt_prog_compiler_static='-Bstatic'
7582 ;;
7583
7584 unicos*)
7585 lt_prog_compiler_wl='-Wl,'
7586 lt_prog_compiler_can_build_shared=no
7587 ;;
7588
7589 uts4*)
7590 lt_prog_compiler_pic='-pic'
7591 lt_prog_compiler_static='-Bstatic'
7592 ;;
7593
7594 *)
7595 lt_prog_compiler_can_build_shared=no
7596 ;;
7597 esac
7598 fi
7599
7600 case $host_os in
7601 # For platforms which do not support PIC, -DPIC is meaningless:
7602 *djgpp*)
7603 lt_prog_compiler_pic=
7604 ;;
7605 *)
7606 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7607 ;;
7608 esac
7609
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7611 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7612 if ${lt_cv_prog_compiler_pic+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7616 fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7618 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7619 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7620
7621 #
7622 # Check to make sure the PIC flag actually works.
7623 #
7624 if test -n "$lt_prog_compiler_pic"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7626 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7627 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 lt_cv_prog_compiler_pic_works=no
7631 ac_outfile=conftest.$ac_objext
7632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7633 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7634 # Insert the option either (1) after the last *FLAGS variable, or
7635 # (2) before a word containing "conftest.", or (3) at the end.
7636 # Note that $ac_compile itself does not contain backslashes and begins
7637 # with a dollar sign (not a hyphen), so the echo should work correctly.
7638 # The option is referenced via a variable to avoid confusing sed.
7639 lt_compile=`echo "$ac_compile" | $SED \
7640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7642 -e 's:$: $lt_compiler_flag:'`
7643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7644 (eval "$lt_compile" 2>conftest.err)
7645 ac_status=$?
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 if (exit $ac_status) && test -s "$ac_outfile"; then
7649 # The compiler can only warn and ignore the option if not recognized
7650 # So say no if there are warnings other than the usual output.
7651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7654 lt_cv_prog_compiler_pic_works=yes
7655 fi
7656 fi
7657 $RM conftest*
7658
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7661 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7662
7663 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7664 case $lt_prog_compiler_pic in
7665 "" | " "*) ;;
7666 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7667 esac
7668 else
7669 lt_prog_compiler_pic=
7670 lt_prog_compiler_can_build_shared=no
7671 fi
7672
7673 fi
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685 #
7686 # Check to make sure the static flag actually works.
7687 #
7688 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7690 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7691 if ${lt_cv_prog_compiler_static_works+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 lt_cv_prog_compiler_static_works=no
7695 save_LDFLAGS="$LDFLAGS"
7696 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7697 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7698 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7699 # The linker can only warn and ignore the option if not recognized
7700 # So say no if there are warnings
7701 if test -s conftest.err; then
7702 # Append any errors to the config.log.
7703 cat conftest.err 1>&5
7704 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7706 if diff conftest.exp conftest.er2 >/dev/null; then
7707 lt_cv_prog_compiler_static_works=yes
7708 fi
7709 else
7710 lt_cv_prog_compiler_static_works=yes
7711 fi
7712 fi
7713 $RM -r conftest*
7714 LDFLAGS="$save_LDFLAGS"
7715
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7718 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7719
7720 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7721 :
7722 else
7723 lt_prog_compiler_static=
7724 fi
7725
7726
7727
7728
7729
7730
7731
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7733 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7734 if ${lt_cv_prog_compiler_c_o+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 lt_cv_prog_compiler_c_o=no
7738 $RM -r conftest 2>/dev/null
7739 mkdir conftest
7740 cd conftest
7741 mkdir out
7742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7743
7744 lt_compiler_flag="-o out/conftest2.$ac_objext"
7745 # Insert the option either (1) after the last *FLAGS variable, or
7746 # (2) before a word containing "conftest.", or (3) at the end.
7747 # Note that $ac_compile itself does not contain backslashes and begins
7748 # with a dollar sign (not a hyphen), so the echo should work correctly.
7749 lt_compile=`echo "$ac_compile" | $SED \
7750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7752 -e 's:$: $lt_compiler_flag:'`
7753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7754 (eval "$lt_compile" 2>out/conftest.err)
7755 ac_status=$?
7756 cat out/conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7759 then
7760 # The compiler can only warn and ignore the option if not recognized
7761 # So say no if there are warnings
7762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7765 lt_cv_prog_compiler_c_o=yes
7766 fi
7767 fi
7768 chmod u+w . 2>&5
7769 $RM conftest*
7770 # SGI C++ compiler will create directory out/ii_files/ for
7771 # template instantiation
7772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7773 $RM out/* && rmdir out
7774 cd ..
7775 $RM -r conftest
7776 $RM conftest*
7777
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7780 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7781
7782
7783
7784
7785
7786
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7788 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7789 if ${lt_cv_prog_compiler_c_o+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 lt_cv_prog_compiler_c_o=no
7793 $RM -r conftest 2>/dev/null
7794 mkdir conftest
7795 cd conftest
7796 mkdir out
7797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7798
7799 lt_compiler_flag="-o out/conftest2.$ac_objext"
7800 # Insert the option either (1) after the last *FLAGS variable, or
7801 # (2) before a word containing "conftest.", or (3) at the end.
7802 # Note that $ac_compile itself does not contain backslashes and begins
7803 # with a dollar sign (not a hyphen), so the echo should work correctly.
7804 lt_compile=`echo "$ac_compile" | $SED \
7805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7807 -e 's:$: $lt_compiler_flag:'`
7808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7809 (eval "$lt_compile" 2>out/conftest.err)
7810 ac_status=$?
7811 cat out/conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7814 then
7815 # The compiler can only warn and ignore the option if not recognized
7816 # So say no if there are warnings
7817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7820 lt_cv_prog_compiler_c_o=yes
7821 fi
7822 fi
7823 chmod u+w . 2>&5
7824 $RM conftest*
7825 # SGI C++ compiler will create directory out/ii_files/ for
7826 # template instantiation
7827 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7828 $RM out/* && rmdir out
7829 cd ..
7830 $RM -r conftest
7831 $RM conftest*
7832
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7835 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7836
7837
7838
7839
7840 hard_links="nottested"
7841 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7842 # do not overwrite the value of need_locks provided by the user
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7844 $as_echo_n "checking if we can lock with hard links... " >&6; }
7845 hard_links=yes
7846 $RM conftest*
7847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7848 touch conftest.a
7849 ln conftest.a conftest.b 2>&5 || hard_links=no
7850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7852 $as_echo "$hard_links" >&6; }
7853 if test "$hard_links" = no; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7855 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7856 need_locks=warn
7857 fi
7858 else
7859 need_locks=no
7860 fi
7861
7862
7863
7864
7865
7866
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7868 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7869
7870 runpath_var=
7871 allow_undefined_flag=
7872 always_export_symbols=no
7873 archive_cmds=
7874 archive_expsym_cmds=
7875 compiler_needs_object=no
7876 enable_shared_with_static_runtimes=no
7877 export_dynamic_flag_spec=
7878 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7879 hardcode_automatic=no
7880 hardcode_direct=no
7881 hardcode_direct_absolute=no
7882 hardcode_libdir_flag_spec=
7883 hardcode_libdir_flag_spec_ld=
7884 hardcode_libdir_separator=
7885 hardcode_minus_L=no
7886 hardcode_shlibpath_var=unsupported
7887 inherit_rpath=no
7888 link_all_deplibs=unknown
7889 module_cmds=
7890 module_expsym_cmds=
7891 old_archive_from_new_cmds=
7892 old_archive_from_expsyms_cmds=
7893 thread_safe_flag_spec=
7894 whole_archive_flag_spec=
7895 # include_expsyms should be a list of space-separated symbols to be *always*
7896 # included in the symbol list
7897 include_expsyms=
7898 # exclude_expsyms can be an extended regexp of symbols to exclude
7899 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7900 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7901 # as well as any symbol that contains `d'.
7902 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7903 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7904 # platforms (ab)use it in PIC code, but their linkers get confused if
7905 # the symbol is explicitly referenced. Since portable code cannot
7906 # rely on this symbol name, it's probably fine to never include it in
7907 # preloaded symbol tables.
7908 # Exclude shared library initialization/finalization symbols.
7909 extract_expsyms_cmds=
7910
7911 case $host_os in
7912 cygwin* | mingw* | pw32* | cegcc*)
7913 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7914 # When not using gcc, we currently assume that we are using
7915 # Microsoft Visual C++.
7916 if test "$GCC" != yes; then
7917 with_gnu_ld=no
7918 fi
7919 ;;
7920 interix*)
7921 # we just hope/assume this is gcc and not c89 (= MSVC++)
7922 with_gnu_ld=yes
7923 ;;
7924 openbsd*)
7925 with_gnu_ld=no
7926 ;;
7927 linux* | k*bsd*-gnu | gnu*)
7928 link_all_deplibs=no
7929 ;;
7930 esac
7931
7932 ld_shlibs=yes
7933
7934 # On some targets, GNU ld is compatible enough with the native linker
7935 # that we're better off using the native interface for both.
7936 lt_use_gnu_ld_interface=no
7937 if test "$with_gnu_ld" = yes; then
7938 case $host_os in
7939 aix*)
7940 # The AIX port of GNU ld has always aspired to compatibility
7941 # with the native linker. However, as the warning in the GNU ld
7942 # block says, versions before 2.19.5* couldn't really create working
7943 # shared libraries, regardless of the interface used.
7944 case `$LD -v 2>&1` in
7945 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7946 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7947 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7948 *)
7949 lt_use_gnu_ld_interface=yes
7950 ;;
7951 esac
7952 ;;
7953 *)
7954 lt_use_gnu_ld_interface=yes
7955 ;;
7956 esac
7957 fi
7958
7959 if test "$lt_use_gnu_ld_interface" = yes; then
7960 # If archive_cmds runs LD, not CC, wlarc should be empty
7961 wlarc='${wl}'
7962
7963 # Set some defaults for GNU ld with shared library support. These
7964 # are reset later if shared libraries are not supported. Putting them
7965 # here allows them to be overridden if necessary.
7966 runpath_var=LD_RUN_PATH
7967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7968 export_dynamic_flag_spec='${wl}--export-dynamic'
7969 # ancient GNU ld didn't support --whole-archive et. al.
7970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7972 else
7973 whole_archive_flag_spec=
7974 fi
7975 supports_anon_versioning=no
7976 case `$LD -v 2>&1` in
7977 *GNU\ gold*) supports_anon_versioning=yes ;;
7978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7981 *\ 2.11.*) ;; # other 2.11 versions
7982 *) supports_anon_versioning=yes ;;
7983 esac
7984
7985 # See if GNU ld supports shared libraries.
7986 case $host_os in
7987 aix[3-9]*)
7988 # On AIX/PPC, the GNU linker is very broken
7989 if test "$host_cpu" != ia64; then
7990 ld_shlibs=no
7991 cat <<_LT_EOF 1>&2
7992
7993 *** Warning: the GNU linker, at least up to release 2.19, is reported
7994 *** to be unable to reliably create shared libraries on AIX.
7995 *** Therefore, libtool is disabling shared libraries support. If you
7996 *** really care for shared libraries, you may want to install binutils
7997 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7998 *** You will then need to restart the configuration process.
7999
8000 _LT_EOF
8001 fi
8002 ;;
8003
8004 amigaos*)
8005 case $host_cpu in
8006 powerpc)
8007 # see comment about AmigaOS4 .so support
8008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009 archive_expsym_cmds=''
8010 ;;
8011 m68k)
8012 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)'
8013 hardcode_libdir_flag_spec='-L$libdir'
8014 hardcode_minus_L=yes
8015 ;;
8016 esac
8017 ;;
8018
8019 beos*)
8020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8021 allow_undefined_flag=unsupported
8022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8023 # support --undefined. This deserves some investigation. FIXME
8024 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8025 else
8026 ld_shlibs=no
8027 fi
8028 ;;
8029
8030 cygwin* | mingw* | pw32* | cegcc*)
8031 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8032 # as there is no search path for DLLs.
8033 hardcode_libdir_flag_spec='-L$libdir'
8034 export_dynamic_flag_spec='${wl}--export-all-symbols'
8035 allow_undefined_flag=unsupported
8036 always_export_symbols=no
8037 enable_shared_with_static_runtimes=yes
8038 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'
8039 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8040
8041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8043 # If the export-symbols file already is a .def file (1st line
8044 # is EXPORTS), use it as is; otherwise, prepend...
8045 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8046 cp $export_symbols $output_objdir/$soname.def;
8047 else
8048 echo EXPORTS > $output_objdir/$soname.def;
8049 cat $export_symbols >> $output_objdir/$soname.def;
8050 fi~
8051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8052 else
8053 ld_shlibs=no
8054 fi
8055 ;;
8056
8057 haiku*)
8058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059 link_all_deplibs=yes
8060 ;;
8061
8062 interix[3-9]*)
8063 hardcode_direct=no
8064 hardcode_shlibpath_var=no
8065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8066 export_dynamic_flag_spec='${wl}-E'
8067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8068 # Instead, shared libraries are loaded at an image base (0x10000000 by
8069 # default) and relocated if they conflict, which is a slow very memory
8070 # consuming and fragmenting process. To avoid this, we pick a random,
8071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8074 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'
8075 ;;
8076
8077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8078 tmp_diet=no
8079 if test "$host_os" = linux-dietlibc; then
8080 case $cc_basename in
8081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8082 esac
8083 fi
8084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8085 && test "$tmp_diet" = no
8086 then
8087 tmp_addflag=' $pic_flag'
8088 tmp_sharedflag='-shared'
8089 case $cc_basename,$host_cpu in
8090 pgcc*) # Portland Group C compiler
8091 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'
8092 tmp_addflag=' $pic_flag'
8093 ;;
8094 pgf77* | pgf90* | pgf95* | pgfortran*)
8095 # Portland Group f77 and f90 compilers
8096 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'
8097 tmp_addflag=' $pic_flag -Mnomain' ;;
8098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8099 tmp_addflag=' -i_dynamic' ;;
8100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8101 tmp_addflag=' -i_dynamic -nofor_main' ;;
8102 ifc* | ifort*) # Intel Fortran compiler
8103 tmp_addflag=' -nofor_main' ;;
8104 lf95*) # Lahey Fortran 8.1
8105 whole_archive_flag_spec=
8106 tmp_sharedflag='--shared' ;;
8107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8108 tmp_sharedflag='-qmkshrobj'
8109 tmp_addflag= ;;
8110 nvcc*) # Cuda Compiler Driver 2.2
8111 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'
8112 compiler_needs_object=yes
8113 ;;
8114 esac
8115 case `$CC -V 2>&1 | sed 5q` in
8116 *Sun\ C*) # Sun C 5.9
8117 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'
8118 compiler_needs_object=yes
8119 tmp_sharedflag='-G' ;;
8120 *Sun\ F*) # Sun Fortran 8.3
8121 tmp_sharedflag='-G' ;;
8122 esac
8123 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8124
8125 if test "x$supports_anon_versioning" = xyes; then
8126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8128 echo "local: *; };" >> $output_objdir/$libname.ver~
8129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8130 fi
8131
8132 case $cc_basename in
8133 xlf* | bgf* | bgxlf* | mpixlf*)
8134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8135 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8136 hardcode_libdir_flag_spec=
8137 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8138 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8139 if test "x$supports_anon_versioning" = xyes; then
8140 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8142 echo "local: *; };" >> $output_objdir/$libname.ver~
8143 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8144 fi
8145 ;;
8146 esac
8147 else
8148 ld_shlibs=no
8149 fi
8150 ;;
8151
8152 netbsd* | netbsdelf*-gnu)
8153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8154 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8155 wlarc=
8156 else
8157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8158 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8159 fi
8160 ;;
8161
8162 solaris*)
8163 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8164 ld_shlibs=no
8165 cat <<_LT_EOF 1>&2
8166
8167 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8168 *** create shared libraries on Solaris systems. Therefore, libtool
8169 *** is disabling shared libraries support. We urge you to upgrade GNU
8170 *** binutils to release 2.9.1 or newer. Another option is to modify
8171 *** your PATH or compiler configuration so that the native linker is
8172 *** used, and then restart.
8173
8174 _LT_EOF
8175 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8178 else
8179 ld_shlibs=no
8180 fi
8181 ;;
8182
8183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8184 case `$LD -v 2>&1` in
8185 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8186 ld_shlibs=no
8187 cat <<_LT_EOF 1>&2
8188
8189 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8190 *** reliably create shared libraries on SCO systems. Therefore, libtool
8191 *** is disabling shared libraries support. We urge you to upgrade GNU
8192 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8193 *** your PATH or compiler configuration so that the native linker is
8194 *** used, and then restart.
8195
8196 _LT_EOF
8197 ;;
8198 *)
8199 # For security reasons, it is highly recommended that you always
8200 # use absolute paths for naming shared libraries, and exclude the
8201 # DT_RUNPATH tag from executables and libraries. But doing so
8202 # requires that you compile everything twice, which is a pain.
8203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8207 else
8208 ld_shlibs=no
8209 fi
8210 ;;
8211 esac
8212 ;;
8213
8214 sunos4*)
8215 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8216 wlarc=
8217 hardcode_direct=yes
8218 hardcode_shlibpath_var=no
8219 ;;
8220
8221 *)
8222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8223 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8225 else
8226 ld_shlibs=no
8227 fi
8228 ;;
8229 esac
8230
8231 if test "$ld_shlibs" = no; then
8232 runpath_var=
8233 hardcode_libdir_flag_spec=
8234 export_dynamic_flag_spec=
8235 whole_archive_flag_spec=
8236 fi
8237 else
8238 # PORTME fill in a description of your system's linker (not GNU ld)
8239 case $host_os in
8240 aix3*)
8241 allow_undefined_flag=unsupported
8242 always_export_symbols=yes
8243 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'
8244 # Note: this linker hardcodes the directories in LIBPATH if there
8245 # are no directories specified by -L.
8246 hardcode_minus_L=yes
8247 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8248 # Neither direct hardcoding nor static linking is supported with a
8249 # broken collect2.
8250 hardcode_direct=unsupported
8251 fi
8252 ;;
8253
8254 aix[4-9]*)
8255 if test "$host_cpu" = ia64; then
8256 # On IA64, the linker does run time linking by default, so we don't
8257 # have to do anything special.
8258 aix_use_runtimelinking=no
8259 exp_sym_flag='-Bexport'
8260 no_entry_flag=""
8261 else
8262 # If we're using GNU nm, then we don't want the "-C" option.
8263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8264 # Also, AIX nm treats weak defined symbols like other global
8265 # defined symbols, whereas GNU nm marks them as "W".
8266 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8267 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'
8268 else
8269 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'
8270 fi
8271 aix_use_runtimelinking=no
8272
8273 # Test if we are trying to use run time linking or normal
8274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8275 # need to do runtime linking.
8276 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8277 for ld_flag in $LDFLAGS; do
8278 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8279 aix_use_runtimelinking=yes
8280 break
8281 fi
8282 done
8283 ;;
8284 esac
8285
8286 exp_sym_flag='-bexport'
8287 no_entry_flag='-bnoentry'
8288 fi
8289
8290 # When large executables or shared objects are built, AIX ld can
8291 # have problems creating the table of contents. If linking a library
8292 # or program results in "error TOC overflow" add -mminimal-toc to
8293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8295
8296 archive_cmds=''
8297 hardcode_direct=yes
8298 hardcode_direct_absolute=yes
8299 hardcode_libdir_separator=':'
8300 link_all_deplibs=yes
8301 file_list_spec='${wl}-f,'
8302
8303 if test "$GCC" = yes; then
8304 case $host_os in aix4.[012]|aix4.[012].*)
8305 # We only want to do this on AIX 4.2 and lower, the check
8306 # below for broken collect2 doesn't work under 4.3+
8307 collect2name=`${CC} -print-prog-name=collect2`
8308 if test -f "$collect2name" &&
8309 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8310 then
8311 # We have reworked collect2
8312 :
8313 else
8314 # We have old collect2
8315 hardcode_direct=unsupported
8316 # It fails to find uninstalled libraries when the uninstalled
8317 # path is not listed in the libpath. Setting hardcode_minus_L
8318 # to unsupported forces relinking
8319 hardcode_minus_L=yes
8320 hardcode_libdir_flag_spec='-L$libdir'
8321 hardcode_libdir_separator=
8322 fi
8323 ;;
8324 esac
8325 shared_flag='-shared'
8326 if test "$aix_use_runtimelinking" = yes; then
8327 shared_flag="$shared_flag "'${wl}-G'
8328 fi
8329 link_all_deplibs=no
8330 else
8331 # not using gcc
8332 if test "$host_cpu" = ia64; then
8333 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8334 # chokes on -Wl,-G. The following line is correct:
8335 shared_flag='-G'
8336 else
8337 if test "$aix_use_runtimelinking" = yes; then
8338 shared_flag='${wl}-G'
8339 else
8340 shared_flag='${wl}-bM:SRE'
8341 fi
8342 fi
8343 fi
8344
8345 export_dynamic_flag_spec='${wl}-bexpall'
8346 # It seems that -bexpall does not export symbols beginning with
8347 # underscore (_), so it is better to generate a list of symbols to export.
8348 always_export_symbols=yes
8349 if test "$aix_use_runtimelinking" = yes; then
8350 # Warning - without using the other runtime loading flags (-brtl),
8351 # -berok will link without error, but may produce a broken library.
8352 allow_undefined_flag='-berok'
8353 # Determine the default libpath from the value encoded in an
8354 # empty executable.
8355 if test "${lt_cv_aix_libpath+set}" = set; then
8356 aix_libpath=$lt_cv_aix_libpath
8357 else
8358 if ${lt_cv_aix_libpath_+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363
8364 int
8365 main ()
8366 {
8367
8368 ;
8369 return 0;
8370 }
8371 _ACEOF
8372 if ac_fn_c_try_link "$LINENO"; then :
8373
8374 lt_aix_libpath_sed='
8375 /Import File Strings/,/^$/ {
8376 /^0/ {
8377 s/^0 *\([^ ]*\) *$/\1/
8378 p
8379 }
8380 }'
8381 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8382 # Check for a 64-bit object if we didn't find anything.
8383 if test -z "$lt_cv_aix_libpath_"; then
8384 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8385 fi
8386 fi
8387 rm -f core conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
8389 if test -z "$lt_cv_aix_libpath_"; then
8390 lt_cv_aix_libpath_="/usr/lib:/lib"
8391 fi
8392
8393 fi
8394
8395 aix_libpath=$lt_cv_aix_libpath_
8396 fi
8397
8398 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8399 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"
8400 else
8401 if test "$host_cpu" = ia64; then
8402 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8403 allow_undefined_flag="-z nodefs"
8404 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"
8405 else
8406 # Determine the default libpath from the value encoded in an
8407 # empty executable.
8408 if test "${lt_cv_aix_libpath+set}" = set; then
8409 aix_libpath=$lt_cv_aix_libpath
8410 else
8411 if ${lt_cv_aix_libpath_+:} false; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416
8417 int
8418 main ()
8419 {
8420
8421 ;
8422 return 0;
8423 }
8424 _ACEOF
8425 if ac_fn_c_try_link "$LINENO"; then :
8426
8427 lt_aix_libpath_sed='
8428 /Import File Strings/,/^$/ {
8429 /^0/ {
8430 s/^0 *\([^ ]*\) *$/\1/
8431 p
8432 }
8433 }'
8434 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8435 # Check for a 64-bit object if we didn't find anything.
8436 if test -z "$lt_cv_aix_libpath_"; then
8437 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8438 fi
8439 fi
8440 rm -f core conftest.err conftest.$ac_objext \
8441 conftest$ac_exeext conftest.$ac_ext
8442 if test -z "$lt_cv_aix_libpath_"; then
8443 lt_cv_aix_libpath_="/usr/lib:/lib"
8444 fi
8445
8446 fi
8447
8448 aix_libpath=$lt_cv_aix_libpath_
8449 fi
8450
8451 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8452 # Warning - without using the other run time loading flags,
8453 # -berok will link without error, but may produce a broken library.
8454 no_undefined_flag=' ${wl}-bernotok'
8455 allow_undefined_flag=' ${wl}-berok'
8456 if test "$with_gnu_ld" = yes; then
8457 # We only use this code for GNU lds that support --whole-archive.
8458 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8459 else
8460 # Exported symbols can be pulled into shared objects from archives
8461 whole_archive_flag_spec='$convenience'
8462 fi
8463 archive_cmds_need_lc=yes
8464 # This is similar to how AIX traditionally builds its shared libraries.
8465 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'
8466 fi
8467 fi
8468 ;;
8469
8470 amigaos*)
8471 case $host_cpu in
8472 powerpc)
8473 # see comment about AmigaOS4 .so support
8474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8475 archive_expsym_cmds=''
8476 ;;
8477 m68k)
8478 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)'
8479 hardcode_libdir_flag_spec='-L$libdir'
8480 hardcode_minus_L=yes
8481 ;;
8482 esac
8483 ;;
8484
8485 bsdi[45]*)
8486 export_dynamic_flag_spec=-rdynamic
8487 ;;
8488
8489 cygwin* | mingw* | pw32* | cegcc*)
8490 # When not using gcc, we currently assume that we are using
8491 # Microsoft Visual C++.
8492 # hardcode_libdir_flag_spec is actually meaningless, as there is
8493 # no search path for DLLs.
8494 case $cc_basename in
8495 cl*)
8496 # Native MSVC
8497 hardcode_libdir_flag_spec=' '
8498 allow_undefined_flag=unsupported
8499 always_export_symbols=yes
8500 file_list_spec='@'
8501 # Tell ltmain to make .lib files, not .a files.
8502 libext=lib
8503 # Tell ltmain to make .dll files, not .so files.
8504 shrext_cmds=".dll"
8505 # FIXME: Setting linknames here is a bad hack.
8506 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8507 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8508 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8509 else
8510 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8511 fi~
8512 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8513 linknames='
8514 # The linker will not automatically build a static lib if we build a DLL.
8515 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8516 enable_shared_with_static_runtimes=yes
8517 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8518 # Don't use ranlib
8519 old_postinstall_cmds='chmod 644 $oldlib'
8520 postlink_cmds='lt_outputfile="@OUTPUT@"~
8521 lt_tool_outputfile="@TOOL_OUTPUT@"~
8522 case $lt_outputfile in
8523 *.exe|*.EXE) ;;
8524 *)
8525 lt_outputfile="$lt_outputfile.exe"
8526 lt_tool_outputfile="$lt_tool_outputfile.exe"
8527 ;;
8528 esac~
8529 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8530 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8531 $RM "$lt_outputfile.manifest";
8532 fi'
8533 ;;
8534 *)
8535 # Assume MSVC wrapper
8536 hardcode_libdir_flag_spec=' '
8537 allow_undefined_flag=unsupported
8538 # Tell ltmain to make .lib files, not .a files.
8539 libext=lib
8540 # Tell ltmain to make .dll files, not .so files.
8541 shrext_cmds=".dll"
8542 # FIXME: Setting linknames here is a bad hack.
8543 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8544 # The linker will automatically build a .lib file if we build a DLL.
8545 old_archive_from_new_cmds='true'
8546 # FIXME: Should let the user specify the lib program.
8547 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8548 enable_shared_with_static_runtimes=yes
8549 ;;
8550 esac
8551 ;;
8552
8553 darwin* | rhapsody*)
8554
8555
8556 archive_cmds_need_lc=no
8557 hardcode_direct=no
8558 hardcode_automatic=yes
8559 hardcode_shlibpath_var=unsupported
8560 if test "$lt_cv_ld_force_load" = "yes"; then
8561 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\"`'
8562 else
8563 whole_archive_flag_spec=''
8564 fi
8565 link_all_deplibs=yes
8566 allow_undefined_flag="$_lt_dar_allow_undefined"
8567 case $cc_basename in
8568 ifort*) _lt_dar_can_shared=yes ;;
8569 *) _lt_dar_can_shared=$GCC ;;
8570 esac
8571 if test "$_lt_dar_can_shared" = "yes"; then
8572 output_verbose_link_cmd=func_echo_all
8573 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8574 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8575 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}"
8576 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}"
8577
8578 else
8579 ld_shlibs=no
8580 fi
8581
8582 ;;
8583
8584 dgux*)
8585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8586 hardcode_libdir_flag_spec='-L$libdir'
8587 hardcode_shlibpath_var=no
8588 ;;
8589
8590 freebsd1*)
8591 ld_shlibs=no
8592 ;;
8593
8594 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8595 # support. Future versions do this automatically, but an explicit c++rt0.o
8596 # does not break anything, and helps significantly (at the cost of a little
8597 # extra space).
8598 freebsd2.2*)
8599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8600 hardcode_libdir_flag_spec='-R$libdir'
8601 hardcode_direct=yes
8602 hardcode_shlibpath_var=no
8603 ;;
8604
8605 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8606 freebsd2*)
8607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8608 hardcode_direct=yes
8609 hardcode_minus_L=yes
8610 hardcode_shlibpath_var=no
8611 ;;
8612
8613 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8614 freebsd* | dragonfly*)
8615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8616 hardcode_libdir_flag_spec='-R$libdir'
8617 hardcode_direct=yes
8618 hardcode_shlibpath_var=no
8619 ;;
8620
8621 hpux9*)
8622 if test "$GCC" = yes; then
8623 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'
8624 else
8625 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'
8626 fi
8627 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8628 hardcode_libdir_separator=:
8629 hardcode_direct=yes
8630
8631 # hardcode_minus_L: Not really in the search PATH,
8632 # but as the default location of the library.
8633 hardcode_minus_L=yes
8634 export_dynamic_flag_spec='${wl}-E'
8635 ;;
8636
8637 hpux10*)
8638 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8639 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8640 else
8641 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8642 fi
8643 if test "$with_gnu_ld" = no; then
8644 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8645 hardcode_libdir_flag_spec_ld='+b $libdir'
8646 hardcode_libdir_separator=:
8647 hardcode_direct=yes
8648 hardcode_direct_absolute=yes
8649 export_dynamic_flag_spec='${wl}-E'
8650 # hardcode_minus_L: Not really in the search PATH,
8651 # but as the default location of the library.
8652 hardcode_minus_L=yes
8653 fi
8654 ;;
8655
8656 hpux11*)
8657 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8658 case $host_cpu in
8659 hppa*64*)
8660 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8661 ;;
8662 ia64*)
8663 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8664 ;;
8665 *)
8666 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8667 ;;
8668 esac
8669 else
8670 case $host_cpu in
8671 hppa*64*)
8672 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8673 ;;
8674 ia64*)
8675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8676 ;;
8677 *)
8678
8679 # Older versions of the 11.00 compiler do not understand -b yet
8680 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8682 $as_echo_n "checking if $CC understands -b... " >&6; }
8683 if ${lt_cv_prog_compiler__b+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 lt_cv_prog_compiler__b=no
8687 save_LDFLAGS="$LDFLAGS"
8688 LDFLAGS="$LDFLAGS -b"
8689 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8690 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8691 # The linker can only warn and ignore the option if not recognized
8692 # So say no if there are warnings
8693 if test -s conftest.err; then
8694 # Append any errors to the config.log.
8695 cat conftest.err 1>&5
8696 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698 if diff conftest.exp conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler__b=yes
8700 fi
8701 else
8702 lt_cv_prog_compiler__b=yes
8703 fi
8704 fi
8705 $RM -r conftest*
8706 LDFLAGS="$save_LDFLAGS"
8707
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8710 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8711
8712 if test x"$lt_cv_prog_compiler__b" = xyes; then
8713 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8714 else
8715 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8716 fi
8717
8718 ;;
8719 esac
8720 fi
8721 if test "$with_gnu_ld" = no; then
8722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8723 hardcode_libdir_separator=:
8724
8725 case $host_cpu in
8726 hppa*64*|ia64*)
8727 hardcode_direct=no
8728 hardcode_shlibpath_var=no
8729 ;;
8730 *)
8731 hardcode_direct=yes
8732 hardcode_direct_absolute=yes
8733 export_dynamic_flag_spec='${wl}-E'
8734
8735 # hardcode_minus_L: Not really in the search PATH,
8736 # but as the default location of the library.
8737 hardcode_minus_L=yes
8738 ;;
8739 esac
8740 fi
8741 ;;
8742
8743 irix5* | irix6* | nonstopux*)
8744 if test "$GCC" = yes; then
8745 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'
8746 # Try to use the -exported_symbol ld option, if it does not
8747 # work, assume that -exports_file does not work either and
8748 # implicitly export all symbols.
8749 # This should be the same for all languages, so no per-tag cache variable.
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8751 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8752 if ${lt_cv_irix_exported_symbol+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 save_LDFLAGS="$LDFLAGS"
8756 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 int foo (void) { return 0; }
8760 _ACEOF
8761 if ac_fn_c_try_link "$LINENO"; then :
8762 lt_cv_irix_exported_symbol=yes
8763 else
8764 lt_cv_irix_exported_symbol=no
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext \
8767 conftest$ac_exeext conftest.$ac_ext
8768 LDFLAGS="$save_LDFLAGS"
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8771 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8772 if test "$lt_cv_irix_exported_symbol" = yes; then
8773 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'
8774 fi
8775 else
8776 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'
8777 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'
8778 fi
8779 archive_cmds_need_lc='no'
8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781 hardcode_libdir_separator=:
8782 inherit_rpath=yes
8783 link_all_deplibs=yes
8784 ;;
8785
8786 netbsd* | netbsdelf*-gnu)
8787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8789 else
8790 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8791 fi
8792 hardcode_libdir_flag_spec='-R$libdir'
8793 hardcode_direct=yes
8794 hardcode_shlibpath_var=no
8795 ;;
8796
8797 newsos6)
8798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_direct=yes
8800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8801 hardcode_libdir_separator=:
8802 hardcode_shlibpath_var=no
8803 ;;
8804
8805 *nto* | *qnx*)
8806 ;;
8807
8808 openbsd*)
8809 if test -f /usr/libexec/ld.so; then
8810 hardcode_direct=yes
8811 hardcode_shlibpath_var=no
8812 hardcode_direct_absolute=yes
8813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8817 export_dynamic_flag_spec='${wl}-E'
8818 else
8819 case $host_os in
8820 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8822 hardcode_libdir_flag_spec='-R$libdir'
8823 ;;
8824 *)
8825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8827 ;;
8828 esac
8829 fi
8830 else
8831 ld_shlibs=no
8832 fi
8833 ;;
8834
8835 os2*)
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 hardcode_minus_L=yes
8838 allow_undefined_flag=unsupported
8839 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'
8840 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8841 ;;
8842
8843 osf3*)
8844 if test "$GCC" = yes; then
8845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8846 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'
8847 else
8848 allow_undefined_flag=' -expect_unresolved \*'
8849 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'
8850 fi
8851 archive_cmds_need_lc='no'
8852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853 hardcode_libdir_separator=:
8854 ;;
8855
8856 osf4* | osf5*) # as osf3* with the addition of -msym flag
8857 if test "$GCC" = yes; then
8858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8859 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'
8860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8861 else
8862 allow_undefined_flag=' -expect_unresolved \*'
8863 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'
8864 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~
8865 $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'
8866
8867 # Both c and cxx compiler support -rpath directly
8868 hardcode_libdir_flag_spec='-rpath $libdir'
8869 fi
8870 archive_cmds_need_lc='no'
8871 hardcode_libdir_separator=:
8872 ;;
8873
8874 solaris*)
8875 no_undefined_flag=' -z defs'
8876 if test "$GCC" = yes; then
8877 wlarc='${wl}'
8878 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8880 $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'
8881 else
8882 case `$CC -V 2>&1` in
8883 *"Compilers 5.0"*)
8884 wlarc=''
8885 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8887 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8888 ;;
8889 *)
8890 wlarc='${wl}'
8891 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8893 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8894 ;;
8895 esac
8896 fi
8897 hardcode_libdir_flag_spec='-R$libdir'
8898 hardcode_shlibpath_var=no
8899 case $host_os in
8900 solaris2.[0-5] | solaris2.[0-5].*) ;;
8901 *)
8902 # The compiler driver will combine and reorder linker options,
8903 # but understands `-z linker_flag'. GCC discards it without `$wl',
8904 # but is careful enough not to reorder.
8905 # Supported since Solaris 2.6 (maybe 2.5.1?)
8906 if test "$GCC" = yes; then
8907 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8908 else
8909 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8910 fi
8911 ;;
8912 esac
8913 link_all_deplibs=yes
8914 ;;
8915
8916 sunos4*)
8917 if test "x$host_vendor" = xsequent; then
8918 # Use $CC to link under sequent, because it throws in some extra .o
8919 # files that make .init and .fini sections work.
8920 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8921 else
8922 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8923 fi
8924 hardcode_libdir_flag_spec='-L$libdir'
8925 hardcode_direct=yes
8926 hardcode_minus_L=yes
8927 hardcode_shlibpath_var=no
8928 ;;
8929
8930 sysv4)
8931 case $host_vendor in
8932 sni)
8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_direct=yes # is this really true???
8935 ;;
8936 siemens)
8937 ## LD is ld it makes a PLAMLIB
8938 ## CC just makes a GrossModule.
8939 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8940 reload_cmds='$CC -r -o $output$reload_objs'
8941 hardcode_direct=no
8942 ;;
8943 motorola)
8944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8945 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8946 ;;
8947 esac
8948 runpath_var='LD_RUN_PATH'
8949 hardcode_shlibpath_var=no
8950 ;;
8951
8952 sysv4.3*)
8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954 hardcode_shlibpath_var=no
8955 export_dynamic_flag_spec='-Bexport'
8956 ;;
8957
8958 sysv4*MP*)
8959 if test -d /usr/nec; then
8960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961 hardcode_shlibpath_var=no
8962 runpath_var=LD_RUN_PATH
8963 hardcode_runpath_var=yes
8964 ld_shlibs=yes
8965 fi
8966 ;;
8967
8968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8969 no_undefined_flag='${wl}-z,text'
8970 archive_cmds_need_lc=no
8971 hardcode_shlibpath_var=no
8972 runpath_var='LD_RUN_PATH'
8973
8974 if test "$GCC" = yes; then
8975 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8976 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 else
8978 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8980 fi
8981 ;;
8982
8983 sysv5* | sco3.2v5* | sco5v6*)
8984 # Note: We can NOT use -z defs as we might desire, because we do not
8985 # link with -lc, and that would cause any symbols used from libc to
8986 # always be unresolved, which means just about no library would
8987 # ever link correctly. If we're not using GNU ld we use -z text
8988 # though, which does catch some bad symbols but isn't as heavy-handed
8989 # as -z defs.
8990 no_undefined_flag='${wl}-z,text'
8991 allow_undefined_flag='${wl}-z,nodefs'
8992 archive_cmds_need_lc=no
8993 hardcode_shlibpath_var=no
8994 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8995 hardcode_libdir_separator=':'
8996 link_all_deplibs=yes
8997 export_dynamic_flag_spec='${wl}-Bexport'
8998 runpath_var='LD_RUN_PATH'
8999
9000 if test "$GCC" = yes; then
9001 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9002 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9003 else
9004 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9005 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9006 fi
9007 ;;
9008
9009 uts4*)
9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_libdir_flag_spec='-L$libdir'
9012 hardcode_shlibpath_var=no
9013 ;;
9014
9015 *)
9016 ld_shlibs=no
9017 ;;
9018 esac
9019
9020 if test x$host_vendor = xsni; then
9021 case $host in
9022 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9023 export_dynamic_flag_spec='${wl}-Blargedynsym'
9024 ;;
9025 esac
9026 fi
9027 fi
9028
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9030 $as_echo "$ld_shlibs" >&6; }
9031 test "$ld_shlibs" = no && can_build_shared=no
9032
9033 with_gnu_ld=$with_gnu_ld
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049 #
9050 # Do we need to explicitly link libc?
9051 #
9052 case "x$archive_cmds_need_lc" in
9053 x|xyes)
9054 # Assume -lc should be added
9055 archive_cmds_need_lc=yes
9056
9057 if test "$enable_shared" = yes && test "$GCC" = yes; then
9058 case $archive_cmds in
9059 *'~'*)
9060 # FIXME: we may have to deal with multi-command sequences.
9061 ;;
9062 '$CC '*)
9063 # Test whether the compiler implicitly links with -lc since on some
9064 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9065 # to ld, don't add -lc before -lgcc.
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9067 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9068 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 $RM conftest*
9072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9073
9074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9075 (eval $ac_compile) 2>&5
9076 ac_status=$?
9077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9078 test $ac_status = 0; } 2>conftest.err; then
9079 soname=conftest
9080 lib=conftest
9081 libobjs=conftest.$ac_objext
9082 deplibs=
9083 wl=$lt_prog_compiler_wl
9084 pic_flag=$lt_prog_compiler_pic
9085 compiler_flags=-v
9086 linker_flags=-v
9087 verstring=
9088 output_objdir=.
9089 libname=conftest
9090 lt_save_allow_undefined_flag=$allow_undefined_flag
9091 allow_undefined_flag=
9092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9093 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9094 ac_status=$?
9095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9096 test $ac_status = 0; }
9097 then
9098 lt_cv_archive_cmds_need_lc=no
9099 else
9100 lt_cv_archive_cmds_need_lc=yes
9101 fi
9102 allow_undefined_flag=$lt_save_allow_undefined_flag
9103 else
9104 cat conftest.err 1>&5
9105 fi
9106 $RM conftest*
9107
9108 fi
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9110 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9111 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9112 ;;
9113 esac
9114 fi
9115 ;;
9116 esac
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9276
9277 if test "$GCC" = yes; then
9278 case $host_os in
9279 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9280 *) lt_awk_arg="/^libraries:/" ;;
9281 esac
9282 case $host_os in
9283 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9284 *) lt_sed_strip_eq="s,=/,/,g" ;;
9285 esac
9286 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9287 case $lt_search_path_spec in
9288 *\;*)
9289 # if the path contains ";" then we assume it to be the separator
9290 # otherwise default to the standard path separator (i.e. ":") - it is
9291 # assumed that no part of a normal pathname contains ";" but that should
9292 # okay in the real world where ";" in dirpaths is itself problematic.
9293 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9294 ;;
9295 *)
9296 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9297 ;;
9298 esac
9299 # Ok, now we have the path, separated by spaces, we can step through it
9300 # and add multilib dir if necessary.
9301 lt_tmp_lt_search_path_spec=
9302 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9303 for lt_sys_path in $lt_search_path_spec; do
9304 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9305 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9306 else
9307 test -d "$lt_sys_path" && \
9308 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9309 fi
9310 done
9311 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9312 BEGIN {RS=" "; FS="/|\n";} {
9313 lt_foo="";
9314 lt_count=0;
9315 for (lt_i = NF; lt_i > 0; lt_i--) {
9316 if ($lt_i != "" && $lt_i != ".") {
9317 if ($lt_i == "..") {
9318 lt_count++;
9319 } else {
9320 if (lt_count == 0) {
9321 lt_foo="/" $lt_i lt_foo;
9322 } else {
9323 lt_count--;
9324 }
9325 }
9326 }
9327 }
9328 if (lt_foo != "") { lt_freq[lt_foo]++; }
9329 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9330 }'`
9331 # AWK program above erroneously prepends '/' to C:/dos/paths
9332 # for these hosts.
9333 case $host_os in
9334 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9335 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9336 esac
9337 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9338 else
9339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9340 fi
9341 library_names_spec=
9342 libname_spec='lib$name'
9343 soname_spec=
9344 shrext_cmds=".so"
9345 postinstall_cmds=
9346 postuninstall_cmds=
9347 finish_cmds=
9348 finish_eval=
9349 shlibpath_var=
9350 shlibpath_overrides_runpath=unknown
9351 version_type=none
9352 dynamic_linker="$host_os ld.so"
9353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9354 need_lib_prefix=unknown
9355 hardcode_into_libs=no
9356
9357 # when you set need_version to no, make sure it does not cause -set_version
9358 # flags to be left without arguments
9359 need_version=unknown
9360
9361 case $host_os in
9362 aix3*)
9363 version_type=linux
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9365 shlibpath_var=LIBPATH
9366
9367 # AIX 3 has no versioning support, so we append a major version to the name.
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 ;;
9370
9371 aix[4-9]*)
9372 version_type=linux
9373 need_lib_prefix=no
9374 need_version=no
9375 hardcode_into_libs=yes
9376 if test "$host_cpu" = ia64; then
9377 # AIX 5 supports IA64
9378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 else
9381 # With GCC up to 2.95.x, collect2 would create an import file
9382 # for dependence libraries. The import file would start with
9383 # the line `#! .'. This would cause the generated library to
9384 # depend on `.', always an invalid library. This was fixed in
9385 # development snapshots of GCC prior to 3.0.
9386 case $host_os in
9387 aix4 | aix4.[01] | aix4.[01].*)
9388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9389 echo ' yes '
9390 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9391 :
9392 else
9393 can_build_shared=no
9394 fi
9395 ;;
9396 esac
9397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9398 # soname into executable. Probably we can add versioning support to
9399 # collect2, so additional links can be useful in future.
9400 if test "$aix_use_runtimelinking" = yes; then
9401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9402 # instead of lib<name>.a to let people know that these are not
9403 # typical AIX shared libraries.
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 else
9406 # We preserve .a as extension for shared libraries through AIX4.2
9407 # and later when we are not doing run time linking.
9408 library_names_spec='${libname}${release}.a $libname.a'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 fi
9411 shlibpath_var=LIBPATH
9412 fi
9413 ;;
9414
9415 amigaos*)
9416 case $host_cpu in
9417 powerpc)
9418 # Since July 2007 AmigaOS4 officially supports .so libraries.
9419 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 ;;
9422 m68k)
9423 library_names_spec='$libname.ixlibrary $libname.a'
9424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9425 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'
9426 ;;
9427 esac
9428 ;;
9429
9430 beos*)
9431 library_names_spec='${libname}${shared_ext}'
9432 dynamic_linker="$host_os ld.so"
9433 shlibpath_var=LIBRARY_PATH
9434 ;;
9435
9436 bsdi[45]*)
9437 version_type=linux
9438 need_version=no
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9445 # the default ld.so.conf also contains /usr/contrib/lib and
9446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9447 # libtool to hard-code these into programs
9448 ;;
9449
9450 cygwin* | mingw* | pw32* | cegcc*)
9451 version_type=windows
9452 shrext_cmds=".dll"
9453 need_version=no
9454 need_lib_prefix=no
9455
9456 case $GCC,$cc_basename in
9457 yes,*)
9458 # gcc
9459 library_names_spec='$libname.dll.a'
9460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9461 postinstall_cmds='base_file=`basename \${file}`~
9462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9463 dldir=$destdir/`dirname \$dlpath`~
9464 test -d \$dldir || mkdir -p \$dldir~
9465 $install_prog $dir/$dlname \$dldir/$dlname~
9466 chmod a+x \$dldir/$dlname~
9467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9469 fi'
9470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9471 dlpath=$dir/\$dldll~
9472 $RM \$dlpath'
9473 shlibpath_overrides_runpath=yes
9474
9475 case $host_os in
9476 cygwin*)
9477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9479
9480 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9481 ;;
9482 mingw* | cegcc*)
9483 # MinGW DLLs use traditional 'lib' prefix
9484 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9485 ;;
9486 pw32*)
9487 # pw32 DLLs use 'pw' prefix rather than 'lib'
9488 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9489 ;;
9490 esac
9491 dynamic_linker='Win32 ld.exe'
9492 ;;
9493
9494 *,cl*)
9495 # Native MSVC
9496 libname_spec='$name'
9497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9498 library_names_spec='${libname}.dll.lib'
9499
9500 case $build_os in
9501 mingw*)
9502 sys_lib_search_path_spec=
9503 lt_save_ifs=$IFS
9504 IFS=';'
9505 for lt_path in $LIB
9506 do
9507 IFS=$lt_save_ifs
9508 # Let DOS variable expansion print the short 8.3 style file name.
9509 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9510 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9511 done
9512 IFS=$lt_save_ifs
9513 # Convert to MSYS style.
9514 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9515 ;;
9516 cygwin*)
9517 # Convert to unix form, then to dos form, then back to unix form
9518 # but this time dos style (no spaces!) so that the unix form looks
9519 # like /cygdrive/c/PROGRA~1:/cygdr...
9520 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9521 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9522 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9523 ;;
9524 *)
9525 sys_lib_search_path_spec="$LIB"
9526 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9527 # It is most probably a Windows format PATH.
9528 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9529 else
9530 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9531 fi
9532 # FIXME: find the short name or the path components, as spaces are
9533 # common. (e.g. "Program Files" -> "PROGRA~1")
9534 ;;
9535 esac
9536
9537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9538 postinstall_cmds='base_file=`basename \${file}`~
9539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9540 dldir=$destdir/`dirname \$dlpath`~
9541 test -d \$dldir || mkdir -p \$dldir~
9542 $install_prog $dir/$dlname \$dldir/$dlname'
9543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9544 dlpath=$dir/\$dldll~
9545 $RM \$dlpath'
9546 shlibpath_overrides_runpath=yes
9547 dynamic_linker='Win32 link.exe'
9548 ;;
9549
9550 *)
9551 # Assume MSVC wrapper
9552 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9553 dynamic_linker='Win32 ld.exe'
9554 ;;
9555 esac
9556 # FIXME: first we should search . and the directory the executable is in
9557 shlibpath_var=PATH
9558 ;;
9559
9560 darwin* | rhapsody*)
9561 dynamic_linker="$host_os dyld"
9562 version_type=darwin
9563 need_lib_prefix=no
9564 need_version=no
9565 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9566 soname_spec='${libname}${release}${major}$shared_ext'
9567 shlibpath_overrides_runpath=yes
9568 shlibpath_var=DYLD_LIBRARY_PATH
9569 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9570
9571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9573 ;;
9574
9575 dgux*)
9576 version_type=linux
9577 need_lib_prefix=no
9578 need_version=no
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 shlibpath_var=LD_LIBRARY_PATH
9582 ;;
9583
9584 freebsd1*)
9585 dynamic_linker=no
9586 ;;
9587
9588 freebsd* | dragonfly*)
9589 # DragonFly does not have aout. When/if they implement a new
9590 # versioning mechanism, adjust this.
9591 if test -x /usr/bin/objformat; then
9592 objformat=`/usr/bin/objformat`
9593 else
9594 case $host_os in
9595 freebsd[123]*) objformat=aout ;;
9596 *) objformat=elf ;;
9597 esac
9598 fi
9599 version_type=freebsd-$objformat
9600 case $version_type in
9601 freebsd-elf*)
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9603 need_version=no
9604 need_lib_prefix=no
9605 ;;
9606 freebsd-*)
9607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9608 need_version=yes
9609 ;;
9610 esac
9611 shlibpath_var=LD_LIBRARY_PATH
9612 case $host_os in
9613 freebsd2*)
9614 shlibpath_overrides_runpath=yes
9615 ;;
9616 freebsd3.[01]* | freebsdelf3.[01]*)
9617 shlibpath_overrides_runpath=yes
9618 hardcode_into_libs=yes
9619 ;;
9620 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9621 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9622 shlibpath_overrides_runpath=no
9623 hardcode_into_libs=yes
9624 ;;
9625 *) # from 4.6 on, and DragonFly
9626 shlibpath_overrides_runpath=yes
9627 hardcode_into_libs=yes
9628 ;;
9629 esac
9630 ;;
9631
9632 gnu*)
9633 version_type=linux
9634 need_lib_prefix=no
9635 need_version=no
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9637 soname_spec='${libname}${release}${shared_ext}$major'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 shlibpath_overrides_runpath=no
9640 hardcode_into_libs=yes
9641 ;;
9642
9643 haiku*)
9644 version_type=linux
9645 need_lib_prefix=no
9646 need_version=no
9647 dynamic_linker="$host_os runtime_loader"
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9649 soname_spec='${libname}${release}${shared_ext}$major'
9650 shlibpath_var=LIBRARY_PATH
9651 shlibpath_overrides_runpath=yes
9652 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9653 hardcode_into_libs=yes
9654 ;;
9655
9656 hpux9* | hpux10* | hpux11*)
9657 # Give a soname corresponding to the major version so that dld.sl refuses to
9658 # link against other versions.
9659 version_type=sunos
9660 need_lib_prefix=no
9661 need_version=no
9662 case $host_cpu in
9663 ia64*)
9664 shrext_cmds='.so'
9665 hardcode_into_libs=yes
9666 dynamic_linker="$host_os dld.so"
9667 shlibpath_var=LD_LIBRARY_PATH
9668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670 soname_spec='${libname}${release}${shared_ext}$major'
9671 if test "X$HPUX_IA64_MODE" = X32; then
9672 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9673 else
9674 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9675 fi
9676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9677 ;;
9678 hppa*64*)
9679 shrext_cmds='.sl'
9680 hardcode_into_libs=yes
9681 dynamic_linker="$host_os dld.sl"
9682 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9685 soname_spec='${libname}${release}${shared_ext}$major'
9686 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9688 ;;
9689 *)
9690 shrext_cmds='.sl'
9691 dynamic_linker="$host_os dld.sl"
9692 shlibpath_var=SHLIB_PATH
9693 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 ;;
9697 esac
9698 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9699 postinstall_cmds='chmod 555 $lib'
9700 # or fails outright, so override atomically:
9701 install_override_mode=555
9702 ;;
9703
9704 interix[3-9]*)
9705 version_type=linux
9706 need_lib_prefix=no
9707 need_version=no
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9709 soname_spec='${libname}${release}${shared_ext}$major'
9710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9711 shlibpath_var=LD_LIBRARY_PATH
9712 shlibpath_overrides_runpath=no
9713 hardcode_into_libs=yes
9714 ;;
9715
9716 irix5* | irix6* | nonstopux*)
9717 case $host_os in
9718 nonstopux*) version_type=nonstopux ;;
9719 *)
9720 if test "$lt_cv_prog_gnu_ld" = yes; then
9721 version_type=linux
9722 else
9723 version_type=irix
9724 fi ;;
9725 esac
9726 need_lib_prefix=no
9727 need_version=no
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9730 case $host_os in
9731 irix5* | nonstopux*)
9732 libsuff= shlibsuff=
9733 ;;
9734 *)
9735 case $LD in # libtool.m4 will add one of these switches to LD
9736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9737 libsuff= shlibsuff= libmagic=32-bit;;
9738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9739 libsuff=32 shlibsuff=N32 libmagic=N32;;
9740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9741 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9742 *) libsuff= shlibsuff= libmagic=never-match;;
9743 esac
9744 ;;
9745 esac
9746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9747 shlibpath_overrides_runpath=no
9748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9750 hardcode_into_libs=yes
9751 ;;
9752
9753 # No shared lib support for Linux oldld, aout, or coff.
9754 linux*oldld* | linux*aout* | linux*coff*)
9755 dynamic_linker=no
9756 ;;
9757
9758 # This must be Linux ELF.
9759 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9760 version_type=linux
9761 need_lib_prefix=no
9762 need_version=no
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=no
9768
9769 # Some binutils ld are patched to set DT_RUNPATH
9770 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 lt_cv_shlibpath_overrides_runpath=no
9774 save_LDFLAGS=$LDFLAGS
9775 save_libdir=$libdir
9776 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9777 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780
9781 int
9782 main ()
9783 {
9784
9785 ;
9786 return 0;
9787 }
9788 _ACEOF
9789 if ac_fn_c_try_link "$LINENO"; then :
9790 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9791 lt_cv_shlibpath_overrides_runpath=yes
9792 fi
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext \
9795 conftest$ac_exeext conftest.$ac_ext
9796 LDFLAGS=$save_LDFLAGS
9797 libdir=$save_libdir
9798
9799 fi
9800
9801 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9802
9803 # This implies no fast_install, which is unacceptable.
9804 # Some rework will be needed to allow for fast_install
9805 # before this can be enabled.
9806 hardcode_into_libs=yes
9807
9808 # Append ld.so.conf contents to the search path
9809 if test -f /etc/ld.so.conf; then
9810 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' ' '`
9811 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9812 fi
9813
9814 # We used to test for /lib/ld.so.1 and disable shared libraries on
9815 # powerpc, because MkLinux only supported shared libraries with the
9816 # GNU dynamic linker. Since this was broken with cross compilers,
9817 # most powerpc-linux boxes support dynamic linking these days and
9818 # people can always --disable-shared, the test was removed, and we
9819 # assume the GNU/Linux dynamic linker is in use.
9820 dynamic_linker='GNU/Linux ld.so'
9821 ;;
9822
9823 netbsdelf*-gnu)
9824 version_type=linux
9825 need_lib_prefix=no
9826 need_version=no
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9828 soname_spec='${libname}${release}${shared_ext}$major'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 shlibpath_overrides_runpath=no
9831 hardcode_into_libs=yes
9832 dynamic_linker='NetBSD ld.elf_so'
9833 ;;
9834
9835 netbsd*)
9836 version_type=sunos
9837 need_lib_prefix=no
9838 need_version=no
9839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9842 dynamic_linker='NetBSD (a.out) ld.so'
9843 else
9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9845 soname_spec='${libname}${release}${shared_ext}$major'
9846 dynamic_linker='NetBSD ld.elf_so'
9847 fi
9848 shlibpath_var=LD_LIBRARY_PATH
9849 shlibpath_overrides_runpath=yes
9850 hardcode_into_libs=yes
9851 ;;
9852
9853 newsos6)
9854 version_type=linux
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 shlibpath_overrides_runpath=yes
9858 ;;
9859
9860 *nto* | *qnx*)
9861 version_type=qnx
9862 need_lib_prefix=no
9863 need_version=no
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 shlibpath_overrides_runpath=no
9868 hardcode_into_libs=yes
9869 dynamic_linker='ldqnx.so'
9870 ;;
9871
9872 openbsd*)
9873 version_type=sunos
9874 sys_lib_dlsearch_path_spec="/usr/lib"
9875 need_lib_prefix=no
9876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9877 case $host_os in
9878 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9879 *) need_version=no ;;
9880 esac
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9885 case $host_os in
9886 openbsd2.[89] | openbsd2.[89].*)
9887 shlibpath_overrides_runpath=no
9888 ;;
9889 *)
9890 shlibpath_overrides_runpath=yes
9891 ;;
9892 esac
9893 else
9894 shlibpath_overrides_runpath=yes
9895 fi
9896 ;;
9897
9898 os2*)
9899 libname_spec='$name'
9900 shrext_cmds=".dll"
9901 need_lib_prefix=no
9902 library_names_spec='$libname${shared_ext} $libname.a'
9903 dynamic_linker='OS/2 ld.exe'
9904 shlibpath_var=LIBPATH
9905 ;;
9906
9907 osf3* | osf4* | osf5*)
9908 version_type=osf
9909 need_lib_prefix=no
9910 need_version=no
9911 soname_spec='${libname}${release}${shared_ext}$major'
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 shlibpath_var=LD_LIBRARY_PATH
9914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9916 ;;
9917
9918 rdos*)
9919 dynamic_linker=no
9920 ;;
9921
9922 solaris*)
9923 version_type=linux
9924 need_lib_prefix=no
9925 need_version=no
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=yes
9930 hardcode_into_libs=yes
9931 # ldd complains unless libraries are executable
9932 postinstall_cmds='chmod +x $lib'
9933 ;;
9934
9935 sunos4*)
9936 version_type=sunos
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9939 shlibpath_var=LD_LIBRARY_PATH
9940 shlibpath_overrides_runpath=yes
9941 if test "$with_gnu_ld" = yes; then
9942 need_lib_prefix=no
9943 fi
9944 need_version=yes
9945 ;;
9946
9947 sysv4 | sysv4.3*)
9948 version_type=linux
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 case $host_vendor in
9953 sni)
9954 shlibpath_overrides_runpath=no
9955 need_lib_prefix=no
9956 runpath_var=LD_RUN_PATH
9957 ;;
9958 siemens)
9959 need_lib_prefix=no
9960 ;;
9961 motorola)
9962 need_lib_prefix=no
9963 need_version=no
9964 shlibpath_overrides_runpath=no
9965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9966 ;;
9967 esac
9968 ;;
9969
9970 sysv4*MP*)
9971 if test -d /usr/nec ;then
9972 version_type=linux
9973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9974 soname_spec='$libname${shared_ext}.$major'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 fi
9977 ;;
9978
9979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9980 version_type=freebsd-elf
9981 need_lib_prefix=no
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath=yes
9987 hardcode_into_libs=yes
9988 if test "$with_gnu_ld" = yes; then
9989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9990 else
9991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9992 case $host_os in
9993 sco3.2v5*)
9994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9995 ;;
9996 esac
9997 fi
9998 sys_lib_dlsearch_path_spec='/usr/lib'
9999 ;;
10000
10001 tpf*)
10002 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10003 version_type=linux
10004 need_lib_prefix=no
10005 need_version=no
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=no
10009 hardcode_into_libs=yes
10010 ;;
10011
10012 uts4*)
10013 version_type=linux
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 ;;
10018
10019 *)
10020 dynamic_linker=no
10021 ;;
10022 esac
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10024 $as_echo "$dynamic_linker" >&6; }
10025 test "$dynamic_linker" = no && can_build_shared=no
10026
10027 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10028 if test "$GCC" = yes; then
10029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10030 fi
10031
10032 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10033 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10034 fi
10035 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10036 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10037 fi
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10131 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10132 hardcode_action=
10133 if test -n "$hardcode_libdir_flag_spec" ||
10134 test -n "$runpath_var" ||
10135 test "X$hardcode_automatic" = "Xyes" ; then
10136
10137 # We can hardcode non-existent directories.
10138 if test "$hardcode_direct" != no &&
10139 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10140 # have to relink, otherwise we might link with an installed library
10141 # when we should be linking with a yet-to-be-installed one
10142 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10143 test "$hardcode_minus_L" != no; then
10144 # Linking always hardcodes the temporary library directory.
10145 hardcode_action=relink
10146 else
10147 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10148 hardcode_action=immediate
10149 fi
10150 else
10151 # We cannot hardcode anything, or else we can only hardcode existing
10152 # directories.
10153 hardcode_action=unsupported
10154 fi
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10156 $as_echo "$hardcode_action" >&6; }
10157
10158 if test "$hardcode_action" = relink ||
10159 test "$inherit_rpath" = yes; then
10160 # Fast installation is not supported
10161 enable_fast_install=no
10162 elif test "$shlibpath_overrides_runpath" = yes ||
10163 test "$enable_shared" = no; then
10164 # Fast installation is not necessary
10165 enable_fast_install=needless
10166 fi
10167
10168
10169
10170
10171
10172
10173 if test "x$enable_dlopen" != xyes; then
10174 enable_dlopen=unknown
10175 enable_dlopen_self=unknown
10176 enable_dlopen_self_static=unknown
10177 else
10178 lt_cv_dlopen=no
10179 lt_cv_dlopen_libs=
10180
10181 case $host_os in
10182 beos*)
10183 lt_cv_dlopen="load_add_on"
10184 lt_cv_dlopen_libs=
10185 lt_cv_dlopen_self=yes
10186 ;;
10187
10188 mingw* | pw32* | cegcc*)
10189 lt_cv_dlopen="LoadLibrary"
10190 lt_cv_dlopen_libs=
10191 ;;
10192
10193 cygwin*)
10194 lt_cv_dlopen="dlopen"
10195 lt_cv_dlopen_libs=
10196 ;;
10197
10198 darwin*)
10199 # if libdl is installed we need to link against it
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10201 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10202 if ${ac_cv_lib_dl_dlopen+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-ldl $LIBS"
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209
10210 /* Override any GCC internal prototype to avoid an error.
10211 Use char because int might match the return type of a GCC
10212 builtin and then its argument prototype would still apply. */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 char dlopen ();
10217 int
10218 main ()
10219 {
10220 return dlopen ();
10221 ;
10222 return 0;
10223 }
10224 _ACEOF
10225 if ac_fn_c_try_link "$LINENO"; then :
10226 ac_cv_lib_dl_dlopen=yes
10227 else
10228 ac_cv_lib_dl_dlopen=no
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LIBS=$ac_check_lib_save_LIBS
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10235 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10236 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10238 else
10239
10240 lt_cv_dlopen="dyld"
10241 lt_cv_dlopen_libs=
10242 lt_cv_dlopen_self=yes
10243
10244 fi
10245
10246 ;;
10247
10248 *)
10249 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10250 if test "x$ac_cv_func_shl_load" = xyes; then :
10251 lt_cv_dlopen="shl_load"
10252 else
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10254 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10255 if ${ac_cv_lib_dld_shl_load+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 ac_check_lib_save_LIBS=$LIBS
10259 LIBS="-ldld $LIBS"
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10262
10263 /* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
10266 #ifdef __cplusplus
10267 extern "C"
10268 #endif
10269 char shl_load ();
10270 int
10271 main ()
10272 {
10273 return shl_load ();
10274 ;
10275 return 0;
10276 }
10277 _ACEOF
10278 if ac_fn_c_try_link "$LINENO"; then :
10279 ac_cv_lib_dld_shl_load=yes
10280 else
10281 ac_cv_lib_dld_shl_load=no
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext \
10284 conftest$ac_exeext conftest.$ac_ext
10285 LIBS=$ac_check_lib_save_LIBS
10286 fi
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10288 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10289 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10290 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10291 else
10292 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10293 if test "x$ac_cv_func_dlopen" = xyes; then :
10294 lt_cv_dlopen="dlopen"
10295 else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10297 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10298 if ${ac_cv_lib_dl_dlopen+:} false; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-ldl $LIBS"
10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10305
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 char dlopen ();
10313 int
10314 main ()
10315 {
10316 return dlopen ();
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 if ac_fn_c_try_link "$LINENO"; then :
10322 ac_cv_lib_dl_dlopen=yes
10323 else
10324 ac_cv_lib_dl_dlopen=no
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 LIBS=$ac_check_lib_save_LIBS
10329 fi
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10331 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10332 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10334 else
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10336 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10337 if ${ac_cv_lib_svld_dlopen+:} false; then :
10338 $as_echo_n "(cached) " >&6
10339 else
10340 ac_check_lib_save_LIBS=$LIBS
10341 LIBS="-lsvld $LIBS"
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344
10345 /* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 char dlopen ();
10352 int
10353 main ()
10354 {
10355 return dlopen ();
10356 ;
10357 return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"; then :
10361 ac_cv_lib_svld_dlopen=yes
10362 else
10363 ac_cv_lib_svld_dlopen=no
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 LIBS=$ac_check_lib_save_LIBS
10368 fi
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10370 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10371 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10375 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10376 if ${ac_cv_lib_dld_dld_link+:} false; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 ac_check_lib_save_LIBS=$LIBS
10380 LIBS="-ldld $LIBS"
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383
10384 /* Override any GCC internal prototype to avoid an error.
10385 Use char because int might match the return type of a GCC
10386 builtin and then its argument prototype would still apply. */
10387 #ifdef __cplusplus
10388 extern "C"
10389 #endif
10390 char dld_link ();
10391 int
10392 main ()
10393 {
10394 return dld_link ();
10395 ;
10396 return 0;
10397 }
10398 _ACEOF
10399 if ac_fn_c_try_link "$LINENO"; then :
10400 ac_cv_lib_dld_dld_link=yes
10401 else
10402 ac_cv_lib_dld_dld_link=no
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext \
10405 conftest$ac_exeext conftest.$ac_ext
10406 LIBS=$ac_check_lib_save_LIBS
10407 fi
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10409 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10410 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10411 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10412 fi
10413
10414
10415 fi
10416
10417
10418 fi
10419
10420
10421 fi
10422
10423
10424 fi
10425
10426
10427 fi
10428
10429 ;;
10430 esac
10431
10432 if test "x$lt_cv_dlopen" != xno; then
10433 enable_dlopen=yes
10434 else
10435 enable_dlopen=no
10436 fi
10437
10438 case $lt_cv_dlopen in
10439 dlopen)
10440 save_CPPFLAGS="$CPPFLAGS"
10441 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10442
10443 save_LDFLAGS="$LDFLAGS"
10444 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10445
10446 save_LIBS="$LIBS"
10447 LIBS="$lt_cv_dlopen_libs $LIBS"
10448
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10450 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10451 if ${lt_cv_dlopen_self+:} false; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 if test "$cross_compiling" = yes; then :
10455 lt_cv_dlopen_self=cross
10456 else
10457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10458 lt_status=$lt_dlunknown
10459 cat > conftest.$ac_ext <<_LT_EOF
10460 #line $LINENO "configure"
10461 #include "confdefs.h"
10462
10463 #if HAVE_DLFCN_H
10464 #include <dlfcn.h>
10465 #endif
10466
10467 #include <stdio.h>
10468
10469 #ifdef RTLD_GLOBAL
10470 # define LT_DLGLOBAL RTLD_GLOBAL
10471 #else
10472 # ifdef DL_GLOBAL
10473 # define LT_DLGLOBAL DL_GLOBAL
10474 # else
10475 # define LT_DLGLOBAL 0
10476 # endif
10477 #endif
10478
10479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10480 find out it does not work in some platform. */
10481 #ifndef LT_DLLAZY_OR_NOW
10482 # ifdef RTLD_LAZY
10483 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10484 # else
10485 # ifdef DL_LAZY
10486 # define LT_DLLAZY_OR_NOW DL_LAZY
10487 # else
10488 # ifdef RTLD_NOW
10489 # define LT_DLLAZY_OR_NOW RTLD_NOW
10490 # else
10491 # ifdef DL_NOW
10492 # define LT_DLLAZY_OR_NOW DL_NOW
10493 # else
10494 # define LT_DLLAZY_OR_NOW 0
10495 # endif
10496 # endif
10497 # endif
10498 # endif
10499 #endif
10500
10501 /* When -fvisbility=hidden is used, assume the code has been annotated
10502 correspondingly for the symbols needed. */
10503 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10504 int fnord () __attribute__((visibility("default")));
10505 #endif
10506
10507 int fnord () { return 42; }
10508 int main ()
10509 {
10510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10511 int status = $lt_dlunknown;
10512
10513 if (self)
10514 {
10515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10516 else
10517 {
10518 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10519 else puts (dlerror ());
10520 }
10521 /* dlclose (self); */
10522 }
10523 else
10524 puts (dlerror ());
10525
10526 return status;
10527 }
10528 _LT_EOF
10529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10530 (eval $ac_link) 2>&5
10531 ac_status=$?
10532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10533 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10534 (./conftest; exit; ) >&5 2>/dev/null
10535 lt_status=$?
10536 case x$lt_status in
10537 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10538 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10539 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10540 esac
10541 else :
10542 # compilation failed
10543 lt_cv_dlopen_self=no
10544 fi
10545 fi
10546 rm -fr conftest*
10547
10548
10549 fi
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10551 $as_echo "$lt_cv_dlopen_self" >&6; }
10552
10553 if test "x$lt_cv_dlopen_self" = xyes; then
10554 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10556 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10557 if ${lt_cv_dlopen_self_static+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 if test "$cross_compiling" = yes; then :
10561 lt_cv_dlopen_self_static=cross
10562 else
10563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10564 lt_status=$lt_dlunknown
10565 cat > conftest.$ac_ext <<_LT_EOF
10566 #line $LINENO "configure"
10567 #include "confdefs.h"
10568
10569 #if HAVE_DLFCN_H
10570 #include <dlfcn.h>
10571 #endif
10572
10573 #include <stdio.h>
10574
10575 #ifdef RTLD_GLOBAL
10576 # define LT_DLGLOBAL RTLD_GLOBAL
10577 #else
10578 # ifdef DL_GLOBAL
10579 # define LT_DLGLOBAL DL_GLOBAL
10580 # else
10581 # define LT_DLGLOBAL 0
10582 # endif
10583 #endif
10584
10585 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10586 find out it does not work in some platform. */
10587 #ifndef LT_DLLAZY_OR_NOW
10588 # ifdef RTLD_LAZY
10589 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10590 # else
10591 # ifdef DL_LAZY
10592 # define LT_DLLAZY_OR_NOW DL_LAZY
10593 # else
10594 # ifdef RTLD_NOW
10595 # define LT_DLLAZY_OR_NOW RTLD_NOW
10596 # else
10597 # ifdef DL_NOW
10598 # define LT_DLLAZY_OR_NOW DL_NOW
10599 # else
10600 # define LT_DLLAZY_OR_NOW 0
10601 # endif
10602 # endif
10603 # endif
10604 # endif
10605 #endif
10606
10607 /* When -fvisbility=hidden is used, assume the code has been annotated
10608 correspondingly for the symbols needed. */
10609 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10610 int fnord () __attribute__((visibility("default")));
10611 #endif
10612
10613 int fnord () { return 42; }
10614 int main ()
10615 {
10616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10617 int status = $lt_dlunknown;
10618
10619 if (self)
10620 {
10621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10622 else
10623 {
10624 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10625 else puts (dlerror ());
10626 }
10627 /* dlclose (self); */
10628 }
10629 else
10630 puts (dlerror ());
10631
10632 return status;
10633 }
10634 _LT_EOF
10635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10636 (eval $ac_link) 2>&5
10637 ac_status=$?
10638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10639 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10640 (./conftest; exit; ) >&5 2>/dev/null
10641 lt_status=$?
10642 case x$lt_status in
10643 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10644 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10645 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10646 esac
10647 else :
10648 # compilation failed
10649 lt_cv_dlopen_self_static=no
10650 fi
10651 fi
10652 rm -fr conftest*
10653
10654
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10657 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10658 fi
10659
10660 CPPFLAGS="$save_CPPFLAGS"
10661 LDFLAGS="$save_LDFLAGS"
10662 LIBS="$save_LIBS"
10663 ;;
10664 esac
10665
10666 case $lt_cv_dlopen_self in
10667 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10668 *) enable_dlopen_self=unknown ;;
10669 esac
10670
10671 case $lt_cv_dlopen_self_static in
10672 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10673 *) enable_dlopen_self_static=unknown ;;
10674 esac
10675 fi
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693 striplib=
10694 old_striplib=
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10696 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10697 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10698 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10699 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10701 $as_echo "yes" >&6; }
10702 else
10703 # FIXME - insert some real tests, host_os isn't really good enough
10704 case $host_os in
10705 darwin*)
10706 if test -n "$STRIP" ; then
10707 striplib="$STRIP -x"
10708 old_striplib="$STRIP -S"
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10710 $as_echo "yes" >&6; }
10711 else
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; }
10714 fi
10715 ;;
10716 *)
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; }
10719 ;;
10720 esac
10721 fi
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734 # Report which library types will actually be built
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10736 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10738 $as_echo "$can_build_shared" >&6; }
10739
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10741 $as_echo_n "checking whether to build shared libraries... " >&6; }
10742 test "$can_build_shared" = "no" && enable_shared=no
10743
10744 # On AIX, shared libraries and static libraries use the same namespace, and
10745 # are all built from PIC.
10746 case $host_os in
10747 aix3*)
10748 test "$enable_shared" = yes && enable_static=no
10749 if test -n "$RANLIB"; then
10750 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10751 postinstall_cmds='$RANLIB $lib'
10752 fi
10753 ;;
10754
10755 aix[4-9]*)
10756 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10757 test "$enable_shared" = yes && enable_static=no
10758 fi
10759 ;;
10760 esac
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10762 $as_echo "$enable_shared" >&6; }
10763
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10765 $as_echo_n "checking whether to build static libraries... " >&6; }
10766 # Make sure either enable_shared or enable_static is yes.
10767 test "$enable_shared" = yes || enable_static=yes
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10769 $as_echo "$enable_static" >&6; }
10770
10771
10772
10773
10774 fi
10775 ac_ext=c
10776 ac_cpp='$CPP $CPPFLAGS'
10777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10780
10781 CC="$lt_save_CC"
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795 ac_config_commands="$ac_config_commands libtool"
10796
10797
10798
10799
10800 # Only expand once:
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10811 if test -n "$ac_tool_prefix"; then
10812 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10813 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815 $as_echo_n "checking for $ac_word... " >&6; }
10816 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 case $PKG_CONFIG in
10820 [\\/]* | ?:[\\/]*)
10821 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10822 ;;
10823 *)
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $PATH
10826 do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 break 2
10834 fi
10835 done
10836 done
10837 IFS=$as_save_IFS
10838
10839 ;;
10840 esac
10841 fi
10842 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10843 if test -n "$PKG_CONFIG"; then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10845 $as_echo "$PKG_CONFIG" >&6; }
10846 else
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848 $as_echo "no" >&6; }
10849 fi
10850
10851
10852 fi
10853 if test -z "$ac_cv_path_PKG_CONFIG"; then
10854 ac_pt_PKG_CONFIG=$PKG_CONFIG
10855 # Extract the first word of "pkg-config", so it can be a program name with args.
10856 set dummy pkg-config; ac_word=$2
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858 $as_echo_n "checking for $ac_word... " >&6; }
10859 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 case $ac_pt_PKG_CONFIG in
10863 [\\/]* | ?:[\\/]*)
10864 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10865 ;;
10866 *)
10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10869 do
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
10873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10874 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 break 2
10877 fi
10878 done
10879 done
10880 IFS=$as_save_IFS
10881
10882 ;;
10883 esac
10884 fi
10885 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10886 if test -n "$ac_pt_PKG_CONFIG"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10888 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10892 fi
10893
10894 if test "x$ac_pt_PKG_CONFIG" = x; then
10895 PKG_CONFIG=""
10896 else
10897 case $cross_compiling:$ac_tool_warned in
10898 yes:)
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10901 ac_tool_warned=yes ;;
10902 esac
10903 PKG_CONFIG=$ac_pt_PKG_CONFIG
10904 fi
10905 else
10906 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10907 fi
10908
10909 fi
10910 if test -n "$PKG_CONFIG"; then
10911 _pkg_min_version=0.22
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10913 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10914 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10916 $as_echo "yes" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10920 PKG_CONFIG=""
10921 fi
10922 fi
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10924 $as_echo_n "checking for GNU make... " >&6; }
10925 if ${_cv_gnu_make_command+:} false; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 _cv_gnu_make_command='' ;
10929 for a in "$MAKE" make gmake gnumake ; do
10930 if test -z "$a" ; then continue ; fi ;
10931 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10932 _cv_gnu_make_command=$a ;
10933 break;
10934 fi
10935 done ;
10936
10937 fi
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10939 $as_echo "$_cv_gnu_make_command" >&6; } ;
10940 if test "x$_cv_gnu_make_command" != "x" ; then
10941 ifGNUmake='' ;
10942 else
10943 ifGNUmake='#' ;
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10945 $as_echo "\"Not found\"" >&6; };
10946 fi
10947
10948
10949 GMAKE=$_cv_gnu_make_command
10950
10951
10952 if test "x$GMAKE" = x; then :
10953 as_fn_error $? "You need GNU make" "$LINENO" 5
10954 fi
10955 for ac_prog in bash
10956 do
10957 # Extract the first word of "$ac_prog", so it can be a program name with args.
10958 set dummy $ac_prog; ac_word=$2
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960 $as_echo_n "checking for $ac_word... " >&6; }
10961 if ${ac_cv_path__BASH+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 case $_BASH in
10965 [\\/]* | ?:[\\/]*)
10966 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
10967 ;;
10968 *)
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10971 do
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10976 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10979 fi
10980 done
10981 done
10982 IFS=$as_save_IFS
10983
10984 ;;
10985 esac
10986 fi
10987 _BASH=$ac_cv_path__BASH
10988 if test -n "$_BASH"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10990 $as_echo "$_BASH" >&6; }
10991 else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10994 fi
10995
10996
10997 test -n "$_BASH" && break
10998 done
10999
11000 if test "x$_BASH" = x; then :
11001 as_fn_error $? "You need GNU bash" "$LINENO" 5
11002 fi
11003 for ac_prog in time
11004 do
11005 # Extract the first word of "$ac_prog", so it can be a program name with args.
11006 set dummy $ac_prog; ac_word=$2
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008 $as_echo_n "checking for $ac_word... " >&6; }
11009 if ${ac_cv_path_TIME+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 case $TIME in
11013 [\\/]* | ?:[\\/]*)
11014 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
11015 ;;
11016 *)
11017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11019 do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11024 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11027 fi
11028 done
11029 done
11030 IFS=$as_save_IFS
11031
11032 ;;
11033 esac
11034 fi
11035 TIME=$ac_cv_path_TIME
11036 if test -n "$TIME"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
11038 $as_echo "$TIME" >&6; }
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11042 fi
11043
11044
11045 test -n "$TIME" && break
11046 done
11047
11048
11049
11050
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
11052 $as_echo_n "checking for bison >= 2.3... " >&6; }
11053 if test -z "$BISON"; then
11054 ac_path_BISON_found=false
11055 # Loop through the user's path and test for each of PROGNAME-LIST
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11058 do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_prog in bison; do
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
11064 { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue
11065 as_awk_strverscmp='
11066 # Use only awk features that work with 7th edition Unix awk (1978).
11067 # My, what an old awk you have, Mr. Solaris!
11068 END {
11069 while (length(v1) && length(v2)) {
11070 # Set d1 to be the next thing to compare from v1, and likewise for d2.
11071 # Normally this is a single character, but if v1 and v2 contain digits,
11072 # compare them as integers and fractions as strverscmp does.
11073 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
11074 # Split v1 and v2 into their leading digit string components d1 and d2,
11075 # and advance v1 and v2 past the leading digit strings.
11076 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
11077 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
11078 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
11079 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
11080 if (d1 ~ /^0/) {
11081 if (d2 ~ /^0/) {
11082 # Compare two fractions.
11083 while (d1 ~ /^0/ && d2 ~ /^0/) {
11084 d1 = substr(d1, 2); len1--
11085 d2 = substr(d2, 2); len2--
11086 }
11087 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
11088 # The two components differ in length, and the common prefix
11089 # contains only leading zeros. Consider the longer to be less.
11090 d1 = -len1
11091 d2 = -len2
11092 } else {
11093 # Otherwise, compare as strings.
11094 d1 = "x" d1
11095 d2 = "x" d2
11096 }
11097 } else {
11098 # A fraction is less than an integer.
11099 exit 1
11100 }
11101 } else {
11102 if (d2 ~ /^0/) {
11103 # An integer is greater than a fraction.
11104 exit 2
11105 } else {
11106 # Compare two integers.
11107 d1 += 0
11108 d2 += 0
11109 }
11110 }
11111 } else {
11112 # The normal case, without worrying about digits.
11113 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
11114 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
11115 }
11116 if (d1 < d2) exit 1
11117 if (d1 > d2) exit 2
11118 }
11119 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
11120 # which mishandles some comparisons of empty strings to integers.
11121 if (length(v2)) exit 1
11122 if (length(v1)) exit 2
11123 }
11124 '
11125 as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
11126 as_arg_v2=2.3
11127 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11128 case $? in #(
11129 1) :
11130 ;; #(
11131 0) :
11132 ac_cv_path_BISON=$ac_path_BISON
11133 ;; #(
11134 2) :
11135 ac_cv_path_BISON=$ac_path_BISON
11136 ;; #(
11137 *) :
11138 ;;
11139 esac
11140
11141 $ac_path_BISON_found && break 3
11142 done
11143 done
11144 done
11145 IFS=$as_save_IFS
11146 if test -z "$ac_cv_path_BISON"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11149 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
11150
11151 fi
11152 else
11153 ac_cv_path_BISON=$BISON
11154 fi
11155
11156 BISON=$ac_cv_path_BISON
11157
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11159 $as_echo "$BISON" >&6; }
11160
11161
11162
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
11164 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
11165 if test -z "$FLEX"; then
11166 ac_path_FLEX_found=false
11167 # Loop through the user's path and test for each of PROGNAME-LIST
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11170 do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_prog in flex; do
11174 for ac_exec_ext in '' $ac_executable_extensions; do
11175 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
11176 { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue
11177 as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
11178 as_arg_v2=2.5.33
11179 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11180 case $? in #(
11181 1) :
11182 ;; #(
11183 0) :
11184 ac_cv_path_FLEX=$ac_path_FLEX
11185 ;; #(
11186 2) :
11187 ac_cv_path_FLEX=$ac_path_FLEX
11188 ;; #(
11189 *) :
11190 ;;
11191 esac
11192
11193 $ac_path_FLEX_found && break 3
11194 done
11195 done
11196 done
11197 IFS=$as_save_IFS
11198 if test -z "$ac_cv_path_FLEX"; then
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
11202
11203 fi
11204 else
11205 ac_cv_path_FLEX=$FLEX
11206 fi
11207
11208 FLEX=$ac_cv_path_FLEX
11209
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11211 $as_echo "$FLEX" >&6; }
11212
11213
11214
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
11216 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
11217 if test -z "$GPERF"; then
11218 ac_path_GPERF_found=false
11219 # Loop through the user's path and test for each of PROGNAME-LIST
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11222 do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
11225 for ac_prog in gperf; do
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
11228 { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue
11229 as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
11230 as_arg_v2=3.0.3
11231 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11232 case $? in #(
11233 1) :
11234 ;; #(
11235 0) :
11236 ac_cv_path_GPERF=$ac_path_GPERF
11237 ;; #(
11238 2) :
11239 ac_cv_path_GPERF=$ac_path_GPERF
11240 ;; #(
11241 *) :
11242 ;;
11243 esac
11244
11245 $ac_path_GPERF_found && break 3
11246 done
11247 done
11248 done
11249 IFS=$as_save_IFS
11250 if test -z "$ac_cv_path_GPERF"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
11254
11255 fi
11256 else
11257 ac_cv_path_GPERF=$GPERF
11258 fi
11259
11260 GPERF=$ac_cv_path_GPERF
11261
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
11263 $as_echo "$GPERF" >&6; }
11264
11265 # Find a good install program. We prefer a C program (faster),
11266 # so one script is as good as another. But avoid the broken or
11267 # incompatible versions:
11268 # SysV /etc/install, /usr/sbin/install
11269 # SunOS /usr/etc/install
11270 # IRIX /sbin/install
11271 # AIX /bin/install
11272 # AmigaOS /C/install, which installs bootblocks on floppy discs
11273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11276 # OS/2's system install, which has a completely different semantic
11277 # ./install, which can be erroneously created by make from ./install.sh.
11278 # Reject install programs that cannot install multiple files.
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11281 if test -z "$INSTALL"; then
11282 if ${ac_cv_path_install+:} false; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286 for as_dir in $PATH
11287 do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
11290 # Account for people who put trailing slashes in PATH elements.
11291 case $as_dir/ in #((
11292 ./ | .// | /[cC]/* | \
11293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11294 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11295 /usr/ucb/* ) ;;
11296 *)
11297 # OSF1 and SCO ODT 3.0 have their own names for install.
11298 # Don't use installbsd from OSF since it installs stuff as root
11299 # by default.
11300 for ac_prog in ginstall scoinst install; do
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11303 if test $ac_prog = install &&
11304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11305 # AIX install. It has an incompatible calling convention.
11306 :
11307 elif test $ac_prog = install &&
11308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11309 # program-specific install script used by HP pwplus--don't use.
11310 :
11311 else
11312 rm -rf conftest.one conftest.two conftest.dir
11313 echo one > conftest.one
11314 echo two > conftest.two
11315 mkdir conftest.dir
11316 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11317 test -s conftest.one && test -s conftest.two &&
11318 test -s conftest.dir/conftest.one &&
11319 test -s conftest.dir/conftest.two
11320 then
11321 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11322 break 3
11323 fi
11324 fi
11325 fi
11326 done
11327 done
11328 ;;
11329 esac
11330
11331 done
11332 IFS=$as_save_IFS
11333
11334 rm -rf conftest.one conftest.two conftest.dir
11335
11336 fi
11337 if test "${ac_cv_path_install+set}" = set; then
11338 INSTALL=$ac_cv_path_install
11339 else
11340 # As a last resort, use the slow shell script. Don't cache a
11341 # value for INSTALL within a source directory, because that will
11342 # break other packages using the cache if that directory is
11343 # removed, or if the value is a relative name.
11344 INSTALL=$ac_install_sh
11345 fi
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11348 $as_echo "$INSTALL" >&6; }
11349
11350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11351 # It thinks the first close brace ends the variable substitution.
11352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11353
11354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11355
11356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11357
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5
11359 $as_echo_n "checking for GNU tar >=1.19... " >&6; }
11360 if test -z "$GNUTAR"; then
11361 ac_path_GNUTAR_found=false
11362 # Loop through the user's path and test for each of PROGNAME-LIST
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_prog in tar gtar gnutar; do
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
11371 { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue
11372
11373 if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
11374
11375 as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
11376 as_arg_v2=1.19
11377 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11378 case $? in #(
11379 1) :
11380 ;; #(
11381 0) :
11382
11383 ac_cv_path_GNUTAR=$ac_path_GNUTAR
11384 ;; #(
11385 2) :
11386
11387 ac_cv_path_GNUTAR=$ac_path_GNUTAR
11388 ;; #(
11389 *) :
11390 ;;
11391 esac
11392
11393 fi
11394
11395 $ac_path_GNUTAR_found && break 3
11396 done
11397 done
11398 done
11399 IFS=$as_save_IFS
11400 if test -z "$ac_cv_path_GNUTAR"; then
11401 :
11402 fi
11403 else
11404 ac_cv_path_GNUTAR=$GNUTAR
11405 fi
11406
11407 if test "x$ac_cv_path_GNUTAR" != x; then :
11408
11409 GNUTAR=$ac_cv_path_GNUTAR
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
11412 $as_echo "$GNUTAR" >&6; }
11413
11414 else
11415
11416 GNUTAR=:
11417
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11420
11421 fi
11422 for ac_prog in svn
11423 do
11424 # Extract the first word of "$ac_prog", so it can be a program name with args.
11425 set dummy $ac_prog; ac_word=$2
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427 $as_echo_n "checking for $ac_word... " >&6; }
11428 if ${ac_cv_prog_SVN+:} false; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 if test -n "$SVN"; then
11432 ac_cv_prog_SVN="$SVN" # Let the user override the test.
11433 else
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $PATH
11436 do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_prog_SVN="$ac_prog"
11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 break 2
11444 fi
11445 done
11446 done
11447 IFS=$as_save_IFS
11448
11449 fi
11450 fi
11451 SVN=$ac_cv_prog_SVN
11452 if test -n "$SVN"; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
11454 $as_echo "$SVN" >&6; }
11455 else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11458 fi
11459
11460
11461 test -n "$SVN" && break
11462 done
11463
11464 for ac_prog in svnversion
11465 do
11466 # Extract the first word of "$ac_prog", so it can be a program name with args.
11467 set dummy $ac_prog; ac_word=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if ${ac_cv_prog_SVNVERSION+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 if test -n "$SVNVERSION"; then
11474 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
11475 else
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in $PATH
11478 do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11483 ac_cv_prog_SVNVERSION="$ac_prog"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487 done
11488 done
11489 IFS=$as_save_IFS
11490
11491 fi
11492 fi
11493 SVNVERSION=$ac_cv_prog_SVNVERSION
11494 if test -n "$SVNVERSION"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
11496 $as_echo "$SVNVERSION" >&6; }
11497 else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499 $as_echo "no" >&6; }
11500 fi
11501
11502
11503 test -n "$SVNVERSION" && break
11504 done
11505
11506 ac_ext=cpp
11507 ac_cpp='$CXXCPP $CPPFLAGS'
11508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11511 if test -z "$CXX"; then
11512 if test -n "$CCC"; then
11513 CXX=$CCC
11514 else
11515 if test -n "$ac_tool_prefix"; then
11516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11517 do
11518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521 $as_echo_n "checking for $ac_word... " >&6; }
11522 if ${ac_cv_prog_CXX+:} false; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 if test -n "$CXX"; then
11526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11527 else
11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH
11530 do
11531 IFS=$as_save_IFS
11532 test -z "$as_dir" && as_dir=.
11533 for ac_exec_ext in '' $ac_executable_extensions; do
11534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11537 break 2
11538 fi
11539 done
11540 done
11541 IFS=$as_save_IFS
11542
11543 fi
11544 fi
11545 CXX=$ac_cv_prog_CXX
11546 if test -n "$CXX"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11548 $as_echo "$CXX" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 fi
11553
11554
11555 test -n "$CXX" && break
11556 done
11557 fi
11558 if test -z "$CXX"; then
11559 ac_ct_CXX=$CXX
11560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11561 do
11562 # Extract the first word of "$ac_prog", so it can be a program name with args.
11563 set dummy $ac_prog; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 if test -n "$ac_ct_CXX"; then
11570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11571 else
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11574 do
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11579 ac_cv_prog_ac_ct_CXX="$ac_prog"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11582 fi
11583 done
11584 done
11585 IFS=$as_save_IFS
11586
11587 fi
11588 fi
11589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11590 if test -n "$ac_ct_CXX"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11592 $as_echo "$ac_ct_CXX" >&6; }
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 fi
11597
11598
11599 test -n "$ac_ct_CXX" && break
11600 done
11601
11602 if test "x$ac_ct_CXX" = x; then
11603 CXX="g++"
11604 else
11605 case $cross_compiling:$ac_tool_warned in
11606 yes:)
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11609 ac_tool_warned=yes ;;
11610 esac
11611 CXX=$ac_ct_CXX
11612 fi
11613 fi
11614
11615 fi
11616 fi
11617 # Provide some information about the compiler.
11618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11619 set X $ac_compile
11620 ac_compiler=$2
11621 for ac_option in --version -v -V -qversion; do
11622 { { ac_try="$ac_compiler $ac_option >&5"
11623 case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11628 $as_echo "$ac_try_echo"; } >&5
11629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11630 ac_status=$?
11631 if test -s conftest.err; then
11632 sed '10a\
11633 ... rest of stderr output deleted ...
11634 10q' conftest.err >conftest.er1
11635 cat conftest.er1 >&5
11636 fi
11637 rm -f conftest.er1 conftest.err
11638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639 test $ac_status = 0; }
11640 done
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11644 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649
11650 int
11651 main ()
11652 {
11653 #ifndef __GNUC__
11654 choke me
11655 #endif
11656
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_cxx_try_compile "$LINENO"; then :
11662 ac_compiler_gnu=yes
11663 else
11664 ac_compiler_gnu=no
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11668
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11672 if test $ac_compiler_gnu = yes; then
11673 GXX=yes
11674 else
11675 GXX=
11676 fi
11677 ac_test_CXXFLAGS=${CXXFLAGS+set}
11678 ac_save_CXXFLAGS=$CXXFLAGS
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11681 if ${ac_cv_prog_cxx_g+:} false; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11685 ac_cxx_werror_flag=yes
11686 ac_cv_prog_cxx_g=no
11687 CXXFLAGS="-g"
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690
11691 int
11692 main ()
11693 {
11694
11695 ;
11696 return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_cxx_try_compile "$LINENO"; then :
11700 ac_cv_prog_cxx_g=yes
11701 else
11702 CXXFLAGS=""
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11705
11706 int
11707 main ()
11708 {
11709
11710 ;
11711 return 0;
11712 }
11713 _ACEOF
11714 if ac_fn_cxx_try_compile "$LINENO"; then :
11715
11716 else
11717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11718 CXXFLAGS="-g"
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721
11722 int
11723 main ()
11724 {
11725
11726 ;
11727 return 0;
11728 }
11729 _ACEOF
11730 if ac_fn_cxx_try_compile "$LINENO"; then :
11731 ac_cv_prog_cxx_g=yes
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 fi
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 fi
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11741 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11742 if test "$ac_test_CXXFLAGS" = set; then
11743 CXXFLAGS=$ac_save_CXXFLAGS
11744 elif test $ac_cv_prog_cxx_g = yes; then
11745 if test "$GXX" = yes; then
11746 CXXFLAGS="-g -O2"
11747 else
11748 CXXFLAGS="-g"
11749 fi
11750 else
11751 if test "$GXX" = yes; then
11752 CXXFLAGS="-O2"
11753 else
11754 CXXFLAGS=
11755 fi
11756 fi
11757 ac_ext=c
11758 ac_cpp='$CPP $CPPFLAGS'
11759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11762
11763
11764
11765 func_stripname_cnf ()
11766 {
11767 case ${2} in
11768 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11769 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11770 esac
11771 } # func_stripname_cnf
11772
11773 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11774 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11775 (test "X$CXX" != "Xg++"))) ; then
11776 ac_ext=cpp
11777 ac_cpp='$CXXCPP $CPPFLAGS'
11778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11782 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11783 if test -z "$CXXCPP"; then
11784 if ${ac_cv_prog_CXXCPP+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 # Double quotes because CXXCPP needs to be expanded
11788 for CXXCPP in "$CXX -E" "/lib/cpp"
11789 do
11790 ac_preproc_ok=false
11791 for ac_cxx_preproc_warn_flag in '' yes
11792 do
11793 # Use a header file that comes with gcc, so configuring glibc
11794 # with a fresh cross-compiler works.
11795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11796 # <limits.h> exists even on freestanding compilers.
11797 # On the NeXT, cc -E runs the code through the compiler's parser,
11798 # not just through cpp. "Syntax error" is here to catch this case.
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801 #ifdef __STDC__
11802 # include <limits.h>
11803 #else
11804 # include <assert.h>
11805 #endif
11806 Syntax error
11807 _ACEOF
11808 if ac_fn_cxx_try_cpp "$LINENO"; then :
11809
11810 else
11811 # Broken: fails on valid input.
11812 continue
11813 fi
11814 rm -f conftest.err conftest.i conftest.$ac_ext
11815
11816 # OK, works on sane cases. Now check whether nonexistent headers
11817 # can be detected and how.
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820 #include <ac_nonexistent.h>
11821 _ACEOF
11822 if ac_fn_cxx_try_cpp "$LINENO"; then :
11823 # Broken: success on invalid input.
11824 continue
11825 else
11826 # Passes both tests.
11827 ac_preproc_ok=:
11828 break
11829 fi
11830 rm -f conftest.err conftest.i conftest.$ac_ext
11831
11832 done
11833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11834 rm -f conftest.i conftest.err conftest.$ac_ext
11835 if $ac_preproc_ok; then :
11836 break
11837 fi
11838
11839 done
11840 ac_cv_prog_CXXCPP=$CXXCPP
11841
11842 fi
11843 CXXCPP=$ac_cv_prog_CXXCPP
11844 else
11845 ac_cv_prog_CXXCPP=$CXXCPP
11846 fi
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11848 $as_echo "$CXXCPP" >&6; }
11849 ac_preproc_ok=false
11850 for ac_cxx_preproc_warn_flag in '' yes
11851 do
11852 # Use a header file that comes with gcc, so configuring glibc
11853 # with a fresh cross-compiler works.
11854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11855 # <limits.h> exists even on freestanding compilers.
11856 # On the NeXT, cc -E runs the code through the compiler's parser,
11857 # not just through cpp. "Syntax error" is here to catch this case.
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860 #ifdef __STDC__
11861 # include <limits.h>
11862 #else
11863 # include <assert.h>
11864 #endif
11865 Syntax error
11866 _ACEOF
11867 if ac_fn_cxx_try_cpp "$LINENO"; then :
11868
11869 else
11870 # Broken: fails on valid input.
11871 continue
11872 fi
11873 rm -f conftest.err conftest.i conftest.$ac_ext
11874
11875 # OK, works on sane cases. Now check whether nonexistent headers
11876 # can be detected and how.
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11879 #include <ac_nonexistent.h>
11880 _ACEOF
11881 if ac_fn_cxx_try_cpp "$LINENO"; then :
11882 # Broken: success on invalid input.
11883 continue
11884 else
11885 # Passes both tests.
11886 ac_preproc_ok=:
11887 break
11888 fi
11889 rm -f conftest.err conftest.i conftest.$ac_ext
11890
11891 done
11892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11893 rm -f conftest.i conftest.err conftest.$ac_ext
11894 if $ac_preproc_ok; then :
11895
11896 else
11897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11899 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11900 See \`config.log' for more details" "$LINENO" 5; }
11901 fi
11902
11903 ac_ext=c
11904 ac_cpp='$CPP $CPPFLAGS'
11905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11908
11909 else
11910 _lt_caught_CXX_error=yes
11911 fi
11912
11913 ac_ext=cpp
11914 ac_cpp='$CXXCPP $CPPFLAGS'
11915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11918
11919 archive_cmds_need_lc_CXX=no
11920 allow_undefined_flag_CXX=
11921 always_export_symbols_CXX=no
11922 archive_expsym_cmds_CXX=
11923 compiler_needs_object_CXX=no
11924 export_dynamic_flag_spec_CXX=
11925 hardcode_direct_CXX=no
11926 hardcode_direct_absolute_CXX=no
11927 hardcode_libdir_flag_spec_CXX=
11928 hardcode_libdir_flag_spec_ld_CXX=
11929 hardcode_libdir_separator_CXX=
11930 hardcode_minus_L_CXX=no
11931 hardcode_shlibpath_var_CXX=unsupported
11932 hardcode_automatic_CXX=no
11933 inherit_rpath_CXX=no
11934 module_cmds_CXX=
11935 module_expsym_cmds_CXX=
11936 link_all_deplibs_CXX=unknown
11937 old_archive_cmds_CXX=$old_archive_cmds
11938 reload_flag_CXX=$reload_flag
11939 reload_cmds_CXX=$reload_cmds
11940 no_undefined_flag_CXX=
11941 whole_archive_flag_spec_CXX=
11942 enable_shared_with_static_runtimes_CXX=no
11943
11944 # Source file extension for C++ test sources.
11945 ac_ext=cpp
11946
11947 # Object file extension for compiled C++ test sources.
11948 objext=o
11949 objext_CXX=$objext
11950
11951 # No sense in running all these tests if we already determined that
11952 # the CXX compiler isn't working. Some variables (like enable_shared)
11953 # are currently assumed to apply to all compilers on this platform,
11954 # and will be corrupted by setting them based on a non-working compiler.
11955 if test "$_lt_caught_CXX_error" != yes; then
11956 # Code to be used in simple compile tests
11957 lt_simple_compile_test_code="int some_variable = 0;"
11958
11959 # Code to be used in simple link tests
11960 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11961
11962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11963
11964
11965
11966
11967
11968
11969 # If no C compiler was specified, use CC.
11970 LTCC=${LTCC-"$CC"}
11971
11972 # If no C compiler flags were specified, use CFLAGS.
11973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11974
11975 # Allow CC to be a program name with arguments.
11976 compiler=$CC
11977
11978
11979 # save warnings/boilerplate of simple test code
11980 ac_outfile=conftest.$ac_objext
11981 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11982 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11983 _lt_compiler_boilerplate=`cat conftest.err`
11984 $RM conftest*
11985
11986 ac_outfile=conftest.$ac_objext
11987 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11988 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11989 _lt_linker_boilerplate=`cat conftest.err`
11990 $RM -r conftest*
11991
11992
11993 # Allow CC to be a program name with arguments.
11994 lt_save_CC=$CC
11995 lt_save_CFLAGS=$CFLAGS
11996 lt_save_LD=$LD
11997 lt_save_GCC=$GCC
11998 GCC=$GXX
11999 lt_save_with_gnu_ld=$with_gnu_ld
12000 lt_save_path_LD=$lt_cv_path_LD
12001 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12002 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12003 else
12004 $as_unset lt_cv_prog_gnu_ld
12005 fi
12006 if test -n "${lt_cv_path_LDCXX+set}"; then
12007 lt_cv_path_LD=$lt_cv_path_LDCXX
12008 else
12009 $as_unset lt_cv_path_LD
12010 fi
12011 test -z "${LDCXX+set}" || LD=$LDCXX
12012 CC=${CXX-"c++"}
12013 CFLAGS=$CXXFLAGS
12014 compiler=$CC
12015 compiler_CXX=$CC
12016 for cc_temp in $compiler""; do
12017 case $cc_temp in
12018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12020 \-*) ;;
12021 *) break;;
12022 esac
12023 done
12024 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12025
12026
12027 if test -n "$compiler"; then
12028 # We don't want -fno-exception when compiling C++ code, so set the
12029 # no_builtin_flag separately
12030 if test "$GXX" = yes; then
12031 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12032 else
12033 lt_prog_compiler_no_builtin_flag_CXX=
12034 fi
12035
12036 if test "$GXX" = yes; then
12037 # Set up default GNU C++ configuration
12038
12039
12040
12041 # Check whether --with-gnu-ld was given.
12042 if test "${with_gnu_ld+set}" = set; then :
12043 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12044 else
12045 with_gnu_ld=no
12046 fi
12047
12048 ac_prog=ld
12049 if test "$GCC" = yes; then
12050 # Check if gcc -print-prog-name=ld gives a path.
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12052 $as_echo_n "checking for ld used by $CC... " >&6; }
12053 case $host in
12054 *-*-mingw*)
12055 # gcc leaves a trailing carriage return which upsets mingw
12056 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12057 *)
12058 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12059 esac
12060 case $ac_prog in
12061 # Accept absolute paths.
12062 [\\/]* | ?:[\\/]*)
12063 re_direlt='/[^/][^/]*/\.\./'
12064 # Canonicalize the pathname of ld
12065 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12066 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12067 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12068 done
12069 test -z "$LD" && LD="$ac_prog"
12070 ;;
12071 "")
12072 # If it fails, then pretend we aren't using GCC.
12073 ac_prog=ld
12074 ;;
12075 *)
12076 # If it is relative, then search for the first ld in PATH.
12077 with_gnu_ld=unknown
12078 ;;
12079 esac
12080 elif test "$with_gnu_ld" = yes; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12082 $as_echo_n "checking for GNU ld... " >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12085 $as_echo_n "checking for non-GNU ld... " >&6; }
12086 fi
12087 if ${lt_cv_path_LD+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 if test -z "$LD"; then
12091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12092 for ac_dir in $PATH; do
12093 IFS="$lt_save_ifs"
12094 test -z "$ac_dir" && ac_dir=.
12095 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12096 lt_cv_path_LD="$ac_dir/$ac_prog"
12097 # Check to see if the program is GNU ld. I'd rather use --version,
12098 # but apparently some variants of GNU ld only accept -v.
12099 # Break only if it was the GNU/non-GNU ld that we prefer.
12100 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12101 *GNU* | *'with BFD'*)
12102 test "$with_gnu_ld" != no && break
12103 ;;
12104 *)
12105 test "$with_gnu_ld" != yes && break
12106 ;;
12107 esac
12108 fi
12109 done
12110 IFS="$lt_save_ifs"
12111 else
12112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12113 fi
12114 fi
12115
12116 LD="$lt_cv_path_LD"
12117 if test -n "$LD"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12119 $as_echo "$LD" >&6; }
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12123 fi
12124 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12127 if ${lt_cv_prog_gnu_ld+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12131 case `$LD -v 2>&1 </dev/null` in
12132 *GNU* | *'with BFD'*)
12133 lt_cv_prog_gnu_ld=yes
12134 ;;
12135 *)
12136 lt_cv_prog_gnu_ld=no
12137 ;;
12138 esac
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12141 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12142 with_gnu_ld=$lt_cv_prog_gnu_ld
12143
12144
12145
12146
12147
12148
12149
12150 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12151 # archiving commands below assume that GNU ld is being used.
12152 if test "$with_gnu_ld" = yes; then
12153 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12154 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'
12155
12156 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12158
12159 # If archive_cmds runs LD, not CC, wlarc should be empty
12160 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12161 # investigate it a little bit more. (MM)
12162 wlarc='${wl}'
12163
12164 # ancient GNU ld didn't support --whole-archive et. al.
12165 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12166 $GREP 'no-whole-archive' > /dev/null; then
12167 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12168 else
12169 whole_archive_flag_spec_CXX=
12170 fi
12171 else
12172 with_gnu_ld=no
12173 wlarc=
12174
12175 # A generic and very simple default shared library creation
12176 # command for GNU C++ for the case where it uses the native
12177 # linker, instead of GNU ld. If possible, this setting should
12178 # overridden to take advantage of the native linker features on
12179 # the platform it is being used on.
12180 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12181 fi
12182
12183 # Commands to make compiler produce verbose output that lists
12184 # what "hidden" libraries, object files and flags are used when
12185 # linking a shared library.
12186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12187
12188 else
12189 GXX=no
12190 with_gnu_ld=no
12191 wlarc=
12192 fi
12193
12194 # PORTME: fill in a description of your system's C++ link characteristics
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12196 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12197 ld_shlibs_CXX=yes
12198 case $host_os in
12199 aix3*)
12200 # FIXME: insert proper C++ library support
12201 ld_shlibs_CXX=no
12202 ;;
12203 aix[4-9]*)
12204 if test "$host_cpu" = ia64; then
12205 # On IA64, the linker does run time linking by default, so we don't
12206 # have to do anything special.
12207 aix_use_runtimelinking=no
12208 exp_sym_flag='-Bexport'
12209 no_entry_flag=""
12210 else
12211 aix_use_runtimelinking=no
12212
12213 # Test if we are trying to use run time linking or normal
12214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12215 # need to do runtime linking.
12216 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12217 for ld_flag in $LDFLAGS; do
12218 case $ld_flag in
12219 *-brtl*)
12220 aix_use_runtimelinking=yes
12221 break
12222 ;;
12223 esac
12224 done
12225 ;;
12226 esac
12227
12228 exp_sym_flag='-bexport'
12229 no_entry_flag='-bnoentry'
12230 fi
12231
12232 # When large executables or shared objects are built, AIX ld can
12233 # have problems creating the table of contents. If linking a library
12234 # or program results in "error TOC overflow" add -mminimal-toc to
12235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12237
12238 archive_cmds_CXX=''
12239 hardcode_direct_CXX=yes
12240 hardcode_direct_absolute_CXX=yes
12241 hardcode_libdir_separator_CXX=':'
12242 link_all_deplibs_CXX=yes
12243 file_list_spec_CXX='${wl}-f,'
12244
12245 if test "$GXX" = yes; then
12246 case $host_os in aix4.[012]|aix4.[012].*)
12247 # We only want to do this on AIX 4.2 and lower, the check
12248 # below for broken collect2 doesn't work under 4.3+
12249 collect2name=`${CC} -print-prog-name=collect2`
12250 if test -f "$collect2name" &&
12251 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12252 then
12253 # We have reworked collect2
12254 :
12255 else
12256 # We have old collect2
12257 hardcode_direct_CXX=unsupported
12258 # It fails to find uninstalled libraries when the uninstalled
12259 # path is not listed in the libpath. Setting hardcode_minus_L
12260 # to unsupported forces relinking
12261 hardcode_minus_L_CXX=yes
12262 hardcode_libdir_flag_spec_CXX='-L$libdir'
12263 hardcode_libdir_separator_CXX=
12264 fi
12265 esac
12266 shared_flag='-shared'
12267 if test "$aix_use_runtimelinking" = yes; then
12268 shared_flag="$shared_flag "'${wl}-G'
12269 fi
12270 else
12271 # not using gcc
12272 if test "$host_cpu" = ia64; then
12273 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12274 # chokes on -Wl,-G. The following line is correct:
12275 shared_flag='-G'
12276 else
12277 if test "$aix_use_runtimelinking" = yes; then
12278 shared_flag='${wl}-G'
12279 else
12280 shared_flag='${wl}-bM:SRE'
12281 fi
12282 fi
12283 fi
12284
12285 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12286 # It seems that -bexpall does not export symbols beginning with
12287 # underscore (_), so it is better to generate a list of symbols to
12288 # export.
12289 always_export_symbols_CXX=yes
12290 if test "$aix_use_runtimelinking" = yes; then
12291 # Warning - without using the other runtime loading flags (-brtl),
12292 # -berok will link without error, but may produce a broken library.
12293 allow_undefined_flag_CXX='-berok'
12294 # Determine the default libpath from the value encoded in an empty
12295 # executable.
12296 if test "${lt_cv_aix_libpath+set}" = set; then
12297 aix_libpath=$lt_cv_aix_libpath
12298 else
12299 if ${lt_cv_aix_libpath__CXX+:} false; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304
12305 int
12306 main ()
12307 {
12308
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 if ac_fn_cxx_try_link "$LINENO"; then :
12314
12315 lt_aix_libpath_sed='
12316 /Import File Strings/,/^$/ {
12317 /^0/ {
12318 s/^0 *\([^ ]*\) *$/\1/
12319 p
12320 }
12321 }'
12322 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12323 # Check for a 64-bit object if we didn't find anything.
12324 if test -z "$lt_cv_aix_libpath__CXX"; then
12325 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12326 fi
12327 fi
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 if test -z "$lt_cv_aix_libpath__CXX"; then
12331 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12332 fi
12333
12334 fi
12335
12336 aix_libpath=$lt_cv_aix_libpath__CXX
12337 fi
12338
12339 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12340
12341 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"
12342 else
12343 if test "$host_cpu" = ia64; then
12344 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12345 allow_undefined_flag_CXX="-z nodefs"
12346 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"
12347 else
12348 # Determine the default libpath from the value encoded in an
12349 # empty executable.
12350 if test "${lt_cv_aix_libpath+set}" = set; then
12351 aix_libpath=$lt_cv_aix_libpath
12352 else
12353 if ${lt_cv_aix_libpath__CXX+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12358
12359 int
12360 main ()
12361 {
12362
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_cxx_try_link "$LINENO"; then :
12368
12369 lt_aix_libpath_sed='
12370 /Import File Strings/,/^$/ {
12371 /^0/ {
12372 s/^0 *\([^ ]*\) *$/\1/
12373 p
12374 }
12375 }'
12376 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12377 # Check for a 64-bit object if we didn't find anything.
12378 if test -z "$lt_cv_aix_libpath__CXX"; then
12379 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12380 fi
12381 fi
12382 rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 if test -z "$lt_cv_aix_libpath__CXX"; then
12385 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12386 fi
12387
12388 fi
12389
12390 aix_libpath=$lt_cv_aix_libpath__CXX
12391 fi
12392
12393 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12394 # Warning - without using the other run time loading flags,
12395 # -berok will link without error, but may produce a broken library.
12396 no_undefined_flag_CXX=' ${wl}-bernotok'
12397 allow_undefined_flag_CXX=' ${wl}-berok'
12398 if test "$with_gnu_ld" = yes; then
12399 # We only use this code for GNU lds that support --whole-archive.
12400 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12401 else
12402 # Exported symbols can be pulled into shared objects from archives
12403 whole_archive_flag_spec_CXX='$convenience'
12404 fi
12405 archive_cmds_need_lc_CXX=yes
12406 # This is similar to how AIX traditionally builds its shared
12407 # libraries.
12408 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'
12409 fi
12410 fi
12411 ;;
12412
12413 beos*)
12414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12415 allow_undefined_flag_CXX=unsupported
12416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12417 # support --undefined. This deserves some investigation. FIXME
12418 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12419 else
12420 ld_shlibs_CXX=no
12421 fi
12422 ;;
12423
12424 chorus*)
12425 case $cc_basename in
12426 *)
12427 # FIXME: insert proper C++ library support
12428 ld_shlibs_CXX=no
12429 ;;
12430 esac
12431 ;;
12432
12433 cygwin* | mingw* | pw32* | cegcc*)
12434 case $GXX,$cc_basename in
12435 ,cl* | no,cl*)
12436 # Native MSVC
12437 # hardcode_libdir_flag_spec is actually meaningless, as there is
12438 # no search path for DLLs.
12439 hardcode_libdir_flag_spec_CXX=' '
12440 allow_undefined_flag_CXX=unsupported
12441 always_export_symbols_CXX=yes
12442 file_list_spec_CXX='@'
12443 # Tell ltmain to make .lib files, not .a files.
12444 libext=lib
12445 # Tell ltmain to make .dll files, not .so files.
12446 shrext_cmds=".dll"
12447 # FIXME: Setting linknames here is a bad hack.
12448 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12449 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12450 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12451 else
12452 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12453 fi~
12454 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12455 linknames='
12456 # The linker will not automatically build a static lib if we build a DLL.
12457 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12458 enable_shared_with_static_runtimes_CXX=yes
12459 # Don't use ranlib
12460 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12461 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12462 lt_tool_outputfile="@TOOL_OUTPUT@"~
12463 case $lt_outputfile in
12464 *.exe|*.EXE) ;;
12465 *)
12466 lt_outputfile="$lt_outputfile.exe"
12467 lt_tool_outputfile="$lt_tool_outputfile.exe"
12468 ;;
12469 esac~
12470 func_to_tool_file "$lt_outputfile"~
12471 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12472 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12473 $RM "$lt_outputfile.manifest";
12474 fi'
12475 ;;
12476 *)
12477 # g++
12478 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12479 # as there is no search path for DLLs.
12480 hardcode_libdir_flag_spec_CXX='-L$libdir'
12481 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12482 allow_undefined_flag_CXX=unsupported
12483 always_export_symbols_CXX=no
12484 enable_shared_with_static_runtimes_CXX=yes
12485
12486 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12487 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'
12488 # If the export-symbols file already is a .def file (1st line
12489 # is EXPORTS), use it as is; otherwise, prepend...
12490 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12491 cp $export_symbols $output_objdir/$soname.def;
12492 else
12493 echo EXPORTS > $output_objdir/$soname.def;
12494 cat $export_symbols >> $output_objdir/$soname.def;
12495 fi~
12496 $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'
12497 else
12498 ld_shlibs_CXX=no
12499 fi
12500 ;;
12501 esac
12502 ;;
12503 darwin* | rhapsody*)
12504
12505
12506 archive_cmds_need_lc_CXX=no
12507 hardcode_direct_CXX=no
12508 hardcode_automatic_CXX=yes
12509 hardcode_shlibpath_var_CXX=unsupported
12510 if test "$lt_cv_ld_force_load" = "yes"; then
12511 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\"`'
12512 else
12513 whole_archive_flag_spec_CXX=''
12514 fi
12515 link_all_deplibs_CXX=yes
12516 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12517 case $cc_basename in
12518 ifort*) _lt_dar_can_shared=yes ;;
12519 *) _lt_dar_can_shared=$GCC ;;
12520 esac
12521 if test "$_lt_dar_can_shared" = "yes"; then
12522 output_verbose_link_cmd=func_echo_all
12523 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}"
12524 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12525 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}"
12526 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}"
12527 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12528 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}"
12529 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}"
12530 fi
12531
12532 else
12533 ld_shlibs_CXX=no
12534 fi
12535
12536 ;;
12537
12538 dgux*)
12539 case $cc_basename in
12540 ec++*)
12541 # FIXME: insert proper C++ library support
12542 ld_shlibs_CXX=no
12543 ;;
12544 ghcx*)
12545 # Green Hills C++ Compiler
12546 # FIXME: insert proper C++ library support
12547 ld_shlibs_CXX=no
12548 ;;
12549 *)
12550 # FIXME: insert proper C++ library support
12551 ld_shlibs_CXX=no
12552 ;;
12553 esac
12554 ;;
12555
12556 freebsd[12]*)
12557 # C++ shared libraries reported to be fairly broken before
12558 # switch to ELF
12559 ld_shlibs_CXX=no
12560 ;;
12561
12562 freebsd-elf*)
12563 archive_cmds_need_lc_CXX=no
12564 ;;
12565
12566 freebsd* | dragonfly*)
12567 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12568 # conventions
12569 ld_shlibs_CXX=yes
12570 ;;
12571
12572 gnu*)
12573 ;;
12574
12575 haiku*)
12576 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12577 link_all_deplibs_CXX=yes
12578 ;;
12579
12580 hpux9*)
12581 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12582 hardcode_libdir_separator_CXX=:
12583 export_dynamic_flag_spec_CXX='${wl}-E'
12584 hardcode_direct_CXX=yes
12585 hardcode_minus_L_CXX=yes # Not in the search PATH,
12586 # but as the default
12587 # location of the library.
12588
12589 case $cc_basename in
12590 CC*)
12591 # FIXME: insert proper C++ library support
12592 ld_shlibs_CXX=no
12593 ;;
12594 aCC*)
12595 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'
12596 # Commands to make compiler produce verbose output that lists
12597 # what "hidden" libraries, object files and flags are used when
12598 # linking a shared library.
12599 #
12600 # There doesn't appear to be a way to prevent this compiler from
12601 # explicitly linking system object files so we need to strip them
12602 # from the output so that they don't get included in the library
12603 # dependencies.
12604 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"'
12605 ;;
12606 *)
12607 if test "$GXX" = yes; then
12608 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'
12609 else
12610 # FIXME: insert proper C++ library support
12611 ld_shlibs_CXX=no
12612 fi
12613 ;;
12614 esac
12615 ;;
12616
12617 hpux10*|hpux11*)
12618 if test $with_gnu_ld = no; then
12619 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12620 hardcode_libdir_separator_CXX=:
12621
12622 case $host_cpu in
12623 hppa*64*|ia64*)
12624 ;;
12625 *)
12626 export_dynamic_flag_spec_CXX='${wl}-E'
12627 ;;
12628 esac
12629 fi
12630 case $host_cpu in
12631 hppa*64*|ia64*)
12632 hardcode_direct_CXX=no
12633 hardcode_shlibpath_var_CXX=no
12634 ;;
12635 *)
12636 hardcode_direct_CXX=yes
12637 hardcode_direct_absolute_CXX=yes
12638 hardcode_minus_L_CXX=yes # Not in the search PATH,
12639 # but as the default
12640 # location of the library.
12641 ;;
12642 esac
12643
12644 case $cc_basename in
12645 CC*)
12646 # FIXME: insert proper C++ library support
12647 ld_shlibs_CXX=no
12648 ;;
12649 aCC*)
12650 case $host_cpu in
12651 hppa*64*)
12652 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12653 ;;
12654 ia64*)
12655 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12656 ;;
12657 *)
12658 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12659 ;;
12660 esac
12661 # Commands to make compiler produce verbose output that lists
12662 # what "hidden" libraries, object files and flags are used when
12663 # linking a shared library.
12664 #
12665 # There doesn't appear to be a way to prevent this compiler from
12666 # explicitly linking system object files so we need to strip them
12667 # from the output so that they don't get included in the library
12668 # dependencies.
12669 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"'
12670 ;;
12671 *)
12672 if test "$GXX" = yes; then
12673 if test $with_gnu_ld = no; then
12674 case $host_cpu in
12675 hppa*64*)
12676 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12677 ;;
12678 ia64*)
12679 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12680 ;;
12681 *)
12682 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'
12683 ;;
12684 esac
12685 fi
12686 else
12687 # FIXME: insert proper C++ library support
12688 ld_shlibs_CXX=no
12689 fi
12690 ;;
12691 esac
12692 ;;
12693
12694 interix[3-9]*)
12695 hardcode_direct_CXX=no
12696 hardcode_shlibpath_var_CXX=no
12697 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12698 export_dynamic_flag_spec_CXX='${wl}-E'
12699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12700 # Instead, shared libraries are loaded at an image base (0x10000000 by
12701 # default) and relocated if they conflict, which is a slow very memory
12702 # consuming and fragmenting process. To avoid this, we pick a random,
12703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12705 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'
12706 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'
12707 ;;
12708 irix5* | irix6*)
12709 case $cc_basename in
12710 CC*)
12711 # SGI C++
12712 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'
12713
12714 # Archives containing C++ object files must be created using
12715 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12716 # necessary to make sure instantiated templates are included
12717 # in the archive.
12718 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12719 ;;
12720 *)
12721 if test "$GXX" = yes; then
12722 if test "$with_gnu_ld" = no; then
12723 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'
12724 else
12725 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'
12726 fi
12727 fi
12728 link_all_deplibs_CXX=yes
12729 ;;
12730 esac
12731 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12732 hardcode_libdir_separator_CXX=:
12733 inherit_rpath_CXX=yes
12734 ;;
12735
12736 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12737 case $cc_basename in
12738 KCC*)
12739 # Kuck and Associates, Inc. (KAI) C++ Compiler
12740
12741 # KCC will only create a shared library if the output file
12742 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12743 # to its proper name (with version) after linking.
12744 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'
12745 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'
12746 # Commands to make compiler produce verbose output that lists
12747 # what "hidden" libraries, object files and flags are used when
12748 # linking a shared library.
12749 #
12750 # There doesn't appear to be a way to prevent this compiler from
12751 # explicitly linking system object files so we need to strip them
12752 # from the output so that they don't get included in the library
12753 # dependencies.
12754 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"'
12755
12756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12758
12759 # Archives containing C++ object files must be created using
12760 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12761 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12762 ;;
12763 icpc* | ecpc* )
12764 # Intel C++
12765 with_gnu_ld=yes
12766 # version 8.0 and above of icpc choke on multiply defined symbols
12767 # if we add $predep_objects and $postdep_objects, however 7.1 and
12768 # earlier do not add the objects themselves.
12769 case `$CC -V 2>&1` in
12770 *"Version 7."*)
12771 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12772 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'
12773 ;;
12774 *) # Version 8.0 or newer
12775 tmp_idyn=
12776 case $host_cpu in
12777 ia64*) tmp_idyn=' -i_dynamic';;
12778 esac
12779 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12780 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'
12781 ;;
12782 esac
12783 archive_cmds_need_lc_CXX=no
12784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12785 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12786 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12787 ;;
12788 pgCC* | pgcpp*)
12789 # Portland Group C++ compiler
12790 case `$CC -V` in
12791 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12792 prelink_cmds_CXX='tpldir=Template.dir~
12793 rm -rf $tpldir~
12794 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12795 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12796 old_archive_cmds_CXX='tpldir=Template.dir~
12797 rm -rf $tpldir~
12798 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12799 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12800 $RANLIB $oldlib'
12801 archive_cmds_CXX='tpldir=Template.dir~
12802 rm -rf $tpldir~
12803 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12804 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12805 archive_expsym_cmds_CXX='tpldir=Template.dir~
12806 rm -rf $tpldir~
12807 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12808 $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'
12809 ;;
12810 *) # Version 6 and above use weak symbols
12811 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12812 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'
12813 ;;
12814 esac
12815
12816 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12817 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12818 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'
12819 ;;
12820 cxx*)
12821 # Compaq C++
12822 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 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'
12824
12825 runpath_var=LD_RUN_PATH
12826 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12827 hardcode_libdir_separator_CXX=:
12828
12829 # Commands to make compiler produce verbose output that lists
12830 # what "hidden" libraries, object files and flags are used when
12831 # linking a shared library.
12832 #
12833 # There doesn't appear to be a way to prevent this compiler from
12834 # explicitly linking system object files so we need to strip them
12835 # from the output so that they don't get included in the library
12836 # dependencies.
12837 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'
12838 ;;
12839 xl* | mpixl* | bgxl*)
12840 # IBM XL 8.0 on PPC, with GNU ld
12841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12842 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12843 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 if test "x$supports_anon_versioning" = xyes; then
12845 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12847 echo "local: *; };" >> $output_objdir/$libname.ver~
12848 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12849 fi
12850 ;;
12851 *)
12852 case `$CC -V 2>&1 | sed 5q` in
12853 *Sun\ C*)
12854 # Sun C++ 5.9
12855 no_undefined_flag_CXX=' -zdefs'
12856 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12857 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'
12858 hardcode_libdir_flag_spec_CXX='-R$libdir'
12859 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'
12860 compiler_needs_object_CXX=yes
12861
12862 # Not sure whether something based on
12863 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12864 # would be better.
12865 output_verbose_link_cmd='func_echo_all'
12866
12867 # Archives containing C++ object files must be created using
12868 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12869 # necessary to make sure instantiated templates are included
12870 # in the archive.
12871 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12872 ;;
12873 esac
12874 ;;
12875 esac
12876 ;;
12877
12878 lynxos*)
12879 # FIXME: insert proper C++ library support
12880 ld_shlibs_CXX=no
12881 ;;
12882
12883 m88k*)
12884 # FIXME: insert proper C++ library support
12885 ld_shlibs_CXX=no
12886 ;;
12887
12888 mvs*)
12889 case $cc_basename in
12890 cxx*)
12891 # FIXME: insert proper C++ library support
12892 ld_shlibs_CXX=no
12893 ;;
12894 *)
12895 # FIXME: insert proper C++ library support
12896 ld_shlibs_CXX=no
12897 ;;
12898 esac
12899 ;;
12900
12901 netbsd*)
12902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12903 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12904 wlarc=
12905 hardcode_libdir_flag_spec_CXX='-R$libdir'
12906 hardcode_direct_CXX=yes
12907 hardcode_shlibpath_var_CXX=no
12908 fi
12909 # Workaround some broken pre-1.5 toolchains
12910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12911 ;;
12912
12913 *nto* | *qnx*)
12914 ld_shlibs_CXX=yes
12915 ;;
12916
12917 openbsd2*)
12918 # C++ shared libraries are fairly broken
12919 ld_shlibs_CXX=no
12920 ;;
12921
12922 openbsd*)
12923 if test -f /usr/libexec/ld.so; then
12924 hardcode_direct_CXX=yes
12925 hardcode_shlibpath_var_CXX=no
12926 hardcode_direct_absolute_CXX=yes
12927 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12928 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12929 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12930 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12931 export_dynamic_flag_spec_CXX='${wl}-E'
12932 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12933 fi
12934 output_verbose_link_cmd=func_echo_all
12935 else
12936 ld_shlibs_CXX=no
12937 fi
12938 ;;
12939
12940 osf3* | osf4* | osf5*)
12941 case $cc_basename in
12942 KCC*)
12943 # Kuck and Associates, Inc. (KAI) C++ Compiler
12944
12945 # KCC will only create a shared library if the output file
12946 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12947 # to its proper name (with version) after linking.
12948 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'
12949
12950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12951 hardcode_libdir_separator_CXX=:
12952
12953 # Archives containing C++ object files must be created using
12954 # the KAI C++ compiler.
12955 case $host in
12956 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12957 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12958 esac
12959 ;;
12960 RCC*)
12961 # Rational C++ 2.4.1
12962 # FIXME: insert proper C++ library support
12963 ld_shlibs_CXX=no
12964 ;;
12965 cxx*)
12966 case $host in
12967 osf3*)
12968 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12969 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'
12970 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12971 ;;
12972 *)
12973 allow_undefined_flag_CXX=' -expect_unresolved \*'
12974 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'
12975 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12976 echo "-hidden">> $lib.exp~
12977 $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~
12978 $RM $lib.exp'
12979 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12980 ;;
12981 esac
12982
12983 hardcode_libdir_separator_CXX=:
12984
12985 # Commands to make compiler produce verbose output that lists
12986 # what "hidden" libraries, object files and flags are used when
12987 # linking a shared library.
12988 #
12989 # There doesn't appear to be a way to prevent this compiler from
12990 # explicitly linking system object files so we need to strip them
12991 # from the output so that they don't get included in the library
12992 # dependencies.
12993 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"'
12994 ;;
12995 *)
12996 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12997 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12998 case $host in
12999 osf3*)
13000 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'
13001 ;;
13002 *)
13003 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'
13004 ;;
13005 esac
13006
13007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13008 hardcode_libdir_separator_CXX=:
13009
13010 # Commands to make compiler produce verbose output that lists
13011 # what "hidden" libraries, object files and flags are used when
13012 # linking a shared library.
13013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13014
13015 else
13016 # FIXME: insert proper C++ library support
13017 ld_shlibs_CXX=no
13018 fi
13019 ;;
13020 esac
13021 ;;
13022
13023 psos*)
13024 # FIXME: insert proper C++ library support
13025 ld_shlibs_CXX=no
13026 ;;
13027
13028 sunos4*)
13029 case $cc_basename in
13030 CC*)
13031 # Sun C++ 4.x
13032 # FIXME: insert proper C++ library support
13033 ld_shlibs_CXX=no
13034 ;;
13035 lcc*)
13036 # Lucid
13037 # FIXME: insert proper C++ library support
13038 ld_shlibs_CXX=no
13039 ;;
13040 *)
13041 # FIXME: insert proper C++ library support
13042 ld_shlibs_CXX=no
13043 ;;
13044 esac
13045 ;;
13046
13047 solaris*)
13048 case $cc_basename in
13049 CC* | sunCC*)
13050 # Sun C++ 4.2, 5.x and Centerline C++
13051 archive_cmds_need_lc_CXX=yes
13052 no_undefined_flag_CXX=' -zdefs'
13053 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13054 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13055 $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'
13056
13057 hardcode_libdir_flag_spec_CXX='-R$libdir'
13058 hardcode_shlibpath_var_CXX=no
13059 case $host_os in
13060 solaris2.[0-5] | solaris2.[0-5].*) ;;
13061 *)
13062 # The compiler driver will combine and reorder linker options,
13063 # but understands `-z linker_flag'.
13064 # Supported since Solaris 2.6 (maybe 2.5.1?)
13065 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13066 ;;
13067 esac
13068 link_all_deplibs_CXX=yes
13069
13070 output_verbose_link_cmd='func_echo_all'
13071
13072 # Archives containing C++ object files must be created using
13073 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13074 # necessary to make sure instantiated templates are included
13075 # in the archive.
13076 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13077 ;;
13078 gcx*)
13079 # Green Hills C++ Compiler
13080 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13081
13082 # The C++ compiler must be used to create the archive.
13083 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13084 ;;
13085 *)
13086 # GNU C++ compiler with Solaris linker
13087 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13088 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13089 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13090 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13091 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13092 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13093
13094 # Commands to make compiler produce verbose output that lists
13095 # what "hidden" libraries, object files and flags are used when
13096 # linking a shared library.
13097 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13098 else
13099 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13100 # platform.
13101 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13102 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13103 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13104
13105 # Commands to make compiler produce verbose output that lists
13106 # what "hidden" libraries, object files and flags are used when
13107 # linking a shared library.
13108 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13109 fi
13110
13111 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13112 case $host_os in
13113 solaris2.[0-5] | solaris2.[0-5].*) ;;
13114 *)
13115 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13116 ;;
13117 esac
13118 fi
13119 ;;
13120 esac
13121 ;;
13122
13123 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13124 no_undefined_flag_CXX='${wl}-z,text'
13125 archive_cmds_need_lc_CXX=no
13126 hardcode_shlibpath_var_CXX=no
13127 runpath_var='LD_RUN_PATH'
13128
13129 case $cc_basename in
13130 CC*)
13131 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13133 ;;
13134 *)
13135 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13136 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13137 ;;
13138 esac
13139 ;;
13140
13141 sysv5* | sco3.2v5* | sco5v6*)
13142 # Note: We can NOT use -z defs as we might desire, because we do not
13143 # link with -lc, and that would cause any symbols used from libc to
13144 # always be unresolved, which means just about no library would
13145 # ever link correctly. If we're not using GNU ld we use -z text
13146 # though, which does catch some bad symbols but isn't as heavy-handed
13147 # as -z defs.
13148 no_undefined_flag_CXX='${wl}-z,text'
13149 allow_undefined_flag_CXX='${wl}-z,nodefs'
13150 archive_cmds_need_lc_CXX=no
13151 hardcode_shlibpath_var_CXX=no
13152 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13153 hardcode_libdir_separator_CXX=':'
13154 link_all_deplibs_CXX=yes
13155 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13156 runpath_var='LD_RUN_PATH'
13157
13158 case $cc_basename in
13159 CC*)
13160 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13161 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13162 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13163 '"$old_archive_cmds_CXX"
13164 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13165 '"$reload_cmds_CXX"
13166 ;;
13167 *)
13168 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13169 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13170 ;;
13171 esac
13172 ;;
13173
13174 tandem*)
13175 case $cc_basename in
13176 NCC*)
13177 # NonStop-UX NCC 3.20
13178 # FIXME: insert proper C++ library support
13179 ld_shlibs_CXX=no
13180 ;;
13181 *)
13182 # FIXME: insert proper C++ library support
13183 ld_shlibs_CXX=no
13184 ;;
13185 esac
13186 ;;
13187
13188 vxworks*)
13189 # FIXME: insert proper C++ library support
13190 ld_shlibs_CXX=no
13191 ;;
13192
13193 *)
13194 # FIXME: insert proper C++ library support
13195 ld_shlibs_CXX=no
13196 ;;
13197 esac
13198
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13200 $as_echo "$ld_shlibs_CXX" >&6; }
13201 test "$ld_shlibs_CXX" = no && can_build_shared=no
13202
13203 GCC_CXX="$GXX"
13204 LD_CXX="$LD"
13205
13206 ## CAVEAT EMPTOR:
13207 ## There is no encapsulation within the following macros, do not change
13208 ## the running order or otherwise move them around unless you know exactly
13209 ## what you are doing...
13210 # Dependencies to place before and after the object being linked:
13211 predep_objects_CXX=
13212 postdep_objects_CXX=
13213 predeps_CXX=
13214 postdeps_CXX=
13215 compiler_lib_search_path_CXX=
13216
13217 cat > conftest.$ac_ext <<_LT_EOF
13218 class Foo
13219 {
13220 public:
13221 Foo (void) { a = 0; }
13222 private:
13223 int a;
13224 };
13225 _LT_EOF
13226
13227
13228 _lt_libdeps_save_CFLAGS=$CFLAGS
13229 case "$CC $CFLAGS " in #(
13230 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13231 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13232 esac
13233
13234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13235 (eval $ac_compile) 2>&5
13236 ac_status=$?
13237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238 test $ac_status = 0; }; then
13239 # Parse the compiler output and extract the necessary
13240 # objects, libraries and library flags.
13241
13242 # Sentinel used to keep track of whether or not we are before
13243 # the conftest object file.
13244 pre_test_object_deps_done=no
13245
13246 for p in `eval "$output_verbose_link_cmd"`; do
13247 case ${prev}${p} in
13248
13249 -L* | -R* | -l*)
13250 # Some compilers place space between "-{L,R}" and the path.
13251 # Remove the space.
13252 if test $p = "-L" ||
13253 test $p = "-R"; then
13254 prev=$p
13255 continue
13256 fi
13257
13258 # Expand the sysroot to ease extracting the directories later.
13259 if test -z "$prev"; then
13260 case $p in
13261 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13262 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13263 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13264 esac
13265 fi
13266 case $p in
13267 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13268 esac
13269 if test "$pre_test_object_deps_done" = no; then
13270 case ${prev} in
13271 -L | -R)
13272 # Internal compiler library paths should come after those
13273 # provided the user. The postdeps already come after the
13274 # user supplied libs so there is no need to process them.
13275 if test -z "$compiler_lib_search_path_CXX"; then
13276 compiler_lib_search_path_CXX="${prev}${p}"
13277 else
13278 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13279 fi
13280 ;;
13281 # The "-l" case would never come before the object being
13282 # linked, so don't bother handling this case.
13283 esac
13284 else
13285 if test -z "$postdeps_CXX"; then
13286 postdeps_CXX="${prev}${p}"
13287 else
13288 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13289 fi
13290 fi
13291 prev=
13292 ;;
13293
13294 *.lto.$objext) ;; # Ignore GCC LTO objects
13295 *.$objext)
13296 # This assumes that the test object file only shows up
13297 # once in the compiler output.
13298 if test "$p" = "conftest.$objext"; then
13299 pre_test_object_deps_done=yes
13300 continue
13301 fi
13302
13303 if test "$pre_test_object_deps_done" = no; then
13304 if test -z "$predep_objects_CXX"; then
13305 predep_objects_CXX="$p"
13306 else
13307 predep_objects_CXX="$predep_objects_CXX $p"
13308 fi
13309 else
13310 if test -z "$postdep_objects_CXX"; then
13311 postdep_objects_CXX="$p"
13312 else
13313 postdep_objects_CXX="$postdep_objects_CXX $p"
13314 fi
13315 fi
13316 ;;
13317
13318 *) ;; # Ignore the rest.
13319
13320 esac
13321 done
13322
13323 # Clean up.
13324 rm -f a.out a.exe
13325 else
13326 echo "libtool.m4: error: problem compiling CXX test program"
13327 fi
13328
13329 $RM -f confest.$objext
13330 CFLAGS=$_lt_libdeps_save_CFLAGS
13331
13332 # PORTME: override above test on systems where it is broken
13333 case $host_os in
13334 interix[3-9]*)
13335 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13336 # hack all around it, let's just trust "g++" to DTRT.
13337 predep_objects_CXX=
13338 postdep_objects_CXX=
13339 postdeps_CXX=
13340 ;;
13341
13342 linux*)
13343 case `$CC -V 2>&1 | sed 5q` in
13344 *Sun\ C*)
13345 # Sun C++ 5.9
13346
13347 # The more standards-conforming stlport4 library is
13348 # incompatible with the Cstd library. Avoid specifying
13349 # it if it's in CXXFLAGS. Ignore libCrun as
13350 # -library=stlport4 depends on it.
13351 case " $CXX $CXXFLAGS " in
13352 *" -library=stlport4 "*)
13353 solaris_use_stlport4=yes
13354 ;;
13355 esac
13356
13357 if test "$solaris_use_stlport4" != yes; then
13358 postdeps_CXX='-library=Cstd -library=Crun'
13359 fi
13360 ;;
13361 esac
13362 ;;
13363
13364 solaris*)
13365 case $cc_basename in
13366 CC* | sunCC*)
13367 # The more standards-conforming stlport4 library is
13368 # incompatible with the Cstd library. Avoid specifying
13369 # it if it's in CXXFLAGS. Ignore libCrun as
13370 # -library=stlport4 depends on it.
13371 case " $CXX $CXXFLAGS " in
13372 *" -library=stlport4 "*)
13373 solaris_use_stlport4=yes
13374 ;;
13375 esac
13376
13377 # Adding this requires a known-good setup of shared libraries for
13378 # Sun compiler versions before 5.6, else PIC objects from an old
13379 # archive will be linked into the output, leading to subtle bugs.
13380 if test "$solaris_use_stlport4" != yes; then
13381 postdeps_CXX='-library=Cstd -library=Crun'
13382 fi
13383 ;;
13384 esac
13385 ;;
13386 esac
13387
13388
13389 case " $postdeps_CXX " in
13390 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13391 esac
13392 compiler_lib_search_dirs_CXX=
13393 if test -n "${compiler_lib_search_path_CXX}"; then
13394 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13395 fi
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427 lt_prog_compiler_wl_CXX=
13428 lt_prog_compiler_pic_CXX=
13429 lt_prog_compiler_static_CXX=
13430
13431
13432 # C++ specific cases for pic, static, wl, etc.
13433 if test "$GXX" = yes; then
13434 lt_prog_compiler_wl_CXX='-Wl,'
13435 lt_prog_compiler_static_CXX='-static'
13436
13437 case $host_os in
13438 aix*)
13439 # All AIX code is PIC.
13440 if test "$host_cpu" = ia64; then
13441 # AIX 5 now supports IA64 processor
13442 lt_prog_compiler_static_CXX='-Bstatic'
13443 fi
13444 ;;
13445
13446 amigaos*)
13447 case $host_cpu in
13448 powerpc)
13449 # see comment about AmigaOS4 .so support
13450 lt_prog_compiler_pic_CXX='-fPIC'
13451 ;;
13452 m68k)
13453 # FIXME: we need at least 68020 code to build shared libraries, but
13454 # adding the `-m68020' flag to GCC prevents building anything better,
13455 # like `-m68040'.
13456 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13457 ;;
13458 esac
13459 ;;
13460
13461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13462 # PIC is the default for these OSes.
13463 ;;
13464 mingw* | cygwin* | os2* | pw32* | cegcc*)
13465 # This hack is so that the source file can tell whether it is being
13466 # built for inclusion in a dll (and should export symbols for example).
13467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13468 # (--disable-auto-import) libraries
13469 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13470 ;;
13471 darwin* | rhapsody*)
13472 # PIC is the default on this platform
13473 # Common symbols not allowed in MH_DYLIB files
13474 lt_prog_compiler_pic_CXX='-fno-common'
13475 ;;
13476 *djgpp*)
13477 # DJGPP does not support shared libraries at all
13478 lt_prog_compiler_pic_CXX=
13479 ;;
13480 haiku*)
13481 # PIC is the default for Haiku.
13482 # The "-static" flag exists, but is broken.
13483 lt_prog_compiler_static_CXX=
13484 ;;
13485 interix[3-9]*)
13486 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13487 # Instead, we relocate shared libraries at runtime.
13488 ;;
13489 sysv4*MP*)
13490 if test -d /usr/nec; then
13491 lt_prog_compiler_pic_CXX=-Kconform_pic
13492 fi
13493 ;;
13494 hpux*)
13495 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13496 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13497 # sets the default TLS model and affects inlining.
13498 case $host_cpu in
13499 hppa*64*)
13500 ;;
13501 *)
13502 lt_prog_compiler_pic_CXX='-fPIC'
13503 ;;
13504 esac
13505 ;;
13506 *qnx* | *nto*)
13507 # QNX uses GNU C++, but need to define -shared option too, otherwise
13508 # it will coredump.
13509 lt_prog_compiler_pic_CXX='-fPIC -shared'
13510 ;;
13511 *)
13512 lt_prog_compiler_pic_CXX='-fPIC'
13513 ;;
13514 esac
13515 else
13516 case $host_os in
13517 aix[4-9]*)
13518 # All AIX code is PIC.
13519 if test "$host_cpu" = ia64; then
13520 # AIX 5 now supports IA64 processor
13521 lt_prog_compiler_static_CXX='-Bstatic'
13522 else
13523 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13524 fi
13525 ;;
13526 chorus*)
13527 case $cc_basename in
13528 cxch68*)
13529 # Green Hills C++ Compiler
13530 # _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"
13531 ;;
13532 esac
13533 ;;
13534 mingw* | cygwin* | os2* | pw32* | cegcc*)
13535 # This hack is so that the source file can tell whether it is being
13536 # built for inclusion in a dll (and should export symbols for example).
13537 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13538 ;;
13539 dgux*)
13540 case $cc_basename in
13541 ec++*)
13542 lt_prog_compiler_pic_CXX='-KPIC'
13543 ;;
13544 ghcx*)
13545 # Green Hills C++ Compiler
13546 lt_prog_compiler_pic_CXX='-pic'
13547 ;;
13548 *)
13549 ;;
13550 esac
13551 ;;
13552 freebsd* | dragonfly*)
13553 # FreeBSD uses GNU C++
13554 ;;
13555 hpux9* | hpux10* | hpux11*)
13556 case $cc_basename in
13557 CC*)
13558 lt_prog_compiler_wl_CXX='-Wl,'
13559 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13560 if test "$host_cpu" != ia64; then
13561 lt_prog_compiler_pic_CXX='+Z'
13562 fi
13563 ;;
13564 aCC*)
13565 lt_prog_compiler_wl_CXX='-Wl,'
13566 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13567 case $host_cpu in
13568 hppa*64*|ia64*)
13569 # +Z the default
13570 ;;
13571 *)
13572 lt_prog_compiler_pic_CXX='+Z'
13573 ;;
13574 esac
13575 ;;
13576 *)
13577 ;;
13578 esac
13579 ;;
13580 interix*)
13581 # This is c89, which is MS Visual C++ (no shared libs)
13582 # Anyone wants to do a port?
13583 ;;
13584 irix5* | irix6* | nonstopux*)
13585 case $cc_basename in
13586 CC*)
13587 lt_prog_compiler_wl_CXX='-Wl,'
13588 lt_prog_compiler_static_CXX='-non_shared'
13589 # CC pic flag -KPIC is the default.
13590 ;;
13591 *)
13592 ;;
13593 esac
13594 ;;
13595 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13596 case $cc_basename in
13597 KCC*)
13598 # KAI C++ Compiler
13599 lt_prog_compiler_wl_CXX='--backend -Wl,'
13600 lt_prog_compiler_pic_CXX='-fPIC'
13601 ;;
13602 ecpc* )
13603 # old Intel C++ for x86_64 which still supported -KPIC.
13604 lt_prog_compiler_wl_CXX='-Wl,'
13605 lt_prog_compiler_pic_CXX='-KPIC'
13606 lt_prog_compiler_static_CXX='-static'
13607 ;;
13608 icpc* )
13609 # Intel C++, used to be incompatible with GCC.
13610 # ICC 10 doesn't accept -KPIC any more.
13611 lt_prog_compiler_wl_CXX='-Wl,'
13612 lt_prog_compiler_pic_CXX='-fPIC'
13613 lt_prog_compiler_static_CXX='-static'
13614 ;;
13615 pgCC* | pgcpp*)
13616 # Portland Group C++ compiler
13617 lt_prog_compiler_wl_CXX='-Wl,'
13618 lt_prog_compiler_pic_CXX='-fpic'
13619 lt_prog_compiler_static_CXX='-Bstatic'
13620 ;;
13621 cxx*)
13622 # Compaq C++
13623 # Make sure the PIC flag is empty. It appears that all Alpha
13624 # Linux and Compaq Tru64 Unix objects are PIC.
13625 lt_prog_compiler_pic_CXX=
13626 lt_prog_compiler_static_CXX='-non_shared'
13627 ;;
13628 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13629 # IBM XL 8.0, 9.0 on PPC and BlueGene
13630 lt_prog_compiler_wl_CXX='-Wl,'
13631 lt_prog_compiler_pic_CXX='-qpic'
13632 lt_prog_compiler_static_CXX='-qstaticlink'
13633 ;;
13634 *)
13635 case `$CC -V 2>&1 | sed 5q` in
13636 *Sun\ C*)
13637 # Sun C++ 5.9
13638 lt_prog_compiler_pic_CXX='-KPIC'
13639 lt_prog_compiler_static_CXX='-Bstatic'
13640 lt_prog_compiler_wl_CXX='-Qoption ld '
13641 ;;
13642 esac
13643 ;;
13644 esac
13645 ;;
13646 lynxos*)
13647 ;;
13648 m88k*)
13649 ;;
13650 mvs*)
13651 case $cc_basename in
13652 cxx*)
13653 lt_prog_compiler_pic_CXX='-W c,exportall'
13654 ;;
13655 *)
13656 ;;
13657 esac
13658 ;;
13659 netbsd* | netbsdelf*-gnu)
13660 ;;
13661 *qnx* | *nto*)
13662 # QNX uses GNU C++, but need to define -shared option too, otherwise
13663 # it will coredump.
13664 lt_prog_compiler_pic_CXX='-fPIC -shared'
13665 ;;
13666 osf3* | osf4* | osf5*)
13667 case $cc_basename in
13668 KCC*)
13669 lt_prog_compiler_wl_CXX='--backend -Wl,'
13670 ;;
13671 RCC*)
13672 # Rational C++ 2.4.1
13673 lt_prog_compiler_pic_CXX='-pic'
13674 ;;
13675 cxx*)
13676 # Digital/Compaq C++
13677 lt_prog_compiler_wl_CXX='-Wl,'
13678 # Make sure the PIC flag is empty. It appears that all Alpha
13679 # Linux and Compaq Tru64 Unix objects are PIC.
13680 lt_prog_compiler_pic_CXX=
13681 lt_prog_compiler_static_CXX='-non_shared'
13682 ;;
13683 *)
13684 ;;
13685 esac
13686 ;;
13687 psos*)
13688 ;;
13689 solaris*)
13690 case $cc_basename in
13691 CC* | sunCC*)
13692 # Sun C++ 4.2, 5.x and Centerline C++
13693 lt_prog_compiler_pic_CXX='-KPIC'
13694 lt_prog_compiler_static_CXX='-Bstatic'
13695 lt_prog_compiler_wl_CXX='-Qoption ld '
13696 ;;
13697 gcx*)
13698 # Green Hills C++ Compiler
13699 lt_prog_compiler_pic_CXX='-PIC'
13700 ;;
13701 *)
13702 ;;
13703 esac
13704 ;;
13705 sunos4*)
13706 case $cc_basename in
13707 CC*)
13708 # Sun C++ 4.x
13709 lt_prog_compiler_pic_CXX='-pic'
13710 lt_prog_compiler_static_CXX='-Bstatic'
13711 ;;
13712 lcc*)
13713 # Lucid
13714 lt_prog_compiler_pic_CXX='-pic'
13715 ;;
13716 *)
13717 ;;
13718 esac
13719 ;;
13720 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13721 case $cc_basename in
13722 CC*)
13723 lt_prog_compiler_wl_CXX='-Wl,'
13724 lt_prog_compiler_pic_CXX='-KPIC'
13725 lt_prog_compiler_static_CXX='-Bstatic'
13726 ;;
13727 esac
13728 ;;
13729 tandem*)
13730 case $cc_basename in
13731 NCC*)
13732 # NonStop-UX NCC 3.20
13733 lt_prog_compiler_pic_CXX='-KPIC'
13734 ;;
13735 *)
13736 ;;
13737 esac
13738 ;;
13739 vxworks*)
13740 ;;
13741 *)
13742 lt_prog_compiler_can_build_shared_CXX=no
13743 ;;
13744 esac
13745 fi
13746
13747 case $host_os in
13748 # For platforms which do not support PIC, -DPIC is meaningless:
13749 *djgpp*)
13750 lt_prog_compiler_pic_CXX=
13751 ;;
13752 *)
13753 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13754 ;;
13755 esac
13756
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13758 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13759 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13763 fi
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13765 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13766 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13767
13768 #
13769 # Check to make sure the PIC flag actually works.
13770 #
13771 if test -n "$lt_prog_compiler_pic_CXX"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13773 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13774 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13775 $as_echo_n "(cached) " >&6
13776 else
13777 lt_cv_prog_compiler_pic_works_CXX=no
13778 ac_outfile=conftest.$ac_objext
13779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13780 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13781 # Insert the option either (1) after the last *FLAGS variable, or
13782 # (2) before a word containing "conftest.", or (3) at the end.
13783 # Note that $ac_compile itself does not contain backslashes and begins
13784 # with a dollar sign (not a hyphen), so the echo should work correctly.
13785 # The option is referenced via a variable to avoid confusing sed.
13786 lt_compile=`echo "$ac_compile" | $SED \
13787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13789 -e 's:$: $lt_compiler_flag:'`
13790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13791 (eval "$lt_compile" 2>conftest.err)
13792 ac_status=$?
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 if (exit $ac_status) && test -s "$ac_outfile"; then
13796 # The compiler can only warn and ignore the option if not recognized
13797 # So say no if there are warnings other than the usual output.
13798 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13801 lt_cv_prog_compiler_pic_works_CXX=yes
13802 fi
13803 fi
13804 $RM conftest*
13805
13806 fi
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13808 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13809
13810 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13811 case $lt_prog_compiler_pic_CXX in
13812 "" | " "*) ;;
13813 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13814 esac
13815 else
13816 lt_prog_compiler_pic_CXX=
13817 lt_prog_compiler_can_build_shared_CXX=no
13818 fi
13819
13820 fi
13821
13822
13823
13824
13825
13826 #
13827 # Check to make sure the static flag actually works.
13828 #
13829 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13831 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13832 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13833 $as_echo_n "(cached) " >&6
13834 else
13835 lt_cv_prog_compiler_static_works_CXX=no
13836 save_LDFLAGS="$LDFLAGS"
13837 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13838 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13839 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13840 # The linker can only warn and ignore the option if not recognized
13841 # So say no if there are warnings
13842 if test -s conftest.err; then
13843 # Append any errors to the config.log.
13844 cat conftest.err 1>&5
13845 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13847 if diff conftest.exp conftest.er2 >/dev/null; then
13848 lt_cv_prog_compiler_static_works_CXX=yes
13849 fi
13850 else
13851 lt_cv_prog_compiler_static_works_CXX=yes
13852 fi
13853 fi
13854 $RM -r conftest*
13855 LDFLAGS="$save_LDFLAGS"
13856
13857 fi
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13859 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13860
13861 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13862 :
13863 else
13864 lt_prog_compiler_static_CXX=
13865 fi
13866
13867
13868
13869
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13871 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13872 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 lt_cv_prog_compiler_c_o_CXX=no
13876 $RM -r conftest 2>/dev/null
13877 mkdir conftest
13878 cd conftest
13879 mkdir out
13880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13881
13882 lt_compiler_flag="-o out/conftest2.$ac_objext"
13883 # Insert the option either (1) after the last *FLAGS variable, or
13884 # (2) before a word containing "conftest.", or (3) at the end.
13885 # Note that $ac_compile itself does not contain backslashes and begins
13886 # with a dollar sign (not a hyphen), so the echo should work correctly.
13887 lt_compile=`echo "$ac_compile" | $SED \
13888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13890 -e 's:$: $lt_compiler_flag:'`
13891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13892 (eval "$lt_compile" 2>out/conftest.err)
13893 ac_status=$?
13894 cat out/conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13897 then
13898 # The compiler can only warn and ignore the option if not recognized
13899 # So say no if there are warnings
13900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13903 lt_cv_prog_compiler_c_o_CXX=yes
13904 fi
13905 fi
13906 chmod u+w . 2>&5
13907 $RM conftest*
13908 # SGI C++ compiler will create directory out/ii_files/ for
13909 # template instantiation
13910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13911 $RM out/* && rmdir out
13912 cd ..
13913 $RM -r conftest
13914 $RM conftest*
13915
13916 fi
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13918 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13919
13920
13921
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13923 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13924 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13925 $as_echo_n "(cached) " >&6
13926 else
13927 lt_cv_prog_compiler_c_o_CXX=no
13928 $RM -r conftest 2>/dev/null
13929 mkdir conftest
13930 cd conftest
13931 mkdir out
13932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13933
13934 lt_compiler_flag="-o out/conftest2.$ac_objext"
13935 # Insert the option either (1) after the last *FLAGS variable, or
13936 # (2) before a word containing "conftest.", or (3) at the end.
13937 # Note that $ac_compile itself does not contain backslashes and begins
13938 # with a dollar sign (not a hyphen), so the echo should work correctly.
13939 lt_compile=`echo "$ac_compile" | $SED \
13940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13942 -e 's:$: $lt_compiler_flag:'`
13943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13944 (eval "$lt_compile" 2>out/conftest.err)
13945 ac_status=$?
13946 cat out/conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13949 then
13950 # The compiler can only warn and ignore the option if not recognized
13951 # So say no if there are warnings
13952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13955 lt_cv_prog_compiler_c_o_CXX=yes
13956 fi
13957 fi
13958 chmod u+w . 2>&5
13959 $RM conftest*
13960 # SGI C++ compiler will create directory out/ii_files/ for
13961 # template instantiation
13962 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13963 $RM out/* && rmdir out
13964 cd ..
13965 $RM -r conftest
13966 $RM conftest*
13967
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13970 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13971
13972
13973
13974
13975 hard_links="nottested"
13976 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13977 # do not overwrite the value of need_locks provided by the user
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13979 $as_echo_n "checking if we can lock with hard links... " >&6; }
13980 hard_links=yes
13981 $RM conftest*
13982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13983 touch conftest.a
13984 ln conftest.a conftest.b 2>&5 || hard_links=no
13985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13987 $as_echo "$hard_links" >&6; }
13988 if test "$hard_links" = no; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13990 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13991 need_locks=warn
13992 fi
13993 else
13994 need_locks=no
13995 fi
13996
13997
13998
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14000 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14001
14002 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14003 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14004 case $host_os in
14005 aix[4-9]*)
14006 # If we're using GNU nm, then we don't want the "-C" option.
14007 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14008 # Also, AIX nm treats weak defined symbols like other global defined
14009 # symbols, whereas GNU nm marks them as "W".
14010 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14011 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'
14012 else
14013 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'
14014 fi
14015 ;;
14016 pw32*)
14017 export_symbols_cmds_CXX="$ltdll_cmds"
14018 ;;
14019 cygwin* | mingw* | cegcc*)
14020 case $cc_basename in
14021 cl*) ;;
14022 *)
14023 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'
14024 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14025 ;;
14026 esac
14027 ;;
14028 linux* | k*bsd*-gnu | gnu*)
14029 link_all_deplibs_CXX=no
14030 ;;
14031 *)
14032 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14033 ;;
14034 esac
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14037 $as_echo "$ld_shlibs_CXX" >&6; }
14038 test "$ld_shlibs_CXX" = no && can_build_shared=no
14039
14040 with_gnu_ld_CXX=$with_gnu_ld
14041
14042
14043
14044
14045
14046
14047 #
14048 # Do we need to explicitly link libc?
14049 #
14050 case "x$archive_cmds_need_lc_CXX" in
14051 x|xyes)
14052 # Assume -lc should be added
14053 archive_cmds_need_lc_CXX=yes
14054
14055 if test "$enable_shared" = yes && test "$GCC" = yes; then
14056 case $archive_cmds_CXX in
14057 *'~'*)
14058 # FIXME: we may have to deal with multi-command sequences.
14059 ;;
14060 '$CC '*)
14061 # Test whether the compiler implicitly links with -lc since on some
14062 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14063 # to ld, don't add -lc before -lgcc.
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14065 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14066 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 $RM conftest*
14070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14071
14072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14073 (eval $ac_compile) 2>&5
14074 ac_status=$?
14075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14076 test $ac_status = 0; } 2>conftest.err; then
14077 soname=conftest
14078 lib=conftest
14079 libobjs=conftest.$ac_objext
14080 deplibs=
14081 wl=$lt_prog_compiler_wl_CXX
14082 pic_flag=$lt_prog_compiler_pic_CXX
14083 compiler_flags=-v
14084 linker_flags=-v
14085 verstring=
14086 output_objdir=.
14087 libname=conftest
14088 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14089 allow_undefined_flag_CXX=
14090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14091 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14092 ac_status=$?
14093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14094 test $ac_status = 0; }
14095 then
14096 lt_cv_archive_cmds_need_lc_CXX=no
14097 else
14098 lt_cv_archive_cmds_need_lc_CXX=yes
14099 fi
14100 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14101 else
14102 cat conftest.err 1>&5
14103 fi
14104 $RM conftest*
14105
14106 fi
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14108 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14109 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14110 ;;
14111 esac
14112 fi
14113 ;;
14114 esac
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14180 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14181
14182 library_names_spec=
14183 libname_spec='lib$name'
14184 soname_spec=
14185 shrext_cmds=".so"
14186 postinstall_cmds=
14187 postuninstall_cmds=
14188 finish_cmds=
14189 finish_eval=
14190 shlibpath_var=
14191 shlibpath_overrides_runpath=unknown
14192 version_type=none
14193 dynamic_linker="$host_os ld.so"
14194 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14195 need_lib_prefix=unknown
14196 hardcode_into_libs=no
14197
14198 # when you set need_version to no, make sure it does not cause -set_version
14199 # flags to be left without arguments
14200 need_version=unknown
14201
14202 case $host_os in
14203 aix3*)
14204 version_type=linux
14205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14206 shlibpath_var=LIBPATH
14207
14208 # AIX 3 has no versioning support, so we append a major version to the name.
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 ;;
14211
14212 aix[4-9]*)
14213 version_type=linux
14214 need_lib_prefix=no
14215 need_version=no
14216 hardcode_into_libs=yes
14217 if test "$host_cpu" = ia64; then
14218 # AIX 5 supports IA64
14219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14220 shlibpath_var=LD_LIBRARY_PATH
14221 else
14222 # With GCC up to 2.95.x, collect2 would create an import file
14223 # for dependence libraries. The import file would start with
14224 # the line `#! .'. This would cause the generated library to
14225 # depend on `.', always an invalid library. This was fixed in
14226 # development snapshots of GCC prior to 3.0.
14227 case $host_os in
14228 aix4 | aix4.[01] | aix4.[01].*)
14229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14230 echo ' yes '
14231 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14232 :
14233 else
14234 can_build_shared=no
14235 fi
14236 ;;
14237 esac
14238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14239 # soname into executable. Probably we can add versioning support to
14240 # collect2, so additional links can be useful in future.
14241 if test "$aix_use_runtimelinking" = yes; then
14242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14243 # instead of lib<name>.a to let people know that these are not
14244 # typical AIX shared libraries.
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246 else
14247 # We preserve .a as extension for shared libraries through AIX4.2
14248 # and later when we are not doing run time linking.
14249 library_names_spec='${libname}${release}.a $libname.a'
14250 soname_spec='${libname}${release}${shared_ext}$major'
14251 fi
14252 shlibpath_var=LIBPATH
14253 fi
14254 ;;
14255
14256 amigaos*)
14257 case $host_cpu in
14258 powerpc)
14259 # Since July 2007 AmigaOS4 officially supports .so libraries.
14260 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 ;;
14263 m68k)
14264 library_names_spec='$libname.ixlibrary $libname.a'
14265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14266 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'
14267 ;;
14268 esac
14269 ;;
14270
14271 beos*)
14272 library_names_spec='${libname}${shared_ext}'
14273 dynamic_linker="$host_os ld.so"
14274 shlibpath_var=LIBRARY_PATH
14275 ;;
14276
14277 bsdi[45]*)
14278 version_type=linux
14279 need_version=no
14280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14281 soname_spec='${libname}${release}${shared_ext}$major'
14282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14283 shlibpath_var=LD_LIBRARY_PATH
14284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14286 # the default ld.so.conf also contains /usr/contrib/lib and
14287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14288 # libtool to hard-code these into programs
14289 ;;
14290
14291 cygwin* | mingw* | pw32* | cegcc*)
14292 version_type=windows
14293 shrext_cmds=".dll"
14294 need_version=no
14295 need_lib_prefix=no
14296
14297 case $GCC,$cc_basename in
14298 yes,*)
14299 # gcc
14300 library_names_spec='$libname.dll.a'
14301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14302 postinstall_cmds='base_file=`basename \${file}`~
14303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14304 dldir=$destdir/`dirname \$dlpath`~
14305 test -d \$dldir || mkdir -p \$dldir~
14306 $install_prog $dir/$dlname \$dldir/$dlname~
14307 chmod a+x \$dldir/$dlname~
14308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14310 fi'
14311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14312 dlpath=$dir/\$dldll~
14313 $RM \$dlpath'
14314 shlibpath_overrides_runpath=yes
14315
14316 case $host_os in
14317 cygwin*)
14318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14320
14321 ;;
14322 mingw* | cegcc*)
14323 # MinGW DLLs use traditional 'lib' prefix
14324 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14325 ;;
14326 pw32*)
14327 # pw32 DLLs use 'pw' prefix rather than 'lib'
14328 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14329 ;;
14330 esac
14331 dynamic_linker='Win32 ld.exe'
14332 ;;
14333
14334 *,cl*)
14335 # Native MSVC
14336 libname_spec='$name'
14337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14338 library_names_spec='${libname}.dll.lib'
14339
14340 case $build_os in
14341 mingw*)
14342 sys_lib_search_path_spec=
14343 lt_save_ifs=$IFS
14344 IFS=';'
14345 for lt_path in $LIB
14346 do
14347 IFS=$lt_save_ifs
14348 # Let DOS variable expansion print the short 8.3 style file name.
14349 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14350 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14351 done
14352 IFS=$lt_save_ifs
14353 # Convert to MSYS style.
14354 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14355 ;;
14356 cygwin*)
14357 # Convert to unix form, then to dos form, then back to unix form
14358 # but this time dos style (no spaces!) so that the unix form looks
14359 # like /cygdrive/c/PROGRA~1:/cygdr...
14360 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14361 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14362 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14363 ;;
14364 *)
14365 sys_lib_search_path_spec="$LIB"
14366 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14367 # It is most probably a Windows format PATH.
14368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14369 else
14370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14371 fi
14372 # FIXME: find the short name or the path components, as spaces are
14373 # common. (e.g. "Program Files" -> "PROGRA~1")
14374 ;;
14375 esac
14376
14377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14378 postinstall_cmds='base_file=`basename \${file}`~
14379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14380 dldir=$destdir/`dirname \$dlpath`~
14381 test -d \$dldir || mkdir -p \$dldir~
14382 $install_prog $dir/$dlname \$dldir/$dlname'
14383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14384 dlpath=$dir/\$dldll~
14385 $RM \$dlpath'
14386 shlibpath_overrides_runpath=yes
14387 dynamic_linker='Win32 link.exe'
14388 ;;
14389
14390 *)
14391 # Assume MSVC wrapper
14392 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14393 dynamic_linker='Win32 ld.exe'
14394 ;;
14395 esac
14396 # FIXME: first we should search . and the directory the executable is in
14397 shlibpath_var=PATH
14398 ;;
14399
14400 darwin* | rhapsody*)
14401 dynamic_linker="$host_os dyld"
14402 version_type=darwin
14403 need_lib_prefix=no
14404 need_version=no
14405 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14406 soname_spec='${libname}${release}${major}$shared_ext'
14407 shlibpath_overrides_runpath=yes
14408 shlibpath_var=DYLD_LIBRARY_PATH
14409 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14410
14411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14412 ;;
14413
14414 dgux*)
14415 version_type=linux
14416 need_lib_prefix=no
14417 need_version=no
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 shlibpath_var=LD_LIBRARY_PATH
14421 ;;
14422
14423 freebsd1*)
14424 dynamic_linker=no
14425 ;;
14426
14427 freebsd* | dragonfly*)
14428 # DragonFly does not have aout. When/if they implement a new
14429 # versioning mechanism, adjust this.
14430 if test -x /usr/bin/objformat; then
14431 objformat=`/usr/bin/objformat`
14432 else
14433 case $host_os in
14434 freebsd[123]*) objformat=aout ;;
14435 *) objformat=elf ;;
14436 esac
14437 fi
14438 version_type=freebsd-$objformat
14439 case $version_type in
14440 freebsd-elf*)
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14442 need_version=no
14443 need_lib_prefix=no
14444 ;;
14445 freebsd-*)
14446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14447 need_version=yes
14448 ;;
14449 esac
14450 shlibpath_var=LD_LIBRARY_PATH
14451 case $host_os in
14452 freebsd2*)
14453 shlibpath_overrides_runpath=yes
14454 ;;
14455 freebsd3.[01]* | freebsdelf3.[01]*)
14456 shlibpath_overrides_runpath=yes
14457 hardcode_into_libs=yes
14458 ;;
14459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14461 shlibpath_overrides_runpath=no
14462 hardcode_into_libs=yes
14463 ;;
14464 *) # from 4.6 on, and DragonFly
14465 shlibpath_overrides_runpath=yes
14466 hardcode_into_libs=yes
14467 ;;
14468 esac
14469 ;;
14470
14471 gnu*)
14472 version_type=linux
14473 need_lib_prefix=no
14474 need_version=no
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14476 soname_spec='${libname}${release}${shared_ext}$major'
14477 shlibpath_var=LD_LIBRARY_PATH
14478 shlibpath_overrides_runpath=no
14479 hardcode_into_libs=yes
14480 ;;
14481
14482 haiku*)
14483 version_type=linux
14484 need_lib_prefix=no
14485 need_version=no
14486 dynamic_linker="$host_os runtime_loader"
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 shlibpath_var=LIBRARY_PATH
14490 shlibpath_overrides_runpath=yes
14491 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14492 hardcode_into_libs=yes
14493 ;;
14494
14495 hpux9* | hpux10* | hpux11*)
14496 # Give a soname corresponding to the major version so that dld.sl refuses to
14497 # link against other versions.
14498 version_type=sunos
14499 need_lib_prefix=no
14500 need_version=no
14501 case $host_cpu in
14502 ia64*)
14503 shrext_cmds='.so'
14504 hardcode_into_libs=yes
14505 dynamic_linker="$host_os dld.so"
14506 shlibpath_var=LD_LIBRARY_PATH
14507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 if test "X$HPUX_IA64_MODE" = X32; then
14511 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14512 else
14513 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14514 fi
14515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14516 ;;
14517 hppa*64*)
14518 shrext_cmds='.sl'
14519 hardcode_into_libs=yes
14520 dynamic_linker="$host_os dld.sl"
14521 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14527 ;;
14528 *)
14529 shrext_cmds='.sl'
14530 dynamic_linker="$host_os dld.sl"
14531 shlibpath_var=SHLIB_PATH
14532 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534 soname_spec='${libname}${release}${shared_ext}$major'
14535 ;;
14536 esac
14537 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14538 postinstall_cmds='chmod 555 $lib'
14539 # or fails outright, so override atomically:
14540 install_override_mode=555
14541 ;;
14542
14543 interix[3-9]*)
14544 version_type=linux
14545 need_lib_prefix=no
14546 need_version=no
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath=no
14552 hardcode_into_libs=yes
14553 ;;
14554
14555 irix5* | irix6* | nonstopux*)
14556 case $host_os in
14557 nonstopux*) version_type=nonstopux ;;
14558 *)
14559 if test "$lt_cv_prog_gnu_ld" = yes; then
14560 version_type=linux
14561 else
14562 version_type=irix
14563 fi ;;
14564 esac
14565 need_lib_prefix=no
14566 need_version=no
14567 soname_spec='${libname}${release}${shared_ext}$major'
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14569 case $host_os in
14570 irix5* | nonstopux*)
14571 libsuff= shlibsuff=
14572 ;;
14573 *)
14574 case $LD in # libtool.m4 will add one of these switches to LD
14575 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14576 libsuff= shlibsuff= libmagic=32-bit;;
14577 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14578 libsuff=32 shlibsuff=N32 libmagic=N32;;
14579 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14580 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14581 *) libsuff= shlibsuff= libmagic=never-match;;
14582 esac
14583 ;;
14584 esac
14585 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14586 shlibpath_overrides_runpath=no
14587 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14588 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14589 hardcode_into_libs=yes
14590 ;;
14591
14592 # No shared lib support for Linux oldld, aout, or coff.
14593 linux*oldld* | linux*aout* | linux*coff*)
14594 dynamic_linker=no
14595 ;;
14596
14597 # This must be Linux ELF.
14598 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14599 version_type=linux
14600 need_lib_prefix=no
14601 need_version=no
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=no
14607
14608 # Some binutils ld are patched to set DT_RUNPATH
14609 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 lt_cv_shlibpath_overrides_runpath=no
14613 save_LDFLAGS=$LDFLAGS
14614 save_libdir=$libdir
14615 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14616 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619
14620 int
14621 main ()
14622 {
14623
14624 ;
14625 return 0;
14626 }
14627 _ACEOF
14628 if ac_fn_cxx_try_link "$LINENO"; then :
14629 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14630 lt_cv_shlibpath_overrides_runpath=yes
14631 fi
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635 LDFLAGS=$save_LDFLAGS
14636 libdir=$save_libdir
14637
14638 fi
14639
14640 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14641
14642 # This implies no fast_install, which is unacceptable.
14643 # Some rework will be needed to allow for fast_install
14644 # before this can be enabled.
14645 hardcode_into_libs=yes
14646
14647 # Append ld.so.conf contents to the search path
14648 if test -f /etc/ld.so.conf; then
14649 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' ' '`
14650 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14651 fi
14652
14653 # We used to test for /lib/ld.so.1 and disable shared libraries on
14654 # powerpc, because MkLinux only supported shared libraries with the
14655 # GNU dynamic linker. Since this was broken with cross compilers,
14656 # most powerpc-linux boxes support dynamic linking these days and
14657 # people can always --disable-shared, the test was removed, and we
14658 # assume the GNU/Linux dynamic linker is in use.
14659 dynamic_linker='GNU/Linux ld.so'
14660 ;;
14661
14662 netbsdelf*-gnu)
14663 version_type=linux
14664 need_lib_prefix=no
14665 need_version=no
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 shlibpath_overrides_runpath=no
14670 hardcode_into_libs=yes
14671 dynamic_linker='NetBSD ld.elf_so'
14672 ;;
14673
14674 netbsd*)
14675 version_type=sunos
14676 need_lib_prefix=no
14677 need_version=no
14678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14681 dynamic_linker='NetBSD (a.out) ld.so'
14682 else
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14684 soname_spec='${libname}${release}${shared_ext}$major'
14685 dynamic_linker='NetBSD ld.elf_so'
14686 fi
14687 shlibpath_var=LD_LIBRARY_PATH
14688 shlibpath_overrides_runpath=yes
14689 hardcode_into_libs=yes
14690 ;;
14691
14692 newsos6)
14693 version_type=linux
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 shlibpath_overrides_runpath=yes
14697 ;;
14698
14699 *nto* | *qnx*)
14700 version_type=qnx
14701 need_lib_prefix=no
14702 need_version=no
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 shlibpath_var=LD_LIBRARY_PATH
14706 shlibpath_overrides_runpath=no
14707 hardcode_into_libs=yes
14708 dynamic_linker='ldqnx.so'
14709 ;;
14710
14711 openbsd*)
14712 version_type=sunos
14713 sys_lib_dlsearch_path_spec="/usr/lib"
14714 need_lib_prefix=no
14715 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14716 case $host_os in
14717 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14718 *) need_version=no ;;
14719 esac
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14724 case $host_os in
14725 openbsd2.[89] | openbsd2.[89].*)
14726 shlibpath_overrides_runpath=no
14727 ;;
14728 *)
14729 shlibpath_overrides_runpath=yes
14730 ;;
14731 esac
14732 else
14733 shlibpath_overrides_runpath=yes
14734 fi
14735 ;;
14736
14737 os2*)
14738 libname_spec='$name'
14739 shrext_cmds=".dll"
14740 need_lib_prefix=no
14741 library_names_spec='$libname${shared_ext} $libname.a'
14742 dynamic_linker='OS/2 ld.exe'
14743 shlibpath_var=LIBPATH
14744 ;;
14745
14746 osf3* | osf4* | osf5*)
14747 version_type=osf
14748 need_lib_prefix=no
14749 need_version=no
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752 shlibpath_var=LD_LIBRARY_PATH
14753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14754 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14755 ;;
14756
14757 rdos*)
14758 dynamic_linker=no
14759 ;;
14760
14761 solaris*)
14762 version_type=linux
14763 need_lib_prefix=no
14764 need_version=no
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 shlibpath_var=LD_LIBRARY_PATH
14768 shlibpath_overrides_runpath=yes
14769 hardcode_into_libs=yes
14770 # ldd complains unless libraries are executable
14771 postinstall_cmds='chmod +x $lib'
14772 ;;
14773
14774 sunos4*)
14775 version_type=sunos
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=yes
14780 if test "$with_gnu_ld" = yes; then
14781 need_lib_prefix=no
14782 fi
14783 need_version=yes
14784 ;;
14785
14786 sysv4 | sysv4.3*)
14787 version_type=linux
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 shlibpath_var=LD_LIBRARY_PATH
14791 case $host_vendor in
14792 sni)
14793 shlibpath_overrides_runpath=no
14794 need_lib_prefix=no
14795 runpath_var=LD_RUN_PATH
14796 ;;
14797 siemens)
14798 need_lib_prefix=no
14799 ;;
14800 motorola)
14801 need_lib_prefix=no
14802 need_version=no
14803 shlibpath_overrides_runpath=no
14804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14805 ;;
14806 esac
14807 ;;
14808
14809 sysv4*MP*)
14810 if test -d /usr/nec ;then
14811 version_type=linux
14812 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14813 soname_spec='$libname${shared_ext}.$major'
14814 shlibpath_var=LD_LIBRARY_PATH
14815 fi
14816 ;;
14817
14818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14819 version_type=freebsd-elf
14820 need_lib_prefix=no
14821 need_version=no
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14823 soname_spec='${libname}${release}${shared_ext}$major'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 shlibpath_overrides_runpath=yes
14826 hardcode_into_libs=yes
14827 if test "$with_gnu_ld" = yes; then
14828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14829 else
14830 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14831 case $host_os in
14832 sco3.2v5*)
14833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14834 ;;
14835 esac
14836 fi
14837 sys_lib_dlsearch_path_spec='/usr/lib'
14838 ;;
14839
14840 tpf*)
14841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14842 version_type=linux
14843 need_lib_prefix=no
14844 need_version=no
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=no
14848 hardcode_into_libs=yes
14849 ;;
14850
14851 uts4*)
14852 version_type=linux
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 shlibpath_var=LD_LIBRARY_PATH
14856 ;;
14857
14858 *)
14859 dynamic_linker=no
14860 ;;
14861 esac
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14863 $as_echo "$dynamic_linker" >&6; }
14864 test "$dynamic_linker" = no && can_build_shared=no
14865
14866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14867 if test "$GCC" = yes; then
14868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14869 fi
14870
14871 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14872 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14873 fi
14874 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14875 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14876 fi
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14916 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14917 hardcode_action_CXX=
14918 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14919 test -n "$runpath_var_CXX" ||
14920 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14921
14922 # We can hardcode non-existent directories.
14923 if test "$hardcode_direct_CXX" != no &&
14924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14925 # have to relink, otherwise we might link with an installed library
14926 # when we should be linking with a yet-to-be-installed one
14927 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14928 test "$hardcode_minus_L_CXX" != no; then
14929 # Linking always hardcodes the temporary library directory.
14930 hardcode_action_CXX=relink
14931 else
14932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14933 hardcode_action_CXX=immediate
14934 fi
14935 else
14936 # We cannot hardcode anything, or else we can only hardcode existing
14937 # directories.
14938 hardcode_action_CXX=unsupported
14939 fi
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14941 $as_echo "$hardcode_action_CXX" >&6; }
14942
14943 if test "$hardcode_action_CXX" = relink ||
14944 test "$inherit_rpath_CXX" = yes; then
14945 # Fast installation is not supported
14946 enable_fast_install=no
14947 elif test "$shlibpath_overrides_runpath" = yes ||
14948 test "$enable_shared" = no; then
14949 # Fast installation is not necessary
14950 enable_fast_install=needless
14951 fi
14952
14953
14954
14955
14956
14957
14958
14959 fi # test -n "$compiler"
14960
14961 CC=$lt_save_CC
14962 CFLAGS=$lt_save_CFLAGS
14963 LDCXX=$LD
14964 LD=$lt_save_LD
14965 GCC=$lt_save_GCC
14966 with_gnu_ld=$lt_save_with_gnu_ld
14967 lt_cv_path_LDCXX=$lt_cv_path_LD
14968 lt_cv_path_LD=$lt_save_path_LD
14969 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14970 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14971 fi # test "$_lt_caught_CXX_error" != yes
14972
14973 ac_ext=c
14974 ac_cpp='$CPP $CPPFLAGS'
14975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14978
14979
14980 ac_ext=mm
14981 ac_cpp='$OBJCXXCPP $CPPFLAGS'
14982 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14983 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14984 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
14985 if test -n "$ac_tool_prefix"; then
14986 for ac_prog in g++ objc++ objcxx c++ CXX
14987 do
14988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14991 $as_echo_n "checking for $ac_word... " >&6; }
14992 if ${ac_cv_prog_OBJCXX+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 if test -n "$OBJCXX"; then
14996 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
14997 else
14998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14999 for as_dir in $PATH
15000 do
15001 IFS=$as_save_IFS
15002 test -z "$as_dir" && as_dir=.
15003 for ac_exec_ext in '' $ac_executable_extensions; do
15004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15005 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
15006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15007 break 2
15008 fi
15009 done
15010 done
15011 IFS=$as_save_IFS
15012
15013 fi
15014 fi
15015 OBJCXX=$ac_cv_prog_OBJCXX
15016 if test -n "$OBJCXX"; then
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15018 $as_echo "$OBJCXX" >&6; }
15019 else
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021 $as_echo "no" >&6; }
15022 fi
15023
15024
15025 test -n "$OBJCXX" && break
15026 done
15027 fi
15028 if test -z "$OBJCXX"; then
15029 ac_ct_OBJCXX=$OBJCXX
15030 for ac_prog in g++ objc++ objcxx c++ CXX
15031 do
15032 # Extract the first word of "$ac_prog", so it can be a program name with args.
15033 set dummy $ac_prog; ac_word=$2
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15035 $as_echo_n "checking for $ac_word... " >&6; }
15036 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15039 if test -n "$ac_ct_OBJCXX"; then
15040 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15041 else
15042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15043 for as_dir in $PATH
15044 do
15045 IFS=$as_save_IFS
15046 test -z "$as_dir" && as_dir=.
15047 for ac_exec_ext in '' $ac_executable_extensions; do
15048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15049 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15051 break 2
15052 fi
15053 done
15054 done
15055 IFS=$as_save_IFS
15056
15057 fi
15058 fi
15059 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15060 if test -n "$ac_ct_OBJCXX"; then
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15062 $as_echo "$ac_ct_OBJCXX" >&6; }
15063 else
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15065 $as_echo "no" >&6; }
15066 fi
15067
15068
15069 test -n "$ac_ct_OBJCXX" && break
15070 done
15071
15072 if test "x$ac_ct_OBJCXX" = x; then
15073 OBJCXX="g++"
15074 else
15075 case $cross_compiling:$ac_tool_warned in
15076 yes:)
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15079 ac_tool_warned=yes ;;
15080 esac
15081 OBJCXX=$ac_ct_OBJCXX
15082 fi
15083 fi
15084
15085 # Provide some information about the compiler.
15086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15087 set X $ac_compile
15088 ac_compiler=$2
15089 for ac_option in --version -v -V -qversion; do
15090 { { ac_try="$ac_compiler $ac_option >&5"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15096 $as_echo "$ac_try_echo"; } >&5
15097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15098 ac_status=$?
15099 if test -s conftest.err; then
15100 sed '10a\
15101 ... rest of stderr output deleted ...
15102 10q' conftest.err >conftest.er1
15103 cat conftest.er1 >&5
15104 fi
15105 rm -f conftest.er1 conftest.err
15106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15107 test $ac_status = 0; }
15108 done
15109
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15111 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15112 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117
15118 int
15119 main ()
15120 {
15121 #ifndef __GNUC__
15122 choke me
15123 #endif
15124
15125 ;
15126 return 0;
15127 }
15128 _ACEOF
15129 if ac_fn_objcxx_try_compile "$LINENO"; then :
15130 ac_compiler_gnu=yes
15131 else
15132 ac_compiler_gnu=no
15133 fi
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
15136
15137 fi
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15139 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15140 if test $ac_compiler_gnu = yes; then
15141 GOBJCXX=yes
15142 else
15143 GOBJCXX=
15144 fi
15145 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15146 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15148 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
15149 if ${ac_cv_prog_objcxx_g+:} false; then :
15150 $as_echo_n "(cached) " >&6
15151 else
15152 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15153 ac_objcxx_werror_flag=yes
15154 ac_cv_prog_objcxx_g=no
15155 OBJCXXFLAGS="-g"
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158
15159 int
15160 main ()
15161 {
15162
15163 ;
15164 return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_objcxx_try_compile "$LINENO"; then :
15168 ac_cv_prog_objcxx_g=yes
15169 else
15170 OBJCXXFLAGS=""
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15173
15174 int
15175 main ()
15176 {
15177
15178 ;
15179 return 0;
15180 }
15181 _ACEOF
15182 if ac_fn_objcxx_try_compile "$LINENO"; then :
15183
15184 else
15185 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15186 OBJCXXFLAGS="-g"
15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h. */
15189
15190 int
15191 main ()
15192 {
15193
15194 ;
15195 return 0;
15196 }
15197 _ACEOF
15198 if ac_fn_objcxx_try_compile "$LINENO"; then :
15199 ac_cv_prog_objcxx_g=yes
15200 fi
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202 fi
15203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
15207 fi
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15209 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
15210 if test "$ac_test_OBJCXXFLAGS" = set; then
15211 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
15212 elif test $ac_cv_prog_objcxx_g = yes; then
15213 if test "$GOBJCXX" = yes; then
15214 OBJCXXFLAGS="-g -O2"
15215 else
15216 OBJCXXFLAGS="-g"
15217 fi
15218 else
15219 if test "$GOBJCXX" = yes; then
15220 OBJCXXFLAGS="-O2"
15221 else
15222 OBJCXXFLAGS=
15223 fi
15224 fi
15225 ac_ext=c
15226 ac_cpp='$CPP $CPPFLAGS'
15227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15230
15231 ac_ext=cpp
15232 ac_cpp='$CXXCPP $CPPFLAGS'
15233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15236
15237
15238 # Check whether --enable-universal-binary was given.
15239 if test "${enable_universal_binary+set}" = set; then :
15240 enableval=$enable_universal_binary;
15241 case $enableval in #(
15242 no) :
15243 ;; #(
15244 *) :
15245
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
15247 $as_echo_n "checking for universal binary support... " >&6; }
15248 case $host_vendor in #(
15249 apple) :
15250
15251 case $host_cpu in #(
15252 armv6|i386|x86_64) :
15253
15254 for cy_arch in armv6 i386 x86_64; do
15255 cy_save_CXXFLAGS=$CXXFLAGS
15256
15257 for element in "-arch $cy_arch"; do
15258 haveit=
15259 for x in $CXXFLAGS; do
15260
15261 acl_save_prefix="$prefix"
15262 prefix="$acl_final_prefix"
15263 acl_save_exec_prefix="$exec_prefix"
15264 exec_prefix="$acl_final_exec_prefix"
15265 eval x=\"$x\"
15266 exec_prefix="$acl_save_exec_prefix"
15267 prefix="$acl_save_prefix"
15268
15269 if test "X$x" = "X$element"; then
15270 haveit=yes
15271 break
15272 fi
15273 done
15274 if test -z "$haveit"; then
15275 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15276 fi
15277 done
15278
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281
15282 int
15283 main ()
15284 {
15285
15286 ;
15287 return 0;
15288 }
15289 _ACEOF
15290 if ac_fn_cxx_try_link "$LINENO"; then :
15291
15292
15293 for element in $cy_arch; do
15294 haveit=
15295 for x in $cy_arches; do
15296
15297 acl_save_prefix="$prefix"
15298 prefix="$acl_final_prefix"
15299 acl_save_exec_prefix="$exec_prefix"
15300 exec_prefix="$acl_final_exec_prefix"
15301 eval x=\"$x\"
15302 exec_prefix="$acl_save_exec_prefix"
15303 prefix="$acl_save_prefix"
15304
15305 if test "X$x" = "X$element"; then
15306 haveit=yes
15307 break
15308 fi
15309 done
15310 if test -z "$haveit"; then
15311 cy_arches="${cy_arches}${cy_arches:+ }$element"
15312 fi
15313 done
15314
15315
15316 for element in "-arch $cy_arch"; do
15317 haveit=
15318 for x in $CFLAGS; do
15319
15320 acl_save_prefix="$prefix"
15321 prefix="$acl_final_prefix"
15322 acl_save_exec_prefix="$exec_prefix"
15323 exec_prefix="$acl_final_exec_prefix"
15324 eval x=\"$x\"
15325 exec_prefix="$acl_save_exec_prefix"
15326 prefix="$acl_save_prefix"
15327
15328 if test "X$x" = "X$element"; then
15329 haveit=yes
15330 break
15331 fi
15332 done
15333 if test -z "$haveit"; then
15334 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15335 fi
15336 done
15337
15338
15339 for element in "-arch $cy_arch"; do
15340 haveit=
15341 for x in $LDFLAGS; do
15342
15343 acl_save_prefix="$prefix"
15344 prefix="$acl_final_prefix"
15345 acl_save_exec_prefix="$exec_prefix"
15346 exec_prefix="$acl_final_exec_prefix"
15347 eval x=\"$x\"
15348 exec_prefix="$acl_save_exec_prefix"
15349 prefix="$acl_save_prefix"
15350
15351 if test "X$x" = "X$element"; then
15352 haveit=yes
15353 break
15354 fi
15355 done
15356 if test -z "$haveit"; then
15357 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
15358 fi
15359 done
15360
15361
15362 for element in "-arch $cy_arch"; do
15363 haveit=
15364 for x in $OBJCXXFLAGS; do
15365
15366 acl_save_prefix="$prefix"
15367 prefix="$acl_final_prefix"
15368 acl_save_exec_prefix="$exec_prefix"
15369 exec_prefix="$acl_final_exec_prefix"
15370 eval x=\"$x\"
15371 exec_prefix="$acl_save_exec_prefix"
15372 prefix="$acl_save_prefix"
15373
15374 if test "X$x" = "X$element"; then
15375 haveit=yes
15376 break
15377 fi
15378 done
15379 if test -z "$haveit"; then
15380 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
15381 fi
15382 done
15383
15384
15385 else
15386
15387 CXXFLAGS=$cy_save_CXXFLAGS
15388
15389 fi
15390 rm -f core conftest.err conftest.$ac_objext \
15391 conftest$ac_exeext conftest.$ac_ext
15392 done
15393 ;; #(
15394 *) :
15395 ;;
15396 esac
15397 ;; #(
15398 *) :
15399 ;;
15400 esac
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
15402 $as_echo "${cy_arches-no}" >&6; }
15403 ;;
15404 esac
15405
15406 else
15407
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
15409 $as_echo_n "checking for universal binary support... " >&6; }
15410 case $host_vendor in #(
15411 apple) :
15412
15413 case $host_cpu in #(
15414 armv6|i386|x86_64) :
15415
15416 for cy_arch in armv6 i386 x86_64; do
15417 cy_save_CXXFLAGS=$CXXFLAGS
15418
15419 for element in "-arch $cy_arch"; do
15420 haveit=
15421 for x in $CXXFLAGS; do
15422
15423 acl_save_prefix="$prefix"
15424 prefix="$acl_final_prefix"
15425 acl_save_exec_prefix="$exec_prefix"
15426 exec_prefix="$acl_final_exec_prefix"
15427 eval x=\"$x\"
15428 exec_prefix="$acl_save_exec_prefix"
15429 prefix="$acl_save_prefix"
15430
15431 if test "X$x" = "X$element"; then
15432 haveit=yes
15433 break
15434 fi
15435 done
15436 if test -z "$haveit"; then
15437 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15438 fi
15439 done
15440
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15443
15444 int
15445 main ()
15446 {
15447
15448 ;
15449 return 0;
15450 }
15451 _ACEOF
15452 if ac_fn_cxx_try_link "$LINENO"; then :
15453
15454
15455 for element in $cy_arch; do
15456 haveit=
15457 for x in $cy_arches; do
15458
15459 acl_save_prefix="$prefix"
15460 prefix="$acl_final_prefix"
15461 acl_save_exec_prefix="$exec_prefix"
15462 exec_prefix="$acl_final_exec_prefix"
15463 eval x=\"$x\"
15464 exec_prefix="$acl_save_exec_prefix"
15465 prefix="$acl_save_prefix"
15466
15467 if test "X$x" = "X$element"; then
15468 haveit=yes
15469 break
15470 fi
15471 done
15472 if test -z "$haveit"; then
15473 cy_arches="${cy_arches}${cy_arches:+ }$element"
15474 fi
15475 done
15476
15477
15478 for element in "-arch $cy_arch"; do
15479 haveit=
15480 for x in $CFLAGS; do
15481
15482 acl_save_prefix="$prefix"
15483 prefix="$acl_final_prefix"
15484 acl_save_exec_prefix="$exec_prefix"
15485 exec_prefix="$acl_final_exec_prefix"
15486 eval x=\"$x\"
15487 exec_prefix="$acl_save_exec_prefix"
15488 prefix="$acl_save_prefix"
15489
15490 if test "X$x" = "X$element"; then
15491 haveit=yes
15492 break
15493 fi
15494 done
15495 if test -z "$haveit"; then
15496 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15497 fi
15498 done
15499
15500
15501 for element in "-arch $cy_arch"; do
15502 haveit=
15503 for x in $LDFLAGS; do
15504
15505 acl_save_prefix="$prefix"
15506 prefix="$acl_final_prefix"
15507 acl_save_exec_prefix="$exec_prefix"
15508 exec_prefix="$acl_final_exec_prefix"
15509 eval x=\"$x\"
15510 exec_prefix="$acl_save_exec_prefix"
15511 prefix="$acl_save_prefix"
15512
15513 if test "X$x" = "X$element"; then
15514 haveit=yes
15515 break
15516 fi
15517 done
15518 if test -z "$haveit"; then
15519 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
15520 fi
15521 done
15522
15523
15524 for element in "-arch $cy_arch"; do
15525 haveit=
15526 for x in $OBJCXXFLAGS; do
15527
15528 acl_save_prefix="$prefix"
15529 prefix="$acl_final_prefix"
15530 acl_save_exec_prefix="$exec_prefix"
15531 exec_prefix="$acl_final_exec_prefix"
15532 eval x=\"$x\"
15533 exec_prefix="$acl_save_exec_prefix"
15534 prefix="$acl_save_prefix"
15535
15536 if test "X$x" = "X$element"; then
15537 haveit=yes
15538 break
15539 fi
15540 done
15541 if test -z "$haveit"; then
15542 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
15543 fi
15544 done
15545
15546
15547 else
15548
15549 CXXFLAGS=$cy_save_CXXFLAGS
15550
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext \
15553 conftest$ac_exeext conftest.$ac_ext
15554 done
15555 ;; #(
15556 *) :
15557 ;;
15558 esac
15559 ;; #(
15560 *) :
15561 ;;
15562 esac
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
15564 $as_echo "${cy_arches-no}" >&6; }
15565
15566 fi
15567
15568
15569 # Check whether --with-frameworks was given.
15570 if test "${with_frameworks+set}" = set; then :
15571 withval=$with_frameworks;
15572 for cy_framework in $withval; do
15573
15574 for element in -F$cy_framework; do
15575 haveit=
15576 for x in $CFLAGS; do
15577
15578 acl_save_prefix="$prefix"
15579 prefix="$acl_final_prefix"
15580 acl_save_exec_prefix="$exec_prefix"
15581 exec_prefix="$acl_final_exec_prefix"
15582 eval x=\"$x\"
15583 exec_prefix="$acl_save_exec_prefix"
15584 prefix="$acl_save_prefix"
15585
15586 if test "X$x" = "X$element"; then
15587 haveit=yes
15588 break
15589 fi
15590 done
15591 if test -z "$haveit"; then
15592 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15593 fi
15594 done
15595
15596
15597 for element in -F$cy_framework; do
15598 haveit=
15599 for x in $CXXFLAGS; do
15600
15601 acl_save_prefix="$prefix"
15602 prefix="$acl_final_prefix"
15603 acl_save_exec_prefix="$exec_prefix"
15604 exec_prefix="$acl_final_exec_prefix"
15605 eval x=\"$x\"
15606 exec_prefix="$acl_save_exec_prefix"
15607 prefix="$acl_save_prefix"
15608
15609 if test "X$x" = "X$element"; then
15610 haveit=yes
15611 break
15612 fi
15613 done
15614 if test -z "$haveit"; then
15615 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15616 fi
15617 done
15618
15619
15620 for element in -F$cy_framework; do
15621 haveit=
15622 for x in $OBJCCXXFLAGS; do
15623
15624 acl_save_prefix="$prefix"
15625 prefix="$acl_final_prefix"
15626 acl_save_exec_prefix="$exec_prefix"
15627 exec_prefix="$acl_final_exec_prefix"
15628 eval x=\"$x\"
15629 exec_prefix="$acl_save_exec_prefix"
15630 prefix="$acl_save_prefix"
15631
15632 if test "X$x" = "X$element"; then
15633 haveit=yes
15634 break
15635 fi
15636 done
15637 if test -z "$haveit"; then
15638 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
15639 fi
15640 done
15641
15642 done
15643
15644 fi
15645
15646
15647 apr_found="no"
15648
15649 if test "$target_os" = "os2-emx"; then
15650 # Scripts don't pass test -x on OS/2
15651 TEST_X="test -f"
15652 else
15653 TEST_X="test -x"
15654 fi
15655
15656 acceptable_majors="1"
15657
15658 apr_temp_acceptable_apr_config=""
15659 for apr_temp_major in $acceptable_majors
15660 do
15661 case $apr_temp_major in
15662 0)
15663 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
15664 ;;
15665 *)
15666 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
15667 ;;
15668 esac
15669 done
15670
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
15672 $as_echo_n "checking for APR... " >&6; }
15673
15674 # Check whether --with-apr was given.
15675 if test "${with_apr+set}" = set; then :
15676 withval=$with_apr;
15677 if test "$withval" = "no" || test "$withval" = "yes"; then
15678 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
15679 fi
15680
15681 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
15682 do
15683 for lookdir in "$withval/bin" "$withval"
15684 do
15685 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
15686 apr_config="$lookdir/$apr_temp_apr_config_file"
15687
15688 apr_found="yes"
15689 break 2
15690 fi
15691 done
15692 done
15693
15694 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
15695 apr_config="$withval"
15696 apr_found="yes"
15697 fi
15698
15699 if test "$apr_found" != "yes"; then
15700 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
15701 fi
15702
15703 else
15704
15705 if test -n "1" && test "1" = "1"; then
15706 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
15707 do
15708 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
15709 apr_config="$apr_temp_apr_config_file"
15710
15711 apr_found="yes"
15712 break
15713 else
15714 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
15715 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
15716 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
15717
15718 apr_found="yes"
15719 break 2
15720 fi
15721 done
15722 fi
15723 done
15724 fi
15725 if test "$apr_found" = "no" && test -d ""; then
15726 apr_temp_abs_srcdir="`cd && pwd`"
15727 apr_found="reconfig"
15728 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
15729 case $apr_bundled_major in
15730 "")
15731 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
15732 ;;
15733 0)
15734 apr_temp_apr_config_file="apr-config"
15735 ;;
15736 *)
15737 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
15738 ;;
15739 esac
15740 if test -n ""; then
15741 apr_config="/$apr_temp_apr_config_file"
15742 else
15743 apr_config="/$apr_temp_apr_config_file"
15744 fi
15745 fi
15746
15747 fi
15748
15749
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
15751 $as_echo "$apr_found" >&6; }
15752
15753 case $apr_found in #(
15754 yes) :
15755
15756
15757 for element in `$apr_config --includes`; do
15758 haveit=
15759 for x in $CPPFLAGS; do
15760
15761 acl_save_prefix="$prefix"
15762 prefix="$acl_final_prefix"
15763 acl_save_exec_prefix="$exec_prefix"
15764 exec_prefix="$acl_final_exec_prefix"
15765 eval x=\"$x\"
15766 exec_prefix="$acl_save_exec_prefix"
15767 prefix="$acl_save_prefix"
15768
15769 if test "X$x" = "X$element"; then
15770 haveit=yes
15771 break
15772 fi
15773 done
15774 if test -z "$haveit"; then
15775 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15776 fi
15777 done
15778
15779 LTLIBAPR=`$apr_config --link-libtool`
15780
15781 ;; #(
15782 *) :
15783 as_fn_error $? "You need apr" "$LINENO" 5 ;;
15784 esac
15785
15786
15787 # Check whether --enable-javascript was given.
15788 if test "${enable_javascript+set}" = set; then :
15789 enableval=$enable_javascript;
15790 case $enableval in #(
15791 yes) :
15792
15793
15794
15795 pkg_failed=no
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15797 $as_echo_n "checking for WEBKIT... " >&6; }
15798
15799 if test -n "$WEBKIT_CFLAGS"; then
15800 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15801 elif test -n "$PKG_CONFIG"; then
15802 if test -n "$PKG_CONFIG" && \
15803 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15804 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15805 ac_status=$?
15806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15807 test $ac_status = 0; }; then
15808 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15809 test "x$?" != "x0" && pkg_failed=yes
15810 else
15811 pkg_failed=yes
15812 fi
15813 else
15814 pkg_failed=untried
15815 fi
15816 if test -n "$WEBKIT_LIBS"; then
15817 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15818 elif test -n "$PKG_CONFIG"; then
15819 if test -n "$PKG_CONFIG" && \
15820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15821 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15822 ac_status=$?
15823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15824 test $ac_status = 0; }; then
15825 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15826 test "x$?" != "x0" && pkg_failed=yes
15827 else
15828 pkg_failed=yes
15829 fi
15830 else
15831 pkg_failed=untried
15832 fi
15833
15834
15835
15836 if test $pkg_failed = yes; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15838 $as_echo "no" >&6; }
15839
15840 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15841 _pkg_short_errors_supported=yes
15842 else
15843 _pkg_short_errors_supported=no
15844 fi
15845 if test $_pkg_short_errors_supported = yes; then
15846 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0" 2>&1`
15847 else
15848 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0" 2>&1`
15849 fi
15850 # Put the nasty error message in config.log where it belongs
15851 echo "$WEBKIT_PKG_ERRORS" >&5
15852
15853
15854
15855 pkg_failed=no
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15857 $as_echo_n "checking for WEBKIT... " >&6; }
15858
15859 if test -n "$WEBKIT_CFLAGS"; then
15860 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15861 elif test -n "$PKG_CONFIG"; then
15862 if test -n "$PKG_CONFIG" && \
15863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15864 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15865 ac_status=$?
15866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15867 test $ac_status = 0; }; then
15868 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15869 test "x$?" != "x0" && pkg_failed=yes
15870 else
15871 pkg_failed=yes
15872 fi
15873 else
15874 pkg_failed=untried
15875 fi
15876 if test -n "$WEBKIT_LIBS"; then
15877 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15878 elif test -n "$PKG_CONFIG"; then
15879 if test -n "$PKG_CONFIG" && \
15880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15881 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15882 ac_status=$?
15883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15884 test $ac_status = 0; }; then
15885 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15886 test "x$?" != "x0" && pkg_failed=yes
15887 else
15888 pkg_failed=yes
15889 fi
15890 else
15891 pkg_failed=untried
15892 fi
15893
15894
15895
15896 if test $pkg_failed = yes; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898 $as_echo "no" >&6; }
15899
15900 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15901 _pkg_short_errors_supported=yes
15902 else
15903 _pkg_short_errors_supported=no
15904 fi
15905 if test $_pkg_short_errors_supported = yes; then
15906 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
15907 else
15908 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
15909 fi
15910 # Put the nasty error message in config.log where it belongs
15911 echo "$WEBKIT_PKG_ERRORS" >&5
15912
15913
15914
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15916 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15917 if ${ac_cv_framework_JavaScriptCore+:} false; then :
15918 $as_echo_n "(cached) " >&6
15919 else
15920
15921 ac_check_framework_save_LIBS=$LIBS
15922 LIBS="-framework JavaScriptCore $LIBS"
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15925
15926 #include <JavaScriptCore/JSBase.h>
15927
15928 int
15929 main ()
15930 {
15931 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15932 ;
15933 return 0;
15934 }
15935 _ACEOF
15936 if ac_fn_cxx_try_link "$LINENO"; then :
15937
15938 ac_cv_framework_JavaScriptCore=yes
15939
15940 else
15941 ac_cv_framework_JavaScriptCore=no
15942 fi
15943 rm -f core conftest.err conftest.$ac_objext \
15944 conftest$ac_exeext conftest.$ac_ext
15945 LIBS=$ac_check_framework_save_LIBS
15946
15947 fi
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15949 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15950 if test $ac_cv_framework_JavaScriptCore = yes; then :
15951
15952
15953 for element in "-framework JavaScriptCore $LIBS"; do
15954 haveit=
15955 for x in $LIBS; do
15956
15957 acl_save_prefix="$prefix"
15958 prefix="$acl_final_prefix"
15959 acl_save_exec_prefix="$exec_prefix"
15960 exec_prefix="$acl_final_exec_prefix"
15961 eval x=\"$x\"
15962 exec_prefix="$acl_save_exec_prefix"
15963 prefix="$acl_save_prefix"
15964
15965 if test "X$x" = "X$element"; then
15966 haveit=yes
15967 break
15968 fi
15969 done
15970 if test -z "$haveit"; then
15971 LIBS="${LIBS}${LIBS:+ }$element"
15972 fi
15973 done
15974
15975 CY_EXECUTE=1
15976
15977 fi
15978
15979 elif test $pkg_failed = untried; then
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15981 $as_echo "no" >&6; }
15982
15983
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15985 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15986 if ${ac_cv_framework_JavaScriptCore+:} false; then :
15987 $as_echo_n "(cached) " >&6
15988 else
15989
15990 ac_check_framework_save_LIBS=$LIBS
15991 LIBS="-framework JavaScriptCore $LIBS"
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h. */
15994
15995 #include <JavaScriptCore/JSBase.h>
15996
15997 int
15998 main ()
15999 {
16000 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16001 ;
16002 return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_cxx_try_link "$LINENO"; then :
16006
16007 ac_cv_framework_JavaScriptCore=yes
16008
16009 else
16010 ac_cv_framework_JavaScriptCore=no
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext \
16013 conftest$ac_exeext conftest.$ac_ext
16014 LIBS=$ac_check_framework_save_LIBS
16015
16016 fi
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16018 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16019 if test $ac_cv_framework_JavaScriptCore = yes; then :
16020
16021
16022 for element in "-framework JavaScriptCore $LIBS"; do
16023 haveit=
16024 for x in $LIBS; do
16025
16026 acl_save_prefix="$prefix"
16027 prefix="$acl_final_prefix"
16028 acl_save_exec_prefix="$exec_prefix"
16029 exec_prefix="$acl_final_exec_prefix"
16030 eval x=\"$x\"
16031 exec_prefix="$acl_save_exec_prefix"
16032 prefix="$acl_save_prefix"
16033
16034 if test "X$x" = "X$element"; then
16035 haveit=yes
16036 break
16037 fi
16038 done
16039 if test -z "$haveit"; then
16040 LIBS="${LIBS}${LIBS:+ }$element"
16041 fi
16042 done
16043
16044 CY_EXECUTE=1
16045
16046 fi
16047
16048 else
16049 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16050 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16052 $as_echo "yes" >&6; }
16053
16054 CY_EXECUTE=1
16055
16056 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16057 haveit=
16058 for x in $CXXFLAGS; do
16059
16060 acl_save_prefix="$prefix"
16061 prefix="$acl_final_prefix"
16062 acl_save_exec_prefix="$exec_prefix"
16063 exec_prefix="$acl_final_exec_prefix"
16064 eval x=\"$x\"
16065 exec_prefix="$acl_save_exec_prefix"
16066 prefix="$acl_save_prefix"
16067
16068 if test "X$x" = "X$element"; then
16069 haveit=yes
16070 break
16071 fi
16072 done
16073 if test -z "$haveit"; then
16074 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16075 fi
16076 done
16077
16078
16079 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16080 haveit=
16081 for x in $LIBS; do
16082
16083 acl_save_prefix="$prefix"
16084 prefix="$acl_final_prefix"
16085 acl_save_exec_prefix="$exec_prefix"
16086 exec_prefix="$acl_final_exec_prefix"
16087 eval x=\"$x\"
16088 exec_prefix="$acl_save_exec_prefix"
16089 prefix="$acl_save_prefix"
16090
16091 if test "X$x" = "X$element"; then
16092 haveit=yes
16093 break
16094 fi
16095 done
16096 if test -z "$haveit"; then
16097 LIBS="${LIBS}${LIBS:+ }$element"
16098 fi
16099 done
16100
16101
16102 fi
16103
16104 elif test $pkg_failed = untried; then
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16106 $as_echo "no" >&6; }
16107
16108
16109 pkg_failed=no
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16111 $as_echo_n "checking for WEBKIT... " >&6; }
16112
16113 if test -n "$WEBKIT_CFLAGS"; then
16114 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16115 elif test -n "$PKG_CONFIG"; then
16116 if test -n "$PKG_CONFIG" && \
16117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16118 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16119 ac_status=$?
16120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16121 test $ac_status = 0; }; then
16122 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16123 test "x$?" != "x0" && pkg_failed=yes
16124 else
16125 pkg_failed=yes
16126 fi
16127 else
16128 pkg_failed=untried
16129 fi
16130 if test -n "$WEBKIT_LIBS"; then
16131 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16132 elif test -n "$PKG_CONFIG"; then
16133 if test -n "$PKG_CONFIG" && \
16134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16135 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16136 ac_status=$?
16137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16138 test $ac_status = 0; }; then
16139 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16140 test "x$?" != "x0" && pkg_failed=yes
16141 else
16142 pkg_failed=yes
16143 fi
16144 else
16145 pkg_failed=untried
16146 fi
16147
16148
16149
16150 if test $pkg_failed = yes; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16153
16154 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16155 _pkg_short_errors_supported=yes
16156 else
16157 _pkg_short_errors_supported=no
16158 fi
16159 if test $_pkg_short_errors_supported = yes; then
16160 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
16161 else
16162 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
16163 fi
16164 # Put the nasty error message in config.log where it belongs
16165 echo "$WEBKIT_PKG_ERRORS" >&5
16166
16167
16168
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16170 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16171 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16172 $as_echo_n "(cached) " >&6
16173 else
16174
16175 ac_check_framework_save_LIBS=$LIBS
16176 LIBS="-framework JavaScriptCore $LIBS"
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16179
16180 #include <JavaScriptCore/JSBase.h>
16181
16182 int
16183 main ()
16184 {
16185 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16186 ;
16187 return 0;
16188 }
16189 _ACEOF
16190 if ac_fn_cxx_try_link "$LINENO"; then :
16191
16192 ac_cv_framework_JavaScriptCore=yes
16193
16194 else
16195 ac_cv_framework_JavaScriptCore=no
16196 fi
16197 rm -f core conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16199 LIBS=$ac_check_framework_save_LIBS
16200
16201 fi
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16203 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16204 if test $ac_cv_framework_JavaScriptCore = yes; then :
16205
16206
16207 for element in "-framework JavaScriptCore $LIBS"; do
16208 haveit=
16209 for x in $LIBS; do
16210
16211 acl_save_prefix="$prefix"
16212 prefix="$acl_final_prefix"
16213 acl_save_exec_prefix="$exec_prefix"
16214 exec_prefix="$acl_final_exec_prefix"
16215 eval x=\"$x\"
16216 exec_prefix="$acl_save_exec_prefix"
16217 prefix="$acl_save_prefix"
16218
16219 if test "X$x" = "X$element"; then
16220 haveit=yes
16221 break
16222 fi
16223 done
16224 if test -z "$haveit"; then
16225 LIBS="${LIBS}${LIBS:+ }$element"
16226 fi
16227 done
16228
16229 CY_EXECUTE=1
16230
16231 fi
16232
16233 elif test $pkg_failed = untried; then
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16235 $as_echo "no" >&6; }
16236
16237
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16239 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16240 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16241 $as_echo_n "(cached) " >&6
16242 else
16243
16244 ac_check_framework_save_LIBS=$LIBS
16245 LIBS="-framework JavaScriptCore $LIBS"
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16248
16249 #include <JavaScriptCore/JSBase.h>
16250
16251 int
16252 main ()
16253 {
16254 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16255 ;
16256 return 0;
16257 }
16258 _ACEOF
16259 if ac_fn_cxx_try_link "$LINENO"; then :
16260
16261 ac_cv_framework_JavaScriptCore=yes
16262
16263 else
16264 ac_cv_framework_JavaScriptCore=no
16265 fi
16266 rm -f core conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16268 LIBS=$ac_check_framework_save_LIBS
16269
16270 fi
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16272 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16273 if test $ac_cv_framework_JavaScriptCore = yes; then :
16274
16275
16276 for element in "-framework JavaScriptCore $LIBS"; do
16277 haveit=
16278 for x in $LIBS; do
16279
16280 acl_save_prefix="$prefix"
16281 prefix="$acl_final_prefix"
16282 acl_save_exec_prefix="$exec_prefix"
16283 exec_prefix="$acl_final_exec_prefix"
16284 eval x=\"$x\"
16285 exec_prefix="$acl_save_exec_prefix"
16286 prefix="$acl_save_prefix"
16287
16288 if test "X$x" = "X$element"; then
16289 haveit=yes
16290 break
16291 fi
16292 done
16293 if test -z "$haveit"; then
16294 LIBS="${LIBS}${LIBS:+ }$element"
16295 fi
16296 done
16297
16298 CY_EXECUTE=1
16299
16300 fi
16301
16302 else
16303 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16304 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16306 $as_echo "yes" >&6; }
16307
16308 CY_EXECUTE=1
16309
16310 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16311 haveit=
16312 for x in $CXXFLAGS; do
16313
16314 acl_save_prefix="$prefix"
16315 prefix="$acl_final_prefix"
16316 acl_save_exec_prefix="$exec_prefix"
16317 exec_prefix="$acl_final_exec_prefix"
16318 eval x=\"$x\"
16319 exec_prefix="$acl_save_exec_prefix"
16320 prefix="$acl_save_prefix"
16321
16322 if test "X$x" = "X$element"; then
16323 haveit=yes
16324 break
16325 fi
16326 done
16327 if test -z "$haveit"; then
16328 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16329 fi
16330 done
16331
16332
16333 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16334 haveit=
16335 for x in $LIBS; do
16336
16337 acl_save_prefix="$prefix"
16338 prefix="$acl_final_prefix"
16339 acl_save_exec_prefix="$exec_prefix"
16340 exec_prefix="$acl_final_exec_prefix"
16341 eval x=\"$x\"
16342 exec_prefix="$acl_save_exec_prefix"
16343 prefix="$acl_save_prefix"
16344
16345 if test "X$x" = "X$element"; then
16346 haveit=yes
16347 break
16348 fi
16349 done
16350 if test -z "$haveit"; then
16351 LIBS="${LIBS}${LIBS:+ }$element"
16352 fi
16353 done
16354
16355
16356 fi
16357
16358 else
16359 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16360 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16362 $as_echo "yes" >&6; }
16363
16364 CY_EXECUTE=1
16365
16366 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16367 haveit=
16368 for x in $CXXFLAGS; do
16369
16370 acl_save_prefix="$prefix"
16371 prefix="$acl_final_prefix"
16372 acl_save_exec_prefix="$exec_prefix"
16373 exec_prefix="$acl_final_exec_prefix"
16374 eval x=\"$x\"
16375 exec_prefix="$acl_save_exec_prefix"
16376 prefix="$acl_save_prefix"
16377
16378 if test "X$x" = "X$element"; then
16379 haveit=yes
16380 break
16381 fi
16382 done
16383 if test -z "$haveit"; then
16384 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16385 fi
16386 done
16387
16388
16389 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16390 haveit=
16391 for x in $LIBS; do
16392
16393 acl_save_prefix="$prefix"
16394 prefix="$acl_final_prefix"
16395 acl_save_exec_prefix="$exec_prefix"
16396 exec_prefix="$acl_final_exec_prefix"
16397 eval x=\"$x\"
16398 exec_prefix="$acl_save_exec_prefix"
16399 prefix="$acl_save_prefix"
16400
16401 if test "X$x" = "X$element"; then
16402 haveit=yes
16403 break
16404 fi
16405 done
16406 if test -z "$haveit"; then
16407 LIBS="${LIBS}${LIBS:+ }$element"
16408 fi
16409 done
16410
16411
16412 fi
16413
16414 ;; #(
16415 no) :
16416
16417 CY_EXECUTE=0
16418
16419 ;; #(
16420 JavaScriptCore) :
16421
16422
16423
16424 pkg_failed=no
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16426 $as_echo_n "checking for WEBKIT... " >&6; }
16427
16428 if test -n "$WEBKIT_CFLAGS"; then
16429 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16430 elif test -n "$PKG_CONFIG"; then
16431 if test -n "$PKG_CONFIG" && \
16432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16433 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16434 ac_status=$?
16435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16436 test $ac_status = 0; }; then
16437 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
16438 test "x$?" != "x0" && pkg_failed=yes
16439 else
16440 pkg_failed=yes
16441 fi
16442 else
16443 pkg_failed=untried
16444 fi
16445 if test -n "$WEBKIT_LIBS"; then
16446 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16447 elif test -n "$PKG_CONFIG"; then
16448 if test -n "$PKG_CONFIG" && \
16449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16450 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16451 ac_status=$?
16452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16453 test $ac_status = 0; }; then
16454 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16455 test "x$?" != "x0" && pkg_failed=yes
16456 else
16457 pkg_failed=yes
16458 fi
16459 else
16460 pkg_failed=untried
16461 fi
16462
16463
16464
16465 if test $pkg_failed = yes; then
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467 $as_echo "no" >&6; }
16468
16469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16470 _pkg_short_errors_supported=yes
16471 else
16472 _pkg_short_errors_supported=no
16473 fi
16474 if test $_pkg_short_errors_supported = yes; then
16475 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0" 2>&1`
16476 else
16477 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0" 2>&1`
16478 fi
16479 # Put the nasty error message in config.log where it belongs
16480 echo "$WEBKIT_PKG_ERRORS" >&5
16481
16482
16483
16484 pkg_failed=no
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16486 $as_echo_n "checking for WEBKIT... " >&6; }
16487
16488 if test -n "$WEBKIT_CFLAGS"; then
16489 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16490 elif test -n "$PKG_CONFIG"; then
16491 if test -n "$PKG_CONFIG" && \
16492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16493 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16494 ac_status=$?
16495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16496 test $ac_status = 0; }; then
16497 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16498 test "x$?" != "x0" && pkg_failed=yes
16499 else
16500 pkg_failed=yes
16501 fi
16502 else
16503 pkg_failed=untried
16504 fi
16505 if test -n "$WEBKIT_LIBS"; then
16506 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16507 elif test -n "$PKG_CONFIG"; then
16508 if test -n "$PKG_CONFIG" && \
16509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16510 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16511 ac_status=$?
16512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16513 test $ac_status = 0; }; then
16514 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16515 test "x$?" != "x0" && pkg_failed=yes
16516 else
16517 pkg_failed=yes
16518 fi
16519 else
16520 pkg_failed=untried
16521 fi
16522
16523
16524
16525 if test $pkg_failed = yes; then
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527 $as_echo "no" >&6; }
16528
16529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16530 _pkg_short_errors_supported=yes
16531 else
16532 _pkg_short_errors_supported=no
16533 fi
16534 if test $_pkg_short_errors_supported = yes; then
16535 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
16536 else
16537 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
16538 fi
16539 # Put the nasty error message in config.log where it belongs
16540 echo "$WEBKIT_PKG_ERRORS" >&5
16541
16542
16543
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16545 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16546 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16547 $as_echo_n "(cached) " >&6
16548 else
16549
16550 ac_check_framework_save_LIBS=$LIBS
16551 LIBS="-framework JavaScriptCore $LIBS"
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16554
16555 #include <JavaScriptCore/JSBase.h>
16556
16557 int
16558 main ()
16559 {
16560 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16561 ;
16562 return 0;
16563 }
16564 _ACEOF
16565 if ac_fn_cxx_try_link "$LINENO"; then :
16566
16567 ac_cv_framework_JavaScriptCore=yes
16568
16569 else
16570 ac_cv_framework_JavaScriptCore=no
16571 fi
16572 rm -f core conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
16574 LIBS=$ac_check_framework_save_LIBS
16575
16576 fi
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16578 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16579 if test $ac_cv_framework_JavaScriptCore = yes; then :
16580
16581
16582 for element in "-framework JavaScriptCore $LIBS"; do
16583 haveit=
16584 for x in $LIBS; do
16585
16586 acl_save_prefix="$prefix"
16587 prefix="$acl_final_prefix"
16588 acl_save_exec_prefix="$exec_prefix"
16589 exec_prefix="$acl_final_exec_prefix"
16590 eval x=\"$x\"
16591 exec_prefix="$acl_save_exec_prefix"
16592 prefix="$acl_save_prefix"
16593
16594 if test "X$x" = "X$element"; then
16595 haveit=yes
16596 break
16597 fi
16598 done
16599 if test -z "$haveit"; then
16600 LIBS="${LIBS}${LIBS:+ }$element"
16601 fi
16602 done
16603
16604 CY_EXECUTE=1
16605
16606 fi
16607
16608 elif test $pkg_failed = untried; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16610 $as_echo "no" >&6; }
16611
16612
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16614 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16615 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16618
16619 ac_check_framework_save_LIBS=$LIBS
16620 LIBS="-framework JavaScriptCore $LIBS"
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623
16624 #include <JavaScriptCore/JSBase.h>
16625
16626 int
16627 main ()
16628 {
16629 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16630 ;
16631 return 0;
16632 }
16633 _ACEOF
16634 if ac_fn_cxx_try_link "$LINENO"; then :
16635
16636 ac_cv_framework_JavaScriptCore=yes
16637
16638 else
16639 ac_cv_framework_JavaScriptCore=no
16640 fi
16641 rm -f core conftest.err conftest.$ac_objext \
16642 conftest$ac_exeext conftest.$ac_ext
16643 LIBS=$ac_check_framework_save_LIBS
16644
16645 fi
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16647 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16648 if test $ac_cv_framework_JavaScriptCore = yes; then :
16649
16650
16651 for element in "-framework JavaScriptCore $LIBS"; do
16652 haveit=
16653 for x in $LIBS; do
16654
16655 acl_save_prefix="$prefix"
16656 prefix="$acl_final_prefix"
16657 acl_save_exec_prefix="$exec_prefix"
16658 exec_prefix="$acl_final_exec_prefix"
16659 eval x=\"$x\"
16660 exec_prefix="$acl_save_exec_prefix"
16661 prefix="$acl_save_prefix"
16662
16663 if test "X$x" = "X$element"; then
16664 haveit=yes
16665 break
16666 fi
16667 done
16668 if test -z "$haveit"; then
16669 LIBS="${LIBS}${LIBS:+ }$element"
16670 fi
16671 done
16672
16673 CY_EXECUTE=1
16674
16675 fi
16676
16677 else
16678 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16679 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16681 $as_echo "yes" >&6; }
16682
16683 CY_EXECUTE=1
16684
16685 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16686 haveit=
16687 for x in $CXXFLAGS; do
16688
16689 acl_save_prefix="$prefix"
16690 prefix="$acl_final_prefix"
16691 acl_save_exec_prefix="$exec_prefix"
16692 exec_prefix="$acl_final_exec_prefix"
16693 eval x=\"$x\"
16694 exec_prefix="$acl_save_exec_prefix"
16695 prefix="$acl_save_prefix"
16696
16697 if test "X$x" = "X$element"; then
16698 haveit=yes
16699 break
16700 fi
16701 done
16702 if test -z "$haveit"; then
16703 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16704 fi
16705 done
16706
16707
16708 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16709 haveit=
16710 for x in $LIBS; do
16711
16712 acl_save_prefix="$prefix"
16713 prefix="$acl_final_prefix"
16714 acl_save_exec_prefix="$exec_prefix"
16715 exec_prefix="$acl_final_exec_prefix"
16716 eval x=\"$x\"
16717 exec_prefix="$acl_save_exec_prefix"
16718 prefix="$acl_save_prefix"
16719
16720 if test "X$x" = "X$element"; then
16721 haveit=yes
16722 break
16723 fi
16724 done
16725 if test -z "$haveit"; then
16726 LIBS="${LIBS}${LIBS:+ }$element"
16727 fi
16728 done
16729
16730
16731 fi
16732
16733 elif test $pkg_failed = untried; then
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16735 $as_echo "no" >&6; }
16736
16737
16738 pkg_failed=no
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16740 $as_echo_n "checking for WEBKIT... " >&6; }
16741
16742 if test -n "$WEBKIT_CFLAGS"; then
16743 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16744 elif test -n "$PKG_CONFIG"; then
16745 if test -n "$PKG_CONFIG" && \
16746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16747 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16748 ac_status=$?
16749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16750 test $ac_status = 0; }; then
16751 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16752 test "x$?" != "x0" && pkg_failed=yes
16753 else
16754 pkg_failed=yes
16755 fi
16756 else
16757 pkg_failed=untried
16758 fi
16759 if test -n "$WEBKIT_LIBS"; then
16760 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16761 elif test -n "$PKG_CONFIG"; then
16762 if test -n "$PKG_CONFIG" && \
16763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16764 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16765 ac_status=$?
16766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16767 test $ac_status = 0; }; then
16768 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16769 test "x$?" != "x0" && pkg_failed=yes
16770 else
16771 pkg_failed=yes
16772 fi
16773 else
16774 pkg_failed=untried
16775 fi
16776
16777
16778
16779 if test $pkg_failed = yes; then
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16781 $as_echo "no" >&6; }
16782
16783 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16784 _pkg_short_errors_supported=yes
16785 else
16786 _pkg_short_errors_supported=no
16787 fi
16788 if test $_pkg_short_errors_supported = yes; then
16789 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
16790 else
16791 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
16792 fi
16793 # Put the nasty error message in config.log where it belongs
16794 echo "$WEBKIT_PKG_ERRORS" >&5
16795
16796
16797
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16799 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16800 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16801 $as_echo_n "(cached) " >&6
16802 else
16803
16804 ac_check_framework_save_LIBS=$LIBS
16805 LIBS="-framework JavaScriptCore $LIBS"
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16808
16809 #include <JavaScriptCore/JSBase.h>
16810
16811 int
16812 main ()
16813 {
16814 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16815 ;
16816 return 0;
16817 }
16818 _ACEOF
16819 if ac_fn_cxx_try_link "$LINENO"; then :
16820
16821 ac_cv_framework_JavaScriptCore=yes
16822
16823 else
16824 ac_cv_framework_JavaScriptCore=no
16825 fi
16826 rm -f core conftest.err conftest.$ac_objext \
16827 conftest$ac_exeext conftest.$ac_ext
16828 LIBS=$ac_check_framework_save_LIBS
16829
16830 fi
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16832 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16833 if test $ac_cv_framework_JavaScriptCore = yes; then :
16834
16835
16836 for element in "-framework JavaScriptCore $LIBS"; do
16837 haveit=
16838 for x in $LIBS; do
16839
16840 acl_save_prefix="$prefix"
16841 prefix="$acl_final_prefix"
16842 acl_save_exec_prefix="$exec_prefix"
16843 exec_prefix="$acl_final_exec_prefix"
16844 eval x=\"$x\"
16845 exec_prefix="$acl_save_exec_prefix"
16846 prefix="$acl_save_prefix"
16847
16848 if test "X$x" = "X$element"; then
16849 haveit=yes
16850 break
16851 fi
16852 done
16853 if test -z "$haveit"; then
16854 LIBS="${LIBS}${LIBS:+ }$element"
16855 fi
16856 done
16857
16858 CY_EXECUTE=1
16859
16860 fi
16861
16862 elif test $pkg_failed = untried; then
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16864 $as_echo "no" >&6; }
16865
16866
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16868 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16869 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16870 $as_echo_n "(cached) " >&6
16871 else
16872
16873 ac_check_framework_save_LIBS=$LIBS
16874 LIBS="-framework JavaScriptCore $LIBS"
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877
16878 #include <JavaScriptCore/JSBase.h>
16879
16880 int
16881 main ()
16882 {
16883 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16884 ;
16885 return 0;
16886 }
16887 _ACEOF
16888 if ac_fn_cxx_try_link "$LINENO"; then :
16889
16890 ac_cv_framework_JavaScriptCore=yes
16891
16892 else
16893 ac_cv_framework_JavaScriptCore=no
16894 fi
16895 rm -f core conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
16897 LIBS=$ac_check_framework_save_LIBS
16898
16899 fi
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16901 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16902 if test $ac_cv_framework_JavaScriptCore = yes; then :
16903
16904
16905 for element in "-framework JavaScriptCore $LIBS"; do
16906 haveit=
16907 for x in $LIBS; do
16908
16909 acl_save_prefix="$prefix"
16910 prefix="$acl_final_prefix"
16911 acl_save_exec_prefix="$exec_prefix"
16912 exec_prefix="$acl_final_exec_prefix"
16913 eval x=\"$x\"
16914 exec_prefix="$acl_save_exec_prefix"
16915 prefix="$acl_save_prefix"
16916
16917 if test "X$x" = "X$element"; then
16918 haveit=yes
16919 break
16920 fi
16921 done
16922 if test -z "$haveit"; then
16923 LIBS="${LIBS}${LIBS:+ }$element"
16924 fi
16925 done
16926
16927 CY_EXECUTE=1
16928
16929 fi
16930
16931 else
16932 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16933 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16935 $as_echo "yes" >&6; }
16936
16937 CY_EXECUTE=1
16938
16939 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16940 haveit=
16941 for x in $CXXFLAGS; do
16942
16943 acl_save_prefix="$prefix"
16944 prefix="$acl_final_prefix"
16945 acl_save_exec_prefix="$exec_prefix"
16946 exec_prefix="$acl_final_exec_prefix"
16947 eval x=\"$x\"
16948 exec_prefix="$acl_save_exec_prefix"
16949 prefix="$acl_save_prefix"
16950
16951 if test "X$x" = "X$element"; then
16952 haveit=yes
16953 break
16954 fi
16955 done
16956 if test -z "$haveit"; then
16957 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16958 fi
16959 done
16960
16961
16962 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16963 haveit=
16964 for x in $LIBS; do
16965
16966 acl_save_prefix="$prefix"
16967 prefix="$acl_final_prefix"
16968 acl_save_exec_prefix="$exec_prefix"
16969 exec_prefix="$acl_final_exec_prefix"
16970 eval x=\"$x\"
16971 exec_prefix="$acl_save_exec_prefix"
16972 prefix="$acl_save_prefix"
16973
16974 if test "X$x" = "X$element"; then
16975 haveit=yes
16976 break
16977 fi
16978 done
16979 if test -z "$haveit"; then
16980 LIBS="${LIBS}${LIBS:+ }$element"
16981 fi
16982 done
16983
16984
16985 fi
16986
16987 else
16988 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16989 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16991 $as_echo "yes" >&6; }
16992
16993 CY_EXECUTE=1
16994
16995 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16996 haveit=
16997 for x in $CXXFLAGS; do
16998
16999 acl_save_prefix="$prefix"
17000 prefix="$acl_final_prefix"
17001 acl_save_exec_prefix="$exec_prefix"
17002 exec_prefix="$acl_final_exec_prefix"
17003 eval x=\"$x\"
17004 exec_prefix="$acl_save_exec_prefix"
17005 prefix="$acl_save_prefix"
17006
17007 if test "X$x" = "X$element"; then
17008 haveit=yes
17009 break
17010 fi
17011 done
17012 if test -z "$haveit"; then
17013 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17014 fi
17015 done
17016
17017
17018 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17019 haveit=
17020 for x in $LIBS; do
17021
17022 acl_save_prefix="$prefix"
17023 prefix="$acl_final_prefix"
17024 acl_save_exec_prefix="$exec_prefix"
17025 exec_prefix="$acl_final_exec_prefix"
17026 eval x=\"$x\"
17027 exec_prefix="$acl_save_exec_prefix"
17028 prefix="$acl_save_prefix"
17029
17030 if test "X$x" = "X$element"; then
17031 haveit=yes
17032 break
17033 fi
17034 done
17035 if test -z "$haveit"; then
17036 LIBS="${LIBS}${LIBS:+ }$element"
17037 fi
17038 done
17039
17040
17041 fi
17042
17043 ;; #(
17044 *) :
17045 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
17046 esac
17047
17048 else
17049
17050
17051
17052 pkg_failed=no
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17054 $as_echo_n "checking for WEBKIT... " >&6; }
17055
17056 if test -n "$WEBKIT_CFLAGS"; then
17057 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17058 elif test -n "$PKG_CONFIG"; then
17059 if test -n "$PKG_CONFIG" && \
17060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17061 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17062 ac_status=$?
17063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17064 test $ac_status = 0; }; then
17065 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17066 test "x$?" != "x0" && pkg_failed=yes
17067 else
17068 pkg_failed=yes
17069 fi
17070 else
17071 pkg_failed=untried
17072 fi
17073 if test -n "$WEBKIT_LIBS"; then
17074 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17075 elif test -n "$PKG_CONFIG"; then
17076 if test -n "$PKG_CONFIG" && \
17077 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17078 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17079 ac_status=$?
17080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17081 test $ac_status = 0; }; then
17082 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17083 test "x$?" != "x0" && pkg_failed=yes
17084 else
17085 pkg_failed=yes
17086 fi
17087 else
17088 pkg_failed=untried
17089 fi
17090
17091
17092
17093 if test $pkg_failed = yes; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 $as_echo "no" >&6; }
17096
17097 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17098 _pkg_short_errors_supported=yes
17099 else
17100 _pkg_short_errors_supported=no
17101 fi
17102 if test $_pkg_short_errors_supported = yes; then
17103 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0" 2>&1`
17104 else
17105 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0" 2>&1`
17106 fi
17107 # Put the nasty error message in config.log where it belongs
17108 echo "$WEBKIT_PKG_ERRORS" >&5
17109
17110
17111
17112 pkg_failed=no
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17114 $as_echo_n "checking for WEBKIT... " >&6; }
17115
17116 if test -n "$WEBKIT_CFLAGS"; then
17117 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17118 elif test -n "$PKG_CONFIG"; then
17119 if test -n "$PKG_CONFIG" && \
17120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17121 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17122 ac_status=$?
17123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17124 test $ac_status = 0; }; then
17125 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17126 test "x$?" != "x0" && pkg_failed=yes
17127 else
17128 pkg_failed=yes
17129 fi
17130 else
17131 pkg_failed=untried
17132 fi
17133 if test -n "$WEBKIT_LIBS"; then
17134 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17135 elif test -n "$PKG_CONFIG"; then
17136 if test -n "$PKG_CONFIG" && \
17137 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17138 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17139 ac_status=$?
17140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17141 test $ac_status = 0; }; then
17142 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17143 test "x$?" != "x0" && pkg_failed=yes
17144 else
17145 pkg_failed=yes
17146 fi
17147 else
17148 pkg_failed=untried
17149 fi
17150
17151
17152
17153 if test $pkg_failed = yes; then
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155 $as_echo "no" >&6; }
17156
17157 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17158 _pkg_short_errors_supported=yes
17159 else
17160 _pkg_short_errors_supported=no
17161 fi
17162 if test $_pkg_short_errors_supported = yes; then
17163 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
17164 else
17165 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
17166 fi
17167 # Put the nasty error message in config.log where it belongs
17168 echo "$WEBKIT_PKG_ERRORS" >&5
17169
17170
17171
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17173 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17174 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17175 $as_echo_n "(cached) " >&6
17176 else
17177
17178 ac_check_framework_save_LIBS=$LIBS
17179 LIBS="-framework JavaScriptCore $LIBS"
17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h. */
17182
17183 #include <JavaScriptCore/JSBase.h>
17184
17185 int
17186 main ()
17187 {
17188 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17189 ;
17190 return 0;
17191 }
17192 _ACEOF
17193 if ac_fn_cxx_try_link "$LINENO"; then :
17194
17195 ac_cv_framework_JavaScriptCore=yes
17196
17197 else
17198 ac_cv_framework_JavaScriptCore=no
17199 fi
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17202 LIBS=$ac_check_framework_save_LIBS
17203
17204 fi
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17206 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17207 if test $ac_cv_framework_JavaScriptCore = yes; then :
17208
17209
17210 for element in "-framework JavaScriptCore $LIBS"; do
17211 haveit=
17212 for x in $LIBS; do
17213
17214 acl_save_prefix="$prefix"
17215 prefix="$acl_final_prefix"
17216 acl_save_exec_prefix="$exec_prefix"
17217 exec_prefix="$acl_final_exec_prefix"
17218 eval x=\"$x\"
17219 exec_prefix="$acl_save_exec_prefix"
17220 prefix="$acl_save_prefix"
17221
17222 if test "X$x" = "X$element"; then
17223 haveit=yes
17224 break
17225 fi
17226 done
17227 if test -z "$haveit"; then
17228 LIBS="${LIBS}${LIBS:+ }$element"
17229 fi
17230 done
17231
17232 CY_EXECUTE=1
17233
17234 fi
17235
17236 elif test $pkg_failed = untried; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17238 $as_echo "no" >&6; }
17239
17240
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17242 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17243 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17244 $as_echo_n "(cached) " >&6
17245 else
17246
17247 ac_check_framework_save_LIBS=$LIBS
17248 LIBS="-framework JavaScriptCore $LIBS"
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251
17252 #include <JavaScriptCore/JSBase.h>
17253
17254 int
17255 main ()
17256 {
17257 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17258 ;
17259 return 0;
17260 }
17261 _ACEOF
17262 if ac_fn_cxx_try_link "$LINENO"; then :
17263
17264 ac_cv_framework_JavaScriptCore=yes
17265
17266 else
17267 ac_cv_framework_JavaScriptCore=no
17268 fi
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_framework_save_LIBS
17272
17273 fi
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17275 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17276 if test $ac_cv_framework_JavaScriptCore = yes; then :
17277
17278
17279 for element in "-framework JavaScriptCore $LIBS"; do
17280 haveit=
17281 for x in $LIBS; do
17282
17283 acl_save_prefix="$prefix"
17284 prefix="$acl_final_prefix"
17285 acl_save_exec_prefix="$exec_prefix"
17286 exec_prefix="$acl_final_exec_prefix"
17287 eval x=\"$x\"
17288 exec_prefix="$acl_save_exec_prefix"
17289 prefix="$acl_save_prefix"
17290
17291 if test "X$x" = "X$element"; then
17292 haveit=yes
17293 break
17294 fi
17295 done
17296 if test -z "$haveit"; then
17297 LIBS="${LIBS}${LIBS:+ }$element"
17298 fi
17299 done
17300
17301 CY_EXECUTE=1
17302
17303 fi
17304
17305 else
17306 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17307 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17309 $as_echo "yes" >&6; }
17310
17311 CY_EXECUTE=1
17312
17313 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17314 haveit=
17315 for x in $CXXFLAGS; do
17316
17317 acl_save_prefix="$prefix"
17318 prefix="$acl_final_prefix"
17319 acl_save_exec_prefix="$exec_prefix"
17320 exec_prefix="$acl_final_exec_prefix"
17321 eval x=\"$x\"
17322 exec_prefix="$acl_save_exec_prefix"
17323 prefix="$acl_save_prefix"
17324
17325 if test "X$x" = "X$element"; then
17326 haveit=yes
17327 break
17328 fi
17329 done
17330 if test -z "$haveit"; then
17331 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17332 fi
17333 done
17334
17335
17336 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17337 haveit=
17338 for x in $LIBS; do
17339
17340 acl_save_prefix="$prefix"
17341 prefix="$acl_final_prefix"
17342 acl_save_exec_prefix="$exec_prefix"
17343 exec_prefix="$acl_final_exec_prefix"
17344 eval x=\"$x\"
17345 exec_prefix="$acl_save_exec_prefix"
17346 prefix="$acl_save_prefix"
17347
17348 if test "X$x" = "X$element"; then
17349 haveit=yes
17350 break
17351 fi
17352 done
17353 if test -z "$haveit"; then
17354 LIBS="${LIBS}${LIBS:+ }$element"
17355 fi
17356 done
17357
17358
17359 fi
17360
17361 elif test $pkg_failed = untried; then
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17363 $as_echo "no" >&6; }
17364
17365
17366 pkg_failed=no
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17368 $as_echo_n "checking for WEBKIT... " >&6; }
17369
17370 if test -n "$WEBKIT_CFLAGS"; then
17371 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17372 elif test -n "$PKG_CONFIG"; then
17373 if test -n "$PKG_CONFIG" && \
17374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17375 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17376 ac_status=$?
17377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17378 test $ac_status = 0; }; then
17379 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17380 test "x$?" != "x0" && pkg_failed=yes
17381 else
17382 pkg_failed=yes
17383 fi
17384 else
17385 pkg_failed=untried
17386 fi
17387 if test -n "$WEBKIT_LIBS"; then
17388 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17389 elif test -n "$PKG_CONFIG"; then
17390 if test -n "$PKG_CONFIG" && \
17391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17392 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17393 ac_status=$?
17394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17395 test $ac_status = 0; }; then
17396 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17397 test "x$?" != "x0" && pkg_failed=yes
17398 else
17399 pkg_failed=yes
17400 fi
17401 else
17402 pkg_failed=untried
17403 fi
17404
17405
17406
17407 if test $pkg_failed = yes; then
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17409 $as_echo "no" >&6; }
17410
17411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17412 _pkg_short_errors_supported=yes
17413 else
17414 _pkg_short_errors_supported=no
17415 fi
17416 if test $_pkg_short_errors_supported = yes; then
17417 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
17418 else
17419 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
17420 fi
17421 # Put the nasty error message in config.log where it belongs
17422 echo "$WEBKIT_PKG_ERRORS" >&5
17423
17424
17425
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17427 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17428 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17429 $as_echo_n "(cached) " >&6
17430 else
17431
17432 ac_check_framework_save_LIBS=$LIBS
17433 LIBS="-framework JavaScriptCore $LIBS"
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17436
17437 #include <JavaScriptCore/JSBase.h>
17438
17439 int
17440 main ()
17441 {
17442 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17443 ;
17444 return 0;
17445 }
17446 _ACEOF
17447 if ac_fn_cxx_try_link "$LINENO"; then :
17448
17449 ac_cv_framework_JavaScriptCore=yes
17450
17451 else
17452 ac_cv_framework_JavaScriptCore=no
17453 fi
17454 rm -f core conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
17456 LIBS=$ac_check_framework_save_LIBS
17457
17458 fi
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17460 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17461 if test $ac_cv_framework_JavaScriptCore = yes; then :
17462
17463
17464 for element in "-framework JavaScriptCore $LIBS"; do
17465 haveit=
17466 for x in $LIBS; do
17467
17468 acl_save_prefix="$prefix"
17469 prefix="$acl_final_prefix"
17470 acl_save_exec_prefix="$exec_prefix"
17471 exec_prefix="$acl_final_exec_prefix"
17472 eval x=\"$x\"
17473 exec_prefix="$acl_save_exec_prefix"
17474 prefix="$acl_save_prefix"
17475
17476 if test "X$x" = "X$element"; then
17477 haveit=yes
17478 break
17479 fi
17480 done
17481 if test -z "$haveit"; then
17482 LIBS="${LIBS}${LIBS:+ }$element"
17483 fi
17484 done
17485
17486 CY_EXECUTE=1
17487
17488 fi
17489
17490 elif test $pkg_failed = untried; then
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17492 $as_echo "no" >&6; }
17493
17494
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17496 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17497 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17498 $as_echo_n "(cached) " >&6
17499 else
17500
17501 ac_check_framework_save_LIBS=$LIBS
17502 LIBS="-framework JavaScriptCore $LIBS"
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505
17506 #include <JavaScriptCore/JSBase.h>
17507
17508 int
17509 main ()
17510 {
17511 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17512 ;
17513 return 0;
17514 }
17515 _ACEOF
17516 if ac_fn_cxx_try_link "$LINENO"; then :
17517
17518 ac_cv_framework_JavaScriptCore=yes
17519
17520 else
17521 ac_cv_framework_JavaScriptCore=no
17522 fi
17523 rm -f core conftest.err conftest.$ac_objext \
17524 conftest$ac_exeext conftest.$ac_ext
17525 LIBS=$ac_check_framework_save_LIBS
17526
17527 fi
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17529 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17530 if test $ac_cv_framework_JavaScriptCore = yes; then :
17531
17532
17533 for element in "-framework JavaScriptCore $LIBS"; do
17534 haveit=
17535 for x in $LIBS; do
17536
17537 acl_save_prefix="$prefix"
17538 prefix="$acl_final_prefix"
17539 acl_save_exec_prefix="$exec_prefix"
17540 exec_prefix="$acl_final_exec_prefix"
17541 eval x=\"$x\"
17542 exec_prefix="$acl_save_exec_prefix"
17543 prefix="$acl_save_prefix"
17544
17545 if test "X$x" = "X$element"; then
17546 haveit=yes
17547 break
17548 fi
17549 done
17550 if test -z "$haveit"; then
17551 LIBS="${LIBS}${LIBS:+ }$element"
17552 fi
17553 done
17554
17555 CY_EXECUTE=1
17556
17557 fi
17558
17559 else
17560 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17561 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17563 $as_echo "yes" >&6; }
17564
17565 CY_EXECUTE=1
17566
17567 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17568 haveit=
17569 for x in $CXXFLAGS; do
17570
17571 acl_save_prefix="$prefix"
17572 prefix="$acl_final_prefix"
17573 acl_save_exec_prefix="$exec_prefix"
17574 exec_prefix="$acl_final_exec_prefix"
17575 eval x=\"$x\"
17576 exec_prefix="$acl_save_exec_prefix"
17577 prefix="$acl_save_prefix"
17578
17579 if test "X$x" = "X$element"; then
17580 haveit=yes
17581 break
17582 fi
17583 done
17584 if test -z "$haveit"; then
17585 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17586 fi
17587 done
17588
17589
17590 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17591 haveit=
17592 for x in $LIBS; do
17593
17594 acl_save_prefix="$prefix"
17595 prefix="$acl_final_prefix"
17596 acl_save_exec_prefix="$exec_prefix"
17597 exec_prefix="$acl_final_exec_prefix"
17598 eval x=\"$x\"
17599 exec_prefix="$acl_save_exec_prefix"
17600 prefix="$acl_save_prefix"
17601
17602 if test "X$x" = "X$element"; then
17603 haveit=yes
17604 break
17605 fi
17606 done
17607 if test -z "$haveit"; then
17608 LIBS="${LIBS}${LIBS:+ }$element"
17609 fi
17610 done
17611
17612
17613 fi
17614
17615 else
17616 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17617 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17619 $as_echo "yes" >&6; }
17620
17621 CY_EXECUTE=1
17622
17623 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17624 haveit=
17625 for x in $CXXFLAGS; do
17626
17627 acl_save_prefix="$prefix"
17628 prefix="$acl_final_prefix"
17629 acl_save_exec_prefix="$exec_prefix"
17630 exec_prefix="$acl_final_exec_prefix"
17631 eval x=\"$x\"
17632 exec_prefix="$acl_save_exec_prefix"
17633 prefix="$acl_save_prefix"
17634
17635 if test "X$x" = "X$element"; then
17636 haveit=yes
17637 break
17638 fi
17639 done
17640 if test -z "$haveit"; then
17641 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17642 fi
17643 done
17644
17645
17646 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17647 haveit=
17648 for x in $LIBS; do
17649
17650 acl_save_prefix="$prefix"
17651 prefix="$acl_final_prefix"
17652 acl_save_exec_prefix="$exec_prefix"
17653 exec_prefix="$acl_final_exec_prefix"
17654 eval x=\"$x\"
17655 exec_prefix="$acl_save_exec_prefix"
17656 prefix="$acl_save_prefix"
17657
17658 if test "X$x" = "X$element"; then
17659 haveit=yes
17660 break
17661 fi
17662 done
17663 if test -z "$haveit"; then
17664 LIBS="${LIBS}${LIBS:+ }$element"
17665 fi
17666 done
17667
17668
17669 fi
17670
17671
17672 fi
17673
17674
17675
17676
17677 case $CY_EXECUTE in #(
17678 1) :
17679
17680
17681 for ac_header in ffi.h ffi/ffi.h
17682 do :
17683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17684 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17685 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17686 cat >>confdefs.h <<_ACEOF
17687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17688 _ACEOF
17689 break
17690 fi
17691
17692 done
17693
17694 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17695
17696
17697
17698 pkg_failed=no
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17700 $as_echo_n "checking for LIBFFI... " >&6; }
17701
17702 if test -n "$LIBFFI_CFLAGS"; then
17703 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17704 elif test -n "$PKG_CONFIG"; then
17705 if test -n "$PKG_CONFIG" && \
17706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17707 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17708 ac_status=$?
17709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17710 test $ac_status = 0; }; then
17711 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17712 test "x$?" != "x0" && pkg_failed=yes
17713 else
17714 pkg_failed=yes
17715 fi
17716 else
17717 pkg_failed=untried
17718 fi
17719 if test -n "$LIBFFI_LIBS"; then
17720 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17721 elif test -n "$PKG_CONFIG"; then
17722 if test -n "$PKG_CONFIG" && \
17723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17724 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17725 ac_status=$?
17726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17727 test $ac_status = 0; }; then
17728 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17729 test "x$?" != "x0" && pkg_failed=yes
17730 else
17731 pkg_failed=yes
17732 fi
17733 else
17734 pkg_failed=untried
17735 fi
17736
17737
17738
17739 if test $pkg_failed = yes; then
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17741 $as_echo "no" >&6; }
17742
17743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17744 _pkg_short_errors_supported=yes
17745 else
17746 _pkg_short_errors_supported=no
17747 fi
17748 if test $_pkg_short_errors_supported = yes; then
17749 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
17750 else
17751 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
17752 fi
17753 # Put the nasty error message in config.log where it belongs
17754 echo "$LIBFFI_PKG_ERRORS" >&5
17755
17756
17757 as_fn_error $? "You need libffi" "$LINENO" 5
17758
17759 elif test $pkg_failed = untried; then
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17761 $as_echo "no" >&6; }
17762
17763 as_fn_error $? "You need libffi" "$LINENO" 5
17764
17765 else
17766 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17767 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17769 $as_echo "yes" >&6; }
17770
17771
17772 for element in `$PKG_CONFIG --cflags libffi`; do
17773 haveit=
17774 for x in $CXXFLAGS; do
17775
17776 acl_save_prefix="$prefix"
17777 prefix="$acl_final_prefix"
17778 acl_save_exec_prefix="$exec_prefix"
17779 exec_prefix="$acl_final_exec_prefix"
17780 eval x=\"$x\"
17781 exec_prefix="$acl_save_exec_prefix"
17782 prefix="$acl_save_prefix"
17783
17784 if test "X$x" = "X$element"; then
17785 haveit=yes
17786 break
17787 fi
17788 done
17789 if test -z "$haveit"; then
17790 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17791 fi
17792 done
17793
17794
17795 for element in `$PKG_CONFIG --libs libffi`; do
17796 haveit=
17797 for x in $LIBS; do
17798
17799 acl_save_prefix="$prefix"
17800 prefix="$acl_final_prefix"
17801 acl_save_exec_prefix="$exec_prefix"
17802 exec_prefix="$acl_final_exec_prefix"
17803 eval x=\"$x\"
17804 exec_prefix="$acl_save_exec_prefix"
17805 prefix="$acl_save_prefix"
17806
17807 if test "X$x" = "X$element"; then
17808 haveit=yes
17809 break
17810 fi
17811 done
17812 if test -z "$haveit"; then
17813 LIBS="${LIBS}${LIBS:+ }$element"
17814 fi
17815 done
17816
17817
17818 fi
17819
17820
17821 else
17822
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17824 $as_echo_n "checking for library containing ffi_call... " >&6; }
17825 if ${ac_cv_search_ffi_call+:} false; then :
17826 $as_echo_n "(cached) " >&6
17827 else
17828 ac_func_search_save_LIBS=$LIBS
17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h. */
17831
17832 /* Override any GCC internal prototype to avoid an error.
17833 Use char because int might match the return type of a GCC
17834 builtin and then its argument prototype would still apply. */
17835 #ifdef __cplusplus
17836 extern "C"
17837 #endif
17838 char ffi_call ();
17839 int
17840 main ()
17841 {
17842 return ffi_call ();
17843 ;
17844 return 0;
17845 }
17846 _ACEOF
17847 for ac_lib in '' ffi; do
17848 if test -z "$ac_lib"; then
17849 ac_res="none required"
17850 else
17851 ac_res=-l$ac_lib
17852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17853 fi
17854 if ac_fn_cxx_try_link "$LINENO"; then :
17855 ac_cv_search_ffi_call=$ac_res
17856 fi
17857 rm -f core conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext
17859 if ${ac_cv_search_ffi_call+:} false; then :
17860 break
17861 fi
17862 done
17863 if ${ac_cv_search_ffi_call+:} false; then :
17864
17865 else
17866 ac_cv_search_ffi_call=no
17867 fi
17868 rm conftest.$ac_ext
17869 LIBS=$ac_func_search_save_LIBS
17870 fi
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17872 $as_echo "$ac_cv_search_ffi_call" >&6; }
17873 ac_res=$ac_cv_search_ffi_call
17874 if test "$ac_res" != no; then :
17875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17876
17877 fi
17878
17879 case $ac_cv_search_ffi_call in #(
17880 no) :
17881
17882
17883 pkg_failed=no
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17885 $as_echo_n "checking for LIBFFI... " >&6; }
17886
17887 if test -n "$LIBFFI_CFLAGS"; then
17888 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17889 elif test -n "$PKG_CONFIG"; then
17890 if test -n "$PKG_CONFIG" && \
17891 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17892 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17893 ac_status=$?
17894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17895 test $ac_status = 0; }; then
17896 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17897 test "x$?" != "x0" && pkg_failed=yes
17898 else
17899 pkg_failed=yes
17900 fi
17901 else
17902 pkg_failed=untried
17903 fi
17904 if test -n "$LIBFFI_LIBS"; then
17905 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17906 elif test -n "$PKG_CONFIG"; then
17907 if test -n "$PKG_CONFIG" && \
17908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17909 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17910 ac_status=$?
17911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17912 test $ac_status = 0; }; then
17913 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17914 test "x$?" != "x0" && pkg_failed=yes
17915 else
17916 pkg_failed=yes
17917 fi
17918 else
17919 pkg_failed=untried
17920 fi
17921
17922
17923
17924 if test $pkg_failed = yes; then
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17926 $as_echo "no" >&6; }
17927
17928 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17929 _pkg_short_errors_supported=yes
17930 else
17931 _pkg_short_errors_supported=no
17932 fi
17933 if test $_pkg_short_errors_supported = yes; then
17934 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
17935 else
17936 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
17937 fi
17938 # Put the nasty error message in config.log where it belongs
17939 echo "$LIBFFI_PKG_ERRORS" >&5
17940
17941
17942 as_fn_error $? "You need libffi" "$LINENO" 5
17943
17944 elif test $pkg_failed = untried; then
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17946 $as_echo "no" >&6; }
17947
17948 as_fn_error $? "You need libffi" "$LINENO" 5
17949
17950 else
17951 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17952 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17954 $as_echo "yes" >&6; }
17955
17956
17957 for element in `$PKG_CONFIG --cflags libffi`; do
17958 haveit=
17959 for x in $CXXFLAGS; do
17960
17961 acl_save_prefix="$prefix"
17962 prefix="$acl_final_prefix"
17963 acl_save_exec_prefix="$exec_prefix"
17964 exec_prefix="$acl_final_exec_prefix"
17965 eval x=\"$x\"
17966 exec_prefix="$acl_save_exec_prefix"
17967 prefix="$acl_save_prefix"
17968
17969 if test "X$x" = "X$element"; then
17970 haveit=yes
17971 break
17972 fi
17973 done
17974 if test -z "$haveit"; then
17975 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17976 fi
17977 done
17978
17979
17980 for element in `$PKG_CONFIG --libs libffi`; do
17981 haveit=
17982 for x in $LIBS; do
17983
17984 acl_save_prefix="$prefix"
17985 prefix="$acl_final_prefix"
17986 acl_save_exec_prefix="$exec_prefix"
17987 exec_prefix="$acl_final_exec_prefix"
17988 eval x=\"$x\"
17989 exec_prefix="$acl_save_exec_prefix"
17990 prefix="$acl_save_prefix"
17991
17992 if test "X$x" = "X$element"; then
17993 haveit=yes
17994 break
17995 fi
17996 done
17997 if test -z "$haveit"; then
17998 LIBS="${LIBS}${LIBS:+ }$element"
17999 fi
18000 done
18001
18002
18003 fi
18004 ;; #(
18005 *) :
18006 ;;
18007 esac
18008
18009 fi
18010 ac_ext=mm
18011 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18012 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18013 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18014 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18015
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
18017 $as_echo_n "checking if we really have Objective C++... " >&6; }
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020
18021 // This space intentionally left blank
18022
18023 _ACEOF
18024 if ac_fn_objcxx_try_compile "$LINENO"; then :
18025
18026 CY_OBJECTIVEC=1
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18028 $as_echo "yes" >&6; }
18029
18030 else
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18032 $as_echo "no" >&6; }
18033 fi
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 if test "x$CY_OBJECTIVEC" = x1; then :
18036
18037
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
18039 $as_echo_n "checking for framework CoreFoundation... " >&6; }
18040 if ${ac_cv_framework_CoreFoundation+:} false; then :
18041 $as_echo_n "(cached) " >&6
18042 else
18043
18044 ac_check_framework_save_LIBS=$LIBS
18045 LIBS="-framework CoreFoundation $LIBS"
18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18048
18049 #include <CoreFoundation/CFBase.h>
18050
18051 int
18052 main ()
18053 {
18054 CFAllocatorGetDefault();
18055 ;
18056 return 0;
18057 }
18058 _ACEOF
18059 if ac_fn_objcxx_try_link "$LINENO"; then :
18060
18061 ac_cv_framework_CoreFoundation=yes
18062
18063 else
18064 ac_cv_framework_CoreFoundation=no
18065 fi
18066 rm -f core conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_framework_save_LIBS
18069
18070 fi
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
18072 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
18073 if test $ac_cv_framework_CoreFoundation = yes; then :
18074
18075
18076 for element in "-framework CoreFoundation $LIBS"; do
18077 haveit=
18078 for x in $LIBS; do
18079
18080 acl_save_prefix="$prefix"
18081 prefix="$acl_final_prefix"
18082 acl_save_exec_prefix="$exec_prefix"
18083 exec_prefix="$acl_final_exec_prefix"
18084 eval x=\"$x\"
18085 exec_prefix="$acl_save_exec_prefix"
18086 prefix="$acl_save_prefix"
18087
18088 if test "X$x" = "X$element"; then
18089 haveit=yes
18090 break
18091 fi
18092 done
18093 if test -z "$haveit"; then
18094 LIBS="${LIBS}${LIBS:+ }$element"
18095 fi
18096 done
18097
18098
18099
18100
18101
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
18103 $as_echo_n "checking for framework Foundation... " >&6; }
18104 if ${ac_cv_framework_Foundation+:} false; then :
18105 $as_echo_n "(cached) " >&6
18106 else
18107
18108 ac_check_framework_save_LIBS=$LIBS
18109 LIBS="-framework Foundation $LIBS"
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18112
18113 #include <Foundation/NSObject.h>
18114
18115 int
18116 main ()
18117 {
18118 [[NSObject alloc] init];
18119 ;
18120 return 0;
18121 }
18122 _ACEOF
18123 if ac_fn_objcxx_try_link "$LINENO"; then :
18124
18125 ac_cv_framework_Foundation=yes
18126
18127 else
18128 ac_cv_framework_Foundation=no
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext \
18131 conftest$ac_exeext conftest.$ac_ext
18132 LIBS=$ac_check_framework_save_LIBS
18133
18134 fi
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
18136 $as_echo "$ac_cv_framework_Foundation" >&6; }
18137 if test $ac_cv_framework_Foundation = yes; then :
18138
18139
18140 for element in "-framework Foundation $LIBS"; do
18141 haveit=
18142 for x in $LIBS; do
18143
18144 acl_save_prefix="$prefix"
18145 prefix="$acl_final_prefix"
18146 acl_save_exec_prefix="$exec_prefix"
18147 exec_prefix="$acl_final_exec_prefix"
18148 eval x=\"$x\"
18149 exec_prefix="$acl_save_exec_prefix"
18150 prefix="$acl_save_prefix"
18151
18152 if test "X$x" = "X$element"; then
18153 haveit=yes
18154 break
18155 fi
18156 done
18157 if test -z "$haveit"; then
18158 LIBS="${LIBS}${LIBS:+ }$element"
18159 fi
18160 done
18161
18162 cat >>confdefs.h <<_ACEOF
18163 #define HAVE_FRAMEWORK_FOUNDATION 1
18164 _ACEOF
18165
18166
18167 fi
18168
18169
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
18171 $as_echo_n "checking for framework WebKit... " >&6; }
18172 if ${ac_cv_framework_WebKit+:} false; then :
18173 $as_echo_n "(cached) " >&6
18174 else
18175
18176 ac_check_framework_save_LIBS=$LIBS
18177 LIBS="-framework WebKit $LIBS"
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18180
18181 #include <WebKit/WebScriptObject.h>
18182
18183 int
18184 main ()
18185 {
18186 [[WebScriptObject alloc] init];
18187 ;
18188 return 0;
18189 }
18190 _ACEOF
18191 if ac_fn_objcxx_try_link "$LINENO"; then :
18192
18193 ac_cv_framework_WebKit=yes
18194
18195 else
18196 ac_cv_framework_WebKit=no
18197 fi
18198 rm -f core conftest.err conftest.$ac_objext \
18199 conftest$ac_exeext conftest.$ac_ext
18200 LIBS=$ac_check_framework_save_LIBS
18201
18202 fi
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
18204 $as_echo "$ac_cv_framework_WebKit" >&6; }
18205 if test $ac_cv_framework_WebKit = yes; then :
18206
18207
18208 for element in "-framework WebKit $LIBS"; do
18209 haveit=
18210 for x in $LIBS; do
18211
18212 acl_save_prefix="$prefix"
18213 prefix="$acl_final_prefix"
18214 acl_save_exec_prefix="$exec_prefix"
18215 exec_prefix="$acl_final_exec_prefix"
18216 eval x=\"$x\"
18217 exec_prefix="$acl_save_exec_prefix"
18218 prefix="$acl_save_prefix"
18219
18220 if test "X$x" = "X$element"; then
18221 haveit=yes
18222 break
18223 fi
18224 done
18225 if test -z "$haveit"; then
18226 LIBS="${LIBS}${LIBS:+ }$element"
18227 fi
18228 done
18229
18230 cat >>confdefs.h <<_ACEOF
18231 #define HAVE_FRAMEWORK_WEBKIT 1
18232 _ACEOF
18233
18234
18235 fi
18236
18237
18238 else
18239
18240
18241 for ac_prog in gnustep-config
18242 do
18243 # Extract the first word of "$ac_prog", so it can be a program name with args.
18244 set dummy $ac_prog; ac_word=$2
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18246 $as_echo_n "checking for $ac_word... " >&6; }
18247 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
18248 $as_echo_n "(cached) " >&6
18249 else
18250 if test -n "$GNUSTEP_CONFIG"; then
18251 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
18252 else
18253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18254 for as_dir in $PATH
18255 do
18256 IFS=$as_save_IFS
18257 test -z "$as_dir" && as_dir=.
18258 for ac_exec_ext in '' $ac_executable_extensions; do
18259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18260 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
18261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18262 break 2
18263 fi
18264 done
18265 done
18266 IFS=$as_save_IFS
18267
18268 fi
18269 fi
18270 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
18271 if test -n "$GNUSTEP_CONFIG"; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
18273 $as_echo "$GNUSTEP_CONFIG" >&6; }
18274 else
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18276 $as_echo "no" >&6; }
18277 fi
18278
18279
18280 test -n "$GNUSTEP_CONFIG" && break
18281 done
18282
18283 if test "x$GNUSTEP_CONFIG" != x; then :
18284
18285
18286
18287 for element in `$GNUSTEP_CONFIG --objc-flags`; do
18288 haveit=
18289 for x in $OBJCXXFLAGS; do
18290
18291 acl_save_prefix="$prefix"
18292 prefix="$acl_final_prefix"
18293 acl_save_exec_prefix="$exec_prefix"
18294 exec_prefix="$acl_final_exec_prefix"
18295 eval x=\"$x\"
18296 exec_prefix="$acl_save_exec_prefix"
18297 prefix="$acl_save_prefix"
18298
18299 if test "X$x" = "X$element"; then
18300 haveit=yes
18301 break
18302 fi
18303 done
18304 if test -z "$haveit"; then
18305 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18306 fi
18307 done
18308
18309
18310 for element in `$GNUSTEP_CONFIG --base-libs`; do
18311 haveit=
18312 for x in $LIBS; do
18313
18314 acl_save_prefix="$prefix"
18315 prefix="$acl_final_prefix"
18316 acl_save_exec_prefix="$exec_prefix"
18317 exec_prefix="$acl_final_exec_prefix"
18318 eval x=\"$x\"
18319 exec_prefix="$acl_save_exec_prefix"
18320 prefix="$acl_save_prefix"
18321
18322 if test "X$x" = "X$element"; then
18323 haveit=yes
18324 break
18325 fi
18326 done
18327 if test -z "$haveit"; then
18328 LIBS="${LIBS}${LIBS:+ }$element"
18329 fi
18330 done
18331
18332
18333 else
18334 CY_OBJECTIVEC=0
18335
18336 fi
18337
18338 fi
18339
18340 fi
18341 ac_ext=cpp
18342 ac_cpp='$CXXCPP $CPPFLAGS'
18343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18346
18347 ;; #(
18348 *) :
18349 ;;
18350 esac
18351
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
18353 $as_echo_n "checking for a readline compatible library... " >&6; }
18354 if ${ax_cv_lib_readline+:} false; then :
18355 $as_echo_n "(cached) " >&6
18356 else
18357
18358 ORIG_LIBS="$LIBS"
18359 for readline_lib in readline edit editline; do
18360 for termcap_lib in "" termcap curses ncurses; do
18361 if test -z "$termcap_lib"; then
18362 TRY_LIB="-l$readline_lib"
18363 else
18364 TRY_LIB="-l$readline_lib -l$termcap_lib"
18365 fi
18366 LIBS="$ORIG_LIBS $TRY_LIB"
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18369
18370 /* Override any GCC internal prototype to avoid an error.
18371 Use char because int might match the return type of a GCC
18372 builtin and then its argument prototype would still apply. */
18373 #ifdef __cplusplus
18374 extern "C"
18375 #endif
18376 char readline ();
18377 int
18378 main ()
18379 {
18380 return readline ();
18381 ;
18382 return 0;
18383 }
18384 _ACEOF
18385 if ac_fn_cxx_try_link "$LINENO"; then :
18386 ax_cv_lib_readline="$TRY_LIB"
18387 fi
18388 rm -f core conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18390 if test -n "$ax_cv_lib_readline"; then
18391 break
18392 fi
18393 done
18394 if test -n "$ax_cv_lib_readline"; then
18395 break
18396 fi
18397 done
18398 if test -z "$ax_cv_lib_readline"; then
18399 ax_cv_lib_readline="no"
18400 fi
18401 LIBS="$ORIG_LIBS"
18402
18403 fi
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
18405 $as_echo "$ax_cv_lib_readline" >&6; }
18406
18407 if test "$ax_cv_lib_readline" != "no"; then
18408 LIBS="$LIBS $ax_cv_lib_readline"
18409
18410 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
18411
18412 for ac_header in readline.h readline/readline.h
18413 do :
18414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18415 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18417 cat >>confdefs.h <<_ACEOF
18418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18419 _ACEOF
18420
18421 fi
18422
18423 done
18424
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
18426 $as_echo_n "checking whether readline supports history... " >&6; }
18427 if ${ax_cv_lib_readline_history+:} false; then :
18428 $as_echo_n "(cached) " >&6
18429 else
18430
18431 ax_cv_lib_readline_history="no"
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18434
18435 /* Override any GCC internal prototype to avoid an error.
18436 Use char because int might match the return type of a GCC
18437 builtin and then its argument prototype would still apply. */
18438 #ifdef __cplusplus
18439 extern "C"
18440 #endif
18441 char add_history ();
18442 int
18443 main ()
18444 {
18445 return add_history ();
18446 ;
18447 return 0;
18448 }
18449 _ACEOF
18450 if ac_fn_cxx_try_link "$LINENO"; then :
18451 ax_cv_lib_readline_history="yes"
18452 fi
18453 rm -f core conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455
18456 fi
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
18458 $as_echo "$ax_cv_lib_readline_history" >&6; }
18459 if test "$ax_cv_lib_readline_history" = "yes"; then
18460
18461 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
18462
18463 for ac_header in history.h readline/history.h
18464 do :
18465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18466 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18468 cat >>confdefs.h <<_ACEOF
18469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18470 _ACEOF
18471
18472 fi
18473
18474 done
18475
18476 fi
18477 fi
18478
18479 case $vl_cv_lib_readline in #(
18480 no) :
18481 as_fn_error $? "You need readline" "$LINENO" 5 ;; #(
18482 *) :
18483 ;;
18484 esac
18485 ac_ext=c
18486 ac_cpp='$CPP $CPPFLAGS'
18487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18490
18491
18492 if test "X$prefix" = "XNONE"; then
18493 acl_final_prefix="$ac_default_prefix"
18494 else
18495 acl_final_prefix="$prefix"
18496 fi
18497 if test "X$exec_prefix" = "XNONE"; then
18498 acl_final_exec_prefix='${prefix}'
18499 else
18500 acl_final_exec_prefix="$exec_prefix"
18501 fi
18502 acl_save_prefix="$prefix"
18503 prefix="$acl_final_prefix"
18504 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18505 prefix="$acl_save_prefix"
18506
18507
18508 # Check whether --with-gnu-ld was given.
18509 if test "${with_gnu_ld+set}" = set; then :
18510 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18511 else
18512 with_gnu_ld=no
18513 fi
18514
18515 # Prepare PATH_SEPARATOR.
18516 # The user is always right.
18517 if test "${PATH_SEPARATOR+set}" != set; then
18518 echo "#! /bin/sh" >conf$$.sh
18519 echo "exit 0" >>conf$$.sh
18520 chmod +x conf$$.sh
18521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18522 PATH_SEPARATOR=';'
18523 else
18524 PATH_SEPARATOR=:
18525 fi
18526 rm -f conf$$.sh
18527 fi
18528 ac_prog=ld
18529 if test "$GCC" = yes; then
18530 # Check if gcc -print-prog-name=ld gives a path.
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
18532 $as_echo_n "checking for ld used by GCC... " >&6; }
18533 case $host in
18534 *-*-mingw*)
18535 # gcc leaves a trailing carriage return which upsets mingw
18536 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18537 *)
18538 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18539 esac
18540 case $ac_prog in
18541 # Accept absolute paths.
18542 [\\/]* | [A-Za-z]:[\\/]*)
18543 re_direlt='/[^/][^/]*/\.\./'
18544 # Canonicalize the path of ld
18545 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18546 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18547 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18548 done
18549 test -z "$LD" && LD="$ac_prog"
18550 ;;
18551 "")
18552 # If it fails, then pretend we aren't using GCC.
18553 ac_prog=ld
18554 ;;
18555 *)
18556 # If it is relative, then search for the first ld in PATH.
18557 with_gnu_ld=unknown
18558 ;;
18559 esac
18560 elif test "$with_gnu_ld" = yes; then
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18562 $as_echo_n "checking for GNU ld... " >&6; }
18563 else
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18565 $as_echo_n "checking for non-GNU ld... " >&6; }
18566 fi
18567 if ${acl_cv_path_LD+:} false; then :
18568 $as_echo_n "(cached) " >&6
18569 else
18570 if test -z "$LD"; then
18571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18572 for ac_dir in $PATH; do
18573 test -z "$ac_dir" && ac_dir=.
18574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18575 acl_cv_path_LD="$ac_dir/$ac_prog"
18576 # Check to see if the program is GNU ld. I'd rather use --version,
18577 # but apparently some GNU ld's only accept -v.
18578 # Break only if it was the GNU/non-GNU ld that we prefer.
18579 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
18580 *GNU* | *'with BFD'*)
18581 test "$with_gnu_ld" != no && break ;;
18582 *)
18583 test "$with_gnu_ld" != yes && break ;;
18584 esac
18585 fi
18586 done
18587 IFS="$ac_save_ifs"
18588 else
18589 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18590 fi
18591 fi
18592
18593 LD="$acl_cv_path_LD"
18594 if test -n "$LD"; then
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18596 $as_echo "$LD" >&6; }
18597 else
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18599 $as_echo "no" >&6; }
18600 fi
18601 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18603 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18604 if ${acl_cv_prog_gnu_ld+:} false; then :
18605 $as_echo_n "(cached) " >&6
18606 else
18607 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18608 case `$LD -v 2>&1 </dev/null` in
18609 *GNU* | *'with BFD'*)
18610 acl_cv_prog_gnu_ld=yes ;;
18611 *)
18612 acl_cv_prog_gnu_ld=no ;;
18613 esac
18614 fi
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18616 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18617 with_gnu_ld=$acl_cv_prog_gnu_ld
18618
18619
18620
18621
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18623 $as_echo_n "checking for shared library run path origin... " >&6; }
18624 if ${acl_cv_rpath+:} false; then :
18625 $as_echo_n "(cached) " >&6
18626 else
18627
18628 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18629 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18630 . ./conftest.sh
18631 rm -f ./conftest.sh
18632 acl_cv_rpath=done
18633
18634 fi
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18636 $as_echo "$acl_cv_rpath" >&6; }
18637 wl="$acl_cv_wl"
18638 acl_libext="$acl_cv_libext"
18639 acl_shlibext="$acl_cv_shlibext"
18640 acl_libname_spec="$acl_cv_libname_spec"
18641 acl_library_names_spec="$acl_cv_library_names_spec"
18642 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18643 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18644 acl_hardcode_direct="$acl_cv_hardcode_direct"
18645 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18646 # Check whether --enable-rpath was given.
18647 if test "${enable_rpath+set}" = set; then :
18648 enableval=$enable_rpath; :
18649 else
18650 enable_rpath=yes
18651 fi
18652
18653
18654
18655
18656 acl_libdirstem=lib
18657 acl_libdirstem2=
18658 case "$host_os" in
18659 solaris*)
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18661 $as_echo_n "checking for 64-bit host... " >&6; }
18662 if ${gl_cv_solaris_64bit+:} false; then :
18663 $as_echo_n "(cached) " >&6
18664 else
18665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666 /* end confdefs.h. */
18667
18668 #ifdef _LP64
18669 sixtyfour bits
18670 #endif
18671
18672 _ACEOF
18673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18674 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18675 gl_cv_solaris_64bit=yes
18676 else
18677 gl_cv_solaris_64bit=no
18678 fi
18679 rm -f conftest*
18680
18681
18682 fi
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18684 $as_echo "$gl_cv_solaris_64bit" >&6; }
18685 if test $gl_cv_solaris_64bit = yes; then
18686 acl_libdirstem=lib/64
18687 case "$host_cpu" in
18688 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18689 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18690 esac
18691 fi
18692 ;;
18693 *)
18694 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18695 if test -n "$searchpath"; then
18696 acl_save_IFS="${IFS= }"; IFS=":"
18697 for searchdir in $searchpath; do
18698 if test -d "$searchdir"; then
18699 case "$searchdir" in
18700 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18701 */../ | */.. )
18702 # Better ignore directories of this form. They are misleading.
18703 ;;
18704 *) searchdir=`cd "$searchdir" && pwd`
18705 case "$searchdir" in
18706 */lib64 ) acl_libdirstem=lib64 ;;
18707 esac ;;
18708 esac
18709 fi
18710 done
18711 IFS="$acl_save_IFS"
18712 fi
18713 ;;
18714 esac
18715 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728 use_additional=yes
18729
18730 acl_save_prefix="$prefix"
18731 prefix="$acl_final_prefix"
18732 acl_save_exec_prefix="$exec_prefix"
18733 exec_prefix="$acl_final_exec_prefix"
18734
18735 eval additional_includedir=\"$includedir\"
18736 eval additional_libdir=\"$libdir\"
18737
18738 exec_prefix="$acl_save_exec_prefix"
18739 prefix="$acl_save_prefix"
18740
18741
18742 # Check whether --with-libiconv-prefix was given.
18743 if test "${with_libiconv_prefix+set}" = set; then :
18744 withval=$with_libiconv_prefix;
18745 if test "X$withval" = "Xno"; then
18746 use_additional=no
18747 else
18748 if test "X$withval" = "X"; then
18749
18750 acl_save_prefix="$prefix"
18751 prefix="$acl_final_prefix"
18752 acl_save_exec_prefix="$exec_prefix"
18753 exec_prefix="$acl_final_exec_prefix"
18754
18755 eval additional_includedir=\"$includedir\"
18756 eval additional_libdir=\"$libdir\"
18757
18758 exec_prefix="$acl_save_exec_prefix"
18759 prefix="$acl_save_prefix"
18760
18761 else
18762 additional_includedir="$withval/include"
18763 additional_libdir="$withval/$acl_libdirstem"
18764 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18765 && ! test -d "$withval/$acl_libdirstem"; then
18766 additional_libdir="$withval/$acl_libdirstem2"
18767 fi
18768 fi
18769 fi
18770
18771 fi
18772
18773 LIBICONV=
18774 LTLIBICONV=
18775 INCICONV=
18776 LIBICONV_PREFIX=
18777 HAVE_LIBICONV=
18778 rpathdirs=
18779 ltrpathdirs=
18780 names_already_handled=
18781 names_next_round='iconv '
18782 while test -n "$names_next_round"; do
18783 names_this_round="$names_next_round"
18784 names_next_round=
18785 for name in $names_this_round; do
18786 already_handled=
18787 for n in $names_already_handled; do
18788 if test "$n" = "$name"; then
18789 already_handled=yes
18790 break
18791 fi
18792 done
18793 if test -z "$already_handled"; then
18794 names_already_handled="$names_already_handled $name"
18795 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18796 eval value=\"\$HAVE_LIB$uppername\"
18797 if test -n "$value"; then
18798 if test "$value" = yes; then
18799 eval value=\"\$LIB$uppername\"
18800 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18801 eval value=\"\$LTLIB$uppername\"
18802 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18803 else
18804 :
18805 fi
18806 else
18807 found_dir=
18808 found_la=
18809 found_so=
18810 found_a=
18811 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18812 if test -n "$acl_shlibext"; then
18813 shrext=".$acl_shlibext" # typically: shrext=.so
18814 else
18815 shrext=
18816 fi
18817 if test $use_additional = yes; then
18818 dir="$additional_libdir"
18819 if test -n "$acl_shlibext"; then
18820 if test -f "$dir/$libname$shrext"; then
18821 found_dir="$dir"
18822 found_so="$dir/$libname$shrext"
18823 else
18824 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18825 ver=`(cd "$dir" && \
18826 for f in "$libname$shrext".*; do echo "$f"; done \
18827 | sed -e "s,^$libname$shrext\\\\.,," \
18828 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18829 | sed 1q ) 2>/dev/null`
18830 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18831 found_dir="$dir"
18832 found_so="$dir/$libname$shrext.$ver"
18833 fi
18834 else
18835 eval library_names=\"$acl_library_names_spec\"
18836 for f in $library_names; do
18837 if test -f "$dir/$f"; then
18838 found_dir="$dir"
18839 found_so="$dir/$f"
18840 break
18841 fi
18842 done
18843 fi
18844 fi
18845 fi
18846 if test "X$found_dir" = "X"; then
18847 if test -f "$dir/$libname.$acl_libext"; then
18848 found_dir="$dir"
18849 found_a="$dir/$libname.$acl_libext"
18850 fi
18851 fi
18852 if test "X$found_dir" != "X"; then
18853 if test -f "$dir/$libname.la"; then
18854 found_la="$dir/$libname.la"
18855 fi
18856 fi
18857 fi
18858 if test "X$found_dir" = "X"; then
18859 for x in $LDFLAGS $LTLIBICONV; do
18860
18861 acl_save_prefix="$prefix"
18862 prefix="$acl_final_prefix"
18863 acl_save_exec_prefix="$exec_prefix"
18864 exec_prefix="$acl_final_exec_prefix"
18865 eval x=\"$x\"
18866 exec_prefix="$acl_save_exec_prefix"
18867 prefix="$acl_save_prefix"
18868
18869 case "$x" in
18870 -L*)
18871 dir=`echo "X$x" | sed -e 's/^X-L//'`
18872 if test -n "$acl_shlibext"; then
18873 if test -f "$dir/$libname$shrext"; then
18874 found_dir="$dir"
18875 found_so="$dir/$libname$shrext"
18876 else
18877 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18878 ver=`(cd "$dir" && \
18879 for f in "$libname$shrext".*; do echo "$f"; done \
18880 | sed -e "s,^$libname$shrext\\\\.,," \
18881 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18882 | sed 1q ) 2>/dev/null`
18883 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18884 found_dir="$dir"
18885 found_so="$dir/$libname$shrext.$ver"
18886 fi
18887 else
18888 eval library_names=\"$acl_library_names_spec\"
18889 for f in $library_names; do
18890 if test -f "$dir/$f"; then
18891 found_dir="$dir"
18892 found_so="$dir/$f"
18893 break
18894 fi
18895 done
18896 fi
18897 fi
18898 fi
18899 if test "X$found_dir" = "X"; then
18900 if test -f "$dir/$libname.$acl_libext"; then
18901 found_dir="$dir"
18902 found_a="$dir/$libname.$acl_libext"
18903 fi
18904 fi
18905 if test "X$found_dir" != "X"; then
18906 if test -f "$dir/$libname.la"; then
18907 found_la="$dir/$libname.la"
18908 fi
18909 fi
18910 ;;
18911 esac
18912 if test "X$found_dir" != "X"; then
18913 break
18914 fi
18915 done
18916 fi
18917 if test "X$found_dir" != "X"; then
18918 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18919 if test "X$found_so" != "X"; then
18920 if test "$enable_rpath" = no \
18921 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18922 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18923 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18924 else
18925 haveit=
18926 for x in $ltrpathdirs; do
18927 if test "X$x" = "X$found_dir"; then
18928 haveit=yes
18929 break
18930 fi
18931 done
18932 if test -z "$haveit"; then
18933 ltrpathdirs="$ltrpathdirs $found_dir"
18934 fi
18935 if test "$acl_hardcode_direct" = yes; then
18936 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18937 else
18938 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18939 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18940 haveit=
18941 for x in $rpathdirs; do
18942 if test "X$x" = "X$found_dir"; then
18943 haveit=yes
18944 break
18945 fi
18946 done
18947 if test -z "$haveit"; then
18948 rpathdirs="$rpathdirs $found_dir"
18949 fi
18950 else
18951 haveit=
18952 for x in $LDFLAGS $LIBICONV; do
18953
18954 acl_save_prefix="$prefix"
18955 prefix="$acl_final_prefix"
18956 acl_save_exec_prefix="$exec_prefix"
18957 exec_prefix="$acl_final_exec_prefix"
18958 eval x=\"$x\"
18959 exec_prefix="$acl_save_exec_prefix"
18960 prefix="$acl_save_prefix"
18961
18962 if test "X$x" = "X-L$found_dir"; then
18963 haveit=yes
18964 break
18965 fi
18966 done
18967 if test -z "$haveit"; then
18968 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18969 fi
18970 if test "$acl_hardcode_minus_L" != no; then
18971 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18972 else
18973 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18974 fi
18975 fi
18976 fi
18977 fi
18978 else
18979 if test "X$found_a" != "X"; then
18980 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18981 else
18982 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18983 fi
18984 fi
18985 additional_includedir=
18986 case "$found_dir" in
18987 */$acl_libdirstem | */$acl_libdirstem/)
18988 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18989 if test "$name" = 'iconv'; then
18990 LIBICONV_PREFIX="$basedir"
18991 fi
18992 additional_includedir="$basedir/include"
18993 ;;
18994 */$acl_libdirstem2 | */$acl_libdirstem2/)
18995 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18996 if test "$name" = 'iconv'; then
18997 LIBICONV_PREFIX="$basedir"
18998 fi
18999 additional_includedir="$basedir/include"
19000 ;;
19001 esac
19002 if test "X$additional_includedir" != "X"; then
19003 if test "X$additional_includedir" != "X/usr/include"; then
19004 haveit=
19005 if test "X$additional_includedir" = "X/usr/local/include"; then
19006 if test -n "$GCC"; then
19007 case $host_os in
19008 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19009 esac
19010 fi
19011 fi
19012 if test -z "$haveit"; then
19013 for x in $CPPFLAGS $INCICONV; do
19014
19015 acl_save_prefix="$prefix"
19016 prefix="$acl_final_prefix"
19017 acl_save_exec_prefix="$exec_prefix"
19018 exec_prefix="$acl_final_exec_prefix"
19019 eval x=\"$x\"
19020 exec_prefix="$acl_save_exec_prefix"
19021 prefix="$acl_save_prefix"
19022
19023 if test "X$x" = "X-I$additional_includedir"; then
19024 haveit=yes
19025 break
19026 fi
19027 done
19028 if test -z "$haveit"; then
19029 if test -d "$additional_includedir"; then
19030 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19031 fi
19032 fi
19033 fi
19034 fi
19035 fi
19036 if test -n "$found_la"; then
19037 save_libdir="$libdir"
19038 case "$found_la" in
19039 */* | *\\*) . "$found_la" ;;
19040 *) . "./$found_la" ;;
19041 esac
19042 libdir="$save_libdir"
19043 for dep in $dependency_libs; do
19044 case "$dep" in
19045 -L*)
19046 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19047 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19048 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19049 haveit=
19050 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19051 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19052 if test -n "$GCC"; then
19053 case $host_os in
19054 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19055 esac
19056 fi
19057 fi
19058 if test -z "$haveit"; then
19059 haveit=
19060 for x in $LDFLAGS $LIBICONV; do
19061
19062 acl_save_prefix="$prefix"
19063 prefix="$acl_final_prefix"
19064 acl_save_exec_prefix="$exec_prefix"
19065 exec_prefix="$acl_final_exec_prefix"
19066 eval x=\"$x\"
19067 exec_prefix="$acl_save_exec_prefix"
19068 prefix="$acl_save_prefix"
19069
19070 if test "X$x" = "X-L$additional_libdir"; then
19071 haveit=yes
19072 break
19073 fi
19074 done
19075 if test -z "$haveit"; then
19076 if test -d "$additional_libdir"; then
19077 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19078 fi
19079 fi
19080 haveit=
19081 for x in $LDFLAGS $LTLIBICONV; do
19082
19083 acl_save_prefix="$prefix"
19084 prefix="$acl_final_prefix"
19085 acl_save_exec_prefix="$exec_prefix"
19086 exec_prefix="$acl_final_exec_prefix"
19087 eval x=\"$x\"
19088 exec_prefix="$acl_save_exec_prefix"
19089 prefix="$acl_save_prefix"
19090
19091 if test "X$x" = "X-L$additional_libdir"; then
19092 haveit=yes
19093 break
19094 fi
19095 done
19096 if test -z "$haveit"; then
19097 if test -d "$additional_libdir"; then
19098 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19099 fi
19100 fi
19101 fi
19102 fi
19103 ;;
19104 -R*)
19105 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19106 if test "$enable_rpath" != no; then
19107 haveit=
19108 for x in $rpathdirs; do
19109 if test "X$x" = "X$dir"; then
19110 haveit=yes
19111 break
19112 fi
19113 done
19114 if test -z "$haveit"; then
19115 rpathdirs="$rpathdirs $dir"
19116 fi
19117 haveit=
19118 for x in $ltrpathdirs; do
19119 if test "X$x" = "X$dir"; then
19120 haveit=yes
19121 break
19122 fi
19123 done
19124 if test -z "$haveit"; then
19125 ltrpathdirs="$ltrpathdirs $dir"
19126 fi
19127 fi
19128 ;;
19129 -l*)
19130 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19131 ;;
19132 *.la)
19133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19134 ;;
19135 *)
19136 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19138 ;;
19139 esac
19140 done
19141 fi
19142 else
19143 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19145 fi
19146 fi
19147 fi
19148 done
19149 done
19150 if test "X$rpathdirs" != "X"; then
19151 if test -n "$acl_hardcode_libdir_separator"; then
19152 alldirs=
19153 for found_dir in $rpathdirs; do
19154 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19155 done
19156 acl_save_libdir="$libdir"
19157 libdir="$alldirs"
19158 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19159 libdir="$acl_save_libdir"
19160 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19161 else
19162 for found_dir in $rpathdirs; do
19163 acl_save_libdir="$libdir"
19164 libdir="$found_dir"
19165 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19166 libdir="$acl_save_libdir"
19167 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19168 done
19169 fi
19170 fi
19171 if test "X$ltrpathdirs" != "X"; then
19172 for found_dir in $ltrpathdirs; do
19173 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19174 done
19175 fi
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188 am_save_CPPFLAGS="$CPPFLAGS"
19189
19190 for element in $INCICONV; do
19191 haveit=
19192 for x in $CPPFLAGS; do
19193
19194 acl_save_prefix="$prefix"
19195 prefix="$acl_final_prefix"
19196 acl_save_exec_prefix="$exec_prefix"
19197 exec_prefix="$acl_final_exec_prefix"
19198 eval x=\"$x\"
19199 exec_prefix="$acl_save_exec_prefix"
19200 prefix="$acl_save_prefix"
19201
19202 if test "X$x" = "X$element"; then
19203 haveit=yes
19204 break
19205 fi
19206 done
19207 if test -z "$haveit"; then
19208 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19209 fi
19210 done
19211
19212
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19214 $as_echo_n "checking for iconv... " >&6; }
19215 if ${am_cv_func_iconv+:} false; then :
19216 $as_echo_n "(cached) " >&6
19217 else
19218
19219 am_cv_func_iconv="no, consider installing GNU libiconv"
19220 am_cv_lib_iconv=no
19221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19222 /* end confdefs.h. */
19223 #include <stdlib.h>
19224 #include <iconv.h>
19225 int
19226 main ()
19227 {
19228 iconv_t cd = iconv_open("","");
19229 iconv(cd,NULL,NULL,NULL,NULL);
19230 iconv_close(cd);
19231 ;
19232 return 0;
19233 }
19234 _ACEOF
19235 if ac_fn_c_try_link "$LINENO"; then :
19236 am_cv_func_iconv=yes
19237 fi
19238 rm -f core conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
19240 if test "$am_cv_func_iconv" != yes; then
19241 am_save_LIBS="$LIBS"
19242 LIBS="$LIBS $LIBICONV"
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19245 #include <stdlib.h>
19246 #include <iconv.h>
19247 int
19248 main ()
19249 {
19250 iconv_t cd = iconv_open("","");
19251 iconv(cd,NULL,NULL,NULL,NULL);
19252 iconv_close(cd);
19253 ;
19254 return 0;
19255 }
19256 _ACEOF
19257 if ac_fn_c_try_link "$LINENO"; then :
19258 am_cv_lib_iconv=yes
19259 am_cv_func_iconv=yes
19260 fi
19261 rm -f core conftest.err conftest.$ac_objext \
19262 conftest$ac_exeext conftest.$ac_ext
19263 LIBS="$am_save_LIBS"
19264 fi
19265
19266 fi
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19268 $as_echo "$am_cv_func_iconv" >&6; }
19269 if test "$am_cv_func_iconv" = yes; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19271 $as_echo_n "checking for working iconv... " >&6; }
19272 if ${am_cv_func_iconv_works+:} false; then :
19273 $as_echo_n "(cached) " >&6
19274 else
19275
19276 am_save_LIBS="$LIBS"
19277 if test $am_cv_lib_iconv = yes; then
19278 LIBS="$LIBS $LIBICONV"
19279 fi
19280 if test "$cross_compiling" = yes; then :
19281 case "$host_os" in
19282 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19283 *) am_cv_func_iconv_works="guessing yes" ;;
19284 esac
19285 else
19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h. */
19288
19289 #include <iconv.h>
19290 #include <string.h>
19291 int main ()
19292 {
19293 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19294 returns. */
19295 {
19296 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19297 if (cd_utf8_to_88591 != (iconv_t)(-1))
19298 {
19299 static const char input[] = "\342\202\254"; /* EURO SIGN */
19300 char buf[10];
19301 const char *inptr = input;
19302 size_t inbytesleft = strlen (input);
19303 char *outptr = buf;
19304 size_t outbytesleft = sizeof (buf);
19305 size_t res = iconv (cd_utf8_to_88591,
19306 (char **) &inptr, &inbytesleft,
19307 &outptr, &outbytesleft);
19308 if (res == 0)
19309 return 1;
19310 }
19311 }
19312 /* Test against Solaris 10 bug: Failures are not distinguishable from
19313 successful returns. */
19314 {
19315 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19316 if (cd_ascii_to_88591 != (iconv_t)(-1))
19317 {
19318 static const char input[] = "\263";
19319 char buf[10];
19320 const char *inptr = input;
19321 size_t inbytesleft = strlen (input);
19322 char *outptr = buf;
19323 size_t outbytesleft = sizeof (buf);
19324 size_t res = iconv (cd_ascii_to_88591,
19325 (char **) &inptr, &inbytesleft,
19326 &outptr, &outbytesleft);
19327 if (res == 0)
19328 return 1;
19329 }
19330 }
19331 #if 0 /* This bug could be worked around by the caller. */
19332 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
19333 {
19334 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19335 if (cd_88591_to_utf8 != (iconv_t)(-1))
19336 {
19337 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19338 char buf[50];
19339 const char *inptr = input;
19340 size_t inbytesleft = strlen (input);
19341 char *outptr = buf;
19342 size_t outbytesleft = sizeof (buf);
19343 size_t res = iconv (cd_88591_to_utf8,
19344 (char **) &inptr, &inbytesleft,
19345 &outptr, &outbytesleft);
19346 if ((int)res > 0)
19347 return 1;
19348 }
19349 }
19350 #endif
19351 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19352 provided. */
19353 if (/* Try standardized names. */
19354 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19355 /* Try IRIX, OSF/1 names. */
19356 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19357 /* Try AIX names. */
19358 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19359 /* Try HP-UX names. */
19360 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19361 return 1;
19362 return 0;
19363 }
19364 _ACEOF
19365 if ac_fn_c_try_run "$LINENO"; then :
19366 am_cv_func_iconv_works=yes
19367 else
19368 am_cv_func_iconv_works=no
19369 fi
19370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19371 conftest.$ac_objext conftest.beam conftest.$ac_ext
19372 fi
19373
19374 LIBS="$am_save_LIBS"
19375
19376 fi
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19378 $as_echo "$am_cv_func_iconv_works" >&6; }
19379 case "$am_cv_func_iconv_works" in
19380 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19381 *) am_func_iconv=yes ;;
19382 esac
19383 else
19384 am_func_iconv=no am_cv_lib_iconv=no
19385 fi
19386 if test "$am_func_iconv" = yes; then
19387
19388 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19389
19390 fi
19391 if test "$am_cv_lib_iconv" = yes; then
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19393 $as_echo_n "checking how to link with libiconv... " >&6; }
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19395 $as_echo "$LIBICONV" >&6; }
19396 else
19397 CPPFLAGS="$am_save_CPPFLAGS"
19398 LIBICONV=
19399 LTLIBICONV=
19400 fi
19401
19402
19403
19404 if test "$am_cv_func_iconv" = yes; then
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19406 $as_echo_n "checking for iconv declaration... " >&6; }
19407 if ${am_cv_proto_iconv+:} false; then :
19408 $as_echo_n "(cached) " >&6
19409 else
19410
19411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19412 /* end confdefs.h. */
19413
19414 #include <stdlib.h>
19415 #include <iconv.h>
19416 extern
19417 #ifdef __cplusplus
19418 "C"
19419 #endif
19420 #if defined(__STDC__) || defined(__cplusplus)
19421 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19422 #else
19423 size_t iconv();
19424 #endif
19425
19426 int
19427 main ()
19428 {
19429
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 if ac_fn_c_try_compile "$LINENO"; then :
19435 am_cv_proto_iconv_arg1=""
19436 else
19437 am_cv_proto_iconv_arg1="const"
19438 fi
19439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19440 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
19441 fi
19442
19443 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
19445 $am_cv_proto_iconv" >&5
19446 $as_echo "
19447 $am_cv_proto_iconv" >&6; }
19448
19449 cat >>confdefs.h <<_ACEOF
19450 #define ICONV_CONST $am_cv_proto_iconv_arg1
19451 _ACEOF
19452
19453 fi
19454
19455 case $am_cv_func_iconv in #(
19456 yes) :
19457 ;; #(
19458 *) :
19459
19460 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
19461 case $cy_iconv_prefix_arg in #(
19462 -I*) :
19463
19464
19465 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
19466 haveit=
19467 for x in $cy_iconv_prefixes; do
19468
19469 acl_save_prefix="$prefix"
19470 prefix="$acl_final_prefix"
19471 acl_save_exec_prefix="$exec_prefix"
19472 exec_prefix="$acl_final_exec_prefix"
19473 eval x=\"$x\"
19474 exec_prefix="$acl_save_exec_prefix"
19475 prefix="$acl_save_prefix"
19476
19477 if test "X$x" = "X$element"; then
19478 haveit=yes
19479 break
19480 fi
19481 done
19482 if test -z "$haveit"; then
19483 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
19484 fi
19485 done
19486
19487 ;; #(
19488 -L*) :
19489
19490
19491 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
19492 haveit=
19493 for x in $cy_iconv_prefixes; do
19494
19495 acl_save_prefix="$prefix"
19496 prefix="$acl_final_prefix"
19497 acl_save_exec_prefix="$exec_prefix"
19498 exec_prefix="$acl_final_exec_prefix"
19499 eval x=\"$x\"
19500 exec_prefix="$acl_save_exec_prefix"
19501 prefix="$acl_save_prefix"
19502
19503 if test "X$x" = "X$element"; then
19504 haveit=yes
19505 break
19506 fi
19507 done
19508 if test -z "$haveit"; then
19509 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
19510 fi
19511 done
19512
19513 ;; #(
19514 *) :
19515 ;;
19516 esac
19517 done
19518 for with_libiconv_prefix in $cy_iconv_prefixes; do
19519 { am_cv_func_iconv=; unset am_cv_func_iconv;}
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531 use_additional=yes
19532
19533 acl_save_prefix="$prefix"
19534 prefix="$acl_final_prefix"
19535 acl_save_exec_prefix="$exec_prefix"
19536 exec_prefix="$acl_final_exec_prefix"
19537
19538 eval additional_includedir=\"$includedir\"
19539 eval additional_libdir=\"$libdir\"
19540
19541 exec_prefix="$acl_save_exec_prefix"
19542 prefix="$acl_save_prefix"
19543
19544
19545 # Check whether --with-libiconv-prefix was given.
19546 if test "${with_libiconv_prefix+set}" = set; then :
19547 withval=$with_libiconv_prefix;
19548 if test "X$withval" = "Xno"; then
19549 use_additional=no
19550 else
19551 if test "X$withval" = "X"; then
19552
19553 acl_save_prefix="$prefix"
19554 prefix="$acl_final_prefix"
19555 acl_save_exec_prefix="$exec_prefix"
19556 exec_prefix="$acl_final_exec_prefix"
19557
19558 eval additional_includedir=\"$includedir\"
19559 eval additional_libdir=\"$libdir\"
19560
19561 exec_prefix="$acl_save_exec_prefix"
19562 prefix="$acl_save_prefix"
19563
19564 else
19565 additional_includedir="$withval/include"
19566 additional_libdir="$withval/$acl_libdirstem"
19567 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19568 && ! test -d "$withval/$acl_libdirstem"; then
19569 additional_libdir="$withval/$acl_libdirstem2"
19570 fi
19571 fi
19572 fi
19573
19574 fi
19575
19576 LIBICONV=
19577 LTLIBICONV=
19578 INCICONV=
19579 LIBICONV_PREFIX=
19580 HAVE_LIBICONV=
19581 rpathdirs=
19582 ltrpathdirs=
19583 names_already_handled=
19584 names_next_round='iconv '
19585 while test -n "$names_next_round"; do
19586 names_this_round="$names_next_round"
19587 names_next_round=
19588 for name in $names_this_round; do
19589 already_handled=
19590 for n in $names_already_handled; do
19591 if test "$n" = "$name"; then
19592 already_handled=yes
19593 break
19594 fi
19595 done
19596 if test -z "$already_handled"; then
19597 names_already_handled="$names_already_handled $name"
19598 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19599 eval value=\"\$HAVE_LIB$uppername\"
19600 if test -n "$value"; then
19601 if test "$value" = yes; then
19602 eval value=\"\$LIB$uppername\"
19603 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19604 eval value=\"\$LTLIB$uppername\"
19605 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19606 else
19607 :
19608 fi
19609 else
19610 found_dir=
19611 found_la=
19612 found_so=
19613 found_a=
19614 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19615 if test -n "$acl_shlibext"; then
19616 shrext=".$acl_shlibext" # typically: shrext=.so
19617 else
19618 shrext=
19619 fi
19620 if test $use_additional = yes; then
19621 dir="$additional_libdir"
19622 if test -n "$acl_shlibext"; then
19623 if test -f "$dir/$libname$shrext"; then
19624 found_dir="$dir"
19625 found_so="$dir/$libname$shrext"
19626 else
19627 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19628 ver=`(cd "$dir" && \
19629 for f in "$libname$shrext".*; do echo "$f"; done \
19630 | sed -e "s,^$libname$shrext\\\\.,," \
19631 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19632 | sed 1q ) 2>/dev/null`
19633 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19634 found_dir="$dir"
19635 found_so="$dir/$libname$shrext.$ver"
19636 fi
19637 else
19638 eval library_names=\"$acl_library_names_spec\"
19639 for f in $library_names; do
19640 if test -f "$dir/$f"; then
19641 found_dir="$dir"
19642 found_so="$dir/$f"
19643 break
19644 fi
19645 done
19646 fi
19647 fi
19648 fi
19649 if test "X$found_dir" = "X"; then
19650 if test -f "$dir/$libname.$acl_libext"; then
19651 found_dir="$dir"
19652 found_a="$dir/$libname.$acl_libext"
19653 fi
19654 fi
19655 if test "X$found_dir" != "X"; then
19656 if test -f "$dir/$libname.la"; then
19657 found_la="$dir/$libname.la"
19658 fi
19659 fi
19660 fi
19661 if test "X$found_dir" = "X"; then
19662 for x in $LDFLAGS $LTLIBICONV; do
19663
19664 acl_save_prefix="$prefix"
19665 prefix="$acl_final_prefix"
19666 acl_save_exec_prefix="$exec_prefix"
19667 exec_prefix="$acl_final_exec_prefix"
19668 eval x=\"$x\"
19669 exec_prefix="$acl_save_exec_prefix"
19670 prefix="$acl_save_prefix"
19671
19672 case "$x" in
19673 -L*)
19674 dir=`echo "X$x" | sed -e 's/^X-L//'`
19675 if test -n "$acl_shlibext"; then
19676 if test -f "$dir/$libname$shrext"; then
19677 found_dir="$dir"
19678 found_so="$dir/$libname$shrext"
19679 else
19680 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19681 ver=`(cd "$dir" && \
19682 for f in "$libname$shrext".*; do echo "$f"; done \
19683 | sed -e "s,^$libname$shrext\\\\.,," \
19684 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19685 | sed 1q ) 2>/dev/null`
19686 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19687 found_dir="$dir"
19688 found_so="$dir/$libname$shrext.$ver"
19689 fi
19690 else
19691 eval library_names=\"$acl_library_names_spec\"
19692 for f in $library_names; do
19693 if test -f "$dir/$f"; then
19694 found_dir="$dir"
19695 found_so="$dir/$f"
19696 break
19697 fi
19698 done
19699 fi
19700 fi
19701 fi
19702 if test "X$found_dir" = "X"; then
19703 if test -f "$dir/$libname.$acl_libext"; then
19704 found_dir="$dir"
19705 found_a="$dir/$libname.$acl_libext"
19706 fi
19707 fi
19708 if test "X$found_dir" != "X"; then
19709 if test -f "$dir/$libname.la"; then
19710 found_la="$dir/$libname.la"
19711 fi
19712 fi
19713 ;;
19714 esac
19715 if test "X$found_dir" != "X"; then
19716 break
19717 fi
19718 done
19719 fi
19720 if test "X$found_dir" != "X"; then
19721 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19722 if test "X$found_so" != "X"; then
19723 if test "$enable_rpath" = no \
19724 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19725 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19726 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19727 else
19728 haveit=
19729 for x in $ltrpathdirs; do
19730 if test "X$x" = "X$found_dir"; then
19731 haveit=yes
19732 break
19733 fi
19734 done
19735 if test -z "$haveit"; then
19736 ltrpathdirs="$ltrpathdirs $found_dir"
19737 fi
19738 if test "$acl_hardcode_direct" = yes; then
19739 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19740 else
19741 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19742 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19743 haveit=
19744 for x in $rpathdirs; do
19745 if test "X$x" = "X$found_dir"; then
19746 haveit=yes
19747 break
19748 fi
19749 done
19750 if test -z "$haveit"; then
19751 rpathdirs="$rpathdirs $found_dir"
19752 fi
19753 else
19754 haveit=
19755 for x in $LDFLAGS $LIBICONV; do
19756
19757 acl_save_prefix="$prefix"
19758 prefix="$acl_final_prefix"
19759 acl_save_exec_prefix="$exec_prefix"
19760 exec_prefix="$acl_final_exec_prefix"
19761 eval x=\"$x\"
19762 exec_prefix="$acl_save_exec_prefix"
19763 prefix="$acl_save_prefix"
19764
19765 if test "X$x" = "X-L$found_dir"; then
19766 haveit=yes
19767 break
19768 fi
19769 done
19770 if test -z "$haveit"; then
19771 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19772 fi
19773 if test "$acl_hardcode_minus_L" != no; then
19774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19775 else
19776 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19777 fi
19778 fi
19779 fi
19780 fi
19781 else
19782 if test "X$found_a" != "X"; then
19783 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19784 else
19785 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19786 fi
19787 fi
19788 additional_includedir=
19789 case "$found_dir" in
19790 */$acl_libdirstem | */$acl_libdirstem/)
19791 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19792 if test "$name" = 'iconv'; then
19793 LIBICONV_PREFIX="$basedir"
19794 fi
19795 additional_includedir="$basedir/include"
19796 ;;
19797 */$acl_libdirstem2 | */$acl_libdirstem2/)
19798 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19799 if test "$name" = 'iconv'; then
19800 LIBICONV_PREFIX="$basedir"
19801 fi
19802 additional_includedir="$basedir/include"
19803 ;;
19804 esac
19805 if test "X$additional_includedir" != "X"; then
19806 if test "X$additional_includedir" != "X/usr/include"; then
19807 haveit=
19808 if test "X$additional_includedir" = "X/usr/local/include"; then
19809 if test -n "$GCC"; then
19810 case $host_os in
19811 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19812 esac
19813 fi
19814 fi
19815 if test -z "$haveit"; then
19816 for x in $CPPFLAGS $INCICONV; do
19817
19818 acl_save_prefix="$prefix"
19819 prefix="$acl_final_prefix"
19820 acl_save_exec_prefix="$exec_prefix"
19821 exec_prefix="$acl_final_exec_prefix"
19822 eval x=\"$x\"
19823 exec_prefix="$acl_save_exec_prefix"
19824 prefix="$acl_save_prefix"
19825
19826 if test "X$x" = "X-I$additional_includedir"; then
19827 haveit=yes
19828 break
19829 fi
19830 done
19831 if test -z "$haveit"; then
19832 if test -d "$additional_includedir"; then
19833 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19834 fi
19835 fi
19836 fi
19837 fi
19838 fi
19839 if test -n "$found_la"; then
19840 save_libdir="$libdir"
19841 case "$found_la" in
19842 */* | *\\*) . "$found_la" ;;
19843 *) . "./$found_la" ;;
19844 esac
19845 libdir="$save_libdir"
19846 for dep in $dependency_libs; do
19847 case "$dep" in
19848 -L*)
19849 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19850 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19851 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19852 haveit=
19853 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19854 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19855 if test -n "$GCC"; then
19856 case $host_os in
19857 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19858 esac
19859 fi
19860 fi
19861 if test -z "$haveit"; then
19862 haveit=
19863 for x in $LDFLAGS $LIBICONV; do
19864
19865 acl_save_prefix="$prefix"
19866 prefix="$acl_final_prefix"
19867 acl_save_exec_prefix="$exec_prefix"
19868 exec_prefix="$acl_final_exec_prefix"
19869 eval x=\"$x\"
19870 exec_prefix="$acl_save_exec_prefix"
19871 prefix="$acl_save_prefix"
19872
19873 if test "X$x" = "X-L$additional_libdir"; then
19874 haveit=yes
19875 break
19876 fi
19877 done
19878 if test -z "$haveit"; then
19879 if test -d "$additional_libdir"; then
19880 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19881 fi
19882 fi
19883 haveit=
19884 for x in $LDFLAGS $LTLIBICONV; do
19885
19886 acl_save_prefix="$prefix"
19887 prefix="$acl_final_prefix"
19888 acl_save_exec_prefix="$exec_prefix"
19889 exec_prefix="$acl_final_exec_prefix"
19890 eval x=\"$x\"
19891 exec_prefix="$acl_save_exec_prefix"
19892 prefix="$acl_save_prefix"
19893
19894 if test "X$x" = "X-L$additional_libdir"; then
19895 haveit=yes
19896 break
19897 fi
19898 done
19899 if test -z "$haveit"; then
19900 if test -d "$additional_libdir"; then
19901 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19902 fi
19903 fi
19904 fi
19905 fi
19906 ;;
19907 -R*)
19908 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19909 if test "$enable_rpath" != no; then
19910 haveit=
19911 for x in $rpathdirs; do
19912 if test "X$x" = "X$dir"; then
19913 haveit=yes
19914 break
19915 fi
19916 done
19917 if test -z "$haveit"; then
19918 rpathdirs="$rpathdirs $dir"
19919 fi
19920 haveit=
19921 for x in $ltrpathdirs; do
19922 if test "X$x" = "X$dir"; then
19923 haveit=yes
19924 break
19925 fi
19926 done
19927 if test -z "$haveit"; then
19928 ltrpathdirs="$ltrpathdirs $dir"
19929 fi
19930 fi
19931 ;;
19932 -l*)
19933 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19934 ;;
19935 *.la)
19936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19937 ;;
19938 *)
19939 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19940 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19941 ;;
19942 esac
19943 done
19944 fi
19945 else
19946 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19948 fi
19949 fi
19950 fi
19951 done
19952 done
19953 if test "X$rpathdirs" != "X"; then
19954 if test -n "$acl_hardcode_libdir_separator"; then
19955 alldirs=
19956 for found_dir in $rpathdirs; do
19957 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19958 done
19959 acl_save_libdir="$libdir"
19960 libdir="$alldirs"
19961 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19962 libdir="$acl_save_libdir"
19963 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19964 else
19965 for found_dir in $rpathdirs; do
19966 acl_save_libdir="$libdir"
19967 libdir="$found_dir"
19968 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19969 libdir="$acl_save_libdir"
19970 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19971 done
19972 fi
19973 fi
19974 if test "X$ltrpathdirs" != "X"; then
19975 for found_dir in $ltrpathdirs; do
19976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19977 done
19978 fi
19979
19980
19981
19982
19983
19984
19985
19986
19987 done
19988 ;;
19989 esac
19990 case $am_cv_func_iconv in #(
19991 yes) :
19992 ;; #(
19993 *) :
19994 as_fn_error $? "You need iconv" "$LINENO" 5 ;;
19995 esac
19996 ac_ext=cpp
19997 ac_cpp='$CXXCPP $CPPFLAGS'
19998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20001
20002 SO=$acl_shlibext
20003
20004 if test "x$CY_OBJECTIVEC" = x1; then :
20005
20006 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20007 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
20008
20009 if test -n "$ac_tool_prefix"; then
20010 for ac_prog in otool
20011 do
20012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20015 $as_echo_n "checking for $ac_word... " >&6; }
20016 if ${ac_cv_prog__OTOOL+:} false; then :
20017 $as_echo_n "(cached) " >&6
20018 else
20019 if test -n "$_OTOOL"; then
20020 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
20021 else
20022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20023 for as_dir in $PATH
20024 do
20025 IFS=$as_save_IFS
20026 test -z "$as_dir" && as_dir=.
20027 for ac_exec_ext in '' $ac_executable_extensions; do
20028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20029 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
20030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20031 break 2
20032 fi
20033 done
20034 done
20035 IFS=$as_save_IFS
20036
20037 fi
20038 fi
20039 _OTOOL=$ac_cv_prog__OTOOL
20040 if test -n "$_OTOOL"; then
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20042 $as_echo "$_OTOOL" >&6; }
20043 else
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045 $as_echo "no" >&6; }
20046 fi
20047
20048
20049 test -n "$_OTOOL" && break
20050 done
20051 fi
20052 if test -z "$_OTOOL"; then
20053 ac_ct__OTOOL=$_OTOOL
20054 for ac_prog in otool
20055 do
20056 # Extract the first word of "$ac_prog", so it can be a program name with args.
20057 set dummy $ac_prog; ac_word=$2
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20059 $as_echo_n "checking for $ac_word... " >&6; }
20060 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
20061 $as_echo_n "(cached) " >&6
20062 else
20063 if test -n "$ac_ct__OTOOL"; then
20064 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
20065 else
20066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20067 for as_dir in $PATH
20068 do
20069 IFS=$as_save_IFS
20070 test -z "$as_dir" && as_dir=.
20071 for ac_exec_ext in '' $ac_executable_extensions; do
20072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20073 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
20074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20075 break 2
20076 fi
20077 done
20078 done
20079 IFS=$as_save_IFS
20080
20081 fi
20082 fi
20083 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20084 if test -n "$ac_ct__OTOOL"; then
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20086 $as_echo "$ac_ct__OTOOL" >&6; }
20087 else
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20089 $as_echo "no" >&6; }
20090 fi
20091
20092
20093 test -n "$ac_ct__OTOOL" && break
20094 done
20095
20096 if test "x$ac_ct__OTOOL" = x; then
20097 _OTOOL=""
20098 else
20099 case $cross_compiling:$ac_tool_warned in
20100 yes:)
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20103 ac_tool_warned=yes ;;
20104 esac
20105 _OTOOL=$ac_ct__OTOOL
20106 fi
20107 fi
20108
20109 if test "x$_OTOOL" = x; then :
20110 as_fn_error $? "You need otool" "$LINENO" 5
20111 fi
20112 if test -n "$ac_tool_prefix"; then
20113 for ac_prog in lipo
20114 do
20115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20118 $as_echo_n "checking for $ac_word... " >&6; }
20119 if ${ac_cv_prog__LIPO+:} false; then :
20120 $as_echo_n "(cached) " >&6
20121 else
20122 if test -n "$_LIPO"; then
20123 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20124 else
20125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20126 for as_dir in $PATH
20127 do
20128 IFS=$as_save_IFS
20129 test -z "$as_dir" && as_dir=.
20130 for ac_exec_ext in '' $ac_executable_extensions; do
20131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20132 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20134 break 2
20135 fi
20136 done
20137 done
20138 IFS=$as_save_IFS
20139
20140 fi
20141 fi
20142 _LIPO=$ac_cv_prog__LIPO
20143 if test -n "$_LIPO"; then
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20145 $as_echo "$_LIPO" >&6; }
20146 else
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20148 $as_echo "no" >&6; }
20149 fi
20150
20151
20152 test -n "$_LIPO" && break
20153 done
20154 fi
20155 if test -z "$_LIPO"; then
20156 ac_ct__LIPO=$_LIPO
20157 for ac_prog in lipo
20158 do
20159 # Extract the first word of "$ac_prog", so it can be a program name with args.
20160 set dummy $ac_prog; ac_word=$2
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20162 $as_echo_n "checking for $ac_word... " >&6; }
20163 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
20164 $as_echo_n "(cached) " >&6
20165 else
20166 if test -n "$ac_ct__LIPO"; then
20167 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20168 else
20169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20170 for as_dir in $PATH
20171 do
20172 IFS=$as_save_IFS
20173 test -z "$as_dir" && as_dir=.
20174 for ac_exec_ext in '' $ac_executable_extensions; do
20175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20176 ac_cv_prog_ac_ct__LIPO="$ac_prog"
20177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20178 break 2
20179 fi
20180 done
20181 done
20182 IFS=$as_save_IFS
20183
20184 fi
20185 fi
20186 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20187 if test -n "$ac_ct__LIPO"; then
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20189 $as_echo "$ac_ct__LIPO" >&6; }
20190 else
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20192 $as_echo "no" >&6; }
20193 fi
20194
20195
20196 test -n "$ac_ct__LIPO" && break
20197 done
20198
20199 if test "x$ac_ct__LIPO" = x; then
20200 _LIPO=""
20201 else
20202 case $cross_compiling:$ac_tool_warned in
20203 yes:)
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20206 ac_tool_warned=yes ;;
20207 esac
20208 _LIPO=$ac_ct__LIPO
20209 fi
20210 fi
20211
20212 if test "x$_LIPO" = x; then :
20213 as_fn_error $? "You need lipo" "$LINENO" 5
20214 fi
20215 if test -n "$ac_tool_prefix"; then
20216 for ac_prog in nm
20217 do
20218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20221 $as_echo_n "checking for $ac_word... " >&6; }
20222 if ${ac_cv_prog__NM+:} false; then :
20223 $as_echo_n "(cached) " >&6
20224 else
20225 if test -n "$_NM"; then
20226 ac_cv_prog__NM="$_NM" # Let the user override the test.
20227 else
20228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20229 for as_dir in $PATH
20230 do
20231 IFS=$as_save_IFS
20232 test -z "$as_dir" && as_dir=.
20233 for ac_exec_ext in '' $ac_executable_extensions; do
20234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20235 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
20236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20237 break 2
20238 fi
20239 done
20240 done
20241 IFS=$as_save_IFS
20242
20243 fi
20244 fi
20245 _NM=$ac_cv_prog__NM
20246 if test -n "$_NM"; then
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20248 $as_echo "$_NM" >&6; }
20249 else
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20251 $as_echo "no" >&6; }
20252 fi
20253
20254
20255 test -n "$_NM" && break
20256 done
20257 fi
20258 if test -z "$_NM"; then
20259 ac_ct__NM=$_NM
20260 for ac_prog in nm
20261 do
20262 # Extract the first word of "$ac_prog", so it can be a program name with args.
20263 set dummy $ac_prog; ac_word=$2
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20265 $as_echo_n "checking for $ac_word... " >&6; }
20266 if ${ac_cv_prog_ac_ct__NM+:} false; then :
20267 $as_echo_n "(cached) " >&6
20268 else
20269 if test -n "$ac_ct__NM"; then
20270 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
20271 else
20272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20273 for as_dir in $PATH
20274 do
20275 IFS=$as_save_IFS
20276 test -z "$as_dir" && as_dir=.
20277 for ac_exec_ext in '' $ac_executable_extensions; do
20278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20279 ac_cv_prog_ac_ct__NM="$ac_prog"
20280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20281 break 2
20282 fi
20283 done
20284 done
20285 IFS=$as_save_IFS
20286
20287 fi
20288 fi
20289 ac_ct__NM=$ac_cv_prog_ac_ct__NM
20290 if test -n "$ac_ct__NM"; then
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20292 $as_echo "$ac_ct__NM" >&6; }
20293 else
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20295 $as_echo "no" >&6; }
20296 fi
20297
20298
20299 test -n "$ac_ct__NM" && break
20300 done
20301
20302 if test "x$ac_ct__NM" = x; then
20303 _NM=""
20304 else
20305 case $cross_compiling:$ac_tool_warned in
20306 yes:)
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20309 ac_tool_warned=yes ;;
20310 esac
20311 _NM=$ac_ct__NM
20312 fi
20313 fi
20314
20315 if test "x$_NM" = x; then :
20316 as_fn_error $? "You need nm" "$LINENO" 5
20317 fi
20318 CY_OBJECTIVEC_MACH=1
20319
20320 CY_ATTACH_GROUP=procmod
20321
20322
20323 fi
20324
20325
20326
20327 fi
20328 if test "x$GMAKE" != xmake; then :
20329
20330 ac_config_files="$ac_config_files Makefile"
20331
20332
20333 fi
20334 ac_config_files="$ac_config_files GNUmakefile"
20335
20336 cat >confcache <<\_ACEOF
20337 # This file is a shell script that caches the results of configure
20338 # tests run on this system so they can be shared between configure
20339 # scripts and configure runs, see configure's option --config-cache.
20340 # It is not useful on other systems. If it contains results you don't
20341 # want to keep, you may remove or edit it.
20342 #
20343 # config.status only pays attention to the cache file if you give it
20344 # the --recheck option to rerun configure.
20345 #
20346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20348 # following values.
20349
20350 _ACEOF
20351
20352 # The following way of writing the cache mishandles newlines in values,
20353 # but we know of no workaround that is simple, portable, and efficient.
20354 # So, we kill variables containing newlines.
20355 # Ultrix sh set writes to stderr and can't be redirected directly,
20356 # and sets the high bit in the cache file unless we assign to the vars.
20357 (
20358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20359 eval ac_val=\$$ac_var
20360 case $ac_val in #(
20361 *${as_nl}*)
20362 case $ac_var in #(
20363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20365 esac
20366 case $ac_var in #(
20367 _ | IFS | as_nl) ;; #(
20368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20369 *) { eval $ac_var=; unset $ac_var;} ;;
20370 esac ;;
20371 esac
20372 done
20373
20374 (set) 2>&1 |
20375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20376 *${as_nl}ac_space=\ *)
20377 # `set' does not quote correctly, so add quotes: double-quote
20378 # substitution turns \\\\ into \\, and sed turns \\ into \.
20379 sed -n \
20380 "s/'/'\\\\''/g;
20381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20382 ;; #(
20383 *)
20384 # `set' quotes correctly as required by POSIX, so do not add quotes.
20385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20386 ;;
20387 esac |
20388 sort
20389 ) |
20390 sed '
20391 /^ac_cv_env_/b end
20392 t clear
20393 :clear
20394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20395 t end
20396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20397 :end' >>confcache
20398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20399 if test -w "$cache_file"; then
20400 if test "x$cache_file" != "x/dev/null"; then
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20402 $as_echo "$as_me: updating cache $cache_file" >&6;}
20403 if test ! -f "$cache_file" || test -h "$cache_file"; then
20404 cat confcache >"$cache_file"
20405 else
20406 case $cache_file in #(
20407 */* | ?:*)
20408 mv -f confcache "$cache_file"$$ &&
20409 mv -f "$cache_file"$$ "$cache_file" ;; #(
20410 *)
20411 mv -f confcache "$cache_file" ;;
20412 esac
20413 fi
20414 fi
20415 else
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20417 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20418 fi
20419 fi
20420 rm -f confcache
20421
20422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20423 # Let make expand exec_prefix.
20424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20425
20426 # Transform confdefs.h into DEFS.
20427 # Protect against shell expansion while executing Makefile rules.
20428 # Protect against Makefile macro expansion.
20429 #
20430 # If the first sed substitution is executed (which looks for macros that
20431 # take arguments), then branch to the quote section. Otherwise,
20432 # look for a macro that doesn't take arguments.
20433 ac_script='
20434 :mline
20435 /\\$/{
20436 N
20437 s,\\\n,,
20438 b mline
20439 }
20440 t clear
20441 :clear
20442 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20443 t quote
20444 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20445 t quote
20446 b any
20447 :quote
20448 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20449 s/\[/\\&/g
20450 s/\]/\\&/g
20451 s/\$/$$/g
20452 H
20453 :any
20454 ${
20455 g
20456 s/^\n//
20457 s/\n/ /g
20458 p
20459 }
20460 '
20461 DEFS=`sed -n "$ac_script" confdefs.h`
20462
20463
20464 ac_libobjs=
20465 ac_ltlibobjs=
20466 U=
20467 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20468 # 1. Remove the extension, and $U if already installed.
20469 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20470 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20471 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20472 # will be set to the directory where LIBOBJS objects are built.
20473 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20474 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20475 done
20476 LIBOBJS=$ac_libobjs
20477
20478 LTLIBOBJS=$ac_ltlibobjs
20479
20480
20481
20482 : "${CONFIG_STATUS=./config.status}"
20483 ac_write_fail=0
20484 ac_clean_files_save=$ac_clean_files
20485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20487 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20488 as_write_fail=0
20489 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20490 #! $SHELL
20491 # Generated by $as_me.
20492 # Run this file to recreate the current configuration.
20493 # Compiler output produced by configure, useful for debugging
20494 # configure, is in config.log if it exists.
20495
20496 debug=false
20497 ac_cs_recheck=false
20498 ac_cs_silent=false
20499
20500 SHELL=\${CONFIG_SHELL-$SHELL}
20501 export SHELL
20502 _ASEOF
20503 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20504 ## -------------------- ##
20505 ## M4sh Initialization. ##
20506 ## -------------------- ##
20507
20508 # Be more Bourne compatible
20509 DUALCASE=1; export DUALCASE # for MKS sh
20510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20511 emulate sh
20512 NULLCMD=:
20513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20514 # is contrary to our usage. Disable this feature.
20515 alias -g '${1+"$@"}'='"$@"'
20516 setopt NO_GLOB_SUBST
20517 else
20518 case `(set -o) 2>/dev/null` in #(
20519 *posix*) :
20520 set -o posix ;; #(
20521 *) :
20522 ;;
20523 esac
20524 fi
20525
20526
20527 as_nl='
20528 '
20529 export as_nl
20530 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20531 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20533 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20534 # Prefer a ksh shell builtin over an external printf program on Solaris,
20535 # but without wasting forks for bash or zsh.
20536 if test -z "$BASH_VERSION$ZSH_VERSION" \
20537 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20538 as_echo='print -r --'
20539 as_echo_n='print -rn --'
20540 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20541 as_echo='printf %s\n'
20542 as_echo_n='printf %s'
20543 else
20544 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20545 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20546 as_echo_n='/usr/ucb/echo -n'
20547 else
20548 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20549 as_echo_n_body='eval
20550 arg=$1;
20551 case $arg in #(
20552 *"$as_nl"*)
20553 expr "X$arg" : "X\\(.*\\)$as_nl";
20554 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20555 esac;
20556 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20557 '
20558 export as_echo_n_body
20559 as_echo_n='sh -c $as_echo_n_body as_echo'
20560 fi
20561 export as_echo_body
20562 as_echo='sh -c $as_echo_body as_echo'
20563 fi
20564
20565 # The user is always right.
20566 if test "${PATH_SEPARATOR+set}" != set; then
20567 PATH_SEPARATOR=:
20568 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20569 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20570 PATH_SEPARATOR=';'
20571 }
20572 fi
20573
20574
20575 # IFS
20576 # We need space, tab and new line, in precisely that order. Quoting is
20577 # there to prevent editors from complaining about space-tab.
20578 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20579 # splitting by setting IFS to empty value.)
20580 IFS=" "" $as_nl"
20581
20582 # Find who we are. Look in the path if we contain no directory separator.
20583 as_myself=
20584 case $0 in #((
20585 *[\\/]* ) as_myself=$0 ;;
20586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20587 for as_dir in $PATH
20588 do
20589 IFS=$as_save_IFS
20590 test -z "$as_dir" && as_dir=.
20591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20592 done
20593 IFS=$as_save_IFS
20594
20595 ;;
20596 esac
20597 # We did not find ourselves, most probably we were run as `sh COMMAND'
20598 # in which case we are not to be found in the path.
20599 if test "x$as_myself" = x; then
20600 as_myself=$0
20601 fi
20602 if test ! -f "$as_myself"; then
20603 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20604 exit 1
20605 fi
20606
20607 # Unset variables that we do not need and which cause bugs (e.g. in
20608 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20609 # suppresses any "Segmentation fault" message there. '((' could
20610 # trigger a bug in pdksh 5.2.14.
20611 for as_var in BASH_ENV ENV MAIL MAILPATH
20612 do eval test x\${$as_var+set} = xset \
20613 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20614 done
20615 PS1='$ '
20616 PS2='> '
20617 PS4='+ '
20618
20619 # NLS nuisances.
20620 LC_ALL=C
20621 export LC_ALL
20622 LANGUAGE=C
20623 export LANGUAGE
20624
20625 # CDPATH.
20626 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20627
20628
20629 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20630 # ----------------------------------------
20631 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20632 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20633 # script with STATUS, using 1 if that was 0.
20634 as_fn_error ()
20635 {
20636 as_status=$1; test $as_status -eq 0 && as_status=1
20637 if test "$4"; then
20638 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20639 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20640 fi
20641 $as_echo "$as_me: error: $2" >&2
20642 as_fn_exit $as_status
20643 } # as_fn_error
20644
20645
20646 # as_fn_set_status STATUS
20647 # -----------------------
20648 # Set $? to STATUS, without forking.
20649 as_fn_set_status ()
20650 {
20651 return $1
20652 } # as_fn_set_status
20653
20654 # as_fn_exit STATUS
20655 # -----------------
20656 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20657 as_fn_exit ()
20658 {
20659 set +e
20660 as_fn_set_status $1
20661 exit $1
20662 } # as_fn_exit
20663
20664 # as_fn_unset VAR
20665 # ---------------
20666 # Portably unset VAR.
20667 as_fn_unset ()
20668 {
20669 { eval $1=; unset $1;}
20670 }
20671 as_unset=as_fn_unset
20672 # as_fn_append VAR VALUE
20673 # ----------------------
20674 # Append the text in VALUE to the end of the definition contained in VAR. Take
20675 # advantage of any shell optimizations that allow amortized linear growth over
20676 # repeated appends, instead of the typical quadratic growth present in naive
20677 # implementations.
20678 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20679 eval 'as_fn_append ()
20680 {
20681 eval $1+=\$2
20682 }'
20683 else
20684 as_fn_append ()
20685 {
20686 eval $1=\$$1\$2
20687 }
20688 fi # as_fn_append
20689
20690 # as_fn_arith ARG...
20691 # ------------------
20692 # Perform arithmetic evaluation on the ARGs, and store the result in the
20693 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20694 # must be portable across $(()) and expr.
20695 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20696 eval 'as_fn_arith ()
20697 {
20698 as_val=$(( $* ))
20699 }'
20700 else
20701 as_fn_arith ()
20702 {
20703 as_val=`expr "$@" || test $? -eq 1`
20704 }
20705 fi # as_fn_arith
20706
20707
20708 if expr a : '\(a\)' >/dev/null 2>&1 &&
20709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20710 as_expr=expr
20711 else
20712 as_expr=false
20713 fi
20714
20715 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20716 as_basename=basename
20717 else
20718 as_basename=false
20719 fi
20720
20721 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20722 as_dirname=dirname
20723 else
20724 as_dirname=false
20725 fi
20726
20727 as_me=`$as_basename -- "$0" ||
20728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20729 X"$0" : 'X\(//\)$' \| \
20730 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20731 $as_echo X/"$0" |
20732 sed '/^.*\/\([^/][^/]*\)\/*$/{
20733 s//\1/
20734 q
20735 }
20736 /^X\/\(\/\/\)$/{
20737 s//\1/
20738 q
20739 }
20740 /^X\/\(\/\).*/{
20741 s//\1/
20742 q
20743 }
20744 s/.*/./; q'`
20745
20746 # Avoid depending upon Character Ranges.
20747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20750 as_cr_digits='0123456789'
20751 as_cr_alnum=$as_cr_Letters$as_cr_digits
20752
20753 ECHO_C= ECHO_N= ECHO_T=
20754 case `echo -n x` in #(((((
20755 -n*)
20756 case `echo 'xy\c'` in
20757 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20758 xy) ECHO_C='\c';;
20759 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20760 ECHO_T=' ';;
20761 esac;;
20762 *)
20763 ECHO_N='-n';;
20764 esac
20765
20766 rm -f conf$$ conf$$.exe conf$$.file
20767 if test -d conf$$.dir; then
20768 rm -f conf$$.dir/conf$$.file
20769 else
20770 rm -f conf$$.dir
20771 mkdir conf$$.dir 2>/dev/null
20772 fi
20773 if (echo >conf$$.file) 2>/dev/null; then
20774 if ln -s conf$$.file conf$$ 2>/dev/null; then
20775 as_ln_s='ln -s'
20776 # ... but there are two gotchas:
20777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20779 # In both cases, we have to default to `cp -p'.
20780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20781 as_ln_s='cp -p'
20782 elif ln conf$$.file conf$$ 2>/dev/null; then
20783 as_ln_s=ln
20784 else
20785 as_ln_s='cp -p'
20786 fi
20787 else
20788 as_ln_s='cp -p'
20789 fi
20790 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20791 rmdir conf$$.dir 2>/dev/null
20792
20793
20794 # as_fn_mkdir_p
20795 # -------------
20796 # Create "$as_dir" as a directory, including parents if necessary.
20797 as_fn_mkdir_p ()
20798 {
20799
20800 case $as_dir in #(
20801 -*) as_dir=./$as_dir;;
20802 esac
20803 test -d "$as_dir" || eval $as_mkdir_p || {
20804 as_dirs=
20805 while :; do
20806 case $as_dir in #(
20807 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20808 *) as_qdir=$as_dir;;
20809 esac
20810 as_dirs="'$as_qdir' $as_dirs"
20811 as_dir=`$as_dirname -- "$as_dir" ||
20812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20813 X"$as_dir" : 'X\(//\)[^/]' \| \
20814 X"$as_dir" : 'X\(//\)$' \| \
20815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20816 $as_echo X"$as_dir" |
20817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20818 s//\1/
20819 q
20820 }
20821 /^X\(\/\/\)[^/].*/{
20822 s//\1/
20823 q
20824 }
20825 /^X\(\/\/\)$/{
20826 s//\1/
20827 q
20828 }
20829 /^X\(\/\).*/{
20830 s//\1/
20831 q
20832 }
20833 s/.*/./; q'`
20834 test -d "$as_dir" && break
20835 done
20836 test -z "$as_dirs" || eval "mkdir $as_dirs"
20837 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20838
20839
20840 } # as_fn_mkdir_p
20841 if mkdir -p . 2>/dev/null; then
20842 as_mkdir_p='mkdir -p "$as_dir"'
20843 else
20844 test -d ./-p && rmdir ./-p
20845 as_mkdir_p=false
20846 fi
20847
20848 if test -x / >/dev/null 2>&1; then
20849 as_test_x='test -x'
20850 else
20851 if ls -dL / >/dev/null 2>&1; then
20852 as_ls_L_option=L
20853 else
20854 as_ls_L_option=
20855 fi
20856 as_test_x='
20857 eval sh -c '\''
20858 if test -d "$1"; then
20859 test -d "$1/.";
20860 else
20861 case $1 in #(
20862 -*)set "./$1";;
20863 esac;
20864 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20865 ???[sx]*):;;*)false;;esac;fi
20866 '\'' sh
20867 '
20868 fi
20869 as_executable_p=$as_test_x
20870
20871 # Sed expression to map a string onto a valid CPP name.
20872 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20873
20874 # Sed expression to map a string onto a valid variable name.
20875 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20876
20877
20878 exec 6>&1
20879 ## ----------------------------------- ##
20880 ## Main body of $CONFIG_STATUS script. ##
20881 ## ----------------------------------- ##
20882 _ASEOF
20883 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20884
20885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20886 # Save the log message, to keep $0 and so on meaningful, and to
20887 # report actual input values of CONFIG_FILES etc. instead of their
20888 # values after options handling.
20889 ac_log="
20890 This file was extended by Cycript $as_me 0.9, which was
20891 generated by GNU Autoconf 2.68. Invocation command line was
20892
20893 CONFIG_FILES = $CONFIG_FILES
20894 CONFIG_HEADERS = $CONFIG_HEADERS
20895 CONFIG_LINKS = $CONFIG_LINKS
20896 CONFIG_COMMANDS = $CONFIG_COMMANDS
20897 $ $0 $@
20898
20899 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20900 "
20901
20902 _ACEOF
20903
20904 case $ac_config_files in *"
20905 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20906 esac
20907
20908
20909
20910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20911 # Files that config.status was made for.
20912 config_files="$ac_config_files"
20913 config_commands="$ac_config_commands"
20914
20915 _ACEOF
20916
20917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20918 ac_cs_usage="\
20919 \`$as_me' instantiates files and other configuration actions
20920 from templates according to the current configuration. Unless the files
20921 and actions are specified as TAGs, all are instantiated by default.
20922
20923 Usage: $0 [OPTION]... [TAG]...
20924
20925 -h, --help print this help, then exit
20926 -V, --version print version number and configuration settings, then exit
20927 --config print configuration, then exit
20928 -q, --quiet, --silent
20929 do not print progress messages
20930 -d, --debug don't remove temporary files
20931 --recheck update $as_me by reconfiguring in the same conditions
20932 --file=FILE[:TEMPLATE]
20933 instantiate the configuration file FILE
20934
20935 Configuration files:
20936 $config_files
20937
20938 Configuration commands:
20939 $config_commands
20940
20941 Report bugs to <saurik@saurik.com>.
20942 Cycript home page: <http://www.cycript.org/>."
20943
20944 _ACEOF
20945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20946 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20947 ac_cs_version="\\
20948 Cycript config.status 0.9
20949 configured by $0, generated by GNU Autoconf 2.68,
20950 with options \\"\$ac_cs_config\\"
20951
20952 Copyright (C) 2010 Free Software Foundation, Inc.
20953 This config.status script is free software; the Free Software Foundation
20954 gives unlimited permission to copy, distribute and modify it."
20955
20956 ac_pwd='$ac_pwd'
20957 srcdir='$srcdir'
20958 INSTALL='$INSTALL'
20959 test -n "\$AWK" || AWK=awk
20960 _ACEOF
20961
20962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20963 # The default lists apply if the user does not specify any file.
20964 ac_need_defaults=:
20965 while test $# != 0
20966 do
20967 case $1 in
20968 --*=?*)
20969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20970 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20971 ac_shift=:
20972 ;;
20973 --*=)
20974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20975 ac_optarg=
20976 ac_shift=:
20977 ;;
20978 *)
20979 ac_option=$1
20980 ac_optarg=$2
20981 ac_shift=shift
20982 ;;
20983 esac
20984
20985 case $ac_option in
20986 # Handling of the options.
20987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20988 ac_cs_recheck=: ;;
20989 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20990 $as_echo "$ac_cs_version"; exit ;;
20991 --config | --confi | --conf | --con | --co | --c )
20992 $as_echo "$ac_cs_config"; exit ;;
20993 --debug | --debu | --deb | --de | --d | -d )
20994 debug=: ;;
20995 --file | --fil | --fi | --f )
20996 $ac_shift
20997 case $ac_optarg in
20998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20999 '') as_fn_error $? "missing file argument" ;;
21000 esac
21001 as_fn_append CONFIG_FILES " '$ac_optarg'"
21002 ac_need_defaults=false;;
21003 --he | --h | --help | --hel | -h )
21004 $as_echo "$ac_cs_usage"; exit ;;
21005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21007 ac_cs_silent=: ;;
21008
21009 # This is an error.
21010 -*) as_fn_error $? "unrecognized option: \`$1'
21011 Try \`$0 --help' for more information." ;;
21012
21013 *) as_fn_append ac_config_targets " $1"
21014 ac_need_defaults=false ;;
21015
21016 esac
21017 shift
21018 done
21019
21020 ac_configure_extra_args=
21021
21022 if $ac_cs_silent; then
21023 exec 6>/dev/null
21024 ac_configure_extra_args="$ac_configure_extra_args --silent"
21025 fi
21026
21027 _ACEOF
21028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21029 if \$ac_cs_recheck; then
21030 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21031 shift
21032 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21033 CONFIG_SHELL='$SHELL'
21034 export CONFIG_SHELL
21035 exec "\$@"
21036 fi
21037
21038 _ACEOF
21039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21040 exec 5>>config.log
21041 {
21042 echo
21043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21044 ## Running $as_me. ##
21045 _ASBOX
21046 $as_echo "$ac_log"
21047 } >&5
21048
21049 _ACEOF
21050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21051 #
21052 # INIT-COMMANDS
21053 #
21054
21055
21056 # The HP-UX ksh and POSIX shell print the target directory to stdout
21057 # if CDPATH is set.
21058 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21059
21060 sed_quote_subst='$sed_quote_subst'
21061 double_quote_subst='$double_quote_subst'
21062 delay_variable_subst='$delay_variable_subst'
21063 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21064 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21065 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21066 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21067 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21068 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21069 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21070 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21071 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21072 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21073 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21074 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21075 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21076 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21077 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21078 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21079 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21080 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21081 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21082 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21083 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21084 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21085 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21086 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21087 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21088 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21089 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21090 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21091 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21092 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21093 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21094 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21095 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21096 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21097 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21098 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21099 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21100 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21101 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21102 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21103 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21104 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21105 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21106 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21107 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21108 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21109 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21110 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21111 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21112 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21113 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21114 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21115 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21116 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21117 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21118 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"`'
21119 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21120 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21121 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21122 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21123 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21124 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21125 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21126 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21127 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21128 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21129 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21130 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21131 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21132 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21133 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21134 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21135 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21136 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21137 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21138 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21139 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21140 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21141 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21142 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21143 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21144 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21145 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21146 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21147 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21148 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21149 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21150 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21151 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21152 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21153 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21154 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21155 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21156 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21157 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21158 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21159 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21160 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21161 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21162 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21163 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21164 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21165 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21166 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21167 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21168 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21169 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21170 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21171 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21172 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21173 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21174 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21175 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21176 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21177 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21178 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21179 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21180 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21181 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21182 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21183 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21184 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21185 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21186 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21187 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21188 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21189 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21190 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21191 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21192 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21193 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21194 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21195 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21196 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21197 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21198 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21199 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21200 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21201 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21202 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21203 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21204 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21205 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21206 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21207 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21208 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21209 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21210 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21211 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21212 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21213 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21214 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21215 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21216 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21217 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21218 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21219 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21220 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21221 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21222 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21223 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21224 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21225 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
21226 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21227 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21228 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21229 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21230 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21231 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21232 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21233 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21234 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21235 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21236 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21237 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21238 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21239 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21240 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21241 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21242 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21243 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21244 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21245 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21246 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21247 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21248
21249 LTCC='$LTCC'
21250 LTCFLAGS='$LTCFLAGS'
21251 compiler='$compiler_DEFAULT'
21252
21253 # A function that is used when there is no print builtin or printf.
21254 func_fallback_echo ()
21255 {
21256 eval 'cat <<_LTECHO_EOF
21257 \$1
21258 _LTECHO_EOF'
21259 }
21260
21261 # Quote evaled strings.
21262 for var in SHELL \
21263 ECHO \
21264 SED \
21265 GREP \
21266 EGREP \
21267 FGREP \
21268 LD \
21269 NM \
21270 LN_S \
21271 lt_SP2NL \
21272 lt_NL2SP \
21273 reload_flag \
21274 OBJDUMP \
21275 deplibs_check_method \
21276 file_magic_cmd \
21277 file_magic_glob \
21278 want_nocaseglob \
21279 DLLTOOL \
21280 sharedlib_from_linklib_cmd \
21281 AR \
21282 AR_FLAGS \
21283 archiver_list_spec \
21284 STRIP \
21285 RANLIB \
21286 CC \
21287 CFLAGS \
21288 compiler \
21289 lt_cv_sys_global_symbol_pipe \
21290 lt_cv_sys_global_symbol_to_cdecl \
21291 lt_cv_sys_global_symbol_to_c_name_address \
21292 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21293 nm_file_list_spec \
21294 lt_prog_compiler_no_builtin_flag \
21295 lt_prog_compiler_pic \
21296 lt_prog_compiler_wl \
21297 lt_prog_compiler_static \
21298 lt_cv_prog_compiler_c_o \
21299 need_locks \
21300 MANIFEST_TOOL \
21301 DSYMUTIL \
21302 NMEDIT \
21303 LIPO \
21304 OTOOL \
21305 OTOOL64 \
21306 shrext_cmds \
21307 export_dynamic_flag_spec \
21308 whole_archive_flag_spec \
21309 compiler_needs_object \
21310 with_gnu_ld \
21311 allow_undefined_flag \
21312 no_undefined_flag \
21313 hardcode_libdir_flag_spec \
21314 hardcode_libdir_flag_spec_ld \
21315 hardcode_libdir_separator \
21316 exclude_expsyms \
21317 include_expsyms \
21318 file_list_spec \
21319 variables_saved_for_relink \
21320 libname_spec \
21321 library_names_spec \
21322 soname_spec \
21323 install_override_mode \
21324 finish_eval \
21325 old_striplib \
21326 striplib \
21327 compiler_lib_search_dirs \
21328 predep_objects \
21329 postdep_objects \
21330 predeps \
21331 postdeps \
21332 compiler_lib_search_path \
21333 LD_CXX \
21334 reload_flag_CXX \
21335 compiler_CXX \
21336 lt_prog_compiler_no_builtin_flag_CXX \
21337 lt_prog_compiler_pic_CXX \
21338 lt_prog_compiler_wl_CXX \
21339 lt_prog_compiler_static_CXX \
21340 lt_cv_prog_compiler_c_o_CXX \
21341 export_dynamic_flag_spec_CXX \
21342 whole_archive_flag_spec_CXX \
21343 compiler_needs_object_CXX \
21344 with_gnu_ld_CXX \
21345 allow_undefined_flag_CXX \
21346 no_undefined_flag_CXX \
21347 hardcode_libdir_flag_spec_CXX \
21348 hardcode_libdir_flag_spec_ld_CXX \
21349 hardcode_libdir_separator_CXX \
21350 exclude_expsyms_CXX \
21351 include_expsyms_CXX \
21352 file_list_spec_CXX \
21353 compiler_lib_search_dirs_CXX \
21354 predep_objects_CXX \
21355 postdep_objects_CXX \
21356 predeps_CXX \
21357 postdeps_CXX \
21358 compiler_lib_search_path_CXX; do
21359 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21360 *[\\\\\\\`\\"\\\$]*)
21361 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21362 ;;
21363 *)
21364 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21365 ;;
21366 esac
21367 done
21368
21369 # Double-quote double-evaled strings.
21370 for var in reload_cmds \
21371 old_postinstall_cmds \
21372 old_postuninstall_cmds \
21373 old_archive_cmds \
21374 extract_expsyms_cmds \
21375 old_archive_from_new_cmds \
21376 old_archive_from_expsyms_cmds \
21377 archive_cmds \
21378 archive_expsym_cmds \
21379 module_cmds \
21380 module_expsym_cmds \
21381 export_symbols_cmds \
21382 prelink_cmds \
21383 postlink_cmds \
21384 postinstall_cmds \
21385 postuninstall_cmds \
21386 finish_cmds \
21387 sys_lib_search_path_spec \
21388 sys_lib_dlsearch_path_spec \
21389 reload_cmds_CXX \
21390 old_archive_cmds_CXX \
21391 old_archive_from_new_cmds_CXX \
21392 old_archive_from_expsyms_cmds_CXX \
21393 archive_cmds_CXX \
21394 archive_expsym_cmds_CXX \
21395 module_cmds_CXX \
21396 module_expsym_cmds_CXX \
21397 export_symbols_cmds_CXX \
21398 prelink_cmds_CXX \
21399 postlink_cmds_CXX; do
21400 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21401 *[\\\\\\\`\\"\\\$]*)
21402 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21403 ;;
21404 *)
21405 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21406 ;;
21407 esac
21408 done
21409
21410 ac_aux_dir='$ac_aux_dir'
21411 xsi_shell='$xsi_shell'
21412 lt_shell_append='$lt_shell_append'
21413
21414 # See if we are running on zsh, and set the options which allow our
21415 # commands through without removal of \ escapes INIT.
21416 if test -n "\${ZSH_VERSION+set}" ; then
21417 setopt NO_GLOB_SUBST
21418 fi
21419
21420
21421 PACKAGE='$PACKAGE'
21422 VERSION='$VERSION'
21423 TIMESTAMP='$TIMESTAMP'
21424 RM='$RM'
21425 ofile='$ofile'
21426
21427
21428
21429
21430
21431
21432 _ACEOF
21433
21434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21435
21436 # Handling of arguments.
21437 for ac_config_target in $ac_config_targets
21438 do
21439 case $ac_config_target in
21440 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21442 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
21443
21444 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21445 esac
21446 done
21447
21448
21449 # If the user did not use the arguments to specify the items to instantiate,
21450 # then the envvar interface is used. Set only those that are not.
21451 # We use the long form for the default assignment because of an extremely
21452 # bizarre bug on SunOS 4.1.3.
21453 if $ac_need_defaults; then
21454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21455 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21456 fi
21457
21458 # Have a temporary directory for convenience. Make it in the build tree
21459 # simply because there is no reason against having it here, and in addition,
21460 # creating and moving files from /tmp can sometimes cause problems.
21461 # Hook for its removal unless debugging.
21462 # Note that there is a small window in which the directory will not be cleaned:
21463 # after its creation but before its name has been assigned to `$tmp'.
21464 $debug ||
21465 {
21466 tmp= ac_tmp=
21467 trap 'exit_status=$?
21468 : "${ac_tmp:=$tmp}"
21469 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21470 ' 0
21471 trap 'as_fn_exit 1' 1 2 13 15
21472 }
21473 # Create a (secure) tmp directory for tmp files.
21474
21475 {
21476 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21477 test -d "$tmp"
21478 } ||
21479 {
21480 tmp=./conf$$-$RANDOM
21481 (umask 077 && mkdir "$tmp")
21482 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21483 ac_tmp=$tmp
21484
21485 # Set up the scripts for CONFIG_FILES section.
21486 # No need to generate them if there are no CONFIG_FILES.
21487 # This happens for instance with `./config.status config.h'.
21488 if test -n "$CONFIG_FILES"; then
21489
21490
21491 ac_cr=`echo X | tr X '\015'`
21492 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21493 # But we know of no other shell where ac_cr would be empty at this
21494 # point, so we can use a bashism as a fallback.
21495 if test "x$ac_cr" = x; then
21496 eval ac_cr=\$\'\\r\'
21497 fi
21498 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21499 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21500 ac_cs_awk_cr='\\r'
21501 else
21502 ac_cs_awk_cr=$ac_cr
21503 fi
21504
21505 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21506 _ACEOF
21507
21508
21509 {
21510 echo "cat >conf$$subs.awk <<_ACEOF" &&
21511 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21512 echo "_ACEOF"
21513 } >conf$$subs.sh ||
21514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21515 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21516 ac_delim='%!_!# '
21517 for ac_last_try in false false false false false :; do
21518 . ./conf$$subs.sh ||
21519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21520
21521 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21522 if test $ac_delim_n = $ac_delim_num; then
21523 break
21524 elif $ac_last_try; then
21525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21526 else
21527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21528 fi
21529 done
21530 rm -f conf$$subs.sh
21531
21532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21533 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21534 _ACEOF
21535 sed -n '
21536 h
21537 s/^/S["/; s/!.*/"]=/
21538 p
21539 g
21540 s/^[^!]*!//
21541 :repl
21542 t repl
21543 s/'"$ac_delim"'$//
21544 t delim
21545 :nl
21546 h
21547 s/\(.\{148\}\)..*/\1/
21548 t more1
21549 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21550 p
21551 n
21552 b repl
21553 :more1
21554 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21555 p
21556 g
21557 s/.\{148\}//
21558 t nl
21559 :delim
21560 h
21561 s/\(.\{148\}\)..*/\1/
21562 t more2
21563 s/["\\]/\\&/g; s/^/"/; s/$/"/
21564 p
21565 b
21566 :more2
21567 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21568 p
21569 g
21570 s/.\{148\}//
21571 t delim
21572 ' <conf$$subs.awk | sed '
21573 /^[^""]/{
21574 N
21575 s/\n//
21576 }
21577 ' >>$CONFIG_STATUS || ac_write_fail=1
21578 rm -f conf$$subs.awk
21579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21580 _ACAWK
21581 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21582 for (key in S) S_is_set[key] = 1
21583 FS = "\a"
21584
21585 }
21586 {
21587 line = $ 0
21588 nfields = split(line, field, "@")
21589 substed = 0
21590 len = length(field[1])
21591 for (i = 2; i < nfields; i++) {
21592 key = field[i]
21593 keylen = length(key)
21594 if (S_is_set[key]) {
21595 value = S[key]
21596 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21597 len += length(value) + length(field[++i])
21598 substed = 1
21599 } else
21600 len += 1 + keylen
21601 }
21602
21603 print line
21604 }
21605
21606 _ACAWK
21607 _ACEOF
21608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21609 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21610 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21611 else
21612 cat
21613 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21614 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21615 _ACEOF
21616
21617 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21618 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21619 # trailing colons and then remove the whole line if VPATH becomes empty
21620 # (actually we leave an empty line to preserve line numbers).
21621 if test "x$srcdir" = x.; then
21622 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21623 h
21624 s///
21625 s/^/:/
21626 s/[ ]*$/:/
21627 s/:\$(srcdir):/:/g
21628 s/:\${srcdir}:/:/g
21629 s/:@srcdir@:/:/g
21630 s/^:*//
21631 s/:*$//
21632 x
21633 s/\(=[ ]*\).*/\1/
21634 G
21635 s/\n//
21636 s/^[^=]*=[ ]*$//
21637 }'
21638 fi
21639
21640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21641 fi # test -n "$CONFIG_FILES"
21642
21643
21644 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21645 shift
21646 for ac_tag
21647 do
21648 case $ac_tag in
21649 :[FHLC]) ac_mode=$ac_tag; continue;;
21650 esac
21651 case $ac_mode$ac_tag in
21652 :[FHL]*:*);;
21653 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21654 :[FH]-) ac_tag=-:-;;
21655 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21656 esac
21657 ac_save_IFS=$IFS
21658 IFS=:
21659 set x $ac_tag
21660 IFS=$ac_save_IFS
21661 shift
21662 ac_file=$1
21663 shift
21664
21665 case $ac_mode in
21666 :L) ac_source=$1;;
21667 :[FH])
21668 ac_file_inputs=
21669 for ac_f
21670 do
21671 case $ac_f in
21672 -) ac_f="$ac_tmp/stdin";;
21673 *) # Look for the file first in the build tree, then in the source tree
21674 # (if the path is not absolute). The absolute path cannot be DOS-style,
21675 # because $ac_f cannot contain `:'.
21676 test -f "$ac_f" ||
21677 case $ac_f in
21678 [\\/$]*) false;;
21679 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21680 esac ||
21681 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21682 esac
21683 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21684 as_fn_append ac_file_inputs " '$ac_f'"
21685 done
21686
21687 # Let's still pretend it is `configure' which instantiates (i.e., don't
21688 # use $as_me), people would be surprised to read:
21689 # /* config.h. Generated by config.status. */
21690 configure_input='Generated from '`
21691 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21692 `' by configure.'
21693 if test x"$ac_file" != x-; then
21694 configure_input="$ac_file. $configure_input"
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21696 $as_echo "$as_me: creating $ac_file" >&6;}
21697 fi
21698 # Neutralize special characters interpreted by sed in replacement strings.
21699 case $configure_input in #(
21700 *\&* | *\|* | *\\* )
21701 ac_sed_conf_input=`$as_echo "$configure_input" |
21702 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21703 *) ac_sed_conf_input=$configure_input;;
21704 esac
21705
21706 case $ac_tag in
21707 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21709 esac
21710 ;;
21711 esac
21712
21713 ac_dir=`$as_dirname -- "$ac_file" ||
21714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21715 X"$ac_file" : 'X\(//\)[^/]' \| \
21716 X"$ac_file" : 'X\(//\)$' \| \
21717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21718 $as_echo X"$ac_file" |
21719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21720 s//\1/
21721 q
21722 }
21723 /^X\(\/\/\)[^/].*/{
21724 s//\1/
21725 q
21726 }
21727 /^X\(\/\/\)$/{
21728 s//\1/
21729 q
21730 }
21731 /^X\(\/\).*/{
21732 s//\1/
21733 q
21734 }
21735 s/.*/./; q'`
21736 as_dir="$ac_dir"; as_fn_mkdir_p
21737 ac_builddir=.
21738
21739 case "$ac_dir" in
21740 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21741 *)
21742 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21743 # A ".." for each directory in $ac_dir_suffix.
21744 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21745 case $ac_top_builddir_sub in
21746 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21747 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21748 esac ;;
21749 esac
21750 ac_abs_top_builddir=$ac_pwd
21751 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21752 # for backward compatibility:
21753 ac_top_builddir=$ac_top_build_prefix
21754
21755 case $srcdir in
21756 .) # We are building in place.
21757 ac_srcdir=.
21758 ac_top_srcdir=$ac_top_builddir_sub
21759 ac_abs_top_srcdir=$ac_pwd ;;
21760 [\\/]* | ?:[\\/]* ) # Absolute name.
21761 ac_srcdir=$srcdir$ac_dir_suffix;
21762 ac_top_srcdir=$srcdir
21763 ac_abs_top_srcdir=$srcdir ;;
21764 *) # Relative name.
21765 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21766 ac_top_srcdir=$ac_top_build_prefix$srcdir
21767 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21768 esac
21769 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21770
21771
21772 case $ac_mode in
21773 :F)
21774 #
21775 # CONFIG_FILE
21776 #
21777
21778 case $INSTALL in
21779 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21780 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21781 esac
21782 _ACEOF
21783
21784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21785 # If the template does not know about datarootdir, expand it.
21786 # FIXME: This hack should be removed a few years after 2.60.
21787 ac_datarootdir_hack=; ac_datarootdir_seen=
21788 ac_sed_dataroot='
21789 /datarootdir/ {
21790 p
21791 q
21792 }
21793 /@datadir@/p
21794 /@docdir@/p
21795 /@infodir@/p
21796 /@localedir@/p
21797 /@mandir@/p'
21798 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21799 *datarootdir*) ac_datarootdir_seen=yes;;
21800 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21802 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21803 _ACEOF
21804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21805 ac_datarootdir_hack='
21806 s&@datadir@&$datadir&g
21807 s&@docdir@&$docdir&g
21808 s&@infodir@&$infodir&g
21809 s&@localedir@&$localedir&g
21810 s&@mandir@&$mandir&g
21811 s&\\\${datarootdir}&$datarootdir&g' ;;
21812 esac
21813 _ACEOF
21814
21815 # Neutralize VPATH when `$srcdir' = `.'.
21816 # Shell code in configure.ac might set extrasub.
21817 # FIXME: do we really want to maintain this feature?
21818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21819 ac_sed_extra="$ac_vpsub
21820 $extrasub
21821 _ACEOF
21822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21823 :t
21824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21825 s|@configure_input@|$ac_sed_conf_input|;t t
21826 s&@top_builddir@&$ac_top_builddir_sub&;t t
21827 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21828 s&@srcdir@&$ac_srcdir&;t t
21829 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21830 s&@top_srcdir@&$ac_top_srcdir&;t t
21831 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21832 s&@builddir@&$ac_builddir&;t t
21833 s&@abs_builddir@&$ac_abs_builddir&;t t
21834 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21835 s&@INSTALL@&$ac_INSTALL&;t t
21836 $ac_datarootdir_hack
21837 "
21838 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21839 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21840
21841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21842 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21844 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21846 which seems to be undefined. Please make sure it is defined" >&5
21847 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21848 which seems to be undefined. Please make sure it is defined" >&2;}
21849
21850 rm -f "$ac_tmp/stdin"
21851 case $ac_file in
21852 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21853 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21854 esac \
21855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21856 ;;
21857
21858
21859 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21860 $as_echo "$as_me: executing $ac_file commands" >&6;}
21861 ;;
21862 esac
21863
21864
21865 case $ac_file$ac_mode in
21866 "libtool":C)
21867
21868 # See if we are running on zsh, and set the options which allow our
21869 # commands through without removal of \ escapes.
21870 if test -n "${ZSH_VERSION+set}" ; then
21871 setopt NO_GLOB_SUBST
21872 fi
21873
21874 cfgfile="${ofile}T"
21875 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21876 $RM "$cfgfile"
21877
21878 cat <<_LT_EOF >> "$cfgfile"
21879 #! $SHELL
21880
21881 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21882 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21883 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21884 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21885 #
21886 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21887 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21888 # Inc.
21889 # Written by Gordon Matzigkeit, 1996
21890 #
21891 # This file is part of GNU Libtool.
21892 #
21893 # GNU Libtool is free software; you can redistribute it and/or
21894 # modify it under the terms of the GNU General Public License as
21895 # published by the Free Software Foundation; either version 2 of
21896 # the License, or (at your option) any later version.
21897 #
21898 # As a special exception to the GNU General Public License,
21899 # if you distribute this file as part of a program or library that
21900 # is built using GNU Libtool, you may include this file under the
21901 # same distribution terms that you use for the rest of that program.
21902 #
21903 # GNU Libtool is distributed in the hope that it will be useful,
21904 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21905 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21906 # GNU General Public License for more details.
21907 #
21908 # You should have received a copy of the GNU General Public License
21909 # along with GNU Libtool; see the file COPYING. If not, a copy
21910 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21911 # obtained by writing to the Free Software Foundation, Inc.,
21912 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21913
21914
21915 # The names of the tagged configurations supported by this script.
21916 available_tags="CXX "
21917
21918 # ### BEGIN LIBTOOL CONFIG
21919
21920 # Which release of libtool.m4 was used?
21921 macro_version=$macro_version
21922 macro_revision=$macro_revision
21923
21924 # Whether or not to build static libraries.
21925 build_old_libs=$enable_static
21926
21927 # Whether or not to build shared libraries.
21928 build_libtool_libs=$enable_shared
21929
21930 # What type of objects to build.
21931 pic_mode=$pic_mode
21932
21933 # Whether or not to optimize for fast installation.
21934 fast_install=$enable_fast_install
21935
21936 # Shell to use when invoking shell scripts.
21937 SHELL=$lt_SHELL
21938
21939 # An echo program that protects backslashes.
21940 ECHO=$lt_ECHO
21941
21942 # The host system.
21943 host_alias=$host_alias
21944 host=$host
21945 host_os=$host_os
21946
21947 # The build system.
21948 build_alias=$build_alias
21949 build=$build
21950 build_os=$build_os
21951
21952 # A sed program that does not truncate output.
21953 SED=$lt_SED
21954
21955 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21956 Xsed="\$SED -e 1s/^X//"
21957
21958 # A grep program that handles long lines.
21959 GREP=$lt_GREP
21960
21961 # An ERE matcher.
21962 EGREP=$lt_EGREP
21963
21964 # A literal string matcher.
21965 FGREP=$lt_FGREP
21966
21967 # A BSD- or MS-compatible name lister.
21968 NM=$lt_NM
21969
21970 # Whether we need soft or hard links.
21971 LN_S=$lt_LN_S
21972
21973 # What is the maximum length of a command?
21974 max_cmd_len=$max_cmd_len
21975
21976 # Object file suffix (normally "o").
21977 objext=$ac_objext
21978
21979 # Executable file suffix (normally "").
21980 exeext=$exeext
21981
21982 # whether the shell understands "unset".
21983 lt_unset=$lt_unset
21984
21985 # turn spaces into newlines.
21986 SP2NL=$lt_lt_SP2NL
21987
21988 # turn newlines into spaces.
21989 NL2SP=$lt_lt_NL2SP
21990
21991 # convert \$build file names to \$host format.
21992 to_host_file_cmd=$lt_cv_to_host_file_cmd
21993
21994 # convert \$build files to toolchain format.
21995 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21996
21997 # An object symbol dumper.
21998 OBJDUMP=$lt_OBJDUMP
21999
22000 # Method to check whether dependent libraries are shared objects.
22001 deplibs_check_method=$lt_deplibs_check_method
22002
22003 # Command to use when deplibs_check_method = "file_magic".
22004 file_magic_cmd=$lt_file_magic_cmd
22005
22006 # How to find potential files when deplibs_check_method = "file_magic".
22007 file_magic_glob=$lt_file_magic_glob
22008
22009 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22010 want_nocaseglob=$lt_want_nocaseglob
22011
22012 # DLL creation program.
22013 DLLTOOL=$lt_DLLTOOL
22014
22015 # Command to associate shared and link libraries.
22016 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22017
22018 # The archiver.
22019 AR=$lt_AR
22020
22021 # Flags to create an archive.
22022 AR_FLAGS=$lt_AR_FLAGS
22023
22024 # How to feed a file listing to the archiver.
22025 archiver_list_spec=$lt_archiver_list_spec
22026
22027 # A symbol stripping program.
22028 STRIP=$lt_STRIP
22029
22030 # Commands used to install an old-style archive.
22031 RANLIB=$lt_RANLIB
22032 old_postinstall_cmds=$lt_old_postinstall_cmds
22033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22034
22035 # Whether to use a lock for old archive extraction.
22036 lock_old_archive_extraction=$lock_old_archive_extraction
22037
22038 # A C compiler.
22039 LTCC=$lt_CC
22040
22041 # LTCC compiler flags.
22042 LTCFLAGS=$lt_CFLAGS
22043
22044 # Take the output of nm and produce a listing of raw symbols and C names.
22045 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22046
22047 # Transform the output of nm in a proper C declaration.
22048 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22049
22050 # Transform the output of nm in a C name address pair.
22051 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22052
22053 # Transform the output of nm in a C name address pair when lib prefix is needed.
22054 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22055
22056 # Specify filename containing input files for \$NM.
22057 nm_file_list_spec=$lt_nm_file_list_spec
22058
22059 # The root where to search for dependent libraries,and in which our libraries should be installed.
22060 lt_sysroot=$lt_sysroot
22061
22062 # The name of the directory that contains temporary libtool files.
22063 objdir=$objdir
22064
22065 # Used to examine libraries when file_magic_cmd begins with "file".
22066 MAGIC_CMD=$MAGIC_CMD
22067
22068 # Must we lock files when doing compilation?
22069 need_locks=$lt_need_locks
22070
22071 # Manifest tool.
22072 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22073
22074 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22075 DSYMUTIL=$lt_DSYMUTIL
22076
22077 # Tool to change global to local symbols on Mac OS X.
22078 NMEDIT=$lt_NMEDIT
22079
22080 # Tool to manipulate fat objects and archives on Mac OS X.
22081 LIPO=$lt_LIPO
22082
22083 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22084 OTOOL=$lt_OTOOL
22085
22086 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22087 OTOOL64=$lt_OTOOL64
22088
22089 # Old archive suffix (normally "a").
22090 libext=$libext
22091
22092 # Shared library suffix (normally ".so").
22093 shrext_cmds=$lt_shrext_cmds
22094
22095 # The commands to extract the exported symbol list from a shared archive.
22096 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22097
22098 # Variables whose values should be saved in libtool wrapper scripts and
22099 # restored at link time.
22100 variables_saved_for_relink=$lt_variables_saved_for_relink
22101
22102 # Do we need the "lib" prefix for modules?
22103 need_lib_prefix=$need_lib_prefix
22104
22105 # Do we need a version for libraries?
22106 need_version=$need_version
22107
22108 # Library versioning type.
22109 version_type=$version_type
22110
22111 # Shared library runtime path variable.
22112 runpath_var=$runpath_var
22113
22114 # Shared library path variable.
22115 shlibpath_var=$shlibpath_var
22116
22117 # Is shlibpath searched before the hard-coded library search path?
22118 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22119
22120 # Format of library name prefix.
22121 libname_spec=$lt_libname_spec
22122
22123 # List of archive names. First name is the real one, the rest are links.
22124 # The last name is the one that the linker finds with -lNAME
22125 library_names_spec=$lt_library_names_spec
22126
22127 # The coded name of the library, if different from the real name.
22128 soname_spec=$lt_soname_spec
22129
22130 # Permission mode override for installation of shared libraries.
22131 install_override_mode=$lt_install_override_mode
22132
22133 # Command to use after installation of a shared archive.
22134 postinstall_cmds=$lt_postinstall_cmds
22135
22136 # Command to use after uninstallation of a shared archive.
22137 postuninstall_cmds=$lt_postuninstall_cmds
22138
22139 # Commands used to finish a libtool library installation in a directory.
22140 finish_cmds=$lt_finish_cmds
22141
22142 # As "finish_cmds", except a single script fragment to be evaled but
22143 # not shown.
22144 finish_eval=$lt_finish_eval
22145
22146 # Whether we should hardcode library paths into libraries.
22147 hardcode_into_libs=$hardcode_into_libs
22148
22149 # Compile-time system search path for libraries.
22150 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22151
22152 # Run-time system search path for libraries.
22153 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22154
22155 # Whether dlopen is supported.
22156 dlopen_support=$enable_dlopen
22157
22158 # Whether dlopen of programs is supported.
22159 dlopen_self=$enable_dlopen_self
22160
22161 # Whether dlopen of statically linked programs is supported.
22162 dlopen_self_static=$enable_dlopen_self_static
22163
22164 # Commands to strip libraries.
22165 old_striplib=$lt_old_striplib
22166 striplib=$lt_striplib
22167
22168
22169 # The linker used to build libraries.
22170 LD=$lt_LD
22171
22172 # How to create reloadable object files.
22173 reload_flag=$lt_reload_flag
22174 reload_cmds=$lt_reload_cmds
22175
22176 # Commands used to build an old-style archive.
22177 old_archive_cmds=$lt_old_archive_cmds
22178
22179 # A language specific compiler.
22180 CC=$lt_compiler
22181
22182 # Is the compiler the GNU compiler?
22183 with_gcc=$GCC
22184
22185 # Compiler flag to turn off builtin functions.
22186 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22187
22188 # Additional compiler flags for building library objects.
22189 pic_flag=$lt_lt_prog_compiler_pic
22190
22191 # How to pass a linker flag through the compiler.
22192 wl=$lt_lt_prog_compiler_wl
22193
22194 # Compiler flag to prevent dynamic linking.
22195 link_static_flag=$lt_lt_prog_compiler_static
22196
22197 # Does compiler simultaneously support -c and -o options?
22198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22199
22200 # Whether or not to add -lc for building shared libraries.
22201 build_libtool_need_lc=$archive_cmds_need_lc
22202
22203 # Whether or not to disallow shared libs when runtime libs are static.
22204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22205
22206 # Compiler flag to allow reflexive dlopens.
22207 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22208
22209 # Compiler flag to generate shared objects directly from archives.
22210 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22211
22212 # Whether the compiler copes with passing no objects directly.
22213 compiler_needs_object=$lt_compiler_needs_object
22214
22215 # Create an old-style archive from a shared archive.
22216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22217
22218 # Create a temporary old-style archive to link instead of a shared archive.
22219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22220
22221 # Commands used to build a shared archive.
22222 archive_cmds=$lt_archive_cmds
22223 archive_expsym_cmds=$lt_archive_expsym_cmds
22224
22225 # Commands used to build a loadable module if different from building
22226 # a shared archive.
22227 module_cmds=$lt_module_cmds
22228 module_expsym_cmds=$lt_module_expsym_cmds
22229
22230 # Whether we are building with GNU ld or not.
22231 with_gnu_ld=$lt_with_gnu_ld
22232
22233 # Flag that allows shared libraries with undefined symbols to be built.
22234 allow_undefined_flag=$lt_allow_undefined_flag
22235
22236 # Flag that enforces no undefined symbols.
22237 no_undefined_flag=$lt_no_undefined_flag
22238
22239 # Flag to hardcode \$libdir into a binary during linking.
22240 # This must work even if \$libdir does not exist
22241 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22242
22243 # If ld is used when linking, flag to hardcode \$libdir into a binary
22244 # during linking. This must work even if \$libdir does not exist.
22245 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22246
22247 # Whether we need a single "-rpath" flag with a separated argument.
22248 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22249
22250 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22251 # DIR into the resulting binary.
22252 hardcode_direct=$hardcode_direct
22253
22254 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22255 # DIR into the resulting binary and the resulting library dependency is
22256 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22257 # library is relocated.
22258 hardcode_direct_absolute=$hardcode_direct_absolute
22259
22260 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22261 # into the resulting binary.
22262 hardcode_minus_L=$hardcode_minus_L
22263
22264 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22265 # into the resulting binary.
22266 hardcode_shlibpath_var=$hardcode_shlibpath_var
22267
22268 # Set to "yes" if building a shared library automatically hardcodes DIR
22269 # into the library and all subsequent libraries and executables linked
22270 # against it.
22271 hardcode_automatic=$hardcode_automatic
22272
22273 # Set to yes if linker adds runtime paths of dependent libraries
22274 # to runtime path list.
22275 inherit_rpath=$inherit_rpath
22276
22277 # Whether libtool must link a program against all its dependency libraries.
22278 link_all_deplibs=$link_all_deplibs
22279
22280 # Set to "yes" if exported symbols are required.
22281 always_export_symbols=$always_export_symbols
22282
22283 # The commands to list exported symbols.
22284 export_symbols_cmds=$lt_export_symbols_cmds
22285
22286 # Symbols that should not be listed in the preloaded symbols.
22287 exclude_expsyms=$lt_exclude_expsyms
22288
22289 # Symbols that must always be exported.
22290 include_expsyms=$lt_include_expsyms
22291
22292 # Commands necessary for linking programs (against libraries) with templates.
22293 prelink_cmds=$lt_prelink_cmds
22294
22295 # Commands necessary for finishing linking programs.
22296 postlink_cmds=$lt_postlink_cmds
22297
22298 # Specify filename containing input files.
22299 file_list_spec=$lt_file_list_spec
22300
22301 # How to hardcode a shared library path into an executable.
22302 hardcode_action=$hardcode_action
22303
22304 # The directories searched by this compiler when creating a shared library.
22305 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22306
22307 # Dependencies to place before and after the objects being linked to
22308 # create a shared library.
22309 predep_objects=$lt_predep_objects
22310 postdep_objects=$lt_postdep_objects
22311 predeps=$lt_predeps
22312 postdeps=$lt_postdeps
22313
22314 # The library search path used internally by the compiler when linking
22315 # a shared library.
22316 compiler_lib_search_path=$lt_compiler_lib_search_path
22317
22318 # ### END LIBTOOL CONFIG
22319
22320 _LT_EOF
22321
22322 case $host_os in
22323 aix3*)
22324 cat <<\_LT_EOF >> "$cfgfile"
22325 # AIX sometimes has problems with the GCC collect2 program. For some
22326 # reason, if we set the COLLECT_NAMES environment variable, the problems
22327 # vanish in a puff of smoke.
22328 if test "X${COLLECT_NAMES+set}" != Xset; then
22329 COLLECT_NAMES=
22330 export COLLECT_NAMES
22331 fi
22332 _LT_EOF
22333 ;;
22334 esac
22335
22336
22337 ltmain="$ac_aux_dir/ltmain.sh"
22338
22339
22340 # We use sed instead of cat because bash on DJGPP gets confused if
22341 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22342 # text mode, it properly converts lines to CR/LF. This bash problem
22343 # is reportedly fixed, but why not run on old versions too?
22344 sed '$q' "$ltmain" >> "$cfgfile" \
22345 || (rm -f "$cfgfile"; exit 1)
22346
22347 if test x"$xsi_shell" = xyes; then
22348 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22349 func_dirname ()\
22350 {\
22351 \ case ${1} in\
22352 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22353 \ * ) func_dirname_result="${3}" ;;\
22354 \ esac\
22355 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22356 && mv -f "$cfgfile.tmp" "$cfgfile" \
22357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22358 test 0 -eq $? || _lt_function_replace_fail=:
22359
22360
22361 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22362 func_basename ()\
22363 {\
22364 \ func_basename_result="${1##*/}"\
22365 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22366 && mv -f "$cfgfile.tmp" "$cfgfile" \
22367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22368 test 0 -eq $? || _lt_function_replace_fail=:
22369
22370
22371 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22372 func_dirname_and_basename ()\
22373 {\
22374 \ case ${1} in\
22375 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22376 \ * ) func_dirname_result="${3}" ;;\
22377 \ esac\
22378 \ func_basename_result="${1##*/}"\
22379 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22380 && mv -f "$cfgfile.tmp" "$cfgfile" \
22381 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22382 test 0 -eq $? || _lt_function_replace_fail=:
22383
22384
22385 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22386 func_stripname ()\
22387 {\
22388 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22389 \ # positional parameters, so assign one to ordinary parameter first.\
22390 \ func_stripname_result=${3}\
22391 \ func_stripname_result=${func_stripname_result#"${1}"}\
22392 \ func_stripname_result=${func_stripname_result%"${2}"}\
22393 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22394 && mv -f "$cfgfile.tmp" "$cfgfile" \
22395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22396 test 0 -eq $? || _lt_function_replace_fail=:
22397
22398
22399 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22400 func_split_long_opt ()\
22401 {\
22402 \ func_split_long_opt_name=${1%%=*}\
22403 \ func_split_long_opt_arg=${1#*=}\
22404 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22405 && mv -f "$cfgfile.tmp" "$cfgfile" \
22406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22407 test 0 -eq $? || _lt_function_replace_fail=:
22408
22409
22410 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22411 func_split_short_opt ()\
22412 {\
22413 \ func_split_short_opt_arg=${1#??}\
22414 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22415 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22416 && mv -f "$cfgfile.tmp" "$cfgfile" \
22417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22418 test 0 -eq $? || _lt_function_replace_fail=:
22419
22420
22421 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22422 func_lo2o ()\
22423 {\
22424 \ case ${1} in\
22425 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22426 \ *) func_lo2o_result=${1} ;;\
22427 \ esac\
22428 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22429 && mv -f "$cfgfile.tmp" "$cfgfile" \
22430 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22431 test 0 -eq $? || _lt_function_replace_fail=:
22432
22433
22434 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22435 func_xform ()\
22436 {\
22437 func_xform_result=${1%.*}.lo\
22438 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22439 && mv -f "$cfgfile.tmp" "$cfgfile" \
22440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22441 test 0 -eq $? || _lt_function_replace_fail=:
22442
22443
22444 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22445 func_arith ()\
22446 {\
22447 func_arith_result=$(( $* ))\
22448 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22449 && mv -f "$cfgfile.tmp" "$cfgfile" \
22450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22451 test 0 -eq $? || _lt_function_replace_fail=:
22452
22453
22454 sed -e '/^func_len ()$/,/^} # func_len /c\
22455 func_len ()\
22456 {\
22457 func_len_result=${#1}\
22458 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22459 && mv -f "$cfgfile.tmp" "$cfgfile" \
22460 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22461 test 0 -eq $? || _lt_function_replace_fail=:
22462
22463 fi
22464
22465 if test x"$lt_shell_append" = xyes; then
22466 sed -e '/^func_append ()$/,/^} # func_append /c\
22467 func_append ()\
22468 {\
22469 eval "${1}+=\\${2}"\
22470 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22471 && mv -f "$cfgfile.tmp" "$cfgfile" \
22472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22473 test 0 -eq $? || _lt_function_replace_fail=:
22474
22475
22476 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22477 func_append_quoted ()\
22478 {\
22479 \ func_quote_for_eval "${2}"\
22480 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22481 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22482 && mv -f "$cfgfile.tmp" "$cfgfile" \
22483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22484 test 0 -eq $? || _lt_function_replace_fail=:
22485
22486
22487 # Save a `func_append' function call where possible by direct use of '+='
22488 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22489 && mv -f "$cfgfile.tmp" "$cfgfile" \
22490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22491 test 0 -eq $? || _lt_function_replace_fail=:
22492 else
22493 # Save a `func_append' function call even when '+=' is not available
22494 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22495 && mv -f "$cfgfile.tmp" "$cfgfile" \
22496 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22497 test 0 -eq $? || _lt_function_replace_fail=:
22498 fi
22499
22500 if test x"$_lt_function_replace_fail" = x":"; then
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22502 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22503 fi
22504
22505
22506 mv -f "$cfgfile" "$ofile" ||
22507 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22508 chmod +x "$ofile"
22509
22510
22511 cat <<_LT_EOF >> "$ofile"
22512
22513 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22514
22515 # The linker used to build libraries.
22516 LD=$lt_LD_CXX
22517
22518 # How to create reloadable object files.
22519 reload_flag=$lt_reload_flag_CXX
22520 reload_cmds=$lt_reload_cmds_CXX
22521
22522 # Commands used to build an old-style archive.
22523 old_archive_cmds=$lt_old_archive_cmds_CXX
22524
22525 # A language specific compiler.
22526 CC=$lt_compiler_CXX
22527
22528 # Is the compiler the GNU compiler?
22529 with_gcc=$GCC_CXX
22530
22531 # Compiler flag to turn off builtin functions.
22532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22533
22534 # Additional compiler flags for building library objects.
22535 pic_flag=$lt_lt_prog_compiler_pic_CXX
22536
22537 # How to pass a linker flag through the compiler.
22538 wl=$lt_lt_prog_compiler_wl_CXX
22539
22540 # Compiler flag to prevent dynamic linking.
22541 link_static_flag=$lt_lt_prog_compiler_static_CXX
22542
22543 # Does compiler simultaneously support -c and -o options?
22544 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22545
22546 # Whether or not to add -lc for building shared libraries.
22547 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22548
22549 # Whether or not to disallow shared libs when runtime libs are static.
22550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22551
22552 # Compiler flag to allow reflexive dlopens.
22553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22554
22555 # Compiler flag to generate shared objects directly from archives.
22556 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22557
22558 # Whether the compiler copes with passing no objects directly.
22559 compiler_needs_object=$lt_compiler_needs_object_CXX
22560
22561 # Create an old-style archive from a shared archive.
22562 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22563
22564 # Create a temporary old-style archive to link instead of a shared archive.
22565 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22566
22567 # Commands used to build a shared archive.
22568 archive_cmds=$lt_archive_cmds_CXX
22569 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22570
22571 # Commands used to build a loadable module if different from building
22572 # a shared archive.
22573 module_cmds=$lt_module_cmds_CXX
22574 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22575
22576 # Whether we are building with GNU ld or not.
22577 with_gnu_ld=$lt_with_gnu_ld_CXX
22578
22579 # Flag that allows shared libraries with undefined symbols to be built.
22580 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22581
22582 # Flag that enforces no undefined symbols.
22583 no_undefined_flag=$lt_no_undefined_flag_CXX
22584
22585 # Flag to hardcode \$libdir into a binary during linking.
22586 # This must work even if \$libdir does not exist
22587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22588
22589 # If ld is used when linking, flag to hardcode \$libdir into a binary
22590 # during linking. This must work even if \$libdir does not exist.
22591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22592
22593 # Whether we need a single "-rpath" flag with a separated argument.
22594 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22595
22596 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22597 # DIR into the resulting binary.
22598 hardcode_direct=$hardcode_direct_CXX
22599
22600 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22601 # DIR into the resulting binary and the resulting library dependency is
22602 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22603 # library is relocated.
22604 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22605
22606 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22607 # into the resulting binary.
22608 hardcode_minus_L=$hardcode_minus_L_CXX
22609
22610 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22611 # into the resulting binary.
22612 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22613
22614 # Set to "yes" if building a shared library automatically hardcodes DIR
22615 # into the library and all subsequent libraries and executables linked
22616 # against it.
22617 hardcode_automatic=$hardcode_automatic_CXX
22618
22619 # Set to yes if linker adds runtime paths of dependent libraries
22620 # to runtime path list.
22621 inherit_rpath=$inherit_rpath_CXX
22622
22623 # Whether libtool must link a program against all its dependency libraries.
22624 link_all_deplibs=$link_all_deplibs_CXX
22625
22626 # Set to "yes" if exported symbols are required.
22627 always_export_symbols=$always_export_symbols_CXX
22628
22629 # The commands to list exported symbols.
22630 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22631
22632 # Symbols that should not be listed in the preloaded symbols.
22633 exclude_expsyms=$lt_exclude_expsyms_CXX
22634
22635 # Symbols that must always be exported.
22636 include_expsyms=$lt_include_expsyms_CXX
22637
22638 # Commands necessary for linking programs (against libraries) with templates.
22639 prelink_cmds=$lt_prelink_cmds_CXX
22640
22641 # Commands necessary for finishing linking programs.
22642 postlink_cmds=$lt_postlink_cmds_CXX
22643
22644 # Specify filename containing input files.
22645 file_list_spec=$lt_file_list_spec_CXX
22646
22647 # How to hardcode a shared library path into an executable.
22648 hardcode_action=$hardcode_action_CXX
22649
22650 # The directories searched by this compiler when creating a shared library.
22651 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22652
22653 # Dependencies to place before and after the objects being linked to
22654 # create a shared library.
22655 predep_objects=$lt_predep_objects_CXX
22656 postdep_objects=$lt_postdep_objects_CXX
22657 predeps=$lt_predeps_CXX
22658 postdeps=$lt_postdeps_CXX
22659
22660 # The library search path used internally by the compiler when linking
22661 # a shared library.
22662 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22663
22664 # ### END LIBTOOL TAG CONFIG: CXX
22665 _LT_EOF
22666
22667 ;;
22668
22669 esac
22670 done # for ac_tag
22671
22672
22673 as_fn_exit 0
22674 _ACEOF
22675 ac_clean_files=$ac_clean_files_save
22676
22677 test $ac_write_fail = 0 ||
22678 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22679
22680
22681 # configure is writing to config.log, and then calls config.status.
22682 # config.status does its own redirection, appending to config.log.
22683 # Unfortunately, on DOS this fails, as config.log is still kept open
22684 # by configure, so config.status won't be able to write to it; its
22685 # output is simply discarded. So we exec the FD to /dev/null,
22686 # effectively closing config.log, so it can be properly (re)opened and
22687 # appended to by config.status. When coming back to configure, we
22688 # need to make the FD available again.
22689 if test "$no_create" != yes; then
22690 ac_cs_success=:
22691 ac_config_status_args=
22692 test "$silent" = yes &&
22693 ac_config_status_args="$ac_config_status_args --quiet"
22694 exec 5>/dev/null
22695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22696 exec 5>>config.log
22697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22698 # would make configure fail if this is the last instruction.
22699 $ac_cs_success || as_fn_exit 1
22700 fi
22701 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22703 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22704 fi
22705